wcschr: Move AC_LIBOBJ invocations to module description.
[gnulib.git] / ChangeLog
1 2011-05-22  Bruno Haible  <bruno@clisp.org>
2
3         wcschr: Move AC_LIBOBJ invocations to module description.
4         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
5         * modules/wcschr (configure.ac): ... to here.
6
7 2011-05-22  Bruno Haible  <bruno@clisp.org>
8
9         wcscat: Move AC_LIBOBJ invocations to module description.
10         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
11         * modules/wcscat (configure.ac): ... to here.
12
13 2011-05-22  Bruno Haible  <bruno@clisp.org>
14
15         wcscasecmp: Move AC_LIBOBJ invocations to module description.
16         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
17         here...
18         * modules/wcscasecmp (configure.ac): ... to here.
19
20 2011-05-22  Bruno Haible  <bruno@clisp.org>
21
22         wcrtomb: Move AC_LIBOBJ invocations to module description.
23         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
24         invocations from here...
25         * modules/wcrtomb (configure.ac): ... to here.
26
27 2011-05-22  Bruno Haible  <bruno@clisp.org>
28
29         wcpncpy: Move AC_LIBOBJ invocations to module description.
30         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
31         here...
32         * modules/wcpncpy (configure.ac): ... to here.
33
34 2011-05-22  Bruno Haible  <bruno@clisp.org>
35
36         wcpcpy: Move AC_LIBOBJ invocations to module description.
37         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
38         * modules/wcpcpy (configure.ac): ... to here.
39
40 2011-05-22  Bruno Haible  <bruno@clisp.org>
41
42         waitpid: Move AC_LIBOBJ invocations to module description.
43         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
44         invocation from here...
45         * modules/waitpid (configure.ac): ... to here.
46
47 2011-05-22  Bruno Haible  <bruno@clisp.org>
48
49         utimensat: Move AC_LIBOBJ invocations to module description.
50         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
51         here...
52         * modules/utimensat (configure.ac): ... to here.
53
54 2011-05-22  Bruno Haible  <bruno@clisp.org>
55
56         usleep: Move AC_LIBOBJ invocations to module description.
57         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
58         here...
59         * modules/usleep (configure.ac): ... to here.
60
61 2011-05-22  Bruno Haible  <bruno@clisp.org>
62
63         unlockpt: Move AC_LIBOBJ invocations to module description.
64         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
65         gl_PREREQ_UNLOCKPT invocations from here...
66         * modules/unlockpt (configure.ac): ... to here.
67
68 2011-05-22  Bruno Haible  <bruno@clisp.org>
69
70         unlink: Respect rules for use of AC_LIBOBJ.
71         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
72         * modules/unlink (configure.ac): ... to here.
73
74 2011-05-22  Bruno Haible  <bruno@clisp.org>
75
76         uname: Move AC_LIBOBJ invocations to module description.
77         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
78         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
79         here...
80         * modules/uname (configure.ac): ... to here.
81
82 2011-05-22  Bruno Haible  <bruno@clisp.org>
83
84         ttyname_r: Move AC_LIBOBJ invocations to module description.
85         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
86         gl_PREREQ_TTYNAME_R invocations from here...
87         * modules/ttyname_r (configure.ac): ... to here.
88
89 2011-05-22  Bruno Haible  <bruno@clisp.org>
90
91         tsearch: Move AC_LIBOBJ invocations to module description.
92         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
93         invocations from here...
94         * modules/tsearch (configure.ac): ... to here.
95
96 2011-05-22  Bruno Haible  <bruno@clisp.org>
97
98         towctrans: Move AC_LIBOBJ invocations to module description.
99         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
100         AC_LIBOBJ invocation from here...
101         * modules/towctrans (configure.ac): ... to here.
102
103 2011-05-22  Bruno Haible  <bruno@clisp.org>
104
105         tmpfile: Move AC_LIBOBJ invocations to module description.
106         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
107         invocations from here...
108         * modules/tmpfile (configure.ac): ... to here.
109
110 2011-05-22  Bruno Haible  <bruno@clisp.org>
111
112         times: Move AC_LIBOBJ invocations to module description.
113         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
114         * modules/times (configure.ac): ... to here.
115
116 2011-05-22  Bruno Haible  <bruno@clisp.org>
117
118         time_r: Move AC_LIBOBJ invocations to module description.
119         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
120         invocations from here...
121         * modules/time_r (configure.ac): ... to here.
122
123 2011-05-22  Bruno Haible  <bruno@clisp.org>
124
125         timegm: Move AC_LIBOBJ invocations to module description.
126         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
127         invocations from here...
128         * modules/timegm (configure.ac): ... to here.
129
130 2011-05-22  Bruno Haible  <bruno@clisp.org>
131
132         tcgetsid: Move AC_LIBOBJ invocations to module description.
133         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
134         and gl_PREREQ_TCGETSID invocations from here...
135         * modules/tcgetsid (configure.ac): ... to here.
136         (Depends-on): Update conditions.
137
138 2011-05-22  Bruno Haible  <bruno@clisp.org>
139
140         symlinkat: Move AC_LIBOBJ invocations to module description.
141         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
142         here...
143         * modules/symlinkat (configure.ac): ... to here.
144
145 2011-05-22  Bruno Haible  <bruno@clisp.org>
146
147         symlink: Move AC_LIBOBJ invocations to module description.
148         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
149         here...
150         * modules/symlink (configure.ac): ... to here.
151
152 2011-05-22  Bruno Haible  <bruno@clisp.org>
153
154         strverscmp: Move AC_LIBOBJ invocations to module description.
155         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
156         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
157         from here...
158         * modules/strverscmp (configure.ac): ... to here.
159
160 2011-05-22  Bruno Haible  <bruno@clisp.org>
161
162         strtok_r: Move AC_LIBOBJ invocations to module description.
163         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
164         and gl_PREREQ_STRTOK_R invocations from here...
165         * modules/strtok_r (configure.ac): ... to here.
166         (Depends-on): Update conditions.
167
168 2011-05-22  Bruno Haible  <bruno@clisp.org>
169
170         strtoumax: Move AC_LIBOBJ invocations to module description.
171         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
172         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
173         from here...
174         * modules/strtoumax (configure.ac): ... to here.
175
176 2011-05-22  Bruno Haible  <bruno@clisp.org>
177
178         strtoimax: Move AC_LIBOBJ invocations to module description.
179         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
180         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
181         from here...
182         * modules/strtoimax (configure.ac): ... to here.
183
184 2011-05-22  Bruno Haible  <bruno@clisp.org>
185
186         strtoull: Move AC_LIBOBJ invocations to module description.
187         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
188         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
189         from here...
190         * modules/strtoull (configure.ac): ... to here.
191
192 2011-05-22  Bruno Haible  <bruno@clisp.org>
193
194         strtoll: Move AC_LIBOBJ invocations to module description.
195         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
196         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
197         here...
198         * modules/strtoll (configure.ac): ... to here.
199
200 2011-05-22  Bruno Haible  <bruno@clisp.org>
201
202         strtoul: Move AC_LIBOBJ invocations to module description.
203         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
204         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
205         * modules/strtoul (configure.ac): ... to here.
206
207 2011-05-22  Bruno Haible  <bruno@clisp.org>
208
209         strtol: Move AC_LIBOBJ invocations to module description.
210         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
211         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
212         * modules/strtol (configure.ac): ... to here.
213
214 2011-05-22  Bruno Haible  <bruno@clisp.org>
215
216         strtod: Move AC_LIBOBJ invocations to module description.
217         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
218         invocations from here...
219         * modules/strtod (configure.ac): ... to here.
220
221 2011-05-22  Bruno Haible  <bruno@clisp.org>
222
223         strstr*: Move AC_LIBOBJ invocations to module description.
224         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
225         invocations from here...
226         * modules/strstr-simple (configure.ac): ... to here.
227         * modules/strstr (configure.ac): ... and here.
228
229 2011-05-22  Bruno Haible  <bruno@clisp.org>
230
231         strsignal: Move AC_LIBOBJ invocations to module description.
232         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
233         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
234         * modules/strsignal (configure.ac): ... to here.
235         (Depends-on): Update conditions.
236
237 2011-05-22  Bruno Haible  <bruno@clisp.org>
238
239         strsep: Move AC_LIBOBJ invocations to module description.
240         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
241         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
242         here...
243         * modules/strsep (configure.ac): ... to here.
244
245 2011-05-22  Bruno Haible  <bruno@clisp.org>
246
247         strptime: Move AC_LIBOBJ invocations to module description.
248         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
249         gl_PREREQ_STRPTIME invocations from here...
250         * modules/strptime (configure.ac): ... to here.
251
252 2011-05-22  Bruno Haible  <bruno@clisp.org>
253
254         strpbrk: Move AC_LIBOBJ invocations to module description.
255         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
256         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
257         here...
258         * modules/strpbrk (configure.ac): ... to here.
259
260 2011-05-22  Bruno Haible  <bruno@clisp.org>
261
262         strnlen: Move AC_LIBOBJ invocations to module description.
263         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
264         invocations from here...
265         * modules/strnlen (configure.ac): ... to here.
266
267 2011-05-22  Bruno Haible  <bruno@clisp.org>
268
269         strndup: Move AC_LIBOBJ invocations to module description.
270         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
271         invocations from here...
272         * modules/strndup (configure.ac): ... to here.
273         (Depends-on): Update conditions.
274
275 2011-05-22  Bruno Haible  <bruno@clisp.org>
276
277         strncat: Move AC_LIBOBJ invocations to module description.
278         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
279         invocations from here...
280         * modules/strncat (configure.ac): ... to here.
281
282 2011-05-22  Bruno Haible  <bruno@clisp.org>
283
284         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
285         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
286         invocations from here...
287         * modules/strdup (configure.ac): ... to here.
288         * modules/strdup-posix (configure.ac): ... and here.
289
290 2011-05-22  Bruno Haible  <bruno@clisp.org>
291
292         strcspn: Move AC_LIBOBJ invocations to module description.
293         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
294         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
295         here...
296         * modules/strcspn (configure.ac): ... to here.
297
298 2011-05-22  Bruno Haible  <bruno@clisp.org>
299
300         strchrnul: Move AC_LIBOBJ invocations to module description.
301         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
302         gl_PREREQ_STRCHRNUL invocations from here...
303         * modules/strchrnul (configure.ac): ... to here.
304
305 2011-05-22  Bruno Haible  <bruno@clisp.org>
306
307         strcasestr*: Move AC_LIBOBJ invocations to module description.
308         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
309         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
310         * modules/strcasestr-simple (configure.ac): ... to here.
311         * modules/strcasestr (configure.ac): ... and here.
312
313 2011-05-22  Bruno Haible  <bruno@clisp.org>
314
315         strcase: Move AC_LIBOBJ invocations to module description.
316         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
317         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
318         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
319         gl_PREREQ_STRNCASECMP invocations from here...
320         * modules/strcase (configure.ac): ... to here.
321
322 2011-05-22  Bruno Haible  <bruno@clisp.org>
323
324         stpncpy: Move AC_LIBOBJ invocations to module description.
325         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
326         here...
327         * modules/stpncpy (configure.ac): ... to here.
328
329 2011-05-22  Bruno Haible  <bruno@clisp.org>
330
331         stpcpy: Move AC_LIBOBJ invocations to module description.
332         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
333         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
334         here...
335         * modules/stpcpy (configure.ac): ... to here.
336
337 2011-05-21  Bruno Haible  <bruno@clisp.org>
338
339         stat: Move AC_LIBOBJ invocations to module description.
340         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
341         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
342         here...
343         * modules/stat (configure.ac): ... to here.
344
345 2011-05-21  Bruno Haible  <bruno@clisp.org>
346
347         sleep: Move AC_LIBOBJ invocations to module description.
348         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
349         * modules/sleep (configure.ac): ... to here.
350
351 2011-05-21  Bruno Haible  <bruno@clisp.org>
352
353         signbit: Move AC_LIBOBJ invocations to module description.
354         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
355         * modules/signbit (configure.ac): ... to here.
356
357 2011-05-21  Bruno Haible  <bruno@clisp.org>
358
359         sigprocmask: Move AC_LIBOBJ invocations to module description.
360         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
361         gl_PREREQ_SIGPROMASK invocations from here...
362         * modules/sigprocmask (configure.ac): ... to here.
363
364 2011-05-21  Bruno Haible  <bruno@clisp.org>
365
366         sigaction: Move AC_LIBOBJ invocations to module description.
367         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
368         gl_PREREQ_SIGACTION invocations from here...
369         * modules/sigaction (configure.ac): ... to here.
370
371 2011-05-21  Bruno Haible  <bruno@clisp.org>
372
373         sig2str: Move AC_LIBOBJ invocations to module description.
374         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
375         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
376         here...
377         * modules/sig2str (configure.ac): ... to here.
378
379 2011-05-21  Bruno Haible  <bruno@clisp.org>
380
381         setlocale: Move AC_LIBOBJ invocations to module description.
382         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
383         gl_PREREQ_SETLOCALE invocations from here...
384         * modules/setlocale (configure.ac): ... to here.
385
386 2011-05-21  Bruno Haible  <bruno@clisp.org>
387
388         unsetenv: Move AC_LIBOBJ invocations to module description.
389         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
390         and gl_PREREQ_UNSETENV invocations from here...
391         * modules/unsetenv (configure.ac): ... to here.
392         (Depends-on): Update.
393
394 2011-05-21  Bruno Haible  <bruno@clisp.org>
395
396         setenv: Move AC_LIBOBJ invocations to module description.
397         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
398         here...
399         * modules/setenv (configure.ac): ... to here.
400
401 2011-05-21  Bruno Haible  <bruno@clisp.org>
402
403         selinux-h: Move AC_LIBOBJ invocations to module description.
404         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
405         AC_LIBOBJ invocation from here...
406         * modules/selinux-h (configure.ac): ... to here.
407
408 2011-05-21  Bruno Haible  <bruno@clisp.org>
409
410         select: Respect rules for use of AC_LIBOBJ.
411         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
412         here...
413         * modules/select (configure.ac): ... to here.
414
415 2011-05-21  Bruno Haible  <bruno@clisp.org>
416
417         scandir: Move AC_LIBOBJ invocations to module description.
418         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
419         invocations from here...
420         * modules/scandir (configure.ac): ... to here.
421
422 2011-05-21  Bruno Haible  <bruno@clisp.org>
423
424         rpmatch: Move AC_LIBOBJ invocations to module description.
425         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
426         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
427         here...
428         * modules/rpmatch (configure.ac): ... to here.
429
430 2011-05-21  Bruno Haible  <bruno@clisp.org>
431
432         rmdir: Respect rules for use of AC_LIBOBJ.
433         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
434         * modules/rmdir (configure.ac): ... to here.
435
436 2011-05-21  Bruno Haible  <bruno@clisp.org>
437
438         renameat: Move AC_LIBOBJ invocations to module description.
439         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
440         here...
441         * modules/renameat (configure.ac): ... to here.
442
443 2011-05-21  Bruno Haible  <bruno@clisp.org>
444
445         rename: Respect rules for use of AC_LIBOBJ.
446         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
447         here...
448         * modules/rename (configure.ac): ... to here.
449
450 2011-05-21  Bruno Haible  <bruno@clisp.org>
451
452         remove: Move AC_LIBOBJ invocations to module description.
453         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
454         here...
455         * modules/remove (configure.ac): ... to here.
456
457 2011-05-21  Bruno Haible  <bruno@clisp.org>
458
459         relocatable-lib: Move AC_LIBOBJ invocations to module description.
460         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
461         macro.
462         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
463         * modules/relocatable-lib (configure.ac): ... to here.
464         * modules/relocatable-prog-wrapper (configure.ac): Invoke
465         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
466
467 2011-05-21  Bruno Haible  <bruno@clisp.org>
468
469         relocatable-prog: Move AC_LIBOBJ invocations to module description.
470         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
471         here...
472         * modules/relocatable-prog (configure.ac): ... to here.
473
474 2011-05-21  Bruno Haible  <bruno@clisp.org>
475
476         regex: Move AC_LIBOBJ invocations to module description.
477         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
478         invocations from here...
479         * modules/regex (configure.ac): ... to here.
480
481 2011-05-21  Bruno Haible  <bruno@clisp.org>
482
483         realloc-*: Move AC_LIBOBJ invocations to module description.
484         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
485         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
486         AC_LIBOBJ invocations from here...
487         * modules/realloc-gnu (configure.ac): ... to here.
488         * modules/realloc-posix (configure.ac): ... and here.
489
490 2011-05-21  Bruno Haible  <bruno@clisp.org>
491
492         readutmp: Move AC_LIBOBJ invocations to module description.
493         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
494         * modules/readutmp (configure.ac): ... to here.
495
496 2011-05-21  Bruno Haible  <bruno@clisp.org>
497
498         readlinkat: Move AC_LIBOBJ invocations to module description.
499         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
500         here...
501         * modules/readlinkat (configure.ac): ... to here.
502
503 2011-05-21  Bruno Haible  <bruno@clisp.org>
504
505         readlink: Move AC_LIBOBJ invocations to module description.
506         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
507         gl_PREREQ_READLINK invocations from here...
508         * modules/readlink (configure.ac): ... to here.
509
510 2011-05-21  Bruno Haible  <bruno@clisp.org>
511
512         readline: Move AC_LIBOBJ invocations to module description.
513         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
514         gl_PREREQ_READLINE invocations from here...
515         * modules/readline (configure.ac): ... to here.
516
517 2011-05-21  Bruno Haible  <bruno@clisp.org>
518
519         read: Move AC_LIBOBJ invocations to module description.
520         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
521         * modules/read (configure.ac): ... to here.
522
523 2011-05-21  Bruno Haible  <bruno@clisp.org>
524
525         rawmemchr: Move AC_LIBOBJ invocations to module description.
526         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
527         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
528         from here...
529         * modules/rawmemchr (configure.ac): ... to here.
530
531 2011-05-21  Bruno Haible  <bruno@clisp.org>
532
533         random_r: Move AC_LIBOBJ invocations to module description.
534         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
535         gl_PREREQ_RANDOM_R invocations from here...
536         * modules/random_r (configure.ac): ... to here.
537
538 2011-05-21  Bruno Haible  <bruno@clisp.org>
539
540         pwrite: Move AC_LIBOBJ invocations to module description.
541         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
542         * modules/pwrite (configure.ac): ... to here.
543
544 2011-05-21  Bruno Haible  <bruno@clisp.org>
545
546         putenv: Move AC_LIBOBJ invocations to module description.
547         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
548         * modules/putenv (configure.ac): ... to here.
549
550 2011-05-21  Bruno Haible  <bruno@clisp.org>
551
552         login_tty: Move AC_LIBOBJ invocations to module description.
553         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
554         * modules/login_tty (configure.ac): ... to here.
555
556 2011-05-21  Bruno Haible  <bruno@clisp.org>
557
558         openpty: Move AC_LIBOBJ invocations to module description.
559         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
560         * modules/openpty (configure.ac): ... to here.
561
562 2011-05-21  Bruno Haible  <bruno@clisp.org>
563
564         forkpty: Move AC_LIBOBJ invocations to module description.
565         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
566         * modules/forkpty (configure.ac): ... to here.
567
568 2011-05-21  Bruno Haible  <bruno@clisp.org>
569
570         ptsname: Move AC_LIBOBJ invocations to module description.
571         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
572         invocations from here...
573         * modules/ptsname (configure.ac): ... to here.
574
575 2011-05-21  Bruno Haible  <bruno@clisp.org>
576
577         pread: Move AC_LIBOBJ invocations to module description.
578         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
579         * modules/pread (configure.ac): ... to here.
580
581 2011-05-21  Bruno Haible  <bruno@clisp.org>
582
583         posix_spawn*: Move AC_LIBOBJ invocations to module description.
584         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
585         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
586         * modules/posix_spawn (configure.ac): ... to here.
587         * modules/posix_spawnp (configure.ac): ... and here.
588
589 2011-05-21  Bruno Haible  <bruno@clisp.org>
590
591         popen: Move AC_LIBOBJ invocations to module description.
592         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
593         invocations from here...
594         * modules/popen (configure.ac): ... to here.
595
596 2011-05-21  Bruno Haible  <bruno@clisp.org>
597
598         poll: Move AC_LIBOBJ invocations to module description.
599         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
600         invocations from here...
601         * modules/poll (configure.ac): ... to here.
602
603 2011-05-21  Bruno Haible  <bruno@clisp.org>
604
605         pipe-posix: Move AC_LIBOBJ invocations to module description.
606         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
607         * modules/pipe-posix (configure.ac): ... to here.
608
609 2011-05-21  Bruno Haible  <bruno@clisp.org>
610
611         openat: Respect rules for use of AC_LIBOBJ.
612         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
613         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
614         * modules/openat (configure.ac): ... to here.
615
616 2011-05-21  Bruno Haible  <bruno@clisp.org>
617
618         obstack-printf*: Move AC_LIBOBJ invocations to module description.
619         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
620         invocation from here...
621         * modules/obstack-printf (configure.ac): ... to here.
622         * modules/obstack-printf-posix (configure.ac): ... and here.
623
624 2011-05-21  Bruno Haible  <bruno@clisp.org>
625
626         nl_langinfo: Move AC_LIBOBJ invocations to module description.
627         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
628         from here...
629         * modules/nl_langinfo (configure.ac): ... to here.
630
631 2011-05-21  Bruno Haible  <bruno@clisp.org>
632
633         nanosleep: Move AC_LIBOBJ invocations to module description.
634         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
635         gl_PREREQ_NANOSLEEP invocations from here...
636         * modules/nanosleep (configure.ac): ... to here.
637
638 2011-05-21  Bruno Haible  <bruno@clisp.org>
639
640         mountlist: Move AC_LIBOBJ invocations to module description.
641         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
642         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
643         * modules/mountlist (configure.ac): ... to here.
644
645 2011-05-21  Bruno Haible  <bruno@clisp.org>
646
647         mktime: Respect rules for use of AC_LIBOBJ.
648         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
649         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
650         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
651         (gl_FUNC_MKTIME_INTERNAL): ... and here...
652         * modules/mktime (configure.ac): ... to here.
653         * modules/mktime-internal (configure.ac): ... and here.
654         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
655
656 2011-05-21  Bruno Haible  <bruno@clisp.org>
657
658         mkstemps: Move AC_LIBOBJ invocations to module description.
659         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
660         here...
661         * modules/mkstemps (configure.ac): ... to here.
662
663 2011-05-21  Bruno Haible  <bruno@clisp.org>
664
665         mkstemp: Move AC_LIBOBJ invocations to module description.
666         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
667         gl_PREREQ_MKSTEMP invocations from here...
668         * modules/mkstemp (configure.ac): ... to here.
669
670 2011-05-21  Bruno Haible  <bruno@clisp.org>
671
672         mkostemps: Move AC_LIBOBJ invocations to module description.
673         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
674         here...
675         * modules/mkostemps (configure.ac): ... to here.
676
677 2011-05-21  Bruno Haible  <bruno@clisp.org>
678
679         mkostemp: Move AC_LIBOBJ invocations to module description.
680         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
681         gl_PREREQ_MKOSTEMP invocations from here...
682         * modules/mkostemp (configure.ac): ... to here.
683
684 2011-05-21  Bruno Haible  <bruno@clisp.org>
685
686         mknod: Move AC_LIBOBJ invocations to module description.
687         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
688         * modules/mknod (configure.ac): ... to here.
689
690 2011-05-21  Bruno Haible  <bruno@clisp.org>
691
692         mkfifoat: Move AC_LIBOBJ invocations to module description.
693         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
694         here...
695         * modules/mkfifoat (configure.ac): ... to here.
696
697 2011-05-21  Bruno Haible  <bruno@clisp.org>
698
699         mkfifo: Respect rules for use of AC_LIBOBJ.
700         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
701         here...
702         * modules/mkfifo (configure.ac): ... to here.
703
704 2011-05-21  Bruno Haible  <bruno@clisp.org>
705
706         mkdtemp: Move AC_LIBOBJ invocations to module description.
707         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
708         invocations from here...
709         * modules/mkdtemp (configure.ac): ... to here.
710
711 2011-05-21  Bruno Haible  <bruno@clisp.org>
712
713         mkdir: Move AC_LIBOBJ invocations to module description.
714         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
715         * modules/mkdir (configure.ac): ... to here.
716
717 2011-05-21  Bruno Haible  <bruno@clisp.org>
718
719         memset: Move AC_LIBOBJ invocations to module description.
720         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
721         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
722         here...
723         * modules/memset (configure.ac): ... to here.
724
725 2011-05-21  Bruno Haible  <bruno@clisp.org>
726
727         memrchr: Move AC_LIBOBJ invocations to module description.
728         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
729         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
730         here...
731         * modules/memrchr (configure.ac): ... to here.
732
733 2011-05-21  Bruno Haible  <bruno@clisp.org>
734
735         mempcpy: Move AC_LIBOBJ invocations to module description.
736         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
737         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
738         here...
739         * modules/mempcpy (configure.ac): ... to here.
740
741 2011-05-21  Bruno Haible  <bruno@clisp.org>
742
743         memmove: Move AC_LIBOBJ invocations to module description.
744         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
745         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
746         here...
747         * modules/memmove (configure.ac): ... to here.
748
749 2011-05-21  Bruno Haible  <bruno@clisp.org>
750
751         memmem*: Move AC_LIBOBJ invocations to module description.
752         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
753         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
754         here...
755         (gl_FUNC_MEMMEM): ... and here...
756         * modules/memmem-simple (configure.ac): ... to here.
757         * modules/memmem (configure.ac): ... and here.
758
759 2011-05-21  Bruno Haible  <bruno@clisp.org>
760
761         memcpy: Move AC_LIBOBJ invocations to module description.
762         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
763         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
764         here...
765         * modules/memcpy (configure.ac): ... to here.
766
767 2011-05-21  Bruno Haible  <bruno@clisp.org>
768
769         memcmp: Simplify autoconf macro.
770         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
771         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
772         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
773
774 2011-05-21  Bruno Haible  <bruno@clisp.org>
775
776         memcmp: Move AC_LIBOBJ invocations to module description.
777         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
778         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
779         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
780         * modules/memcmp (configure.ac): ... to here.
781         (Depends-on): Update conditions.
782
783 2011-05-21  Bruno Haible  <bruno@clisp.org>
784
785         memchr: Respect rules for use of AC_LIBOBJ.
786         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
787         invocations from here...
788         * modules/memchr (configure.ac): ... to here.
789
790 2011-05-21  Bruno Haible  <bruno@clisp.org>
791
792         mbtowc: Move AC_LIBOBJ invocations to module description.
793         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
794         invocations from here...
795         * modules/mbtowc (configure.ac): ... to here.
796
797 2011-05-21  Bruno Haible  <bruno@clisp.org>
798
799         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
800         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
801         gl_PREREQ_MBSRTOWCS invocations from here...
802         * modules/mbsrtowcs (configure.ac): ... to here.
803
804 2011-05-21  Bruno Haible  <bruno@clisp.org>
805
806         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
807         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
808         gl_PREREQ_MBSNRTOWCS invocations from here...
809         * modules/mbsnrtowcs (configure.ac): ... to here.
810
811 2011-05-21  Bruno Haible  <bruno@clisp.org>
812
813         mbsinit: Move AC_LIBOBJ invocations to module description.
814         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
815         invocations from here...
816         * modules/mbsinit (configure.ac): ... to here.
817
818 2011-05-21  Bruno Haible  <bruno@clisp.org>
819
820         mbrlen: Move AC_LIBOBJ invocations to module description.
821         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
822         invocations from here...
823         * modules/mbrlen (configure.ac): ... to here.
824
825 2011-05-21  Bruno Haible  <bruno@clisp.org>
826
827         mbrtowc: Respect rules for use of AC_LIBOBJ.
828         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
829         invocations from here...
830         * modules/mbrtowc (configure.ac): ... to here.
831
832 2011-05-21  Bruno Haible  <bruno@clisp.org>
833
834         malloc-*: Move AC_LIBOBJ invocations to module description.
835         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
836         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
837         AC_LIBOBJ invocations from here...
838         * modules/malloc-gnu (configure.ac): ... to here.
839         * modules/malloc-posix (configure.ac): ... and here.
840
841 2011-05-21  Bruno Haible  <bruno@clisp.org>
842
843         lstat, openat: Respect rules for use of AC_LIBOBJ.
844         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
845         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
846         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
847         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
848         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
849         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
850         here.
851         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
852
853 2011-05-21  Bruno Haible  <bruno@clisp.org>
854
855         lseek: Move AC_LIBOBJ invocations to module description.
856         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
857         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
858         * modules/lseek (configure.ac): ... to here.
859
860 2011-05-21  Bruno Haible  <bruno@clisp.org>
861
862         linkat: Move AC_LIBOBJ invocations to module description.
863         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
864         here...
865         * modules/linkat (configure.ac): ... to here.
866
867 2011-05-21  Bruno Haible  <bruno@clisp.org>
868
869         link: Respect rules for use of AC_LIBOBJ.
870         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
871         * modules/link (configure.ac): ... to here.
872
873 2011-05-21  Bruno Haible  <bruno@clisp.org>
874
875         lchown: Move AC_LIBOBJ invocations to module description.
876         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
877         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
878         * modules/lchown (configure.ac): ... to here.
879
880 2011-05-21  Bruno Haible  <bruno@clisp.org>
881
882         iswctype: Move AC_LIBOBJ invocations to module description.
883         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
884         here...
885         * modules/iswctype (configure.ac): ... to here.
886
887 2011-05-21  Bruno Haible  <bruno@clisp.org>
888
889         iswblank: Move AC_LIBOBJ invocations to module description.
890         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
891         here...
892         * modules/iswblank (configure.ac): ... to here.
893
894 2011-05-21  Bruno Haible  <bruno@clisp.org>
895
896         atanl: Move AC_LIBOBJ invocations to module description.
897         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
898         * modules/atanl (configure.ac): ... to here.
899
900 2011-05-21  Bruno Haible  <bruno@clisp.org>
901
902         acosl: Move AC_LIBOBJ invocations to module description.
903         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
904         * modules/acosl (configure.ac): ... to here.
905
906 2011-05-21  Bruno Haible  <bruno@clisp.org>
907
908         asinl: Respect rules for use of AC_LIBOBJ.
909         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
910         * modules/asinl (configure.ac): ... to here.
911
912 2011-05-21  Bruno Haible  <bruno@clisp.org>
913
914         tanl: Move AC_LIBOBJ invocations to module description.
915         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
916         * modules/tanl (configure.ac): ... to here.
917
918 2011-05-21  Bruno Haible  <bruno@clisp.org>
919
920         cosl: Move AC_LIBOBJ invocations to module description.
921         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
922         * modules/cosl (configure.ac): ... to here.
923
924 2011-05-21  Bruno Haible  <bruno@clisp.org>
925
926         sinl: Move AC_LIBOBJ invocations to module description.
927         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
928         * modules/sinl (configure.ac): ... to here.
929
930 2011-05-21  Bruno Haible  <bruno@clisp.org>
931
932         logl: Move AC_LIBOBJ invocations to module description.
933         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
934         * modules/logl (configure.ac): ... to here.
935
936 2011-05-21  Bruno Haible  <bruno@clisp.org>
937
938         expl: Move AC_LIBOBJ invocations to module description.
939         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
940         * modules/expl (configure.ac): ... to here.
941
942 2011-05-21  Bruno Haible  <bruno@clisp.org>
943
944         roundl: Move AC_LIBOBJ invocations to module description.
945         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
946         * modules/roundl (configure.ac): ... to here.
947
948 2011-05-21  Bruno Haible  <bruno@clisp.org>
949
950         round: Move AC_LIBOBJ invocations to module description.
951         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
952         * modules/round (configure.ac): ... to here.
953
954 2011-05-21  Bruno Haible  <bruno@clisp.org>
955
956         roundf: Move AC_LIBOBJ invocations to module description.
957         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
958         * modules/roundf (configure.ac): ... to here.
959
960 2011-05-21  Bruno Haible  <bruno@clisp.org>
961
962         truncl: Move AC_LIBOBJ invocations to module description.
963         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
964         * modules/truncl (configure.ac): ... to here.
965
966 2011-05-21  Bruno Haible  <bruno@clisp.org>
967
968         trunc: Move AC_LIBOBJ invocations to module description.
969         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
970         * modules/trunc (configure.ac): ... to here.
971
972 2011-05-21  Bruno Haible  <bruno@clisp.org>
973
974         truncf: Move AC_LIBOBJ invocations to module description.
975         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
976         * modules/truncf (configure.ac): ... to here.
977
978 2011-05-21  Bruno Haible  <bruno@clisp.org>
979
980         ceill: Move AC_LIBOBJ invocations to module description.
981         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
982         * modules/ceill (configure.ac): ... to here.
983
984 2011-05-21  Bruno Haible  <bruno@clisp.org>
985
986         ceil: Move AC_LIBOBJ invocations to module description.
987         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
988         * modules/ceil (configure.ac): ... to here.
989
990 2011-05-21  Bruno Haible  <bruno@clisp.org>
991
992         ceilf: Move AC_LIBOBJ invocations to module description.
993         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
994         * modules/ceilf (configure.ac): ... to here.
995
996 2011-05-21  Bruno Haible  <bruno@clisp.org>
997
998         floorl: Respect rules for use of AC_LIBOBJ.
999         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
1000         * modules/floorl (configure.ac): ... to here.
1001
1002 2011-05-21  Bruno Haible  <bruno@clisp.org>
1003
1004         floor: Respect rules for use of AC_LIBOBJ.
1005         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
1006         * modules/floor (configure.ac): ... to here.
1007
1008 2011-05-21  Bruno Haible  <bruno@clisp.org>
1009
1010         floorf: Move AC_LIBOBJ invocations to module description.
1011         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
1012         * modules/floorf (configure.ac): ... to here.
1013
1014 2011-05-20  Bruno Haible  <bruno@clisp.org>
1015
1016         sqrtl: Respect rules for use of AC_LIBOBJ.
1017         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
1018         * modules/sqrtl (configure.ac): ... to here.
1019
1020 2011-05-20  Bruno Haible  <bruno@clisp.org>
1021
1022         ldexpl: Respect rules for use of AC_LIBOBJ.
1023         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
1024         * modules/ldexpl (configure.ac): ... to here.
1025
1026 2011-05-20  Bruno Haible  <bruno@clisp.org>
1027
1028         frexpl*: Respect rules for use of AC_LIBOBJ.
1029         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
1030         invocation from here...
1031         * modules/frexpl (configure.ac): ... to here.
1032         * modules/frexpl-nolibm (configure.ac): ... and here.
1033
1034 2011-05-20  Bruno Haible  <bruno@clisp.org>
1035
1036         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
1037         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
1038         invocation from here...
1039         * modules/frexp (configure.ac): ... to here.
1040         * modules/frexp-nolibm (configure.ac): ... and here.
1041
1042 2011-05-20  Bruno Haible  <bruno@clisp.org>
1043
1044         isnan: Respect rules for use of AC_LIBOBJ.
1045         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
1046         invocations here.
1047         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
1048         REPLACE_ISNAN.
1049         * modules/isnand (configure.ac): Likewise.
1050         * modules/isnanl (configure.ac): Likewise.
1051
1052 2011-05-20  Bruno Haible  <bruno@clisp.org>
1053
1054         isnanl*: Respect rules for use of AC_LIBOBJ.
1055         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
1056         invocation from here...
1057         * modules/isnanl (configure.ac): ... to here.
1058         * modules/isnanl-nolibm (configure.ac): ... and here.
1059
1060 2011-05-20  Bruno Haible  <bruno@clisp.org>
1061
1062         isnand*: Move AC_LIBOBJ invocations to module description.
1063         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
1064         invocation from here...
1065         * modules/isnand (configure.ac): ... to here.
1066         * modules/isnand-nolibm (configure.ac): ... and here.
1067
1068 2011-05-20  Bruno Haible  <bruno@clisp.org>
1069
1070         isnanf*: Move AC_LIBOBJ invocations to module description.
1071         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
1072         invocation from here...
1073         * modules/isnanf (configure.ac): ... to here.
1074         * modules/isnanf-nolibm (configure.ac): ... and here.
1075
1076 2011-05-20  Bruno Haible  <bruno@clisp.org>
1077
1078         isnan*: Separate the AC_LIBOBJ invocations.
1079         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
1080         AC_LIBOBJ invocation.
1081         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
1082         here.
1083         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
1084         AC_LIBOBJ invocation.
1085         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
1086         here.
1087         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
1088         AC_LIBOBJ invocation.
1089         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
1090         here.
1091         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
1092
1093 2011-05-08  Bruno Haible  <bruno@clisp.org>
1094
1095         isinf: Move AC_LIBOBJ invocations to module description.
1096         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
1097         * modules/isinf (configure.ac): ... to here.
1098
1099 2011-05-08  Bruno Haible  <bruno@clisp.org>
1100
1101         isfinite: Move AC_LIBOBJ invocations to module description.
1102         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
1103         * modules/isfinite (configure.ac): ... to here.
1104
1105 2011-05-08  Bruno Haible  <bruno@clisp.org>
1106
1107         isblank: Move AC_LIBOBJ invocations to module description.
1108         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
1109         here...
1110         * modules/isblank (configure.ac): ... to here.
1111
1112 2011-05-08  Bruno Haible  <bruno@clisp.org>
1113
1114         isapipe: Move AC_LIBOBJ invocations to module description.
1115         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
1116         gl_PREREQ_ISAPIPE invocations from here...
1117         * modules/isapipe (configure.ac): ... to here.
1118         (Depends-on): Update condition.
1119
1120 2011-05-08  Bruno Haible  <bruno@clisp.org>
1121
1122         ioctl: Move AC_LIBOBJ invocations to module description.
1123         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
1124         invocations from here...
1125         * modules/ioctl (configure.ac): ... to here.
1126         (Depends-on): Update condition.
1127
1128 2011-05-08  Bruno Haible  <bruno@clisp.org>
1129
1130         imaxdiv: Move AC_LIBOBJ invocations to module description.
1131         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
1132         invocations from here...
1133         * modules/imaxdiv (configure.ac): ... to here.
1134
1135 2011-05-08  Bruno Haible  <bruno@clisp.org>
1136
1137         imaxabs: Move AC_LIBOBJ invocations to module description.
1138         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
1139         invocations from here...
1140         * modules/imaxabs (configure.ac): ... to here.
1141
1142 2011-05-08  Bruno Haible  <bruno@clisp.org>
1143
1144         getaddrinfo: Move AC_LIBOBJ invocations to module description.
1145         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
1146         AC_LIBOBJ invocations from here...
1147         * modules/getaddrinfo (configure.ac): ... to here.
1148         (Depends-on): Add conditions.
1149
1150 2011-05-08  Bruno Haible  <bruno@clisp.org>
1151
1152         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1153         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
1154         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1155         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
1156         (gl_PREREQ_INET_PTON): ... from here.
1157         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
1158         gl_PREREQ_INET_PTON here.
1159         (Depends-on): Update condition.
1160
1161 2011-05-08  Bruno Haible  <bruno@clisp.org>
1162
1163         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1164         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
1165         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1166         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
1167         (gl_PREREQ_INET_NTOP): ... from here.
1168         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
1169         gl_PREREQ_INET_NTOP here.
1170         (Depends-on): Update condition.
1171
1172 2011-05-08  Bruno Haible  <bruno@clisp.org>
1173
1174         iconv_open: Move AC_LIBOBJ invocations to module description.
1175         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
1176         AC_LIBOBJ invocations from here...
1177         * modules/iconv_open (configure.ac): ... to here.
1178
1179 2011-05-08  Bruno Haible  <bruno@clisp.org>
1180
1181         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
1182         If module 'iconv_open' is among the main modules and module
1183         'iconv_open-utf' is among the tests dependencies, then
1184         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
1185         return the special iconv_t values. Therefore iconv() and iconv_close()
1186         must support these special iconv_t values, already in lib, not only in
1187         tests.
1188         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
1189         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
1190         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
1191         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
1192         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
1193         (Depends-on): Add the dependencies of iconv_open-utf.
1194         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
1195         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
1196         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
1197
1198 2011-05-08  Bruno Haible  <bruno@clisp.org>
1199
1200         group-member: Move AC_LIBOBJ invocations to module description.
1201         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
1202         gl_PREREQ_GROUP_MEMBER invocations from here...
1203         * modules/group-member (configure.ac): ... to here.
1204
1205 2011-05-08  Bruno Haible  <bruno@clisp.org>
1206
1207         grantpt: Move AC_LIBOBJ invocations to module description.
1208         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
1209         invocations from here...
1210         * modules/grantpt (configure.ac): ... to here.
1211
1212 2011-05-08  Bruno Haible  <bruno@clisp.org>
1213
1214         glob: Move AC_LIBOBJ invocations to module description.
1215         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
1216         from here...
1217         * modules/glob (configure.ac): ... to here.
1218
1219 2011-05-08  Bruno Haible  <bruno@clisp.org>
1220
1221         getusershell: Move AC_LIBOBJ invocations to module description.
1222         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
1223         Move AC_LIBOBJ invocation from here...
1224         * modules/getusershell (configure.ac): ... to here.
1225         (Depends-on): Update condition.
1226
1227 2011-05-08  Bruno Haible  <bruno@clisp.org>
1228
1229         gettimeofday: Move AC_LIBOBJ invocations to module description.
1230         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
1231         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
1232         gl_PREREQ_GETTIMEOFDAY invocations from here...
1233         * modules/gettimeofday (configure.ac): ... to here.
1234
1235 2011-05-08  Bruno Haible  <bruno@clisp.org>
1236
1237         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
1238         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
1239         just gl_FUNC_TZSET.
1240         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
1241         (gl_FUNC_TZSET_CLOBBER): Remove actions.
1242         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
1243         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
1244
1245 2011-05-08  Bruno Haible  <bruno@clisp.org>
1246
1247         getsubopt: Move AC_LIBOBJ invocations to module description.
1248         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
1249         gl_PREREQ_GETSUBOPT invocations from here...
1250         * modules/getsubopt (configure.ac): ... to here.
1251
1252 2011-05-08  Bruno Haible  <bruno@clisp.org>
1253
1254         getpass-gnu: Move AC_LIBOBJ invocations to module description.
1255         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
1256         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
1257         * modules/getpass-gnu (configure.ac): ... to here.
1258
1259 2011-05-08  Bruno Haible  <bruno@clisp.org>
1260
1261         getpass: Move AC_LIBOBJ invocations to module description.
1262         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
1263         gl_PREREQ_GETPASS invocations from here...
1264         * modules/getpass (configure.ac): ... to here.
1265
1266 2011-05-08  Bruno Haible  <bruno@clisp.org>
1267
1268         getpagesize: Move AC_LIBOBJ invocations to module description.
1269         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
1270         from here...
1271         * modules/getpagesize (configure.ac): ... to here.
1272
1273 2011-05-08  Bruno Haible  <bruno@clisp.org>
1274
1275         getopt: Move AC_LIBOBJ invocations to module description.
1276         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
1277         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
1278         invocations from here...
1279         * modules/getopt-gnu (configure.ac): ... to here.
1280         * modules/getopt-posix (configure.ac): ... and here.
1281         (Depends-on): Update condition.
1282
1283 2011-05-08  Bruno Haible  <bruno@clisp.org>
1284
1285         getopt, argp: Respect rules for use of AC_LIBOBJ.
1286         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
1287         (gl_REPLACE_GETOPT_ALWAYS): New macro.
1288         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
1289         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
1290
1291 2011-05-08  Bruno Haible  <bruno@clisp.org>
1292
1293         getlogin_r: Move AC_LIBOBJ invocations to module description.
1294         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
1295         gl_PREREQ_GETLOGIN_R invocations from here...
1296         * modules/getlogin_r (configure.ac): ... to here.
1297
1298 2011-05-08  Bruno Haible  <bruno@clisp.org>
1299
1300         getlogin: Move AC_LIBOBJ invocations to module description.
1301         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
1302         here...
1303         * modules/getlogin (configure.ac): ... to here.
1304
1305 2011-05-08  Bruno Haible  <bruno@clisp.org>
1306
1307         getloadavg: Move AC_LIBOBJ invocations to module description.
1308         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
1309         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
1310         * modules/getloadavg (configure.ac): ... to here.
1311
1312 2011-05-08  Bruno Haible  <bruno@clisp.org>
1313
1314         gethrxtime: Move AC_LIBOBJ invocations to module description.
1315         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
1316         LIB_GETHRXTIME from here...
1317         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
1318         invocations from here...
1319         * modules/gethrxtime (configure.ac): ... to here.
1320
1321 2011-05-08  Bruno Haible  <bruno@clisp.org>
1322
1323         gethostname: Move AC_LIBOBJ invocations to module description.
1324         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
1325         gl_PREREQ_GETHOSTNAME invocations from here...
1326         * modules/gethostname (configure.ac): ... to here.
1327
1328 2011-05-08  Bruno Haible  <bruno@clisp.org>
1329
1330         getgroups: Move AC_LIBOBJ invocations to module description.
1331         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
1332         here...
1333         * modules/getgroups (configure.ac): ... to here.
1334
1335 2011-05-08  Bruno Haible  <bruno@clisp.org>
1336
1337         getdtablesize: Move AC_LIBOBJ invocations to module description.
1338         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
1339         invocation from here...
1340         * modules/getdtablesize (configure.ac): ... to here.
1341
1342 2011-05-08  Bruno Haible  <bruno@clisp.org>
1343
1344         getdomainname: Move AC_LIBOBJ invocations to module description.
1345         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
1346         gl_PREREQ_GETDOMAINNAME invocations from here...
1347         * modules/getdomainname (configure.ac): ... to here.
1348
1349 2011-05-08  Bruno Haible  <bruno@clisp.org>
1350
1351         getline: Move AC_LIBOBJ invocations to module description.
1352         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
1353         invocations from here...
1354         * modules/getline (configure.ac): ... to here.
1355
1356 2011-05-08  Bruno Haible  <bruno@clisp.org>
1357
1358         getline: Simplify.
1359         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
1360         It's already handled through the module dependency.
1361
1362 2011-05-08  Bruno Haible  <bruno@clisp.org>
1363
1364         getdelim: Move AC_LIBOBJ invocations to module description.
1365         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
1366         and gl_PREREQ_GETDELIM invocations from here...
1367         * modules/getdelim (configure.ac): ... to here.
1368         (Depends-on): Fix condition.
1369
1370 2011-05-08  Bruno Haible  <bruno@clisp.org>
1371
1372         getcwd: Move AC_LIBOBJ invocations to module description.
1373         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
1374         invocations from here...
1375         * modules/getcwd (configure.ac): ... to here.
1376
1377 2011-05-08  Bruno Haible  <bruno@clisp.org>
1378
1379         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
1380         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
1381         here...
1382         * modules/getcwd-lgpl (configure.ac): ... to here.
1383
1384 2011-05-07  Bruno Haible  <bruno@clisp.org>
1385
1386         crypto/gc: Move AC_LIBOBJ invocations to module description.
1387         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
1388         * modules/crypto/gc (configure.ac): ... to here.
1389
1390 2011-05-07  Bruno Haible  <bruno@clisp.org>
1391
1392         fwriting: Move AC_LIBOBJ invocations to module description.
1393         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
1394         here...
1395         * modules/fwriting (configure.ac): ... to here.
1396
1397 2011-05-07  Bruno Haible  <bruno@clisp.org>
1398
1399         fwritable: Move AC_LIBOBJ invocations to module description.
1400         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
1401         here...
1402         * modules/fwritable (configure.ac): ... to here.
1403
1404 2011-05-07  Bruno Haible  <bruno@clisp.org>
1405
1406         futimens: Move AC_LIBOBJ invocations to module description.
1407         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
1408         here...
1409         * modules/futimens (configure.ac): ... to here.
1410
1411 2011-05-07  Bruno Haible  <bruno@clisp.org>
1412
1413         ftruncate: Move AC_LIBOBJ invocations to module description.
1414         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
1415         gl_PREREQ_FTRUNCATE invocations from here...
1416         * modules/ftruncate (configure.ac): ... to here.
1417
1418 2011-05-07  Bruno Haible  <bruno@clisp.org>
1419
1420         fsync: Move AC_LIBOBJ invocations to module description.
1421         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
1422         invocations from here...
1423         * modules/fsync (configure.ac): ... to here.
1424
1425 2011-05-07  Bruno Haible  <bruno@clisp.org>
1426
1427         fsusage: Move AC_LIBOBJ invocations to module description.
1428         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
1429         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
1430         * modules/fsusage (configure.ac): ... to here.
1431
1432 2011-05-07  Bruno Haible  <bruno@clisp.org>
1433
1434         freopen: Move AC_LIBOBJ invocations to module description.
1435         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
1436         invocations from here...
1437         * modules/freopen (configure.ac): ... to here.
1438
1439 2011-05-07  Bruno Haible  <bruno@clisp.org>
1440
1441         free: Move AC_LIBOBJ invocations to module description.
1442         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
1443         invocations from here...
1444         * modules/free (configure.ac): ... to here.
1445
1446 2011-05-07  Bruno Haible  <bruno@clisp.org>
1447
1448         freadable: Move AC_LIBOBJ invocations to module description.
1449         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
1450         here...
1451         * modules/freadable (configure.ac): ... to here.
1452
1453 2011-05-07  Bruno Haible  <bruno@clisp.org>
1454
1455         fpurge: Move AC_LIBOBJ invocations to module description.
1456         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
1457         invocations from here...
1458         * modules/fpurge (configure.ac): ... to here.
1459
1460 2011-05-07  Bruno Haible  <bruno@clisp.org>
1461
1462         fpending: Move AC_LIBOBJ invocations to module description.
1463         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
1464         gl_FUNC_FPENDING.
1465         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
1466         invocations from here...
1467         * modules/fpending (configure.ac): ... to here.
1468
1469 2011-05-07  Bruno Haible  <bruno@clisp.org>
1470
1471         fopen: Move AC_LIBOBJ invocations to module description.
1472         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
1473         invocations from here...
1474         * modules/fopen (configure.ac): ... to here.
1475
1476 2011-05-07  Bruno Haible  <bruno@clisp.org>
1477
1478         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
1479         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
1480         gl_FUNC_FNMATCH_POSIX.
1481         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
1482         invocations from here...
1483         * modules/fnmatch (configure.ac): ... to here.
1484         * modules/fnmatch-gnu (configure.ac): ... and here.
1485
1486 2011-05-07  Bruno Haible  <bruno@clisp.org>
1487
1488         flock: Move AC_LIBOBJ invocations to module description.
1489         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
1490         invocations from here...
1491         * modules/flock (configure.ac): ... to here.
1492
1493 2011-05-07  Bruno Haible  <bruno@clisp.org>
1494
1495         fileblocks: Move AC_LIBOBJ invocations to module description.
1496         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
1497         gl_PREREQ_FILEBLOCKS invocations from here...
1498         * modules/fileblocks (configure.ac): ... to here.
1499
1500 2011-05-06  Bruno Haible  <bruno@clisp.org>
1501
1502         fflush: Move AC_LIBOBJ invocations to module description.
1503         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
1504         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
1505         invocations from here...
1506         * modules/fflush (configure.ac): ... to here.
1507
1508 2011-05-06  Bruno Haible  <bruno@clisp.org>
1509
1510         fdopendir: Move AC_LIBOBJ invocations to module description.
1511         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
1512         here...
1513         * modules/fdopendir (configure.ac): ... to here.
1514         (Depends-on): Improve conditions.
1515
1516 2011-05-06  Bruno Haible  <bruno@clisp.org>
1517
1518         _Exit: Move AC_LIBOBJ invocations to module description.
1519         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
1520         invocations from here...
1521         * modules/_Exit (configure.ac): ... to here.
1522
1523 2011-05-21  Bruno Haible  <bruno@clisp.org>
1524
1525         euidaccess: Respect rules for use of AC_LIBOBJ.
1526         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
1527         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
1528         from here...
1529         * modules/euidaccess (configure.ac): ... to here.
1530
1531 2011-05-06  Bruno Haible  <bruno@clisp.org>
1532
1533         error: Move AC_LIBOBJ invocations to module description.
1534         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
1535         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
1536         invocations from here...
1537         * modules/error (configure.ac): ... to here.
1538
1539 2011-05-06  Bruno Haible  <bruno@clisp.org>
1540
1541         duplocale: Move AC_LIBOBJ invocations to module description.
1542         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
1543         gl_PREREQ_DUPLOCALE invocations from here...
1544         * modules/duplocale (configure.ac): ... to here.
1545
1546 2011-05-05  Bruno Haible  <bruno@clisp.org>
1547
1548         dirfd: Move AC_LIBOBJ invocations to module description.
1549         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
1550         gl_FUNC_DIRFD.
1551         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
1552         here...
1553         * modules/dirfd (configure.ac): ... to here.
1554         (Depends-on): Fix condition.
1555
1556 2011-05-05  Bruno Haible  <bruno@clisp.org>
1557
1558         chown: Respect rules for use of AC_LIBOBJ.
1559         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
1560         * modules/chown (configure.ac): ... to here.
1561
1562 2011-05-05  Bruno Haible  <bruno@clisp.org>
1563
1564         chdir-long: Move AC_LIBOBJ invocations to module description.
1565         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
1566         gl_PREREQ_CHDIR_LONG invocations from here...
1567         * modules/chdir-long (configure.ac): ... to here.
1568
1569 2011-05-05  Bruno Haible  <bruno@clisp.org>
1570
1571         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
1572         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
1573         from here...
1574         * modules/canonicalize-lgpl (configure.ac): ... to here.
1575
1576 2011-05-05  Bruno Haible  <bruno@clisp.org>
1577
1578         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
1579         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
1580         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
1581         REPLACE_CALLOC.
1582         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
1583         * modules/calloc-gnu (configure.ac): Likewise.
1584
1585 2011-05-05  Bruno Haible  <bruno@clisp.org>
1586
1587         btowc: Move AC_LIBOBJ invocations to module description.
1588         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
1589         invocations from here...
1590         * modules/btowc (configure.ac): ... to here.
1591
1592 2011-05-21  Bruno Haible  <bruno@clisp.org>
1593
1594         atexit: Move AC_LIBOBJ invocations to module description.
1595         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
1596         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
1597         here...
1598         * modules/atexit (configure.ac): ... to here.
1599
1600 2011-05-05  Bruno Haible  <bruno@clisp.org>
1601
1602         atoll: Move AC_LIBOBJ invocations to module description.
1603         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
1604         invocations from here...
1605         * modules/atoll (configure.ac): ... to here.
1606
1607 2011-05-05  Bruno Haible  <bruno@clisp.org>
1608
1609         argz: Move AC_LIBOBJ invocations to module description.
1610         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
1611         * modules/argz (configure.ac): ... to here.
1612
1613 2011-05-05  Bruno Haible  <bruno@clisp.org>
1614
1615         alphasort: Move AC_LIBOBJ invocations to module description.
1616         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
1617         gl_PREREQ_ALPHASORT invocations from here...
1618         * modules/alphasort (configure.ac): ... to here.
1619
1620 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
1621
1622         verify: new macro verify_expr; verify_true deprecated
1623         * NEWS: Mention this.
1624         * doc/verify.texi (Compile-time Assertions): Document this.
1625         * lib/verify.h (verify_true): Deprecate.
1626         (verify_expr): New macro.
1627         * tests/test-verify.c (function): Test verify_expr.
1628
1629 2011-06-14  Jim Meyering  <meyering@redhat.com>
1630
1631         init.sh: give more portable redirection-related advice in a comment
1632         * tests/init.sh (stderr_fileno_): Update the advice in comments.
1633         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
1634         for lots of discussion.  Stefano Lattarini suggested the solution
1635         of putting "9>&2" after the command.  Reported by Bruno Haible.
1636
1637 2011-06-13  Bruno Haible  <bruno@clisp.org>
1638
1639         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
1640         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
1641         'none'.
1642
1643 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
1644
1645         ftoastr: use strtof only if HAVE_STRTOF
1646         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
1647         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
1648         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
1649         * modules/ftoastr (configure.ac): Check for strtof.
1650
1651 2011-06-13  Bruno Haible  <bruno@clisp.org>
1652
1653         gnulib-tool: Addendum to 2011-06-08 commit.
1654         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
1655         and --witness-c-macro have been given, augment AM_CPPFLAGS.
1656
1657 2011-06-13  Bruno Haible  <bruno@clisp.org>
1658
1659         fseeko: Provide a non-inline replacement of fseek().
1660         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
1661         * modules/fseeko (Depends-on): Add fseek.
1662         * modules/fseek (License): Change to LGPLv2+.
1663
1664 2011-06-13  Bruno Haible  <bruno@clisp.org>
1665
1666         ftello: Provide a non-inline replacement of ftell().
1667         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
1668         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
1669         not have ftello() (such as on mingw).
1670         * modules/ftello (Depends-on): Add ftell.
1671         * modules/ftell (License): Change to LGPLv2+.
1672
1673 2011-05-07  Bruno Haible  <bruno@clisp.org>
1674
1675         ftell: Move AC_LIBOBJ invocations to module description.
1676         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
1677         * modules/ftell (configure.ac): ... to here.
1678
1679 2011-05-07  Bruno Haible  <bruno@clisp.org>
1680
1681         ftello: Respect rules for use of AC_LIBOBJ.
1682         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
1683         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
1684         here...
1685         * modules/ftello (configure.ac): ... to here.
1686
1687 2011-05-07  Bruno Haible  <bruno@clisp.org>
1688
1689         fseeko: Simplify.
1690         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
1691         (gl_FUNC_FSEEKO): Inline it here.
1692
1693 2011-05-07  Bruno Haible  <bruno@clisp.org>
1694
1695         fseek: Move AC_LIBOBJ invocations to module description.
1696         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
1697         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
1698         * modules/fseek (configure.ac): ... to here.
1699
1700 2011-05-07  Bruno Haible  <bruno@clisp.org>
1701
1702         fseek: Respect rules for use of AC_LIBOBJ.
1703         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
1704         here...
1705         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
1706
1707 2011-05-07  Bruno Haible  <bruno@clisp.org>
1708
1709         fseeko: Respect rules for use of AC_LIBOBJ.
1710         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
1711         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
1712         here...
1713         * modules/fseeko (configure.ac): ... to here.
1714
1715 2011-06-13  Bruno Haible  <bruno@clisp.org>
1716
1717         gnulib-tool: Allow comments in the 'Depends-on' section.
1718         * doc/gnulib.texi (Module description): Mention comment syntax in the
1719         Depends-on section.
1720         * gnulib-tool (func_get_dependencies): Filter out comment lines.
1721
1722 2011-06-13  Bruno Haible  <bruno@clisp.org>
1723
1724         file-set.h: guard __attibute__ use, now that it's not always defined
1725         * lib/file-set.h (record_file): Use __attribute__ only with compiler
1726         versions that support it.  This fixes a coreutils build failure with
1727         the vendor cc on HP-UX 11.31.
1728
1729 2011-06-12  Bruno Haible  <bruno@clisp.org>
1730
1731         acl: Add support for HP-UX >= 11.11 JFS ACLs.
1732         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
1733         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
1734         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
1735         (acl, aclsort): New declarations.
1736         (aclv_nontrivial): New declaration.
1737         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
1738         (file_has_acl): Read also the second kind of HP-UX ACLs.
1739         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
1740         kind of HP-UX ACLs if the first kind fails.
1741         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
1742         second kind of HP-UX ACLs.
1743         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
1744         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
1745         agree.
1746         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
1747         hpuxjfs.
1748         Handle hpuxjfs.
1749         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
1750         hpuxjfs.
1751         Handle hpuxjfs.
1752         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
1753         (func_test_same_acls): Use both lsacl and getacl.
1754         Handle hpuxjfs.
1755         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
1756         (func_test_same_acls): Use both lsacl and getacl.
1757         Handle hpuxjfs.
1758
1759 2011-06-12  Bruno Haible  <bruno@clisp.org>
1760
1761         acl: Complete the 2010-08-10 fix.
1762         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
1763         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
1764         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
1765         explicitly.
1766         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
1767         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
1768
1769 2011-06-12  Bruno Haible  <bruno@clisp.org>
1770
1771         spawn-pipe tests: Comments.
1772         * tests/test-spawn-pipe-child.c (main): Update comment.
1773         Reported by James Youngman <jay@gnu.org>.
1774
1775 2011-06-11  James Youngman  <jay@gnu.org>
1776
1777         New module 'stat-size'.
1778         * modules/stat-size: New module.  Provides macros for accessing
1779         file size information in instances of struct stat.  Depends on the
1780         fileblocks module because it calls st_blocks.
1781         * lib/stat-size.h: New file, adapted from coreutils' system.h.
1782         * doc/gnulib.texi: Include stat-size.texi.
1783         * doc/stat-size.texi: Documentation for this module.
1784         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
1785         * m4/fileblocks.m4: Mention that stat-size depends on the call to
1786         AC_STRUCT_ST_BLOCKS.
1787
1788 2011-06-09  Bruno Haible  <bruno@clisp.org>
1789
1790         thread: Support pthreads-win32.
1791         * lib/glthread/thread.h (gl_thread_self): Define differently on
1792         pthreads-win32.
1793         (gl_null_thread): New declaration.
1794         (gl_thread_self_pointer): New macro.
1795         * lib/glthread/thread.c (gl_null_thread): New constant.
1796         * tests/test-lock.c: Use gl_thread_self_pointer instead of
1797         gl_thread_self.
1798         * tests/test-tls.c: Likewise.
1799         Suggested by Paul Eggert. Reported by Eric Blake.
1800
1801 2011-06-09  Bruno Haible  <bruno@clisp.org>
1802
1803         thread: Fix confusion between NULL and 0.
1804         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
1805         Reported by Paul Eggert.
1806
1807 2011-06-09  Bruno Haible  <bruno@clisp.org>
1808
1809         spawn-pipe tests: Avoid test failure on HP-UX 11.
1810         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
1811         is closed.
1812
1813 2011-06-09  Bruno Haible  <bruno@clisp.org>
1814
1815         acl tests: Fix compilation error on HP-UX 11.
1816         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
1817
1818 2011-06-09  Bruno Haible  <bruno@clisp.org>
1819
1820         rmdir: Avoid test failure on HP-UX 10.20.
1821         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
1822         EEXIST.
1823
1824 2011-06-08  Eric Blake  <eblake@redhat.com>
1825
1826         perror: fix test on mingw
1827         * modules/perror-tests (Depends-on): Add dup2.
1828
1829         strerror_r-posix: fix on MacOS
1830         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
1831         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
1832         logic bug.
1833         * lib/strerror_r.c (strerror_r): Fix the bug.
1834         * lib/strerror.c (strerror): Likewise.
1835         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
1836         problem.
1837         * doc/posix-functions/strerror.texi (strerror): Likewise.
1838         * doc/posix-functions/perror.texi (perror): Likewise.
1839         * tests/test-strerror.c (main): Enhance test.
1840         * tests/test-strerror_r.c (main): Likewise.
1841
1842 2011-06-08  Bruno Haible  <bruno@clisp.org>
1843
1844         gnulib-tool: Better isolation between different gnulib-tool invocations.
1845         * gnulib-tool: New option --witness-c-macro.
1846         (witness_c_macro): New variable.
1847         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
1848         AM_CPPFLAGS define it as a C macro.
1849         (func_emit_tests_Makefile_am): Likewise.
1850         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
1851         read it from there.
1852         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
1853         m4_define, not AC_DEFUN.
1854         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
1855         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
1856         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
1857         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
1858         s|...|...|, to substitute the values of the GNULIB_* module indicator
1859         variables.
1860         * modules/dirent (Makefile.am): Likewise.
1861         * modules/fcntl-h (Makefile.am): Likewise.
1862         * modules/iconv-h (Makefile.am): Likewise.
1863         * modules/langinfo (Makefile.am): Likewise.
1864         * modules/locale (Makefile.am): Likewise.
1865         * modules/math (Makefile.am): Likewise.
1866         * modules/netdb (Makefile.am): Likewise.
1867         * modules/poll-h (Makefile.am): Likewise.
1868         * modules/pty (Makefile.am): Likewise.
1869         * modules/search (Makefile.am): Likewise.
1870         * modules/signal (Makefile.am): Likewise.
1871         * modules/spawn (Makefile.am): Likewise.
1872         * modules/stdio (Makefile.am): Likewise.
1873         * modules/stdlib (Makefile.am): Likewise.
1874         * modules/string (Makefile.am): Likewise.
1875         * modules/sys_ioctl (Makefile.am): Likewise.
1876         * modules/sys_select (Makefile.am): Likewise.
1877         * modules/sys_socket (Makefile.am): Likewise.
1878         * modules/sys_stat (Makefile.am): Likewise.
1879         * modules/sys_times (Makefile.am): Likewise.
1880         * modules/sys_utsname (Makefile.am): Likewise.
1881         * modules/sys_wait (Makefile.am): Likewise.
1882         * modules/termios (Makefile.am): Likewise.
1883         * modules/time (Makefile.am): Likewise.
1884         * modules/unistd (Makefile.am): Likewise.
1885         * modules/wchar (Makefile.am): Likewise.
1886
1887 2011-06-08  Eric Blake  <eblake@redhat.com>
1888
1889         strerror: simplify replacement
1890         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
1891         * modules/strerror (configure.ac): No prereqs needed here...
1892         * modules/strerror-override (configure.ac): ...but this needs it.
1893         (Files): Add file for needed prereq macro.
1894
1895 2011-06-08  Bruno Haible  <bruno@clisp.org>
1896
1897         strerror_r-posix: Tweaks.
1898         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
1899         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
1900         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
1901         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
1902         (gl_FUNC_STRERROR_R): ... to here.
1903         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
1904
1905 2011-06-07  Eric Blake  <eblake@redhat.com>
1906
1907         perror: document fixed bugs
1908         * doc/posix-functions/perror.texi (perror): Document recent
1909         patches.
1910
1911 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
1912
1913         stat-time: get_stat_birthtime failure is better-defined
1914         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
1915         return a timestamp whose tv_sec and tv_nsec values are both -1.
1916         Previously, the spec said only that the tv_nsec value was negative.
1917         This upward-compatible change simplifies GNU tar a bit.
1918
1919 2011-06-07  Eric Blake  <eblake@redhat.com>
1920
1921         strerror_r-posix: work around cygwin 1.7.9
1922         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
1923         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
1924         bug without replacing strerror_r.
1925         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
1926         strerror_r is buggy, but without requiring strerror_r compilation.
1927         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
1928
1929         test-perror: relax test to ignore cygwin bug
1930         * tests/test-perror2.c (main): Relax test on requiring detection
1931         of stream errors, and use unbuffered stream.
1932         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
1933         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
1934         * doc/posix-functions/fputc.texi (fputc): Likewise.
1935         * doc/posix-functions/fputs.texi (fputs): Likewise.
1936         * doc/posix-functions/fputws.texi (fputws): Likewise.
1937         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
1938         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
1939         * doc/posix-functions/getopt.texi (getopt): Likewise.
1940         * doc/posix-functions/perror.texi (perror): Likewise.
1941         * doc/posix-functions/printf.texi (printf): Likewise.
1942         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
1943         * doc/posix-functions/psignal.texi (psignal): Likewise.
1944         * doc/posix-functions/putc.texi (putc): Likewise.
1945         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
1946         Likewise.
1947         * doc/posix-functions/putchar.texi (putchar): Likewise.
1948         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
1949         Likewise.
1950         * doc/posix-functions/puts.texi (puts): Likewise.
1951         * doc/posix-functions/putwc.texi (putwc): Likewise.
1952         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
1953         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
1954         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1955         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
1956         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1957         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
1958         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
1959         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
1960
1961 2011-05-22  Bruno Haible  <bruno@clisp.org>
1962
1963         strerror: Move AC_LIBOBJ invocations to module description.
1964         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
1965         gl_PREREQ_STRERROR invocations from here...
1966         * modules/strerror (configure.ac): ... to here.
1967
1968 2011-05-21  Bruno Haible  <bruno@clisp.org>
1969
1970         perror: Use common idiom.
1971         * modules/perror (configure.ac): Reorder statements.
1972
1973 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1974
1975         tests: fix usage message in 'mktempd_'
1976         * tests/init.sh (mktempd_): In the usage message, use literal
1977         'mktempd_', not '$ME' (which is even undefined), as the name of
1978         the subroutine.
1979
1980 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1981
1982         tests init: new function 'fatal_', for hard errors
1983         Before this patch, the only way offered by tests/init.sh to
1984         properly signal a hard error was the `framework_failure_'
1985         function.  But the error message issued by that function,
1986         as its name would suggest, refers to a set-up failure in the
1987         testsuite, while hard errors can obviously also be due to
1988         other reasons.  The best way to fix this inconsistency is to
1989         introduce a new function with a more general error message.
1990         * tests/init.sh (fatal_): New function.
1991
1992 2011-06-06  Eric Blake  <eblake@redhat.com>
1993
1994         canonicalize-lgpl: use common idiom
1995         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
1996         over newer POSIX -Rf.
1997         Reported by Bruno Haible.
1998
1999         canonicalize-lgpl: work around AIX realpath bug
2000         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
2001         * doc/posix-functions/realpath.texi (realpath): Document it.
2002         Reported by Bruno Haible.
2003
2004         strerror: work around FreeBSD bug
2005         * lib/strerror.c (strerror): Special case 0.
2006         Reported by Bruno Haible.
2007
2008         strerror-override: avoid bloating errno module
2009         * modules/errno (Files, configure.ac): Move replacement strings...
2010         * modules/strerror-override: ...to new module.
2011         * modules/strerror (Depends-on): Add strerror-override.
2012         * modules/strerror_r-posix (Depends-on): Likewise.
2013         * MODULES.html.sh: Document new module.
2014         Reported by Bruno Haible.
2015
2016 2011-06-06  Bruno Haible  <bruno@clisp.org>
2017
2018         spawn-pipe tests: Rename program.
2019         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
2020         * tests/test-spawn-pipe-child.c: Update comment.
2021         * tests/test-spawn-pipe.sh: Update.
2022         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
2023
2024         spawn-pipe tests: Link the child program only against libc.
2025         * tests/test-spawn-pipe-child.c: New file, extracted from
2026         tests/test-spawn-pipe.c.
2027         (main): Expect only one argument.
2028         (is_open): New function, copied from tests/test-pipe.c.
2029         * tests/test-spawn-pipe.c: Don't include <errno.h>.
2030         (child_main): Remove function.
2031         (test_pipe): Pass only one argument to the child program.
2032         (main): Remove child process code. Expect the child program's name as
2033         first argument.
2034         * tests/test-spawn-pipe.sh: Pass the child program's name as first
2035         argument.
2036         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
2037         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
2038         test-spawn-pipe-child against no libraries.
2039
2040 2011-06-06  Bruno Haible  <bruno@clisp.org>
2041
2042         careadlinkat: Avoid mismatch between ssize_t and int.
2043         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
2044         * lib/careadlinkat.c (careadlinkatcwd): Define always.
2045
2046 2011-06-06  Jim Meyering  <meyering@redhat.com>
2047
2048         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
2049         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
2050         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
2051
2052 2011-06-05  Bruno Haible  <bruno@clisp.org>
2053
2054         ansi-c++-opt: Interoperability with libtool.
2055         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
2056         set the variable to "no", not to ":".
2057         * NEWS: Mention the change.
2058
2059 2011-06-05  Bruno Haible  <bruno@clisp.org>
2060
2061         acl: Fix test failure on AIX 7.
2062         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
2063         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
2064
2065 2011-06-05  Bruno Haible  <bruno@clisp.org>
2066
2067         pipe-filter-ii: Fix test failure on AIX and IRIX.
2068         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
2069         with EAGAIN, retry with a smaller buffer size.
2070
2071 2011-06-05  Bruno Haible  <bruno@clisp.org>
2072
2073         localename: Fix link dependencies.
2074         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
2075         * modules/localename-tests (Makefile.am): Link test-localename with
2076         $(LIBTHREAD).
2077
2078 2011-06-05  Bruno Haible  <bruno@clisp.org>
2079
2080         error: Avoid gcc warning.
2081         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
2082
2083 2011-06-05  Bruno Haible  <bruno@clisp.org>
2084
2085         unsetenv: Avoid gcc warning.
2086         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
2087
2088 2011-06-05  Bruno Haible  <bruno@clisp.org>
2089
2090         setenv: Avoid gcc warning.
2091         * lib/setenv.c (setenv): Provide declaration if system lacks it.
2092
2093 2011-06-05  Bruno Haible  <bruno@clisp.org>
2094
2095         sys_select: Ensure memset is declared also on AIX 7.
2096         * lib/sys_select.in.h: Include <string.h> also on AIX.
2097         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
2098         self-contained also on AIX 7.1.
2099
2100 2011-06-04  Jim Meyering  <meyering@redhat.com>
2101
2102         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
2103         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
2104         function name, "error".
2105         (_gl_translatable_diag_func_re): New configurable variable.
2106
2107 2011-06-04  Bruno Haible  <bruno@clisp.org>
2108
2109         getopt: Avoid gcc warning.
2110         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
2111
2112 2011-06-04  Bruno Haible  <bruno@clisp.org>
2113
2114         strerror_r: Fix comments.
2115         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
2116         commit.
2117
2118 2011-06-04  Bruno Haible  <bruno@clisp.org>
2119
2120         perror: Fix compilation error.
2121         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
2122         Undefine fprintf, not sprintf.
2123         * modules/perror (Depends-on): Remove intprops, verify.
2124
2125 2011-06-04  Bruno Haible  <bruno@clisp.org>
2126
2127         setlocale: Enable replacement on Cygwin 1.5.
2128         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
2129         Cygwin 1.5.x.
2130         * doc/posix-functions/setlocale.texi: Mention that the problem with the
2131         LC_CTYPE category also exists on Cygwin 1.5.x.
2132
2133 2011-06-04  Bruno Haible  <bruno@clisp.org>
2134
2135         strerror-override: Don't disable symbol renamings.
2136         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
2137         * lib/strerror-override.c: Include config.h.
2138         (strerror_override): Don't undefine.
2139
2140 2011-06-03  Bruno Haible  <bruno@clisp.org>
2141
2142         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
2143         * lib/localename.h: Update copyright header.
2144         * lib/localename.c: Likewise.
2145         * lib/relocatable.h: Likewise.
2146         * lib/relocatable.c: Likewise.
2147
2148 2011-06-02  Bruno Haible  <bruno@clisp.org>
2149
2150         doc: Fix a module name.
2151         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
2152
2153 2011-06-02  Bruno Haible  <bruno@clisp.org>
2154
2155         pipe2: Remove dependency on 'nonblocking' module.
2156         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
2157         O_NONBLOCK is defined by gnulib.
2158         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
2159         is zero.
2160         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
2161         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
2162         defined by gnulib.
2163         (get_nonblocking_flag): New function.
2164         (main): Test O_NONBLOCK flag only if it is nonzero.
2165         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
2166
2167 2011-06-03  Jim Meyering  <meyering@redhat.com>
2168
2169         maint: three new prohibit-header-without-use rules
2170         Prohibit use of cloexec.h, posixver.h, same.h without use.
2171         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
2172         (sc_prohibit_posixver_without_use): Likewise.
2173         (sc_prohibit_same_without_use): Likewise.
2174
2175 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
2176
2177         allocator: 'die' routine is now given requested size
2178         * lib/allocator.h (struct allocator.die): New size arg.
2179         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
2180         If the actual problem is an ssize_t limitation, not a size_t or
2181         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
2182
2183 2011-06-01  Eric Blake  <eblake@redhat.com>
2184
2185         strerror: drop strerror_r dependency
2186         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
2187         * lib/strerror-override.c (strerror_override): ...to new file.
2188         * lib/strerror-override.h: Add prototype.
2189         * lib/strerror-impl.h: Delete.
2190         * lib/strerror.c (strerror): New implementation.
2191         * modules/errno (Files): Add new files.
2192         (configure.ac): Compile new file as appropriate.
2193         * modules/strerror (Files): Drop unused file.
2194         (Depends-on): Drop strerror_r-posix.
2195         * MODULES.html.sh: Document strerror_r-posix.
2196         Requested by Sam Steingold.
2197
2198         perror: call strerror_r directly
2199         * modules/perror (Files): Drop strerror-impl.h.
2200         * lib/perror.c (perror): Use our own stack buffer, rather than
2201         calling a wrapper that uses static storage.
2202         * doc/posix-functions/perror.texi (perror): Document a limitation
2203         of our replacement.
2204
2205         strerror_r: fix includes for FreeBSD
2206         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
2207         since we use abort on some platforms.
2208         Reported by Matthias Bolte.
2209
2210 2011-05-31  Bruno Haible  <bruno@clisp.org>
2211
2212         Fix link errors in tests: openat-die uses gettext-h.
2213         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
2214         against $(LIBINTL).
2215         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
2216         against $(LIBINTL).
2217         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
2218         $(LIBINTL).
2219         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
2220         against $(LIBINTL).
2221         * modules/linkat-tests (Makefile.am): Link test-linkat against
2222         $(LIBINTL).
2223         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
2224         $(LIBINTL).
2225         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
2226         against $(LIBINTL).
2227         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
2228         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
2229         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
2230         $(LIBINTL).
2231         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
2232         $(LIBINTL).
2233         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
2234         $(LIBINTL).
2235         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2236
2237 2011-05-31  Bruno Haible  <bruno@clisp.org>
2238
2239         Fix link errors in tests: wait-process uses gettext-h.
2240         * modules/nonblocking-pipe-tests (Makefile.am): Set
2241         test_nonblocking_pipe_main_LDADD.
2242         * modules/nonblocking-socket-tests (Makefile.am): Link
2243         test-nonblocking-socket-main against $(LIBINTL).
2244         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2245
2246 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2247
2248         assert-h: work around 'verify' incompatibility
2249         * lib/verify.h: Use @...@ directives, not ifdef.
2250         * modules/assert-h (assert.h): Implement the directives.
2251         (assert.h): Substitute the symbol-prefix more consistently.
2252
2253 2011-05-29  Jim Meyering  <meyering@redhat.com>
2254
2255         trim: remove three superfluous assignments
2256         * lib/trim.c (trim2): Remove three superfluous assignments
2257         and correct brace positioning.
2258
2259 2011-05-29  Bruno Haible  <bruno@clisp.org>
2260
2261         wctype-h: Avoid namespace pollution on Solaris 2.6.
2262         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
2263         identifiers.
2264         * doc/posix-headers/wctype.texi: Mention the problem.
2265         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2266
2267 2011-05-28  Jim Meyering  <meyering@redhat.com>
2268
2269         parse-datetime.y: accommodate -Wstrict-overflow
2270         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
2271         placate -Wstrict-overflow.
2272
2273         trim: avoid a warning from -O2 -Wstrict-overflow
2274         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
2275
2276 2011-05-29  Bruno Haible  <bruno@clisp.org>
2277
2278         gnulib-tool: Fix bug in yesterday's commit.
2279         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
2280         twice.
2281
2282 2011-05-29  Bruno Haible  <bruno@clisp.org>
2283
2284         Allow multiple gnulib generated include files to be combined.
2285         * gnulib-tool (func_compute_include_guard_prefix): New function.
2286         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
2287         ${gl_include_guard_prefix} references.
2288         (func_import, func_create_testdir): Invoke
2289         func_compute_include_guard_prefix.
2290         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
2291         * lib/ctype.in.h: Likewise.
2292         * lib/dirent.in.h: Likewise.
2293         * lib/errno.in.h: Likewise.
2294         * lib/fcntl.in.h: Likewise.
2295         * lib/float.in.h: Likewise.
2296         * lib/getopt.in.h: Likewise.
2297         * lib/iconv.in.h: Likewise.
2298         * lib/langinfo.in.h: Likewise.
2299         * lib/locale.in.h: Likewise.
2300         * lib/math.in.h: Likewise.
2301         * lib/netdb.in.h: Likewise.
2302         * lib/netinet_in.in.h: Likewise.
2303         * lib/poll.in.h: Likewise.
2304         * lib/pthread.in.h: Likewise.
2305         * lib/pty.in.h: Likewise.
2306         * lib/sched.in.h: Likewise.
2307         * lib/se-selinux.in.h: Likewise.
2308         * lib/search.in.h: Likewise.
2309         * lib/signal.in.h: Likewise.
2310         * lib/spawn.in.h: Likewise.
2311         * lib/stdarg.in.h: Likewise.
2312         * lib/stddef.in.h: Likewise.
2313         * lib/stdint.in.h: Likewise.
2314         * lib/stdio.in.h: Likewise.
2315         * lib/stdlib.in.h: Likewise.
2316         * lib/string.in.h: Likewise.
2317         * lib/strings.in.h: Likewise.
2318         * lib/sys_file.in.h: Likewise.
2319         * lib/sys_ioctl.in.h: Likewise.
2320         * lib/sys_select.in.h: Likewise.
2321         * lib/sys_socket.in.h: Likewise.
2322         * lib/sys_stat.in.h: Likewise.
2323         * lib/sys_time.in.h: Likewise.
2324         * lib/sys_times.in.h: Likewise.
2325         * lib/sys_uio.in.h: Likewise.
2326         * lib/sys_utsname.in.h: Likewise.
2327         * lib/sys_wait.in.h: Likewise.
2328         * lib/sysexits.in.h: Likewise.
2329         * lib/termios.in.h: Likewise.
2330         * lib/time.in.h: Likewise.
2331         * lib/unistd.in.h: Likewise.
2332         * lib/wchar.in.h: Likewise.
2333         * lib/wctype.in.h: Likewise.
2334         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
2335         * modules/ctype (Makefile.am): Likewise.
2336         * modules/dirent (Makefile.am): Likewise.
2337         * modules/errno (Makefile.am): Likewise.
2338         * modules/fcntl-h (Makefile.am): Likewise.
2339         * modules/float (Makefile.am): Likewise.
2340         * modules/getopt-posix (Makefile.am): Likewise.
2341         * modules/iconv-h (Makefile.am): Likewise.
2342         * modules/langinfo (Makefile.am): Likewise.
2343         * modules/locale (Makefile.am): Likewise.
2344         * modules/math (Makefile.am): Likewise.
2345         * modules/netdb (Makefile.am): Likewise.
2346         * modules/netinet_in (Makefile.am): Likewise.
2347         * modules/poll-h (Makefile.am): Likewise.
2348         * modules/pthread (Makefile.am): Likewise.
2349         * modules/pty (Makefile.am): Likewise.
2350         * modules/sched (Makefile.am): Likewise.
2351         * modules/search (Makefile.am): Likewise.
2352         * modules/selinux-h (Makefile.am): Likewise.
2353         * modules/signal (Makefile.am): Likewise.
2354         * modules/spawn (Makefile.am): Likewise.
2355         * modules/stdarg (Makefile.am): Likewise.
2356         * modules/stddef (Makefile.am): Likewise.
2357         * modules/stdint (Makefile.am): Likewise.
2358         * modules/stdio (Makefile.am): Likewise.
2359         * modules/stdlib (Makefile.am): Likewise.
2360         * modules/string (Makefile.am): Likewise.
2361         * modules/strings (Makefile.am): Likewise.
2362         * modules/sys_file (Makefile.am): Likewise.
2363         * modules/sys_ioctl (Makefile.am): Likewise.
2364         * modules/sys_select (Makefile.am): Likewise.
2365         * modules/sys_socket (Makefile.am): Likewise.
2366         * modules/sys_stat (Makefile.am): Likewise.
2367         * modules/sys_time (Makefile.am): Likewise.
2368         * modules/sys_times (Makefile.am): Likewise.
2369         * modules/sys_uio (Makefile.am): Likewise.
2370         * modules/sys_utsname (Makefile.am): Likewise.
2371         * modules/sys_wait (Makefile.am): Likewise.
2372         * modules/sysexits (Makefile.am): Likewise.
2373         * modules/termios (Makefile.am): Likewise.
2374         * modules/time (Makefile.am): Likewise.
2375         * modules/unistd (Makefile.am): Likewise.
2376         * modules/wchar (Makefile.am): Likewise.
2377         * modules/wctype-h (Makefile.am): Likewise.
2378         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
2379
2380 2011-05-29  Bruno Haible  <bruno@clisp.org>
2381
2382         assert-h: Allow multiple gnulib generated replacements to coexist.
2383         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
2384
2385 2011-05-29  Bruno Haible  <bruno@clisp.org>
2386
2387         argp: Allow coexistence with strerror_r-posix module.
2388         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
2389         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
2390         by gnulib's <string.h> replacement), assume it has the POSIX signature,
2391         not the glibc signature.
2392
2393 2011-05-28  Bruno Haible  <bruno@clisp.org>
2394
2395         gnulib-tool: Alternative structure of testdirs, similar to --import.
2396         * gnulib-tool: New option --single-configure.
2397         (func_usage): Document it.
2398         (single_configure): New variable.
2399         (func_modules_transitive_closure_separately,
2400         func_modules_transitive_closure_separately,
2401         func_determine_use_libtests, func_modules_add_dummy_separately,
2402         func_modules_to_filelist_separately): New functions, extracted from
2403         func_import.
2404         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
2405         (func_import): Use the new functions.
2406         (func_create_testdir): Set final_modules. Handle $single_configure =
2407         true case.
2408
2409 2011-05-28  Bruno Haible  <bruno@clisp.org>
2410
2411         getloadavg: Remove an unreliable safety check.
2412         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
2413         getloadavg.c is in place.
2414         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
2415         Reported by Sam Steingold <sds@gnu.org>.
2416
2417 2011-05-28  Bruno Haible  <bruno@clisp.org>
2418
2419         doc: Cleanup yet another file produced by texinfo.tex.
2420         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
2421
2422 2011-05-28  Bruno Haible  <bruno@clisp.org>
2423
2424         Finish the conditional dependencies mechanism.
2425         * gnulib-tool: New option --no-conditional-dependencies.
2426         (func_usage): Document it. Don't mark --conditional-dependencies as
2427         experimental.
2428         (cond_dependencies): The possible values can now be true, false, empty.
2429         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
2430         (func_import): Store setting in gnulib-cache.m4 and read it from there.
2431         * doc/gnulib-tool.texi (Conditional dependencies): New section.
2432
2433 2011-05-28  Bruno Haible  <bruno@clisp.org>
2434
2435         doc: Use a recent texinfo.tex.
2436         * doc/Makefile (tex_opts): New variable.
2437         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
2438
2439 2011-05-28  Jim Meyering  <meyering@redhat.com>
2440
2441         intprops.h: adjust comment to match code change
2442         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
2443         only once, it *may* have side effects.  Also fix an unrelated typo.
2444         (_GL_INT_SIGNED): Likewise.
2445
2446 2011-05-26  Simon Josefsson  <simon@josefsson.org>
2447
2448         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
2449
2450 2011-05-26  Bruno Haible  <bruno@clisp.org>
2451
2452         mbsrchr: Avoid collision with system function on Interix.
2453         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
2454         Reported by Markus Duft <mduft@gentoo.org>.
2455
2456 2011-05-15  James Youngman  <jay@gnu.org>
2457
2458         getopt: for ambiguous options, enumerate the possibilities.
2459         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
2460         the ambiguous options when an ambiguous prefix is given. This was
2461         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
2462         glibc change was
2463         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
2464
2465 2011-05-25  Eric Blake  <eblake@redhat.com>
2466
2467         getcwd: work around mingw bug
2468         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
2469         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2470         Reported by Matthias Bolte.
2471
2472 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
2473
2474         test-intprops: disable -Wtype-limits diagnostics
2475         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
2476         diagnostics.  Otherwise, the integer overflow macros generate many
2477         diagnostics.  Reported by Jim Meyering in
2478         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
2479
2480         intprops: shorten, to pacify gcc -Woverlength-strings
2481         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
2482         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
2483         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
2484         likely to run afoul of C compiler limits for string constant lengths.
2485         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
2486
2487 2011-05-24  Eric Blake  <eblake@redhat.com>
2488
2489         docs: document recently fixed glibc printf bug
2490         * doc/posix-functions/fprintf.texi (fprintf): Document it.
2491         * doc/posix-functions/printf.texi (printf): Likewise.
2492         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2493         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2494
2495         closein-tests: convert to init.sh
2496         * modules/closein-tests (Files): Add init.sh
2497         * tests/test-closein.sh Use it.
2498
2499         yesno-tests: convert to init.sh
2500         * modules/yesno-tests (Files): Add init.sh.
2501         * tests/test-yesno.sh: Use it.
2502
2503         atexit-tests: ensure reliable exit status
2504         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
2505         Reported by Bruno Haible.
2506
2507 2011-05-24  Bruno Haible  <bruno@clisp.org>
2508
2509         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
2510         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
2511         gl_PREREQ_STRERROR_R invocations from here...
2512         * modules/strerror_r-posix (configure.ac): ... to here.
2513
2514 2011-05-24  Eric Blake  <eblake@redhat.com>
2515
2516         strerror_r: fix missing header
2517         * lib/strerror_r.c: Avoid compiler warning about snprintf.
2518
2519         strerror_r: fix AIX test failures
2520         * lib/strerror_r.c (strerror_r): Convert silent truncation to
2521         ERANGE failure.
2522
2523         strerror_r: fix Solaris test failures
2524         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
2525         failures.
2526         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
2527
2528         strerror_r: enforce POSIX recommendations
2529         * lib/strerror_r.c (safe_copy): New helper method.
2530         (strerror_r): Guarantee a non-empty string.
2531         * tests/test-strerror_r.c (main): Enhance tests to incorporate
2532         recent POSIX rulings and to match our strerror guarantees.
2533         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
2534
2535 2011-05-24  Jim Meyering  <meyering@redhat.com>
2536
2537         test-perror2.c: avoid warning about unused variable
2538         * tests/test-perror2.c (main): Remove declaration of unused "fp".
2539
2540 2011-05-24  Eric Blake  <eblake@redhat.com>
2541
2542         perror: avoid spurious test failure on HP-UX
2543         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
2544
2545         tests: fix logic bug in init.sh
2546         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
2547         shell.
2548
2549 2011-05-24  Jim Meyering  <meyering@redhat.com>
2550
2551         utimensat: do not reference an out-of-scope buffer
2552         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
2553         declared in an inner scope, yet "times" would be dereferenced outside
2554         the scope in which "ts" was valid.
2555         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
2556         of ts[2] "out/up", so that the use of aliased "times" (via
2557         "times = ts;") does not end up referencing an out-of-scope "ts"
2558
2559         opendir-safer.c: don't clobber errno; don't close negative FD
2560         * lib/opendir-safer.c (opendir_safer):
2561         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
2562         file descriptor, and more importantly, don't clobber the
2563         offending errno value with EINVAL.  Before, upon failure
2564         of dup_safer, we would pass the negative file descriptor to
2565         fdopendir, which would clobber errno.
2566
2567 2011-05-23  Bruno Haible  <bruno@clisp.org>
2568
2569         idcache: Fix module description.
2570         * modules/idcache (Include): Set to "idcache.h".
2571
2572 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2573
2574         gnulib-tool: fix portability problem with MacOS sed
2575         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
2576         before the "}".  Problem reported by Leo in
2577         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
2578         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
2579         sed_extract_condition1, sed_extract_condition2.
2580
2581 2011-05-23  Bruno Haible  <bruno@clisp.org>
2582
2583         hash: Simplify autoconf macro.
2584         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
2585
2586 2011-05-23  Bruno Haible  <bruno@clisp.org>
2587
2588         getugroups: Fix module description.
2589         * modules/getugroups (Include): Set to "getugroups.h".
2590
2591 2011-05-23  Bruno Haible  <bruno@clisp.org>
2592
2593         linkat: Simplify autoconf macro.
2594         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
2595
2596 2011-05-23  Bruno Haible  <bruno@clisp.org>
2597             Eric Blake  <eblake@redhat.com>
2598
2599         linkat, renameat: Update dependencies.
2600         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
2601         * modules/linkat (Depends-on): Likewise. Remove also readlink,
2602         symlinkat.
2603
2604 2011-05-23  Jim Meyering  <meyering@redhat.com>
2605
2606         maint.mk: more tight_scope improvements
2607         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
2608         (_gl_TS_headers): Define only in if-0'd block.
2609         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
2610         sometimes we must *not* use it.  Adjust uses accordingly.
2611         (sc_tight_scope): Use much simpler grep-based test to determine
2612         whether we skip this rule.
2613
2614         maint.mk: generalize/improve the tight-scope rule
2615         * top/maint.mk: Emit a warning when the test is skipped.
2616         (_gl_TS_dir): Add $(srcdir)/ prefix.
2617         (_gl_TS_function_match): Simplify, rather than trying
2618         to enumerate common types.  Otherwise, it would fail to match an
2619         "extern unsigned char const *" declaration in idutils.
2620         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
2621         a way to support use of that type of macro.
2622         (_gl_TS_var_match): Simplify regexp.
2623         (_gl_TS_obj_files): New configurable variable.
2624         (_gl_TS_headers): Likewise.
2625
2626 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
2627
2628         verify: fix bug when gnulib <assert.h> is also included
2629         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
2630         is defined, not if _GL_STATIC_ASSERT_H is not defined.
2631         Perhaps there's a better way, but this fixes the immediate problem.
2632         Problem reported by Bruno Haible in
2633         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
2634
2635 2011-05-22  Bruno Haible  <bruno@clisp.org>
2636
2637         xgetcwd: Simplify autoconf macro.
2638         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
2639
2640 2011-05-22  Bruno Haible  <bruno@clisp.org>
2641
2642         New module 'mktime-internal'.
2643         * modules/mktime-internal: New file.
2644         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
2645         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
2646         mktime_internal as a C macro if libc has __mktime_internal.
2647         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
2648         conditions.
2649         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
2650
2651 2011-05-22  Bruno Haible  <bruno@clisp.org>
2652
2653         timegm: Correct mktime replacement statements.
2654         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
2655         defining mktime as a C macro. This completes a 2009-07-28 commit.
2656
2657 2011-05-22  Bruno Haible  <bruno@clisp.org>
2658
2659         timegm: Simplify autoconf macro.
2660         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
2661
2662 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
2663
2664         clock-time: change to LGPLv2+.
2665         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
2666         BSD-like but we have no mark for that; this is good enough for now.
2667
2668 2011-05-21  Bruno Haible  <bruno@clisp.org>
2669
2670         strerror_r: Fix comments.
2671         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
2672
2673 2011-05-21  Bruno Haible  <bruno@clisp.org>
2674
2675         relocatable-prog-wrapper: Fix possible link error.
2676         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
2677         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
2678         (gl_FUNC_SETENV): ... to here.
2679         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
2680         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
2681
2682 2011-05-21  Bruno Haible  <bruno@clisp.org>
2683
2684         relocatable-prog-wrapper: Assume strerror() exists.
2685         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
2686         m4/strerror.m4.
2687         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
2688         * lib/relocwrapper.c: Remove mention of strerror module.
2689         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
2690         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
2691         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
2692         C macro.
2693
2694 2011-05-21  Bruno Haible  <bruno@clisp.org>
2695
2696         select: Simplify replacement idiom.
2697         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
2698         Win32 platforms.
2699         * lib/sys_select.in.h (select): Simplify accordingly.
2700         * modules/select (Depends-on): Likewise.
2701
2702 2011-05-21  Bruno Haible  <bruno@clisp.org>
2703
2704         mkdir-p: Simplify autoconf macro.
2705         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
2706         gl_FUNC_LCHOWN.
2707
2708 2011-05-21  Eric Blake  <eblake@redhat.com>
2709
2710         strerror_r: avoid clobbering strerror on cygwin
2711         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
2712         fall back instead to sys_errlist.
2713         * modules/strerror (configure.ac): Add witness.
2714         * tests/test-strerror_r.c (main): Enhance test.
2715         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2716         * tests/test-perror2.c (main): Free memory before exit.
2717
2718 2011-05-21  Bruno Haible  <bruno@clisp.org>
2719
2720         mkdtemp: Use gnulib naming conventions.
2721         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
2722         * modules/mkdtemp (configure.ac): Update.
2723
2724 2011-05-20  Eric Blake  <eblake@redhat.com>
2725
2726         strerror_r: avoid corrupting errno on Solaris
2727         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
2728         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2729
2730         strerror_r: avoid compiler warning
2731         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
2732
2733         strerror_r: simplify AIX code
2734         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
2735
2736         test-perror: avoid spurious failure on FreeBSD
2737         * modules/perror-tests (Depends-on): Add strerror, now that
2738         strerror_r no longer pulls it in.
2739
2740 2011-05-20  Bruno Haible  <bruno@clisp.org>
2741
2742         strerror_r-posix: Remove unused dependencies.
2743         * modules/strerror_r-posix (Depends-on): Remove strerror.
2744         Reported by Eric Blake.
2745
2746 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
2747
2748         intprops: remove assumption about A|B representation
2749         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
2750         is a valid integer if both A and B are.  Although this is true for
2751         all known practical hosts, the C standard doesn't guarantee it,
2752         and the code need not assume it.  Also, this change may work around
2753         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
2754         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
2755
2756 2011-05-20  Eric Blake  <eblake@redhat.com>
2757
2758         perror: work around FreeBSD bug
2759         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
2760         is broken.  Move AC_LIBOBJ...
2761         * modules/perror (configure.ac): Here.
2762         * doc/posix-functions/perror.texi (perror): Document this.
2763         * tests/test-perror2.c (main): Enhance test.
2764
2765         test-perror: check for strerror interactions
2766         * tests/macros.h (STREQ): Add macro.
2767         * modules/perror-tests (Files): Add second test.
2768         * tests/test-perror2.c (main): New file.
2769         * doc/posix-functions/perror.texi (perror): Document glibc bug.
2770
2771         test-perror: rewrite to use init script
2772         * modules/perror-tests (Files): Add init.sh.
2773         * tests/test-perror.sh: Use temporary directory.
2774
2775 2011-05-20  Jim Meyering  <meyering@redhat.com>
2776
2777         maint: replace misused "a" with "an"
2778         * doc/intprops.texi: "a integer"
2779         * doc/regex.texi: "a explanation"
2780         * lib/alignof.h: "a object"
2781         * lib/argmatch.h: "a explanation"
2782         * lib/argp-help.c: "a option" and "a OPTION_DOC"
2783         * lib/stdint.in.h: "a integer"
2784         * lib/userspec.c: "a owner"
2785         * doc/gnulib.texi: Fix "a idea", and reword.
2786
2787 2011-05-19  Jim Meyering  <meyering@redhat.com>
2788
2789         maint: correct misuse of "a" and "an"
2790         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
2791         * lib/argp-help.c: "an docum...": s/an/a/
2792         * lib/argp-parse.c: "An vector": s/An/A/
2793         * lib/execute.c: "an native": s/an/a/
2794         * lib/spawn-pipe.c: Likewise.
2795         * lib/gc.h: "an Gc_rc": s/an/a/
2796         * lib/unigbrk.in.h: "an grapheme": s/an/a/
2797         * lib/fts.c: "an stat.st_dev": s/an/a/
2798
2799 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2800
2801         intprops-tests: work around HP-UX 11.23 cc bug with constants
2802         * tests/test-intprops.c (VERIFY): New macro.
2803         (main): Use it, instead of verify, to work around the compiler bug; see
2804         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2805
2806         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
2807         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
2808         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
2809         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
2810         (_GL_REMAINDER_OVERFLOW): Use it.
2811
2812         intprops-tests: revert unsigned part of previous change
2813         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
2814         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
2815         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
2816         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
2817
2818 2011-05-19  Bruno Haible  <bruno@clisp.org>
2819
2820         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
2821         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
2822         strerror_r() returned without filling the buffer.
2823         Reported by Eric Blake.
2824
2825 2011-05-19  Eric Blake  <eblake@redhat.com>
2826
2827         strerror_r: guarantee unchanged errno
2828         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
2829         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
2830         failure.
2831         * tests/test-strerror_r.c (main): Enhance test.
2832
2833 2011-05-19  Bruno Haible  <bruno@clisp.org>
2834
2835         strerror_r: Reorder #if blocks.
2836         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
2837         for consistency with the previous commit.
2838
2839 2011-05-19  Bruno Haible  <bruno@clisp.org>
2840
2841         perror: Avoid clobbering the strerror buffer when possible.
2842         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
2843         * lib/strerror.c: Include it.
2844         * modules/strerror (Files): Add lib/strerror-impl.h.
2845         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
2846         (my_strerror): New function, defined through lib/strerror-impl.h.
2847         (perror): Use it instead of strerror.
2848         * modules/perror (Files): Add lib/strerror-impl.h.
2849         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
2850
2851 2011-05-19  Eric Blake  <eblake@redhat.com>
2852
2853         strerror_r: fix on newer cygwin
2854         * lib/strerror_r.c (strerror_r): Cygwin now has
2855         __xpg_strerror_r, use it.
2856
2857 2011-05-19  Bruno Haible  <bruno@clisp.org>
2858
2859         strerror_r: Avoid clobbering the strerror buffer when possible.
2860         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
2861         (sys_nerr, sys_errlist): New declarations.
2862         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
2863         HP-UX, native Win32, IRIX, and 32-bit Solaris.
2864         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
2865
2866 2011-05-19  Bruno Haible  <bruno@clisp.org>
2867
2868         strerror_r: Fix test failure on mingw.
2869         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
2870         EXTEND_STRERROR_R.
2871         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
2872         macros from errno.in.h instead.
2873
2874 2011-05-19  Eric Blake  <eblake@redhat.com>
2875
2876         strerror: relax test for Solaris
2877         * tests/test-strerror.c (main): Permit Solaris behavior.
2878         * tests/test-strerror_r.c (main): Likewise.
2879
2880         strerror: enforce POSIX ruling on strerror(0)
2881         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
2882         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
2883         * lib/strerror_r.c (rpl_strerror_r): Work around it.
2884         * doc/posix-functions/strerror.texi (strerror): Document it.
2885         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
2886         * tests/test-strerror.c (main): Strengthen test.
2887         * tests/test-strerror_r.c (main): Likewise.
2888
2889 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2890
2891         intprop-tests: port to older and more-pedantic compilers
2892         * modules/intprops-tests (Files): Add tests/macros.h.
2893         * tests/test-intprops.c: Include macros.h.
2894         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
2895         it's no longer documented to expand to an integer constant expression.
2896         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
2897         argument is floating point, as it's no longer documented to expand
2898         to an integer constant expression in that case.
2899         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
2900         compiler bugs reported by Bruno Haible.  See
2901         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2902         (U0, U1): New constants, to work around the same bugs.  Also,
2903         in tests, use e.g., "(unsigned int) 39" rather than "39u".
2904
2905         intprops: work around C compiler bugs
2906         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
2907         bug in Sun C 5.11 2010/08/13 and other compilers; see
2908         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2909
2910         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
2911         * doc/intprops.texi (Integer Type Determination): Fix
2912         documentation for TYPE_IS_INTEGER: it returns an constant
2913         expression, not an integer constant expression.  Fix doc for
2914         TYPE_SIGNED: it returns an integer constant expression only if its
2915         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
2916         hardly worth documented that way....)
2917
2918 2011-05-18  Bruno Haible  <bruno@clisp.org>
2919
2920         strerror_r: Avoid clobbering the strerror buffer when possible.
2921         * lib/strerror_r.c (strerror_r): Merge the three implementations.
2922         Handle gnulib defined errno values here. When strerror() returns NULL
2923         or an empty string, return EINVAL.
2924         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
2925         gnulib defined errno values here.
2926         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
2927
2928 2011-05-18  Eric Blake  <eblake@redhat.com>
2929
2930         fnmatch: avoid compiler warning
2931         * lib/fnmatch_loop.c (FCT): Use correct type.
2932         Reported by Matthias Bolte.
2933
2934 2011-05-13  Jim Meyering  <meyering@redhat.com>
2935
2936         maint.mk: three new prohibit_<HDR>_without_use rules
2937         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
2938         (sc_prohibit_stdio-safer_without_use): Likewise.
2939         (sc_prohibit_xfreopen_without_use): Likewise.
2940
2941 2011-05-17  Jim Meyering  <meyering@redhat.com>
2942
2943         announce-gen: fail if the NEWS delta is empty
2944         If there's nothing noteworthy in NEWS, then either you forgot
2945         or you shouldn't be releasing.
2946         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
2947
2948 2011-05-17  Pádraig Brady <P@draigBrady.com>
2949
2950         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
2951         reserved symbols starting with double underscore from the check.
2952
2953 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
2954
2955         intprops: add doc
2956         * doc/intprops.texi: New file, documenting intprops.
2957         * doc/gnulib.texi (Particular Modules): Include it.
2958
2959         verify: add doc to gnulib manual and fix example
2960         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
2961         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
2962         (Compile-time Assertions): Fix example so it can't overflow.
2963
2964 2011-05-17  Jim Meyering  <meyering@redhat.com>
2965
2966         warnings.m4: don't usurp save_CPPFLAGS variable name
2967         * m4/warnings.m4: Prefix local temporary variable name with gl_.
2968
2969         doc: fix typo
2970         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
2971
2972 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2973             Bruno Haible  <bruno@clisp.org>
2974
2975         doc: Tweak recent change.
2976         * README (Portability guidelines): Tweak new text.
2977         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
2978         Interix 6.1.
2979
2980 2011-05-16  Eric Blake  <eblake@redhat.com>
2981
2982         inttypes: avoid autoconf warning
2983         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
2984         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2985
2986 2011-05-16  Sam Steingold <sds@gnu.org>
2987         and Eric Blake  <eblake@redhat.com>
2988
2989         vc-list-files: accept multiple directory operands
2990         * build-aux/vc-list-files: Iterate over all remaining operands.
2991
2992 2011-05-16  Bruno Haible  <bruno@clisp.org>
2993
2994         Fix confusion regarding deprecated modules.
2995         * modules/calloc (Status, Notice): Mark module as deprecated, not
2996         obsolete.
2997         * modules/fnmatch-posix (Status, Notice): Likewise.
2998         * modules/getdate (Status, Notice): Likewise.
2999         * modules/getopt (Status, Notice): Likewise.
3000         * modules/malloc (Status, Notice): Likewise.
3001         * modules/pipe (Status, Notice): Likewise.
3002         * modules/realloc (Status, Notice): Likewise.
3003         * modules/rename-dest-slash (Status, Notice): Likewise.
3004         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
3005         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
3006         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
3007         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
3008         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
3009
3010 2011-05-16  Bruno Haible  <bruno@clisp.org>
3011
3012         doc: List the target platforms.
3013         * doc/gnulib-intro.texi (Target Platforms): New section.
3014         * doc/gnulib.texi (Introduction): Update menu.
3015         * README (Portability guidelines): Refer to the new section. Update
3016         statement about oldest supported environment. Remove rationale why
3017         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
3018         unportable C89 function.
3019         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
3020         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
3021
3022 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3023
3024         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
3025
3026 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
3027
3028         intprops-tests: new module
3029         * modules/intprops-tests, tests/test-intprops.c: New files.
3030
3031         intprops: add safe, portable integer overflow checking
3032         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
3033         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
3034         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
3035         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
3036         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
3037         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
3038         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
3039         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
3040         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
3041         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
3042         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
3043
3044 2011-05-12  James Youngman  <jay@gnu.org>
3045
3046         Add a test for glibc's Bugzilla bug #12378.
3047         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
3048         doesn't allow the literal matching of a lone "[" (which is
3049         required by POSIX).
3050         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
3051
3052 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
3053
3054         Sync glibc change fixing Bugzilla bug #12378.
3055         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
3056         beginning and fall back to matching as normal character if the
3057         string ends before the matching ']' is found.  This is what POSIX
3058         requires.
3059
3060 2011-05-13  Eric Blake  <eblake@redhat.com>
3061
3062         getcwd-lgpl: relax test for FreeBSD
3063         * doc/posix-functions/getcwd.texi (getcwd): Document portability
3064         issue.
3065         * tests/test-getcwd-lgpl.c (main): Relax test.
3066         Reported by Matthias Bolte.
3067
3068 2011-05-11  Eric Blake  <eblake@redhat.com>
3069
3070         test-fflush: silence compiler warning
3071         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
3072
3073 2011-05-11  Bruno Haible  <bruno@clisp.org>
3074
3075         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
3076         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
3077         * modules/canonicalize (Depends-on): Add 'nocrash'.
3078         * modules/canonicalize-lgpl (Depends-on): Likewise.
3079         * doc/posix-functions/realpath.texi: Update platforms list.
3080         Reported by Ryan Schmidt <ryandesign@macports.org>.
3081
3082 2011-05-11  Bruno Haible  <bruno@clisp.org>
3083
3084         group-member: Declare function in <unistd.h>.
3085         * lib/unistd.in.h (group_member): New declaration.
3086         * lib/group-member.h: Remove file.
3087         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
3088         * tests/test-unistd-c++.cc: Check signature of group_member.
3089         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
3090         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
3091         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
3092         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
3093         HAVE_GROUP_MEMBER.
3094         * modules/group-member (Files): Remove lib/group-member.h.
3095         (Depends-on): Add unistd. Specify conditions.
3096         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3097         (Include): Change to <unistd.h>.
3098         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
3099         HAVE_GROUP_MEMBER.
3100         * NEWS: Mention the change.
3101         * lib/euidaccess.c: Don't include group-member.h.
3102
3103 2011-05-11  Bruno Haible  <bruno@clisp.org>
3104
3105         group-member: Document module.
3106         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
3107         module.
3108
3109 2011-05-11  Bruno Haible  <bruno@clisp.org>
3110
3111         fclose: Fix mistake earlier today.
3112         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
3113
3114 2011-05-11  Eric Blake  <eblake@redhat.com>
3115
3116         fclose: preserve fflush errors
3117         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
3118         Reported by Jim Meyering.
3119
3120         bootstrap: support a prereq of 'rpcgen -' on RHEL5
3121         * build-aux/bootstrap (check_versions): When no specific version
3122         is required, merely check that the app produces an exit status
3123         that indicates its existence.
3124
3125         maint.mk: drop redundant check
3126         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
3127         the same but better.
3128
3129 2011-05-11  Bruno Haible  <bruno@clisp.org>
3130
3131         fclose: Fix possible link error.
3132         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
3133         unregister_shadow_fd. Improve comments.
3134         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
3135         Eric Blake.
3136
3137 2011-05-11  Jim Meyering  <meyering@redhat.com>
3138
3139         maint.mk: improve "can not" detection and generalize rule name
3140         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
3141         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
3142         Use the same technique as in sc_prohibit_doubled_word, so that
3143         we recognize "can not" also when the words are separated by a newline.
3144         Suggested by Eric Blake.
3145         (perl_filename_lineno_text_): Define.  Factored out of...
3146         (prohibit_doubled_word_): ...here.  Use the new definition.
3147         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
3148         (prohibit_undesirable_word_seq_RE_): New overridable variable.
3149         (ignore_undesirable_word_sequence_RE_): New overridable variable.
3150
3151 2011-05-10  Eric Blake  <eblake@redhat.com>
3152
3153         fclose: avoid double close race when possible
3154         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
3155         all but WINDOWS_SOCKETS.
3156
3157 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
3158
3159         openat: correct new comment
3160         * lib/openat-proc.c (openat_proc_name): Correct the comment.
3161
3162 2011-05-10  Jim Meyering  <meyering@redhat.com>
3163
3164         openat: add comments
3165         * lib/openat-proc.c (openat_proc_name): Add comments,
3166         mostly from Eric Blake.
3167
3168 2011-05-09  Eric Blake  <eblake@redhat.com>
3169
3170         openat: reduce syscalls in first probe of /proc
3171         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
3172         be a directory.  Simplify the probe for .. bugs.
3173         * modules/openat (Depends-on): Drop same-inode.
3174         Reported by Bastien ROUCARIES.
3175
3176 2011-05-09  Jim Meyering  <meyering@redhat.com>
3177
3178         maint.mk: change semantics/name of tight_scope variables
3179         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
3180         Rename variables to align with semantics that make them more useful.
3181
3182         maint.mk: tweak new rule's name not to impinge
3183         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
3184         (sc_tight_scope): Use new rule name rather than $@-0.
3185
3186         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
3187         * top/maint.mk (sc_tight_scope): New rule.
3188         (sc_tight_scope-0): New rule, ifdef'd out.
3189         (_gl_TS_dir): Default.
3190         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
3191         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
3192
3193 2011-05-09  Simon Josefsson  <simon@josefsson.org>
3194
3195         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
3196         Haible <bruno@clisp.org>.
3197
3198 2011-05-08  Bruno Haible  <bruno@clisp.org>
3199
3200         Comments.
3201         * m4/isnanf.m4: Add comment.
3202         * m4/isnanl.m4: Likewise.
3203
3204 2011-05-08  Bruno Haible  <bruno@clisp.org>
3205
3206         glob: Remove obsolete macro.
3207         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
3208
3209 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
3210
3211         intprops: Sun C 5.11 supports __typeof__
3212         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
3213         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
3214         which is new.
3215         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
3216
3217         intprops: switch to usual gnulib indenting and naming
3218         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
3219         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
3220
3221         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
3222
3223 2011-05-08  Jim Meyering  <meyering@redhat.com>
3224
3225         maint.mk: suppress "Entering/Leaving directory" diag in announcement
3226         * top/maint.mk (release-prep): Use make's --no-print-directory
3227         option when generating the announcement.  This eliminates the
3228         pesky "make[2]: Entering/Leaving directory" diagnostics in the
3229         generated announcement template.
3230
3231 2011-05-08  Bruno Haible  <bruno@clisp.org>
3232
3233         tzset: Fix gettimeofday wrapper on Solaris 2.6.
3234         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
3235         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
3236
3237 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3238
3239         ignore-value, verify: Omit include files from lib_SOURCES.
3240         * modules/ignore-value, modules/verify (Makefile.am):
3241         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
3242         that leads Automake to duplicate use of am__objects_... variables
3243         in Makefile.in.  See
3244         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
3245
3246 2011-05-07  Bruno Haible  <bruno@clisp.org>
3247
3248         fclose: Simplify autoconf macro.
3249         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
3250         defined.
3251
3252 2011-05-07  Bruno Haible  <bruno@clisp.org>
3253
3254         canonicalize-lgpl: Fix autoconf macro ordering bug.
3255         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
3256         gl_STDLIB_H_DEFAULTS.
3257
3258 2011-05-06  Eric Blake  <eblake@redhat.com>
3259
3260         maintainer-makefile: make sc_po_check easier to tune
3261         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
3262         to probe for strings, such as an alternate location for gnulib.
3263
3264         fclose: guarantee behavior on seekable stdin
3265         * modules/fclose (Depends-on): Add fflush.
3266         * doc/posix-functions/fclose.texi (fclose): Document this.
3267         * tests/test-fclose.c (main): Make test for this unconditional.
3268
3269 2011-05-06  Bruno Haible  <bruno@clisp.org>
3270
3271         fflush, fpurge: Relicense under LGPLv2+.
3272         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
3273         * modules/fpurge (License): Likewise.
3274         With permission from Eric Blake and Jim Meyering.
3275         Suggested by Eric Blake.
3276
3277 2011-05-06  Karl Berry  <karl@gnu.org>
3278
3279         * MODULES.html.sh (func_all_modules): remove exit.
3280
3281 2011-05-06  Jim Meyering  <meyering@redhat.com>
3282
3283         maint.mk: use info-gnu@ as the default only for a stable release
3284         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
3285         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
3286         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
3287         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
3288
3289 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3290
3291         assert-h: new module, which supports C1X-style static_assert
3292         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
3293         * lib/verify.h: Revamp so that this can be copied into assert.h,
3294         while retaining the ability to use it standalone as before.
3295         Rename private identifiers so as not to encroach on the
3296         standard C namespace, since this is now used by assert.h.
3297         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
3298         the old verify_true.
3299         (_GL_VERIFY_TRUE): New macro, with much of the contents of
3300         the old verify_true.  Use _GL_VERIFY_TYPE.
3301         (_GL_VERIFY): New macro, with much of the contents of the old verify.
3302         (static_assert): New macro, if _GL_STATIC_ASSERT_H
3303         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
3304         defined when this file is copied into the replacement assert.h.
3305         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
3306         and _Static_assert is not built in.
3307         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
3308         defined, and use the new macros mentioned above.
3309         * doc/posix-headers/assert.texi: Document this.
3310
3311 2011-05-05  Bruno Haible  <bruno@clisp.org>
3312
3313         fclose, fflush: Respect rules for use of AC_LIBOBJ.
3314         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
3315         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
3316         gl_REPLACE_FCLOSE here.
3317         * modules/fflush (Depends-on): Remove fclose.
3318         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
3319         combination with module 'fclose'.
3320
3321 2011-05-05  Bruno Haible  <bruno@clisp.org>
3322
3323         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
3324         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
3325         gl_FUNC_FFLUSH.
3326         (gl_FUNC_FFLUSH): Use it.
3327         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
3328         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
3329         gl_REPLACE_FSEEKO here.
3330
3331 2011-05-05  Bruno Haible  <bruno@clisp.org>
3332
3333         tzset: Relicense under LGPL.
3334         * modules/tzset (License): Change to LGPL.
3335         No agreement needed; it's a no-op.
3336
3337         strtoimax, strtoumax: Relicense under LGPL.
3338         * modules/strtoimax (License): Change to LGPL.
3339         * modules/strtoumax (License): Likewise.
3340         With permission from Jim Meyering, Paul Eggert:
3341         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
3342         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
3343
3344         getgroups: Relicense under LGPL.
3345         * modules/getgroups (License): Change to LGPL.
3346         With permission from Jim Meyering, Paul Eggert, Eric Blake:
3347         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3348         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3349         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3350
3351         nanosleep: Relicense under LGPL.
3352         * modules/nanosleep (License): Change to LGPL.
3353         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
3354         Haible:
3355         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3356         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3357         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3358         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3359
3360         futimens: Relicense under LGPL.
3361         * modules/futimens (License): Change to LGPL.
3362         With permission from Eric Blake:
3363         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3364
3365         fflush: Relicense under LGPL.
3366         * modules/fflush (License): Change to LGPL.
3367         With permission from Eric Blake, Bruno Haible, Jim Meyering:
3368         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3369         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3370         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
3371
3372         tmpfile: Relicense under LGPL.
3373         * modules/tmpfile (License): Change to LGPL.
3374         With permission from Ben Pfaff:
3375         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3376
3377         isfinite: Relicense under LGPL.
3378         * modules/isfinite (License): Change to LGPL.
3379         With permission from Ben Pfaff, Bruno Haible:
3380         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3381         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
3382
3383         acosl..tanl: Relicense under LGPL.
3384         * modules/acosl (License): Change to LGPL.
3385         * modules/asinl (License): Likewise.
3386         * modules/atanl (License): Likewise.
3387         * modules/cosl (License): Likewise.
3388         * modules/expl (License): Likewise.
3389         * modules/logl (License): Likewise.
3390         * modules/sinl (License): Likewise.
3391         * modules/sqrtl (License): Likewise.
3392         * modules/tanl (License): Likewise.
3393         Source code originally from glibc and Paolo Bonzini. Agreements:
3394         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
3395         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
3396
3397 2011-05-05  Bruno Haible  <bruno@clisp.org>
3398
3399         signal: Define sighandler_t.
3400         * lib/signal.in.h (sighandler_t): New type.
3401         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
3402         whether sighandler_t is defined.
3403         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
3404         * modules/signal (Depends-on): Add extensions.
3405         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
3406         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
3407         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
3408
3409 2011-05-05  Eric Blake  <eblake@redhat.com>
3410
3411         maint: remove useless REPLACE_*_H macros
3412         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
3413         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3414         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3415         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
3416         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3417         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3418         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
3419         * m4/btowc.m4: Update callers.
3420         * m4/dirfd.m4: Likewise.
3421         * m4/duplocale.m4: Likewise.
3422         * m4/fchdir.m4: Likewise.
3423         * m4/fdopendir.m4: Likewise.
3424         * m4/inet_ntop.m4: Likewise.
3425         * m4/inet_pton.m4: Likewise.
3426         * m4/ioctl.m4: Likewise.
3427         * m4/mbrlen.m4: Likewise.
3428         * m4/mbrtowc.m4: Likewise.
3429         * m4/mbsinit.m4: Likewise.
3430         * m4/mbsnrtowcs.m4: Likewise.
3431         * m4/mbsrtowcs.m4: Likewise.
3432         * m4/poll.m4: Likewise.
3433         * m4/setlocale.m4: Likewise.
3434         * m4/wcrtomb.m4: Likewise.
3435         * m4/wcsnrtombs.m4: Likewise.
3436         * m4/wcsrtombs.m4: Likewise.
3437         * m4/wctob.m4: Likewise.
3438         * m4/wcwidth.m4: Likewise.
3439         * modules/posix_spawn: Likewise.
3440         * modules/posix_spawn_file_actions_addclose: Likewise.
3441         * modules/posix_spawn_file_actions_adddup2: Likewise.
3442         * modules/posix_spawn_file_actions_addopen: Likewise.
3443         * modules/posix_spawn_file_actions_destroy: Likewise.
3444         * modules/posix_spawn_file_actions_init: Likewise.
3445         * modules/posix_spawnattr_destroy: Likewise.
3446         * modules/posix_spawnattr_getflags: Likewise.
3447         * modules/posix_spawnattr_getpgroup: Likewise.
3448         * modules/posix_spawnattr_getschedparam: Likewise.
3449         * modules/posix_spawnattr_getschedpolicy: Likewise.
3450         * modules/posix_spawnattr_getsigdefault: Likewise.
3451         * modules/posix_spawnattr_getsigmask: Likewise.
3452         * modules/posix_spawnattr_init: Likewise.
3453         * modules/posix_spawnattr_setflags: Likewise.
3454         * modules/posix_spawnattr_setpgroup: Likewise.
3455         * modules/posix_spawnattr_setschedparam: Likewise.
3456         * modules/posix_spawnattr_setschedpolicy: Likewise.
3457         * modules/posix_spawnattr_setsigdefault: Likewise.
3458         * modules/posix_spawnattr_setsigmask: Likewise.
3459         * modules/posix_spawnp: Likewise.
3460
3461 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
3462
3463         Add option to do-release-commit-and-tag to specify branch.
3464         * build-aux/do-release-commit-and-tag: Add --branch.
3465
3466 2011-05-03  Bruno Haible  <bruno@clisp.org>
3467
3468         Avoid unnecessary compilation units, through conditional dependencies.
3469         * modules/accept (Depends-on): Add conditions to the dependencies.
3470         * modules/acosl (Depends-on): Likewise.
3471         * modules/argz (Depends-on): Likewise.
3472         * modules/asinl (Depends-on): Likewise.
3473         * modules/atanl (Depends-on): Likewise.
3474         * modules/atoll (Depends-on): Likewise.
3475         * modules/bind (Depends-on): Likewise.
3476         * modules/btowc (Depends-on): Likewise.
3477         * modules/canonicalize-lgpl (Depends-on): Likewise.
3478         * modules/ceil (Depends-on): Likewise.
3479         * modules/ceilf (Depends-on): Likewise.
3480         * modules/ceill (Depends-on): Likewise.
3481         * modules/chdir-long (Depends-on): Likewise.
3482         * modules/chown (Depends-on): Likewise.
3483         * modules/close (Depends-on): Likewise.
3484         * modules/connect (Depends-on): Likewise.
3485         * modules/cosl (Depends-on): Likewise.
3486         * modules/dirfd (Depends-on): Likewise.
3487         * modules/dprintf (Depends-on): Likewise.
3488         * modules/dprintf-posix (Depends-on): Likewise.
3489         * modules/error (Depends-on): Likewise.
3490         * modules/euidaccess (Depends-on): Likewise.
3491         * modules/expl (Depends-on): Likewise.
3492         * modules/faccessat (Depends-on): Likewise.
3493         * modules/fchdir (Depends-on): Likewise.
3494         * modules/fclose (Depends-on): Likewise.
3495         * modules/fcntl (Depends-on): Likewise.
3496         * modules/fdopendir (Depends-on): Likewise.
3497         * modules/fflush (Depends-on): Likewise.
3498         * modules/floor (Depends-on): Likewise.
3499         * modules/floorf (Depends-on): Likewise.
3500         * modules/floorl (Depends-on): Likewise.
3501         * modules/fnmatch (Depends-on): Likewise.
3502         * modules/fopen (Depends-on): Likewise.
3503         * modules/fprintf-posix (Depends-on): Likewise.
3504         * modules/frexp (Depends-on): Likewise.
3505         * modules/frexp-nolibm (Depends-on): Likewise.
3506         * modules/frexpl (Depends-on): Likewise.
3507         * modules/frexpl-nolibm (Depends-on): Likewise.
3508         * modules/fseek (Depends-on): Likewise.
3509         * modules/fsusage (Depends-on): Likewise.
3510         * modules/ftell (Depends-on): Likewise.
3511         * modules/ftello (Depends-on): Likewise.
3512         * modules/futimens (Depends-on): Likewise.
3513         * modules/getcwd (Depends-on): Likewise.
3514         * modules/getcwd-lgpl (Depends-on): Likewise.
3515         * modules/getdelim (Depends-on): Likewise.
3516         * modules/getdomainname (Depends-on): Likewise.
3517         * modules/getgroups (Depends-on): Likewise.
3518         * modules/gethostname (Depends-on): Likewise.
3519         * modules/getline (Depends-on): Likewise.
3520         * modules/getlogin_r (Depends-on): Likewise.
3521         * modules/getopt-posix (Depends-on): Likewise.
3522         * modules/getpeername (Depends-on): Likewise.
3523         * modules/getsockname (Depends-on): Likewise.
3524         * modules/getsockopt (Depends-on): Likewise.
3525         * modules/getsubopt (Depends-on): Likewise.
3526         * modules/getusershell (Depends-on): Likewise.
3527         * modules/glob (Depends-on): Likewise.
3528         * modules/grantpt (Depends-on): Likewise.
3529         * modules/iconv_open (Depends-on): Likewise.
3530         * modules/iconv_open-utf (Depends-on): Likewise.
3531         * modules/inet_ntop (Depends-on): Likewise.
3532         * modules/inet_pton (Depends-on): Likewise.
3533         * modules/ioctl (Depends-on): Likewise.
3534         * modules/isapipe (Depends-on): Likewise.
3535         * modules/isfinite (Depends-on): Likewise.
3536         * modules/isinf (Depends-on): Likewise.
3537         * modules/lchown (Depends-on): Likewise.
3538         * modules/ldexpl (Depends-on): Likewise.
3539         * modules/link (Depends-on): Likewise.
3540         * modules/linkat (Depends-on): Likewise.
3541         * modules/listen (Depends-on): Likewise.
3542         * modules/logl (Depends-on): Likewise.
3543         * modules/lstat (Depends-on): Likewise.
3544         * modules/mbrlen (Depends-on): Likewise.
3545         * modules/mbrtowc (Depends-on): Likewise.
3546         * modules/mbsinit (Depends-on): Likewise.
3547         * modules/mbsnrtowcs (Depends-on): Likewise.
3548         * modules/mbsrtowcs (Depends-on): Likewise.
3549         * modules/mbtowc (Depends-on): Likewise.
3550         * modules/memcmp (Depends-on): Likewise.
3551         * modules/mkdir (Depends-on): Likewise.
3552         * modules/mkdtemp (Depends-on): Likewise.
3553         * modules/mkfifo (Depends-on): Likewise.
3554         * modules/mkfifoat (Depends-on): Likewise.
3555         * modules/mknod (Depends-on): Likewise.
3556         * modules/mkostemp (Depends-on): Likewise.
3557         * modules/mkostemps (Depends-on): Likewise.
3558         * modules/mkstemp (Depends-on): Likewise.
3559         * modules/mkstemps (Depends-on): Likewise.
3560         * modules/mktime (Depends-on): Likewise.
3561         * modules/nanosleep (Depends-on): Likewise.
3562         * modules/open (Depends-on): Likewise.
3563         * modules/openat (Depends-on): Likewise.
3564         * modules/perror (Depends-on): Likewise.
3565         * modules/poll (Depends-on): Likewise.
3566         * modules/popen (Depends-on): Likewise.
3567         * modules/posix_spawn (Depends-on): Likewise.
3568         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
3569         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
3570         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
3571         * modules/posix_spawnp (Depends-on): Likewise.
3572         * modules/pread (Depends-on): Likewise.
3573         * modules/printf-posix (Depends-on): Likewise.
3574         * modules/ptsname (Depends-on): Likewise.
3575         * modules/putenv (Depends-on): Likewise.
3576         * modules/pwrite (Depends-on): Likewise.
3577         * modules/readline (Depends-on): Likewise.
3578         * modules/readlink (Depends-on): Likewise.
3579         * modules/readlinkat (Depends-on): Likewise.
3580         * modules/recv (Depends-on): Likewise.
3581         * modules/recvfrom (Depends-on): Likewise.
3582         * modules/regex (Depends-on): Likewise.
3583         * modules/remove (Depends-on): Likewise.
3584         * modules/rename (Depends-on): Likewise.
3585         * modules/renameat (Depends-on): Likewise.
3586         * modules/rmdir (Depends-on): Likewise.
3587         * modules/round (Depends-on): Likewise.
3588         * modules/roundf (Depends-on): Likewise.
3589         * modules/roundl (Depends-on): Likewise.
3590         * modules/rpmatch (Depends-on): Likewise.
3591         * modules/select (Depends-on): Likewise.
3592         * modules/send (Depends-on): Likewise.
3593         * modules/sendto (Depends-on): Likewise.
3594         * modules/setenv (Depends-on): Likewise.
3595         * modules/setlocale (Depends-on): Likewise.
3596         * modules/setsockopt (Depends-on): Likewise.
3597         * modules/shutdown (Depends-on): Likewise.
3598         * modules/sigaction (Depends-on): Likewise.
3599         * modules/signbit (Depends-on): Likewise.
3600         * modules/sigprocmask (Depends-on): Likewise.
3601         * modules/sinl (Depends-on): Likewise.
3602         * modules/sleep (Depends-on): Likewise.
3603         * modules/snprintf (Depends-on): Likewise.
3604         * modules/snprintf-posix (Depends-on): Likewise.
3605         * modules/socket (Depends-on): Likewise.
3606         * modules/sprintf-posix (Depends-on): Likewise.
3607         * modules/sqrtl (Depends-on): Likewise.
3608         * modules/stat (Depends-on): Likewise.
3609         * modules/strchrnul (Depends-on): Likewise.
3610         * modules/strdup-posix (Depends-on): Likewise.
3611         * modules/strerror (Depends-on): Likewise.
3612         * modules/strerror_r-posix (Depends-on): Likewise.
3613         * modules/strndup (Depends-on): Likewise.
3614         * modules/strnlen (Depends-on): Likewise.
3615         * modules/strptime (Depends-on): Likewise.
3616         * modules/strsep (Depends-on): Likewise.
3617         * modules/strsignal (Depends-on): Likewise.
3618         * modules/strstr-simple (Depends-on): Likewise.
3619         * modules/strtod (Depends-on): Likewise.
3620         * modules/strtoimax (Depends-on): Likewise.
3621         * modules/strtok_r (Depends-on): Likewise.
3622         * modules/strtoumax (Depends-on): Likewise.
3623         * modules/symlink (Depends-on): Likewise.
3624         * modules/symlinkat (Depends-on): Likewise.
3625         * modules/tanl (Depends-on): Likewise.
3626         * modules/tcgetsid (Depends-on): Likewise.
3627         * modules/tmpfile (Depends-on): Likewise.
3628         * modules/trunc (Depends-on): Likewise.
3629         * modules/truncf (Depends-on): Likewise.
3630         * modules/truncl (Depends-on): Likewise.
3631         * modules/uname (Depends-on): Likewise.
3632         * modules/unlink (Depends-on): Likewise.
3633         * modules/unlockpt (Depends-on): Likewise.
3634         * modules/unsetenv (Depends-on): Likewise.
3635         * modules/usleep (Depends-on): Likewise.
3636         * modules/utimensat (Depends-on): Likewise.
3637         * modules/vasprintf (Depends-on): Likewise.
3638         * modules/vdprintf (Depends-on): Likewise.
3639         * modules/vdprintf-posix (Depends-on): Likewise.
3640         * modules/vfprintf-posix (Depends-on): Likewise.
3641         * modules/vprintf-posix (Depends-on): Likewise.
3642         * modules/vsnprintf (Depends-on): Likewise.
3643         * modules/vsnprintf-posix (Depends-on): Likewise.
3644         * modules/vsprintf-posix (Depends-on): Likewise.
3645         * modules/wcrtomb (Depends-on): Likewise.
3646         * modules/wcscasecmp (Depends-on): Likewise.
3647         * modules/wcscspn (Depends-on): Likewise.
3648         * modules/wcsdup (Depends-on): Likewise.
3649         * modules/wcsncasecmp (Depends-on): Likewise.
3650         * modules/wcsnrtombs (Depends-on): Likewise.
3651         * modules/wcspbrk (Depends-on): Likewise.
3652         * modules/wcsrtombs (Depends-on): Likewise.
3653         * modules/wcsspn (Depends-on): Likewise.
3654         * modules/wcsstr (Depends-on): Likewise.
3655         * modules/wcstok (Depends-on): Likewise.
3656         * modules/wcswidth (Depends-on): Likewise.
3657         * modules/wctob (Depends-on): Likewise.
3658         * modules/wctomb (Depends-on): Likewise.
3659         * modules/wctype (Depends-on): Likewise.
3660         * modules/wcwidth (Depends-on): Likewise.
3661         * modules/write (Depends-on): Likewise.
3662
3663 2011-05-03  Bruno Haible  <bruno@clisp.org>
3664
3665         Support for conditional dependencies.
3666         * doc/gnulib.texi (Module description): Document the syntax of
3667         conditional dependencies.
3668         * gnulib-tool: New option --conditional-dependencies.
3669         (func_usage): Document it.
3670         (cond_dependencies): New variable.
3671         (func_get_automake_snippet_conditional,
3672         func_get_automake_snippet_unconditional): New functions, extracted from
3673         func_get_automake_snippet.
3674         (func_get_automake_snippet): Use them.
3675         (sed_first_32_chars): New variable.
3676         (func_module_shellfunc_name): New function.
3677         (func_module_shellvar_name): New function.
3678         (func_module_conditional_name): New function.
3679         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
3680         func_cond_module_condition): New functions.
3681         (func_modules_transitive_closure): Add support for conditional
3682         dependencies.
3683         (func_emit_lib_Makefile_am): For a conditional module, enclose the
3684         conditional automake snippet in an automake conditional.
3685         (func_emit_autoconf_snippets): Emit shell functions that contain the
3686         code for conditional modules.
3687         (func_import, func_create_testdir): Update specification.
3688
3689 2011-05-03  Eric Blake  <eblake@redhat.com>
3690
3691         test-getaddrinfo: report error information
3692         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
3693
3694 2011-05-03  Jim Meyering  <meyering@redhat.com>
3695
3696         bootstrap: avoid build failure when $GZIP is set
3697         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
3698         program name.  If defined at all, it is supposed to list gzip options.
3699         Reported by Alan Curry in http://debbugs.gnu.org/8609
3700
3701 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
3702
3703         readme-release: new module with release instructions
3704         * modules/readme-release: New module.
3705         * top/README-release: New file, from coreutils, grep, diffutils.
3706         * MODULES.html.sh (Support for maintaining and releasing): Add it.
3707
3708 2011-05-02  Eric Blake  <eblake@redhat.com>
3709
3710         fflush: also replace fclose when fixing fflush
3711         * modules/fflush (Depends-on): Add fclose.
3712         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
3713         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
3714         memstreams with no backing fd.
3715         * doc/posix-functions/fclose.texi (fclose): Document the use of
3716         fflush module to fix the bug.
3717         * tests/test-fclose.c (main): Relax test when fclose is used in
3718         isolation.
3719
3720         fclose: add some tests
3721         * modules/fclose-tests: New test module.
3722         * tests/test-fclose.c: New file.
3723         * doc/posix-functions/fclose.texi (fclose): Document the bug.
3724
3725         fclose: reduced dependencies
3726         * modules/fclose (Depends-on): Switch from fflush/fseeko to
3727         simpler lseek.
3728         * lib/fclose.c (rpl_fclose): Likewise.
3729         Reported by Simon Josefsson.
3730
3731         exit: drop remaining clients
3732         * modules/argmatch (Depends-on): Replace exit with stdlib.
3733         * modules/copy-file (Depends-on): Likewise.
3734         * modules/execute (Depends-on): Likewise.
3735         * modules/exitfail (Depends-on): Likewise.
3736         * modules/obstack (Depends-on): Likewise.
3737         * modules/pagealign_alloc (Depends-on): Likewise.
3738         * modules/pipe-filter-gi (Depends-on): Likewise.
3739         * modules/pipe-filter-ii (Depends-on): Likewise.
3740         * modules/savewd (Depends-on): Likewise.
3741         * modules/spawn-pipe (Depends-on): Likewise.
3742         * modules/wait-process (Depends-on): Likewise.
3743         * modules/xsetenv (Depends-on): Likewise.
3744         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
3745         * modules/git-merge-changelog (Depends-on): Likewise.
3746         * modules/long-options (Depends-on): Likewise.
3747         * modules/pt_chown (Depends-on): Likewise.
3748         * modules/sysexits (Depends-on): Likewise.
3749
3750         freading: relax license from LGPLv3+ to LGPLv2+
3751         * modules/freading (License): Relax LGPL version.
3752
3753 2011-05-02  Bruno Haible  <bruno@clisp.org>
3754
3755         fchdir: Remove unused dependencies.
3756         * modules/fchdir (Depends-on): Remove include_next.
3757
3758 2011-05-02  Bruno Haible  <bruno@clisp.org>
3759
3760         gnulib-tool: Refactor.
3761         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
3762         from func_emit_autoconf_snippets.
3763         (func_emit_autoconf_snippets): Use it.
3764
3765 2011-05-02  Simon Josefsson  <simon@josefsson.org>
3766
3767         * NEWS: Document removal of 'exit'.
3768         * modules/exit: Remove file.
3769
3770 2011-05-01  Bruno Haible  <bruno@clisp.org>
3771
3772         Update DEPENDENCIES.
3773         * DEPENDENCIES (gettext): Recommend the newest release.
3774         Reported by Simon Josefsson.
3775
3776 2011-05-01  Bruno Haible  <bruno@clisp.org>
3777
3778         gnulib-tool: Reduce code duplication.
3779         * gnulib-tool (func_emit_autoconf_snippets): New function.
3780         (func_import, func_create_testdir): Use it.
3781
3782 2011-04-30  Eric Blake  <eblake@redhat.com>
3783
3784         fclose: don't fail on non-seekable input stream
3785         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
3786         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
3787         since fflush is allowed to fail in that case.
3788
3789 2011-04-30  Bruno Haible  <bruno@clisp.org>
3790
3791         dup3: cleanup
3792         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
3793
3794 2011-04-30  Bruno Haible  <bruno@clisp.org>
3795
3796         netdb: Make it work in C++ mode.
3797         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
3798         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
3799         module.
3800         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
3801         gl_MODULE_INDICATOR_FOR_TESTS.
3802         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
3803         * modules/netdb-c++-tests: New file.
3804         * tests/test-netdb-c++.cc: New file.
3805
3806 2011-04-30  Bruno Haible  <bruno@clisp.org>
3807
3808         New modules 'vfscanf', 'vscanf'.
3809         * modules/vfscanf: New file.
3810         * modules/vscanf: New file.
3811         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
3812         here.
3813         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
3814         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
3815
3816 2011-04-30  Bruno Haible  <bruno@clisp.org>
3817
3818         passfd: Add comments.
3819         * lib/passfd.c: Add comments about platforms.
3820
3821 2011-04-30  Bruno Haible  <bruno@clisp.org>
3822
3823         sys_uio: Make <sys/uio.h> self-contained.
3824         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
3825         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
3826
3827 2011-04-30  Bruno Haible  <bruno@clisp.org>
3828
3829         sys_socket: Ensure 'struct iovec' definition.
3830         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
3831         <sys/socket.h>.
3832         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
3833
3834 2011-04-30  Bruno Haible  <bruno@clisp.org>
3835
3836         sys_uio: Protect definition of 'struct iovec'.
3837         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
3838         it as a C struct.
3839
3840 2011-04-30  Bruno Haible  <bruno@clisp.org>
3841
3842         manywarnings: fix indentation
3843         * m4/manywarnings.m4: Indent by 2 spaces consistently.
3844
3845 2011-04-30  Pádraig Brady <P@draigBrady.com>
3846
3847         manywarnings: add -Wno-missing-field-initializers if needed.
3848         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
3849         option if it's needed to allow initialization with { 0, }
3850
3851 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
3852
3853         announce-gen: cosmetic improvement
3854         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
3855
3856 2011-04-29  Jim Meyering  <meyering@redhat.com>
3857
3858         vc-list-files: indent with spaces, not TABs
3859         * build-aux/vc-list-files: Convert leading TABs to spaces,
3860         to match the style of most other files in gnulib.
3861
3862         announce-gen: indent with spaces, not TABs
3863         * build-aux/announce-gen: Convert all TABs to spaces, to match
3864         the style of most other files in gnulib.
3865
3866 2011-04-29  Eric Blake  <eblake@redhat.com>
3867
3868         quotearg: avoid uninitialized variable use
3869         * lib/quotearg.c (quoting_options_from_style): Initialize
3870         remaining fields, and ensure that custom styles are only used via
3871         quoting_options rather than quoting_style.
3872
3873 2011-04-29  Jim Meyering  <meyering@redhat.com>
3874
3875         maint.mk: remove unused VC-tag variable
3876         * top/maint.mk (VC-tag): Remove unused variable.
3877
3878 2011-04-29  Bruno Haible  <bruno@clisp.org>
3879
3880         netdb: fix gai_strerror replacements
3881         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
3882         * modules/netdb: Substitute it.
3883
3884 2011-04-29  Jim Meyering  <meyering@redhat.com>
3885
3886         test-getcwd.c: avoid new set-but-not-used warning
3887         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
3888         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
3889         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
3890         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
3891
3892         test-hash.c: avoid a new shadowing warning
3893         * tests/test-hash.c (main): Don't shadow "dup".
3894
3895 2011-04-28  Eric Blake  <eblake@redhat.com>
3896
3897         getaddrinfo: fix gai_strerror signature
3898         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
3899         and work around mingw with UNICODE defined.
3900         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
3901         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
3902         * modules/netdb (Makefile.am): Substitute it.
3903         * lib/netdb.in.h (gai_strerror): Declare replacement.
3904         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
3905         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
3906         the fix.
3907
3908         getsockopt: avoid compiler warning
3909         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
3910         Reported by Matthias Bolte.
3911
3912         tests: drop unused link dependency
3913         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
3914         * modules/dirent-safer-tests (Makefile.am): Likewise.
3915         * modules/fdopendir-tests (Makefile.am): Likewise.
3916         * modules/mkfifoat-tests (Makefile.am): Likewise.
3917         * modules/openat-safer-tests (Makefile.am): Likewise.
3918         * modules/openat-tests (Makefile.am): Likewise.
3919         * modules/readlinkat-tests (Makefile.am): Likewise.
3920         * modules/symlinkat-tests (Makefile.am): Likewise.
3921         * modules/linkat-tests (Makefile.am): Likewise.
3922         (Depends-on): Switch to filenamecat-lgpl.
3923         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
3924         LIBINTL.
3925         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
3926         * tests/test-linkat.c (main): Don't require xalloc.
3927
3928         hash, mgetgroups: drop xalloc dependency
3929         * lib/hash.c (includes): Adjust includes.
3930         * lib/mgetgroups.c (includes): Likewise.
3931         (xgetgroups): Move...
3932         * lib/xgetgroups.c: ...to new file.
3933         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
3934         * modules/xgetgroups: New file, split from...
3935         * modules/mgetgroups: ...here.
3936         (Depends-on): Add xalloc-oversized.
3937         * modules/hash (Depends-on): Likewise.
3938         * modules/hash-tests (Depends-on): Drop xalloc.
3939         (test_hash_LDADD): Drop unused library.
3940         * tests/test-hash.c (main): Break xalloc dependency.
3941         (includes): Drop unused include.
3942
3943         xalloc-oversized: new module
3944         * modules/xalloc-oversized: New module.
3945         * modules/xalloc (Depends-on): Add it.
3946         * lib/xalloc.h (xalloc_oversized): Move...
3947         * lib/xalloc-oversized.h: ...into new file.
3948
3949         utimecmp: drop dependency on xmalloc
3950         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
3951         due to memory pressure.
3952         * modules/utimecmp (Depends-on): Drop xalloc.
3953
3954 2011-04-27  Eric Blake  <eblake@redhat.com>
3955
3956         getcwd: fix mingw bugs
3957         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
3958         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
3959         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
3960
3961 2011-04-27  Bruno Haible  <bruno@clisp.org>
3962
3963         mkstemps: Ensure declaration on MacOS X 10.5.
3964         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
3965         * doc/glibc-functions/mkstemps.texi: Document header file problem on
3966         MacOS X.
3967
3968 2011-04-27  Bruno Haible  <bruno@clisp.org>
3969
3970         mkstemp: More documentation.
3971         * doc/posix-functions/mkstemp.texi: Document header file problem on
3972         MacOS X.
3973
3974 2011-04-27  Bruno Haible  <bruno@clisp.org>
3975
3976         mkstemp: Tweak configure message when cross-compiling.
3977         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
3978         result as a guess.
3979
3980 2011-04-27  Bruno Haible  <bruno@clisp.org>
3981
3982         clean-temp: Clarify what it does.
3983         * lib/clean-temp.h: Add more comments.
3984         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
3985         module.
3986         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
3987         * doc/glibc-functions/mkstemps.texi: Likewise.
3988         * doc/glibc-functions/mkostemps.texi: Likewise.
3989
3990 2011-04-27  Eric Blake  <eblake@redhat.com>
3991
3992         fchdir: avoid extra chdir and fix test
3993         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
3994         getcwd-lgpl.
3995         * lib/fchdir.c (get_name): Any absolute name will do; it does not
3996         have to be canonical.
3997         (canonicalize_file_name): Drop unused macro.
3998         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
3999
4000         filenamecat-lgpl: fix licence
4001         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
4002         when it was first created.
4003
4004         linkat, renameat: add missing dependency
4005         * modules/linkat (Depends-on): Require getcwd-lgpl.
4006         * modules/renameat (Depends-on): Likewise.
4007
4008         tests: reduce dependencies
4009         * tests/test-linkat.c (main): Use lighter-weight getcwd.
4010         * tests/test-renameat.c (main): Likewise.
4011         * modules/linkat-tests (Depends-on): Relax dependency.
4012         * modules/renameat-tests (Depends-on): Likewise.
4013         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
4014         dependency explicit.
4015
4016         save-cwd: reduce default dependency
4017         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
4018         * lib/save-cwd.c: Update comments.
4019         * NEWS: Document the semantic change.
4020
4021         getcwd: enhance tests
4022         * tests/test-getcwd-lgpl.c: New file, taken from...
4023         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
4024         repeat long path stress tests from m4 probe.
4025         * modules/getcwd-lgpl-tests: New module.
4026         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
4027         * m4/getcwd-abort-bug.m4: Update comment.
4028         * m4/getcwd-path-max.m4: Likewise.
4029
4030         getcwd-lgpl: new module
4031         * modules/getcwd-lgpl: New module.
4032         * lib/getcwd-lgpl.c: New file.
4033         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4034         * MODULES.html.sh (lacking POSIX:2008): Likewise.
4035         * modules/getcwd (configure.ac): Set C witness.
4036         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
4037
4038         getcwd: tweak comments
4039         * m4/getcwd-abort-bug.m4: Fix comments.
4040         * m4/getcwd-path-max.m4: Likewise.
4041         * m4/getcwd.m4: Likewise.
4042
4043 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4044         and Eric Blake  <eblake@redhat.com>
4045
4046         mkstemp: replace if system version uses wrong permissions
4047         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
4048         read/write mode bits set in file created by mkstemp.
4049         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
4050
4051 2011-04-27  Eric Blake  <eblake@redhat.com>
4052
4053         passfd: avoid compiler warning
4054         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
4055         Reported by Laine Stump.
4056
4057 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
4058
4059         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
4060         required by the NetBSD (and perhaps other 4.4BSD derived) join.
4061
4062 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4063         and Eric Blake  <eblake@redhat.com>
4064
4065         mkstemp: mention clean-temp module
4066         * lib/mkstemp.c: Add comment.
4067         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
4068
4069 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
4070
4071         inttypes: also provide default values for 32-bit tests
4072         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
4073         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
4074
4075 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
4076
4077         strtoumax: remove dependency on strtoimax
4078         This is like the strtoull change of yesterday.
4079         * modules/strtoumax (Files): Add lib/strtoimax.c.
4080         (Depends-on): Remove strtoimax and add verify.
4081
4082         inttypes-incomplete: new module
4083         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
4084         all but the PRI* and SCN* parts of gl_INTTYPES_H.
4085         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
4086         of gl_INTTYPES_H.
4087         (gl_INTTYPES_H): Rewrite in terms of these new macros.
4088         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
4089         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
4090         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
4091         * modules/strtoumax, modules/xstrtol (Depends-on):
4092         Depend on inttypes-incomplete, not inttypes.
4093         * modules/inttypes-incomplete: New module, containing the contents
4094         of the old modules/inttypes module, except that the Files: section
4095         omits m4/inttypes-pri.m4, and the configure.ac section invokes
4096         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
4097         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
4098         (Depends-on): Depend only on inttypes-incomplete.
4099         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
4100
4101         inttypes: omit now-redundant strtoimax and strtoumax work
4102         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
4103         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
4104
4105         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
4106         This supports apps that need pointers to strtoimax and strtoumax,
4107         and ports to HP-UX 11.00 64.bit, which has macros that expand to
4108         nonexistent functions.  See
4109         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
4110         et seq.
4111         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
4112         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
4113         a macro.
4114         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
4115
4116 2011-04-25  Simon Josefsson  <simon@josefsson.org>
4117
4118         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
4119
4120 2011-04-25  Bruno Haible  <bruno@clisp.org>
4121
4122         strtol, strtoul: Mark modules as obsolete.
4123         * modules/strtol (Status, Notice): New sections.
4124         * modules/strtoul (Status, Notice): New sections.
4125
4126 2011-04-25  Bruno Haible  <bruno@clisp.org>
4127
4128         strtod: Remove check for strtod, unless supporting old platforms.
4129         * modules/strtod-obsolete: New file.
4130         * m4/strtod-obsolete.m4: New file.
4131         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
4132         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
4133         * modules/strtod (Depends-on): Add strtod-obsolete.
4134         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
4135
4136 2011-04-25  Bruno Haible  <bruno@clisp.org>
4137
4138         strcase: Make module obsolete.
4139         * modules/strcase (Status, Notice): New sections.
4140
4141 2011-04-25  Bruno Haible  <bruno@clisp.org>
4142
4143         dup2: Remove check for dup2, unless supporting old obsolete platforms.
4144         * modules/dup2-obsolete: New file.
4145         * m4/dup2-obsolete.m4: New file.
4146         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
4147         gl_FUNC_DUP2_OBSOLETE is not also defined.
4148         * modules/dup2 (Depends-on): Add dup2-obsolete.
4149         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
4150
4151 2011-04-25  Bruno Haible  <bruno@clisp.org>
4152
4153         strnlen: Avoid memchr related link error on old obsolete platforms.
4154         * modules/memchr-obsolete: New file.
4155         * m4/memchr-obsolete.m4: New file.
4156         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
4157         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
4158         * modules/memchr (Depends-on): Add memchr-obsolete.
4159         * modules/strnlen (Depends-on): Likewise.
4160         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
4161
4162 2011-04-25  Jim Meyering  <meyering@redhat.com>
4163
4164         maint.mk: makefile_at_at_check extend and clean up
4165         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
4166         in addition to */Makefile.am.
4167         Exempt legitimate uses of @VAR@ notation, e.g.,
4168         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
4169         Remove obsolete coreutils-specific comment.
4170         Prompted by discussion here:
4171         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
4172
4173 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
4174
4175         strtoul: remove dependency on strtol
4176         This is so that 'configure' need not check for strtol merely because
4177         the application needs strtoul.
4178         * modules/strtoul (Files): Add lib/strtol.c.
4179         (Depends-on): Remove strtol.
4180
4181         strtoull: remove dependency on strtoul
4182         This is like the strtoll change.
4183         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
4184         (Depends-on): Remove strtoul.
4185
4186         strtoll: remove dependency on strtol
4187         This is so that 'configure' need not check for strtol merely because
4188         the application needs strtoll.
4189         * modules/strtoll (Files): Add lib/strtol.c.
4190         (Depends-on): Remove strtol.
4191
4192 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4193
4194         inttypes: Move some configure check to module 'imaxdiv'.
4195         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
4196         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
4197         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
4198
4199 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4200
4201         inttypes: Move some configure check to module 'imaxabs'.
4202         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
4203         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
4204         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
4205
4206 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4207
4208         inttypes: Remove configure tests that are not needed since 2009-12-31.
4209         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
4210         gl_cv_header_working_inttypes_h.
4211
4212 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4213
4214         * modules/strnlen (Depends-on): Remove memchr.
4215         The strnlen implementation doesn't need the memchr module's fixes; see
4216         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
4217
4218         strtol: remove dependency on wchar
4219         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
4220         * modules/strtol (Depends-on): Remove wchar.
4221
4222 2011-04-21  Eric Blake  <eblake@redhat.com>
4223
4224         passfd: fix test regression on Linux
4225         * modules/passfd-tests (configure.ac): Correct socketpair check.
4226
4227         passfd: speed up configure and drop unused code
4228         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
4229         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
4230         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
4231         Instead of probing at configure for unix_scm_rights_bsd44_way,
4232         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
4233         check to a struct member probe.
4234         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
4235         (sendfd, recvfd): Update preprocessor checks.
4236         * modules/passfd (Files): Reflect rename, and drop unused file.
4237         (Depends-on): Drop unused dependency.
4238
4239         passfd: allow compilation on mingw
4240         * modules/sys_socket (Depends-on): Add sys_uio.
4241         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
4242         iovec and a minimal struct msghdr.
4243         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
4244         * tests/test-sys_socket.c (main): Enhance test.
4245         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
4246         guaranteed to provide what we need.
4247         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
4248         * modules/passfd-tests (Depends-on): Add sys_wait.
4249         * tests/test-passfd.c (main): Skip test on mingw, for now.
4250         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
4251         partial 'struct msghdr' implementation.
4252
4253         sys_uio: new module
4254         * modules/sys_uio: New module.
4255         * modules/sys_uio-tests: Likewise.
4256         * lib/sys_uio.in.h: New file.
4257         * m4/sys_uio_h.m4: Likewise.
4258         * tests/test-sys_uio.c: Likewise.
4259         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
4260         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
4261
4262 2011-04-20  Jim Meyering  <meyering@redhat.com>
4263
4264         useless-if-before-free: avoid false-positive
4265         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
4266         disjunct so that it too requires a terminating ";".  Without that,
4267         this script would identify as useless one statement from gcc that
4268         was not:
4269           if (aligned_ptr)
4270             free (((void **) aligned_ptr) [-1]);
4271
4272 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
4273
4274         doc: update users.txt.
4275         * users.txt: Add barcode.
4276
4277 2011-04-19  Bruno Haible  <bruno@clisp.org>
4278
4279         ioctl: Remove link dependency on native Windows.
4280         * lib/fd-hook.h: Renamed from lib/close-hook.h.
4281         (gl_close_fn, gl_ioctl_fn): New types.
4282         (struct fd_hook): Renamed from struct close_hook. Change type of
4283         private_close_fn field. Add private_ioctl_fn field.
4284         (close_hook_fn): Add parameter for primary close method.
4285         (execute_close_hooks, execute_all_close_hooks): Likewise.
4286         (ioctl_hook_fn): New type.
4287         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
4288         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4289         argument.
4290         (unregister_fd_hook): Renamed from unregister_close_hook.
4291         * lib/fd-hook.c: Renamed from lib/close-hook.c.
4292         Don't include <unistd.h>.
4293         (close): Remove undef.
4294         (anchor): Update.
4295         (execute_close_hooks): Add argument for primary close method.
4296         (execute_all_close_hooks): Likewise.
4297         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
4298         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4299         argument. Allow each argument to be NULL.
4300         (unregister_fd_hook): Renamed from unregister_close_hook.
4301         * lib/close.c (rpl_close): Pass 'close' function pointer to
4302         execute_all_close_hooks.
4303         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
4304         (primary_ioctl): New function.
4305         (ioctl): Don't call ioctlsocket here. Instead, call
4306         execute_all_ioctl_hooks.
4307         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
4308         close method.
4309         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
4310         (fd_sockets_hook): Renamed from close_sockets_hook.
4311         (gl_sockets_startup, gl_sockets_cleanup): Update.
4312         * modules/fd-hook: Renamed from modules/close-hook. Update.
4313         * modules/close (Depends-on): Add fd-hook, remove close-hook.
4314         * modules/sockets (Depends-on): Likewise.
4315         * modules/ioctl (Depends-on): Add fd-hook.
4316         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
4317         GNULIB_SOCKET.
4318
4319 2011-04-19  Bruno Haible  <bruno@clisp.org>
4320
4321         Move the support of O_NONBLOCK in open() to the 'open' module.
4322         * modules/nonblocking (Depends-on): Remove 'open'.
4323         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
4324         gl_cv_have_open_O_NONBLOCK.
4325         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
4326         O_NONBLOCK support.
4327         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
4328
4329 2011-04-17  Bruno Haible  <bruno@clisp.org>
4330
4331         pipe2: Simplify code.
4332         * lib/pipe2.c (pipe2): Reduce code duplication.
4333
4334 2011-04-17  Bruno Haible  <bruno@clisp.org>
4335
4336         nonblocking: Add comment.
4337         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
4338
4339 2011-04-17  Bruno Haible  <bruno@clisp.org>
4340
4341         nonblocking: Add tests for sockets.
4342         * tests/test-nonblocking-socket.sh: New file.
4343         * tests/test-nonblocking-socket-main.c: New file.
4344         * tests/test-nonblocking-socket-child.c: New file.
4345         * tests/test-nonblocking-socket.h: New file.
4346         * tests/socket-server.h: New file.
4347         * tests/socket-client.h: New file.
4348         * modules/nonblocking-socket-tests: New file.
4349         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
4350
4351 2011-04-17  Bruno Haible  <bruno@clisp.org>
4352
4353         nonblocking: Add tests for pipes.
4354         * tests/test-nonblocking-pipe.sh: New file.
4355         * tests/test-nonblocking-pipe-main.c: New file.
4356         * tests/test-nonblocking-pipe-child.c: New file.
4357         * tests/test-nonblocking-pipe.h: New file.
4358         * tests/test-nonblocking-writer.h: New file.
4359         * tests/test-nonblocking-reader.h: New file.
4360         * tests/test-nonblocking-misc.h: New file.
4361         * modules/nonblocking-pipe-tests: New file.
4362         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
4363
4364 2011-04-16  Bruno Haible  <bruno@clisp.org>
4365
4366         gettext: Clarify the needed programmer actions.
4367         * modules/gettext (Notice): New field.
4368         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
4369
4370 2011-04-16  Bruno Haible  <bruno@clisp.org>
4371
4372         strchrnul: Tweak last commit.
4373         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
4374         bug.
4375         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
4376         as in _GL_FUNCDECL_SYS.
4377         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
4378         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
4379
4380 2011-04-15  Eric Blake  <eblake@redhat.com>
4381
4382         strchrnul: work around cygwin bug
4383         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
4384         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
4385         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
4386         * modules/string (Makefile.am): Substitute it.
4387         * lib/string.in.h (strchrnul): Use it.
4388
4389 2011-04-15  Bruno Haible  <bruno@clisp.org>
4390
4391         Don't require lib/stdio-write.c when only module 'stdio' is used.
4392         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
4393         invocation.
4394         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
4395
4396 2011-04-14  Bruno Haible  <bruno@clisp.org>
4397
4398         Support non-blocking pipe I/O in read() on native Windows.
4399         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
4400         (read): New declaration.
4401         * lib/read.c: New file.
4402         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
4403         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
4404         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
4405         vscanf): New declarations.
4406         * lib/stdio-read.c: New file.
4407         * m4/read.m4: New file.
4408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
4409         REPLACE_READ.
4410         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
4411         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4412         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
4413         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
4414         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
4415         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4416         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4417         * modules/read: New file.
4418         * modules/nonblocking (Files): Add lib/stdio-read.c.
4419         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
4420         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
4421         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4422         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4423         * modules/pread (Depends-on): Add read.
4424         * modules/safe-read (Depends-on): Likewise.
4425         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
4426         gets, scanf, vfscanf, vscanf): Verify signatures.
4427         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
4428         problem with non-blocking pipes.
4429         * doc/posix-functions/fgetc.texi: Likewise.
4430         * doc/posix-functions/fgets.texi: Likewise.
4431         * doc/posix-functions/fread.texi: Likewise.
4432         * doc/posix-functions/fscanf.texi: Likewise.
4433         * doc/posix-functions/getc.texi: Likewise.
4434         * doc/posix-functions/getchar.texi: Likewise.
4435         * doc/posix-functions/gets.texi: Likewise.
4436         * doc/posix-functions/scanf.texi: Likewise.
4437         * doc/posix-functions/vfscanf.texi: Likewise.
4438         * doc/posix-functions/vscanf.texi: Likewise.
4439
4440 2011-04-14  Bruno Haible  <bruno@clisp.org>
4441
4442         Support non-blocking pipe I/O in write() on native Windows.
4443         * lib/write.c (rpl_write): Split a write request that failed merely
4444         because the byte count was larger than the pipe buffer's size.
4445         * doc/posix-functions/write.texi: Mention the problem with large byte
4446         counts.
4447
4448 2011-04-14  Bruno Haible  <bruno@clisp.org>
4449
4450         wchar: Ensure that wchar_t gets defined on uClibc.
4451         * lib/wchar.in.h: On uClibc, include <stddef.h>.
4452         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
4453
4454 2011-04-13  Bruno Haible  <bruno@clisp.org>
4455
4456         safe-write, full-read: Avoid unnecessary compilation units.
4457         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
4458         (Depends-on): Remove safe-read. Add ssize_t.
4459         * modules/full-read (Files): Add lib/full-write.c.
4460         (Depends-on): Add full-write.
4461
4462 2011-04-13  Bruno Haible  <bruno@clisp.org>
4463
4464         Support non-blocking pipe I/O and SIGPIPE in pwrite().
4465         * modules/pwrite (Depends-on): Add 'write'.
4466
4467 2011-04-13  Bruno Haible  <bruno@clisp.org>
4468
4469         Support non-blocking pipe I/O in write() on native Windows.
4470         * lib/unistd.in.h (write): Enable replacement also if
4471         GNULIB_UNISTD_H_NONBLOCKING is 1.
4472         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
4473         (rpl_write): When failing to write on a non-blocking pipe, change
4474         errno from ENOSPC to EAGAIN.
4475         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
4476         putchar, puts, vfprintf, vprintf): Enable replacement also if
4477         GNULIB_STDIO_H_NONBLOCKING is 1.
4478         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
4479         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
4480         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
4481         CALL_WITH_SIGPIPE_EMULATION.
4482         (CALL_WITH_SIGPIPE_EMULATION): Use them.
4483         * m4/nonblocking.m4: New file.
4484         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
4485         for non-blocking I/O support.
4486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4487         GNULIB_UNISTD_H_NONBLOCKING.
4488         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
4489         required for non-blocking I/O support.
4490         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
4491         * modules/nonblocking (Files): Add m4/nonblocking.m4,
4492         lib/stdio-write.c, m4/asm-underscore.m4.
4493         (Depends-on): Add stdio, unistd.
4494         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
4495         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
4496         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
4497         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
4498         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
4499         problem with non-blocking pipes.
4500         * doc/posix-functions/fputc.texi: Likewise.
4501         * doc/posix-functions/fputs.texi: Likewise.
4502         * doc/posix-functions/fwrite.texi: Likewise.
4503         * doc/posix-functions/printf.texi: Likewise.
4504         * doc/posix-functions/putc.texi: Likewise.
4505         * doc/posix-functions/putchar.texi: Likewise.
4506         * doc/posix-functions/puts.texi: Likewise.
4507         * doc/posix-functions/vfprintf.texi: Likewise.
4508         * doc/posix-functions/vprintf.texi: Likewise.
4509         * doc/posix-functions/write.texi: Likewise.
4510
4511 2011-04-10  Jim Meyering  <meyering@redhat.com>
4512
4513         maint.mk: prohibit doubled words
4514         Detect them also when they're separated by a newline.
4515         There are 3 ways to customize it:
4516           - disable the test on a per file basis, as usual with rules using
4517             $(VC_LIST_EXCEPT)
4518           - replace the default doubled-word-selecting regexp (affects all files)
4519           - ignore a particular file-vs-doubled-word match
4520         I nearly used that last one to ignore the "is is" match in
4521         coreutils' NEWS file, since the text was "ls -is is ..."
4522         To do that, I would have added this line to cfg.mk:
4523           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
4524         but it would have ignored any "is is" match in NEWS.
4525         Low probability, but still...
4526         Instead, I changed the text, slightly:
4527           -  ls -is is now consistent with ls -lis in ignoring values returned
4528           +  "ls -is" is now consistent with ls -lis in ignoring values returned
4529         * top/maint.mk (prohibit_double_word_RE_): Provide default.
4530         (prohibit_doubled_word_): Define.
4531         (sc_prohibit_doubled_word): New rule.
4532         (sc_prohibit_the_the): Remove.  Subsumed by the above.
4533
4534 2011-04-10  Jim Meyering  <meyering@redhat.com>
4535
4536         maint: fix doubled-word typo in comment
4537         * m4/gethostname.m4: s/is is/it is/
4538         * m4/getdomainname.m4: Likewise.
4539
4540 2011-04-10  Jim Meyering  <meyering@redhat.com>
4541
4542         maint: remove doubled word: s/it it/it/
4543         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
4544
4545 2011-04-10  Jim Meyering  <meyering@redhat.com>
4546
4547         maint.mk: remove useless semicolon and backslash
4548         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
4549         semicolon and backslash.
4550
4551 2011-04-10  Bruno Haible  <bruno@clisp.org>
4552
4553         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
4554         * modules/stdint-tests (Depends-on): Add wchar.
4555
4556 2011-04-10  Jim Meyering  <meyering@redhat.com>
4557
4558         maint: remove doubled words in comments, e.g., s/a a/a/
4559         * lib/strptime.c (day_of_the_week): s/the the/the/
4560         * tests/test-chown.h (test_chown): s/a a/a/
4561
4562         test-chown.h: correct a cast
4563         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
4564         when the destination is a stat.st_gid.
4565
4566 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
4567
4568         getaddrinfo: Fix test for sa_len member.
4569         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
4570         include <sys/types.h> before <sys/socket.h>.
4571
4572 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
4573
4574         maint: change "can not" to "cannot"
4575         * doc/posix-functions/iconv.texi (iconv): This one crossed line
4576         boundaries.
4577
4578 2011-04-09  Jim Meyering  <meyering@redhat.com>
4579
4580         maint: change "a a" to "a"
4581         * tests/test-lchown.h (test_lchown): s/a a/a/
4582
4583         maint.mk: prohibit \<the the\>
4584         * top/maint.mk (sc_prohibit_the_the): New rule.
4585
4586         maint: fix "the the" in comment
4587         * lib/count-one-bits.h: s/the the/the/
4588
4589         maint: change "can not" to "cannot"
4590         But do not change the occurrences in maintain.texi or in
4591         build-aux/po/Makefile.in.in, which I presume comes from gettext.
4592         * doc/gnulib-tool.texi: s/can not/cannot/
4593         * doc/posix-functions/accept.texi (accept): Likewise.
4594         * doc/posix-functions/socket.texi (socket): Likewise.
4595         * lib/mbrtowc.c: Likewise.
4596
4597         maint.mk: prohibit use of "can not"
4598         * top/maint.mk (sc_prohibit_can_not): New rule.
4599         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
4600
4601 2011-04-09  Bruno Haible  <bruno@clisp.org>
4602
4603         careadlinkat: Guard against misuse of careadlinkatcwd.
4604         * lib/careadlinkat.c: Include <stdlib.h>.
4605         (careadlinkatcwd): Check that the fd argument is as expected.
4606
4607 2011-04-09  Bruno Haible  <bruno@clisp.org>
4608
4609         careadlinkat: Use common coding style.
4610         * lib/careadlinkat.c: Move gnulib includes after system includes.
4611
4612 2011-04-09  Bruno Haible  <bruno@clisp.org>
4613
4614         careadlinkat: Clarify specification.
4615         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
4616         (careadlinkatcwd): Add comment.
4617         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
4618
4619 2011-04-09  Bruno Haible  <bruno@clisp.org>
4620
4621         areadlinkat: Avoid link error on many platforms.
4622         * modules/areadlinkat (Depends-on): Add areadlink.
4623
4624 2011-04-09  Bruno Haible  <bruno@clisp.org>
4625
4626         allocator, careadlinkat: Fix double-inclusion guard.
4627         * lib/allocator.h: Fix double-inclusion guard.
4628         * lib/careadlinkat.h: Likewise.
4629
4630 2011-04-09  Bruno Haible  <bruno@clisp.org>
4631
4632         relocatable-prog-wrapper: Update after module 'areadlink' changed.
4633         * lib/relocwrapper.c: Update dependencies hierarchy.
4634         * build-aux/install-reloc: Update list of files to be compiled.
4635         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
4636         lib/allocator.[hc].
4637
4638 2011-04-08  Eric Blake  <eblake@redhat.com>
4639
4640         strftime: silence gnulib-tool warning
4641         * modules/strftime-tests (Depends-on): Drop automatic dependency.
4642
4643 2011-04-08  Bruno Haible  <bruno@clisp.org>
4644
4645         verify: Fix syntax error with GCC 4.6 in C++ mode.
4646         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
4647         (HAVE_STATIC_ASSERT): New macro.
4648         (verify_true, verify): Use 'static_assert' if it is supported and
4649         '_Static_assert' is not supported.
4650
4651 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
4652
4653         allocator: New module.
4654         * modules/allocator, lib/allocator.c: New files.
4655         * lib/allocator.h (stdlib_allocator): New decl.
4656         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
4657         Remove.  Do not include <stdlib.h>.
4658         (careadlinkat): Use stdlib_allocator instead of rolling our own.
4659         * modules/careadlinkat (Files): Remove lib/allocator.h.
4660         (Depends-on): Add allocator.
4661
4662         stdlib: let modules use system malloc, realloc
4663         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
4664         if !_GL_USE_STDLIB_ALLOC.
4665         (malloc, realloc): Limit this change to a smaller scope.
4666
4667         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
4668         (malloc, realloc): Don't #undef; no longer needed.
4669         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4670         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4671         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
4672         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4673         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4674         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4675         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4676         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
4677
4678         careadlinkat: rename members to avoid problem
4679         * lib/allocator.h (struct allocator): Rename members from
4680         malloc/realloc to allocate/reallocate, to avoid problems if malloc
4681         and realloc are #define'd.  Reported by Eric Blake in
4682         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
4683         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
4684
4685 2011-04-08  Eric Blake  <eblake@redhat.com>
4686
4687         nonblocking: reduce dependency
4688         * tests/test-nonblocking.c: Only test sockets when in use.
4689         * modules/nonblocking-tests (Depends-on): Drop socket.
4690         (Makefile.am): Link even if sockets are not present.
4691         * modules/pipe2-tests (Makefile.am): Likewise.
4692         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
4693
4694         pipe2: fix O_NONBLOCK support on mingw
4695         * modules/pipe2 (Depends-on): Add nonblocking.
4696         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
4697         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
4698         * tests/test-nonblocking.c (main): Likewise.
4699         * modules/pipe2-tests (Makefile.am): Avoid link failure.
4700
4701         fcntl-h: fix O_ACCMODE on cygwin
4702         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
4703         * lib/fcntl.in.h (O_ACCMODE): Fix it.
4704
4705         pipe-filter: drop O_NONBLOCK workarounds
4706         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
4707         * modules/pipe-filter-ii (Depends-on): Likewise.
4708         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
4709
4710         nonblocking: provide O_NONBLOCK for mingw
4711         * modules/nonblocking (Depends-on): Add open.
4712         (configure.ac): Set new witness macro.
4713         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
4714         * modules/fcntl-h (Makefile.am): Substitute it.
4715         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
4716         nonblocking module is in use.
4717         * lib/nonblocking.c: Adjust portability test.
4718         * lib/open.c (open): Don't let native open see gnulib flag.
4719         * tests/test-fcntl-h.c (main): Enhance test.
4720         * tests/test-open.h (test_open): Likewise.
4721         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
4722
4723         careadlinkat: fix compilation error on mingw
4724         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
4725         within struct allocator.
4726
4727 2011-04-06  Eric Blake  <eblake@redhat.com>
4728
4729         binary-io: relicense under LGPLv2+
4730         * modules/binary-io (License): Relax to LGPLv2+.
4731         Requested for libvirt, and required by pipe2.
4732
4733 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
4734
4735         verify: use _Static_assert if available
4736         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
4737         (verify_true, verify): Use it if available.  This generates better
4738         diagnostics with GCC 4.6.0 and later.
4739
4740 2011-04-05  Bruno Haible  <bruno@clisp.org>
4741
4742         Remove leftover generated .h files after config.status changed.
4743
4744         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
4745         GL_GENERATE_ALLOCA_H.
4746         * modules/alloca-opt (Makefile.am): Remove alloca.h if
4747         GL_GENERATE_ALLOCA_H evaluates to false.
4748
4749         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
4750         GL_GENERATE_ARGZ_H.
4751         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
4752         evaluates to false.
4753
4754         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
4755         GL_GENERATE_BYTESWAP_H.
4756         * modules/byteswap (Makefile.am): Remove byteswap.h if
4757         GL_GENERATE_BYTESWAP_H evaluates to false.
4758
4759         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
4760         GL_GENERATE_ERRNO_H.
4761         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
4762         evaluates to false.
4763
4764         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
4765         GL_GENERATE_FLOAT_H.
4766         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
4767         evaluates to false.
4768
4769         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
4770         GL_GENERATE_FNMATCH_H.
4771         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
4772         GL_GENERATE_FNMATCH_H evaluates to false.
4773
4774         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
4775         GL_GENERATE_GLOB_H.
4776         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
4777         evaluates to false.
4778
4779         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
4780         automake conditional GL_GENERATE_ICONV_H.
4781         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
4782         evaluates to false.
4783
4784         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
4785         GL_GENERATE_NETINET_IN_H.
4786         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
4787         GL_GENERATE_NETINET_IN_H evaluates to false.
4788
4789         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
4790         conditional GL_GENERATE_PTHREAD_H.
4791         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
4792         * modules/pthread (Makefile.am): Remove pthread.h if
4793         GL_GENERATE_PTHREAD_H evaluates to false.
4794
4795         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
4796         GL_GENERATE_SCHED_H.
4797         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
4798         evaluates to false.
4799
4800         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
4801         conditional GL_GENERATE_SELINUX_CONTEXT_H.
4802         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
4803         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
4804
4805         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
4806         GL_GENERATE_STDARG_H.
4807         * modules/stdarg (Makefile.am): Remove stdarg.h if
4808         GL_GENERATE_STDARG_H evaluates to false.
4809
4810         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
4811         GL_GENERATE_STDBOOL_H.
4812         * modules/stdbool (Makefile.am): Remove stdbool.h if
4813         GL_GENERATE_STDBOOL_H evaluates to false.
4814
4815         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
4816         conditional GL_GENERATE_STDDEF_H.
4817         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
4818         * modules/stddef (Makefile.am): Remove stddef.h if
4819         GL_GENERATE_STDDEF_H evaluates to false.
4820
4821         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
4822         GL_GENERATE_STDINT_H.
4823         * modules/stdint (Makefile.am): Remove stdint.h if
4824         GL_GENERATE_STDINT_H evaluates to false.
4825
4826         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
4827         GL_GENERATE_SYSEXITS_H.
4828         * modules/sysexits (Makefile.am): Remove sysexits.h if
4829         GL_GENERATE_SYSEXITS_H evaluates to false.
4830
4831         Reported by Karl Berry and Ralf Wildenhues.
4832
4833 2011-04-05  Bruno Haible  <bruno@clisp.org>
4834
4835         Ensure to rebuild generated .h files when config.status has changed.
4836         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
4837         config.status.
4838         * modules/ctype (Makefile.am): Likewise.
4839         * modules/dirent (Makefile.am): Likewise.
4840         * modules/errno (Makefile.am): Likewise.
4841         * modules/fcntl-h (Makefile.am): Likewise.
4842         * modules/float (Makefile.am): Likewise.
4843         * modules/getopt-posix (Makefile.am): Likewise.
4844         * modules/glob (Makefile.am): Likewise.
4845         * modules/iconv-h (Makefile.am): Likewise.
4846         * modules/inttypes (Makefile.am): Likewise.
4847         * modules/langinfo (Makefile.am): Likewise.
4848         * modules/locale (Makefile.am): Likewise.
4849         * modules/math (Makefile.am): Likewise.
4850         * modules/netdb (Makefile.am): Likewise.
4851         * modules/netinet_in (Makefile.am): Likewise.
4852         * modules/poll-h (Makefile.am): Likewise.
4853         * modules/pthread (Makefile.am): Likewise.
4854         * modules/pty (Makefile.am): Likewise.
4855         * modules/sched (Makefile.am): Likewise.
4856         * modules/search (Makefile.am): Likewise.
4857         * modules/selinux-h (Makefile.am): Likewise.
4858         * modules/signal (Makefile.am): Likewise.
4859         * modules/spawn (Makefile.am): Likewise.
4860         * modules/stdarg (Makefile.am): Likewise.
4861         * modules/stdbool (Makefile.am): Likewise.
4862         * modules/stddef (Makefile.am): Likewise.
4863         * modules/stdint (Makefile.am): Likewise.
4864         * modules/stdio (Makefile.am): Likewise.
4865         * modules/stdlib (Makefile.am): Likewise.
4866         * modules/string (Makefile.am): Likewise.
4867         * modules/strings (Makefile.am): Likewise.
4868         * modules/sys_file (Makefile.am): Likewise.
4869         * modules/sys_ioctl (Makefile.am): Likewise.
4870         * modules/sys_select (Makefile.am): Likewise.
4871         * modules/sys_socket (Makefile.am): Likewise.
4872         * modules/sys_stat (Makefile.am): Likewise.
4873         * modules/sys_time (Makefile.am): Likewise.
4874         * modules/sys_times (Makefile.am): Likewise.
4875         * modules/sys_utsname (Makefile.am): Likewise.
4876         * modules/sys_wait (Makefile.am): Likewise.
4877         * modules/sysexits (Makefile.am): Likewise.
4878         * modules/termios (Makefile.am): Likewise.
4879         * modules/time (Makefile.am): Likewise.
4880         * modules/unistd (Makefile.am): Likewise.
4881         * modules/wchar (Makefile.am): Likewise.
4882         * modules/wctype-h (Makefile.am): Likewise.
4883         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
4884
4885 2011-04-05  Bruno Haible  <bruno@clisp.org>
4886
4887         pipe2: Relicense under LGPLv2+.
4888         * modules/pipe2 (License): Change to LGPLv2+.
4889         Requested by Eric Blake, for libvirt.
4890
4891 2011-04-05  Bruce Korb  <bkorb@gnu.org>
4892
4893         bootstrap: compute gnulib_extra_files after updating build_aux
4894         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
4895         change build_aux or also supply gnulib_extra_files.  Handle correctly.
4896
4897 2011-04-05  Eric Blake  <eblake@redhat.com>
4898
4899         bootstrap: preserve git whitelist item sorting
4900         * build-aux/bootstrap (sort_patterns): New function.
4901         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
4902
4903 2011-04-05  Simon Josefsson  <simon@josefsson.org>
4904
4905         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
4906         sc_space_tab check.
4907
4908 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
4909
4910         areadlink, areadlinkat: rewrite in terms of careadlinkat
4911         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
4912         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
4913         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
4914         (malloc, realloc): Remove #undefs.
4915         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
4916         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
4917         readlink, ssize_t, stdint, unistd.
4918         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
4919         areadlink, stdint.
4920
4921         careadlinkat: new module
4922         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
4923         * modules/careadlinkat: New files, written by me with
4924         a review and feedback from Ben Pfaff in
4925         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
4926
4927 2011-04-01  Bruno Haible  <bruno@clisp.org>
4928
4929         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
4930         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
4931         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
4932         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
4933         Reported by Bruce Korb <bruce.korb@gmail.com>.
4934
4935 2011-04-01  Bruno Haible  <bruno@clisp.org>
4936
4937         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
4938         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
4939         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
4940         * modules/wcpcpy (Depends-on): Add extensions.
4941         * modules/wcpncpy (Depends-on): Likewise.
4942         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
4943         systems.
4944         * doc/posix-functions/wcpncpy.texi: Likewise.
4945         * doc/posix-functions/wcwidth.texi: Likewise.
4946
4947 2011-03-31  Eric Blake  <eblake@redhat.com>
4948
4949         nonblocking: fix mingw test failures
4950         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
4951         non-blocking flag on regular file.
4952         (get_nonblocking_flag): Set errno on invalid fd.
4953         * tests/test-nonblocking.c (main): Avoid test failure on
4954         directories if fchdir is not active.
4955         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
4956
4957 2011-03-31  Bruno Haible  <bruno@clisp.org>
4958
4959         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
4960         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
4961         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
4962         Reported by Simon Josefsson <simon@josefsson.org>.
4963
4964 2011-03-31  Bruno Haible  <bruno@clisp.org>
4965         and Eric Blake  <eblake@redhat.com>
4966
4967         nonblocking: new module
4968         * modules/nonblocking: New module.
4969         * modules/nonblocking-tests: Likewise.
4970         * lib/nonblocking.h: New file.
4971         * lib/nonblocking.c: Likewise.
4972         * tests/test-nonblocking.c: New test.
4973         * lib/ioctl.c (ioctl) [mingw]: Update comment.
4974
4975 2011-03-30  Bruno Haible  <bruno@clisp.org>
4976
4977         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
4978         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
4979         instead of 'printf' format for GCC >= 4.4.
4980         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
4981         (fprintf, printf, vfprintf, vprintf): Declare with
4982         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
4983         the system's vfprintf() function.
4984         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
4985
4986 2011-03-30  Eric Blake  <eblake@redhat.com>
4987
4988         passfd: fix scoping bug
4989         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
4990         before sendmsg/recvmsg.
4991
4992         passfd: standardize coding conventions
4993         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
4994         can be learned at compile time.
4995         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
4996         ifdefs.
4997         (sendfd, recvfd): Follow gnulib code conventions.
4998
4999         passfd: fix incorrect sendmsg arguments
5000         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
5001         incorrect msg_controllen value.
5002         * modules/passfd-tests (Depends-on): Check for alarm.
5003         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
5004         Reported by Bastien ROUCARIES.
5005
5006 2011-03-30  Bruno Haible  <bruno@clisp.org>
5007
5008         c-strcasestr: Relicense under LGPLv2+.
5009         * modules/c-strcasestr (License): Change to LGPLv2+.
5010         Requested by Eric Blake, for libvirt.
5011
5012 2011-03-30  Simon Josefsson  <simon@josefsson.org>
5013
5014         * users.txt: Add libidn2.  Fix libtasn1 link.
5015
5016 2011-03-30  Jim Meyering  <meyering@redhat.com>
5017
5018         tests: readlink* ("",... fails with EINVAL on newer kernels
5019         readlink and readlinkat have typically failed with ENOENT for
5020         the invalid, empty file name,  "".  However, with the advent
5021         of linux-2.6.39, they fail with EINVAL.
5022         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
5023         when operating on the empty file name.
5024         * tests/test-readlink.h (test_readlink): Likewise.
5025
5026 2011-03-29  Bruno Haible  <bruno@clisp.org>
5027
5028         Relicense some modules under LGPLv2+, for libidn2.
5029         * modules/array-mergesort (License): Change to LGPLv2+.
5030         * modules/c-strcaseeq (License): Likewise.
5031         * modules/striconveh (License): Likewise.
5032         * modules/striconveha (License): Likewise.
5033         * modules/uniconv/base (License): Likewise.
5034         * modules/uniconv/u8-conv-from-enc (License): Likewise.
5035         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
5036         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
5037         * modules/unictype/base (License): Likewise.
5038         * modules/unictype/bidiclass-of (License): Likewise.
5039         * modules/unictype/category-M (License): Likewise.
5040         * modules/unictype/category-none (License): Likewise.
5041         * modules/unictype/category-of (License): Likewise.
5042         * modules/unictype/category-test (License): Likewise.
5043         * modules/unictype/category-test-withtable (License): Likewise.
5044         * modules/unictype/combining-class (License): Likewise.
5045         * modules/unictype/joiningtype-of (License): Likewise.
5046         * modules/unictype/scripts (License): Likewise.
5047         * modules/uninorm/base (License): Likewise.
5048         * modules/uninorm/canonical-decomposition (License): Likewise.
5049         * modules/uninorm/composition (License): Likewise.
5050         * modules/uninorm/decompose-internal (License): Likewise.
5051         * modules/uninorm/decomposition-table (License): Likewise.
5052         * modules/uninorm/nfc (License): Likewise.
5053         * modules/uninorm/nfd (License): Likewise.
5054         * modules/uninorm/u32-normalize (License): Likewise.
5055         * modules/unistr/base (License): Likewise.
5056         * modules/unistr/u32-cpy (License): Likewise.
5057         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
5058         * modules/unistr/u32-to-u8 (License): Likewise.
5059         * modules/unistr/u32-uctomb (License): Likewise.
5060         * modules/unistr/u8-check (License): Likewise.
5061         * modules/unistr/u8-mblen (License): Likewise.
5062         * modules/unistr/u8-mbtouc (License): Likewise.
5063         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
5064         * modules/unistr/u8-mbtoucr (License): Likewise.
5065         * modules/unistr/u8-prev (License): Likewise.
5066         * modules/unistr/u8-strlen (License): Likewise.
5067         * modules/unistr/u8-to-u32 (License): Likewise.
5068         * modules/unistr/u8-uctomb (License): Likewise.
5069         * modules/unitypes (License): Likewise.
5070         Requested by Simon Josefsson.
5071
5072 2011-03-29  Simon Josefsson  <simon@josefsson.org>
5073
5074         lib-symbol-visibility: Add a notice.
5075         * modules/lib-symbol-visibility (Notice): New field.
5076
5077 2011-03-29  Bruno Haible  <bruno@clisp.org>
5078
5079         getaddrinfo: Doc fix.
5080         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
5081         section "fixed in Gnulib".
5082
5083 2011-03-28  Simon Josefsson  <simon@josefsson.org>
5084
5085         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
5086         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
5087
5088 2011-03-26  Bruno Haible  <bruno@clisp.org>
5089
5090         unictype/property-byname: Reduce the number of load-time relocations.
5091         * lib/unictype/pr_byname.c: Include <stdlib.h>.
5092         (UC_PROPERTY_INDEX_*): New enumeration values.
5093         (uc_property_byname): Convert an index from the lookup table to an
5094         uc_property_t.
5095         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
5096         values.
5097
5098 2011-03-26  Bruno Haible  <bruno@clisp.org>
5099
5100         unictype/property-byname: Allow omitted word separators and aliases.
5101         * lib/unictype/pr_byname.gperf: Add property names without word
5102         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
5103         for 'space'.
5104
5105 2011-03-26  Bruno Haible  <bruno@clisp.org>
5106
5107         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
5108         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
5109         also hyphens to space.
5110         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
5111         without spaces.
5112         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
5113
5114 2011-03-26  Bruno Haible  <bruno@clisp.org>
5115
5116         unictype/joiningtype-byname: Recognize long names as well.
5117         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
5118         a long name.
5119         * lib/unictype/joiningtype_byname.c: Include <string.h>,
5120         unictype/joiningtype_byname.h.
5121         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
5122         * lib/unictype/joiningtype_byname.gperf: New file.
5123         * modules/unictype/joiningtype-byname (Files): Add
5124         lib/unictype/joiningtype_byname.gperf.
5125         (Depends-on): Add gperf.
5126         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
5127         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
5128         long names.
5129
5130         Tests for module 'unictype/joiningtype-longname'.
5131         * modules/unictype/joiningtype-longname-tests: New file.
5132         * tests/unictype/test-joiningtype_longname.c: New file.
5133
5134         New module 'unictype/joiningtype-longname'.
5135         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
5136         * lib/unictype/joiningtype_longname.c: New file.
5137         * modules/unictype/joiningtype-longname: New file.
5138         * modules/unictype/joiningtype-all (Depends-on): Add
5139         unictype/joiningtype-longname.
5140
5141 2011-03-26  Bruno Haible  <bruno@clisp.org>
5142
5143         unictype/bidiclass-byname: Recognize long names as well.
5144         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
5145         name.
5146         * lib/unictype/bidi_byname.c: Include <string.h>,
5147         unictype/bidi_byname.h.
5148         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
5149         * lib/unictype/bidi_byname.gperf: New file.
5150         * modules/unictype/bidiclass-byname (Files): Add
5151         lib/unictype/bidi_byname.gperf.
5152         (Depends-on): Add gperf.
5153         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
5154         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
5155         long names.
5156
5157         Tests for module 'unictype/bidiclass-longname'.
5158         * modules/unictype/bidiclass-longname-tests: New file.
5159         * tests/unictype/test-bidi_longname.c: New file.
5160
5161         New module 'unictype/bidiclass-longname'.
5162         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
5163         * lib/unictype/bidi_longname.c: New file.
5164         * modules/unictype/bidiclass-longname: New file.
5165         * modules/unictype/bidiclass-all (Depends-on): Add
5166         unictype/bidiclass-longname.
5167
5168 2011-03-26  Bruno Haible  <bruno@clisp.org>
5169
5170         unictype/bidi*: Rename modules.
5171         * modules/unictype/bidiclass-all: Renamed from
5172         modules/unictype/bidicategory-all.
5173         * modules/unictype/bidiclass-name: Renamed from
5174         modules/unictype/bidiclass-name.
5175         (Description): Update.
5176         * modules/unictype/bidiclass-name-tests: Renamed from
5177         modules/unictype/bidicategory-name-tests.
5178         * modules/unictype/bidiclass-byname: Renamed from
5179         modules/unictype/bidicategory-byname.
5180         (Description): Update.
5181         * modules/unictype/bidiclass-byname-tests: Renamed from
5182         modules/unictype/bidicategory-byname-tests.
5183         * modules/unictype/bidiclass-of: Renamed from
5184         modules/unictype/bidicategory-of.
5185         (Description): Update.
5186         * modules/unictype/bidiclass-of-tests: Renamed from
5187         modules/unictype/bidicategory-of-tests.
5188         * modules/unictype/bidiclass-test: Renamed from
5189         modules/unictype/bidicategory-test.
5190         (Description): Update.
5191         * modules/unictype/bidiclass-test-tests: Renamed from
5192         modules/unictype/bidicategory-test-tests.
5193         * modules/unictype/bidicategory-all: New file, a simple redirection.
5194         * modules/unictype/bidicategory-name: Likewise.
5195         * modules/unictype/bidicategory-byname: Likewise.
5196         * modules/unictype/bidicategory-of: Likewise.
5197         * modules/unictype/bidicategory-test: Likewise.
5198         * modules/unictype/property-bidi-* (Dependencies): Update.
5199         * lib/unictype/bidi_*.c: Update comment.
5200
5201 2011-03-26  Bruno Haible  <bruno@clisp.org>
5202
5203         unictype/bidi*: Rename functions, part 2.
5204         * modules/unictype/bidicategory-name (configure.ac): Update required
5205         libunistring version.
5206         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
5207
5208 2011-03-25  Bruno Haible  <bruno@clisp.org>
5209
5210         New module 'unictype/combining-class-all'.
5211         * modules/unictype/combining-class-all: New file.
5212
5213         Tests for module 'unictype/combining-class-byname'.
5214         * modules/unictype/combining-class-byname-tests: New file.
5215         * tests/unictype/test-combiningclass_byname.c: New file.
5216
5217         New module 'unictype/combining-class-byname'.
5218         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
5219         * lib/unictype/combiningclass_byname.c: New file.
5220         * lib/unictype/combiningclass_byname.gperf: New file.
5221         * modules/unictype/combining-class-byname: New file.
5222
5223         Tests for module 'unictype/combining-class-longname'.
5224         * modules/unictype/combining-class-longname-tests: New file.
5225         * tests/unictype/test-combiningclass_longname.c: New file.
5226
5227         New module 'unictype/combining-class-longname'.
5228         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
5229         * lib/unictype/combiningclass_longname.c: New file.
5230         * modules/unictype/combining-class-longname: New file.
5231
5232         Tests for module 'unictype/combining-class-name'.
5233         * modules/unictype/combining-class-name-tests: New file.
5234         * tests/unictype/test-combiningclass_name.c: New file.
5235
5236         New module 'unictype/combining-class-name'.
5237         * lib/unictype.in.h (uc_combining_class_name): New declaration.
5238         * lib/unictype/combiningclass_name.c: New file.
5239         * modules/unictype/combining-class-name: New file.
5240
5241 2011-03-25  Bruno Haible  <bruno@clisp.org>
5242
5243         unictype/combining-class: Rename source files.
5244         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
5245         of unictype/combining.h.
5246         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
5247         Update.
5248         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
5249         * modules/unictype/combining-class (Description): Fix.
5250         (Files, Makefile.am): Update.
5251         * tests/unictype/test-combiningclass.c: Renamed from
5252         tests/unictype/test-combining.c.
5253         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
5254
5255 2011-03-25  Bruno Haible  <bruno@clisp.org>
5256
5257         unictype: Update list of canonical combining classes.
5258         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
5259
5260 2011-03-25  Bruno Haible  <bruno@clisp.org>
5261
5262         unictype/category-byname: Recognize long names as well.
5263         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
5264         a long name.
5265         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
5266         unictype/categ_byname.h.
5267         (UC_CATEGORY_INDEX_*): New enumeration values.
5268         (uc_general_category_byname): Use uc_general_category_lookup and
5269         convert from index to value.
5270         * lib/unictype/categ_byname.gperf: New file.
5271         * modules/unictype/category-byname (Files): Add
5272         lib/unictype/categ_byname.gperf.
5273         (Depends-on): Add gperf.
5274         (Makefile.am): Add rule for generating unictype/categ_byname.h.
5275         * tests/unictype/test-categ_byname.c (main): Test the recognition of
5276         long names.
5277
5278         Tests for module 'unictype/category-longname'.
5279         * modules/unictype/category-longname-tests: New file.
5280         * tests/unictype/test-categ_longname.c: New file.
5281
5282         New module 'unictype/category-longname'.
5283         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
5284         * lib/unictype/categ_longname.c: New file.
5285         * modules/unictype/category-longname: New file.
5286         * modules/unictype/category-all (Depends-on): Add it.
5287
5288 2011-03-25  Bruno Haible  <bruno@clisp.org>
5289
5290         Tests for module 'unictype/category-LC'.
5291         * modules/unictype/category-LC-tests: New file.
5292         * tests/unictype/test-categ_LC.c: New file, automatically generated.
5293
5294         New module 'unictype/category-LC'.
5295         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
5296         (UC_CATEGORY_LC): New declaration.
5297         (UC_CASED_LETTER): New macro.
5298         * lib/gen-uni-tables.c (is_category_LC): New function.
5299         (output_categories): Also handle category LC.
5300         (UC_CATEGORY_MASK_LC): New enumeration value.
5301         (general_category_byname): Also handle category LC.
5302         * lib/unictype/categ_LC.c: New file.
5303         * lib/unictype/categ_LC.h: New file, automatically generated.
5304         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
5305         category LC.
5306         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
5307         * modules/unictype/category-LC: New file.
5308         * modules/unictype/category-byname (Depends-on): Add
5309         unictype/category-LC.
5310         * modules/unictype/category-all (Depends-on): Likewise.
5311
5312 2011-03-25  Eric Blake  <eblake@redhat.com>
5313
5314         xmalloc: revert yesterday's regression
5315         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
5316         realloc's underlying behavior (allowing allocation of zero-size
5317         objects, especially if malloc-gnu is also in use).
5318
5319 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
5320
5321         maint.mk: add missing version to VC-tag
5322         * top/maint.mk: git tag was missing actual tag name; add it.
5323
5324         valgrind: do leak checking, and exit with code 1 on error (not 0)
5325         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
5326         to VALGRIND.
5327
5328 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
5329
5330         posix-modules: say what it does.
5331         * posix-modules: Add a line to the --help output saying what it does.
5332
5333 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
5334
5335         xmalloc: Do not leak if underlying realloc is C99 compatible.
5336         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
5337         This avoids a leak on C99-based systems.  See
5338         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
5339
5340 2011-03-24  Eric Blake  <eblake@redhat.com>
5341
5342         realloc: document portability problem
5343         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
5344         passing 0 size to realloc.
5345
5346 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
5347
5348         doc: update users.txt
5349         * users.txt: Add cvsps, tmpwatch
5350
5351 2011-03-23  Matt Rice  <ratmice@gmail.com>
5352
5353         doc: update users.txt
5354         * users.txt: Add gdb.
5355
5356 2011-03-23  Jim Meyering  <meyering@redhat.com>
5357
5358         doc: update users.txt
5359         Looking through matches up to the following URL (there are still
5360         several more pages), I found several projects that use gnulib:
5361         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
5362         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
5363         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
5364
5365 2011-03-22  Bruno Haible  <bruno@clisp.org>
5366
5367         unictype/bidi*: Rename functions.
5368         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
5369         uc_bidi_class, uc_is_bidi_class): New declarations.
5370         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
5371         uc_bidi_category_byname.
5372         (uc_bidi_category_byname): New function.
5373         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
5374         u_bidi_category_name.
5375         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
5376         (uc_bidi_category_name): New function.
5377         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
5378         uc_bidi_category.
5379         (uc_bidi_category): New function.
5380         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
5381         uc_is_bidi_category. Invoke uc_bidi_class.
5382         (uc_is_bidi_category): New function.
5383         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
5384         instead of uc_bidi_category_byname.
5385         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
5386         instead of uc_bidi_category_name.
5387         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
5388         uc_bidi_category.
5389         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
5390         instead of uc_is_bidi_category.
5391
5392 2011-03-21  Bruno Haible  <bruno@clisp.org>
5393
5394         New module 'unictype/joininggroup-all'.
5395         * modules/unictype/joininggroup-all: New file.
5396
5397         Tests for module 'unictype/joininggroup-of'.
5398         * modules/unictype/joininggroup-of-tests: New file.
5399         * tests/unictype/test-joininggroup_of.c: New file.
5400         * tests/unictype/test-joininggroup_of.h: New file, automatically
5401         generated by gen-uni-tables.
5402
5403         New module 'unictype/joininggroup-of'.
5404         * modules/unictype/joininggroup-of: New file.
5405         * lib/unictype/joininggroup_of.c: New file.
5406         * lib/unictype/joininggroup_of.h: New file, automatically generated by
5407         gen-uni-tables.
5408
5409         Tests for module 'unictype/joininggroup-byname'.
5410         * modules/unictype/joininggroup-byname-tests: New file.
5411         * tests/unictype/test-joininggroup_byname.c: New file.
5412
5413         New module 'unictype/joininggroup-byname'.
5414         * modules/unictype/joininggroup-byname: New file.
5415         * lib/unictype/joininggroup_byname.c: New file.
5416         * lib/unictype/joininggroup_byname.gperf: New file.
5417
5418         Tests for module 'unictype/joininggroup-name'.
5419         * modules/unictype/joininggroup-name-tests: New file.
5420         * tests/unictype/test-joininggroup_name.c: New file.
5421
5422         New module 'unictype/joininggroup-name'.
5423         * modules/unictype/joininggroup-name: New file.
5424         * lib/unictype/joininggroup_name.c: New file.
5425         * lib/unictype/joininggroup_name.h: New file.
5426
5427         New module 'unictype/joiningtype-all'.
5428         * modules/unictype/joiningtype-all: New file.
5429
5430         Tests for module 'unictype/joiningtype-of'.
5431         * modules/unictype/joiningtype-of-tests: New file.
5432         * tests/unictype/test-joiningtype_of.c: New file.
5433         * tests/unictype/test-joiningtype_of.h: New file, automatically
5434         generated by gen-uni-tables.
5435
5436         New module 'unictype/joiningtype-of'.
5437         * modules/unictype/joiningtype-of: New file.
5438         * lib/unictype/joiningtype_of.c: New file.
5439         * lib/unictype/joiningtype_of.h: New file, automatically generated by
5440         gen-uni-tables.
5441
5442         Tests for module 'unictype/joiningtype-byname'.
5443         * modules/unictype/joiningtype-byname-tests: New file.
5444         * tests/unictype/test-joiningtype_byname.c: New file.
5445
5446         New module 'unictype/joiningtype-byname'.
5447         * modules/unictype/joiningtype-byname: New file.
5448         * lib/unictype/joiningtype_byname.c: New file.
5449
5450         Tests for module 'unictype/joiningtype-name'.
5451         * modules/unictype/joiningtype-name-tests: New file.
5452         * tests/unictype/test-joiningtype_name.c: New file.
5453
5454         New module 'unictype/joiningtype-name'.
5455         * modules/unictype/joiningtype-name: New file.
5456         * lib/unictype/joiningtype_name.c: New file.
5457
5458         unictype: Add support for Arabic shaping properties.
5459         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
5460         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
5461         declarations.
5462         (UC_JOINING_GROUP_*): New enumeration values.
5463         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
5464         declarations.
5465         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
5466         (unicode_joining_type): New variable.
5467         (UC_JOINING_GROUP_*): New enumeration values.
5468         (unicode_joining_group): New variable.
5469         (fill_arabicshaping, joining_type_as_c_identifier,
5470         output_joining_type_test, output_joining_type,
5471         joining_group_as_c_identifier, output_joining_group_test,
5472         output_joining_group): New functions.
5473         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
5474         fill_arabicshaping and output_joining_type_test, output_joining_type,
5475         output_joining_group_test, output_joining_group.
5476         Reported by Simon Josefsson.
5477
5478 2011-03-21  Jim Meyering  <meyering@redhat.com>
5479
5480         strftime: fix a bug in yesterday's change
5481         * lib/strftime.c (add): Accommodate width's initial value of -1.
5482         Otherwise, nstrftime would copy uninitialized data into
5483         the result buffer.
5484
5485 2011-03-21  Jim Meyering  <meyering@redhat.com>
5486
5487         tests: add strftime-tests module
5488         * tests/test-strftime.c: New file.
5489         * modules/strftime-tests: New module.
5490
5491 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5492
5493         strftime: don't assume a byte count fits in 'int'
5494         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
5495         found this problem by static analysis, using gcc -Wstrict-overflow
5496         (GCC 4.5.2, x86-64).  This reported an optimization that depended
5497         on an integer overflow having undefined behavior, but it turns out
5498         that the argument is a size, which might not fit in 'int' anyway,
5499
5500 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5501
5502         stdio: don't require ignore_value around fwrite
5503
5504         This patch works around libc bug 11959
5505         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
5506         Without this patch, applications must often write
5507         ignore_value (fwrite (...)) even though the ignore_value is
5508         not helpful here.  It's common to write many objects, using
5509         fwrite/printf/etc., and then use ferror to detect output error.
5510
5511         I considered making this patch optional, but decided against it,
5512         because libc is obviously being inconsistent here: there is no
5513         reason libc should insist that user code must inspect fwrite
5514         return's value without also insisting that it inspect printf's,
5515         putchar's, etc.  If user code wants to have a strict style where
5516         all these functions' values are checked (so that ferror need not
5517         be checked), we could add support for that style in a new gnulib
5518         module, but in the meantime it's better to be consistent and to
5519         support common usage.
5520
5521         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
5522         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
5523         that we are compiling in checking mode, and if not C++, and
5524         if not already wrapping fwrite for some other reason.
5525         (fwrite): #define to rpl_fwrite if the latter is defined.
5526
5527 2011-03-20  Bruno Haible  <bruno@clisp.org>
5528
5529         verror: Fix compilation error introduced on 2011-02-13.
5530         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
5531         instead of __attribute__.
5532         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5533
5534 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5535             Bruno Haible  <bruno@clisp.org>
5536
5537         socklen: do not depend on sys_socket
5538         While trying to modify Emacs to use gnulib's socklen module,
5539         I discovered a circular dependency: socklen depends on sys_socket
5540         and vice versa.  Emacs can use socklen, but it does not need
5541         sys_socket because it has its own substitute for sys/socket.h.
5542         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
5543         gl_TYPE_SOCKLEN_T.
5544         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
5545         gl_PREREQ_SYS_H_SOCKET.
5546         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
5547         gl_PREREQ_SYS_H_SOCKET.
5548         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
5549         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
5550         * modules/socklen (Depends-on): Do not depend on sys_socket.
5551         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
5552
5553 2011-03-20  Jim Meyering  <meyering@redhat.com>
5554
5555         maint.mk: sort file names *after* new transformation
5556         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
5557         prefix would have led to an unwarranted failure in GNU parted.
5558         Sort after that transformation.
5559
5560 2011-03-19  Jim Meyering  <meyering@redhat.com>
5561
5562         maint.mk: fix po-file syntax-check rule
5563         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
5564         Patch by Bruno Haible.
5565
5566 2011-03-19  Bruno Haible  <bruno@clisp.org>
5567
5568         socklen: Update comment.
5569         * m4/socklen.m4: Update comment about platforms.
5570
5571 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5572             Bruno Haible  <bruno@clisp.org>
5573
5574         inet_ntop, inet_pton: Simplify.
5575         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
5576         documented to provide socklen_t and we already depend on sys_socket.
5577         * modules/inet_pton (Depends-on): Likewise.
5578         * lib/arpa_inet.in.h: Adjust comment.
5579
5580 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5581             Bruno Haible  <bruno@clisp.org>
5582
5583         netdb: Simplify.
5584         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
5585         documented to provide socklen_t and we already depend on sys_socket.
5586         * lib/netdb.in.h: Adjust comment.
5587
5588 2011-03-19  Bruno Haible  <bruno@clisp.org>
5589
5590         sys_socket, netdb: Document problem with socklen_t.
5591         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
5592         platforms.
5593         * doc/posix-headers/netdb.texi: Likewise.
5594
5595 2011-03-18  Eric Blake  <eblake@redhat.com>
5596
5597         maint.mk: let po check work in VPATH build
5598         * top/maint.mk (po_file): Allow cfg.mk override.
5599         (sc_po_check): Allow VPATH use.
5600         Reported by Jiri Denemark.
5601
5602 2011-03-16  Jim Meyering  <meyering@redhat.com>
5603
5604         maint.mk: allow fine-grained syntax-check exclusion via Make variables
5605         Before, you would have had to create one .x-sc_ file per rule in order
5606         to exempt offending files.  Now, you may instead use a Make variable --
5607         usually defined in cfg.mk -- whose name identifies the affected rule.
5608         * top/maint.mk (_sc_excl): Define.
5609         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
5610         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
5611
5612 2011-03-13  Bruno Haible  <bruno@clisp.org>
5613
5614         ignore-value tests: Avoid warnings.
5615         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
5616         empty for gcc < 3.4.
5617
5618 2011-03-13  Bruno Haible  <bruno@clisp.org>
5619
5620         passfd: Fix link error on Solaris.
5621         * modules/passfd (Description): Correct.
5622         (Depends-on): Add socketlib.
5623         (Link): New section.
5624         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
5625
5626 2011-03-13  Bruno Haible  <bruno@clisp.org>
5627
5628         passfd: Fix link error on AIX 5.2.
5629         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
5630
5631 2011-03-13  Bruno Haible  <bruno@clisp.org>
5632
5633         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
5634         * lib/sys_socket.in.h: Include <stddef.h>.
5635         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
5636         CMSG_FIRSTHDR. Remove unused variable.
5637
5638 2011-03-13  Bruno Haible  <bruno@clisp.org>
5639
5640         passfd: Fix compilation error on OpenBSD.
5641         * lib/passfd.c: Include <sys/uio.h>.
5642
5643 2011-03-13  Bruno Haible  <bruno@clisp.org>
5644
5645         passfd test: Fix warnings.
5646         * tests/test-passfd.c: Include <sys/wait.h>.
5647         (main): Fix typo.
5648
5649 2011-03-13  Bruno Haible  <bruno@clisp.org>
5650
5651         passfd module, part 4, tweaks.
5652         * tests/test-passfd.c: Reorder includes.
5653         (main): Fix perror and printf calls.
5654
5655 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5656
5657         passfd module, part 4.
5658         * modules/passfd-tests: New file.
5659         * tests/test-passfd.c: New file.
5660
5661 2011-03-13  Jim Meyering  <meyering@redhat.com>
5662
5663         Makefile: rely on GNU make; derive syntax-check rule names
5664         Rather than requiring that each sc_ rule be listed as a dependent
5665         of "check", use features of GNU make to derive the list.
5666         * Makefile (syntax-check-rules): Define.
5667         (check): Depend on the new variable, not the hard-coded list.
5668
5669 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
5670             Bruno Haible  <bruno@clisp.org>
5671
5672         passfd module, part 3.
5673         * lib/passfd.h (recvfd): Add a flags argument.
5674         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
5675         (recvfd): Add a flags argument.
5676         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
5677         exists.
5678         * modules/passfd (Depends-on): Add cloexec.
5679         Suggested by Eric Blake.
5680
5681 2011-03-13  Bruno Haible  <bruno@clisp.org>
5682
5683         passfd module, part 2, tweaks.
5684         * modules/passfd (Files): Reorder.
5685         (Depends-on): Remove errno.
5686         (Include): Remove <sys/socket.h>, <sys/un.h>.
5687         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
5688         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
5689         specification header. Include <sys/socket.h> always. Don't include
5690         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
5691         (sendfd): Clarify that it sets errno when it fails.
5692         (recvfd): Fix specification.
5693
5694 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5695
5696         passfd module, part 2.
5697         * modules/passfd: New file.
5698         * lib/passfd.h: New file.
5699         * lib/passfd.c: New file.
5700
5701 2011-03-12  Bruno Haible  <bruno@clisp.org>
5702
5703         wcswidth, mbswidth: Avoid integer overflow.
5704         * lib/wcswidth.c: Include <limits.h>.
5705         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
5706         * lib/mbswidth.c: Include <limits.h>.
5707         (mbsnwidth): Avoid 'int' overflow.
5708         Reported by Jim Meyering.
5709
5710 2011-03-12  Bruno Haible  <bruno@clisp.org>
5711
5712         futimens, utimensat: Avoid endless recursion on Solaris 10.
5713         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
5714         Solaris.
5715         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
5716         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
5717
5718 2011-03-11  Jim Meyering  <meyering@redhat.com>
5719
5720         maint.mk: relax a regexp to accommodate other formatting styles
5721         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
5722         between "ngettext" and the following "(".
5723
5724 2011-03-11  Pádraig Brady <P@draigBrady.com>
5725
5726         maint.mk: suppress a false positive warning
5727         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
5728         diagnostics are marked with ngettext.
5729
5730 2011-03-10  Eric Blake  <eblake@redhat.com>
5731
5732         wchar: add explicit dependencies, for Tru64
5733         * modules/mbmemcasecoll (Depends-on): Add wchar.
5734         * modules/mbtowc (Depends-on): Likewise.
5735         * modules/vasnprintf (Depends-on): Likewise.
5736         * modules/unistdio/u-printf-args (Depends-on): Likewise.
5737         * modules/wctomb (Depends-on): Likewise.
5738         Reported by Peter O'Gorman.
5739
5740 2011-03-08  Bruno Haible  <bruno@clisp.org>
5741
5742         passfd module, part 1, tweaks.
5743         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
5744         Improve indentation. Improve AC_MSG_CHECKING messages.
5745         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
5746         gl_SOCKET_FAMILIES.
5747
5748 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5749
5750         passfd module, part 1.
5751         * m4/afunix.m4: New file.
5752         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
5753         sockets.
5754
5755 2011-03-08  Bruno Haible  <bruno@clisp.org>
5756
5757         regex-quote: New API.
5758         * lib/regex-quote.h: Include <stdbool.h>.
5759         (struct regex_quote_spec): New type.
5760         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
5761         New declarations.
5762         (regex_quote_length, regex_quote_copy, regex_quote): Take a
5763         'const struct regex_quote_spec *' argument.
5764         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
5765         (pcre_special): New constant.
5766         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
5767         New functions.
5768         (regex_quote_length, regex_quote_copy, regex_quote): Take a
5769         'const struct regex_quote_spec *' argument.
5770         * modules/regex-quote (Depends-on): Add stdbool.
5771         * tests/test-regex-quote.c (check): Update for new API. Add test for
5772         anchored results.
5773         * NEWS: Mention the API change.
5774         Reported by Reuben Thomas and Eric Blake.
5775
5776 2011-03-06  Bruno Haible  <bruno@clisp.org>
5777
5778         regex-quote: Fix creation of POSIX extended regular expressions.
5779         * lib/regex-quote.c (ere_special): Add grouping and alternation
5780         operators.
5781
5782 2011-03-05  Bruno Haible  <bruno@clisp.org>
5783
5784         doc: Improve doc regarding autopoint vs. gnulib.
5785         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
5786         disable autopoint while running autoreconf.
5787         Suggested by Ralf Wildenhues.
5788
5789 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5790
5791         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
5792         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
5793
5794 2011-03-03  Bruce Korb  <bkorb@gnu.org>
5795
5796         parse-duration: remove xalloc.h dependency
5797         * lib/parse-duration.c (parse_period): handle NULL return from
5798         strdup instead of calling xstrdup().
5799         * modules/parse-duration: remove "xalloc" dependency
5800
5801 2011-03-03  Matthew Booth  <mbooth@redhat.com>
5802
5803         bootstrap: honor m4_base when running aclocal
5804         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
5805
5806 2011-03-02  Jim Meyering  <meyering@redhat.com>
5807
5808         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
5809         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
5810         on request from Matt Booth.
5811
5812 2011-03-01  Eric Blake  <eblake@redhat.com>
5813
5814         test-link: work on Hurd
5815         * tests/test-link.h (test_link): Hurd rejects linking directories
5816         with EISDIR instead of the POSIX-mandated EPERM.
5817
5818 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
5819
5820         stdio: simplify by moving files to printf-posix, sigpipe
5821         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
5822         since this symbol is needed only if printf is replaced.
5823         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
5824         Require gl_ASM_SYMBOL_PREFIX.
5825         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
5826         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
5827         (Depends-on): Add 'raise'.
5828         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
5829         * modules/stdio (Files): Remove lib/stdio-write.c,
5830         m4/asm-underscore.m4.
5831         (Depends-on): Remove 'raise'.
5832
5833         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
5834         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
5835         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
5836         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
5837
5838 2011-02-28  Bruno Haible  <bruno@clisp.org>
5839
5840         localcharset: Assume ANSI C behaviour of free().
5841         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
5842         calling free().
5843         Suggested by Simon Josefsson <simon@josefsson.org>.
5844
5845 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
5846             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
5847             Bruno Haible  <bruno@clisp.org>  (tiny change)
5848
5849         On Cygwin, use /proc file system instead of win32 API.
5850         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
5851         Win32 file names.
5852         (DllMain): Simplify by removing Cygwin specific code.
5853         (find_shared_library_fullname): Use Linux specific implementation also
5854         for Cygwin.
5855         (get_shared_library_fullname): Update accordingly.
5856         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
5857         Win32 file names.
5858         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
5859         Cygwin specific code.
5860
5861 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
5862             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
5863
5864         Fix OpenMP flag detection for various Fortran compilers.
5865         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
5866         OpenMP-conditional compilation construct, to force compile
5867         failure with missing OpenMP flag.
5868         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
5869
5870 2011-02-25  Eric Blake  <eblake@redhat.com>
5871
5872         strstr: expand test coverage
5873         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
5874         compilation.
5875         * tests/test-memmem.c (main): Duplicate tests.
5876         * tests/test-strcasestr.c (main): Likewise.
5877         * tests/test-c-strcasestr.c (main): Likewise.
5878
5879 2011-02-25  Jim Meyering  <meyering@redhat.com>
5880
5881         maint.mk: detect missing-NL-at-EOF, too
5882         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
5883         it also detects when a file lacks a newline at EOF.
5884         (require_exactly_one_NL_at_EOF_): Renamed from
5885         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
5886         since people may well have .x-sc_... file names tied to the
5887         existing name.  Suggested by Eric Blake.
5888
5889 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
5890
5891         dirname: move m4/dos.m4 functionality into lib/dosname.h
5892
5893         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
5894         extracts symbols from it, puts them into config.h; but it's much
5895         easier to use the symbols directly.  filename.h already does this,
5896         but it disagrees with dos.m4 in some respects.  This patch
5897         introduces a different include file dosname.h that packages up
5898         dos.m4, and then later we can work on merging filename.h and
5899         dosname.h.  Applications that need only the easy-to-configure
5900         symbols should consider including dosname.h rather than dirname.h.
5901         * NEWS: Mention incompatible changes.
5902         * m4/dos.m4: Remove.
5903         * lib/dosname.h, modules/dosname: New files.
5904         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
5905         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
5906         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
5907         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
5908         Include dosname.h, not dirname.h.
5909         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
5910         Include dosname.h, for definitions of symbols like ISSLASH
5911         that used to be in config.h.
5912         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
5913         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
5914         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
5915         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
5916         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
5917         * modules/rmdir (Files): Likewise.
5918         * modules/stat (Files): Likewise.
5919         * modules/unlink (Files): Likewise.
5920         * modules/dirname-lgpl (Depends-on): Add dosname.
5921         * modules/lstat (Depends-on): Likewise.
5922         * modules/openat (Depends-on): Likewise.
5923         * modules/rmdir (Depends-on): Likewise.
5924         * modules/savewd (Depends-on): Likewise.
5925         * modules/stat (Depends-on): Likewise.
5926         * modules/unlink (Depends-on): Likewise.
5927         * modules/openat (Depends-on): Remove dirname-lgpl.
5928         * modules/savewd (Depends-on): Likewise.
5929         * tests/test-dirname.c: Do not use removed symbols like
5930         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
5931         the remaining symbols, e.g., ISSLASH ('\\').
5932
5933 2011-02-25  Eric Blake  <eblake@redhat.com>
5934
5935         strstr: revert patches that introduced bug and pessimization
5936         * lib/str-two-way.h: Add another reference.
5937         (two_way_short_needle, two_way_long_needle): Revert changes from
5938         2011-02-24; they pessimize search speed.
5939         (critical_factorization): Partially revert changes from
5940         2010-06-22; they violate the requirement that the left half of the
5941         needle be smaller than the period of the needle.
5942
5943 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5944
5945         filenamecat: remove unnecessary dependency on dirname-lgpl
5946         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
5947         is no direct dependency, just an indirect one via filenamecat-lgpl.
5948
5949         remove: remove unnecessary use of m4/dos.m4
5950         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
5951         * modules/remove (FILES): Remove m4/dos.m4.
5952
5953         * lib/openat-proc.c: Don't include dirname.h; not needed.
5954
5955         backupfile: remove unnecessary use of m4/dos.m4
5956         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
5957         of its symbols are used by the backupfile code.  backupfile.c does
5958         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
5959         for the rare case of programs that want all their backup file
5960         names to live within 8+3 limits, and dos.m4 doesn't address that.
5961         * modules/backupfile (Files): Remove m4/dos.m4.
5962
5963 2011-02-24  Jim Meyering  <meyering@redhat.com>
5964
5965         strstr: fix a bug whereby strstr would mistakenly return NULL
5966         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
5967         in period calculation.
5968         (two_way_long_needle): Likewise.
5969         The original problem was reported by Mike Stump in
5970         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
5971         Ralf Wildenhues provided the short needle and haystack.
5972         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
5973         Add a more involved test to trigger the bug in two_way_long_needle.
5974
5975 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
5976
5977         gnulib-tool: remove use of bold display in help screen
5978         * gnulib-tool (func_usage): Do not use bold display anymore in the
5979         help screen.  That was just meant to be a temporary emphasis for a
5980         backward-incompatible change.
5981
5982 2011-02-23  Bruno Haible  <bruno@clisp.org>
5983
5984         Fix misindentation of preprocessor directives.
5985         * lib/argp-namefrob.h: Reindent preprocessor directives.
5986         * lib/getopt_int.h (struct _getopt_data): Likewise.
5987         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
5988         * lib/vasnprintf.c (decode_long_double): Likewise.
5989         * tests/test-argmatch.c: Insert blank lines, for clarity.
5990         * tests/test-exclude.c: Likewise.
5991
5992 2011-02-22  Bruno Haible  <bruno@clisp.org>
5993
5994         ioctl: Fix for MacOS X in 64-bit mode.
5995         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
5996         value.
5997         Suggested by Eric Blake.
5998         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
5999
6000 2011-02-22  Jim Meyering  <meyering@redhat.com>
6001
6002         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
6003         * Makefile (sc_cpp_indent_check): Don't limit the check to files
6004         in lib/.
6005
6006 2011-02-22  Eric Blake  <eblake@redhat.com>
6007
6008         maint: avoid any CDPATH issue
6009         * Makefile (sc_cpp_indent_check): Anchor cd argument.
6010
6011         maint: adjust cpp indentation for my modules, as well
6012         * Makefile (sc_cpp_indent_check): Add my name.
6013         * lib/fbufmode.c: Filter through cppi.
6014         * lib/fpurge.c: Likewise.
6015         * lib/freadable.c: Likewise.
6016         * lib/freading.c: Likewise.
6017         * lib/fwritable.c: Likewise.
6018         * lib/fwriting.c: Likewise.
6019         * lib/sigaction.c: Likewise.
6020
6021 2011-02-22  Jim Meyering  <meyering@redhat.com>
6022
6023         maint: adjust cpp indentation to reflect nesting depth
6024         I.e., in a block of code that begins with an unnested "#if",
6025         put one space between the "#" in column 1 and following token.
6026         For example,
6027         -#include <sys/vfs.h>
6028         +# include <sys/vfs.h>
6029         Do this only in .c files that are part of a module I maintain.
6030         * lib/linkat.c: Filter through cppi.
6031         * lib/nanosleep.c: Likewise.
6032         * lib/openat.c: Likewise.
6033         * lib/openat-die.c: Likewise.
6034         * lib/dup3.c: Likewise.
6035         * lib/fchownat.c: Likewise.
6036         * lib/flock.c: Likewise.
6037         * lib/fsync.c: Likewise.
6038         * lib/fts.c: Likewise.
6039         * lib/getpass.c: Likewise.
6040         * lib/gettimeofday.c: Likewise.
6041         * lib/userspec.c: Likewise.
6042         * Makefile (sc_cpp_indent_check): New rule, to check this.
6043
6044 2011-02-22  Bruno Haible  <bruno@clisp.org>
6045
6046         New module 'wctomb'.
6047         * lib/stdlib.in.h (wctomb): New declaration.
6048         * lib/wctomb.c: New file.
6049         * lib/wctomb-impl.h: New file.
6050         * m4/wctomb.m4: New file.
6051         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
6052         REPLACE_WCTOMB.
6053         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
6054         REPLACE_WCTOMB.
6055         * modules/wctomb: New file.
6056         * tests/test-stdlib-c++.cc: Test signature of wctomb.
6057         * doc/posix-functions/wctomb.texi: Mention the new module.
6058         * modules/wctob (Depends-on): Add wctomb.
6059
6060 2011-02-22  Bruno Haible  <bruno@clisp.org>
6061
6062         New module 'mbtowc'.
6063         * lib/stdlib.in.h (mbtowc): New declaration.
6064         * lib/mbtowc.c: New file.
6065         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
6066         * m4/mbtowc.m4: New file.
6067         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
6068         REPLACE_MBTOWC.
6069         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
6070         REPLACE_MBTOWC.
6071         * modules/mbtowc: New file.
6072         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
6073         * doc/posix-functions/mbtowc.texi: Mention the new module.
6074         * modules/btowc (Depends-on): Add mbtowc.
6075
6076 2011-02-22  Bruno Haible  <bruno@clisp.org>
6077
6078         wcrtomb: Add more tests for native Windows platforms.
6079         * tests/test-wcrtomb-w32-1.sh: New file.
6080         * tests/test-wcrtomb-w32-2.sh: New file.
6081         * tests/test-wcrtomb-w32-3.sh: New file.
6082         * tests/test-wcrtomb-w32-4.sh: New file.
6083         * tests/test-wcrtomb-w32-5.sh: New file.
6084         * tests/test-wcrtomb-w32.c: New file.
6085         * modules/wcrtomb-tests (Files): Add them.
6086         (Makefile.am): Arrange to run these tests.
6087         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
6088         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
6089
6090 2011-02-20  Bruno Haible  <bruno@clisp.org>
6091
6092         wcrtomb: Enhance test.
6093         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
6094
6095 2011-02-20  Bruno Haible  <bruno@clisp.org>
6096
6097         mbrtowc: Tiny optimization.
6098         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
6099
6100 2011-02-20  Jim Meyering  <meyering@redhat.com>
6101
6102         test-exclude.c: remove unmatched #endif
6103         * tests/test-exclude.c: Remove stray #endif, left over from
6104         the change of a week ago.
6105
6106 2011-02-19  Jim Meyering  <meyering@redhat.com>
6107
6108         git-version-gen: skip "-dirty" check when appropriate
6109         * build-aux/git-version-gen: Don't run any git commands when the
6110         version string comes from .tarball-version.  Prior to this, we
6111         would run git update-index --refresh even from a just-unpacked
6112         tarball directory, and that could affect a .git/ directory in a
6113         parent of the build directory.  Reported by Mike Frysinger.
6114
6115 2011-02-19  Bruno Haible  <bruno@clisp.org>
6116
6117         unictype/property-byname: Reduce the size of the 'data' segment.
6118         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
6119
6120 2011-02-19  Bruno Haible  <bruno@clisp.org>
6121
6122         unictype/scripts: Reduce the size of the 'data' segment.
6123         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
6124         '%pic'.
6125         * lib/unictype/scripts_byname.gperf: Regenerated.
6126
6127 2011-02-19  Bruno Haible  <bruno@clisp.org>
6128
6129         stdint: Update documentation.
6130         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
6131
6132 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
6133
6134         stdint: omit redundant check for wchar.h
6135         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
6136         always tests whether wchar.h exists, so remove the now-redundant test.
6137
6138 2011-02-18  Bruno Haible  <bruno@clisp.org>
6139
6140         stdint: Cut dependency to module 'wchar'.
6141         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
6142         include the necessary prerequisites.
6143         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
6144         * modules/stdint (Depends-on): Remove wchar.
6145         (Makefile.am): Substitute HAVE_WCHAR_H.
6146         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
6147
6148 2011-02-18  Eric Blake  <eblake@redhat.com>
6149
6150         longlong: skip, rather than fail, on cross-compilation
6151         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
6152         when cross-compiling; regression from 2011-02-16.
6153
6154 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6155
6156         * NEWS: Mention 2011-02-08 change to stdlib.
6157
6158 2011-02-17  Bruno Haible  <bruno@clisp.org>
6159
6160         getloadavg: Add comments about platforms.
6161         * m4/getloadavg.m4: Add comment.
6162         * lib/getloadavg.c: Likewise.
6163
6164 2011-02-17  Bruno Haible  <bruno@clisp.org>
6165
6166         getloadavg: Fix link error on Solaris 2.6.
6167         * modules/getloadavg (Link): New section.
6168         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
6169         linking test-getloadavg.
6170         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
6171         getloadavg.
6172
6173 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6174
6175         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
6176         It was 'int', but this doesn't match the IRIX 6.5 manual.
6177         Suggested by Bruno Haible in
6178         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
6179
6180 2011-02-17  Bruno Haible  <bruno@clisp.org>
6181
6182         havelib: Fix comments.
6183         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
6184         change.
6185
6186 2011-02-17  Bruno Haible  <bruno@clisp.org>
6187
6188         havelib: Update config.rpath.
6189         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
6190
6191 2011-02-17  Bruno Haible  <bruno@clisp.org>
6192
6193         getloadavg test: Add some plausibility checks.
6194         * tests/test-getloadavg.c (check_avg): Print a warning when the value
6195         is improbable.
6196
6197 2011-02-16  Eric Blake  <eblake@redhat.com>
6198
6199         maintainer-makefile: make syntax-check a no-op from tarballs
6200         * top/maint.mk (no-vc-detected): New rule.
6201         (local-checks-available): Use it to avoid hanging if someone tries
6202         'make syntax-check' from a tarball.  Also append to any non-syntax
6203         checks already defined in cfg.mk.
6204
6205 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
6206
6207         longlong: tune, particularly for common case of c99
6208
6209         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
6210         or running anything if c99, or if unsigned long long int does not
6211         work.  In either case, we know the answer without further tests.
6212         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
6213         it at most once, and use its results for both long long int and
6214         unsigned long long int.  This is more likely to be efficient in
6215         the common case where the program wants to check for both long
6216         long int and unsigned long long int.
6217         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
6218         since the answer is already known.
6219
6220 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
6221
6222         getloadavg: set errno
6223         * lib/getloadavg.c: Set errno when returning -1.  If no other
6224         error number looks appropriate, set it to ENOSYS if the getloadavg
6225         looks like it can't possibly ever work, ENOTSUP otherwise.
6226         Suggested by Bruno Haible in
6227         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
6228
6229         getloadavg: trim unused parts and speed up 'configure'
6230         * NEWS: Document this.
6231         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
6232         always compiled if getloadavg is absent.
6233         Move test code to ...
6234         * tests/test-getloadavg.c: New file, containing previous
6235         contents of test from lib/getloadavg.c.  It also contains
6236         suggestions by Bruno Haible in
6237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
6238         * modules/getloadavg-tests: New file.
6239         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
6240         Do tests in the same order as they're needed for getloadavg.c.
6241         Omit setgid-related tests that generate symbols KMEM_GROUP,
6242         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
6243         Do only the tests that are needed to see whether the system has
6244         getloadavg, moving the other tests into ...
6245         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
6246         NLIST_NAME_UNION; nobody should be using it.  Do not define
6247         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
6248         relevant, as the user of this module shouldn't care how getloadavg
6249         is implemented.
6250
6251         getloadavg: omit unused var
6252         * lib/getloadavg.c (getloadavg): Omit unused local variable.
6253
6254 2011-02-15  Jim Meyering  <meyering@redhat.com>
6255
6256         doc: update users.txt
6257         * users.txt: Update iwhd's URL.
6258
6259 2011-02-13  Bruno Haible  <bruno@clisp.org>
6260
6261         Consistent macro naming for macros that use GCC __attribute__.
6262         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
6263         _ATTRIBUTE_NONNULL_.
6264         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
6265         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
6266         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
6267         ATTRIBUTE_DEPRECATED.
6268         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
6269         ATTRIBUTE_NORETURN.
6270         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6271         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6272         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6273         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6274         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
6275         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
6276         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
6277         ATTRIBUTE_SENTINEL.
6278         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
6279         ATTRIBUTE_RETURN_CHECK.
6280         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
6281         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
6282         ATTRIBUTE_NORETURN.
6283         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
6284         Reported by Paul Eggert.
6285
6286 2011-02-13  Bruno Haible  <bruno@clisp.org>
6287
6288         Don't interfere with a program's definition of __attribute__.
6289         * lib/argp.h (__attribute__): Remove definition.
6290         (_GL_ATTRIBUTE_FORMAT): New macro.
6291         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
6292         * lib/argp-fmtstream.h (__attribute__): Remove definition.
6293         (_GL_ATTRIBUTE_FORMAT): New macro.
6294         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
6295         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
6296         GCC 3 or newer.
6297         * lib/error.h (__attribute__): Remove definition.
6298         (_GL_ATTRIBUTE_FORMAT): New macro.
6299         (error, error_at_line): Use it.
6300         * lib/hash.h (__attribute__): Remove definition.
6301         (ATTRIBUTE_WUR): Update definition. Define always.
6302         * lib/openat.h (__attribute__): Remove definition.
6303         (ATTRIBUTE_NORETURN): Update definition. Define always.
6304         * lib/sigpipe-die.h (__attribute__): Remove definition.
6305         (ATTRIBUTE_NORETURN): Update definition. Define always.
6306         * lib/vasnprintf.h (__attribute__): Remove definition.
6307         (_GL_ATTRIBUTE_FORMAT): New macro.
6308         (asnprintf, vasnprintf): Use it.
6309         * lib/xalloc.h (__attribute__): Remove definition.
6310         (ATTRIBUTE_NORETURN): Update definition. Define always.
6311         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
6312         * lib/xmemdup0.h (__attribute__): Remove definition.
6313         (ATTRIBUTE_NORETURN): Update definition. Define always.
6314         * lib/xprintf.h (__attribute__): Remove definition.
6315         (_GL_ATTRIBUTE_FORMAT): New macro.
6316         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
6317         * lib/xstrtol.h (__attribute__): Remove definition.
6318         (ATTRIBUTE_NORETURN): Update definition. Define always.
6319         * lib/xvasprintf.h (__attribute__): Remove definition.
6320         (_GL_ATTRIBUTE_FORMAT): New macro.
6321         (xasprintf, xvasprintf): Use it.
6322         * tests/test-argmatch.c (__attribute__): Remove definition.
6323         (ATTRIBUTE_NORETURN): Update definition. Define always.
6324         * tests/test-exclude.c (__attribute__): Remove definition.
6325         (ATTRIBUTE_NORETURN): Update definition. Define always.
6326         Reported by Paul Eggert.
6327
6328 2011-02-13  Bruno Haible  <bruno@clisp.org>
6329
6330         mbrtowc: Add more tests for native Windows platforms.
6331         * tests/test-mbrtowc-w32-1.sh: New file.
6332         * tests/test-mbrtowc-w32-2.sh: New file.
6333         * tests/test-mbrtowc-w32-3.sh: New file.
6334         * tests/test-mbrtowc-w32-4.sh: New file.
6335         * tests/test-mbrtowc-w32-5.sh: New file.
6336         * tests/test-mbrtowc-w32.c: New file.
6337         * modules/mbrtowc-tests (Files): Add them.
6338         (Makefile.am): Arrange to run these tests.
6339         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
6340         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
6341
6342 2011-02-13  Bruno Haible  <bruno@clisp.org>
6343
6344         mbrtowc: Work around native Windows bug.
6345         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
6346         guess when no suitable locale for testing was found.
6347         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
6348
6349 2011-02-13  Bruno Haible  <bruno@clisp.org>
6350
6351         mbsinit: Work around mingw bug.
6352         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
6353         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
6354         Windows.
6355         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
6356
6357 2011-02-13  Bruno Haible  <bruno@clisp.org>
6358
6359         mbsinit: Don't crash for a NULL argument.
6360         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
6361         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
6362
6363 2011-02-13  Bruno Haible  <bruno@clisp.org>
6364
6365         Don't interfere with a program's definition of __attribute__.
6366         * lib/stdio.in.h (__attribute__): Remove definition.
6367         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
6368         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
6369         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
6370         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
6371         * lib/string.in.h (__attribute__): Remove definition.
6372         Reported by Paul Eggert.
6373
6374 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6375
6376         stdlib: don't get in the way of non-GCC __attribute__
6377         See thread starting at
6378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
6379         Revert previous stdlib change, installing the following instead:
6380         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
6381         to get in the way of a non-GCC compiler that supports __attribute__.
6382         (_GL_ATTRIBUTE_RETURN): New macro.
6383         (_Exit): Use it instead of __attribute__.
6384
6385 2011-02-12  Bruno Haible  <bruno@clisp.org>
6386
6387         quotearg test: Avoid test failure on mingw.
6388         * tests/test-quotearg.sh: Convert the locale identifier from native
6389         Windows syntax to Unix syntax.
6390
6391 2011-02-12  Bruno Haible  <bruno@clisp.org>
6392
6393         setlocale: Prefer gnulib's override over libintl's override.
6394         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
6395         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
6396         GNULIB_defined_setlocale is set.
6397
6398 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6399
6400         stdlib: support non-GCC __attribute__
6401
6402         Fix a serious and tricky problem encountered when attempting to
6403         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
6404         5.5, but it crashed due to memory corruption on Solaris 10 with
6405         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
6406         bits that are otherwise zero.  This tagging is optional inside
6407         Emacs but is preferred and is used when __attribute__ ((__aligned
6408         (8))) works, as it does with both recent-enough GCC and with Sun C
6409         5.11.  However, Sun C 5.11 is not GCC and does not #define
6410         __GNUC__ and __GNUC_MINOR__.
6411
6412         When I added the getloadavg module to Emacs, it brought in
6413         stdlib.in.h, which contained this fragment:
6414
6415            #ifndef __attribute__
6416            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
6417            #  define __attribute__(Spec)   /* empty */
6418            # endif
6419            #endif
6420
6421         When files that include <stdlib.h> were compiled with Sun C 5.11,
6422         the above code disabled __attribute__ ((__aligned (8))), which
6423         caused variables to not be properly aligned, which eventually led
6424         to the pointer corruption mentioned above.  (This was a bit hard
6425         to diagnose, unfortunately.)
6426
6427         Several "#define __attribute__(X) /* empty */" code snippets need
6428         to be eradicated from Gnulib to work with non-GCC compilers that
6429         support __attribute__.  The Autoconf way to do this is to test for
6430         each kind of attribute that we want support for, and selectively
6431         enable that in source code.
6432
6433         Fix this problem just for stdlib.h, by adding a test for the
6434         __noreturn__ attribute, and change stdlib.in.h to use that test
6435         when needed.  This technique can be easily generalized to the
6436         other *.in.h files and attributes, and a similar technique can be
6437         used for *.h and *.c files.  This patch is enough to solve the
6438         problem for Emacs + getloadavg, and I thought I'd publish it for
6439         feedback before undertaking further, similar fixes in other
6440         modules.
6441
6442         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
6443         because it's not needed for stdlib.h.  It merely substitutes the
6444         value directly into stdlib.h.  We may well need to #define it, or
6445         similar symbols, for other modules, but it's nice to also have an
6446         option to not #define it for applications like Emacs that do not
6447         need it.
6448
6449         * lib/stdlib.in.h (__attribute__): Do not #define.
6450         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
6451         be defined only if the _Exit module is also used.
6452         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
6453         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
6454         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
6455         platforms.
6456         * modules/_Exit (Files): Add m4/attribute.m4.
6457         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
6458         * m4/attribute.m4: New file.
6459
6460 2011-02-12  Bruno Haible  <bruno@clisp.org>
6461
6462         wcsrtombs: Work around bug on native Windows.
6463         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
6464         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
6465         instead of len.
6466         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
6467
6468 2011-02-12  Bruno Haible  <bruno@clisp.org>
6469
6470         mbsrtowcs: Work around bug on native Windows.
6471         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
6472         against mingw bug.
6473         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
6474
6475 2011-02-12  Bruno Haible  <bruno@clisp.org>
6476
6477         Avoid setlocale bugs in tests.
6478         * modules/btowc (Dependencies): Add setlocale.
6479         * modules/c-strcase (Dependencies): Likewise.
6480         * modules/mbmemcasecmp (Dependencies): Likewise.
6481         * modules/mbmemcasecoll (Dependencies): Likewise.
6482         * modules/mbrtowc (Dependencies): Likewise.
6483         * modules/mbscasecmp (Dependencies): Likewise.
6484         * modules/mbscasestr (Dependencies): Likewise.
6485         * modules/mbschr (Dependencies): Likewise.
6486         * modules/mbscspn (Dependencies): Likewise.
6487         * modules/mbsinit (Dependencies): Likewise.
6488         * modules/mbsncasecmp (Dependencies): Likewise.
6489         * modules/mbsnrtowcs (Dependencies): Likewise.
6490         * modules/mbspbrk (Dependencies): Likewise.
6491         * modules/mbspcasecmp (Dependencies): Likewise.
6492         * modules/mbsrchr (Dependencies): Likewise.
6493         * modules/mbsrtowcs (Dependencies): Likewise.
6494         * modules/mbsspn (Dependencies): Likewise.
6495         * modules/mbsstr (Dependencies): Likewise.
6496         * modules/nl_langinfo (Dependencies): Likewise.
6497         * modules/quotearg (Dependencies): Likewise.
6498         * modules/unicase/locale-language (Dependencies): Likewise.
6499         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
6500         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
6501         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
6502         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
6503         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
6504         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
6505         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
6506         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
6507         * modules/vasnprintf-posix (Dependencies): Likewise.
6508         * modules/wcrtomb (Dependencies): Likewise.
6509         * modules/wcsnrtombs (Dependencies): Likewise.
6510         * modules/wcsrtombs (Dependencies): Likewise.
6511
6512 2011-02-12  Bruno Haible  <bruno@clisp.org>
6513
6514         setlocale: Workaround native Windows bug.
6515         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
6516         succeeds but sets LC_CTYPE to "C", report a failure.
6517         * tests/test-setlocale2.sh: New file.
6518         * tests/test-setlocale2.c: New file.
6519         * modules/setlocale-tests (Files): Add the new files.
6520         (Makefile.am): Enable test-setlocale2.sh test.
6521         * doc/posix-functions/setlocale.texi: Mention workaround.
6522
6523 2011-02-11  Bruno Haible  <bruno@clisp.org>
6524
6525         Tests for module 'setlocale'.
6526         * modules/setlocale-tests: New file.
6527         * tests/test-setlocale1.sh: New file.
6528         * tests/test-setlocale1.c: New file.
6529
6530         New module 'setlocale'.
6531         * lib/locale.in.h (setlocale): New declaration.
6532         * lib/setlocale.c: New file, based on
6533         gettext/gettext-runtime/intl/setlocale.c.
6534         * m4/setlocale.m4: New file.
6535         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
6536         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
6537         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
6538         REPLACE_SETLOCALE.
6539         * modules/setlocale: New file.
6540         * tests/test-locale-c++.cc: Test the declaration of setlocale.
6541         * doc/posix-functions/setlocale.texi: Mention the new module.
6542
6543 2011-02-11  Bruno Haible  <bruno@clisp.org>
6544
6545         Prepare for locale dependent tests on mingw.
6546         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
6547         because it has the wrong locale encoding.
6548         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
6549         French_France.1252 instead of "fr".
6550         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
6551         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
6552         because it has the wrong locale encoding.
6553         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
6554         native Windows, try Turkish_Turkey.65001.
6555         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
6556         Chinese_China.54936.
6557
6558         Prepare for locale dependent tests on mingw.
6559         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
6560         differently.
6561         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
6562         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
6563         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
6564         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6565
6566 2011-02-11  Eric Blake  <eblake@redhat.com>
6567
6568         strptime: avoid compiler warnings
6569         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
6570         compiler warnings about dead code.
6571         Reported by Daniel P. Berrange.
6572
6573 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
6574
6575         doc: update users.txt
6576         * users.txt: Add rcs.
6577
6578 2011-02-10  John W. Eaton  <jwe@gnu.org>
6579
6580         doc: update users.txt
6581         * users.txt: Add octave.
6582
6583 2011-02-10  Jim Meyering  <meyering@redhat.com>
6584
6585         doc: update users.txt
6586         * users.txt: Add iwhd.
6587
6588 2011-02-09  Bruno Haible  <bruno@clisp.org>
6589
6590         gnulib-tool: Make copyright notice adjustment more robust.
6591         * gnulib-tool (func_import): In sed_transform_main_lib_file,
6592         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
6593         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
6594         License".
6595         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
6596
6597 2011-02-06  Bruno Haible  <bruno@clisp.org>
6598
6599         New module 'towctrans'.
6600         * modules/towctrans: New file.
6601         * lib/wctype.in.h (towctrans): New declaration.
6602         * lib/towctrans.c: New file.
6603         * lib/towctrans-impl.h: New file.
6604         * m4/towctrans.m4: New file.
6605         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
6606         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
6607         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
6608         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
6609         * doc/posix-functions/towctrans.texi: Mention the new module.
6610
6611 2011-02-06  Bruno Haible  <bruno@clisp.org>
6612
6613         New module 'wctrans'.
6614         * modules/wctrans: New file.
6615         * lib/wctype.in.h (wctrans): New declaration.
6616         * lib/wctrans.c: New file.
6617         * lib/wctrans-impl.h: New file.
6618         * m4/wctrans.m4: New file.
6619         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
6620         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
6621         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
6622         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
6623         * doc/posix-functions/wctrans.texi: Mention the new module.
6624
6625 2011-02-06  Bruno Haible  <bruno@clisp.org>
6626
6627         New module 'iswctype'.
6628         * modules/iswctype: New file.
6629         * lib/wctype.in.h (iswctype): New declaration.
6630         * lib/iswctype.c: New file.
6631         * lib/iswctype-impl.h: New file.
6632         * m4/iswctype.m4: New file.
6633         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
6634         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
6635         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
6636         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
6637         * doc/posix-functions/iswctype.texi: Mention the new module and the
6638         HP-UX 11.00 problem.
6639
6640 2011-02-06  Bruno Haible  <bruno@clisp.org>
6641
6642         New module 'wctype'.
6643         * modules/wctype: Change to represent the wctype() substitute.
6644         * lib/wctype.in.h (wctype): New declaration.
6645         * lib/wctype.c: New file.
6646         * lib/wctype-impl.h: New file.
6647         * m4/wctype.m4: New file.
6648         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
6649         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
6650         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
6651         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
6652         * doc/posix-functions/wctype.texi: Mention the new module and the
6653         HP-UX 11.00 problem.
6654
6655 2011-02-06  Bruno Haible  <bruno@clisp.org>
6656
6657         wctype-h: Ensure wctype_t and wctrans_t are defined.
6658         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
6659         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
6660         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
6661         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
6662         HAVE_WCTRANS_T.
6663         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
6664
6665 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6666
6667         flock: fix license typo
6668
6669         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
6670         omitted.
6671
6672 2011-02-08  Bruno Haible  <bruno@clisp.org>
6673
6674         Split large sed scripts, for HP-UX sed.
6675         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
6676         to avoid HP-UX limit of 99 commands, in the near future.
6677         * modules/stdlib (Makefile.am): Likewise.
6678         * modules/unistd (Makefile.am): Likewise.
6679         * modules/wchar (Makefile.am): Likewise.
6680         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6681         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
6682         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
6683
6684 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6685             Bruno Haible  <bruno@clisp.org>
6686
6687         stdlib: improve random_r modularization
6688         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
6689         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
6690         you also need the random_r module to get this material right.
6691         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
6692         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
6693         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
6694
6695 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6696
6697         stdlib: don't depend on stdint
6698         * lib/stdlib.in.h: Don't include <stdint.h> merely because
6699         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
6700         be independent of whether stdint.h is needed.
6701         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
6702         here, instead of ...
6703         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
6704         struct random_data should be using the random_r module, not just
6705         the stdlib module (which wouldn't make sense: what package needs
6706         just struct random_data without also needing random_r?).
6707         * modules/stdlib (Depends-on): Remove stdint.
6708
6709         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
6710         See the thread rooted at
6711         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
6712         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
6713         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
6714         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
6715         __VMS)); previously it was always included (via fcntl--.h).
6716         (getloadavg): Do not use c_strtod.  Instead, approximate it by
6717         hand; this is good enough for load averages.  Also, do not use
6718         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
6719         flags directly if available and don't bother otherwise.  (Packages
6720         that need the extra reliability should use the modules that define
6721         these flags on older platforms that lack them.)
6722         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
6723         fcntl-safer.
6724
6725 2011-02-08  Jim Meyering  <meyering@redhat.com>
6726
6727         di-set.h, ino-map.h: add multiple-inclusion guard
6728         Technically, the guard is required only for ino-map.h, due to its
6729         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
6730         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
6731         * lib/ino-map.h: Likewise.
6732
6733 2011-02-06  Bruno Haible  <bruno@clisp.org>
6734
6735         iswblank: Ensure declaration on glibc systems.
6736         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
6737         * modules/iswblank (Dependencies): Add 'extensions'.
6738         * doc/posix-functions/iswblank.texi: Document the glibc problem.
6739
6740 2011-02-06  Bruno Haible  <bruno@clisp.org>
6741
6742         New module 'iswblank'.
6743         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
6744         * modules/iswblank: New file.
6745         * modules/wctype-h (Files): Remove lib/iswblank.c.
6746         (Makefile.am): Substitute GNULIB_ISWBLANK.
6747         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
6748         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
6749         (gl_WCTYPE_H_DEFAULTS): New macro.
6750         (gl_WCTYPE_H): Require it. Remove iswblank related code.
6751         * modules/iswblank-tests: New file.
6752         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
6753         * tests/test-wctype-h.c (main): Remove iswblank tests.
6754         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
6755         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
6756         of 'wctype-h'.
6757         * NEWS: Mention the change.
6758         * modules/mbchar (Depends-on): Add iswblank.
6759
6760 2011-02-08  Bruno Haible  <bruno@clisp.org>
6761
6762         di-set tests: Refactor.
6763         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
6764         unnecessary includes.
6765         (ASSERT): Remove macro.
6766         (main): Make C90 compliant by avoiding variable declaration after
6767         statement.
6768         * modules/di-set-tests (Files): Add tests/macros.h.
6769
6770 2011-02-08  Bruno Haible  <bruno@clisp.org>
6771
6772         ino-map tests: Refactor.
6773         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
6774         unnecessary includes.
6775         (ASSERT): Remove macro.
6776         (main): Make C90 compliant by avoiding variable declaration after
6777         statement.
6778         * modules/ino-map-tests (Files): Add tests/macros.h.
6779
6780 2011-02-08  Jim Meyering  <meyering@redhat.com>
6781
6782         di-set: add "const" to a cast
6783         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
6784         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
6785
6786 2011-02-06  Bruno Haible  <bruno@clisp.org>
6787
6788         Rename module 'wctype' to 'wctype-h'.
6789         * modules/wctype-h: Renamed from modules/wctype.
6790         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
6791         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
6792         (Files, Depends-on, Makefile.am): Update.
6793         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
6794         (Files, Makefile.am): Update.
6795         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
6796         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
6797         * doc/posix-headers/wctype.texi: Update.
6798         * doc/posix-functions/iswalnum.texi: Update.
6799         * doc/posix-functions/iswalpha.texi: Update.
6800         * doc/posix-functions/iswblank.texi: Update.
6801         * doc/posix-functions/iswcntrl.texi: Update.
6802         * doc/posix-functions/iswdigit.texi: Update.
6803         * doc/posix-functions/iswgraph.texi: Update.
6804         * doc/posix-functions/iswlower.texi: Update.
6805         * doc/posix-functions/iswprint.texi: Update.
6806         * doc/posix-functions/iswpunct.texi: Update.
6807         * doc/posix-functions/iswspace.texi: Update.
6808         * doc/posix-functions/iswupper.texi: Update.
6809         * doc/posix-functions/iswxdigit.texi: Update.
6810         * doc/posix-functions/towlower.texi: Update.
6811         * doc/posix-functions/towupper.texi: Update.
6812         * NEWS: Mention the change.
6813         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
6814         * modules/mbchar (Dependencies): Likewise.
6815         * modules/mbswidth (Dependencies): Likewise.
6816         * modules/quotearg (Dependencies): Likewise.
6817         * modules/regex (Dependencies): Likewise.
6818         * modules/wcscasecmp (Dependencies): Likewise.
6819         * modules/wcsncasecmp (Dependencies): Likewise.
6820         * modules/wcwidth (Dependencies): Likewise.
6821
6822 2011-02-06  Bruno Haible  <bruno@clisp.org>
6823
6824         New module 'wcswidth'.
6825         * modules/wcswidth: New file.
6826         * lib/wchar.in.h (wcswidth): New declaration.
6827         * lib/wcswidth.c: New file.
6828         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
6829         * m4/wcswidth.m4: New file.
6830         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
6831         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
6832         REPLACE_WCSWIDTH.
6833         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
6834         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
6835         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
6836         * doc/posix-functions/wcswidth.texi: Mention the new module.
6837
6838 2011-02-06  Bruno Haible  <bruno@clisp.org>
6839
6840         New module 'wcstok'.
6841         * modules/wcstok: New file.
6842         * lib/wchar.in.h (wcstok): New declaration.
6843         * lib/wcstok.c: New file.
6844         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
6845         * m4/wcstok.m4: New file.
6846         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
6847         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
6848         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
6849         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
6850         * doc/posix-functions/wcstok.texi: Mention the new module.
6851
6852 2011-02-06  Bruno Haible  <bruno@clisp.org>
6853
6854         New module 'wcsstr'.
6855         * modules/wcsstr: New file.
6856         * lib/wchar.in.h (wcsstr): New declaration.
6857         * lib/wcsstr.c: New file.
6858         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
6859         * m4/wcsstr.m4: New file.
6860         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
6861         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
6862         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
6863         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
6864         * doc/posix-functions/wcsstr.texi: Mention the new module.
6865
6866 2011-02-06  Bruno Haible  <bruno@clisp.org>
6867
6868         New module 'wcspbrk'.
6869         * modules/wcspbrk: New file.
6870         * lib/wchar.in.h (wcspbrk): New declaration.
6871         * lib/wcspbrk.c: New file.
6872         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
6873         * m4/wcspbrk.m4: New file.
6874         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
6875         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
6876         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
6877         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
6878         * doc/posix-functions/wcspbrk.texi: Mention the new module.
6879
6880 2011-02-06  Bruno Haible  <bruno@clisp.org>
6881
6882         New module 'wcsspn'.
6883         * modules/wcsspn: New file.
6884         * lib/wchar.in.h (wcsspn): New declaration.
6885         * lib/wcsspn.c: New file.
6886         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
6887         * m4/wcsspn.m4: New file.
6888         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
6889         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
6890         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
6891         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
6892         * doc/posix-functions/wcsspn.texi: Mention the new module.
6893
6894 2011-02-06  Bruno Haible  <bruno@clisp.org>
6895
6896         New module 'wcscspn'.
6897         * modules/wcscspn: New file.
6898         * lib/wchar.in.h (wcscspn): New declaration.
6899         * lib/wcscspn.c: New file.
6900         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
6901         * m4/wcscspn.m4: New file.
6902         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
6903         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
6904         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
6905         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
6906         * doc/posix-functions/wcscspn.texi: Mention the new module.
6907
6908 2011-02-06  Bruno Haible  <bruno@clisp.org>
6909
6910         New module 'wcsrchr'.
6911         * modules/wcsrchr: New file.
6912         * lib/wchar.in.h (wcsrchr): New declaration.
6913         * lib/wcsrchr.c: New file.
6914         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
6915         * m4/wcsrchr.m4: New file.
6916         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
6917         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
6918         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
6919         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
6920         * doc/posix-functions/wcsrchr.texi: Mention the new module.
6921
6922 2011-02-06  Bruno Haible  <bruno@clisp.org>
6923
6924         New module 'wcschr'.
6925         * modules/wcschr: New file.
6926         * lib/wchar.in.h (wcschr): New declaration.
6927         * lib/wcschr.c: New file.
6928         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
6929         * m4/wcschr.m4: New file.
6930         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
6931         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
6932         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
6933         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
6934         * doc/posix-functions/wcschr.texi: Mention the new module.
6935
6936 2011-02-06  Bruno Haible  <bruno@clisp.org>
6937
6938         New module 'wcsdup'.
6939         * modules/wcsdup: New file.
6940         * lib/wchar.in.h (wcsdup): New declaration.
6941         * lib/wcsdup.c: New file.
6942         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
6943         * m4/wcsdup.m4: New file.
6944         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
6945         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
6946         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
6947         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
6948         * doc/posix-functions/wcsdup.texi: Mention the new module.
6949
6950 2011-02-06  Bruno Haible  <bruno@clisp.org>
6951
6952         New module 'wcsxfrm'.
6953         * modules/wcsxfrm: New file.
6954         * lib/wchar.in.h (wcsxfrm): New declaration.
6955         * lib/wcsxfrm.c: New file.
6956         * lib/wcsxfrm-impl.h: New file.
6957         * m4/wcsxfrm.m4: New file.
6958         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
6959         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
6960         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
6961         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
6962         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
6963
6964 2011-02-06  Bruno Haible  <bruno@clisp.org>
6965
6966         New module 'wcscoll'.
6967         * modules/wcscoll: New file.
6968         * lib/wchar.in.h (wcscoll): New declaration.
6969         * lib/wcscoll.c: New file.
6970         * lib/wcscoll-impl.h: New file.
6971         * m4/wcscoll.m4: New file.
6972         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
6973         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
6974         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
6975         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
6976         * doc/posix-functions/wcscoll.texi: Mention the new module.
6977
6978 2011-02-06  Bruno Haible  <bruno@clisp.org>
6979
6980         New module 'wcsncasecmp'.
6981         * modules/wcsncasecmp: New file.
6982         * lib/wchar.in.h (wcsncasecmp): New declaration.
6983         * lib/wcsncasecmp.c: New file.
6984         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
6985         * m4/wcsncasecmp.m4: New file.
6986         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
6987         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
6988         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
6989         HAVE_WCSNCASECMP.
6990         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
6991         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
6992
6993 2011-02-06  Bruno Haible  <bruno@clisp.org>
6994
6995         New module 'wcscasecmp'.
6996         * modules/wcscasecmp: New file.
6997         * lib/wchar.in.h (wcscasecmp): New declaration.
6998         * lib/wcscasecmp.c: New file.
6999         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
7000         * m4/wcscasecmp.m4: New file.
7001         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
7002         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
7003         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
7004         HAVE_WCSCASECMP.
7005         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
7006         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
7007
7008 2011-02-05  Bruno Haible  <bruno@clisp.org>
7009
7010         New module 'wcsncmp'.
7011         * modules/wcsncmp: New file.
7012         * lib/wchar.in.h (wcsncmp): New declaration.
7013         * lib/wcsncmp.c: New file.
7014         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
7015         * m4/wcsncmp.m4: New file.
7016         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
7017         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
7018         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
7019         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
7020         * doc/posix-functions/wcsncmp.texi: Mention the new module.
7021
7022 2011-02-05  Bruno Haible  <bruno@clisp.org>
7023
7024         New module 'wcscmp'.
7025         * modules/wcscmp: New file.
7026         * lib/wchar.in.h (wcscmp): New declaration.
7027         * lib/wcscmp.c: New file.
7028         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
7029         * m4/wcscmp.m4: New file.
7030         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
7031         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
7032         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
7033         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
7034         * doc/posix-functions/wcscmp.texi: Mention the new module.
7035
7036 2011-02-05  Bruno Haible  <bruno@clisp.org>
7037
7038         New module 'wcsncat'.
7039         * modules/wcsncat: New file.
7040         * lib/wchar.in.h (wcsncat): New declaration.
7041         * lib/wcsncat.c: New file.
7042         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
7043         * m4/wcsncat.m4: New file.
7044         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
7045         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
7046         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
7047         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
7048         * doc/posix-functions/wcsncat.texi: Mention the new module.
7049
7050 2011-02-05  Bruno Haible  <bruno@clisp.org>
7051
7052         New module 'wcscat'.
7053         * modules/wcscat: New file.
7054         * lib/wchar.in.h (wcscat): New declaration.
7055         * lib/wcscat.c: New file.
7056         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
7057         * m4/wcscat.m4: New file.
7058         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
7059         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
7060         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
7061         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
7062         * doc/posix-functions/wcscat.texi: Mention the new module.
7063
7064 2011-02-05  Bruno Haible  <bruno@clisp.org>
7065
7066         New module 'wcpncpy'.
7067         * modules/wcpncpy: New file.
7068         * lib/wchar.in.h (wcpncpy): New declaration.
7069         * lib/wcpncpy.c: New file.
7070         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
7071         * m4/wcpncpy.m4: New file.
7072         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
7073         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
7074         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
7075         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
7076         * doc/posix-functions/wcpncpy.texi: Mention the new module.
7077
7078 2011-02-05  Bruno Haible  <bruno@clisp.org>
7079
7080         New module 'wcsncpy'.
7081         * modules/wcsncpy: New file.
7082         * lib/wchar.in.h (wcsncpy): New declaration.
7083         * lib/wcsncpy.c: New file.
7084         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
7085         * m4/wcsncpy.m4: New file.
7086         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
7087         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
7088         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
7089         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
7090         * doc/posix-functions/wcsncpy.texi: Mention the new module.
7091
7092 2011-02-05  Bruno Haible  <bruno@clisp.org>
7093
7094         New module 'wcpcpy'.
7095         * modules/wcpcpy: New file.
7096         * lib/wchar.in.h (wcpcpy): New declaration.
7097         * lib/wcpcpy.c: New file.
7098         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
7099         * m4/wcpcpy.m4: New file.
7100         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
7101         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
7102         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
7103         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
7104         * doc/posix-functions/wcpcpy.texi: Mention the new module.
7105
7106 2011-02-05  Bruno Haible  <bruno@clisp.org>
7107
7108         New module 'wcscpy'.
7109         * modules/wcscpy: New file.
7110         * lib/wchar.in.h (wcscpy): New declaration.
7111         * lib/wcscpy.c: New file.
7112         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
7113         * m4/wcscpy.m4: New file.
7114         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
7115         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
7116         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
7117         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
7118         * doc/posix-functions/wcscpy.texi: Mention the new module.
7119
7120 2011-02-05  Bruno Haible  <bruno@clisp.org>
7121
7122         New module 'wcsnlen'.
7123         * modules/wcsnlen: New file.
7124         * lib/wchar.in.h (wcsnlen): New declaration.
7125         * lib/wcsnlen.c: New file.
7126         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
7127         * m4/wcsnlen.m4: New file.
7128         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
7129         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
7130         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
7131         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
7132         * doc/posix-functions/wcsnlen.texi: Mention the new module.
7133
7134 2011-02-05  Bruno Haible  <bruno@clisp.org>
7135
7136         New module 'wcslen'.
7137         * modules/wcslen: New file.
7138         * lib/wchar.in.h (wcslen): New declaration.
7139         * lib/wcslen.c: New file.
7140         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
7141         * m4/wcslen.m4: New file.
7142         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
7143         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
7144         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
7145         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
7146         * doc/posix-functions/wcslen.texi: Mention the new module.
7147
7148 2011-02-05  Bruno Haible  <bruno@clisp.org>
7149
7150         New module 'wmemset'.
7151         * modules/wmemset: New file.
7152         * lib/wchar.in.h (wmemset): New declaration.
7153         * lib/wmemset.c: New file.
7154         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
7155         * m4/wmemset.m4: New file.
7156         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
7157         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
7158         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
7159         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
7160         * doc/posix-functions/wmemset.texi: Mention the new module.
7161
7162 2011-02-05  Bruno Haible  <bruno@clisp.org>
7163
7164         New module 'wmemmove'.
7165         * modules/wmemmove: New file.
7166         * lib/wchar.in.h (wmemmove): New declaration.
7167         * lib/wmemmove.c: New file.
7168         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
7169         * m4/wmemmove.m4: New file.
7170         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
7171         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
7172         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
7173         HAVE_WMEMMOVE.
7174         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
7175         * doc/posix-functions/wmemmove.texi: Mention the new module.
7176
7177 2011-02-05  Bruno Haible  <bruno@clisp.org>
7178
7179         New module 'wmemcpy'.
7180         * modules/wmemcpy: New file.
7181         * lib/wchar.in.h (wmemcpy): New declaration.
7182         * lib/wmemcpy.c: New file.
7183         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
7184         * m4/wmemcpy.m4: New file.
7185         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
7186         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
7187         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
7188         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
7189         * doc/posix-functions/wmemcpy.texi: Mention the new module.
7190
7191 2011-02-05  Bruno Haible  <bruno@clisp.org>
7192
7193         New module 'wmemcmp'.
7194         * modules/wmemcmp: New file.
7195         * lib/wchar.in.h (wmemcmp): New declaration.
7196         * lib/wmemcmp.c: New file.
7197         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
7198         * m4/wmemcmp.m4: New file.
7199         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
7200         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
7201         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
7202         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
7203         * doc/posix-functions/wmemcmp.texi: Mention the new module.
7204
7205 2011-02-07  Jim Meyering  <meyering@redhat.com>
7206
7207         di-set, ino-map: new modules, from coreutils
7208         * lib/di-set.c: New file.
7209         * lib/di-set.h: Likewise.
7210         * lib/ino-map.c: Likewise.
7211         * lib/ino-map.h: Likewise.
7212         * modules/di-set: Likewise.
7213         * modules/di-set-tests: Likewise.
7214         * modules/ino-map: Likewise.
7215         * modules/ino-map-tests: Likewise.
7216         * tests/test-di-set.c: Likewise.
7217         * tests/test-ino-map.c: Likewise.
7218
7219 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
7220
7221         getloadavg: merge minor changes from Emacs
7222
7223         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
7224         (getloadavg): Use memset, not bzero.
7225
7226         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
7227         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7228         clash (bug#86).
7229
7230 2010-11-14  Bruno Haible  <bruno@clisp.org>
7231
7232         Allow multiple gnulib generated replacements to coexist.
7233         * lib/getopt.in.h (struct option): Avoid identical redefinition.
7234         * lib/inttypes.in.h (imaxdiv_t): Likewise.
7235         * lib/langinfo.in.h (nl_item): Likewise.
7236         * lib/math.in.h (_NaN, NAN): Likewise.
7237         * lib/netdb.in.h (struct addrinfo): Likewise.
7238         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
7239         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
7240         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
7241         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
7242         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
7243         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
7244         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
7245         pthread_mutexattr_init, pthread_mutexattr_settype,
7246         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
7247         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
7248         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
7249         pthread_spin_trylock, pthread_spin_unlock): Likewise.
7250         * lib/sched.in.h (struct sched_param): Likewise.
7251         * lib/se-selinux.in.h (security_class_t, security_context_t,
7252         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
7253         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
7254         lsetfilecon, fsetfilecon, security_check_context,
7255         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
7256         Likewise.
7257         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
7258         Likewise.
7259         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
7260         _gl_function_taking_int_returning_void_t, union sigval,
7261         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
7262         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
7263         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
7264         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
7265         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
7266         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
7267         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
7268         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
7269         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
7270         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
7271         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
7272         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
7273         socklen_t, rpl_fd_isset): Likewise.
7274         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
7275         * lib/sys_time.in.h (struct timeval): Likewise.
7276         * lib/sys_times.in.h (struct tms): Likewise.
7277         * lib/sys_utsname.in.h (struct utsname):
7278         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
7279         * lib/unistd.in.h (getpagesize): Likewise.
7280         * lib/wchar.in.h (mbstate_t): Likewise.
7281         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
7282         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
7283         towlower, towupper): Likewise.
7284         Reported by Sam Steingold <sds@gnu.org>.
7285
7286 2011-02-05  Eric Blake  <eblake@redhat.com>
7287
7288         unsetenv: work around Haiku issues
7289         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
7290         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
7291
7292 2010-12-30  Bruce Korb  <bkorb@gnu.org>
7293
7294         libposix: avoid calling error() within libposix
7295         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
7296         is defined.
7297
7298 2011-02-05  Eric Blake  <eblake@redhat.com>
7299
7300         strerror_r-posix: port to cygwin
7301         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
7302         implementation.
7303         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
7304         * tests/test-strerror_r.c (main): Fix test.
7305         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
7306         issue.
7307
7308 2011-02-05  Bruno Haible  <bruno@clisp.org>
7309
7310         New module 'wmemchr'.
7311         * modules/wmemchr: New file.
7312         * lib/wchar.in.h (wmemchr): New declaration.
7313         * lib/wmemchr.c: New file.
7314         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
7315         * m4/wmemchr.m4: New file.
7316         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
7317         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
7318         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
7319         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
7320         * doc/posix-functions/wmemchr.texi: Mention the new module.
7321
7322 2011-02-04  Eric Blake  <eblake@redhat.com>
7323
7324         fdopendir: detect FreeBSD bug
7325         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
7326         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
7327
7328 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7329
7330         stdbool: do not define HAVE_STDBOOL_H
7331         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
7332         AC_HEADER_STDBOOL.  All uses changed.  Do not define
7333         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
7334         imported from the latest Autoconf git.  It was motivated by Emacs,
7335         which uses gnulib but does not need HAVE_STDBOOL_H.
7336
7337 2011-02-04  Bruno Haible  <bruno@clisp.org>
7338
7339         wcsnrtombs: Prepare for new module wwcsnrtombs.
7340         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
7341         * lib/wcsnrtombs.c: Include it.
7342         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
7343
7344         wcsrtombs: Prepare for new module wwcsrtombs.
7345         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
7346         * lib/wcsrtombs.c: Include it.
7347         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
7348
7349         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
7350         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
7351         * lib/mbsnrtowcs.c: Include it.
7352         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
7353
7354         mbsrtowcs: Prepare for new module mbsrtowwcs.
7355         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
7356         * lib/mbsrtowcs.c: Include it.
7357         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
7358
7359 2011-02-04  Bruno Haible  <bruno@clisp.org>
7360
7361         vasnprintf: Reduce use of malloc for small format strings.
7362         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
7363         (arguments): Add room for the first 7 arguments.
7364         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
7365         (char_directives, u8_directives, u16_directives, u32_directives): Add
7366         room for the first 7 directives.
7367         * lib/printf-parse.c: Include <string.h>.
7368         (PRINTF_PARSE): Change memory handling code so that it uses the first
7369         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
7370         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
7371         Reported by Pádraig Brady <P@draigbrady.com>.
7372
7373 2011-01-31  Eric Blake  <eblake@redhat.com>
7374
7375         dup2: work around Haiku bug
7376         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
7377         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
7378         * doc/posix-functions/dup2.texi (dup2): Document the bug.
7379         * tests/test-dup2.c (main): Enhance test.
7380
7381 2011-01-31  Simon Josefsson  <simon@josefsson.org>
7382
7383         doc: off_t is not available in eglibc 2.11.2 stdio.h.
7384         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
7385         declared by eglibc 2.11.2.
7386         * lib/stdio.in.h: Likewise.
7387
7388 2011-01-31  Eric Blake  <eblake@redhat.com>
7389
7390         ignore-value: add missing test dependency
7391         * tests/test-ignore-value.c: Revert previous change; stdio.h
7392         provides off_t.
7393         * modules/ignore-value-tests (Depends-on): Add missing dependency.
7394
7395 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
7396
7397         mktime: clarify long_int width checking
7398         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
7399         the top level, to make it clearer that the assumption about
7400         long_int width is being checked.  See
7401         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
7402
7403 2011-01-30  Simon Josefsson  <simon@josefsson.org>
7404
7405         ignore-value: Fix self-test.
7406         * tests/test-ignore-value.c: Include sys/types.h for off_t.
7407
7408 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
7409
7410         TYPE_MAXIMUM: avoid theoretically undefined behavior
7411         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
7412         negative number, which the C Standard says has undefined behavior.
7413         In practice this is not a problem, but might as well do it by the book.
7414         Reported by Rich Felker and Eric Blake; see
7415         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
7416         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
7417         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7418         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7419         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
7420         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7421         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
7422
7423         mktime: #undef mktime before #defining it
7424         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
7425
7426         mktime: systematically normalize tm_isdst comparisons
7427         * lib/mktime.c (isdst_differ): New function.
7428         (__mktime_internal): Use it systematically for all isdst comparisons.
7429         This completes the fix for libc BZ #6723, and removes the need for
7430         normalizing tm_isdst.  See
7431         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
7432         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
7433
7434         mktime: fix some integer overflow issues and sidestep the rest
7435
7436         This was prompted by a bug report by Benjamin Lindner for MinGW
7437         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
7438         His bug is due to signed integer overflow (0 - INT_MIN), and I
7439         I scanned through mktime.c looking for other integer overflow
7440         problems, fixing all the bugs I found.
7441
7442         Although the C Standard says the resulting code is still not safe
7443         in the presence of integer overflow, in practice it should be good
7444         enough for all real-world two's-complement implementations, except
7445         for debugging environments that deliberately trap on integer
7446         overflow (e.g., gcc -ftrapv).
7447
7448         * lib/mktime.c (WRAPV): New macro.
7449         (SHR): Also check that long_int and time_t shift right in the
7450         usual way, before using the fast-but-unportable method.
7451         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
7452         used.  The code already assumed two's complement, so there's
7453         no need to test for alternatives.  All uses removed.
7454         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
7455         the C standard.  Problem reported by Rich Felker in
7456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
7457         (twos_complement_arithmetic): Also check long_int and time_t.
7458         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
7459         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
7460         (__mktime_internal): Avoid integer overflow with unary subtraction
7461         in two instances where -1 - X is an adequate replacement for -X,
7462         since the calculations are approximate.
7463
7464 2011-01-29  Eric Blake  <eblake@redhat.com>
7465
7466         mktime: avoid infinite loop
7467         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
7468         type; behavior is still undefined but portable to all known targets.
7469         Reported by Rich Felker.
7470
7471 2011-01-29  Simon Josefsson  <simon@josefsson.org>
7472
7473         rename, unlink, same-inode: Relicense.
7474         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
7475         * modules/unlink (License): Likewise.
7476         * modules/same-inode (License): Likewise.
7477
7478 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7479
7480         mktime: avoid problems on NetBSD 5 / i386
7481         * lib/mktime.c (long_int): New type.  This works around a problem
7482         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
7483         but time_t is 64 bits, and where I expect the existing code is
7484         wrong in some cases.
7485         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
7486         (ydhms_diff): Bring back the compile-time check for wide-enough
7487         year and yday.
7488
7489         mktime: fix misspelling in comment
7490         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
7491         This merges all recent glibc changes of importance.
7492
7493 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7494
7495         move-if-change: cope with concurrent mv of identical file.
7496         * build-aux/move-if-change (CMPPROG): Accept environment
7497         variable as an override for `cmp'.
7498         (usage): Document CMPPROG.
7499         Adjust comparison to drop stdout.  Cope with failure of mv if
7500         the target file exists and is identical to the source, for
7501         parallel builds.
7502         Report from H.J. Lu against binutils in PR binutils/12283.
7503
7504 2011-01-28  Bruce Korb  <bkorb@gnu.org>
7505
7506         * users.txt: Mention sharutils.
7507
7508 2011-01-28  Simon Josefsson  <simon@josefsson.org>
7509
7510         * users.txt: Mention OATH Toolkit.
7511
7512 2011-01-27  Bruno Haible  <bruno@clisp.org>
7513
7514         Prepare for supporting FreeBSD 10.
7515         * build-aux/config.libpath: Remove handling of freebsd1*.
7516
7517 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
7518
7519         Prepare for supporting FreeBSD 10.
7520         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
7521         match FreeBSD 10.0.
7522
7523 2011-01-27  Bruno Haible  <bruno@clisp.org>
7524
7525         vma-iter, get-rusage-as: Add OpenBSD support.
7526         * modules/vma-iter (configure.ac): Test for mquery.
7527         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
7528         * lib/vma-iter.c: Include <sys/mman.h>.
7529         (vma_iterate): Add an implementation based on mquery().
7530         * lib/resource-ext.h (get_rusage_as): Update comments.
7531         * lib/get-rusage-as.c: Likewise.
7532         * lib/get-rusage-data.c: Likewise.
7533
7534 2011-01-26  Karl Berry  <karl@gnu.org>
7535
7536         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
7537         variables to make it easier to override the makeinfo program used.
7538
7539 2011-01-26  Eric Blake  <eblake@redhat.com>
7540
7541         fcntl: work around Haiku F_DUPFD bugs
7542         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
7543         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
7544         cloexec bit on duplication.
7545         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
7546
7547 2011-01-26  Bruno Haible  <bruno@clisp.org>
7548
7549         Enable memory leak tests on AIX.
7550         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
7551         * tests/test-fprintf-posix3.c (main): Likewise.
7552
7553 2011-01-26  Bruno Haible  <bruno@clisp.org>
7554
7555         Tests for module 'get-rusage-data'.
7556         * modules/get-rusage-data-tests: New file.
7557         * tests/test-get-rusage-data.c: New file.
7558
7559         New module 'get-rusage-data'.
7560         * lib/resource-ext.h (get_rusage_data): New declaration.
7561         * lib/get-rusage-data.c: New file.
7562         * modules/get-rusage-data: New file.
7563
7564 2011-01-25  Bruno Haible  <bruno@clisp.org>
7565
7566         get-rusage-as: Allow for easier testing.
7567         * lib/resource-ext.h (get_rusage_as): Add comment.
7568         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
7569         (main): New function for interactive testing.
7570
7571 2011-01-25  Bruno Haible  <bruno@clisp.org>
7572
7573         vma-iter: Treat Haiku like BeOS.
7574         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
7575         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
7576
7577 2011-01-25  Eric Blake  <eblake@redhat.com>
7578
7579         c-stack: fix regression on cygwin when libsigsegv is present
7580         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
7581
7582 2011-01-24  Bruno Haible  <bruno@clisp.org>
7583
7584         vma-iter: Avoid empty intervals.
7585         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
7586         on an empty interval.
7587
7588 2011-01-24  Jim Meyering  <meyering@redhat.com>
7589
7590         u64: remove unnecessary #include
7591         * lib/u64.h: Don't include <stddef.h>.  It was not used.
7592
7593 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7594
7595         Allow the user to avoid the HAVE_RAW_DECL_* macros.
7596         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
7597
7598 2011-01-23  Bruno Haible  <bruno@clisp.org>
7599
7600         New module 'vma-iter'.
7601         * lib/vma-iter.h: New file.
7602         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
7603         * modules/vma-iter: New file.
7604         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
7605         for get_rusage_as_via_iterator.
7606         (vma_iterate_callback): New function.
7607         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
7608         * modules/get-rusage-as (Depends-on): Add vma-iter.
7609
7610 2011-01-23  Bruno Haible  <bruno@clisp.org>
7611
7612         uninorm: Tweak includes.
7613         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
7614         Reported by Jim Meyering.
7615
7616 2011-01-23  Bruno Haible  <bruno@clisp.org>
7617
7618         get-rusage-as: Improve on NetBSD.
7619         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
7620         /proc, like on FreeBSD.
7621
7622 2011-01-23  Jim Meyering  <meyering@redhat.com>
7623
7624         xreadlink.h: remove unnecessary #include
7625         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
7626
7627         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
7628         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
7629
7630 2011-01-23  Bruno Haible  <bruno@clisp.org>
7631
7632         get-rusage-as: Fix bug.
7633         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
7634         original limit when aborting the first loop.
7635
7636 2011-01-23  Bruno Haible  <bruno@clisp.org>
7637
7638         wctype: Ensure valid C syntax.
7639         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
7640         unconditionally, instead of gl_NEXT_HEADERS conditionally.
7641
7642 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
7643
7644         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
7645         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
7646         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
7647         as they are needed only for configure's test case.
7648         This removes two unnecessary symbols from config.h.
7649
7650         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
7651         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
7652         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
7653         AC_CHECK_HEADERS_ONCE on a header that we also invoke
7654         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
7655         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
7656         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
7657         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
7658         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7659         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7660         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
7661         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7662         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7663         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7664         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
7665         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7666         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7667         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
7668
7669 2011-01-21  Eric Blake  <eblake@redhat.com>
7670
7671         maintainer-makefile: work with older git for submodule check
7672         * top/maint.mk (public-submodule-commit): Rewrite to avoid
7673         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
7674         Reported by Matthias Bolte.
7675
7676         bootstrap: minor portability fixes
7677         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
7678         (usage): Omit leading capital and trailing . on help phrases, per
7679         GNU Coding Standards.
7680         (check_versions, top level): Prefix messages with script name.
7681
7682 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
7683
7684         bootstrap: support --no-git option
7685         * build-aux/bootstrap: Add --no-git option, to be used when
7686         --gnulib-srcdir points to the exact desired checkout.
7687
7688 2011-01-21  Eric Blake  <eblake@redhat.com>
7689
7690         strerror_r-posix: work with glibc 2.13
7691         * lib/strerror_r.c (strerror_r): Fix return type.
7692
7693 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7694             Bruno Haible  <bruno@clisp.org>
7695
7696         uN_strstr: New unit tests.
7697         * modules/unistr/u8-strstr-tests: New file.
7698         * modules/unistr/u16-strstr-tests: New file.
7699         * modules/unistr/u32-strstr-tests: New file.
7700         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
7701         * tests/unistr/test-u8-strstr.c: New file.
7702         * tests/unistr/test-u16-strstr.c: New file.
7703         * tests/unistr/test-u32-strstr.c: New file.
7704
7705 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7706             Bruno Haible  <bruno@clisp.org>
7707
7708         Make uN_strstr functions O(n) worst-case.
7709         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
7710         16-bit and 32-bit unit cases, use the unibyte algorithm from
7711         lib/mbsstr.c.
7712         * lib/unistr/u8-strstr.c: Include <string.h>.
7713         (UNIT_IS_UINT8_T): New macro.
7714         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
7715         (U_STRLEN, U_STRNLEN): New macros.
7716         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
7717         (U_STRLEN, U_STRNLEN): New macros.
7718         * modules/unistr/u8-strstr (Depends-on): Add strstr.
7719         (configure.ac): Update required libunistring version.
7720         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
7721         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
7722         malloca.
7723         (configure.ac): Update required libunistring version.
7724         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
7725         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
7726         malloca.
7727         (configure.ac): Update required libunistring version.
7728
7729 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7730             Bruno Haible  <bruno@clisp.org>
7731
7732         Prepare for faster uN_strstr functions.
7733         * lib/str-kmp.h: Support definable UNITs.
7734         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
7735         needle_len argument.
7736         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
7737         * lib/mbscasestr.c (mbscasestr): Likewise.
7738
7739 2011-01-21  Pádraig Brady <P@draigBrady.com>
7740
7741         malloca-tests: make faster by unsetting MALLOC_PERTURB_
7742         * tests/test-malloca.c (main): Unset the environment variable
7743         to greatly speed up the test.
7744         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
7745         * modules/malloca-tests: Depend on unsetenv.
7746
7747 2011-01-21  Pádraig Brady <P@draigBrady.com>
7748
7749         ignore-value: remove stdint dependency
7750         * lib/ignore-value.h: Remove <stdint.h>
7751         * modules/ignore-value: Remove stdint dependency.
7752
7753 2011-01-21  Jim Meyering  <meyering@redhat.com>
7754
7755         maint.mk: adjust variable name to be consistent with other gl_ vars
7756         * top/maint.mk (gl_public_submodule_commit): Rename the variable
7757         to be lower case.
7758
7759 2011-01-20  Jim Meyering  <meyering@redhat.com>
7760
7761         maint.mk: make "check" depend on public-submodule-commit by default
7762         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
7763
7764 2011-01-20  Bruno Haible  <bruno@clisp.org>
7765
7766         mbfile, mbiter: Complete change from 2008-12-21.
7767         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
7768         * m4/mbiter.m4 (gl_MBITER): Likewise.
7769
7770 2011-01-20  Jim Meyering  <meyering@redhat.com>
7771
7772         init.sh: insert space between each function name and "()"
7773         * tests/init.sh: Make it a little easier to see that a function's
7774         name is "warn_", and not "warn" when looking at the first part of
7775         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
7776
7777 2011-01-20  Jim Meyering  <meyering@redhat.com>
7778
7779         mountlist: clean up code formatting
7780         * lib/mountlist.c (read_file_system_list): Split a long line,
7781         correct bracing style, use NULL in place of "(struct statfs *)0",
7782         don't parenthesize return value, add spaces around "=" and after
7783         ";-in-for-stmt".
7784
7785 2011-01-14  Markus Duft <mduft@gentoo.org>
7786
7787         mountlist: add support for Interix
7788         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
7789         Apply statvfs to all entries of /dev/fs.
7790         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
7791         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
7792
7793 2011-01-20  Jim Meyering  <meyering@redhat.com>
7794
7795         maint.mk: improve the public-submodule-commit rule
7796         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
7797         to suppress printing of its commands... unless V=1.
7798         Add git submodule's --quiet option to suppress printing of e.g.,
7799         "Entering gnulib" output.
7800         "cd" into $(srcdir) before running git submodule.
7801
7802 2011-01-20  Bruno Haible  <bruno@clisp.org>
7803
7804         include_next: Fix bug introduced on 2011-01-18.
7805         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
7806         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
7807         ac_cv_header_... variable if the second argument is not 'check'.
7808         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
7809         gl_NEXT_HEADERS_INTERNAL.
7810
7811 2011-01-20  Bruno Haible  <bruno@clisp.org>
7812
7813         Allow the user to avoid the GNULIB_TEST_* macros.
7814         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
7815         Suggested by Paul Eggert.
7816
7817 2011-01-14  Jim Meyering  <meyering@redhat.com>
7818
7819         bootstrap: avoid failure when there is no .gitmodules file
7820         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
7821         has been assigned to, even when its value is the empty string.
7822         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
7823         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
7824         Reported by John W. Eaton <jwe@gnu.org>.
7825
7826 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
7827
7828         assume <ctype.h>, ..., <time.h> exist
7829         For years gnulib has been assuming the existence of the headers
7830         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
7831         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
7832         them, since they don't appear to be needed.
7833         * README (Portability guidelines): Document this.
7834         * lib/flock.c: Assume <fcntl.h> exists.
7835         * lib/regex_internal.h: Assume <locale.h> exists.
7836         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
7837         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
7838         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
7839         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
7840         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
7841         * m4/regex.m4 (gl_REGEX): Likewise.
7842         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
7843         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
7844         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
7845         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
7846         * tests/test-argp.c: Likewise.
7847         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
7848
7849         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
7850         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
7851         AA_APPLE_UNIVERSAL_BUILD.  See
7852         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
7853         * NEWS: Document this.
7854
7855 2011-01-19  Eric Blake  <eblake@redhat.com>
7856
7857         c-stack: assume stack overflow if SA_SIGINFO unsupported
7858         * lib/c-stack.c (SIGACTION_WORKS): Rename...
7859         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
7860         sigaction will work.
7861         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
7862         behavior match Linux.
7863         * tests/test-c-stack.c (main): Prefer NULL for pointers.
7864
7865         stdbool-tests: accomodate Haiku
7866         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
7867
7868         binary-io: fix O_TEXT on Haiku
7869         * modules/binary-io (Depends-on): Add fcntl-h.
7870         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
7871         than blindly undefining O_TEXT.
7872         Reported by Scott McCreary.
7873
7874 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
7875
7876         include_next: do not check for standard headers like stddef.h
7877
7878         I found this problem when modifying Emacs to use gnulib.
7879         I noticed that it added HAVE_STDDEF_H to config.h, even though
7880         gnulib always assumes <stddef.h> exists as per README and this
7881         symbol is unnecessary.
7882         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
7883         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
7884         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
7885         faster for headers like stddef.h that are known to exist.
7886         (gl_CHECK_NEXT_HEADERS): Use it.
7887         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
7888         rather than gl_CHECK_NEXT_HEADERS.
7889         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
7890         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
7891
7892 2011-01-18  Eric Blake  <eblake@redhat.com>
7893
7894         ansi-c++-opt: skip C++ dependency style if C++ is unused
7895         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
7896         tests when we know C++ compilation is not desired.
7897         Reported by Scott McCreary.
7898
7899 2011-01-18  Bruno Haible  <bruno@clisp.org>
7900
7901         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
7902         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
7903         (main): Perform test also when getrlimit and setrlimit don't exist or
7904         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
7905         limiting the address space size using setrlimit, compare the address
7906         space size before and after the the test.
7907         * tests/test-dprintf-posix2.c: Likewise.
7908         * tests/test-fprintf-posix3.sh: Update skip messages.
7909         * tests/test-dprintf-posix2.sh: Likewise.
7910         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
7911         * modules/dprintf-posix-tests (Depends-on): Likewise.
7912         Reported by Bruce Korb <bkorb@gnu.org> and
7913         Gary V. Vaughan <gary@gnu.org>.
7914
7915 2011-01-18  Bruno Haible  <bruno@clisp.org>
7916
7917         get-rusage-as: Improvement for Cygwin.
7918         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
7919         areas that are merely reserved.
7920
7921 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
7922
7923         strftime: remove dependencies on multibyte modules
7924
7925         strftime depended on mbrlen, mbsinit, and wchar, but these modules
7926         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
7927         only if __osf__ is defined, and I suspect OSF doesn't need these
7928         other modules.  If my guess is wrong, we'll need to come up with a
7929         variant of strftime that doesn't need the multibyte modules.
7930
7931         I discovered this problem when attempting modify Emacs to use the
7932         strftime module.  With the previous gnulib, this caused Emacs to
7933         need 31 new files, ranging from lib/config.charset to
7934         m4/wint_t.m4.  This was overkill and I expect would be offputting
7935         to the Emacs maintainers.  After this change, only 6 new files are
7936         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
7937         stdbool.m4, and tm_gmtoff.m4.
7938
7939         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
7940         Suggested by Bruno Haible in
7941         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
7942         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
7943         and do not check for wchar.h.
7944         * modules/strftime (Files): Remove m4/mbstate_t.m4.
7945         (Depends-on): Remove mbrlen, mbsinit, wchar.
7946
7947 2011-01-18  Bruno Haible  <bruno@clisp.org>
7948
7949         Tests for module 'get-rusage-as'.
7950         * modules/get-rusage-as-tests: New file.
7951         * tests/test-get-rusage-as.c: New file.
7952
7953         New module 'get-rusage-as'.
7954         * modules/get-rusage-as: New file.
7955         * lib/resource-ext.h: New file.
7956         * lib/get-rusage-as.c: New file.
7957
7958 2011-01-17  Eric Blake  <eblake@redhat.com>
7959
7960         sigaction: relax license from LGPLv3+ to LGPLv2+
7961         * modules/sigaction (License): Relax to LGPLv2+.
7962
7963 2011-01-14  Bruno Haible  <bruno@clisp.org>
7964
7965         filemode: Make function declarations usable in C++ mode.
7966         * lib/filemode.h: Enclose function declarations in extern "C" block.
7967         Reported by John W. Eaton <jwe@gnu.org>.
7968
7969 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
7970
7971         save-cwd: no longer include "xgetcwd.h"
7972         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
7973         This avoids a compilation failure in projects that use save-cwd
7974         without also using the xgetcwd module.
7975
7976 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
7977
7978         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
7979         This is so that a program like Emacs, which needs only dtoastr,
7980         does not have to bother with distributing and compiling ftoastr
7981         and ldtoastr.
7982         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
7983         * modules/dtoastr, modules/ldtoastr: New files.
7984         * modules/ftoastr: Now works just for 'float'.
7985         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
7986         (Makefile.am): Remove ftoastr.h (not needed and no effect),
7987         dtoastr.c, ldtoastr.c.
7988
7989 2011-01-11  Jim Meyering  <meyering@redhat.com>
7990
7991         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
7992         There is no need to work around the lack of the fchdir function,
7993         since gnulib can now provide a replacement when required.
7994         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
7995         * modules/save-cwd (Depends-on): Add fchdir.
7996
7997 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
7998
7999         openat, save-cwd: avoid xmalloc
8000
8001         This removes a direct (but undocumented) dependency of openat on
8002         xalloc, along with an indirect dependency via save-cwd.  It also
8003         removes a dependency of save-cwd on xgetcwd, and thereby
8004         indirectly on xalloc.  This change causes the openat substitute
8005         to fall back on save_cwd when memory is tight, and for save_cwd to
8006         fail instead of dying when memory is tight, but that's good enough.
8007         Problem and initial idea for fix reported by Bastien Roucaries in
8008         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
8009
8010         * lib/openat-proc.c: Include stdlib.h (for malloc), not
8011         xalloc.h (for xmalloc).
8012         (openat_proc_name): Use malloc, not xmalloc.
8013         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
8014         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
8015
8016         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
8017         This avoids heap allocation for file names whose lengths are in
8018         the range 512..1023, with the upper bound increasing to at most
8019         4031 depending on the platform's PATH_MAX.  (We do not want
8020         pathmax.h here as it might supply a non-constant PATH_MAX.)
8021         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
8022         Perhaps they should be moved to malloca.h?
8023         (OPENAT_BUFFER_SIZE): Use them.
8024
8025 2011-01-10  Bruno Haible  <bruno@clisp.org>
8026
8027         doc: Update users.txt.
8028         * users.txt: Add recutils.
8029
8030 2011-01-09  Karl Berry  <karl@gnu.org>
8031
8032         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
8033
8034         * doc/configmake.texi: New file.
8035         * doc/gnulib.texi: Include it.
8036         * modules/configmake: Move documentation from here.
8037
8038 2011-01-09  Bruno Haible  <bruno@clisp.org>
8039
8040         Update to Unicode 6.0.0.
8041         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
8042         (get_lbp): Update for Unicode 6.0.0.
8043         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
8044         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
8045         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
8046         U+11001, U+11038..U+11046. Remove U+06DE.
8047         (uc_width): Fix bounds of planes.
8048         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8049         lib/uniwidth/width.c.
8050         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
8051         trailing whitespace removed.
8052         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
8053         without comments, but with the original copyright notice.
8054         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
8055         * lib/unicase/ignorable.h: Likewise.
8056         * lib/unicase/tocasefold.h: Likewise.
8057         * lib/unicase/tolower.h: Likewise.
8058         * lib/unicase/totitle.h: Likewise.
8059         * lib/unicase/toupper.h: Likewise.
8060         * lib/unictype/bidi_of.h: Likewise.
8061         * lib/unictype/blocks.h: Likewise.
8062         * lib/unictype/categ_C.h: Likewise.
8063         * lib/unictype/categ_Cn.h: Likewise.
8064         * lib/unictype/categ_L.h: Likewise.
8065         * lib/unictype/categ_Ll.h: Likewise.
8066         * lib/unictype/categ_Lm.h: Likewise.
8067         * lib/unictype/categ_Lo.h: Likewise.
8068         * lib/unictype/categ_Lu.h: Likewise.
8069         * lib/unictype/categ_M.h: Likewise.
8070         * lib/unictype/categ_Mc.h: Likewise.
8071         * lib/unictype/categ_Me.h: Likewise.
8072         * lib/unictype/categ_Mn.h: Likewise.
8073         * lib/unictype/categ_N.h: Likewise.
8074         * lib/unictype/categ_Nd.h: Likewise.
8075         * lib/unictype/categ_No.h: Likewise.
8076         * lib/unictype/categ_P.h: Likewise.
8077         * lib/unictype/categ_Po.h: Likewise.
8078         * lib/unictype/categ_S.h: Likewise.
8079         * lib/unictype/categ_Sc.h: Likewise.
8080         * lib/unictype/categ_Sk.h: Likewise.
8081         * lib/unictype/categ_Sm.h: Likewise.
8082         * lib/unictype/categ_So.h: Likewise.
8083         * lib/unictype/categ_of.h: Likewise.
8084         * lib/unictype/combining.h: Likewise.
8085         * lib/unictype/ctype_alnum.h: Likewise.
8086         * lib/unictype/ctype_alpha.h: Likewise.
8087         * lib/unictype/ctype_graph.h: Likewise.
8088         * lib/unictype/ctype_lower.h: Likewise.
8089         * lib/unictype/ctype_print.h: Likewise.
8090         * lib/unictype/ctype_punct.h: Likewise.
8091         * lib/unictype/ctype_upper.h: Likewise.
8092         * lib/unictype/decdigit.h: Likewise.
8093         * lib/unictype/digit.h: Likewise.
8094         * lib/unictype/numeric.h: Likewise.
8095         * lib/unictype/pr_alphabetic.h: Likewise.
8096         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8097         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8098         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8099         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8100         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8101         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8102         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8103         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8104         * lib/unictype/pr_case_ignorable.h: Likewise.
8105         * lib/unictype/pr_cased.h: Likewise.
8106         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
8107         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
8108         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
8109         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
8110         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
8111         * lib/unictype/pr_combining.h: Likewise.
8112         * lib/unictype/pr_composite.h: Likewise.
8113         * lib/unictype/pr_currency_symbol.h: Likewise.
8114         * lib/unictype/pr_decimal_digit.h: Likewise.
8115         * lib/unictype/pr_deprecated.h: Likewise.
8116         * lib/unictype/pr_format_control.h: Likewise.
8117         * lib/unictype/pr_grapheme_base.h: Likewise.
8118         * lib/unictype/pr_grapheme_extend.h: Likewise.
8119         * lib/unictype/pr_grapheme_link.h: Likewise.
8120         * lib/unictype/pr_id_continue.h: Likewise.
8121         * lib/unictype/pr_id_start.h: Likewise.
8122         * lib/unictype/pr_ideographic.h: Likewise.
8123         * lib/unictype/pr_lowercase.h: Likewise.
8124         * lib/unictype/pr_math.h: Likewise.
8125         * lib/unictype/pr_numeric.h: Likewise.
8126         * lib/unictype/pr_other_alphabetic.h: Likewise.
8127         * lib/unictype/pr_other_id_continue.h: Likewise.
8128         * lib/unictype/pr_other_math.h: Likewise.
8129         * lib/unictype/pr_punctuation.h: Likewise.
8130         * lib/unictype/pr_sentence_terminal.h: Likewise.
8131         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8132         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8133         * lib/unictype/pr_unified_ideograph.h: Likewise.
8134         * lib/unictype/pr_uppercase.h: Likewise.
8135         * lib/unictype/pr_xid_continue.h: Likewise.
8136         * lib/unictype/pr_xid_start.h: Likewise.
8137         * lib/unictype/scripts.h: Likewise.
8138         * lib/unictype/scripts_byname.gperf: Likewise.
8139         * lib/unictype/sy_java_ident.h: Likewise.
8140         * lib/unigbrk/gbrkprop.h: Likewise.
8141         * lib/unilbrk/lbrkprop1.h: Likewise.
8142         * lib/unilbrk/lbrkprop2.h: Likewise.
8143         * lib/uninorm/decomposition-table2.h: Likewise.
8144         * lib/uniwbrk/wbrkprop.h: Likewise.
8145         * tests/unicase/test-cased.c: Likewise.
8146         * tests/unicase/test-ignorable.c: Likewise.
8147         * tests/unicase/test-uc_tolower.c: Likewise.
8148         * tests/unicase/test-uc_totitle.c: Likewise.
8149         * tests/unicase/test-uc_toupper.c: Likewise.
8150         * tests/unictype/test-categ_C.c: Likewise.
8151         * tests/unictype/test-categ_Cn.c: Likewise.
8152         * tests/unictype/test-categ_L.c: Likewise.
8153         * tests/unictype/test-categ_Ll.c: Likewise.
8154         * tests/unictype/test-categ_Lm.c: Likewise.
8155         * tests/unictype/test-categ_Lo.c: Likewise.
8156         * tests/unictype/test-categ_Lu.c: Likewise.
8157         * tests/unictype/test-categ_M.c: Likewise.
8158         * tests/unictype/test-categ_Mc.c: Likewise.
8159         * tests/unictype/test-categ_Me.c: Likewise.
8160         * tests/unictype/test-categ_Mn.c: Likewise.
8161         * tests/unictype/test-categ_N.c: Likewise.
8162         * tests/unictype/test-categ_Nd.c: Likewise.
8163         * tests/unictype/test-categ_No.c: Likewise.
8164         * tests/unictype/test-categ_P.c: Likewise.
8165         * tests/unictype/test-categ_Po.c: Likewise.
8166         * tests/unictype/test-categ_S.c: Likewise.
8167         * tests/unictype/test-categ_Sc.c: Likewise.
8168         * tests/unictype/test-categ_Sk.c: Likewise.
8169         * tests/unictype/test-categ_Sm.c: Likewise.
8170         * tests/unictype/test-categ_So.c: Likewise.
8171         * tests/unictype/test-ctype_alnum.c: Likewise.
8172         * tests/unictype/test-ctype_alpha.c: Likewise.
8173         * tests/unictype/test-ctype_graph.c: Likewise.
8174         * tests/unictype/test-ctype_lower.c: Likewise.
8175         * tests/unictype/test-ctype_print.c: Likewise.
8176         * tests/unictype/test-ctype_punct.c: Likewise.
8177         * tests/unictype/test-ctype_upper.c: Likewise.
8178         * tests/unictype/test-decdigit.h: Likewise.
8179         * tests/unictype/test-digit.h: Likewise.
8180         * tests/unictype/test-numeric.h: Likewise.
8181         * tests/unictype/test-pr_alphabetic.c: Likewise.
8182         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8183         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8184         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8185         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8186         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8187         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8188         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8189         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8190         * tests/unictype/test-pr_case_ignorable.c: Likewise.
8191         * tests/unictype/test-pr_cased.c: Likewise.
8192         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
8193         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
8194         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
8195         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
8196         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
8197         * tests/unictype/test-pr_combining.c: Likewise.
8198         * tests/unictype/test-pr_composite.c: Likewise.
8199         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8200         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8201         * tests/unictype/test-pr_deprecated.c: Likewise.
8202         * tests/unictype/test-pr_format_control.c: Likewise.
8203         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8204         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8205         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8206         * tests/unictype/test-pr_id_continue.c: Likewise.
8207         * tests/unictype/test-pr_id_start.c: Likewise.
8208         * tests/unictype/test-pr_ideographic.c: Likewise.
8209         * tests/unictype/test-pr_lowercase.c: Likewise.
8210         * tests/unictype/test-pr_math.c: Likewise.
8211         * tests/unictype/test-pr_numeric.c: Likewise.
8212         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8213         * tests/unictype/test-pr_other_id_continue.c: Likewise.
8214         * tests/unictype/test-pr_other_math.c: Likewise.
8215         * tests/unictype/test-pr_punctuation.c: Likewise.
8216         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8217         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8218         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8219         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8220         * tests/unictype/test-pr_uppercase.c: Likewise.
8221         * tests/unictype/test-pr_xid_continue.c: Likewise.
8222         * tests/unictype/test-pr_xid_start.c: Likewise.
8223         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
8224         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
8225         changes.
8226         * lib/unictype/categ_Cc.h: Likewise.
8227         * lib/unictype/categ_Cf.h: Likewise.
8228         * lib/unictype/categ_Co.h: Likewise.
8229         * lib/unictype/categ_Cs.h: Likewise.
8230         * lib/unictype/categ_Lt.h: Likewise.
8231         * lib/unictype/categ_Nl.h: Likewise.
8232         * lib/unictype/categ_Pc.h: Likewise.
8233         * lib/unictype/categ_Pd.h: Likewise.
8234         * lib/unictype/categ_Pe.h: Likewise.
8235         * lib/unictype/categ_Pf.h: Likewise.
8236         * lib/unictype/categ_Pi.h: Likewise.
8237         * lib/unictype/categ_Ps.h: Likewise.
8238         * lib/unictype/categ_Z.h: Likewise.
8239         * lib/unictype/categ_Zl.h: Likewise.
8240         * lib/unictype/categ_Zp.h: Likewise.
8241         * lib/unictype/categ_Zs.h: Likewise.
8242         * lib/unictype/ctype_blank.h: Likewise.
8243         * lib/unictype/ctype_cntrl.h: Likewise.
8244         * lib/unictype/ctype_digit.h: Likewise.
8245         * lib/unictype/ctype_space.h: Likewise.
8246         * lib/unictype/ctype_xdigit.h: Likewise.
8247         * lib/unictype/mirror.h: Likewise.
8248         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8249         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8250         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8251         * lib/unictype/pr_bidi_control.h: Likewise.
8252         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8253         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8254         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8255         * lib/unictype/pr_bidi_pdf.h: Likewise.
8256         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8257         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8258         * lib/unictype/pr_dash.h: Likewise.
8259         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8260         * lib/unictype/pr_diacritic.h: Likewise.
8261         * lib/unictype/pr_extender.h: Likewise.
8262         * lib/unictype/pr_hex_digit.h: Likewise.
8263         * lib/unictype/pr_hyphen.h: Likewise.
8264         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8265         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8266         * lib/unictype/pr_ignorable_control.h: Likewise.
8267         * lib/unictype/pr_iso_control.h: Likewise.
8268         * lib/unictype/pr_join_control.h: Likewise.
8269         * lib/unictype/pr_left_of_pair.h: Likewise.
8270         * lib/unictype/pr_line_separator.h: Likewise.
8271         * lib/unictype/pr_logical_order_exception.h: Likewise.
8272         * lib/unictype/pr_non_break.h: Likewise.
8273         * lib/unictype/pr_not_a_character.h: Likewise.
8274         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8275         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8276         * lib/unictype/pr_other_id_start.h: Likewise.
8277         * lib/unictype/pr_other_lowercase.h: Likewise.
8278         * lib/unictype/pr_other_uppercase.h: Likewise.
8279         * lib/unictype/pr_paired_punctuation.h: Likewise.
8280         * lib/unictype/pr_paragraph_separator.h: Likewise.
8281         * lib/unictype/pr_pattern_syntax.h: Likewise.
8282         * lib/unictype/pr_pattern_white_space.h: Likewise.
8283         * lib/unictype/pr_private_use.h: Likewise.
8284         * lib/unictype/pr_quotation_mark.h: Likewise.
8285         * lib/unictype/pr_radical.h: Likewise.
8286         * lib/unictype/pr_soft_dotted.h: Likewise.
8287         * lib/unictype/pr_space.h: Likewise.
8288         * lib/unictype/pr_titlecase.h: Likewise.
8289         * lib/unictype/pr_variation_selector.h: Likewise.
8290         * lib/unictype/pr_white_space.h: Likewise.
8291         * lib/unictype/pr_zero_width.h: Likewise.
8292         * lib/unictype/sy_c_ident.h: Likewise.
8293         * lib/unictype/sy_c_whitespace.h: Likewise.
8294         * lib/unictype/sy_java_whitespace.h: Likewise.
8295         * lib/uninorm/composition-table.gperf: Likewise.
8296         * lib/uninorm/decomposition-table1.h: Likewise.
8297         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
8298         LB8.
8299         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8300         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8301         * modules/unictype/*: Bump version number of expected libunistring
8302         version.
8303
8304 2011-01-09  Bruno Haible  <bruno@clisp.org>
8305
8306         Update to Unicode 5.2.0.
8307         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
8308         trailing whitespace removed.
8309
8310 2011-01-09  Bruno Haible  <bruno@clisp.org>
8311
8312         New Unicode character properties, from Unicode 5.2.0.
8313         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
8314         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
8315         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
8316         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
8317         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
8318         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
8319         uc_is_property_cased, uc_is_property_case_ignorable,
8320         uc_is_property_changes_when_lowercased,
8321         uc_is_property_changes_when_uppercased,
8322         uc_is_property_changes_when_titlecased,
8323         uc_is_property_changes_when_casefolded,
8324         uc_is_property_changes_when_casemapped): New declarations.
8325         * lib/unictype/pr_byname.gperf: Add the new properties.
8326         * modules/unictype/property-byname (Depends-on): Depend on the new
8327         properties modules.
8328         * modules/unictype/property-all (Depends-on): Likewise.
8329         * MODULES.html.sh (Unicode string functions): Add
8330         unictype/property-case-ignorable, unictype/property-cased,
8331         unictype/property-changes-when-casefolded,
8332         unictype/property-changes-when-casemapped,
8333         unictype/property-changes-when-lowercased,
8334         unictype/property-changes-when-titlecased,
8335         unictype/property-changes-when-uppercased.
8336
8337         New module 'unictype/property-changes-when-casemapped'.
8338         * modules/unictype/property-changes-when-casemapped: New file.
8339         * lib/unictype/pr_changes_when_casemapped.c: New file.
8340         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
8341         generated by gen-uni-tables.
8342         * modules/unictype/property-changes-when-casemapped-tests: New file.
8343         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
8344         automatically generated by gen-uni-tables.
8345
8346         New module 'unictype/property-changes-when-casefolded'.
8347         * modules/unictype/property-changes-when-casefolded: New file.
8348         * lib/unictype/pr_changes_when_casefolded.c: New file.
8349         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
8350         generated by gen-uni-tables.
8351         * modules/unictype/property-changes-when-casefolded-tests: New file.
8352         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
8353         automatically generated by gen-uni-tables.
8354
8355         New module 'unictype/property-changes-when-titlecased'.
8356         * modules/unictype/property-changes-when-titlecased: New file.
8357         * lib/unictype/pr_changes_when_titlecased.c: New file.
8358         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
8359         generated by gen-uni-tables.
8360         * modules/unictype/property-changes-when-titlecased-tests: New file.
8361         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
8362         automatically generated by gen-uni-tables.
8363
8364         New module 'unictype/property-changes-when-uppercased'.
8365         * modules/unictype/property-changes-when-uppercased: New file.
8366         * lib/unictype/pr_changes_when_uppercased.c: New file.
8367         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
8368         generated by gen-uni-tables.
8369         * modules/unictype/property-changes-when-uppercased-tests: New file.
8370         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
8371         automatically generated by gen-uni-tables.
8372
8373         New module 'unictype/property-changes-when-lowercased'.
8374         * modules/unictype/property-changes-when-lowercased: New file.
8375         * lib/unictype/pr_changes_when_lowercased.c: New file.
8376         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
8377         generated by gen-uni-tables.
8378         * modules/unictype/property-changes-when-lowercased-tests: New file.
8379         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
8380         automatically generated by gen-uni-tables.
8381
8382         New module 'unictype/property-case-ignorable'.
8383         * modules/unictype/property-case-ignorable: New file.
8384         * lib/unictype/pr_case_ignorable.c: New file.
8385         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
8386         by gen-uni-tables.
8387         * modules/unictype/property-case-ignorable-tests: New file.
8388         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
8389         generated by gen-uni-tables.
8390
8391         New module 'unictype/property-cased'.
8392         * modules/unictype/property-cased: New file.
8393         * lib/unictype/pr_cased.c: New file.
8394         * lib/unictype/pr_cased.h: New file, automatically generated by
8395         gen-uni-tables.
8396         * modules/unictype/property-cased-tests: New file.
8397         * tests/unictype/test-pr_cased.c: New file, automatically generated by
8398         gen-uni-tables.
8399
8400 2011-01-09  Bruno Haible  <bruno@clisp.org>
8401
8402         Update to Unicode 5.2.0.
8403         * lib/gen-uni-tables.c (output_predicate, output_category,
8404         output_combclass, output_bidi_category, output_decimal_digit_test,
8405         output_decimal_digit, output_digit_test, output_digit,
8406         output_numeric_test, output_numeric, output_mirror, output_scripts,
8407         output_scripts_byname, output_blocks, output_ident_category): Fix
8408         comment header.
8409         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
8410         get_wbp.
8411         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
8412         items.
8413         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
8414         Changes_When_Lowercased, Changes_When_Uppercased,
8415         Changes_When_Titlecased, Changes_When_Casefolded,
8416         Changes_When_Casemapped.
8417         (is_property_alphabetic, is_property_default_ignorable_code_point):
8418         Update for Unicode 5.2.0.
8419         (is_property_cased, is_property_case_ignorable,
8420         is_property_changes_when_lowercased,
8421         is_property_changes_when_uppercased,
8422         is_property_changes_when_titlecased,
8423         is_property_changes_when_casefolded,
8424         is_property_changes_when_casemapped): New functions.
8425         (output_properties): Output also the properties cased, case_ignorable,
8426         changes_when_lowercased, changes_when_uppercased,
8427         changes_when_titlecased, changes_when_casefolded,
8428         changes_when_casemapped.
8429         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
8430         Unicode TR#11 revision 17 -> 19.
8431         (LBP_CP): New enumeration value.
8432         (LBP_*): Adjust values accordingly.
8433         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8434         TR#14 revision 22 -> 24.
8435         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
8436         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
8437         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8438         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
8439         is_WBP_MIDLETTER.
8440         (output_composition_tables): Allow for 24 bits instead of 16 bits in
8441         the code1 and code2 of each composition rule.
8442         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
8443         * lib/unicase/ignorable.h: Likewise.
8444         * lib/unicase/tocasefold.h: Likewise.
8445         * lib/unicase/tolower.h: Likewise.
8446         * lib/unicase/totitle.h: Likewise.
8447         * lib/unicase/toupper.h: Likewise.
8448         * lib/unictype/bidi_of.h: Likewise.
8449         * lib/unictype/blocks.h: Likewise.
8450         * lib/unictype/categ_C.h: Likewise.
8451         * lib/unictype/categ_Cf.h: Likewise.
8452         * lib/unictype/categ_Cn.h: Likewise.
8453         * lib/unictype/categ_L.h: Likewise.
8454         * lib/unictype/categ_Ll.h: Likewise.
8455         * lib/unictype/categ_Lm.h: Likewise.
8456         * lib/unictype/categ_Lo.h: Likewise.
8457         * lib/unictype/categ_Lu.h: Likewise.
8458         * lib/unictype/categ_M.h: Likewise.
8459         * lib/unictype/categ_Mc.h: Likewise.
8460         * lib/unictype/categ_Mn.h: Likewise.
8461         * lib/unictype/categ_N.h: Likewise.
8462         * lib/unictype/categ_Nd.h: Likewise.
8463         * lib/unictype/categ_Nl.h: Likewise.
8464         * lib/unictype/categ_No.h: Likewise.
8465         * lib/unictype/categ_P.h: Likewise.
8466         * lib/unictype/categ_Pd.h: Likewise.
8467         * lib/unictype/categ_Po.h: Likewise.
8468         * lib/unictype/categ_S.h: Likewise.
8469         * lib/unictype/categ_Sc.h: Likewise.
8470         * lib/unictype/categ_So.h: Likewise.
8471         * lib/unictype/categ_of.h: Likewise.
8472         * lib/unictype/combining.h: Likewise.
8473         * lib/unictype/ctype_alnum.h: Likewise.
8474         * lib/unictype/ctype_alpha.h: Likewise.
8475         * lib/unictype/ctype_graph.h: Likewise.
8476         * lib/unictype/ctype_lower.h: Likewise.
8477         * lib/unictype/ctype_print.h: Likewise.
8478         * lib/unictype/ctype_punct.h: Likewise.
8479         * lib/unictype/ctype_upper.h: Likewise.
8480         * lib/unictype/decdigit.h: Likewise.
8481         * lib/unictype/digit.h: Likewise.
8482         * lib/unictype/numeric.h: Likewise.
8483         * lib/unictype/pr_alphabetic.h: Likewise.
8484         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8485         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8486         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8487         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8488         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8489         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8490         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8491         * lib/unictype/pr_combining.h: Likewise.
8492         * lib/unictype/pr_composite.h: Likewise.
8493         * lib/unictype/pr_currency_symbol.h: Likewise.
8494         * lib/unictype/pr_dash.h: Likewise.
8495         * lib/unictype/pr_decimal_digit.h: Likewise.
8496         * lib/unictype/pr_deprecated.h: Likewise.
8497         * lib/unictype/pr_diacritic.h: Likewise.
8498         * lib/unictype/pr_extender.h: Likewise.
8499         * lib/unictype/pr_grapheme_base.h: Likewise.
8500         * lib/unictype/pr_grapheme_extend.h: Likewise.
8501         * lib/unictype/pr_grapheme_link.h: Likewise.
8502         * lib/unictype/pr_id_continue.h: Likewise.
8503         * lib/unictype/pr_id_start.h: Likewise.
8504         * lib/unictype/pr_ideographic.h: Likewise.
8505         * lib/unictype/pr_ignorable_control.h: Likewise.
8506         * lib/unictype/pr_logical_order_exception.h: Likewise.
8507         * lib/unictype/pr_lowercase.h: Likewise.
8508         * lib/unictype/pr_numeric.h: Likewise.
8509         * lib/unictype/pr_other_alphabetic.h: Likewise.
8510         * lib/unictype/pr_punctuation.h: Likewise.
8511         * lib/unictype/pr_sentence_terminal.h: Likewise.
8512         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8513         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8514         * lib/unictype/pr_unified_ideograph.h: Likewise.
8515         * lib/unictype/pr_uppercase.h: Likewise.
8516         * lib/unictype/pr_xid_continue.h: Likewise.
8517         * lib/unictype/pr_xid_start.h: Likewise.
8518         * lib/unictype/pr_zero_width.h: Likewise.
8519         * lib/unictype/scripts.h: Likewise.
8520         * lib/unictype/scripts_byname.gperf: Likewise.
8521         * lib/unictype/sy_java_ident.h: Likewise.
8522         * lib/unigbrk/gbrkprop.h: Likewise.
8523         * lib/unilbrk/lbrkprop1.h: Likewise.
8524         * lib/unilbrk/lbrkprop2.h: Likewise.
8525         * lib/unilbrk/lbrktables.h: Likewise.
8526         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
8527         LBP_CP. Implement rule LB30.
8528         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
8529         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
8530         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
8531         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
8532         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
8533         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
8534         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
8535         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
8536         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
8537         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
8538         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
8539         bits instead of 16 bits in the code1 and code2 of each composition
8540         rule.
8541         (uc_composition): Update for Unicode 5.2.0.
8542         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
8543         * lib/uninorm/decomposition-table2.h: Likewise.
8544         * lib/uniwbrk/wbrkprop.h: Likewise.
8545         * tests/unicase/test-cased.c: Likewise.
8546         * tests/unicase/test-ignorable.c: Likewise.
8547         * tests/unicase/test-uc_tolower.c: Likewise.
8548         * tests/unicase/test-uc_totitle.c: Likewise.
8549         * tests/unicase/test-uc_toupper.c: Likewise.
8550         * tests/unictype/test-categ_C.c: Likewise.
8551         * tests/unictype/test-categ_Cf.c: Likewise.
8552         * tests/unictype/test-categ_Cn.c: Likewise.
8553         * tests/unictype/test-categ_L.c: Likewise.
8554         * tests/unictype/test-categ_Ll.c: Likewise.
8555         * tests/unictype/test-categ_Lm.c: Likewise.
8556         * tests/unictype/test-categ_Lo.c: Likewise.
8557         * tests/unictype/test-categ_Lu.c: Likewise.
8558         * tests/unictype/test-categ_M.c: Likewise.
8559         * tests/unictype/test-categ_Mc.c: Likewise.
8560         * tests/unictype/test-categ_Mn.c: Likewise.
8561         * tests/unictype/test-categ_N.c: Likewise.
8562         * tests/unictype/test-categ_Nd.c: Likewise.
8563         * tests/unictype/test-categ_Nl.c: Likewise.
8564         * tests/unictype/test-categ_No.c: Likewise.
8565         * tests/unictype/test-categ_P.c: Likewise.
8566         * tests/unictype/test-categ_Pd.c: Likewise.
8567         * tests/unictype/test-categ_Po.c: Likewise.
8568         * tests/unictype/test-categ_S.c: Likewise.
8569         * tests/unictype/test-categ_Sc.c: Likewise.
8570         * tests/unictype/test-categ_So.c: Likewise.
8571         * tests/unictype/test-ctype_alnum.c: Likewise.
8572         * tests/unictype/test-ctype_alpha.c: Likewise.
8573         * tests/unictype/test-ctype_graph.c: Likewise.
8574         * tests/unictype/test-ctype_lower.c: Likewise.
8575         * tests/unictype/test-ctype_print.c: Likewise.
8576         * tests/unictype/test-ctype_punct.c: Likewise.
8577         * tests/unictype/test-ctype_upper.c: Likewise.
8578         * tests/unictype/test-decdigit.h: Likewise.
8579         * tests/unictype/test-digit.h: Likewise.
8580         * tests/unictype/test-numeric.h: Likewise.
8581         * tests/unictype/test-pr_alphabetic.c: Likewise.
8582         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8583         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8584         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
8585         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8586         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8587         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8588         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8589         * tests/unictype/test-pr_combining.c: Likewise.
8590         * tests/unictype/test-pr_composite.c: Likewise.
8591         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8592         * tests/unictype/test-pr_dash.c: Likewise.
8593         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8594         * tests/unictype/test-pr_deprecated.c: Likewise.
8595         * tests/unictype/test-pr_diacritic.c: Likewise.
8596         * tests/unictype/test-pr_extender.c: Likewise.
8597         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8598         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8599         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8600         * tests/unictype/test-pr_id_continue.c: Likewise.
8601         * tests/unictype/test-pr_id_start.c: Likewise.
8602         * tests/unictype/test-pr_ideographic.c: Likewise.
8603         * tests/unictype/test-pr_ignorable_control.c: Likewise.
8604         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
8605         * tests/unictype/test-pr_lowercase.c: Likewise.
8606         * tests/unictype/test-pr_numeric.c: Likewise.
8607         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8608         * tests/unictype/test-pr_punctuation.c: Likewise.
8609         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8610         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8611         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8612         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8613         * tests/unictype/test-pr_uppercase.c: Likewise.
8614         * tests/unictype/test-pr_xid_continue.c: Likewise.
8615         * tests/unictype/test-pr_xid_start.c: Likewise.
8616         * tests/unictype/test-pr_zero_width.c: Likewise.
8617         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
8618         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
8619         changed behaviour: line breaking is now disallowed between a letter
8620         or '=' and '('.
8621         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8622         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8623         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
8624         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
8625         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8626         lib/uniwidth/width.c.
8627         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
8628         without comments, but with the original copyright notice.
8629         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
8630         changes.
8631         * lib/unictype/categ_Cc.h: Likewise.
8632         * lib/unictype/categ_Co.h: Likewise.
8633         * lib/unictype/categ_Cs.h: Likewise.
8634         * lib/unictype/categ_Lt.h: Likewise.
8635         * lib/unictype/categ_Me.h: Likewise.
8636         * lib/unictype/categ_Pc.h: Likewise.
8637         * lib/unictype/categ_Pe.h: Likewise.
8638         * lib/unictype/categ_Pf.h: Likewise.
8639         * lib/unictype/categ_Pi.h: Likewise.
8640         * lib/unictype/categ_Ps.h: Likewise.
8641         * lib/unictype/categ_Sk.h: Likewise.
8642         * lib/unictype/categ_Sm.h: Likewise.
8643         * lib/unictype/categ_Z.h: Likewise.
8644         * lib/unictype/categ_Zl.h: Likewise.
8645         * lib/unictype/categ_Zp.h: Likewise.
8646         * lib/unictype/categ_Zs.h: Likewise.
8647         * lib/unictype/ctype_blank.h: Likewise.
8648         * lib/unictype/ctype_cntrl.h: Likewise.
8649         * lib/unictype/ctype_digit.h: Likewise.
8650         * lib/unictype/ctype_space.h: Likewise.
8651         * lib/unictype/ctype_xdigit.h: Likewise.
8652         * lib/unictype/mirror.h: Likewise.
8653         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8654         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8655         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8656         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8657         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8658         * lib/unictype/pr_bidi_control.h: Likewise.
8659         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8660         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8661         * lib/unictype/pr_bidi_pdf.h: Likewise.
8662         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8663         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8664         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8665         * lib/unictype/pr_format_control.h: Likewise.
8666         * lib/unictype/pr_hex_digit.h: Likewise.
8667         * lib/unictype/pr_hyphen.h: Likewise.
8668         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8669         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8670         * lib/unictype/pr_iso_control.h: Likewise.
8671         * lib/unictype/pr_join_control.h: Likewise.
8672         * lib/unictype/pr_left_of_pair.h: Likewise.
8673         * lib/unictype/pr_line_separator.h: Likewise.
8674         * lib/unictype/pr_math.h: Likewise.
8675         * lib/unictype/pr_non_break.h: Likewise.
8676         * lib/unictype/pr_not_a_character.h: Likewise.
8677         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8678         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8679         * lib/unictype/pr_other_id_continue.h: Likewise.
8680         * lib/unictype/pr_other_id_start.h: Likewise.
8681         * lib/unictype/pr_other_lowercase.h: Likewise.
8682         * lib/unictype/pr_other_math.h: Likewise.
8683         * lib/unictype/pr_other_uppercase.h: Likewise.
8684         * lib/unictype/pr_paired_punctuation.h: Likewise.
8685         * lib/unictype/pr_paragraph_separator.h: Likewise.
8686         * lib/unictype/pr_pattern_syntax.h: Likewise.
8687         * lib/unictype/pr_pattern_white_space.h: Likewise.
8688         * lib/unictype/pr_private_use.h: Likewise.
8689         * lib/unictype/pr_quotation_mark.h: Likewise.
8690         * lib/unictype/pr_radical.h: Likewise.
8691         * lib/unictype/pr_soft_dotted.h: Likewise.
8692         * lib/unictype/pr_space.h: Likewise.
8693         * lib/unictype/pr_titlecase.h: Likewise.
8694         * lib/unictype/pr_variation_selector.h: Likewise.
8695         * lib/unictype/pr_white_space.h: Likewise.
8696         * lib/unictype/sy_c_ident.h: Likewise.
8697         * lib/unictype/sy_c_whitespace.h: Likewise.
8698         * lib/unictype/sy_java_whitespace.h: Likewise.
8699         * modules/uni*/*: Bump version number of expected libunistring version.
8700         Reported by Simon Josefsson.
8701
8702 2011-01-09  Karl Heuer  <kwzh@gnu.org>
8703
8704         useless-if-before-free: fix typo in --help and make the internal,
8705         automatic version date update process work once again.
8706         --help output contained a NUL character instead of the
8707         backslash-zero that was intended.  Also, the "must lie within
8708         the first 8 lines" line is on line 9, and hence not getting
8709         automatically updated.
8710         * build-aux/useless-if-before-free: Fix the former by adding a
8711         backslash, and the latter by condensing the three lines of what-it-does
8712         to a single line, leaving one line of slack for the future.
8713
8714 2011-01-09  Bruno Haible  <bruno@clisp.org>
8715
8716         uniwidth/width: Fix width of U+1D173..U+1D17A.
8717         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
8718         symbolic_width, output_width_property_test): New functions.
8719         (main): Invoke output_nonspacing_property, output_width_property_test.
8720         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
8721         U+1D173..U+1D17A.
8722         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
8723         1.
8724         * modules/uniwidth/*: Bump version number of expected libunistring
8725         version.
8726         * modules/unilbrk/*: Likewise.
8727
8728 2011-01-08  Bruno Haible  <bruno@clisp.org>
8729
8730         uninorm tests: Preserve copyright of Unicode data file.
8731         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
8732         Mention modifications.
8733
8734 2011-01-08  Bruno Haible  <bruno@clisp.org>
8735
8736         gen-uni-tables: Prepare for Unicode 5.2.0.
8737         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
8738         (debug_output_lbp, output_lbp): Update.
8739
8740 2011-01-08  Bruno Haible  <bruno@clisp.org>
8741
8742         unilbrk: Clarify gen-uni-tables.c code.
8743         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
8744         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
8745         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
8746
8747 2011-01-07  Bruno Haible  <bruno@clisp.org>
8748
8749         strtod: Restore errno when successfully parsing Infinity or NaN.
8750         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
8751         restore the original errno.
8752
8753 2011-01-07  Bruno Haible  <bruno@clisp.org>
8754
8755         remove test: Avoid failure on HP-UX 11.
8756         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
8757
8758 2011-01-07  Bruno Haible  <bruno@clisp.org>
8759
8760         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
8761         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
8762         error code.
8763
8764 2011-01-07  Pádraig Brady <P@draigBrady.com>
8765
8766         ignore-value: fixup comments, and add Eric Blake
8767         as an author since he rewrote the macros.
8768         * lib/ignore-value.h (ignore_value):  State that
8769         we now support aggregates.  Also specify exactly
8770         when the GCC warn_unused_result feature was added.
8771
8772 2011-01-06  Eric Blake  <eblake@redhat.com>
8773
8774         ignore-value: support aggregate types
8775         * lib/ignore-value.h (ignore_value): Provide separate gcc
8776         definition.
8777         * modules/ignore-value-tests: New test module.
8778         * tests/test-ignore-value.c: New test.
8779
8780         maint.mk: improve sc_prohibit_strcmp regex
8781         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
8782         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
8783         definition of STRNEQ.
8784
8785         signal: work around Haiku issue with SIGBUS
8786         * lib/siglist.h: Add comment.
8787         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
8788         strsignal's favoring of SIGSEGV.
8789         * tests/test-signal.c (main): Avoid test failure.
8790         * doc/posix-headers/signal.texi (signal.h): Document the issue.
8791         Reported by Scott McCreary.
8792
8793         maint.mk: add pre-release check to ensure submodule commits are public
8794         * top/maint.mk (public-submodule-commit): New rule.
8795         (submodule-checks): New variable.
8796         (alpha beta stable): Depend on the variable.
8797
8798 2011-01-05  Pádraig Brady <P@draigBrady.com>
8799         and Jim Meyering  <meyering@redhat.com>
8800
8801         ignore-value: make ignore_value more generic; deprecate ignore_ptr
8802         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
8803         (ATTRIBUTE_DEPRECATED): Define.
8804         (_ignore_case): New function.
8805         (ignore_value): New macro, to replace the old function.
8806         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
8807         * modules/ignore-value (Depends-on): Add stdint.
8808
8809 2011-01-04  Eric Blake  <eblake@redhat.com>
8810
8811         doc: regenerate INSTALL
8812         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
8813         @firstparagraphindent support, now that autoconf dropped it.
8814         (INSTALL_PRELUDE): Reinstate old macro.
8815         * doc/install.texi: Resync from autoconf.
8816         * doc/INSTALL: Reflect recent autoconf update.
8817         * doc/INSTALL.ISO: Likewise.
8818         * doc/INSTALL.UTF-8: Likewise.
8819         Reported by Karl Berry.
8820
8821 2011-01-04  Bruce Korb  <address@hidden>
8822
8823         git-version-gen: avoid a sub-shell
8824         * build-aux/git-version-gen: Redirect stderr in `...` via
8825         "exec 2>...", rather than via an added sub-shell.
8826
8827 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
8828
8829         git-version-gen: use (...) rather than sh -c '...'
8830         * build-aux/git-version-gen: Rather than hard-coding a shell's name
8831         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
8832
8833 2011-01-03  Jim Meyering  <meyering@redhat.com>
8834
8835         git-version-gen: convert leading TABs to spaces
8836         * build-aux/git-version-gen: Expand leading TABs.
8837
8838         git-version-gen: handle failed "git rev-list"
8839         * build-aux/git-version-gen: Rather than leaking a "fatal" error
8840         from git and proceeding as if it had succeeded but printed no SHA1
8841         checksums, suppress the diagnostic and handle the failure.
8842         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
8843
8844         git-version-gen: include command name in one more diagnostic
8845         * build-aux/git-version-gen: When the required .tarball-version file
8846         was missing or unreadable, you might see the diagnostic from "cat",
8847         but no trace of the name of the invoking script.  Now, you still see
8848         the diagnostic from cat, but also get one from "git-version-gen: ".
8849         Inspired by a patch from Bruce Korb.
8850
8851         update-copyright: adjust test to match changed code
8852         * tests/test-update-copyright.sh: Change test's expected output
8853         to match new actual output.
8854
8855 2011-01-02  Bruno Haible  <bruno@clisp.org>
8856
8857         getlogin_r: Avoid test failure on HP-UX 11.
8858         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
8859         ERANGE when the second argument is zero.
8860         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
8861         portability problem.
8862
8863 2011-01-02  Bruce Korb  <bkorb@gnu.org>
8864
8865         * build-aux/update-copyright: doc Simon's changes
8866
8867 2011-01-02  Simon Josefsson  <simon@josefsson.org>
8868
8869         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
8870         environment variable.
8871
8872 2011-01-02  Bruno Haible  <bruno@clisp.org>
8873
8874         unigbrk: Avoid gcc warnings.
8875         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
8876         unused variable.
8877         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
8878         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
8879         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
8880         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
8881         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
8882         Change type of first argument to 'const char *'.
8883         (main): Remove unused variable.
8884         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
8885         type of first argument to 'const char *'.
8886         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
8887         Likewise.
8888         (main): Change type of variable 's'.
8889         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
8890         to 'int'.
8891
8892 2011-01-02  Bruno Haible  <bruno@clisp.org>
8893
8894         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
8895         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
8896         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
8897         bug.
8898         * lib/pwrite.c: Undo 2010-12-31 patch.
8899         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
8900
8901 2011-01-02  Bruno Haible  <bruno@clisp.org>
8902
8903         pread: Fix test whether it works.
8904         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
8905
8906 2011-01-02  Bruno Haible  <bruno@clisp.org>
8907
8908         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
8909         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
8910         ends in "6". Don't require a specific month name. Try also the locale
8911         names found on HP-UX 11 and Solaris 7.
8912
8913 2011-01-02  Bruno Haible  <bruno@clisp.org>
8914
8915         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
8916         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
8917         C linkage.
8918         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
8919
8920 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8921
8922         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
8923         for consistency, since the "cluster" term is not used elsewhere.
8924         * lib/unigbrk.in.h: Update name.
8925         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
8926         * lib/unigbrk/u16-grapheme-next.c: Update name.
8927         * lib/unigbrk/u16-grapheme-prev.c: Update name.
8928         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
8929         * lib/unigbrk/u32-grapheme-next.c: Update name.
8930         * lib/unigbrk/u32-grapheme-prev.c: Update name.
8931         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
8932         * lib/unigbrk/u8-grapheme-next.c: Update name.
8933         * lib/unigbrk/u8-grapheme-prev.c: Update name.
8934         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
8935         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
8936         Suggested by Bruno Haible.
8937
8938 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8939
8940         Remove module 'u8-grapheme-len' as too redundant with
8941         'u8-grapheme-next'.
8942         * modules/unigbrk/u8-grapheme-len: Delete file.
8943         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
8944         * lib/unigbrk.in.h: Remove prototype for deleted function.
8945         * lib/unigbrk/u8-grapheme-len.c: Delete file.
8946         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
8947
8948         Remove module 'u16-grapheme-len' as too redundant with
8949         'u16-grapheme-next'.
8950         * modules/unigbrk/u16-grapheme-len: Delete file.
8951         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
8952         * lib/unigbrk.in.h: Remove prototype for deleted function.
8953         * lib/unigbrk/u16-grapheme-len.c: Delete file.
8954         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
8955
8956         Remove module 'u32-grapheme-len' as too redundant with
8957         'u32-grapheme-next'.
8958         * modules/unigbrk/u32-grapheme-len: Delete file.
8959         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
8960         * lib/unigbrk.in.h: Remove prototype for deleted function.
8961         * lib/unigbrk/u32-grapheme-len.c: Delete file.
8962         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
8963
8964         Suggested by Bruno Haible.
8965
8966 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8967
8968         * unigbrk.in.h: Fix typo: "ben" => "been".
8969         Reported by Bruno Haible.
8970
8971 2011-01-01  Jim Meyering  <meyering@redhat.com>
8972
8973         maint: update almost all copyright ranges to include 2011
8974         Run the new "make update-copyright" rule.
8975
8976 2011-01-01  Jim Meyering  <meyering@redhat.com>
8977
8978         maint: update-copyright: exempt doc/INSTALL*
8979         * Makefile (update-copyright): Also exclude doc/INSTALL*,
8980         since they are generated.  Suggested by Bruno Haible.
8981
8982 2011-01-01  Jim Meyering  <meyering@redhat.com>
8983
8984         maint: refine the update-copyright rule
8985         * Makefile (update-copyright): Also exclude any file that includes
8986         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
8987         code that merely generates the comment.
8988
8989 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
8990
8991         New module 'u8-grapheme-len'.
8992         * modules/unigbrk/u8-grapheme-len: New file.
8993         * modules/unigbrk/u8-grapheme-len-tests: New file.
8994         * lib/unigbrk.in.h: Add prototype for new function.
8995         * lib/unigbrk/u8-grapheme-len.c: New file.
8996         * tests/unigbrk/test-u8-grapheme-len.c: New file.
8997
8998         New module 'u16-grapheme-len'.
8999         * modules/unigbrk/u16-grapheme-len: New file.
9000         * modules/unigbrk/u16-grapheme-len-tests: New file.
9001         * lib/unigbrk.in.h: Add prototype for new function.
9002         * lib/unigbrk/u16-grapheme-len.c: New file.
9003         * tests/unigbrk/test-u16-grapheme-len.c: New file.
9004
9005         New module 'u32-grapheme-len'.
9006         * modules/unigbrk/u32-grapheme-len: New file.
9007         * modules/unigbrk/u32-grapheme-len-tests: New file.
9008         * lib/unigbrk.in.h: Add prototype for new function.
9009         * lib/unigbrk/u32-grapheme-len.c: New file.
9010         * tests/unigbrk/test-u32-grapheme-len.c: New file.
9011
9012         New module 'u8-grapheme-next'.
9013         * modules/unigbrk/u8-grapheme-next: New file.
9014         * modules/unigbrk/u8-grapheme-next-tests: New file.
9015         * lib/unigbrk.in.h: Add prototype for new function.
9016         * lib/unigbrk/u8-grapheme-next.c: New file.
9017         * tests/unigbrk/test-u8-grapheme-next.c: New file.
9018
9019         New module 'u16-grapheme-next'.
9020         * modules/unigbrk/u16-grapheme-next: New file.
9021         * modules/unigbrk/u16-grapheme-next-tests: New file.
9022         * lib/unigbrk.in.h: Add prototype for new function.
9023         * lib/unigbrk/u16-grapheme-next.c: New file.
9024         * tests/unigbrk/test-u16-grapheme-next.c: New file.
9025
9026         New module 'u32-grapheme-next'.
9027         * modules/unigbrk/u32-grapheme-next: New file.
9028         * modules/unigbrk/u32-grapheme-next-tests: New file.
9029         * lib/unigbrk.in.h: Add prototype for new function.
9030         * lib/unigbrk/u32-grapheme-next.c: New file.
9031         * tests/unigbrk/test-u32-grapheme-next.c: New file.
9032
9033         New module 'u8-grapheme-prev'.
9034         * modules/unigbrk/u8-grapheme-prev: New file.
9035         * modules/unigbrk/u8-grapheme-prev-tests: New file.
9036         * lib/unigbrk.in.h: Add prototype for new function.
9037         * lib/unigbrk/u8-grapheme-prev.c: New file.
9038         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
9039
9040         New module 'u16-grapheme-prev'.
9041         * modules/unigbrk/u16-grapheme-prev: New file.
9042         * modules/unigbrk/u16-grapheme-prev-tests: New file.
9043         * lib/unigbrk.in.h: Add prototype for new function.
9044         * lib/unigbrk/u16-grapheme-prev.c: New file.
9045         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
9046
9047         New module 'u32-grapheme-prev'.
9048         * modules/unigbrk/u32-grapheme-prev: New file.
9049         * modules/unigbrk/u32-grapheme-prev-tests: New file.
9050         * lib/unigbrk.in.h: Add prototype for new function.
9051         * lib/unigbrk/u32-grapheme-prev.c: New file.
9052         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
9053
9054         New module 'u8-grapheme-breaks'.
9055         * modules/unigbrk/u8-grapheme-breaks: New file.
9056         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
9057         * lib/unigbrk.in.h: Add prototype for new function.
9058         * lib/unigbrk/u8-grapheme-breaks.c: New file.
9059         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
9060
9061         New module 'u16-grapheme-breaks'.
9062         * modules/unigbrk/u16-grapheme-breaks: New file.
9063         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
9064         * lib/unigbrk.in.h: Add prototype for new function.
9065         * lib/unigbrk/u16-grapheme-breaks.c: New file.
9066         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
9067
9068         New module 'u32-grapheme-breaks'.
9069         * modules/unigbrk/u32-grapheme-breaks: New file.
9070         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
9071         * lib/unigbrk.in.h: Add prototype for new function.
9072         * lib/unigbrk/u32-grapheme-breaks.c: New file.
9073         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
9074
9075         New module 'ulc-grapheme-breaks'.
9076         * modules/unigbrk/ulc-grapheme-breaks: New file.
9077         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
9078         * m4/locale-ar.m4: New file.
9079         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
9080         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
9081         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
9082
9083 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9084
9085         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
9086         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
9087         modified how this file was generated before I initially submitted
9088         the module, but failed to regenerate it.  This meant that several
9089         of the level2 entries were wrong.
9090         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
9091         Remove the division-by-2 that is folded into the table now that
9092         gbrkprop.h has been regenerated properly.  Now -1 entries are
9093         handled correctly.
9094
9095         New module 'unigbrk/uc-gbrk-prop-tests'.
9096         * modules/unigbrk/uc-gbrk-prop-tests: New file.
9097         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
9098         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
9099         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
9100
9101 2011-01-01  Bruno Haible  <bruno@clisp.org>
9102
9103         Avoid use of hexadecimal escapes.
9104         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
9105         instead of hexadecimal escapes.
9106
9107 2011-01-01  Jim Meyering  <meyering@redhat.com>
9108
9109         maint: new rule to update copyright year ranges
9110         * Makefile (update-copyright): New rule.
9111
9112         maint: indent with TABs in Makefile
9113         * Makefile: Expand leading sequences of spaces to TABs
9114
9115         version-etc: update the copyright year it reports
9116         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
9117
9118 2010-12-31  Bruno Haible  <bruno@clisp.org>
9119
9120         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
9121         * lib/isfinite.c (zerof, zerod, zerol): New variables.
9122         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
9123         zero.
9124
9125 2010-12-31  Bruno Haible  <bruno@clisp.org>
9126
9127         pwrite: Work around HP-UX 11.11 bug.
9128         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
9129         works and set REPLACE_PWRITE if not.
9130         * lib/pwrite.c (pwrite): Add an implementation that uses the system
9131         function.
9132         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
9133
9134 2010-12-31  Bruno Haible  <bruno@clisp.org>
9135
9136         pread: Work around HP-UX 11 bugs.
9137         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
9138         and set REPLACE_PREAD if not.
9139         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
9140
9141 2010-12-31  Eric Blake  <eblake@redhat.com>
9142
9143         nl_langinfo: fix YESEXPR on Irix 6.5
9144         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
9145         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
9146         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
9147         it.
9148
9149 2010-12-31  Bruno Haible  <bruno@clisp.org>
9150
9151         iconv: Document HP-UX 11 bug.
9152         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
9153
9154 2010-12-31  Bruno Haible  <bruno@clisp.org>
9155
9156         ldexpl: Fix link error on HP-UX 11.
9157         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
9158         LDEXPL_LIBM, using $ISNANL_LIBM.
9159
9160 2010-12-31  Eric Blake  <eblake@redhat.com>
9161
9162         ftello: avoid compilation failure with SunStudio c89
9163         * lib/ftello.c (ftello): Use lseek, not llseek.
9164
9165         tests: avoid failing coreutils tests on cygwin
9166         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
9167         (create_exe_shims_): Return 0 when skipping.
9168
9169 2010-12-31  Bruno Haible  <bruno@clisp.org>
9170
9171         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
9172         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
9173
9174 2010-12-31  Bruno Haible  <bruno@clisp.org>
9175
9176         waitpid: Fix link error in C++ mode.
9177         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
9178
9179 2010-12-31  Bruno Haible  <bruno@clisp.org>
9180
9181         isnan: Use GCC built-ins when possible.
9182         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
9183         __builtin_isnan.
9184         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
9185         (isnan): Define using GCC built-ins for GCC >= 4.0.
9186
9187 2010-12-31  Bruno Haible  <bruno@clisp.org>
9188
9189         isnand: Fix mistake.
9190         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
9191         __builtin_isnand.
9192
9193 2010-12-31  Bruno Haible  <bruno@clisp.org>
9194
9195         open: Avoid C++ error on HP-UX 11.
9196         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
9197
9198 2010-12-31  Bruno Haible  <bruno@clisp.org>
9199
9200         time_r: Add missing declarations on HP-UX 11.
9201         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
9202         instead of HAVE_LOCALTIME_R.
9203         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
9204         HAVE_LOCALTIME_R always.
9205         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
9206         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
9207         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
9208         HAVE_LOCALTIME_R.
9209         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
9210         * doc/posix-functions/localtime_r.texi: Likewise.
9211
9212 2010-12-29  Eric Blake  <eblake@redhat.com>
9213
9214         mountlist: tweak previous commit
9215         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
9216         Reported by Paul Eggert.
9217
9218         mountlist: fix local drive detection on cygwin
9219         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
9220         that works for cygwin.
9221
9222 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9223
9224         ftoastr, snprintf: ftoastr + snprintf module
9225         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
9226         since the snprintf module now should be good enough here.
9227         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
9228         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
9229         and gl_MODULE_INDICATOR([snprintf]), but the former enables
9230         GNULIB_SNPRINTF only for the test directory, and the latter
9231         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
9232         seems to suffice by itself.
9233
9234 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
9235
9236         alloca: one step towards thread-safety
9237         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
9238         need for a static variable.  All callers changed.  This does not
9239         make the alloca replacement thread-safe, but it's one step.
9240
9241         tests: minor indenting change
9242         * tests/init.sh: Sync from coreutils housekeeping patch
9243         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
9244         to keep lines within 80 columns.
9245
9246 2010-12-28  Jim Meyering  <meyering@redhat.com>
9247
9248         regex: don't infloop on persistent failing calloc
9249         * lib/regexec.c (build_trtable): Return failure indication upon
9250         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
9251         In glibc, this was fixed for version 2.13:
9252         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
9253
9254 2010-12-28  Bruno Haible  <bruno@clisp.org>
9255             Paul Eggert <eggert@cs.ucla.edu>
9256
9257         linkat: Make implementation robust against system behaviour variations.
9258         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
9259         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
9260         way, and to -2 if it needs a generic runtime test.
9261         * lib/linkat.c (solaris_optimized_link_immediate,
9262         solaris_optimized_link_follow): New functions.
9263         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
9264         (check_same_link): Use it.
9265
9266 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
9267
9268         New module 'unigbrk/base'.
9269         * modules/unigbrk/base: New file.
9270         * lib/unigbrk.in.h: New file.
9271
9272         New module 'unigbrk/uc-gbrk-prop'.
9273         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
9274         * modules/unigbrk/uc-gbrk-prop: New file.
9275         * lib/unigbrk/gbrkprop.h: New file.
9276         * lib/unigbrk/uc-gbrk-prop.c: New file.
9277
9278         New module 'unigbrk/uc-is-grapheme-break'.
9279         * modules/unigbrk/uc-is-grapheme-break: New file.
9280         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
9281         * lib/unigbrk/uc-is-grapheme-break.c: New file.
9282         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
9283         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
9284         * tests/unigbrk/GraphemeBreakTest.txt: New file.
9285
9286         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
9287
9288 2010-12-27  Bruno Haible  <bruno@clisp.org>
9289
9290         linkat test: Avoid failure on Solaris 11 2010-11.
9291         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
9292
9293 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9294
9295         utimens: work around glibc rounding bug on more platforms
9296         * lib/utimens.c (fdutimens): Work around rounding bug even if
9297         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
9298         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
9299
9300 2010-12-27  Bruno Haible  <bruno@clisp.org>
9301
9302         select tests: Improve comments.
9303         * tests/test-select.c (do_select): Add comments.
9304
9305 2010-12-27  Bruno Haible  <bruno@clisp.org>
9306
9307         select tests: Safer way of handling timeout.
9308         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
9309         at every invocation.
9310
9311 2010-12-27  Bruno Haible  <bruno@clisp.org>
9312
9313         select tests: Use 'bool' where appropriate.
9314         * tests/test-select.c (connect_to_socket): Change argument type to
9315         'bool'.
9316
9317 2010-12-27  Bruno Haible  <bruno@clisp.org>
9318
9319         select tests: Use existing modules.
9320         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
9321         (configure.ac): Don't test for unistd.h.
9322         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
9323         declared in <unistd.h>.
9324
9325 2010-12-27  Bruno Haible  <bruno@clisp.org>
9326
9327         mbrtowc: Work around a Solaris 7 bug.
9328         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
9329         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
9330         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
9331         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
9332         MBRTOWC_NULL_ARG1_BUG.
9333         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
9334         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
9335         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
9336         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
9337
9338 2010-12-27  Jim Meyering  <meyering@redhat.com>
9339
9340         read-file.c: tweak syntax
9341         * lib/read-file.c (fread_file): Remove space after "*" in function
9342         definitions.
9343
9344 2010-12-27  Bruno Haible  <bruno@clisp.org>
9345
9346         times test: Avoid gcc warnings on OSF/1.
9347         * tests/test-times.c (main): Cast printf arguments from clock_t to
9348         'long int'.
9349
9350 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9351
9352         utimens: work around glibc rounding bug on older Linux kernels
9353         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
9354         on Linux with a glibc whose utimes might not work, then work
9355         around a longstanding glibc bug involving rounding rather than
9356         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
9357         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9358
9359 2010-12-26  Bruno Haible  <bruno@clisp.org>
9360
9361         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
9362         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
9363         _GL_CXXALIAS_SYS.
9364         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9365
9366 2010-12-26  Bruno Haible  <bruno@clisp.org>
9367
9368         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
9369         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
9370         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9371         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
9372         looking for the declaration.
9373         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
9374         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
9375         problem.
9376         * doc/posix-functions/inet_pton.texi: Likewise.
9377
9378 2010-12-26  Bruno Haible  <bruno@clisp.org>
9379
9380         arpa_inet: Use the common idioms with C++ support.
9381         * lib/arpa_inet.in.h: Include c++defs.h.
9382         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
9383         support.
9384         * modules/arpa_inet (Depends-on): Add c++defs.
9385         (Makefile.am): Substitute the contents of c++defs.h.
9386         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
9387         * modules/arpa_inet-c++-tests: New file.
9388         * tests/test-arpa_inet-c++.cc: New file.
9389
9390 2010-12-25  Bruno Haible  <bruno@clisp.org>
9391
9392         Fix more C++ link errors on Solaris 8.
9393         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
9394         $(LIB_EACCESS).
9395         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
9396         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
9397         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
9398         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
9399         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
9400
9401 2010-12-25  Bruno Haible  <bruno@clisp.org>
9402
9403         printf-posix: Fix link error when a non-GCC compiler is used.
9404         * lib/stdio.in.h (printf): When not using GCC, override printf
9405         correctly.
9406         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9407
9408 2010-12-25  Bruno Haible  <bruno@clisp.org>
9409
9410         strerror_r-posix: Update doc.
9411         * doc/posix-functions/strerror_r.texi: Update doc about the return
9412         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
9413
9414 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9415
9416         utimens: simplify the logic of the previous change
9417         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
9418         This should not affect whether the test succeeds or fails.
9419
9420         utimens: configure better on hosts with NFS clock skew
9421         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
9422         uses the clock of the local host.  It might use the clock of the
9423         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
9424         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9425
9426 2010-12-25  Bruno Haible  <bruno@clisp.org>
9427
9428         ptsname test: Avoid failure on Solaris.
9429         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
9430         open a pseudo-terminal; don't use BSD-style ptys.
9431         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
9432
9433 2010-12-25  Bruno Haible  <bruno@clisp.org>
9434
9435         ptsname: Avoid ERANGE failure on some systems.
9436         * lib/ptsname.c (buffer): Increase size.
9437
9438 2010-12-25  Bruno Haible  <bruno@clisp.org>
9439
9440         rename, renameat: Avoid test failures at NFS mounted locations.
9441         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
9442         so that subsequent mkdir calls succeed.
9443
9444 2010-12-25  Bruno Haible  <bruno@clisp.org>
9445
9446         iswblank: Fix C++ link error on Solaris 8.
9447         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
9448         _GL_FUNCDECL_SYS.
9449
9450 2010-12-25  Bruno Haible  <bruno@clisp.org>
9451
9452         unistd: Fix C++ link error on Solaris 8.
9453         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
9454
9455 2010-12-25  Bruno Haible  <bruno@clisp.org>
9456
9457         readlink doc: Mention an old glibc bug.
9458         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
9459
9460 2010-12-25  Bruno Haible  <bruno@clisp.org>
9461
9462         fcntl-h: Fix for use of C++ on glibc systems.
9463         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9464         also on glibc systems in C++ mode.
9465         Reported by Gary V. Vaughan <gary@gnu.org>.
9466
9467 2010-12-25  Bruno Haible  <bruno@clisp.org>
9468
9469         roundl-ieee: Make it work on OSF/1 5.1 with cc.
9470         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
9471
9472 2010-12-25  Bruno Haible  <bruno@clisp.org>
9473
9474         truncl-ieee: Make it work on OSF/1 5.1 with cc.
9475         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
9476         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
9477         test whether truncl works according to ISO C 99 with IEC 60559.
9478         * m4/truncl-ieee.m4: New file.
9479         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
9480         m4/signbit.m4.
9481         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
9482
9483 2010-12-25  Bruno Haible  <bruno@clisp.org>
9484
9485         ceill-ieee: Make it work on OSF/1 5.1 with cc.
9486         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
9487         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
9488         test whether ceill works according to ISO C 99 with IEC 60559.
9489         * m4/ceill-ieee.m4: New file.
9490         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
9491         m4/signbit.m4.
9492         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
9493
9494 2010-12-25  Bruno Haible  <bruno@clisp.org>
9495
9496         Ensure all prerequisites of <wchar.h> are included.
9497         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
9498         before <wchar.h>.
9499         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
9500         gl_MBRLEN_NUL_RETVAL): Likewise.
9501         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9502         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
9503         AC_FUNC_MBRTOWC): Likewise.
9504         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9505         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
9506         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9507         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
9508         Likewise.
9509         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9510         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
9511         (gl_WCHAR_H): Improve comments.
9512         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9513
9514 2010-12-25  Bruno Haible  <bruno@clisp.org>
9515
9516         strtok_r: Fix C syntax error in autoconf macro.
9517         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
9518         characters in test program.
9519
9520 2010-12-24  Bruno Haible  <bruno@clisp.org>
9521
9522         ceil, trunc, round: Fix gcc warnings.
9523         * lib/ceil.c (MIN): Undefine before redefining.
9524         * lib/trunc.c (MIN): Likewise.
9525         * lib/round.c (MIN): Likewise.
9526         Include <math.h> first.
9527
9528 2010-12-24  Bruno Haible  <bruno@clisp.org>
9529
9530         select tests: Avoid failures on OSF/1 5.1.
9531         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
9532         failure of closing the last socket; it may fail with ECONNRESET.
9533
9534 2010-12-24  Eric Blake  <eblake@redhat.com>
9535
9536         stdint: avoid HP-UX 10.20 preprocessor bug
9537         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
9538         than #if.
9539         * tests/test-floor2.c (main): Likewise.
9540         Reported by Peter O'Gorman.
9541
9542         pipe: make obsoletion transition easier
9543         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
9544         * modules/pipe (Files): Include revived file.
9545         (Include): Drop reference, to mirror getdate's behavior.
9546
9547 2010-12-24  Bruno Haible  <bruno@clisp.org>
9548
9549         sys_socket: Hide mismatch of declarations on NonStop Kernel.
9550         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
9551         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
9552         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9553
9554 2010-12-24  Bruno Haible  <bruno@clisp.org>
9555
9556         gethostname: Ensure declaration on NonStop Kernel.
9557         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
9558         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9559
9560 2010-12-24  Bruno Haible  <bruno@clisp.org>
9561
9562         sys_select: Ensure all necessary types on NonStop Kernel.
9563         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
9564         include <sys/time.h>.
9565         * doc/posix-headers/sys_select.texi: Mention that it's missing on
9566         NonStop Kernel.
9567         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9568
9569 2010-12-24  Bruno Haible  <bruno@clisp.org>
9570
9571         sys_select: Remove unneeded include.
9572         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
9573         have <sys/select.h>.
9574
9575 2010-12-24  Bruno Haible  <bruno@clisp.org>
9576
9577         gethostname: Provide a fallback for HOST_NAME_MAX.
9578         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
9579         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
9580         instead.
9581         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9582
9583 2010-12-24  Bruno Haible  <bruno@clisp.org>
9584
9585         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
9586         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
9587         (SA_RESTART): Likewise.
9588         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9589
9590 2010-12-24  Bruno Haible  <bruno@clisp.org>
9591
9592         signal: Define NSIG.
9593         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
9594         * tests/test-signal.c (nsig): New variable.
9595         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9596
9597 2010-12-24  Bruno Haible  <bruno@clisp.org>
9598
9599         rename, renameat: Avoid test failures on OSF/1 5.1.
9600         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
9601         alternative error codes.
9602         * tests/test-renameat.c (main): Likewise.
9603
9604 2010-12-24  Bruno Haible  <bruno@clisp.org>
9605
9606         *printf: Detect large precisions bug on Solaris 10/SPARC.
9607         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
9608         by Paul Eggert.
9609         * tests/test-snprintf-posix.h (test_function): Add this test code here
9610         too.
9611         * tests/test-sprintf-posix.h (test_function): Likewise.
9612         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9613         * tests/test-vasprintf-posix.c (test_function): Likewise.
9614         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
9615         around by gnulib.
9616         * doc/posix-functions/printf.texi: Likewise.
9617         * doc/posix-functions/snprintf.texi: Likewise.
9618         * doc/posix-functions/sprintf.texi: Likewise.
9619         * doc/posix-functions/vfprintf.texi: Likewise.
9620         * doc/posix-functions/vprintf.texi: Likewise.
9621         * doc/posix-functions/vsnprintf.texi: Likewise.
9622         * doc/posix-functions/vsprintf.texi: Likewise.
9623         * doc/posix-functions/dprintf.texi: Undo last commit.
9624         * doc/posix-functions/vdprintf.texi: Likewise.
9625
9626 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
9627
9628         tests: port test-fdutimensat.c to Solaris 8
9629         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
9630         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
9631         On Solaris 8, it fails with errno == ENOSYS, because there is no
9632         futimens (so it can't use the fd), and there is no lutimens (so it
9633         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
9634
9635         vsnprintf: make more consistent with snprintf; doc fixes
9636
9637         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
9638         the byte count return problem was promoted from the snprintf-posix
9639         to the snprintf module.
9640         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
9641         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
9642         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
9643         * tests/test-snprintf.c (main): Check the byte count returned.
9644         * tests/test-vsnprintf.c (main): Likewise.
9645
9646 2010-12-23  Eric Blake  <eblake@redhat.com>
9647
9648         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
9649         * modules/sigpipe (License): Relax license.
9650
9651 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9652
9653         doc: document Solaris printf bug with large float precisions
9654         * doc/posix-functions/dprintf.texi (dprintf):
9655         * doc/posix-functions/fprintf.texi (fprintf):
9656         * doc/posix-functions/printf.texi (printf):
9657         * doc/posix-functions/snprintf.texi (snprintf):
9658         * doc/posix-functions/sprintf.texi (sprintf):
9659         * doc/posix-functions/vdprintf.texi (vdprintf):
9660         * doc/posix-functions/vfprintf.texi (vfprintf):
9661         * doc/posix-functions/vprintf.texi (vprintf):
9662         * doc/posix-functions/vsnprintf.texi (vsnprintf):
9663         * doc/posix-functions/vsprintf.texi (vsprintf):
9664         Mention that these functions mishandle large floating point
9665         precisions on Solaris 10.  The same bug is also present in Solaris
9666         8, and I assume earlier.  This causes "cd gnulib-tests; make
9667         check" to fail on Solaris 8 (and I assume, later) when building
9668         the latest coreutils, in test-vasprintf-posix's call to
9669         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
9670         the wide flavors (e.g., wprintf) so this patch just updates the
9671         documentation for the narrow ones.
9672
9673         test-posixtm.c: add two tests
9674         * tests/test-posixtm.c: Add two tests, to highlight the
9675         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
9676         around this bug; this is merely to document it.
9677
9678 2010-12-22  Bruno Haible  <bruno@clisp.org>
9679
9680         getlogin_r: Work around portability problem on OSF/1.
9681         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
9682         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
9683         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
9684         test for a truncated result.
9685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
9686         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
9687         * modules/getlogin_r (Depends-on): Add memchr.
9688         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
9689
9690 2010-12-22  Bruno Haible  <bruno@clisp.org>
9691
9692         ptsname: Avoid test failure on OSF/1 5.1.
9693         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
9694         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
9695         (same_slave): New function.
9696         (main): Use it to compare ptsname's result with the expected file name.
9697
9698 2010-12-22  Bruno Haible  <bruno@clisp.org>
9699
9700         Port extended stdio modules to HP NonStop Kernel.
9701         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
9702         macros.
9703         * lib/fbufmode.c: Update comments.
9704         * lib/fflush.c: Likewise.
9705         * lib/fpurge.c: Likewise.
9706         * lib/freadable.c: Likewise.
9707         * lib/freadahead.c: Likewise.
9708         * lib/freading.c: Likewise.
9709         * lib/freadptr.c: Likewise.
9710         * lib/freadseek.c: Likewise.
9711         * lib/fseeko.c: Likewise.
9712         * lib/fseterr.c: Likewise.
9713         * lib/fwritable.c: Likewise.
9714         * lib/fwriting.c: Likewise.
9715         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9716
9717 2010-12-22  Bruno Haible  <bruno@clisp.org>
9718
9719         ttyname_r: Work around bug on OSF/1 5.1.
9720         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
9721         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
9722         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
9723         present.
9724         * lib/ttyname_r.c (ttyname_r): Update comments.
9725
9726 2010-12-22  Bruno Haible  <bruno@clisp.org>
9727
9728         round: Implement result sign according to IEEE 754.
9729         * lib/round.c (MIN, MINUS_ZERO): New macros.
9730         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
9731         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
9732         * tests/test-round-ieee.c (main): Likewise.
9733         * tests/test-roundl-ieee.c (main): Likewise.
9734
9735         trunc: Implement result sign according to IEEE 754.
9736         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
9737         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
9738         * tests/test-trunc2.c: Include minus-zero.h.
9739         (MINUS_ZERO): New macro.
9740         (trunc_reference): Keep in sync with lib/trunc.c.
9741         * tests/test-truncf2.c: Include minus-zero.h.
9742         (MINUS_ZERO): New macro.
9743         (truncf_reference): Keep in sync with lib/trunc.c.
9744         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
9745         * tests/test-trunc-ieee.c (main): Likewise.
9746         * tests/test-truncl-ieee.c (main): Likewise.
9747
9748         ceil: Implement result sign according to IEEE 754.
9749         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
9750         (FUNC): Return -0.0 for -1 < x < 0.
9751         * tests/test-ceil2.c: Include minus-zero.h.
9752         (MINUS_ZERO): New macro.
9753         (ceil_reference): Keep in sync with lib/ceil.c.
9754         * tests/test-ceilf2.c: Include minus-zero.h.
9755         (MINUS_ZERO): New macro.
9756         (ceilf_reference): Keep in sync with lib/ceil.c.
9757         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
9758         * tests/test-ceil-ieee.c (main): Likewise.
9759         * tests/test-ceill-ieee.c (main): Likewise.
9760
9761         floor: Implement result sign according to IEEE 754.
9762         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
9763         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
9764         * tests/test-floorf2.c (floorf_reference): Likewise.
9765         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
9766         * tests/test-floor-ieee.c (main): Likewise.
9767         * tests/test-floorl-ieee.c (main): Likewise.
9768
9769 2010-12-22  Bruno Haible  <bruno@clisp.org>
9770
9771         getaddrinfo: Update doc.
9772         * doc/posix-functions/gai_strerror.texi: Return type is also different
9773         on AIX and HP-UX.
9774
9775 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9776
9777         getaddrinfo, inet_ntop: Update doc for Solaris.
9778         * doc/posix-functions/gai_strerror.texi: Return type is also an
9779         issue on Solaris 9 and earlier.
9780         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
9781         on Solaris 10 and earlier.
9782
9783 2010-12-21  Bruno Haible  <bruno@clisp.org>
9784
9785         New module 'roundl-ieee'.
9786         * modules/roundl-ieee: New file.
9787         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
9788         test whether roundl works according to ISO C 99 with IEC 60559.
9789         * m4/roundl-ieee.m4: New file.
9790         * modules/roundl-ieee-tests: New file.
9791         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
9792         * tests/test-roundl.c (main): Remove signbit tests.
9793         * modules/roundl-tests (Depends-on): Remove signbit.
9794         * doc/posix-functions/roundl.texi: Mention the new module.
9795
9796 2010-12-21  Bruno Haible  <bruno@clisp.org>
9797
9798         New module 'truncl-ieee'.
9799         * modules/truncl-ieee: New file.
9800         * modules/truncl-ieee-tests: New file.
9801         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
9802         * tests/test-truncl.c (main): Remove signbit tests.
9803         * modules/truncl-tests (Depends-on): Remove signbit.
9804         * doc/posix-functions/truncl.texi: Mention the new module.
9805
9806 2010-12-21  Bruno Haible  <bruno@clisp.org>
9807
9808         New module 'ceill-ieee'.
9809         * modules/ceill-ieee: New file.
9810         * modules/ceill-ieee-tests: New file.
9811         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
9812         * tests/test-ceill.c (main): Remove signbit tests.
9813         * modules/ceill-tests (Depends-on): Remove signbit.
9814         * doc/posix-functions/ceill.texi: Mention the new module.
9815
9816 2010-12-21  Bruno Haible  <bruno@clisp.org>
9817
9818         New module 'floorl-ieee'.
9819         * modules/floorl-ieee: New file.
9820         * modules/floorl-ieee-tests: New file.
9821         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
9822         * tests/test-floorl.c (main): Remove signbit tests.
9823         * modules/floorl-tests (Depends-on): Remove signbit.
9824         * doc/posix-functions/floorl.texi: Mention the new module.
9825
9826 2010-12-21  Bruno Haible  <bruno@clisp.org>
9827
9828         New module 'round-ieee'.
9829         * modules/round-ieee: New file.
9830         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
9831         whether round works according to ISO C 99 with IEC 60559.
9832         * m4/round-ieee.m4: New file.
9833         * modules/round-ieee-tests: New file.
9834         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
9835         * tests/test-round1.c (main): Remove signbit tests.
9836         * modules/round-tests (Depends-on): Remove 'signbit'.
9837         * doc/posix-functions/round.texi: Mention the new module.
9838
9839 2010-12-21  Bruno Haible  <bruno@clisp.org>
9840
9841         New module 'trunc-ieee'.
9842         * modules/trunc-ieee: New file.
9843         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
9844         whether trunc works according to ISO C 99 with IEC 60559.
9845         * m4/trunc-ieee.m4: New file.
9846         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
9847         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
9848         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
9849         * modules/trunc-ieee-tests: New file.
9850         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
9851         * tests/test-trunc1.c (main): Remove signbit tests.
9852         * modules/trunc-tests (Depends-on): Remove 'signbit'.
9853         * doc/posix-functions/trunc.texi: Mention the new module.
9854
9855 2010-12-21  Bruno Haible  <bruno@clisp.org>
9856
9857         New module 'ceil-ieee'.
9858         * modules/ceil-ieee: New file.
9859         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
9860         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
9861         ISO C 99 with IEC 60559.
9862         * m4/ceil-ieee.m4: New file.
9863         * modules/ceil (Files): Add lib/ceil.c.
9864         (Depends-on): Add 'float'.
9865         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9866         * lib/math.in.h (ceil): New declaration.
9867         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
9868         REPLACE_CEIL.
9869         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
9870         * modules/ceil-ieee-tests: New file.
9871         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
9872         * tests/test-math-c++.cc: Check the signature of 'ceil'.
9873         * doc/posix-functions/ceil.texi: Mention the new module.
9874
9875 2010-12-21  Bruno Haible  <bruno@clisp.org>
9876
9877         New module 'floor-ieee'.
9878         * modules/floor-ieee: New file.
9879         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
9880         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
9881         ISO C 99 with IEC 60559.
9882         * m4/floor-ieee.m4: New file.
9883         * modules/floor (Files): Add lib/floor.c.
9884         (Depends-on): Add 'float'.
9885         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9886         * lib/math.in.h (floor): New declaration.
9887         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
9888         REPLACE_FLOOR.
9889         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
9890         * modules/floor-ieee-tests: New file.
9891         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
9892         * tests/test-math-c++.cc: Check the signature of 'floor'.
9893         * doc/posix-functions/floor.texi: Mention the new module.
9894
9895 2010-12-21  Bruno Haible  <bruno@clisp.org>
9896
9897         New module 'roundf-ieee'.
9898         * modules/roundf-ieee: New file.
9899         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
9900         test whether roundf works according to ISO C 99 with IEC 60559.
9901         * m4/roundf-ieee.m4: New file.
9902         * modules/roundf-ieee-tests: New file.
9903         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
9904         * tests/test-roundf1.c (main): Remove signbit tests.
9905         * modules/roundf-tests (Depends-on): Remove 'signbit'.
9906         * doc/posix-functions/roundf.texi: Mention the new module.
9907
9908 2010-12-21  Bruno Haible  <bruno@clisp.org>
9909
9910         New module 'truncf-ieee'.
9911         * modules/truncf-ieee: New file.
9912         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
9913         test whether truncf works according to ISO C 99 with IEC 60559.
9914         * m4/truncf-ieee.m4: New file.
9915         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
9916         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
9917         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
9918         * modules/truncf-ieee-tests: New file.
9919         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
9920         * tests/test-truncf1.c (main): Remove signbit tests.
9921         * modules/truncf-tests (Depends-on): Remove 'signbit'.
9922         * doc/posix-functions/truncf.texi: Mention the new module.
9923
9924 2010-12-21  Bruno Haible  <bruno@clisp.org>
9925
9926         New module 'ceilf-ieee'.
9927         * modules/ceilf-ieee: New file.
9928         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
9929         test whether ceilf works according to ISO C 99 with IEC 60559.
9930         * m4/ceilf-ieee.m4: New file.
9931         * modules/ceilf-ieee-tests: New file.
9932         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
9933         * tests/test-ceilf1.c (main): Remove signbit tests.
9934         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
9935         * doc/posix-functions/ceilf.texi: Mention the new module.
9936
9937 2010-12-21  Bruno Haible  <bruno@clisp.org>
9938
9939         New module 'floorf-ieee'.
9940         * modules/floorf-ieee: New file.
9941         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
9942         test whether floorf works according to ISO C 99 with IEC 60559.
9943         * m4/floorf-ieee.m4: New file.
9944         * modules/floorf-ieee-tests: New file.
9945         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
9946         * tests/test-floorf1.c (main): Remove signbit tests.
9947         * modules/floorf-tests (Depends-on): Remove 'signbit'.
9948         * doc/posix-functions/floorf.texi: Mention the new module.
9949
9950 2010-12-21  Bruno Haible  <bruno@clisp.org>
9951
9952         Support for minus zero in autoconf macros.
9953         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
9954         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
9955         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
9956         * tests/minus-zero.h: Update comments.
9957
9958 2010-12-21  Bruno Haible  <bruno@clisp.org>
9959
9960         Tests for module 'ceil'.
9961         * modules/ceil-tests: New file.
9962         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
9963         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
9964
9965 2010-12-21  Bruno Haible  <bruno@clisp.org>
9966
9967         Tests for module 'floor'.
9968         * modules/floor-tests: New file.
9969         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
9970         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
9971
9972 2010-12-21  Bruno Haible  <bruno@clisp.org>
9973
9974         math: Fix indentation.
9975         * lib/math.in.h (floorf): Fix indentation.
9976
9977 2010-12-21  Bruno Haible  <bruno@clisp.org>
9978
9979         Fix cross-compilation guesses on Solaris.
9980         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
9981         not match "solaris2.10".
9982         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9983         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
9984         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
9985
9986 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
9987
9988         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
9989         This fixes a problem observed with the latest coreutils snapshot
9990         that caused a test to fail on Solaris 8.  src/csplit.c's call
9991         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
9992         earlier, instead of returning the number of bytes that would have
9993         been generated; this causes csplit to incorrectly report memory
9994         exhaustion.
9995         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
9996         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
9997         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
9998         comments to match.
9999         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
10000         Fix typo in matching older versions of Solaris: "solaris2.10"
10001         is matched by the shell pattern "solaris2.[0-9]*".  This matters
10002         only for guessing while cross-compiling.
10003         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
10004
10005 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
10006
10007         ftoastr: fix comment again
10008         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10009         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
10010         Also, simplify example a bit by using flags = 0.
10011
10012 2010-12-20  Bruno Haible  <bruno@clisp.org>
10013
10014         round*, trunc*: Update documentation regarding glibc.
10015         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
10016         * doc/posix-functions/round.texi: Likewise.
10017         * doc/posix-functions/roundl.texi: Likewise.
10018         * doc/posix-functions/truncf.texi: Likewise.
10019         * doc/posix-functions/trunc.texi: Likewise.
10020         * doc/posix-functions/truncl.texi: Likewise.
10021
10022 2010-12-20  Bruno Haible  <bruno@clisp.org>
10023
10024         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
10025         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
10026         * doc/posix-functions/round.texi: Likewise.
10027         * doc/posix-functions/roundl.texi: Likewise.
10028
10029 2010-12-20  Bruno Haible  <bruno@clisp.org>
10030
10031         ttyname_r: Add missing declaration on HP-UX 11.
10032         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
10033         HAVE_TTYNAME_R.
10034         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
10035         declared. Set HAVE_TTYNAME_R always.
10036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10037         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
10038         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
10039         HAVE_TTYNAME_R.
10040         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
10041
10042 2010-12-20  Bruno Haible  <bruno@clisp.org>
10043
10044         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
10045         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
10046         * doc/posix-functions/getlogin_r.texi: Likewise.
10047         * tests/test-getlogin.c: Include <errno.h>.
10048         (main): Avoid test failure on HP-UX 11.11.
10049         * tests/test-getlogin_r.c (main): Likewise.
10050
10051 2010-12-20  Bruno Haible  <bruno@clisp.org>
10052
10053         getlogin_r: Add missing declaration on HP-UX 11.
10054         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
10055         declared also when it exists as a function.
10056         * doc/posix-functions/getlogin_r.texi: Document this workaround.
10057
10058 2010-12-20  Bruno Haible  <bruno@clisp.org>
10059
10060         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
10061         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
10062         through wcrtomb.
10063
10064 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10065
10066         ftoastr: fix comment
10067         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10068         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
10069
10070 2010-12-19  Bruno Haible  <bruno@clisp.org>
10071
10072         isnan: Ensure it is a macro.
10073         * lib/math.in.h (isnan): Define as a macro if not already a macro.
10074         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
10075         Solaris.
10076
10077 2010-12-19  Bruno Haible  <bruno@clisp.org>
10078
10079         ldexpl test: Fix link error on OSF/1 5.1.
10080         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
10081
10082 2010-12-19  Bruno Haible  <bruno@clisp.org>
10083
10084         wctype: Make it work in C++ mode on OSF/1 5.1.
10085         * lib/wctype.in.h (iswblank): Declare but not define here.
10086         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
10087         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
10088         * modules/wctype (Files): Add lib/iswblank.c.
10089
10090 2010-12-19  Bruno Haible  <bruno@clisp.org>
10091
10092         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
10093         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
10094         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
10095
10096 2010-12-19  Bruno Haible  <bruno@clisp.org>
10097
10098         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
10099         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
10100         _POSIX_PII_SOCKET.
10101         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
10102         * doc/posix-functions/recvfrom.texi: Likewise.
10103         * doc/posix-functions/send.texi: Likewise.
10104         * doc/posix-functions/sendto.texi: Likewise.
10105
10106 2010-12-19  Bruno Haible  <bruno@clisp.org>
10107
10108         tcgetsid: Add missing declaration on OSF/1 5.1.
10109         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
10110         HAVE_TCGETSID.
10111         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
10112         Don't set HAVE_TCGETSID.
10113         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
10114         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
10115         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
10116         HAVE_TCGETSID.
10117         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
10118
10119 2010-12-19  Bruno Haible  <bruno@clisp.org>
10120
10121         stdio: Fix problem with popen() declaration on OSF/1 5.1.
10122         * lib/stdio.in.h: During the include_next statement, let recursive
10123         includes of this file include only the system header file.
10124
10125 2010-12-19  Bruno Haible  <bruno@clisp.org>
10126
10127         iconv_open: Fix regression from 2010-12-04.
10128         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
10129         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
10130
10131 2010-12-19  Bruno Haible  <bruno@clisp.org>
10132
10133         stdbool test: Avoid a gcc warning.
10134         * tests/test-stdbool.c (main): Fail if e1 is false.
10135         Reported by Jim Meyering.
10136
10137 2010-12-19  Jim Meyering  <meyering@redhat.com>
10138
10139         setenv: restore to working order
10140         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
10141         mistakenly removed.
10142         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
10143         HAVE_SETENV.
10144         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
10145         HAVE_SETENV.
10146
10147 2010-12-19  Bruno Haible  <bruno@clisp.org>
10148
10149         Document some different function declarations on OSF/1 5.1.
10150         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
10151         * doc/posix-functions/inet_ntop.texi: Likewise.
10152         * doc/posix-functions/gethostname.texi: Likewise.
10153         * lib/unistd.in.h (gethostname): Update comment.
10154
10155 2010-12-19  Bruno Haible  <bruno@clisp.org>
10156
10157         doc: Mention vasprintf-posix module.
10158         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
10159         the 'vasprintf-posix' module.
10160         * doc/glibc-functions/vasprintf.texi: Likewise.
10161
10162 2010-12-19  Bruno Haible  <bruno@clisp.org>
10163
10164         unsetenv: Add missing declaration on OSF/1 5.1.
10165         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
10166         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
10167         Don't set HAVE_UNSETENV. In the test program, set _BSD.
10168         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
10169         not HAVE_UNSETENV.
10170         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
10171         HAVE_UNSETENV.
10172         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
10173
10174 2010-12-19  Bruno Haible  <bruno@clisp.org>
10175
10176         setenv: Add missing declaration on OSF/1 5.1.
10177         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
10178         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
10179         declared. Don't set HAVE_SETENV.
10180         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
10181         not HAVE_SETENV.
10182         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
10183         HAVE_SETENV.
10184         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
10185
10186 2010-12-19  Bruno Haible  <bruno@clisp.org>
10187
10188         nl_langinfo tests: Avoid gcc warning.
10189         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
10190
10191 2010-12-19  Bruno Haible  <bruno@clisp.org>
10192
10193         mknod: Avoid error in C++ mode on OSF/1 with GCC.
10194         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
10195         _GL_CXXALIAS_SYS.
10196
10197 2010-12-19  Bruno Haible  <bruno@clisp.org>
10198
10199         stdbool: Relax test.
10200         * tests/test-stdbool.c (e): Don't require that casts from a variable's
10201         address to 'bool' work in static initializer, for compilers other than
10202         GCC.
10203
10204 2010-12-19  Bruno Haible  <bruno@clisp.org>
10205
10206         ftello: Add missing declaration on OSF/1 5.1.
10207         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
10208         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
10209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
10210         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
10211         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
10212
10213 2010-12-19  Bruno Haible  <bruno@clisp.org>
10214
10215         fseeko: Add missing declaration on OSF/1 5.1.
10216         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
10217         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
10218         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
10219         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
10220         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
10221
10222 2010-12-19  Bruno Haible  <bruno@clisp.org>
10223
10224         fchdir: Add missing declaration on OSF/1 5.1.
10225         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
10226         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
10227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
10228         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
10229         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
10230
10231 2010-12-19  Bruno Haible  <bruno@clisp.org>
10232
10233         relocatable-prog-wrapper: Separate from relocatable-prog.
10234         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
10235         uninstall-relocwrapper rule here.
10236         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
10237         Reported by Ian Beckwith <ianb@erislabs.net>.
10238
10239 2010-12-19  Bruno Haible  <bruno@clisp.org>
10240
10241         unistr/u8-mbsnlen: Add missing dependency.
10242         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
10243         Reported by Ian Beckwith <ianb@erislabs.net>.
10244
10245 2010-12-19  Bruno Haible  <bruno@clisp.org>
10246
10247         iconv: Make it possible again to use this module without 'iconv-h'.
10248         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
10249         if it is not defined.
10250         Reported by Ian Beckwith <ianb@erislabs.net>.
10251
10252 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10253
10254         acl: port to Solaris 8 when copying from tmpfs to ufs
10255         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
10256         error number.  Problem observed on Solaris 8 with latest
10257         coreutils, with "mv A B", where A is on a tmpfs file system and B
10258         is on a ufs file system.  This caused coreutils' mv/part-symlink
10259         test to fail.
10260
10261         tests: set fail=0 at start
10262         * tests/init.sh (setup_): Move fail=0 initialization here ...
10263         (mktempd_): ... from here, so that tests can rely on fail being
10264         set to 0 initially.  This fixes a problem in coreutils; see:
10265         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
10266
10267 2010-12-18  Bruno Haible  <bruno@clisp.org>
10268
10269         memmem-simple: Stylistic changes.
10270         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
10271         Fix preprocessor directive indentation.
10272
10273 2010-12-15  Pádraig Brady <P@draigBrady.com>
10274
10275         memmem, memmem-simple: reorganize and expand empty needle check
10276         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
10277         functional checks to memmem-simple so that one has a fully functional
10278         memmem by using just this module.
10279         Restrict the performance only check to the memmem module.
10280         Also expand the empty needle check to ensure the correct
10281         pointer is returned, not just a non NULL pointer.
10282         * doc/glibc-functions/memmem.texi: Rearrange the portability
10283         documentation to correlate with the rearranged checks.
10284         Clarify exactly how the memmem and memmem-simple modules
10285         relate to each other.
10286
10287 2010-12-15  Pádraig Brady <P@draigBrady.com>
10288             Bruno Haible  <bruno@clisp.org>
10289
10290         Improve cross-compilation guesses for uClibc.
10291         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
10292         that uClibc does not have the glibc bug.
10293         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
10294         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
10295
10296 2010-12-14  Eric Blake  <eblake@redhat.com>
10297
10298         configmake: provide fallbacks for oldest supported autotools
10299         * m4/configmake.m4: New file.
10300         * modules/configmake (Files): Ship it.
10301         (configure.ac): Use it to guarantee fallbacks.
10302
10303 2010-12-13  Pádraig Brady <P@draigBrady.com>
10304
10305         read-file: Improve handling of large files
10306         * lib/read-file.c (fread_file): Minimize realloc()s
10307         for regular files, and better manage sizes around SIZE_MAX.
10308
10309 2010-12-13  Eric Blake  <eblake@redhat.com>
10310
10311         cloexec, fcntl: relax license
10312         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
10313         consent from all contributors.
10314         * modules/fcntl (License): Likewise.
10315
10316 2010-12-10  Bruno Haible  <bruno@clisp.org>
10317
10318         Tests for module 'pipe-posix'.
10319         * modules/pipe-posix-tests: New file.
10320         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
10321
10322 2010-12-10  Bruno Haible  <bruno@clisp.org>
10323
10324         pipe-posix: Make it work in C++ mode.
10325         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
10326         (pipe): Use common idiom, not a macro definition.
10327         * lib/pipe.c: New file.
10328         * m4/pipe.m4: New file.
10329         * modules/pipe-posix (Description): Enhance.
10330         (Files): Add lib/pipe.c, m4/pipe.m4.
10331         (configure.ac): Invoke gl_FUNC_PIPE.
10332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
10333         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
10334         * tests/test-unistd-c++.cc: Check the signature of pipe.
10335
10336 2010-12-10  Bruno Haible  <bruno@clisp.org>
10337
10338         Rename module 'pipe' to 'spawn-pipe'.
10339         * modules/spawn-pipe: New file, renamed from modules/pipe.
10340         (Files, configure.ac, Makefile.am): Update.
10341         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
10342         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
10343         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
10344         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
10345         "spawn-pipe.h" instead of "pipe.h".
10346         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
10347         to gl_SPAWN_PIPE.
10348         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
10349         (Files, Makefile.am): Update.
10350         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
10351         Update.
10352         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
10353         Include "spawn-pipe.h" instead of "pipe.h".
10354         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
10355         * lib/javacomp.c: Likewise.
10356         * lib/javaversion.c: Likewise.
10357         * lib/pipe-filter-gi.c: Likewise.
10358         * lib/pipe-filter-ii.c: Likewise.
10359         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
10360         * modules/javacomp (Depends-on): Likewise.
10361         * modules/javaversion (Depends-on): Likewise.
10362         * modules/pipe-filter-gi (Depends-on): Likewise.
10363         * modules/pipe-filter-ii (Depends-on): Likewise.
10364         * MODULES.html.sh (Executing programs): Update.
10365         * NEWS: Mention the change.
10366
10367 2010-12-10  Eric Blake  <eblake@redhat.com>
10368
10369         pipe-posix: new module
10370         * modules/pipe-posix: New file.
10371         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
10372         (gl_UNISTD_H): Check for declaration.
10373         * modules/unistd (Makefile.am): Substitute it.
10374         * lib/unistd.in.h (pipe): Provide it for mingw.
10375         * doc/posix-functions/pipe.texi (pipe): Update documentation.
10376         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
10377
10378 2010-12-07  Bruno Haible  <bruno@clisp.org>
10379
10380         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
10381         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
10382         u8_strcmp_gnu.
10383         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
10384
10385 2010-12-06  Bruno Haible  <bruno@clisp.org>
10386
10387         Update internal documentation.
10388         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
10389
10390 2010-12-04  Bruno Haible  <bruno@clisp.org>
10391
10392         Put more information about failed tests into the test return codes.
10393         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
10394         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
10395         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
10396         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10397         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
10398         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10399         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10400         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10401         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
10402         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10403         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
10404         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10405         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10406         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10407         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
10408         returns a bit mask.
10409         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
10410         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
10411         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
10412         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
10413         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10414         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10415         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10416         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10417         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10418         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10419         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10420         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10421         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10422         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10423         * m4/link.m4 (gl_FUNC_LINK): Likewise.
10424         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10425         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
10426         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
10427         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10428         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
10429         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10430         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
10431         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
10432         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
10433         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10434         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10435         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
10436         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10437         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10438         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
10439         gl_PRINTF_PRECISION): Likewise.
10440         * m4/regex.m4 (gl_REGEX): Likewise.
10441         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10442         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10443         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
10444         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10445         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10446         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10447         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10448         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
10449         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10450         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10451         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10452         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10453         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10454         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
10455         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10456         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10457         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
10458         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10459         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10460         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
10461         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
10462         enumerated value.
10463         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
10464
10465 2010-12-04  Bruno Haible  <bruno@clisp.org>
10466
10467         Update for Solaris 11 2010-11.
10468         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
10469         Express, released in November 2010.
10470
10471 2010-12-04  Bruno Haible  <bruno@clisp.org>
10472
10473         nproc: Relax license.
10474         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
10475         and Paul Eggert.
10476         Requested by Ludovic Courtès <ludo@gnu.org>.
10477
10478 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
10479
10480         utimecmp: fine-grained src to nearby coarse-grained dest
10481
10482         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
10483         and the source is on a file system with higher-resolution time
10484         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
10485         not work, and the time stamps are close together, the algorithm to
10486         determine the exact resolution from the read-back mtime was buggy:
10487         it had a "!=" where it should have had an "==".  This bug has been
10488         in the code ever since it was introduced to gnulib.
10489         Problem reported by Dan Jacobson in
10490         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
10491
10492 2010-11-30  Bruno Haible  <bruno@clisp.org>
10493
10494         strerror_r-posix: Fix autoconf test.
10495         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
10496
10497 2010-11-28  Bruno Haible  <bruno@clisp.org>
10498             Paul Eggert  <eggert@cs.ucla.edu>
10499
10500         Tests for module 'getdomainname'.
10501         * modules/getdomainname-tests: New file.
10502         * tests/test-getdomainname.c: New file, based on
10503         tests/test-gethostname.c.
10504
10505 2010-11-28  Bruno Haible  <bruno@clisp.org>
10506             Paul Eggert  <eggert@cs.ucla.edu>
10507
10508         getdomainname: Use the system function when possible.
10509         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
10510         (getdomainname): Replace if needed. Provide the declaration if it is
10511         missing. Don't use _GL_CXXALIAS_SYS_CAST.
10512         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
10513         (getdomainname): When the system has getdomainname, call the system
10514         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
10515         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
10516         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
10517         found in libnsl. Look for the declaration also in <netdb.h>. Replace
10518         the function if its second argument is of type 'int' or if it is found
10519         in libnsl.
10520         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
10521         <sys/systeminfo.h> and sysinfo().
10522         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
10523         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10524         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
10525         HAVE_GETDOMAINNAME.
10526         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
10527         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
10528         * doc/glibc-functions/getdomainname.texi: Document the problems with
10529         the getdomainname declaration.
10530
10531 2010-11-28  Bruno Haible  <bruno@clisp.org>
10532
10533         sys_socket: Ensure ss_family field on AIX.
10534         * lib/sys_socket.in.h (ss_family): New macro definition.
10535         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
10536         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
10537         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10538         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
10539         * modules/sys_socket (Makefile.am): Substitute
10540         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
10541         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
10542
10543 2010-11-27  Bruno Haible  <bruno@clisp.org>
10544
10545         readline: Improve configure output.
10546         * m4/readline.m4 (gl_FUNC_READLINE): Make the
10547         "checking for readline..." result understandable.
10548
10549 2010-11-27  Bruno Haible  <bruno@clisp.org>
10550
10551         *printf-posix: Detect a bug on Solaris 10/x86.
10552         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
10553         for floating-point output.
10554         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
10555         directive.
10556         * tests/test-snprintf-posix.h (test_function): Likewise.
10557         * tests/test-sprintf-posix.h (test_function): Likewise.
10558         * tests/test-vasprintf-posix.c (test_function): Likewise.
10559         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
10560         * doc/posix-functions/printf.texi: Likewise.
10561         * doc/posix-functions/snprintf.texi: Likewise.
10562         * doc/posix-functions/sprintf.texi: Likewise.
10563         * doc/posix-functions/vfprintf.texi: Likewise.
10564         * doc/posix-functions/vprintf.texi: Likewise.
10565         * doc/posix-functions/vsnprintf.texi: Likewise.
10566         * doc/posix-functions/vsprintf.texi: Likewise.
10567         * doc/glibc-functions/obstack_printf.texi: Likewise.
10568         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10569
10570 2010-11-27  Bruno Haible  <bruno@clisp.org>
10571
10572         Fix link error when module libunistring-optional is in use.
10573         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
10574         * modules/striconveha-tests (Makefile.am): Likewise.
10575
10576 2010-11-27  Bruno Haible  <bruno@clisp.org>
10577
10578         regex: Mention link dependencies.
10579         * modules/regex (Link): New section.
10580         * modules/rpmatch (Link): Likewise.
10581         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
10582
10583 2010-11-27  Bruno Haible  <bruno@clisp.org>
10584
10585         ftoastr: Fix compilation error on Solaris.
10586         * lib/ftoastr.c: Include <config.h>.
10587
10588 2010-11-27  Bruno Haible  <bruno@clisp.org>
10589
10590         getloadavg: Update documentation.
10591         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
10592
10593 2010-11-27  Bruno Haible  <bruno@clisp.org>
10594
10595         sys_socket: Fix test whether the functions are declared.
10596         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
10597         not <sys/select.h>.
10598
10599 2010-11-27  Bruno Haible  <bruno@clisp.org>
10600
10601         getpass: Make sure to get system declaration on some platforms.
10602         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
10603         gl_USE_SYSTEM_EXTENSIONS.
10604         * modules/getpass (Depends-on): Add extensions.
10605
10606 2010-11-26  Bruno Haible  <bruno@clisp.org>
10607
10608         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
10609         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
10610         'iconv' module is present.
10611         (ICONV_CONST): New macro.
10612         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
10613         ICONV_CONST.
10614         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
10615         set ICONV_CONST.
10616         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
10617         here.
10618         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
10619         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
10620         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
10621         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
10622         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
10623         present.
10624
10625 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
10626
10627         ftoastr: comment fix
10628         * lib/ftoastr.c: "little" -> "little or no" in comment
10629
10630 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
10631
10632         stdint: port to GCC 4.3 + OSX + Octave
10633         On this platform, stdint.h is buggy and defines int64_t to long
10634         long int.  The replacement defined it to long int, causing
10635         problems with C++ style name mangling.  Instead, trust the system
10636         definition if INT64_MAX is defined, and likewise for the unsigned
10637         variant.   Problem reported by Jarno Rajahalme in
10638         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
10639         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
10640         and don't mess with int64_t and INT64_MAX in this case.
10641         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
10642
10643 2010-11-24  Bruno Haible  <bruno@clisp.org>
10644
10645         doc: Corrections regarding MacOS X 10.4 and 10.5.
10646         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
10647         MacOS X.
10648         Reported by Simon Josefsson.
10649
10650 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
10651
10652         Uninstall ".bin" files installed by relocwrapper.
10653         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
10654         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
10655         unless it is already there.
10656
10657 2010-11-21  Bruno Haible  <bruno@clisp.org>
10658
10659         Update for NetBSD 5.0.
10660         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
10661         NetBSD; the test fails on NetBSD 5.0.
10662         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
10663         about NetBSD.
10664
10665 2010-11-21  Bruno Haible  <bruno@clisp.org>
10666
10667         Update for HP-UX 11.23 and HP-UX 11.31.
10668         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
10669         HP-UX.
10670
10671 2010-11-21  Bruno Haible  <bruno@clisp.org>
10672
10673         Update for MacOS X 10.5.
10674         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
10675         MacOS X; the test fails on MacOS X 10.5.8.
10676         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
10677         about MacOS X.
10678
10679 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
10680
10681         bootstrap: add bootstrap_sync option.
10682         See discussion at
10683         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
10684         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
10685         * build-aux/bootstrap: Accept --bootstrap-sync to update
10686         bootstrap if it is not identical to the local gnulib's
10687         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
10688         enable this by default.  Accept --no-bootstrap-sync to disable
10689         it.
10690
10691 2010-11-20  Bruno Haible  <bruno@clisp.org>
10692
10693         Ensure that <features.h> is included before __GLIBC__ is tested.
10694         * lib/printf-parse.h: Include <features.h>.
10695         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
10696         Reported by Mike Frysinger <vapier@gentoo.org>.
10697
10698         Ensure that <features.h> is included before __GLIBC__ is tested.
10699         * lib/wchar.in.h: Include <features.h>.
10700         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
10701         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
10702         Reported by Mike Frysinger <vapier@gentoo.org>.
10703
10704         Ensure that <features.h> is included before __GLIBC__ is tested.
10705         * lib/arpa_inet.in.h: Include <features.h>.
10706         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
10707         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
10708         Reported by Mike Frysinger <vapier@gentoo.org>.
10709
10710         Ensure that <features.h> is included before __GLIBC__ is tested.
10711         * build-aux/link-warning.h: Include <features.h>.
10712         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
10713         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
10714         Reported by Mike Frysinger <vapier@gentoo.org>.
10715
10716         Ensure that <features.h> is included before __GLIBC__ is tested.
10717         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
10718         Reported by Mike Frysinger <vapier@gentoo.org>.
10719
10720 2010-11-20  Bruno Haible  <bruno@clisp.org>
10721
10722         memmem: Fix autoconf test.
10723         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
10724
10725 2010-11-20  Bruno Haible  <bruno@clisp.org>
10726
10727         Port to uClibc.
10728         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
10729         * lib/fcntl.in.h: Likewise.
10730         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
10731         * lib/mbrtowc.c (mbrtowc): Likewise.
10732         * lib/relocatable.c (find_shared_library_fullname): Likewise.
10733         * lib/strerror_r.c: Likewise.
10734         * lib/unistr/u8-strnlen.c: Likewise.
10735         * lib/vasnprintf.c (decimal_point_char): Likewise.
10736         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
10737         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
10738         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10739         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
10740         * tests/test-sigaction.c (handler, main): Likewise.
10741         * lib/freading.h: Treat uClibc like a non-glibc platform.
10742         * lib/freading.c: Likewise.
10743         * lib/gettext.h: Likewise.
10744         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
10745         Likewise.
10746         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
10747         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10748         * lib/propername.c (proper_name_utf8): Likewise.
10749         * lib/spawn.in.h: Likewise.
10750         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
10751         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
10752         mem_cd_iconveh_internal): Likewise.
10753         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
10754         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
10755         strstr, strcasestr): Likewise.
10756         * lib/unicodeio.c (unicode_to_mb): Likewise.
10757         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
10758         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
10759         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
10760         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
10761         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
10762         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
10763         * lib/unistr/u8-stpncpy.c: Likewise.
10764         * lib/vasnprintf.c (VASNPRINTF): Likewise.
10765         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
10766         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10767         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10768         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
10769         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
10770         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
10771         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
10772         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10773         Likewise.
10774         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10775         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10776         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
10777         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10778         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10779         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10780         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10781         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
10782         * tests/test-getopt.h (OPTIND_MIN): Likewise.
10783         * tests/test-striconveha.c (main): Likewise.
10784         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10785         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
10786         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
10787         * doc/posix-functions/getline.texi: Likewise.
10788         Reported by Mike Frysinger <vapier@gentoo.org>.
10789
10790 2010-11-20  Bruno Haible  <bruno@clisp.org>
10791
10792         nproc: Fix condition.
10793         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
10794         HAVE_PTHREAD_AFFINITY_NP.
10795
10796 2010-11-20  Bruno Haible  <bruno@clisp.org>
10797
10798         Fix a comment.
10799         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
10800
10801 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
10802
10803         ftoastr: don't assume snprintf
10804         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
10805         Implement a subset of snprintf here, by using sprintf safely.
10806         * modules/ftoastr (Depends-on): Remove snprintf.
10807
10808 2010-11-19  Jim Meyering  <meyering@redhat.com>
10809
10810         test-rename.h: fix compilation failure
10811         * tests/test-rename.h (test_rename): Add omitted "}".
10812
10813 2010-11-17  Jim Meyering  <meyering@redhat.com>
10814
10815         maint.mk: add a URL discussing the no-@acronym policy
10816         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
10817
10818 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10819
10820         ftoastr: depend on snprintf, improve comments
10821         * lib/ftoastr.c: Also mention Loitsch's draft.
10822         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
10823         needed in the current implementation, but it might simplify
10824         speeding up the code later.
10825         * modules/ftoastr: Depend on snprintf; this improves portability.
10826         Suggested by Bruno Haible in the same email.
10827
10828         ftoastr: port to hosts lacking strtof and strtold
10829         Problem reported by Bruno Haible in
10830         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
10831         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
10832         environment and strtold (and presumably strtof) are not available.
10833         * modules/ftoastr (Files): Add m4/c-strtod.m4.
10834         (configure.ac): Require gl_C99_STRTOLD.
10835
10836 2010-11-18  Bruno Haible  <bruno@clisp.org>
10837
10838         c-strtold: Avoid link error on AIX 7.
10839         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
10840         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
10841         (gl_C_STRTOLD): Test whether strtold_l exists.
10842         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10843
10844 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
10845
10846         intprops: new macro INT_BITS_STRLEN_BOUND
10847         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
10848         ftoastr.h.  This exposes an internal of intprops.h that was formerly
10849         not exposed.  Also, it uses a slightly tighter bound than before;
10850         though this makes no practical difference, we might as well be as
10851         tight as we easily can.
10852
10853         ftoastr: new module, for lossless conversion of floats to short strings
10854         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
10855         * modules/ftoastr: New files.
10856
10857 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
10858
10859         bootstrap: port to Solaris sed
10860         * build-aux/bootstrap (get_version): Port to Solaris sed.
10861         See Ralf Wildenhues's note in
10862         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
10863
10864 2010-11-14  Jim Meyering  <meyering@redhat.com>
10865
10866         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
10867         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
10868         and move definition closer to sole use.
10869
10870 2010-11-13  Jim Meyering  <meyering@redhat.com>
10871
10872         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
10873         Now we require at least autoconf-2.59, which means the work-around
10874         is no longer needed.
10875         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
10876         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10877         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
10878         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
10879         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
10880
10881 2010-11-13  Bruno Haible  <bruno@clisp.org>
10882
10883         rename, renameat: Avoid test failures at NFS mounted locations.
10884         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
10885         functions.
10886         (test_rename): Use assert_nonexistent.
10887         * tests/test-rename.c: Include <dirent.h>.
10888         * tests/test-renameat.c: Likewise.
10889         Reported by Gary V. Vaughan <gary@gnu.org>.
10890
10891         rename, renameat: Document Linux bug with NFS
10892         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
10893         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
10894         * doc/posix-functions/renameat.texi: Likewise.
10895         Suggested by Eric Blake.
10896
10897 2010-11-13  Bruno Haible  <bruno@clisp.org>
10898
10899         rename test: Add comments.
10900         * tests/test-rename.h (test_rename): Add structure and comments.
10901
10902 2010-11-13  Eric Blake  <eblake@redhat.com>
10903
10904         maintainer-makefile: cover a few more files
10905         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
10906         scripts generated within C files, for libvirt.
10907
10908 2010-11-13  Bruno Haible  <bruno@clisp.org>
10909
10910         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
10911         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
10912         character, return the number of bytes that belong together, not always
10913         1.
10914         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
10915         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
10916         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
10917         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
10918         number of bytes of an invalid character.
10919         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
10920         (main): Invoke it.
10921         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
10922         results.
10923         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
10924         malformed byte sequences.
10925         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
10926         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
10927         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
10928         Reported by Ben Pfaff and Paolo Bonzini.
10929
10930 2010-11-13  Bruno Haible  <bruno@clisp.org>
10931
10932         openat: Work around glibc bug with fchownat() and empty file names.
10933         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
10934         (gl_FUNC_FCHOWNAT): Invoke it.
10935         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
10936         * doc/posix-functions/fchownat.texi: Document the glibc bug.
10937         Reported by Gary V. Vaughan <gary@gnu.org>.
10938
10939 2010-11-13  Bruno Haible  <bruno@clisp.org>
10940
10941         openat: Ensure autoconf macro ordering.
10942         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
10943         gl_USE_SYSTEM_EXTENSIONS.
10944         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
10945
10946 2010-11-13  Bruno Haible  <bruno@clisp.org>
10947
10948         Update comments.
10949         * lib/unistr/u8-check.c: Update file name in comments.
10950         * lib/unistr/u8-mblen.c: Likewise.
10951         * lib/unistr/u8-prev.c: Likewise.
10952         * lib/unistr/u8-strmblen.c: Likewise.
10953         * lib/unistr/u8-strmbtouc.c: Likewise.
10954
10955 2010-11-13  Jim Meyering  <meyering@redhat.com>
10956
10957         tests: avoid test failure on Solaris 10 due to lack of PATH export
10958         * tests/test-update-copyright.sh: Don't forget to export PATH.
10959
10960         init.sh: ensure that IFS is defined, just in case...
10961         * tests/init.sh (setup_): Ensure that IFS is defined,
10962         so that saving and restoring it works as expected.  This
10963         appears to be useful at least for an old version of dash
10964         from a long time ago (RH 6).  See here for details:
10965         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
10966
10967         maint.mk: tighten "test a == b" check
10968         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
10969         test to files that contain something like #!/bin/sh.
10970         Without this, coreutils would get two false positives in
10971         the comments of C source files.
10972
10973 2010-11-12  Eric Blake  <eblake@redhat.com>
10974
10975         bootstrap: fix typo in previous attempt
10976         * build-aux/bootstrap (buildreq): Correct the grouping.
10977         Reported by Paul Eggert.
10978
10979         maintainer-makefile: prohibit test x == x
10980         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
10981         Based on a report by Matthias Bolte.
10982
10983         bootstrap: allow FreeBSD gzip
10984         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
10985         which has no '.' and goes to stderr.
10986         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
10987         Reported by Matthias Bolte.
10988
10989         maintainer-makefile: check for i18n setup
10990         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
10991         will likely work.
10992
10993 2010-11-12  Bruno Haible  <bruno@clisp.org>
10994
10995         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
10996         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
10997         * lib/nanosleep.c (nanosleep): Likewise.
10998
10999 2010-11-11  Bruno Haible  <bruno@clisp.org>
11000
11001         fcntl-h: Fix for use of C++ on glibc systems.
11002         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11003         also on glibc systems in C++ mode.
11004         Reported by Gary V. Vaughan <gary@gnu.org>.
11005
11006 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11007
11008         mknod: avoid false failure with dash
11009         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
11010
11011 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
11012
11013         unlink: Fix "is it should" typo in diagnostic.
11014         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
11015         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
11016
11017 2010-11-11  Bruno Haible  <bruno@clisp.org>
11018
11019         Tests for module 'strerror_r-posix'.
11020         * modules/strerror_r-posix-tests: New file.
11021         * tests/test-strerror_r.c: New file.
11022         * tests/test-string-c++.cc: Check the signature of strerror_r.
11023
11024         New module 'strerror_r-posix'.
11025         * lib/string.in.h (strerror_r): New declaration.
11026         * lib/strerror_r.c: New file.
11027         * m4/strerror_r.m4: New file.
11028         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
11029         of strerror_r.
11030         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
11031         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11032         * modules/strerror_r-posix: New file.
11033         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
11034         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11035         * doc/posix-functions/strerror_r.texi: Mention the new module and the
11036         portability problems.
11037
11038 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
11039
11040         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
11041         line is also considered for output. Quoted function name in shell
11042         command, so temporary files for functions like MyClass::operator()
11043         are removed correctly without errors.
11044
11045 2010-11-09  Bruno Haible  <bruno@clisp.org>
11046
11047         * doc/posix-functions/strerror.texi: List more failing platforms.
11048
11049         * doc/posix-functions/strerror.texi: Add a comment.
11050
11051 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
11052
11053         fdopendir: fix bug on MacOS X when low on file descriptors
11054
11055         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
11056         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
11057         All callers changed.
11058         (fdopendir): Invoke save_cwd at the top level, not after using
11059         multiple dup() calls to use up file descriptors.  Then retry
11060         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
11061         less than the maximum number of open file descriptors, because
11062         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
11063         on Mac OS X 10.6.4 for tar 1.24
11064         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
11065         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
11066         and for tar 1.25
11067         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
11068
11069 2010-11-07  Bruno Haible  <bruno@clisp.org>
11070
11071         vasnprintf: Support I flag on glibc systems.
11072         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
11073         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
11074         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
11075         snprintf function.
11076         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
11077         glibc systems.
11078         * tests/test-vasnprintf-posix3.c: New file.
11079         * modules/vasnprintf-posix-tests (Files): Add it.
11080         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
11081
11082 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11083
11084         [html] Fix copy/paste bug: Use unique name for compiler warnings.
11085         * MODULES.html.sh: For compiler warnings, use name
11086         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
11087
11088 2010-11-05  Eric Blake  <eblake@redhat.com>
11089
11090         ceil, floor: avoid spurious failure with icc
11091         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
11092         [denormals-as-zero] when optimizing without -mieee-fp option.
11093         * tests/test-floorf2.c (floorf_reference): Likewise.
11094         * tests/test-ceilf1.c (dummy): New function.
11095         (main): Use it to outsmart icc's optimization.
11096         * tests/test-floorf1.c (dummy, main): Likewise.
11097
11098         tests: require working signbit
11099         * modules/ceilf-tests (Depends-on): Add signbit.
11100         * modules/ceill-tests (Depends-on): Likewise.
11101         * modules/floorf-tests (Depends-on): Likewise.
11102         * modules/floorl-tests (Depends-on): Likewise.
11103         * modules/round-tests (Depends-on): Likewise.
11104         * modules/roundf-tests (Depends-on): Likewise.
11105         * modules/roundl-tests (Depends-on): Likewise.
11106         * modules/trunc-tests (Depends-on): Likewise.
11107         * modules/truncf-tests (Depends-on): Likewise.
11108         * modules/truncl-tests (Depends-on): Likewise.
11109
11110         strtod: work around icc bug
11111         * lib/strtod.c (minus_zero): Define to working value.
11112         (strtod): Use it to avoid icc bug.
11113
11114         copysign: enhance tests
11115         * modules/copysign-tests (Files): Add minus-zero.h.
11116         * tests/test-copysign.c (main): Also test zeros.
11117
11118 2010-11-04  Eric Blake  <eblake@redhat.com>
11119
11120         ceil, floor, round, trunc: enhance tests of -0
11121         * tests/test-ceilf1.c (main): Ensure correct sign of result.
11122         * tests/test-ceill.c (main): Likewise.
11123         * tests/test-floorf1.c (main): Likewise.
11124         * tests/test-floorl.c (main): Likewise.
11125         * tests/test-round1.c (main): Likewise.
11126         * tests/test-roundf1.c (main): Likewise.
11127         * tests/test-roundl.c (main): Likewise.
11128         * tests/test-trunc1.c (main): Likewise.
11129         * tests/test-truncf1.c (main): Likewise.
11130         * tests/test-truncl.c (main): Likewise.
11131
11132 2010-11-04  Eric Blake  <eblake@redhat.com>
11133
11134         frexp, tests: work around ICC bug with -zero
11135         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
11136         works with more compilers.
11137         * tests/minus-zero.h: New file.
11138         * modules/ceilf-tests (Files): Include it.
11139         * modules/ceill-tests (Files): Likewise.
11140         * modules/floorf-tests (Files): Likewise.
11141         * modules/floorl-tests (Files): Likewise.
11142         * modules/frexp-nolibm-tests (Files): Likewise.
11143         * modules/frexp-tests (Files): Likewise.
11144         * modules/frexpl-nolibm-tests (Files): Likewise.
11145         * modules/frexpl-tests (Files): Likewise.
11146         * modules/isnan-tests (Files): Likewise.
11147         * modules/isnand-nolibm-tests (Files): Likewise.
11148         * modules/isnand-tests (Files): Likewise.
11149         * modules/isnanf-nolibm-tests (Files): Likewise.
11150         * modules/isnanf-tests (Files): Likewise.
11151         * modules/isnanl-nolibm-tests (Files): Likewise.
11152         * modules/isnanl-tests (Files): Likewise.
11153         * modules/round-tests (Files): Likewise.
11154         * modules/roundf-tests (Files): Likewise.
11155         * modules/roundl-tests (Files): Likewise.
11156         * modules/ldexpl-tests (Files): Likewise.
11157         * modules/signbit-tests (Files): Likewise.
11158         * modules/snprintf-posix-tests (Files): Likewise.
11159         * modules/sprintf-posix-tests (Files): Likewise.
11160         * modules/strtod-tests (Files): Likewise.
11161         * modules/trunc-tests (Files): Likewise.
11162         * modules/truncf-tests (Files): Likewise.
11163         * modules/truncl-tests (Files): Likewise.
11164         * modules/vsnprintf-posix-tests (Files): Likewise.
11165         * modules/vsprintf-posix-tests (Files): Likewise.
11166         * modules/vasnprintf-posix-tests (Files): Likewise.
11167         * modules/vasprintf-posix-tests (Files): Likewise.
11168         * tests/test-ceilf1.c (main): Use it.
11169         * tests/test-ceill.c (main): Likewise.
11170         * tests/test-floorf1.c (main): Likewise.
11171         * tests/test-floorl.c (main): Likewise.
11172         * tests/test-frexp.c (main): Likewise.
11173         * tests/test-frexpl.c (main): Likewise.
11174         * tests/test-isnan.c (main): Likewise.
11175         * tests/test-isnand.h (main): Likewise.
11176         * tests/test-isnanf.h (main): Likewise.
11177         * tests/test-isnanl.h (main): Likewise.
11178         * tests/test-ldexpl.c (main): Likewise.
11179         * tests/test-round.c (main): Likewise.
11180         * tests/test-roundf.c (main): Likewise.
11181         * tests/test-roundl.c (main): Likewise.
11182         * tests/test-signbit.c (test_signbitf, test_signbitd)
11183         (test_signbitl): Likewise.
11184         * tests/test-snprintf-posix.h (test_function): Likewise.
11185         * tests/test-sprintf-posix.h (test_function): Likewise.
11186         * tests/test-strtod.c (main): Likewise.
11187         * tests/test-trunc1.c (main): Likewise.
11188         * tests/test-truncf1.c (main): Likewise.
11189         * tests/test-truncl.c (main): Likewise.
11190
11191         isnanl: work around icc bug
11192         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
11193
11194 2010-11-03  Eric Blake  <eblake@redhat.com>
11195
11196         tests: fix compiler warnings
11197         * tests/test-getopt.h (test_getopt): Fix condition.
11198         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11199         * tests/test-pipe2.c (main): Likewise.
11200         * tests/test-quotearg-simple.c (main): Avoid icc warning.
11201
11202         utimens: fix broken m4 test
11203         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
11204
11205 2010-10-28  Bruno Haible  <bruno@clisp.org>
11206
11207         posix_spawn*, getdtablesize: Relax license.
11208         * modules/posix_spawn (License): Change to LGPLv2+.
11209         * modules/posix_spawnp (License): Likewise.
11210         * modules/posix_spawn-internal (License): Likewise.
11211         * modules/posix_spawnattr_init (License): Likewise.
11212         * modules/posix_spawnattr_getflags (License): Likewise.
11213         * modules/posix_spawnattr_setflags (License): Likewise.
11214         * modules/posix_spawnattr_getpgroup (License): Likewise.
11215         * modules/posix_spawnattr_setpgroup (License): Likewise.
11216         * modules/posix_spawnattr_getschedparam (License): Likewise.
11217         * modules/posix_spawnattr_setschedparam (License): Likewise.
11218         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
11219         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
11220         * modules/posix_spawnattr_getsigdefault (License): Likewise.
11221         * modules/posix_spawnattr_setsigdefault (License): Likewise.
11222         * modules/posix_spawnattr_getsigmask (License): Likewise.
11223         * modules/posix_spawnattr_setsigmask (License): Likewise.
11224         * modules/posix_spawnattr_destroy (License): Likewise.
11225         * modules/posix_spawn_file_actions_init (License): Likewise.
11226         * modules/posix_spawn_file_actions_addclose (License): Likewise.
11227         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
11228         * modules/posix_spawn_file_actions_addopen (License): Likewise.
11229         * modules/posix_spawn_file_actions_destroy (License): Likewise.
11230         * modules/getdtablesize (License): Likewise.
11231         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
11232
11233 2010-10-26  Bruno Haible  <bruno@clisp.org>
11234
11235         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
11236         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
11237         Cygwin and mingw.
11238         Suggested by Eric Blake.
11239
11240 2010-10-26  Bruno Haible  <bruno@clisp.org>
11241
11242         stdio: Work around compilation error due to renameat() on Solaris 10.
11243         * lib/stdio.in.h: Include <unistd.h> on Solaris.
11244         * lib/renameat.c: Don't include <unistd.h> here.
11245         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
11246         Reported by Paul Eggert and Eric Blake.
11247
11248 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
11249
11250         renameat: port to Solaris 10, which declares renameat in unistd.h
11251
11252         * lib/renameat.c: Include unistd.h before stdio.h, because
11253         Solaris 10 declares renameat in unistd.h.  Problem encountered
11254         when building GNU tar 1.24 on Solaris 10.
11255
11256 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11257
11258         fdopendir: fix C89 compilation
11259         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
11260         compilers.
11261
11262 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
11263
11264         inttostr: simplify by removing unnecessary redundancy
11265         * lib/anytostr.c: Don't include verify.h.
11266         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
11267         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
11268         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
11269         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
11270         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
11271         Likewise.
11272         * modules/inttostr (Depends-on): Remove 'verify'.
11273
11274 2010-10-23  Bruno Haible  <bruno@clisp.org>
11275
11276         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
11277         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
11278         Reported by Eric Blake.
11279
11280 2010-10-23  Bruno Haible  <bruno@clisp.org>
11281
11282         Tests: Fix LOCALE_JA on MirBSD 10.
11283         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
11284         to an UTF-8 locale.
11285         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
11286         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11287         Reported by Eric Blake.
11288
11289 2010-10-21  Bruno Haible  <bruno@clisp.org>
11290
11291         nl_langinfo test: Avoid test failure on NetBSD 5.
11292         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
11293         Reported by Eric Blake.
11294
11295 2010-10-21  Eric Blake  <eblake@redhat.com>
11296
11297         c-stack: work around libsigsegv 2.8 bug
11298         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
11299         overflow on at least PowerPC64.
11300
11301 2010-10-17  Bruno Haible  <bruno@clisp.org>
11302
11303         userspec: Drop redundant file.
11304         * modules/userspec (Files): Remove lib/inttostr.h.
11305
11306 2010-10-17  Bruno Haible  <bruno@clisp.org>
11307
11308         nl_langinfo tests: Silence some warnings.
11309         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
11310         Reported by Jim Meyering.
11311
11312 2010-10-17  Bruno Haible  <bruno@clisp.org>
11313
11314         Make use of GCC's attribute __alloc_size__.
11315         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
11316         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
11317         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
11318         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
11319         __alloc_size__.
11320         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
11321         Suggested by Jim Meyering.
11322
11323 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
11324
11325         bootstrap: anchor .gitignore entries.
11326         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
11327         with...
11328         (insert_vc_ignore): ... this new function, which prepends `/' to
11329         all .gitignore entries before passing them to
11330         insert_sorted_if_absent.
11331
11332 2010-10-16  Bruno Haible  <bruno@clisp.org>
11333
11334         nextafter: Fix configure check.
11335         * modules/nextafter (configure.ac): Correct expected prototype.
11336
11337 2010-10-16  Bruno Haible  <bruno@clisp.org>
11338
11339         termios: Update documentation.
11340         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
11341
11342 2010-10-16  Bruno Haible  <bruno@clisp.org>
11343
11344         tests: Make them compile with TinyCC.
11345         * tests/test-strstr.c (main): Remove parentheses around array
11346         initializer.
11347
11348 2010-10-15  Eric Blake  <eblake@redhat.com>
11349
11350         ignore-value: make header idempotent
11351         * lib/ignore-value.h: Add double-inclusion guards.
11352         Reported by Stefan Berger.
11353
11354 2010-10-15  Jim Meyering  <meyering@redhat.com>
11355
11356         GNUmakefile: handle "stable" target, not "major"
11357         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
11358         lists in maint.mk and announce-gen.  Without this, "make stable"
11359         would fail to ensure that $(VERSION) is up to date.
11360
11361 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
11362
11363         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
11364         & co.
11365
11366 2010-10-14  Bruno Haible  <bruno@clisp.org>
11367
11368         vasnprintf: Don't set errno to 0.
11369         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
11370         block that sets it to 0.
11371         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
11372
11373 2010-10-14  Bruno Haible  <bruno@clisp.org>
11374
11375         socketlib: Fix.
11376         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
11377         gl_PREREQ_SYS_H_WINSOCK2.
11378         Reported by Ian Beckwith <ianb@erislabs.net>.
11379
11380 2010-10-13  Jim Meyering  <meyering@redhat.com>
11381
11382         test-select-stdin.c: avoid warn_unused_result warnings
11383         * tests/test-select-stdin.c: Include "macros.h".
11384         ASSERT that read and fflush succeed.
11385
11386 2010-10-13  Jim Meyering  <meyering@redhat.com>
11387
11388         git-version-gen: do require git-VC'd files in cwd
11389         * build-aux/git-version-gen: Reject a git version string
11390         if there are no commits associated with the current directory.
11391         This avoids an unlikely false-positive (unrelated dir whose parent
11392         repository also contains a tag matching v*), as pointed out
11393         by Giuseppe Scrivano in
11394         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
11395
11396 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11397
11398         argv-iter: omit nonconforming declaration
11399         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
11400         enum arg_iter_err declaration, which doesn't conform to C99.
11401         Solaris 10 cc warns about this.
11402
11403 2010-10-13  Eric Blake  <eblake@redhat.com>
11404
11405         termios: fix compilation on mingw
11406         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
11407         (gl_TERMIOS_H): Adjust it on mingw.
11408         * modules/termios (Makefile.am): Substitute new key.
11409         * lib/termios.in.h (includes): Make include_next conditional.
11410         * doc/posix-headers/termios.texi (termios.h): Update
11411         documentation.
11412         Reported by Daniel P. Berrange.
11413
11414 2010-10-13  Jim Meyering  <meyering@redhat.com>
11415
11416         git-version-gen: don't require that .git/ be in the current dir
11417         * build-aux/git-version-gen: Adjust this script so that it works
11418         when run from any working directory beneath the top-level .git/-
11419         containing directory.  Inspired by a patch from Giuseppe Scrivano,
11420         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
11421
11422         test-select: avoid warn_unused_result warnings
11423         * tests/test-select.c: Include "macros.h".
11424         ASSERT that each call to read, write, and pipe succeeds.
11425         While not technically required, also check each "close".
11426         * modules/select-tests (Files): Add tests/macros.h.
11427
11428         test-symlinkat: remove declaration of unused local
11429         * tests/test-symlinkat.c (main): Remove unused local, "buf".
11430
11431         test-inttostr: avoid shadowing warnings
11432         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
11433         and use malloc rather than the stack for the same reason as
11434         mentioned in the comment justifying the other allocation.
11435
11436 2010-10-11  Bruno Haible  <bruno@clisp.org>
11437
11438         stdlib: Allow multiple gnulib generated replacements to coexist.
11439         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
11440         Reported by Sam Steingold <sds@gnu.org>.
11441
11442 2010-10-11  Jim Meyering  <meyering@redhat.com>
11443
11444         fix a documentation typo
11445         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
11446
11447 2010-10-11  Eric Blake  <eblake@redhat.com>
11448
11449         futimens: work around Solaris 11 bug
11450         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
11451         * tests/test-futimens.h (test_futimens): Enhance, rather than
11452         weaken test.
11453         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11454
11455 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11456
11457         Indentation.
11458         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
11459         higher-level operators more to the left.
11460
11461 2010-10-11  Jim Meyering  <meyering@redhat.com>
11462
11463         test-futimens: avoid unwarranted test failure on Solaris 5.11
11464         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
11465         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
11466         because it tries to dereference the NULL name argument.
11467
11468 2010-10-11  Bruno Haible  <bruno@clisp.org>
11469
11470         Indentation.
11471         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
11472         indentation.
11473
11474 2010-10-11  Jim Meyering  <meyering@redhat.com>
11475
11476         spawn.in.h: make indentation consistent with parentheses
11477         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
11478         Make indentation consistent with parentheses.
11479
11480 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
11481
11482         Fix mismatched parens in previous commit
11483         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
11484         parens.
11485
11486 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
11487
11488         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
11489
11490         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
11491         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
11492         * lib/malloca.c: Include "verify.h".
11493         (verify1): Remove, replacing with a verify call.
11494         * lib/relocwrapper.c (verify1): Likewise.
11495         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
11496         Likewise.
11497         * modules/malloca (Depends-on): Add 'verify'.
11498         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
11499         * modules/vasnprintf (Depends-on): Add 'verify'.
11500         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
11501         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11502         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11503         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11504         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11505         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11506         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11507
11508         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
11509
11510         Formerly the style was sometimes 2*X - 1, because the C standard
11511         was wrongly thought to disallow ?: in integral constant expressions.
11512         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
11513         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
11514         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11515         * lib/stdint.in.h (_verify_intmax_size): Likewise.
11516         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
11517         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
11518         verify that time_t cannot be floating.
11519
11520 2010-10-08  Eric Blake  <eblake@redhat.com>
11521
11522         time: enforce recent POSIX ruling that time_t is integral
11523         * lib/time.in.h (__time_t_must_be_integral): Detect any
11524         problematic systems, allowing the rest of gnulib to assume POSIX.
11525
11526 2010-10-08  Jim Meyering  <meyering@redhat.com>
11527
11528         fdopendir: fix a bug on systems lacking openat and /proc support
11529         OpenBSD 4.7 is one such system.  The most noticeable effect was
11530         failure of any application making nontrivial use of fts: rm, du,
11531         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
11532           ./rm: traversal failed: `a': Bad file descriptor
11533         Debugging that, you see that even though FD 6 was closed just
11534         prior to the opendir call in fd_clone_opendir, its resulting
11535         dir->dd_fd was 8, rather than the expected value of 6:
11536
11537         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
11538         93                close (fd);
11539         (gdb) n
11540         94                dir = fd_clone_opendir (dupfd);
11541         (gdb) n
11542         95                saved_errno = errno;
11543         (gdb) p dir->dd_fd
11544         $11 = 8
11545
11546         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
11547         The problem is that on OpenBSD, fd_clone_opendir has to resort
11548         to using the old-style save/restore CWD mechanism, due to its
11549         lack of openat/proc support, and *that* would steal the FD (6)
11550         that opendir was supposed to use.
11551
11552         The fix is to squirrel away the desired FD so that save_cwd uses a
11553         different one, and then free the dest FD right before calling opendir.
11554         That guarantees opendir will use the required file descriptor.
11555
11556         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
11557
11558 2010-10-08  Bruno Haible  <bruno@clisp.org>
11559
11560         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
11561         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
11562
11563 2010-10-08  Bruno Haible  <bruno@clisp.org>
11564
11565         nanosleep: Make replacement POSIX compliant.
11566         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
11567         is out of range.
11568         Reported by Jim Meyering.
11569
11570 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
11571
11572         bootstrap: add hook for altering gnulib.mk, for Bison
11573         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
11574         the Bison bootstrapping process can rewrite file names and variables
11575         in this file before later parts of 'bootstrap' use the file.
11576         Bison wants to include lib/gnulib.mk from the top-level makefile,
11577         so it needs the file names in this file to be relative to the top
11578         level, not relative to lib; plus it needs variable names to be
11579         rewritten.
11580         (slurp): Use the new function.
11581
11582         bootstrap: reformat for readability
11583         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
11584
11585 2010-10-08  Eric Blake  <eblake@redhat.com>
11586
11587         docs: update cygwin progress
11588         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
11589         1.7.7.
11590         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
11591         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
11592         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
11593         * doc/posix-functions/carg.texi (carg): Likewise.
11594         * doc/posix-functions/cargf.texi (cargf): Likewise.
11595         * doc/posix-functions/casin.texi (casin): Likewise.
11596         * doc/posix-functions/casinf.texi (casinf): Likewise.
11597         * doc/posix-functions/casinh.texi (casinh): Likewise.
11598         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
11599         * doc/posix-functions/catan.texi (catan): Likewise.
11600         * doc/posix-functions/catanf.texi (catanf): Likewise.
11601         * doc/posix-functions/catanh.texi (catanh): Likewise.
11602         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
11603         * doc/posix-functions/ccos.texi (ccos): Likewise.
11604         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
11605         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
11606         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
11607         * doc/posix-functions/cexp.texi (cexp): Likewise.
11608         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
11609         * doc/posix-functions/cimag.texi (cimag): Likewise.
11610         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
11611         * doc/posix-functions/clog.texi (clog): Likewise.
11612         * doc/posix-functions/clogf.texi (clogf): Likewise.
11613         * doc/posix-functions/conj.texi (conj): Likewise.
11614         * doc/posix-functions/conjf.texi (conjf): Likewise.
11615         * doc/posix-functions/cpow.texi (cpow): Likewise.
11616         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
11617         * doc/posix-functions/cproj.texi (cproj): Likewise.
11618         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
11619         * doc/posix-functions/creal.texi (creal): Likewise.
11620         * doc/posix-functions/crealf.texi (crealf): Likewise.
11621         * doc/posix-functions/csin.texi (csin): Likewise.
11622         * doc/posix-functions/csinf.texi (csinf): Likewise.
11623         * doc/posix-functions/csinh.texi (csinh): Likewise.
11624         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
11625         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
11626         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
11627         * doc/posix-functions/ctan.texi (ctan): Likewise.
11628         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
11629         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
11630         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
11631         * doc/posix-headers/complex.texi (complex.h): Likewise.
11632
11633 2010-10-07  Jim Meyering  <meyering@redhat.com>
11634
11635         parse-datetime: avoid compilation failure on OpenBSD 4.7
11636         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
11637         This works around a compilation failure on OpenBSD 4.7:
11638         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
11639
11640 2010-10-07  Eric Blake  <eblake@redhat.com>
11641
11642         docs: update cygwin progress
11643         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
11644         1.7.6.
11645         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
11646         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
11647         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
11648         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
11649         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
11650         Likewise.
11651         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
11652         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
11653         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
11654         Likewise.
11655         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
11656         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
11657         Likewise.
11658         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
11659         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
11660         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
11661         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
11662         Likewise.
11663         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
11664         Likewise.
11665         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
11666
11667         docs: update parse-datetime history
11668         * doc/parse-datetime.texi (Authors of parse_datetime): Better
11669         documentation of this function's history and alternatives.
11670
11671         cygwin: use more robust version check
11672         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
11673         exclude an eventual cygwin 1.9.1.
11674         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11675         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
11676         (gl_FUNC_STRCASESTR): Likewise.
11677         Reported by Bruno Haible.
11678
11679 2010-10-06  Bruno Haible  <bruno@clisp.org>
11680
11681         string, sys_select: Avoid #including large headers unless necessary.
11682         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
11683         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
11684         OSF/1, BeOS, Haiku.
11685         Reported by Jim Meyering.
11686
11687 2010-10-05  Eric Blake  <eblake@redhat.com>
11688
11689         memmem, strstr, strcasestr: fix bug with long periodic needle
11690         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
11691         periodic needle having false positive.
11692         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
11693         and cygwin 1.7.7.
11694         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
11695         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
11696         (gl_FUNC_STRCASESTR): Likewise.
11697         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11698         * tests/test-memmem.c (main): Expose the bug.
11699         * tests/test-strcasestr.c (main): Likewise.
11700         * tests/test-strstr.c (main): Likewise.
11701         * tests/test-c-strcasestr.c (main): Likewise.
11702         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
11703         * doc/posix-functions/strstr.texi (strstr): Likewise.
11704         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
11705         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
11706
11707 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11708
11709         parse-datetime: do some more renaming
11710         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
11711         parse_datetime, not get_date.  Mention the renaming.
11712         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
11713         in comments.
11714         * m4/bison.m4: Likewise.
11715
11716 2010-10-05  Eric Blake  <eblake@redhat.com>
11717
11718         parse-datetime: better name than get_date
11719         * NEWS: Reword the deprecation notice.
11720         * modules/get_date: Rename to modules/parse-datetime.
11721         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
11722         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
11723         * lib/get_date.y: Rename to lib/parse-datetime.y.
11724         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
11725         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
11726         * doc/getdate.texi: Provide fallback wrapper.
11727         * lib/getdate.h: Move guts, and wrap...
11728         * lib/parse-datetime.h: ...new file.
11729         * lib/parse-datetime.y (get_date): Rename...
11730         (parse_datetime): ...to this.
11731         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
11732         (gl_PARSE_DATETIME): ...to this.
11733         * doc/posix-functions/getdate.texi (get_date): Provide fallback
11734         documentation.
11735         * modules/getdate (Files): Provide fallback docs and header.
11736         (Notice, Depends-on): Update references.
11737         * tests/test-parse-datetime.c: Likewise.
11738         * DEPENDENCIES: Likewise.
11739         * MODULES.html.sh (Date and time <time.h>): Likewise.
11740         * doc/parse-datetime.texi (Date input formats)
11741         (Authors of parse_datetime): Likewise.
11742         * modules/parse-datetime (Files, configure.ac, Makefile.am)
11743         (Include): Likewise.
11744         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
11745         * gnulib-tool: Likewise.
11746         * m4/bison.m4 (gl_BISON): Likewise.
11747         Suggested by Bruno Haible.
11748
11749 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11750
11751         more ports to Solaris tr, which needs [] around ranges
11752         * gnulib-tool: Solaris tr needs [] around ranges.
11753         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11754         * tests/test-pipe-filter-gi1.c (main): Likewise.
11755         * tests/test-pipe-filter-ii1.c (main): Likewise.
11756
11757 2010-10-05  Eric Blake  <eblake@redhat.com>
11758
11759         bootstrap: fix Solaris regression
11760         * build-aux/bootstrap (check_versions): Solaris tr still needs []
11761         around ranges.
11762         Reported by Pádraig Brady.
11763
11764         bootstrap: work with pkg-config
11765         * build-aux/bootstrap (check_versions): Also transliterate - in
11766         prerequisite name.
11767         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
11768         prerequisites that were already found, to avoid confusion.
11769         Reported by Justin Clift.
11770
11771         faccessat: remove unused wrappers
11772         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
11773         presence of these wrappers dragged in -lgen on Solaris.
11774         Reported by Clemens Brogi; fix suggested by Paul Eggert.
11775
11776 2010-10-05  Jim Meyering  <meyering@redhat.com>
11777
11778         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
11779         * Makefile (sc_pragma_columns): New syntax-check rule.
11780
11781 2010-10-04  Bruno Haible  <bruno@clisp.org>
11782
11783         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
11784         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
11785         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
11786         Reported by Bruce Korb and Eric Blake.
11787
11788 2010-10-04  Bruno Haible  <bruno@clisp.org>
11789
11790         threadlib: Make option --with-libpth-prefix work.
11791         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
11792         use $LIBPTH, not just -lpth.
11793
11794 2010-10-04  Bruno Haible  <bruno@clisp.org>
11795
11796         Avoid line length limitation from HP NonStop system header files.
11797         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
11798         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
11799         * lib/ctype.in.h: Likewise.
11800         * lib/dirent.in.h: Likewise.
11801         * lib/errno.in.h: Likewise.
11802         * lib/fcntl.in.h: Likewise.
11803         * lib/float.in.h: Likewise.
11804         * lib/getopt.in.h: Likewise.
11805         * lib/iconv.in.h: Likewise.
11806         * lib/inttypes.in.h: Likewise.
11807         * lib/langinfo.in.h: Likewise.
11808         * lib/locale.in.h: Likewise.
11809         * lib/math.in.h: Likewise.
11810         * lib/netdb.in.h: Likewise.
11811         * lib/netinet_in.in.h: Likewise.
11812         * lib/poll.in.h: Likewise.
11813         * lib/pthread.in.h: Likewise.
11814         * lib/pty.in.h: Likewise.
11815         * lib/sched.in.h: Likewise.
11816         * lib/se-selinux.in.h: Likewise.
11817         * lib/search.in.h: Likewise.
11818         * lib/signal.in.h: Likewise.
11819         * lib/spawn.in.h: Likewise.
11820         * lib/stdarg.in.h: Likewise.
11821         * lib/stddef.in.h: Likewise.
11822         * lib/stdint.in.h: Likewise.
11823         * lib/stdio.in.h: Likewise.
11824         * lib/stdlib.in.h: Likewise.
11825         * lib/string.in.h: Likewise.
11826         * lib/strings.in.h: Likewise.
11827         * lib/sys_file.in.h: Likewise.
11828         * lib/sys_ioctl.in.h: Likewise.
11829         * lib/sys_select.in.h: Likewise.
11830         * lib/sys_socket.in.h: Likewise.
11831         * lib/sys_stat.in.h: Likewise.
11832         * lib/sys_time.in.h: Likewise.
11833         * lib/sys_times.in.h: Likewise.
11834         * lib/sys_utsname.in.h: Likewise.
11835         * lib/sys_wait.in.h: Likewise.
11836         * lib/sysexits.in.h: Likewise.
11837         * lib/termios.in.h: Likewise.
11838         * lib/time.in.h: Likewise.
11839         * lib/unistd.in.h: Likewise.
11840         * lib/wchar.in.h: Likewise.
11841         * lib/wctype.in.h: Likewise.
11842         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
11843         * modules/ctype (Makefile.am): Likewise.
11844         * modules/dirent (Makefile.am): Likewise.
11845         * modules/errno (Makefile.am): Likewise.
11846         * modules/fcntl-h (Makefile.am): Likewise.
11847         * modules/float (Makefile.am): Likewise.
11848         * modules/getopt-posix (Makefile.am): Likewise.
11849         * modules/iconv-h (Makefile.am): Likewise.
11850         * modules/inttypes (Makefile.am): Likewise.
11851         * modules/langinfo (Makefile.am): Likewise.
11852         * modules/locale (Makefile.am): Likewise.
11853         * modules/math (Makefile.am): Likewise.
11854         * modules/netdb (Makefile.am): Likewise.
11855         * modules/netinet_in (Makefile.am): Likewise.
11856         * modules/poll-h (Makefile.am): Likewise.
11857         * modules/pthread (Makefile.am): Likewise.
11858         * modules/pty (Makefile.am): Likewise.
11859         * modules/sched (Makefile.am): Likewise.
11860         * modules/search (Makefile.am): Likewise.
11861         * modules/selinux-h (Makefile.am): Likewise.
11862         * modules/signal (Makefile.am): Likewise.
11863         * modules/spawn (Makefile.am): Likewise.
11864         * modules/stdarg (Makefile.am): Likewise.
11865         * modules/stddef (Makefile.am): Likewise.
11866         * modules/stdint (Makefile.am): Likewise.
11867         * modules/stdio (Makefile.am): Likewise.
11868         * modules/stdlib (Makefile.am): Likewise.
11869         * modules/string (Makefile.am): Likewise.
11870         * modules/strings (Makefile.am): Likewise.
11871         * modules/sys_file (Makefile.am): Likewise.
11872         * modules/sys_ioctl (Makefile.am): Likewise.
11873         * modules/sys_select (Makefile.am): Likewise.
11874         * modules/sys_socket (Makefile.am): Likewise.
11875         * modules/sys_stat (Makefile.am): Likewise.
11876         * modules/sys_time (Makefile.am): Likewise.
11877         * modules/sys_times (Makefile.am): Likewise.
11878         * modules/sys_utsname (Makefile.am): Likewise.
11879         * modules/sys_wait (Makefile.am): Likewise.
11880         * modules/sysexits (Makefile.am): Likewise.
11881         * modules/termios (Makefile.am): Likewise.
11882         * modules/time (Makefile.am): Likewise.
11883         * modules/unistd (Makefile.am): Likewise.
11884         * modules/wchar (Makefile.am): Likewise.
11885         * modules/wctype (Makefile.am): Likewise.
11886
11887 2010-10-04  Bruno Haible  <bruno@clisp.org>
11888
11889         read-file tests: Avoid a test failure on NonStop Kernel.
11890         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
11891         a regular file.
11892         Reported by Joachim Schmitz <schmitz@hp.com>.
11893
11894 2010-10-03  Bruno Haible  <bruno@clisp.org>
11895
11896         gnulib-tool: Fixes for --create-testdir with --libtool.
11897         * gnulib-tool (func_get_automake_snippet): Don't augment
11898         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
11899         an executable.
11900         (func_create_testdir): Handle module 'alloca' like func_import.
11901         Reported by Bruce Korb <bruce.korb@gmail.com>.
11902
11903 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
11904
11905         Avoid some lines longer than 80 characters.
11906         * lib/stdint.in.h: Break long comment lines.
11907         * lib/math.in.h: Likewise.
11908         (_GL_NUM_UINT_WORDS): New macro, for readability.
11909         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
11910         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
11911         * lib/stdlib.in.h: Likewise.
11912         * lib/spawn.in.h: Likewise.
11913         * lib/sys_socket.in.h: Update an URL.
11914         * lib/sys_stat.in.h: Break long line.
11915
11916 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
11917
11918         Improve pmccabe2html.
11919         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
11920         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
11921         when the sources change. Remove the line in the HTML about "Used
11922         ranges" (which implied that there might be other unused ranges),
11923         rename "Resume" to "Summary" (easier to understand for more users).
11924         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
11925         styles, and some unnecessary blank lines.
11926
11927 2010-10-03  Bruno Haible  <bruno@clisp.org>
11928             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11929
11930         acl: Add support for ACLs on NonStop Kernel.
11931         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
11932         Check whether the function aclsort() exists.
11933         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
11934         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
11935         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11936         (acl_nontrivial [HAVE_ACLSORT]: New function.
11937         (file_has_acl): Implement for NonStop Kernel.
11938         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11939         (qset_acl): Implement for NonStop Kernel.
11940         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
11941         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11942         (main): Implement for NonStop Kernel.
11943         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
11944         Kernel. Handle this flavor.
11945         * tests/test-set-mode-acl.sh: Likewise.
11946         * tests/test-copy-acl.sh: Likewise.
11947         * tests/test-copy-file.sh: Likewise.
11948
11949 2010-10-03  Bruno Haible  <bruno@clisp.org>
11950
11951         Info about ACLs on NonStop Kernel.
11952         * doc/acl-resources.txt: Add info about NonStop Kernel.
11953         References by Joachim Schmitz <schmitz@hp.com>.
11954
11955 2010-10-02  Bruno Haible  <bruno@clisp.org>
11956
11957         Define missing EDQUOT on NonStop Kernel.
11958         * lib/errno.in.h (EDQUOT): Assign a value if missing.
11959         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
11960         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
11961         missing.
11962         * doc/posix-headers/errno.texi: Mention the NSK bug.
11963         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
11964         Reported by Joachim Schmitz <schmitz@hp.com>.
11965
11966 2010-10-02  Bruno Haible  <bruno@clisp.org>
11967
11968         Update doc for POSIX:2008.
11969         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
11970         Update URL of POSIX specification.
11971
11972 2010-10-02  Bruno Haible  <bruno@clisp.org>
11973
11974         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
11975         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
11976         from gnulib, not from Automake.
11977
11978 2010-10-02  Bruno Haible  <bruno@clisp.org>
11979
11980         New module 'system-posix'.
11981         * modules/system-posix: New file.
11982         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
11983         module is present.
11984         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11985         GNULIB_SYSTEM_POSIX.
11986         * modules/stdlib (Depends-on): Remove sys_wait.
11987         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
11988         * doc/posix-functions/system.texi: Mention the new module.
11989         * doc/posix-headers/stdlib.texi: Likewise.
11990         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
11991         define test_sys_wait_macros to a no-op.
11992         Reported by Sam Steingold <sds@gnu.org>.
11993
11994 2010-09-30  Bruno Haible  <bruno@clisp.org>
11995
11996         More renaming from 'getdate' to 'get_date'.
11997         * doc/get_date.texi: Renamed from doc/getdate.texi.
11998         * modules/get_date (Files): Update.
11999         * MODULES.html.sh (Date and time <time.h>): Update.
12000         * DEPENDENCIES: Update.
12001         * gnulib-tool: Update comment.
12002         * m4/bison.m4 (gl_BISON): Likewise.
12003         * m4/get_date.m4 (gl_GET_DATE): Likewise.
12004
12005 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
12006
12007         bootstrap: support ACLOCAL_FLAGS during aclocal
12008         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
12009         can add additional -I dir for third-party .m4 files.
12010
12011 2010-09-30  Eric Blake  <eblake@redhat.com>
12012
12013         bootstrap: use glibtoolize on MacOS
12014         * build-aux/bootstrap (check_versions): Convert libtool into
12015         libtoolize.
12016         (tool search): Move libtool check earlier, and look for
12017         glibtoolize for MacOS.
12018         (gnulib_tool_options): Auto-add --libtool when appropriate.
12019         Reported by Justin Clift.
12020
12021         poll: fix typo that broke test on MacOS
12022         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
12023         Reported by Justin Clift.
12024
12025         getdate: rename to get_date
12026         Note: getdate.h is not renamed, to minimize client impact.
12027         * modules/getdate: Mark obsolete.  Move old contents...
12028         * modules/get_date: ...to new module name.
12029         * modules/getdate-tests: Move...
12030         * modules/get_date-tests: ...here.
12031         * m4/getdate.m4: Move...
12032         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
12033         * lib/getdate.y: Move...
12034         * lib/get_date.y: ...here.
12035         * tests/test-getdate.c: Move...
12036         * tests/test-get_date.c: ...here.
12037         * doc/posix-functions/getdate.texi (getdate): Update name.
12038         * NEWS: Mention the change.
12039
12040 2010-09-29  Bruno Haible  <bruno@clisp.org>
12041
12042         Separate the module 'waitpid' from the module 'sys_wait'.
12043         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
12044         present.
12045         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
12046         gl_MODULE_INDICATOR_FOR_TESTS.
12047         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
12048         * modules/sys_wait (Depends-on): Remove waitpid.
12049         (Makefile.am): Substitute GNULIB_WAITPID.
12050         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
12051         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
12052         signature only if the 'waitpid' module is present.
12053         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
12054         * NEWS: Mention the change.
12055         * modules/grantpt (Depends-on): Add waitpid.
12056         * modules/wait-process (Depends-on): Likewise.
12057
12058 2010-09-29  Bruno Haible  <bruno@clisp.org>
12059
12060         More tests for module 'sys_wait'.
12061         * modules/sys_wait-c++-tests: New file.
12062         * tests/test-sys_wait-c++.cc: New file.
12063         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
12064         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12065
12066 2010-09-29  Bruno Haible  <bruno@clisp.org>
12067
12068         New module 'waitpid'.
12069         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
12070         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
12071         Don't include <process.h>.
12072         (waitpid): Declare only, using modern idiom.
12073         * m4/waitpid.m4: New file.
12074         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
12075         * modules/waitpid: New file.
12076         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
12077         (Makefile.am): Update.
12078         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12079
12080 2010-09-28  Bruno Haible  <bruno@clisp.org>
12081
12082         poll: Assume ANSI C.
12083         * lib/poll.c (poll): Use an ANSI C declaration.
12084
12085 2010-09-28  Bruno Haible  <bruno@clisp.org>
12086
12087         poll-h: Create poll.h on all platforms.
12088         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
12089         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
12090         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
12091         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
12092         (gl_REPLACE_POLL_H): Don't set POLL_H.
12093         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
12094         * modules/poll-h (Depends-on): Add include_next.
12095         (Makefile.am): Create poll.h unconditionally. Substitute also
12096         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
12097
12098 2010-09-28  Bruno Haible  <bruno@clisp.org>
12099
12100         Tests for module 'poll-h'.
12101         * modules/poll-h-c++-tests: New file.
12102         * tests/test-poll-h-c++.cc: New file.
12103
12104         Tests for module 'poll-h'.
12105         * modules/poll-h-tests: New file.
12106         * tests/test-poll-h.c: New file.
12107
12108 2010-09-28  Bruno Haible  <bruno@clisp.org>
12109
12110         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
12111         * modules/poll-h (Depends-on): Add 'extensions'.
12112
12113 2010-09-28  Bruno Haible  <bruno@clisp.org>
12114
12115         New module 'poll-h'.
12116         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
12117         (poll): Use modern idiom.
12118         * modules/poll-h: New file.
12119         * modules/poll (Files): Remove lib/poll.in.h.
12120         (Depends-on): Add poll-h.
12121         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
12122         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
12123         * m4/poll_h.m4: New file.
12124         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
12125         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
12126         and invoke gl_REPLACE_POLL_H.
12127         * lib/poll.c: Use common idiom.
12128         * tests/test-poll.c: Likewise.
12129         * doc/posix-headers/poll.texi: Mention the poll-h module.
12130         Suggested by Eric Blake.
12131
12132 2010-09-26  Bruno Haible  <bruno@clisp.org>
12133
12134         sys_wait: Implement WSTOPSIG.
12135         * lib/sys_wait.in.h (WSTOPSIG): New macro.
12136         Reported by Simon Josefsson.
12137
12138 2010-09-26  Simon Josefsson  <simon@josefsson.org>
12139
12140         stdlib, sys_wait: Avoid compilation error on mingw.
12141         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
12142
12143 2010-09-26  Bruno Haible  <bruno@clisp.org>
12144
12145         stdlib tests: Avoid code duplication.
12146         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
12147         * modules/sys_wait-tests (Files): Likewise.
12148         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
12149         * tests/test-stdlib.c: Include test-sys_wait.h.
12150         (main): Invoke test_sys_wait_macros.
12151         * tests/test-sys_wait.c: Include test-sys_wait.h.
12152         (main): Invoke test_sys_wait_macros.
12153
12154 2010-09-25  Simon Josefsson  <simon@josefsson.org>
12155
12156         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
12157         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
12158         sure Windows sockets are working before calling getaddrinfo.
12159         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
12160         * doc/gnulib.texi (Windows sockets): Fix typo.
12161
12162 2010-09-25  Bruno Haible  <bruno@clisp.org>
12163
12164         Tests for module 'regex-quote'.
12165         * modules/regex-quote-tests: New file.
12166         * tests/test-regex-quote.c: New file.
12167
12168         New module 'regex-quote'.
12169         * lib/regex-quote.h: New file.
12170         * lib/regex-quote.c: New file.
12171         * modules/regex-quote: New file.
12172         Suggested by Reuben Thomas <rrt@sc3d.org>.
12173
12174 2010-09-24  Bruno Haible  <bruno@clisp.org>
12175
12176         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
12177         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
12178
12179 2010-09-23  Bruno Haible  <bruno@clisp.org>
12180
12181         setenv: Relax license.
12182         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
12183         Blake.
12184         Requested by Eric Blake.
12185
12186 2010-09-22  Bruno Haible  <bruno@clisp.org>
12187
12188         termios: Relax license.
12189         * modules/termios (License): Change to LGPLv2+.
12190         Requested by Eric Blake.
12191
12192 2010-09-22  Bruno Haible  <bruno@clisp.org>
12193
12194         threadlib: Allow the package to change the default to 'no'.
12195         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
12196         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
12197         Reported by Paul Eggert.
12198
12199 2010-09-22  Pádraig Brady  <P@draigbrady.com>
12200             Bruno Haible  <bruno@clisp.org>
12201
12202         Fix endless loop in mbmemcasecoll.
12203         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
12204         byte.
12205         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
12206
12207 2010-09-22  Bruno Haible  <bruno@clisp.org>
12208
12209         Tests for module 'memcoll'.
12210         * modules/memcoll-tests: New file.
12211         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
12212
12213         memcoll, xmemcoll: Clarify size vs. length.
12214         * modules/memcoll.c (memcoll0): Clarify specification.
12215         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
12216         passed to collate_error.
12217
12218 2010-09-22  Bruno Haible  <bruno@clisp.org>
12219
12220         Tests for module 'memcasecmp'.
12221         * modules/memcasecmp-tests: New file.
12222         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
12223
12224 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
12225
12226         * lib/pthread.in.h: Add split double-inclusion guard, and include
12227         system <pthread.h> if there is one.  Use @@-style as in other
12228         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
12229         pthread.h doesn't.
12230         (pthread_mutexattr_destroy, pthread_mutexattr_init):
12231         (pthread_mutexattr_settype, pthread_mutex_trylock):
12232         New static inline functions, if there's no system <pthread.h>.
12233         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
12234         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
12235         Approximate with mutexes if the system lacks spinlocks, as in
12236         MacOS.
12237         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
12238         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
12239         @@-style.  Check for spinlocks separately.
12240         (gl_PTHREAD_DEFAULTS): New macro.
12241         * modules/pthread: Redo to use a more typical style for in.h files.
12242
12243 2010-09-21  Eric Blake  <eblake@redhat.com>
12244
12245         net_if: enhance tests
12246         * tests/test-net_if.c (main): Move signature checks earlier.
12247         Print failures to stderr.
12248         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
12249         Document the bug that we do not yet fix.
12250
12251 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12252
12253         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
12254         about gnulib, not GSS.
12255
12256 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12257
12258         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
12259         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
12260         for Emacs.
12261         * build-aux/pmccabe2html: Make Makefile.am example code more
12262         cut-and-paste friendly.
12263
12264 2010-09-21  Simon Josefsson  <simon@josefsson.org>
12265
12266         * tests/test-net_if.c: New file.
12267         * modules/net_if-tests: New file.
12268
12269 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
12270
12271         pthread: add pthread_spin_destroy
12272         * lib/pthread.in.h (pthread_spin_destroy): New function.
12273
12274 2010-09-19  Bruno Haible  <bruno@clisp.org>
12275
12276         gnulib-tool: Fix --help output.
12277         * gnulib-tool (func_usage): Fix help message.
12278         Reported by Reuben Thomas <rrt@sc3d.org>.
12279
12280 2010-09-18  Jim Meyering  <meyering@redhat.com>
12281
12282         maint.mk: avoid unexpanded \n in two diagnostics
12283         * top/maint.mk (sc_prohibit_always_true_header_tests):
12284         Don't use a literal \n in a halt=... assignment.  It would not be
12285         expanded, and the two \n bytes would appear in the diagnostic output
12286         rather than the desired newline.  Use halt=$$(printf ... instead.
12287         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
12288
12289 2010-09-18  Bruno Haible  <bruno@clisp.org>
12290
12291         netinet_in: Doc tweak.
12292         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
12293         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12294
12295 2010-09-18  Jim Meyering  <meyering@redhat.com>
12296
12297         init.sh: correct an outdated comment
12298         * tests/init.sh (create_exe_shims_):  s/function/alias/
12299
12300         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
12301         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
12302         a file named "*.exe" is removed between the glob expansion and the
12303         processing of that oddly named file.
12304
12305 2010-09-17  Eric Blake  <eblake@redhat.com>
12306
12307         mirbsd: add some more support
12308         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
12309         in BSD family.
12310         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
12311         devices as OpenBSD.
12312         * m4/host-os.m4 (mirbsd): Add MirBSD.
12313
12314         tests: fix unportable assumption on sys/wait.h
12315         * tests/test-sys_wait.c (main): Relax test.
12316         * tests/test-stdlib.c (main): Likewise.
12317
12318         init.sh: accomodate directory with no .exes
12319         * tests/init.sh: Accomodate directory containing only scripts.
12320
12321         tests: avoid compiler warning
12322         * tests/test-stdlib.c (main): Use the variable.
12323
12324         fdutimens, fdutimensat: update signature, again
12325         * lib/utimens.h (gl_futimens): Delete, and move signature...
12326         (fdutimens): ...here.
12327         (fdutimensat): Rearrange signature.
12328         (lutimensat): Rename variable for clarity.
12329         * lib/fdutimensat.c (fdutimensat): Update signature.
12330         * lib/utimens.c (fdutimens): Likewise.
12331         (gl_futimens): Delete.
12332         (utimens, lutimens): Update callers.
12333         * lib/futimens.c (futimens): Likewise.
12334         * tests/test-fdutimensat.c: Likewise.
12335         * tests/test-utimens.c: Likewise.
12336         * tests/test-futimens.h: Update comment.
12337         * NEWS: Mention this.
12338         Suggested by Paul Eggert.
12339
12340 2010-09-17  Bruno Haible  <bruno@clisp.org>
12341
12342         Take over the maintenance of some older macros from Autoconf.
12343         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
12344         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
12345         GNU Autoconf.
12346         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
12347         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
12348
12349 2010-09-17  Eric Blake  <eblake@redhat.com>
12350
12351         fdutimensat: drop atflag validation
12352         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
12353         with valid fd, to close a race scenario where futimens is
12354         unsupported and FILE was replaced by a symlink.
12355         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
12356         accordingly.
12357         Suggested by Paul Eggert.
12358
12359 2010-09-16  Bruno Haible  <bruno@clisp.org>
12360
12361         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
12362         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
12363
12364 2010-09-16  Bruno Haible  <bruno@clisp.org>
12365
12366         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
12367         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
12368         login_tty exists.
12369         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12370
12371 2010-09-16  Bruno Haible  <bruno@clisp.org>
12372
12373         login_tty: Make the replacement code work on BSD systems.
12374         * lib/login_tty.c: Include <sys/ioctl.h>.
12375         (login_tty): Use ioctl TIOCSCTTY when available.
12376         * modules/login_tty (Depends-on): Add sys_ioctl.
12377         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12378
12379 2010-09-16  Bruno Haible  <bruno@clisp.org>
12380
12381         login_tty: Stricter unit test.
12382         * modules/login_tty-tests (Depends-on): Add tcgetsid.
12383         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
12384         and tcgetsid() after login_tty.
12385         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12386
12387 2010-09-16  Bruno Haible  <bruno@clisp.org>
12388
12389         New module 'tcgetsid'.
12390         * lib/tcgetsid.c: New file.
12391         * m4/tcgetsid.m4: New file.
12392         * modules/tcgetsid: New file.
12393         * modules/termios (Depends-on): Add c++defs, warn-on-use.
12394         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
12395         GNULIB_TCGETSID, HAVE_TCGETSID.
12396         * lib/termios.in.h: Include <sys/types.h>.
12397         (tcgetsid): New declaration.
12398         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
12399         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
12400         * doc/posix-functions/tcgetsid.texi: Mention the new module.
12401         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
12402
12403 2010-09-16  Bruno Haible  <bruno@clisp.org>
12404
12405         Tests for module 'termios'.
12406         * modules/termios-c++-tests: New file.
12407         * modules/termios-tests: New file.
12408         * tests/test-termios-c++.cc: New file.
12409         * tests/test-termios.c: New file.
12410
12411         New module 'termios'.
12412         * modules/termios: New file.
12413         * lib/termios.in.h: New file.
12414         * m4/termios_h.m4: New file.
12415         * doc/posix-headers/termios.texi: Mention the new module.
12416
12417 2010-09-16  Eric Blake  <eblake@redhat.com>
12418
12419         fdutimensat: add an atflag parameter
12420         * lib/fdutimensat.c (fdutimensat): Add new parameter.
12421         * lib/utimens.h (fdutimensat): Update prototype.
12422         * tests/test-fdutimensat.c: Adjust test to match.
12423         * NEWS: Document the change.
12424         Suggested by Paul Eggert.
12425
12426 2010-09-16  Bruno Haible  <bruno@clisp.org>
12427
12428         Fix typos in comments.
12429         * lib/striconveh.h: Fix typo in comment.
12430         * lib/login_tty.c (login_tty): Likewise.
12431
12432 2010-09-15  Bruno Haible  <bruno@clisp.org>
12433
12434         stdlib: clarify MirBSD WEXITSTATUS bug
12435         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
12436         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12437
12438 2010-09-15  Eric Blake  <eblake@redhat.com>
12439
12440         stdlib: work around MirBSD WEXITSTATUS bug
12441         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
12442         * modules/stdlib (Depends-on): Add sys_wait.
12443         * tests/test-sys_wait.c (main): Enhance test.
12444         * tests/test-stdlib.c (main): Likewise.
12445         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
12446
12447         docs: mention MacOS issue with WEXITSTATUS(constant)
12448         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
12449         issue.
12450         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12451
12452         strnlen: add tests
12453         * modules/strnlen-tests: New file.
12454         * tests/test-strnlen.c: Likewise.
12455
12456 2010-09-14  Bruno Haible  <bruno@clisp.org>
12457
12458         unistr/base: Avoid link errors when module 'libunistring' is also used.
12459         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
12460         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
12461         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
12462         Declare also when HAVE_LIBUNISTRING is set.
12463         Reported by Pádraig Brady <P@draigbrady.com>.
12464
12465 2010-09-14  Eric Blake  <eblake@redhat.com>
12466
12467         test-rawmemchr: make more robust
12468         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
12469         (Depends-on, configure.ac): Add needed prerequisites to use it.
12470         * modules/memchr-tests (Files, Depends-on, configure.ac):
12471         Likewise, to avoid implicit reliance on memchr module prereqs.
12472         * tests/test-memchr.c (main): Ensure proper masking.
12473         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
12474         reads.
12475
12476         memchr: detect glibc Alpha bug
12477         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
12478         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
12479         Alpha.
12480         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
12481         * tests/test-memchr.c (main): Enhance test.
12482         Reported by Nelson H. F. Beebe.
12483
12484 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12485
12486         fts, getcwd, glob: audit for dirfd returning -1
12487         * lib/fts.c (opendir): Remove #define; no longer used.
12488         (opendirat): New arg PDIR_FD.  All callers changed.
12489         (fts_build, _opendir2): Use new opendirat to avoid the need for
12490         dirfd, or for checking whether dirfd returns a negative value.
12491         Don't use opendir; always use openat followed by fdopendir.
12492         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
12493         it.
12494         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
12495         returns -1 here.
12496         * modules/fts (Depends-on): Remove dirfd.
12497         * modules/getcwd (Depends-on): Likewise.
12498
12499 2010-09-13  Eric Blake  <eblake@redhat.com>
12500
12501         float: fix broken MirBSD header
12502         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
12503         * doc/posix-headers/float.texi (float.h): Document it.
12504
12505 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12506
12507         fts: use O_NOFOLLOW to avoid race condition when opening a directory
12508         * lib/fts.c (opendirat): New arg extra_flags.
12509         (__opendir2): Use it to avoid following symlinks when opening
12510         a directory, if symlinks are not supposed to be followed.  See
12511         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
12512
12513         fdopendir: preserve argument fd before returning
12514         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
12515         (fdopendir_with_dup, fd_clone_opendir): New static functions.
12516         (fdopendir): Use them, arranging for FD to be open to the same
12517         directory that it was when it started.  (It might be temporarily
12518         closed while fdopendir is running, so this not thread- or
12519         signal-safe.)  Be careful to do the right thing even when file
12520         descriptors are scarce and dup fails with errno == EMFILE.  See
12521         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
12522
12523 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
12524
12525         regex: Pass the system regex if its only problem is 32-bit regoff_t.
12526         * NEWS: Document change.
12527         * m4/regex.m4: Disable test for regoff_t size.
12528
12529 2010-09-13  Jim Meyering  <meyering@redhat.com>
12530
12531         fts: don't operate on an invalid file descriptor after failed dup
12532         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
12533         negative file descriptor.
12534
12535 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
12536
12537         savedir: add streamsavedir, deprecate fdsavedir
12538         * NEWS: Mention deprecation of fdsavedir.
12539         * lib/savedir.c (streamsavedir): New extern function, whose name
12540         ends in "savedir" to be consistent with the others.  This differs
12541         from savedirstream in that it doesn't close its argument.  The
12542         next version of GNU tar will use this instead of fdsavedir, to
12543         avoid some race conditions and conserve file descriptors.
12544         (savedirstream): Reimplement as a wrapper around streamsavedir.
12545         (fdsavedir): Add a comment deprecating this function.  As far as
12546         I know, only GNU tar used it, and GNU tar doesn't need it any more.
12547         * lib/savedir.h (streamsavedir): New decl.
12548         (fdsavedir): Add a comment deprecating this.
12549
12550 2010-09-10  Bruno Haible  <bruno@clisp.org>
12551
12552         langinfo: Fix last commit.
12553         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
12554         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
12555         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12556
12557 2010-09-10  Bruno Haible  <bruno@clisp.org>
12558
12559         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
12560         * lib/progreloc.c (O_EXEC): Define fallback.
12561
12562 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
12563
12564         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
12565         * NEWS: Document recent changes to fcntl-h.
12566         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
12567         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
12568         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
12569         Similarly for O_SEARCH; this last was already true, but not documented.
12570         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
12571         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
12572         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
12573         Likewise.
12574         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
12575         is zero, not whether it is defined.
12576         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
12577         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
12578         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
12579
12580 2010-09-10  Bruno Haible  <bruno@clisp.org>
12581
12582         langinfo, nl_langinfo: Fix for IRIX 5.3.
12583         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
12584         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
12585         HAVE_LANGINFO_YESEXPR.
12586         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
12587         HAVE_LANGINFO_YESEXPR.
12588         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
12589         HAVE_LANGINFO_T_FMT_AMPM is 0.
12590         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
12591         HAVE_LANGINFO_YESEXPR is 0.
12592         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
12593         NOEXPR.
12594         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
12595         * doc/posix-functions/nl_langinfo.texi: Likewise.
12596         Reported by Eric Blake.
12597
12598 2010-09-10  Bruno Haible  <bruno@clisp.org>
12599
12600         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
12601         * doc/glibc-functions/login_tty.texi: Mention the include file problem
12602         on FreeBSD 8.0 and OpenBSD 4.6.
12603         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
12604         * m4/pty_h.m4 (gl_PTY_H): Likewise.
12605         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
12606         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
12607         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
12608         ac_includes_default.
12609         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12610
12611 2010-09-09  Eric Blake  <eblake@redhat.com>
12612
12613         strsignal: work around NetBSD bug
12614         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
12615         * lib/string.in.h (includes): Likewise.
12616         * doc/posix-functions/strsignal.texi (strsignal): Document the
12617         bug.
12618         Reported by Nelson H. F. Beebe.
12619
12620         gnulib-tool: work with NetBSD /bin/sh
12621         * gnulib-tool (func_cache_var, func_cache_lookup_module)
12622         (func_get_description, func_get_comment, func_get_status)
12623         (func_get_notice, func_get_applicability, func_get_filelist)
12624         (func_get_dependencies, func_get_autoconf_early_snippet)
12625         (func_get_autoconf_snippet, func_get_automake_snippet)
12626         (func_get_include_directive, func_get_link_directive)
12627         (func_get_license, func_get_maintainer, func_import): Avoid
12628         shell syntax errors from parsing syntax extensions.
12629
12630 2010-09-09  Bruno Haible  <bruno@clisp.org>
12631
12632         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
12633         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
12634         a reliable way to determine whether the 'alias' command works.
12635
12636 2010-09-08  Jim Meyering  <meyering@redhat.com>
12637
12638         init.sh: penalize a set-x-impaired shell; don't disqualify it
12639         * tests/init.sh: Too many shells corrupt application stderr when
12640         you set -x, so we can't afford to disqualify them, since at least
12641         on Irix-6.5, that would disqualify all bourne shells.
12642         Instead, use a two-pass approach.
12643         On the first pass, try to find a shell that meets the stricter
12644         condition that set -x does not corrupt stderr.
12645         If no shell meets the stricter condition, retest each candidate
12646         shell, but without that extra condition.  Finally, when
12647         VERBOSE=yes is requested and set -x might cause trouble, simply
12648         issue a warning and refrain from enabling debug output.
12649
12650 2010-09-08  Eric Blake  <eblake@redhat.com>
12651
12652         unsetenv: fix OpenBSD bug
12653         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
12654         * doc/posix-functions/unsetenv.texi (unsetenv): Update
12655         documentation.
12656         Reported by Jim Meyering.
12657
12658         strtod: work around IRIX 6.5 bug
12659         * lib/strtod.c (strtod): Reparse number on shorter string if
12660         exponent parse was invalid.
12661         * tests/test-strtod.c (main): Add check for "0x1p 2".
12662         Reported by Tom G. Christensen.
12663
12664         getopt: optimize previous patch
12665         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
12666         empty variable.  Speed up awk script.
12667         Reported by Paolo Bonzini.
12668
12669 2010-09-08  Jim Meyering  <meyering@redhat.com>
12670
12671         test.sh: disqualify shells for which set -x corrupts stderr
12672         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
12673         and OpenBSD 4.7.  They make it so with "set -x", environment settings
12674         appear in stderr output.  For example, this command:
12675             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
12676         prints "P=1" on those two systems:
12677
12678 2010-09-08  Bruno Haible  <bruno@clisp.org>
12679
12680         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
12681         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
12682         commands, because some shells ignore redirections when there is an
12683         error in the command lookup.
12684         Reported by Eric Blake.
12685
12686 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
12687
12688         * lib/regex.h: Fix a mention of `regex_compile' (should be
12689         `re_compile_pattern').
12690         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
12691         (re_set_registers): Correct name of parameter in comment.
12692
12693         * doc/regex.texi: Add documentation for missing syntax flags.
12694         Remove commented-out documentation of defunct syntax option
12695         RE_NO_EMPTY_ALTS.
12696         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
12697         Add documentation of re_set_registers.
12698         Document trick to re-use a pattern buffer by setting fastmap manually.
12699         Update documentation of struct re_pattern_buffer per public members.
12700         Uncomment documentation of equivalence class operators and
12701         collating symbol operators, since they are now implemented,
12702         Explain leftmost-longest matching in relation to alternatives.
12703         Tidy documentation of substring matching.
12704         Remove POSIX documentation, which is done better in
12705         glibc, and refer the reader there. Keep BSD API documentation, as
12706         that is not readily available elsewhere.
12707
12708 2010-09-07  Eric Blake  <eblake@redhat.com>
12709
12710         getopt: handle POSIXLY_CORRECT set but not exported
12711         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
12712         export state of POSIXLY_CORRECT, due to bash set -o posix.
12713         Reported by Dustin J. Mitchell.
12714
12715 2010-09-05  Bruno Haible  <bruno@clisp.org>
12716
12717         gnulib-tool: Highlight the changed options.
12718         * gnulib-tool (func_usage): Display the --import, --add-import,
12719         --remove-import explanations in bold font.
12720
12721 2010-09-06  Karl Berry  <karl@gnu.org>
12722
12723         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
12724
12725 2010-09-05  Bruno Haible  <bruno@clisp.org>
12726
12727         uniwidth/width: Update comment.
12728         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
12729         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
12730
12731 2010-09-05  Bruno Haible  <bruno@clisp.org>
12732
12733         isinf, isnan: Relax license.
12734         * modules/isinf (License): Change from GPL to LGPL, with consent from
12735         Ben Pfaff.
12736         * modules/isnan (License): Likewise.
12737         Requested by Ludovic Courtès.
12738
12739 2010-09-04  Bruno Haible  <bruno@clisp.org>
12740
12741         gnulib-tool: Help migration from --import to --add-import or --update.
12742         * gnulib-tool: Emit a verbose error message when --import is used
12743         without any module name.
12744
12745 2010-09-04  Bruno Haible  <bruno@clisp.org>
12746
12747         Update doc about gnulib-tool.
12748         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
12749         'gnulib-tool --update' in more detail.
12750         Reported by Eric Blake.
12751
12752 2010-09-04  Bruno Haible  <bruno@clisp.org>
12753
12754         gnulib-tool: Change --import. New options --add/remove-import.
12755         * gnulib-tool: New options --add-import, --remove-import.
12756         (func_usage): Document them.
12757         (have_associative): Define always.
12758         (func_import): In import mode, don't merge the specified settings with
12759         the cached settings. Implement remove-import mode.
12760         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
12761         Explain when to use them versus --import.
12762         (Simple update): Use --add-import instead of --import.
12763         * NEWS: Mention the change.
12764
12765 2010-09-04  Bruno Haible  <bruno@clisp.org>
12766
12767         * doc/gnulib-tool.texi (Initial import): Update paragraph about
12768         separate gnulib.mk.
12769
12770 2010-09-04  Bruno Haible  <bruno@clisp.org>
12771
12772         gnulib-tool: Don't talk about CVS any more.
12773         * gnulib-tool (func_usage, func_import): Write "version control"
12774         instead of CVS.
12775
12776 2010-09-04  Jim Meyering  <meyering@redhat.com>
12777
12778         maint.mk: avoid obscure sc_copyright_check failure in coreutils
12779         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
12780         false positives (whose names may be ill-chosen) when searching
12781         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
12782         would cause a false-positive.
12783
12784         avoid coreutils "make distcheck" failure
12785         Coreutils tests with an absolute build directory name that contains
12786         a space.  Not quoting this directory name caused a failure.
12787         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
12788         * tests/test-vc-list-files-cvs.sh: Likewise.
12789
12790 2010-09-04  Bruno Haible  <bruno@clisp.org>
12791
12792         gnulib-tool: Avoid error when run in a package without Makefile.am.
12793         * gnulib-tool: When collecting the m4dirs in a package that does not
12794         have a Makefile.am, eliminate those directories that contain no
12795         gnulib-cache.m4. Fix expression that counts these directories.
12796
12797 2010-09-04  Bruno Haible  <bruno@clisp.org>
12798
12799         update-copyright test: Improve output when perl is missing or too old.
12800         * tests/test-update-copyright.sh: Move test of Perl version down after
12801         the test whether Perl exists. Provide an explanation relating Perl's
12802         error message to Automake's SKIP: message.
12803
12804 2010-09-04  Bruno Haible  <bruno@clisp.org>
12805
12806         Don't augment PATH in TESTS_ENVIRONMENT.
12807         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
12808         set abs_aux_dir instead of augmenting PATH.
12809         * modules/vc-list-files-tests (Makefile.am): Likewise.
12810         * tests/test-update-copyright.sh: Augment PATH here.
12811         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
12812         path_prepend_.
12813         * tests/test-vc-list-files-git.sh: Likewise.
12814
12815 2010-09-04  Jim Meyering  <meyering@redhat.com>
12816
12817         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
12818         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
12819
12820 2010-09-04  Bruno Haible  <bruno@clisp.org>
12821
12822         strdup: Fix compilation error in C++ mode.
12823         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
12824         the macro.
12825
12826 2010-09-04  Bruno Haible  <bruno@clisp.org>
12827
12828         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
12829         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
12830         macro into a function.
12831         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12832
12833 2010-09-04  Bruno Haible  <bruno@clisp.org>
12834
12835         Set PATH_SEPARATOR the same way autoconf does.
12836         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
12837         the value of PATH_SEPARATOR the same way autoconf-generated configure
12838         scripts do.
12839         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
12840         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
12841
12842 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12843
12844         Set PATH_SEPARATOR the same way autoconf does.
12845         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
12846         the same way autoconf-generated configure scripts do.
12847         * posix-modules: Likewise.
12848
12849 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
12850
12851         hash: fix safe_hasher const typo
12852         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
12853         const; otherwise, there is a type error later.
12854
12855 2010-09-02  Jim Meyering  <meyering@redhat.com>
12856
12857         test-update-copyright.sh: require perl 5.8.0
12858         * tests/test-update-copyright.sh: Require 5.8.0,
12859         which Tom G. Christensen has confirmed is adequate,
12860         while 5.6.1 is not.
12861
12862 2010-09-02  Eric Blake  <eblake@redhat.com>
12863
12864         tests: init.sh improvements for re-exec'ing with zsh
12865         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
12866         -vx through shell re-exec.
12867         Reported by Tom G. Christensen.
12868
12869         wctype: fix typo in previous commit
12870         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
12871         Reported by Ludovic Courtès.
12872
12873 2010-09-02  Jim Meyering  <meyering@redhat.com>
12874
12875         test-update-copyright.sh: skip test if Perl is too old
12876         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
12877         Reported by Tom G. Christensen.
12878
12879 2010-09-02  Bruno Haible  <bruno@clisp.org>
12880
12881         wctype: Avoid compilation error on IRIX 6.5.30.
12882         * lib/wctype.in.h (iswblank): Declare with a replacement if
12883         REPLACE_ISWBLANK is set.
12884         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
12885         declared. Set REPLACE_ISWBLANK.
12886         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
12887         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
12888         * doc/posix-headers/wctype.texi: Likewise.
12889         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12890
12891 2010-09-01  Bruno Haible  <bruno@clisp.org>
12892
12893         New module 'socketlib'.
12894         * modules/socketlib: New file.
12895         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
12896         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
12897         * modules/sockets (Depends-on): Add socketlib.
12898         Suggested by Sam Steingold <sds@gnu.org>.
12899
12900 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12901
12902         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
12903
12904         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
12905         when one needs search access to a directory but not read access.
12906         On systems where it is available, it works in some cases where
12907         O_RDONLY does not, namely on directories that are searchable but
12908         not readable, and which need only to be searchable.  If O_SEARCH
12909         is not available, fall back to the traditional method of using
12910         O_RDONLY.
12911
12912         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
12913         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
12914         when opening a directory that needs only to be searchable.
12915         * lib/chdir-safer.c (chdir_no_follow): Likewise.
12916         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
12917         * lib/openat-proc.c (openat_proc_name): Likewise.
12918         * lib/openat.c (openat_needs_fchdir): Likewise.
12919         * lib/save-cwd.c (save_cwd): Likewise.
12920         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
12921
12922 2010-08-28  Bruno Haible  <bruno@clisp.org>
12923
12924         New module 'host-cpu-c-abi'.
12925         * modules/host-cpu-c-abi: New file.
12926         * m4/host-cpu-c-abi.m4: New file, based on part of
12927         clisp/src/m4/general.m4.
12928         Requested by Sam Steingold <sds@gnu.org>.
12929
12930 2010-08-31  Eric Blake  <eblake@redhat.com>
12931         and Jim Meyering  <meyering@redhat.com>
12932
12933         hash: factor, and guard against misbehaving hasher function
12934         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
12935         of table->hasher's return value.  Also protect against a hash value
12936         so large that adding it to table->bucket results in a NULL pointer.
12937         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
12938         Use it in place of open-coded check-and-abort.
12939
12940 2010-08-30  Bruno Haible  <bruno@clisp.org>
12941
12942         hash: silence spurious clang warning
12943         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
12944         Reported by Eric Blake.
12945
12946 2010-08-30  Eric Blake  <eblake@redhat.com>
12947
12948         strstr, memmem, strcasestr: avoid leaked shell message
12949         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
12950         FreeBSD.
12951         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12952         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12953
12954         tests: silence clang warning
12955         * tests/test-malloca.c (do_allocation): Avoid dead store.
12956
12957 2010-08-29  Bruno Haible  <bruno@clisp.org>
12958
12959         gettext: Fix recent mistake.
12960         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
12961
12962 2010-08-29  Bruno Haible  <bruno@clisp.org>
12963
12964         selinux-h: Offer a --without-selinux option.
12965         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
12966         --without-selinux was specified, skip all tests and define
12967         HAVE_SELINUX_SELINUX_H to 0.
12968         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
12969         set LIB_SELINUX to empty.
12970         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
12971         gl_LIBSELINUX. If --without-selinux was specified, replace
12972         selinux/context.h.
12973         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
12974
12975 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12976             Bruno Haible  <bruno@clisp.org>
12977
12978         Make the module 'realloc-gnu' work again on AIX and OSF/1.
12979         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
12980         of HAVE_REALLOC.
12981         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
12982         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
12983         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
12984         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
12985
12986 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12987             Bruno Haible  <bruno@clisp.org>
12988
12989         Make the module 'calloc-gnu' work again on AIX and OSF/1.
12990         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
12991         HAVE_CALLOC.
12992         * lib/xmalloc.c: Update accordingly.
12993         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
12994         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
12995         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
12996
12997 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12998             Bruno Haible  <bruno@clisp.org>
12999
13000         Make the module 'malloc-gnu' work again on AIX and OSF/1.
13001         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
13002         HAVE_MALLOC.
13003         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
13004         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
13005         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13006
13007 2010-08-29  Bruno Haible  <bruno@clisp.org>
13008
13009         Update modules list.
13010         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
13011         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
13012         (String handling <string.h>): Add astrxfrm.
13013         (File system functions): Add readlinkat.
13014
13015 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13016
13017         Tests for module 'realloc-gnu'.
13018         * modules/realloc-gnu-tests: New file.
13019         * tests/test-realloc-gnu.c: New file.
13020
13021         Tests for module 'calloc-gnu'.
13022         * modules/calloc-gnu-tests: New file.
13023         * tests/test-calloc-gnu.c: New file.
13024
13025         Tests for module 'malloc-gnu'.
13026         * modules/malloc-gnu-tests: New file.
13027         * tests/test-malloc-gnu.c: New file.
13028
13029 2010-08-28  Bruno Haible  <bruno@clisp.org>
13030
13031         Rename module 'realloc' -> 'realloc-gnu'.
13032         * modules/realloc-gnu: New file, copied from modules/realloc.
13033         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
13034         obsolete.
13035         * modules/mgetgroups (Depends-on): Update.
13036         * doc/posix-functions/realloc.texi: Update.
13037         * NEWS: Mention the change.
13038
13039         Rename module 'calloc' -> 'calloc-gnu'.
13040         * modules/calloc-gnu: New file, copied from modules/calloc.
13041         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
13042         obsolete.
13043         * doc/posix-functions/calloc.texi: Update.
13044         * NEWS: Mention the change.
13045
13046         Rename module 'malloc' -> 'malloc-gnu'.
13047         * modules/malloc-gnu: New file, copied from modules/malloc.
13048         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
13049         obsolete.
13050         * modules/argp (Depends-on): Update.
13051         * modules/regex (Depends-on): Update.
13052         * doc/posix-functions/malloc.texi: Update.
13053         * NEWS: Mention the change.
13054
13055 2010-08-28  Eric Blake  <eblake@redhat.com>
13056
13057         pread, pwrite: add missing dependency
13058         * modules/pread (Depends-on): Add extensions.
13059         * modules/pwrite (Depends-on): Likewise.
13060
13061 2010-08-28  Bruno Haible  <bruno@clisp.org>
13062
13063         unistr/u*-strchr: Fix tests dependencies.
13064         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
13065         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
13066         Reported by Ian Beckwith <ianb@erislabs.net>.
13067
13068 2010-08-28  Bruno Haible  <bruno@clisp.org>
13069
13070         read-file: Don't occupy too much unused memory.
13071         * lib/read-file.c (fread_file): Shrink the buffer at the end.
13072
13073 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
13074             Eric Blake  <eblake@redhat.com>
13075             Bruno Haible  <bruno@clisp.org>
13076
13077         read-file: Avoid memory reallocations with regular files.
13078         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
13079         (fread_file): With regular files, use the remaining length as the
13080         initial buffer size.  Check against overflow.
13081         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
13082         sys_stat.
13083
13084 2010-08-28  Bruno Haible  <bruno@clisp.org>
13085
13086         ftello: Relax license.
13087         * modules/ftello (License): Relax to LGPLv2+.
13088         Reported by Eric Blake.
13089
13090 2010-08-28  Bruno Haible  <bruno@clisp.org>
13091
13092         Avoid relocwrapper link errors due to gnulib replacement functions.
13093         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
13094         function.
13095         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13096
13097 2010-08-28  Bruno Haible  <bruno@clisp.org>
13098
13099         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
13100         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
13101         defined.
13102         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
13103         Suggested by Eric Blake.
13104
13105 2010-08-28  Bruno Haible  <bruno@clisp.org>
13106
13107         sys_socket, netdb: Ensure socklen_t gets defined.
13108         * modules/sys_socket (Depends-on): Add socklen.
13109         * modules/netdb (Depends-on): Likewise.
13110         * modules/getaddrinfo (Depends-on): Remove socklen.
13111         * modules/getsockopt (Depends-on): Likewise.
13112         * modules/setsockopt (Depends-on): Likewise.
13113         * tests/test-sys_socket.c: Check that socklen_t is defined.
13114         * tests/test-netdb.c: Likewise.
13115         * m4/socklen.m4: Update comments.
13116         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13117
13118 2010-08-27  Eric Blake  <eblake@redhat.com>
13119
13120         login_tty: add missing dependency
13121         * modules/login_tty (Depends-on): Add pty.
13122
13123 2010-08-26  Eric Blake  <eblake@redhat.com>
13124
13125         lib-symbol-versions: fix m4 quoting
13126         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
13127         format for AC_LINK_IFELSE.
13128
13129         glob: fix compile test
13130         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
13131
13132         btowc: fix missing file
13133         * modules/btowc (Files): Also ship locale-fr.m4.
13134
13135         lseek: fix link test
13136         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
13137         AC_LINK_IFELSE.
13138
13139         include_next: silence autoconf 2.68 warning
13140         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
13141         AC_COMPILE_IFELSE as special.
13142         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
13143         autoconf < 2.68.
13144
13145         acl: fix compilation test
13146         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
13147         AC_COMPILE_IFELSE.
13148
13149 2010-08-26  Bruno Haible  <bruno@clisp.org>
13150
13151         Modernize AC_TRY_RUN invocations.
13152         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
13153         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
13154         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
13155         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
13156         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
13157         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13158         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13159         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13160         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13161         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13162         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13163         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13164         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13165         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13166         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13167         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13168         gl_MBRLEN_NUL_RETVAL): Likewise.
13169         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13170         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13171         Likewise.
13172         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13173         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13174         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13175         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13176         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
13177         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
13178         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
13179         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13180         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
13181         Likewise.
13182         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
13183         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
13184         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13185         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13186         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13187         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
13188         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13189         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
13190         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13191         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13192
13193 2010-08-26  Bruno Haible  <bruno@clisp.org>
13194
13195         Modernize AC_TRY_LINK invocations.
13196         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
13197         AC_TRY_LINK.
13198         * m4/argp.m4 (gl_ARGP): Likewise.
13199         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13200         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13201         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
13202         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13203         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13204         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
13205         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13206         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13207         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
13208         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
13209         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
13210         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
13211         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
13212         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13213         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
13214         * m4/hostent.m4 (gl_HOSTENT): Likewise.
13215         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13216         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
13217         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
13218         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
13219         Likewise.
13220         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
13221         Likewise.
13222         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
13223         Likewise.
13224         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
13225         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
13226         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
13227         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13228         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13229         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
13230         * m4/servent.m4 (gl_SERVENT): Likewise.
13231         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13232         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13233         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13234         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13235         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13236         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13237         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13238         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13239         * modules/tsearch-tests (configure.ac): Likewise.
13240
13241 2010-08-26  Bruno Haible  <bruno@clisp.org>
13242
13243         Modernize AC_TRY_COMPILE invocations.
13244         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
13245         AC_TRY_COMPILE.
13246         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
13247         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
13248         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
13249         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
13250         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
13251         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
13252         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13253         * m4/lock.m4 (gl_LOCK): Likewise.
13254         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
13255         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
13256         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
13257         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
13258         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
13259         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
13260         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
13261         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
13262         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
13263         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
13264         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
13265         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
13266         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
13267         extraneous semicolon.
13268
13269 2010-08-26  Jim Meyering  <meyering@redhat.com>
13270
13271         stat-time: relax license LGPL
13272         * modules/stat-time (License): Change from GPL to LGPL,
13273         with consent from all contributors, for use in libguile.
13274         Requested by Ludovic Courtès.
13275
13276 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
13277
13278         poll: return immediately on POLLHUP.
13279         * lib/poll.c (poll): Always set timeout before wait_timeout is
13280         computed.
13281
13282 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13283
13284         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
13285         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
13286         rmdir ("dir/.//"), unlinkat.
13287
13288 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13289
13290         stdbool: avoid spurious failure with modern xlc
13291         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13292
13293 2010-08-24  Bruno Haible  <bruno@clisp.org>
13294
13295         getloadavg: simplify code
13296         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
13297         gl_have_func. Update comments.
13298
13299 2010-08-24  Eric Blake  <eblake@redhat.com>
13300
13301         getloadavg: don't define SVR4 on cygwin
13302         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
13303         only define SVR4 when -lkvm is required.
13304         Reported by Yaakov Selkowitz.
13305
13306 2010-08-24  Bruno Haible  <bruno@clisp.org>
13307
13308         priv-set: fix comment
13309         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
13310
13311 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
13312
13313         priv-set: fix comments
13314         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
13315         to match code, as suggested by David Bartley in:
13316         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
13317
13318 2010-08-23  Eric Blake  <eblake@redhat.com>
13319
13320         stdbool: avoid rejecting clang
13321         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13322         * tests/test-stdbool.c: Enable more tests if using the system
13323         <stdbool.h> instead of the gnulib replacement.
13324         (main): Move xlc bug test to a runtime test for all compilers.
13325         Reported by Anders Kaseorg.
13326
13327         argz: fix shell quoting issue
13328         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
13329         Reported by Charles Wilson.
13330
13331 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
13332             Erik Faye-Lund <kusmabite@gmail.com>
13333
13334         poll, select: handle ERROR_BROKEN_PIPE.
13335         * lib/poll.c (win32_compute_revents): Return POLLHUP when
13336         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13337         * lib/select.c (win32_compute_revents): Do not mark a pipe
13338         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13339
13340 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
13341
13342         fts: allow compilation with C++
13343         * lib/fts_.h: Specify extern "C" linkage with C++.
13344
13345 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13346
13347         Fix gnulib-tool sed script de-commentation for AIX sed.
13348         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
13349         sed.
13350
13351 2010-08-17  Eric Blake  <eblake@redhat.com>
13352
13353         test-stddef: test for (some) offsetof bugs
13354         * tests/test-stddef.c: Enhance test to ensure correct type of
13355         offsetof.
13356         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
13357         that we are not fixing at this time.
13358
13359 2010-08-15  Bruno Haible  <bruno@clisp.org>
13360
13361         stpncpy: Allow stpncpy to be defined as a macro.
13362         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
13363         if it's already correctly declared.
13364         * lib/string.in.h (stpncpy): Undefine before redefining.
13365         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
13366
13367 2010-08-14  Bruno Haible  <bruno@clisp.org>
13368
13369         Rename module 'memxfrm' to 'amemxfrm'.
13370         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
13371         (amemxfrm): Renamed from memxfrm.
13372         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
13373         (amemxfrm): Renamed from memxfrm.
13374         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
13375         * NEWS: Mention the change.
13376         * MODULES.html.sh (String handling <string.h>): Update.
13377         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
13378         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
13379         * lib/unicase/u16-casexfrm.c: Likewise.
13380         * lib/unicase/u32-casexfrm.c: Likewise.
13381         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
13382         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
13383         * lib/uninorm/u16-normxfrm.c: Likewise.
13384         * lib/uninorm/u32-normxfrm.c: Likewise.
13385         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
13386         memxfrm.
13387         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
13388         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
13389         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
13390         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
13391         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
13392         Suggested by Paul Eggert.
13393
13394 2010-08-14  Bruno Haible  <bruno@clisp.org>
13395
13396         Tests for module 'astrxfrm'.
13397         * modules/astrxfrm-tests: New file.
13398         * tests/test-astrxfrm.c: New file.
13399
13400         New module 'astrxfrm'.
13401         * lib/astrxfrm.h: New file.
13402         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
13403         * modules/astrxfrm: New file.
13404
13405 2010-08-14  Reuben Thomas <rrt@sc3d.org>
13406
13407         regex: Tweak doc.
13408         * doc/regex.texi (Overview): Don't mention regex.c.
13409         (GNU Regular Expression Compiling): Likewise.
13410         (Match-end-of-line Operator): Mention 'not_eol'.
13411
13412 2010-08-14  Brian Gough  <bjg@gnu.org>
13413             Bruno Haible  <bruno@clisp.org>
13414
13415         git-merge-changelog: add doc relating to use with bzr and hg.
13416         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
13417
13418 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
13419
13420         pthread: fix pthread.h creation for srcdir != builddir
13421         * modules/pthread (Makefile.am): Fix the rule to work also in a
13422         non-srcdir build.
13423
13424 2010-08-13  Karl Berry  <karl@gnu.org>
13425
13426         * doc/regex.texi (Predefined Syntaxes): @smallexample.
13427         * doc/posix-*/*: force line break before @url of POSIX
13428         specifications.
13429         Suggested by Werner Lemberg.
13430
13431 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13432
13433         strtod: fix const diagnostic
13434         * lib/strtod.c (strtod): Don't assign const char * to char *,
13435         as this elicits a warning from GCC when warnings are enabled.
13436
13437 2010-08-10  Pádraig Brady <P@draigbrady.com>
13438         and Eric Blake  <eblake@redhat.com>
13439
13440         copy-acl: ignore ENOTSUP on HP-UX
13441         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
13442         so that it is available for HP-UX.
13443         * lib/copy-acl.c (qcopy_acl): Use it.
13444         Reported by Patrick M. Callahan.
13445
13446 2010-08-10  Eric Blake  <eblake@redhat.com>
13447
13448         open, chown: relax license
13449         * modules/open (License): Change to LGPLv2+, with consent by all
13450         authors, for use in augeas.
13451         * modules/chown (License): Likewise.
13452         * modules/lchown (Likewise): Likewise.
13453         Requested by Adam Stokes.
13454
13455 2010-08-09  Karl Berry  <karl@gnu.org>
13456
13457         * build-aux/ar-lib: new file, import from Automake.
13458         * config/srclist.txt: autocheck for updates.
13459
13460 2010-08-09  Eric Blake  <eblake@redhat.com>
13461
13462         readlinkat: adjust client modules
13463         * modules/areadlinkat (Depends-on): Use readlinkat, not
13464         symlinkat.
13465         * modules/areadlinkat-with-size (Depends-on): Likewise.
13466
13467         mknod: be more vocal about danger of running tests as root
13468         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
13469         root, since that is just asking for problems.
13470         Suggested by Bruno Haible, based on a report by Rainer Tammer.
13471
13472         readlinkat: split into its own module
13473         * modules/symlinkat: Split readlinkat...
13474         * modules/readlinkat: ...into separate module.
13475         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
13476         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
13477         * lib/symlinkat.c (readlinkat): Move...
13478         * lib/readlinkat.c: ...into new file.
13479         * modules/symlinkat-tests: Split readlinkat test...
13480         * modules/readlinkat-tests: ...into separate module.
13481         * tests/test-symlinkat.c: Split...
13482         * tests/test-readlinkat.c: ...into new file.
13483         * NEWS: Document the split.
13484         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13485         * lib/unistd.in.h (readlinkat): Likewise.
13486         Suggested by Bruno Haible.
13487
13488 2010-08-08  Bruno Haible  <bruno@clisp.org>
13489
13490         memxfrm: Speed up.
13491         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
13492         that usually only one call to strxfrm is necessary for each string
13493         part.
13494         Reported by Paul Eggert <eggert@cs.ucla.edu>.
13495
13496 2010-08-07  Karl Berry  <karl@gnu.org>
13497
13498         * doc/posix-headers/limits.texi,
13499         * doc/posix-functions/malloc.texi,
13500         * doc/posix-functions/strsignal.texi: missing @item.
13501         * doc/ld-version-script.texi: spurious leading i.
13502         * doc/regex.texi (Interval Operators): no commas inside @var.
13503
13504 2010-08-01  Bruno Haible  <bruno@clisp.org>
13505
13506         Integrate the regex documentation.
13507         * doc/gnulib.texi: Define 'cn' index.
13508         (Regular expressions): New a chapter that includes regex.texi and
13509         regexprops-generic.texi.
13510         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
13511         syntax.
13512
13513         Whitespace cleanup.
13514         * doc/regex.texi: Remove trailing spaces.
13515
13516         Add regex documentation.
13517         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
13518         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
13519         Written by Kathy A. Hargreaves and Karl Berry.
13520
13521 2010-08-01  Bruno Haible  <bruno@clisp.org>
13522
13523         link: Update documentation.
13524         * doc/posix-functions/link.texi: Update regarding Solaris.
13525
13526 2010-07-31  Bruno Haible  <bruno@clisp.org>
13527
13528         Update modules list.
13529         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
13530         (String handling <string.h>): Add memcmp2, memxfrm.
13531         (Container data structures): Add xlist, xsublist, xoset.
13532         (Core language properties): Add alignof, unused-parameter.
13533         (Process control, Numeric conversion functions <stdlib.h>): Renamed
13534         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
13535         (Unibyte characters <ctype.h>): New section.
13536         (String handling <string.h>): New section.
13537         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
13538         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
13539         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
13540         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
13541         tan, tanh, tanl, y0, y1, yn.
13542         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
13543         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
13544         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
13545         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
13546         unlockpt, vdprintf, vdprintf-posix.
13547         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
13548         (File system functions): Add concat-filename, sys_file, sys_ioctl,
13549         xconcat-filename.
13550         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
13551         getdtablesize, pipe2, pipe2-safer.
13552         (Security): New section.
13553         (Networking functions): Add accept4.
13554         (Signal handling): Add sigpipe.
13555         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
13556         mbmemcasecoll.
13557         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
13558         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
13559         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
13560         pipe-filter-ii.
13561         (Misc): Add argp-version-etc, login_tty, parse-duration.
13562
13563 2010-07-31  Bruno Haible  <bruno@clisp.org>
13564
13565         Improve doc in MODULES.html.
13566         * modules/linkat (Description): Add the word "function".
13567         * modules/mkfifo (Description): Likewise.
13568         * modules/mknod (Description): Likewise.
13569         * modules/remove (Description): Likewise.
13570         * modules/renameat (Description): Likewise.
13571         * modules/stat (Description): Likewise.
13572         * modules/symlink (Description): Likewise.
13573         * modules/unlink (Description): Likewise.
13574
13575 2010-07-31  Bruno Haible  <bruno@clisp.org>
13576
13577         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
13578         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
13579         option --enable/disable-c++ instead of --enable/disable-cxx.
13580         * NEWS: Mention the change.
13581
13582 2010-07-31  Bruno Haible  <bruno@clisp.org>
13583
13584         readlink, areadlink: Relax test a bit.
13585         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
13586         alternative to ENOTDIR.
13587         * tests/test-areadlink.h (test_areadlink): Likewise.
13588         Reported by Rainer Tammer.
13589
13590 2010-07-31  Bruno Haible  <bruno@clisp.org>
13591
13592         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
13593         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
13594         character, perform the search using U_STRCHR.
13595         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
13596         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
13597         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
13598         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
13599         Suggested by Paolo Bonzini.
13600
13601 2010-07-31  Bruno Haible  <bruno@clisp.org>
13602
13603         unistr/u*-strstr: Fix dependencies.
13604         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
13605         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
13606         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
13607
13608 2010-07-31  Bruno Haible  <bruno@clisp.org>
13609
13610         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
13611         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
13612         the beginning of the loop.
13613         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
13614         cases in 'switch' statement.
13615
13616         unistr/u8-strchr: Fix several bugs.
13617         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
13618         the string. When not found, return NULL, not a pointer near the end.
13619
13620         More tests for unistr/u8-strchr.
13621         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
13622         that the function does not read past the first occurrence of the byte
13623         being searched.
13624         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
13625         * tests/unistr/test-u16-strchr.c (main): New function.
13626         * tests/unistr/test-u32-strchr.c (main): New function.
13627
13628 2010-07-31  Bruno Haible  <bruno@clisp.org>
13629
13630         posix-modules: Ignore backup files of documentation files.
13631         * posix-modules: grep only through files named *.texi.
13632
13633 2010-07-31  Bruno Haible  <bruno@clisp.org>
13634
13635         symlinkat: Fix documentation.
13636         * doc/posix-functions/readlinkat.texi: Fix module name.
13637
13638 2010-07-31  Bruno Haible  <bruno@clisp.org>
13639
13640         fchownat: Replace also when chown has the trailing slash bug.
13641         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
13642         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
13643         introduced on 2010-04-10.
13644         Reported by Rainer Tammer.
13645
13646 2010-07-31  Bruno Haible  <bruno@clisp.org>
13647
13648         linkat: Work around AIX 7.1 bug.
13649         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
13650         whether linkat handles trailing slash correctly. If not, replace linkat
13651         and define LINKAT_TRAILING_SLASH_BUG.
13652         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
13653         check whether (fd1,file1) points to a directory if file1 or file2 ends
13654         in a slash. Code taken from lib/link.c.
13655         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
13656         Reported by Rainer Tammer.
13657
13658 2010-07-31  Bruno Haible  <bruno@clisp.org>
13659
13660         Correctly determine whether pow is available in libc on AIX 7 with xlc.
13661         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
13662         This disables an xlc optimization that was causing wrong test results.
13663         Reported by Rainer Tammer.
13664
13665 2010-07-31  Bruno Haible  <bruno@clisp.org>
13666
13667         iconv: Work around AIX 6.1..7.1 bug.
13668         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
13669         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
13670         cross-compiling, guess no on all versions of AIX.
13671         Reported by Rainer Tammer.
13672
13673 2010-07-31  Bruno Haible  <bruno@clisp.org>
13674
13675         readlink: Relax test a bit.
13676         * tests/test-readlink.h (test_readlink): Allow different errno value
13677         when readlink is called with a file name that ends in / and refers to
13678         a file.
13679         Suggested by Eric Blake.
13680         Reported by Rainer Tammer.
13681
13682 2010-07-31  Bruno Haible  <bruno@clisp.org>
13683
13684         copysign: Does not require -lm on glibc systems.
13685         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
13686         gl_COMMON_DOUBLE_MATHFUNC.
13687         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
13688
13689 2010-07-31  Bruno Haible  <bruno@clisp.org>
13690
13691         duplocale: Work around AIX 7.1 bug.
13692         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
13693         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
13694         * lib/duplocale.c (rpl_duplocale): Update comment.
13695         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
13696         Reported by Rainer Tammer.
13697
13698 2010-07-30  Bruno Haible  <bruno@clisp.org>
13699
13700         dirfd: Avoid link error on AIX 7.1.
13701         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
13702         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
13703         exist, set REPLACE_DIRFD.
13704         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
13705         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
13706         * doc/posix-functions/dirfd.texi: Update.
13707         Reported by Rainer Tammer.
13708
13709 2010-07-30  Eric Blake  <eblake@redhat.com>
13710
13711         strtod: next round of AIX fixes
13712         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
13713         exponent.
13714         * tests/test-strtod.c (main): Enhance tests.
13715         * doc/posix-functions/strtod.texi (strtod): Document next bug.
13716         Reported by Rainer Tammer.
13717
13718         futimens: fix configure check
13719         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
13720         Reported by Bruno Haible.
13721
13722 2010-07-30  Bruno Haible  <bruno@clisp.org>
13723
13724         getline: Update regarding AIX.
13725         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
13726         Reported by Rainer Tammer.
13727
13728 2010-07-30  Bruno Haible  <bruno@clisp.org>
13729
13730         wcwidth: Drop replacement on AIX 7.
13731         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
13732         AIX 7.
13733         Reported by Rainer Tammer.
13734
13735 2010-07-30  Bruno Haible  <bruno@clisp.org>
13736
13737         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
13738         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
13739         a 'char *'.
13740         Reported by Rainer Tammer.
13741
13742 2010-07-30  Bruno Haible  <bruno@clisp.org>
13743
13744         unlink: Update regarding AIX.
13745         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
13746         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
13747         Reported by Rainer Tammer.
13748
13749 2010-07-30  Bruno Haible  <bruno@clisp.org>
13750
13751         symlink: Update regarding AIX.
13752         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
13753         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
13754         Reported by Rainer Tammer.
13755
13756 2010-07-30  Bruno Haible  <bruno@clisp.org>
13757
13758         strndup: Update regarding AIX.
13759         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
13760         AIX 7.
13761         Reported by Rainer Tammer.
13762
13763 2010-07-30  Bruno Haible  <bruno@clisp.org>
13764
13765         stat: Update regarding AIX.
13766         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
13767         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
13768         Reported by Rainer Tammer.
13769
13770 2010-07-30  Bruno Haible  <bruno@clisp.org>
13771
13772         truncl: Fix autoconf test.
13773         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
13774         whether truncl works.
13775         Reported by Rainer Tammer.
13776
13777 2010-07-30  Bruno Haible  <bruno@clisp.org>
13778
13779         round: Update regarding AIX.
13780         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
13781         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
13782         Reported by Rainer Tammer.
13783
13784 2010-07-30  Bruno Haible  <bruno@clisp.org>
13785
13786         rename: Update regarding AIX.
13787         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
13788         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
13789         Reported by Rainer Tammer.
13790
13791 2010-07-30  Bruno Haible  <bruno@clisp.org>
13792
13793         printf.m4: Update regarding AIX.
13794         * m4/printf.m4: Update comments regarding AIX.
13795         Reported by Rainer Tammer.
13796
13797 2010-07-30  Bruno Haible  <bruno@clisp.org>
13798
13799         iconv: Update regarding AIX.
13800         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
13801         AIX 7.
13802         Reported by Rainer Tammer.
13803
13804 2010-07-30  Bruno Haible  <bruno@clisp.org>
13805
13806         getopt: Update regarding AIX.
13807         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
13808         no on AIX.
13809         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
13810         Reported by Rainer Tammer.
13811
13812 2010-07-30  Bruno Haible  <bruno@clisp.org>
13813
13814         ldexpl; Update regarding AIX.
13815         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
13816         on AIX 7.
13817         Reported by Rainer Tammer.
13818
13819 2010-07-30  Bruno Haible  <bruno@clisp.org>
13820
13821         frexpl: Update regarding AIX.
13822         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
13823         on AIX 7.
13824         Reported by Rainer Tammer.
13825
13826 2010-07-30  Bruno Haible  <bruno@clisp.org>
13827
13828         open, fopen: Update regarding AIX.
13829         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
13830         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13831         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
13832         * doc/posix-functions/fopen.texi: Likewise.
13833         Reported by Rainer Tammer.
13834
13835 2010-07-30  Bruno Haible  <bruno@clisp.org>
13836
13837         chown: Update doc regarding AIX.
13838         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
13839         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
13840         Reported by Rainer Tammer.
13841
13842 2010-07-30  Eric Blake  <eblake@redhat.com>
13843
13844         strtod: fix bug in replacement function on AIX
13845         * lib/strtod.c (strtod): Special case broken "0x" parse in
13846         underlying strtod.
13847         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
13848         * doc/posix-functions/strtod.texi (strtod): Likewise.
13849         Reported by Rainer Tammer.
13850
13851 2010-07-30  Bruno Haible  <bruno@clisp.org>
13852
13853         mbrlen: Fix cross-compilation guess for AIX.
13854         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
13855         guess. Leftover from 2008-12-22.
13856
13857 2010-07-30  Bruno Haible  <bruno@clisp.org>
13858
13859         mbrtowc: Fix cross-compilation guess for AIX.
13860         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
13861         guess. Leftover from 2008-12-21.
13862
13863 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
13864
13865         init.sh: work around trap limitation of some shells
13866         * tests/init.sh (setup_): Move exit trap outside of shell function.
13867
13868 2010-07-29  Eric Blake  <eblake@redhat.com>
13869
13870         strtod: aid debugging
13871         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
13872         understanding why strtod is rejected.
13873
13874 2010-07-28  Bruno Haible  <bruno@clisp.org>
13875
13876         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
13877         * lib/unistr/u8-chr.c: Include <string.h>.
13878         * tests/unistr/test-u8-chr.c: Likewise.
13879         * tests/unistr/test-u16-chr.c: Likewise.
13880         * tests/unistr/test-u32-chr.c: Likewise.
13881         * tests/unistr/test-u8-strchr.c: Likewise.
13882         * tests/unistr/test-u16-strchr.c: Likewise.
13883         * tests/unistr/test-u32-strchr.c: Likewise.
13884         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
13885         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
13886         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
13887         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
13888
13889 2010-07-28  Bruno Haible  <bruno@clisp.org>
13890
13891         Use spaces for indentation, not tabs.
13892         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
13893
13894 2010-07-27  Bruno Haible  <bruno@clisp.org>
13895
13896         mbspcasecmp: Fix function specification.
13897         * lib/string.in.h (mbspcasecmp): Fix specification comment.
13898         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
13899         Reported by Eric Blake <eblake@redhat.com>.
13900
13901 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
13902
13903         timespec: use cast and not conditional, as truncation isn't possible
13904         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
13905         instead of a conditional.  Comment about the situation in more detail.
13906         This undoes most of the 2009-10-29 patch.
13907
13908 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
13909
13910         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
13911         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
13912         * lib/unistr/u8-strchr.c: Likewise.
13913         * modules/unistr/u8-chr: Depend on memchr.
13914
13915         unistr/u*-strchr: add tests
13916         * modules/unistr/u8-strchr-tests: New file.
13917         * modules/unistr/u16-strchr-tests: New file.
13918         * modules/unistr/u32-strchr-tests: New file.
13919         * tests/unistr/test-strchr.h: New file.
13920         * tests/unistr/test-u8-strchr.c: New file.
13921         * tests/unistr/test-u16-strchr.c: New file.
13922         * tests/unistr/test-u32-strchr.c: New file.
13923
13924         unistr/u*-chr: test multibyte sequences more
13925         * tests/unistr/test-chr.h: Do complete testing of the characters in the
13926         test vector.
13927         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
13928         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
13929         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
13930
13931         unistr/u*-chr: test multibyte sequences
13932         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
13933
13934         unistr/u*-chr: prepare for multibyte tests
13935         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
13936         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
13937         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
13938         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
13939         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
13940         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
13941
13942 2010-07-18  Bruno Haible  <bruno@clisp.org>
13943
13944         unistr/u8-strchr: Optimize non-ASCII argument case.
13945         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
13946         because the first byte often matches anyway.
13947         Reported by Pádraig Brady <P@draigbrady.com>.
13948
13949 2010-07-15  Karl Berry  <karl@gnu.org>
13950
13951         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
13952
13953 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
13954
13955         getcwd: on Solaris, work better if ancestors are inaccessible
13956         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
13957         buffer and size, try again with a large buffer.  This works better
13958         on Solaris, since its getcwd succeeds even if the path to the root
13959         is inaccessible, and this is helpful in common cases such as .zfs
13960         hidden directories.  Problem reported by J Chapman Flack in
13961         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
13962         Use system getcwd if it's declared, not merely if it's partly
13963         working; use the partly-working test only to avoid needless effort
13964         if the system getcwd fails.
13965         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
13966         comment that was already obsolete and is now even more obsolete.
13967         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
13968         now might call strdup.
13969
13970 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
13971
13972         pthread: Add enough so that coreutils/src/sort.c compiles.
13973         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
13974         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
13975         gnulib. Include <sched.h> and <time.h>, as per POSIX.
13976         Include <sys/types.h>, in case it defines pthread_t.
13977         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
13978         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
13979         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
13980         (pthread_rwlockattr_t, pthread_spinlock_t):
13981         New typedefs, if HAVE_PTHREAD_T is not defined.
13982         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
13983         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
13984         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
13985         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
13986         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
13987         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
13988         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
13989         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
13990         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
13991         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
13992         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
13993         New macros.
13994         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
13995         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
13996         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
13997         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
13998         (pthread_spin_unlock): New dummy functions.
13999         (pthread_create): Return EAGAIN; don't set errno.
14000         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
14001         require AC_C_INLINE.
14002         * modules/pthread (Depends-on): Add sched, time.
14003         (pthread.h): Use AM_V_GEN.
14004
14005 2010-07-13  Bruno Haible  <bruno@clisp.org>
14006
14007         striconveh: Don't malloc memory if the result buffer is sufficient.
14008         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
14009         buffer if its size is sufficient.
14010         Reported by Ludovic Courtès <ludo@gnu.org>.
14011
14012 2010-07-13  Bruno Haible  <bruno@clisp.org>
14013
14014         strtod: Add safety check.
14015         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
14016
14017 2010-07-12  Bruno Haible  <bruno@clisp.org>
14018
14019         Unify tests that set gl_cv_func_ldexpl_no_libm.
14020         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
14021         gl_FUNC_LDEXPL.
14022         (gl_FUNC_LDEXPL): Invoke it.
14023         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14024
14025 2010-07-12  Bruno Haible  <bruno@clisp.org>
14026
14027         Unify tests that set gl_cv_func_ldexp_no_libm.
14028         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
14029         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
14030         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
14031         (configure.ac): Simply invoke gl_FUNC_LDEXP.
14032         * modules/strtod (Files): Add m4/ldexp.m4.
14033
14034 2010-07-12  Bruno Haible  <bruno@clisp.org>
14035
14036         Unify tests that set gl_cv_func_frexpl_no_libm.
14037         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
14038         gl_FUNC_FREXPL_NO_LIBM.
14039         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
14040         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14041
14042 2010-07-12  Bruno Haible  <bruno@clisp.org>
14043
14044         Unify tests that set gl_cv_func_frexp_no_libm.
14045         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
14046         gl_FUNC_FREXP_NO_LIBM.
14047         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
14048         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
14049
14050 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14051
14052         memcoll: clarify sizes versus lengths, document better, and tweak perf
14053         * lib/memcoll.c (strcoll_loop, memcoll0):
14054         Improve quality of descriptive comments.  Name variables
14055         consistently as to whether they are lengths (which do not include
14056         terminating null) versus sizes (which do).
14057         * lib/xmemcoll.c (xmemcoll0): Likewise.
14058         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
14059         returned when s1size == 0; this is easier to compile and saves
14060         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
14061
14062 2010-07-12  Bruno Haible  <bruno@clisp.org>
14063
14064         Tests for module '_Exit'.
14065         * modules/_Exit-tests: New file.
14066         * tests/test-_Exit.sh: New file.
14067         * tests/test-_Exit.c: New file.
14068
14069         New module '_Exit'.
14070         * lib/stdlib.in.h (__attribute__): New macro.
14071         (_Exit): New declaration.
14072         * lib/_Exit.c: New file.
14073         * m4/_Exit.m4: New file.
14074         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
14075         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
14076         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
14077         * modules/_Exit: New file.
14078         * tests/test-stdlib-c++.cc (_Exit): Check signature.
14079         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
14080
14081 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14082
14083         strtod: make it more-accurate typically, and don't require libm
14084         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
14085         Include limits.h.  Don't include string.h.
14086         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
14087         (locale_isspace): New function, so that no casts are needed to
14088         check whether *s is a space.
14089         (ldexp): Provide an unused dummy if not available.
14090         (scale_radix_exp, parse_number, underlying_strtod): New functions.
14091         (strtod): Use them.  This implementation prefers to use the
14092         underlying strtod if available, falling back on our own code
14093         only to fix known bugs.  This is more likely to produce an
14094         accurate result.  Also, it avoids the use of libm functions.
14095         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
14096         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
14097         was absent, but it caused a test failure with coreutils.
14098         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
14099         with libm.
14100         * modules/strtod (Makefile.am, Link): libm is no longer needed.
14101         * modules/strtod-tests (Makefile.am): Likewise.
14102
14103 2010-07-11  Pádraig Brady  <P@draigBrady.com>
14104             Bruno Haible  <bruno@clisp.org>
14105
14106         unistr/u8-strchr: Optimize ASCII argument case.
14107         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
14108
14109 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14110
14111         (x)memcoll: minor tweaks
14112         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
14113         is after the type that it qualifies.
14114         (memcoll0): Likewise.
14115         * lib/memcoll.h (memcoll0): Likewise.
14116         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
14117         * lib/xmemcoll.h (xmemcoll0): Likewise.
14118         * lib/memcoll.c (memcoll0): Correct the comment.  This function
14119         differs from memcoll in that the NUL byte is part of the argument.
14120         Omit the abort-checks, as performance is a real issue here.  Plus,
14121         the checks were wrong anyway (an off-by-one error).  Omit local
14122         variable 'diff', as it's a bit clearer that way.
14123         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
14124         no longer needed.
14125
14126 2010-07-08  Chen Guo <chenguo4@yahoo.com>
14127
14128         (x)memcoll: speedup when input is known to be NUL delimited
14129         * lib/memcoll.c: Include stdlib.
14130         (memcoll0): New function.
14131         (strcoll_loop): New function, refactored for use in both memcoll
14132         and memcoll0.
14133         * lib/memcoll.h (memcoll0): Add prototype.
14134         * lib/xmemcoll.c (xmemcoll0): New function.
14135         (collate_error): New function, refactored for use in both xmemcoll
14136         and xmemcoll0.
14137         * lib/xmemcoll.h (xmemcoll0): Add prototype.
14138         * m4/memcoll.m4: add inline invocation.
14139
14140 2010-07-06  Pádraig Brady  <P@draigBrady.com>
14141
14142         * build-aux/bootstrap: Remove any local translations
14143         from the translation project synchronization directory,
14144         so that local only translations are not distributed.
14145
14146 2010-07-04  Bruno Haible  <bruno@clisp.org>
14147
14148         fsusage: Clarify which code applies to which platforms.
14149         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
14150         platform.
14151         * lib/fsusage.c (get_fs_usage): Likewise.
14152
14153 2010-07-04  Bruno Haible  <bruno@clisp.org>
14154
14155         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
14156         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
14157         Reported by Martin Lambers <marlam@marlam.de>.
14158
14159 2010-07-04  Jim Meyering  <meyering@redhat.com>
14160
14161         hash: once again explicitly disallow insertion of NULL
14162         * lib/hash.c (hash_insert0): Reinstate just-removed test:
14163         inserting a NULL pointer cannot work with these functions.
14164         Add a comment with details.
14165         This reverts part of the 2010-07-01 commit, 5bef1a35
14166         "hash: extend module to deal with non-pointer keys".
14167
14168 2010-07-01  Bruno Haible  <bruno@clisp.org>
14169
14170         stdbool: Update doc.
14171         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
14172         Info from Christian Weisgerber <naddy@mips.inka.de>.
14173
14174 2010-07-01  Jim Meyering  <meyering@redhat.com>
14175
14176         hash: extend module to deal with non-pointer keys
14177         * lib/hash.c (hash_insert0): New interface, much like hash_insert
14178         but that allows insertion of non-pointer entries.
14179         Do not disallow an ENTRY value of NULL.
14180         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
14181         * lib/hash.h (hash_insert0): Declare.
14182
14183 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14184
14185         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
14186         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
14187         not present (i.e. with autoconf 2.59 and when using gettextize, not
14188         gnulib), require AC_GNU_SOURCE instead.
14189
14190 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
14191
14192         idpriv-drop: Fix tests.
14193         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
14194         not to the test-idpriv-droptemp program.
14195
14196 2010-06-29  Bruno Haible  <bruno@clisp.org>
14197
14198         string: Fix syntax error with g++ 2.96.
14199         * lib/string.in.h (__pure__): Remove definition.
14200         (_GL_ATTRIBUTE_PURE): New macro.
14201         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
14202         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
14203         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14204
14205 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
14206
14207         unitypes: Fix bug introduced on 2010-05-18.
14208         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
14209
14210 2010-06-22  Eric Blake  <eblake@redhat.com>
14211
14212         memmem: slight optimization
14213         * lib/str-two-way.h (critical_factorization): Update comments.
14214         Reduce work during factorization phase.
14215         Reported by Carlos Bueno <carlos@bueno.org>.
14216
14217 2010-06-21  Bruno Haible  <bruno@clisp.org>
14218
14219         Fix HAVE_CALLOC_POSIX misnomer.
14220         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
14221         !HAVE_CALLOC_POSIX.
14222         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
14223         HAVE_CALLOC_POSIX.
14224         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
14225         instead of HAVE_CALLOC_POSIX.
14226         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
14227         HAVE_CALLOC_POSIX.
14228
14229         Use modern idiom for calloc() replacement.
14230         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
14231         AC_FUNC_CALLOC.
14232         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
14233         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
14234         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14235         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
14236         (gl_REPLACE_CALLOC): New macro.
14237
14238 2010-06-21  Bruno Haible  <bruno@clisp.org>
14239
14240         Fix HAVE_REALLOC_POSIX misnomer.
14241         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
14242         !HAVE_REALLOC_POSIX.
14243         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
14244         HAVE_REALLOC_POSIX.
14245         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
14246         instead of HAVE_REALLOC_POSIX.
14247         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
14248         HAVE_REALLOC_POSIX.
14249
14250         Use modern idiom for realloc() replacement.
14251         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
14252         AC_FUNC_REALLOC.
14253         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
14254         Autoconf's AC_FUNC_REALLOC.
14255         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14256         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
14257         (gl_REPLACE_REALLOC): New macro.
14258         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14259
14260 2010-06-21  Bruno Haible  <bruno@clisp.org>
14261
14262         Fix HAVE_MALLOC_POSIX misnomer.
14263         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
14264         !HAVE_MALLOC_POSIX.
14265         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
14266         HAVE_MALLOC_POSIX.
14267         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
14268         instead of HAVE_MALLOC_POSIX.
14269         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
14270         HAVE_MALLOC_POSIX.
14271
14272         Use modern idiom for malloc() replacement.
14273         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
14274         AC_FUNC_MALLOC.
14275         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
14276         Autoconf's AC_FUNC_MALLOC.
14277         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14278         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
14279         (gl_REPLACE_MALLOC): New macro.
14280         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14281
14282 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
14283
14284         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
14285         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
14286         This macro takes 3 arguments, not 4.
14287
14288 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
14289
14290         ipv6: fix detection under mingw
14291         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
14292         in6_addr.
14293
14294 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
14295
14296         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
14297         that strtod() works when cross-compiling to a glibc version known
14298         to work.
14299
14300 2010-06-15  Bruno Haible  <bruno@clisp.org>
14301
14302         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
14303
14304 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
14305
14306         select: Correct timeout.
14307         * lib/select.c (rpl_select): Compute wait_timeout correctly.
14308
14309 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14310
14311         git-version-gen: init shell var to avoid env var influence
14312         * build-aux/git-version-gen (v): Init shell var to empty.
14313
14314 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
14315
14316         priv-set: Don't assume that priv.h exists merely because getppriv does.
14317         See Jan Andersen's bug report about AIX 5L in
14318         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
14319         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
14320         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
14321         * lib/priv-set.h: Likewise.
14322         * tests/test-priv-set.c: Likewise.
14323
14324 2010-06-13  Bruno Haible  <bruno@clisp.org>
14325
14326         relocatable: Make it easier to test whether to install wrappers.
14327         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
14328         RELOCATABLE_VIA_WRAPPER.
14329
14330 2010-06-13  Bruno Haible  <bruno@clisp.org>
14331
14332         gnulib-tool: Display specified modules and dependencies differently.
14333         * gnulib-tool (func_show_module_list): New function.
14334         (func_import, func_create_testdir): Invoke it.
14335         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14336
14337 2010-06-13  Bruno Haible  <bruno@clisp.org>
14338
14339         gnulib-tool: Align code of func_import and func_create_testdir.
14340         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
14341         specified_modules.
14342
14343 2010-06-12  Jim Meyering  <meyering@redhat.com>
14344
14345         test-inttostr: avoid spurious failure on Solaris 9
14346         * tests/test-inttostr.c (main): Skip the test when snprintf fails
14347         to accept "%ju".  Reported by Bruno Haible.
14348
14349 2010-06-11  Jim Meyering  <meyering@redhat.com>
14350
14351         test-sys_socket: mark variables as used more readably
14352         * tests/test-sys_socket.c (main): Mark otherwise unused variables
14353         as "used" explicitly via (void) statement casts.  This is more
14354         readable than using them in an artificial return expression.
14355         Suggestion from Bruno Haible.
14356
14357 2010-06-11  Bruno Haible  <bruno@clisp.org>
14358
14359         Avoid some more warnings from "gcc -Wwrite-strings".
14360         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
14361         to 'const char *'.
14362         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
14363         * tests/test-c-strcasestr.c (main): Likewise.
14364         * tests/test-mbscasestr1.c (main): Likewise.
14365         * tests/test-mbscasestr2.c (main): Likewise.
14366         * tests/test-memmem.c (main): Likewise.
14367         * tests/test-strstr.c (main): Likewise.
14368         * tests/test-strcasestr.c (main): Likewise.
14369
14370 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14371
14372         init.sh: change framework_failure_ to fail with status 99, not 1
14373         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
14374         automake's parallel-tests rule that this is an unexpected failure,
14375         even if the test is listed in XFAIL_TESTS.
14376
14377 2010-06-11  Jim Meyering  <meyering@redhat.com>
14378
14379         test-inttostr: avoid warnings about 4-6KB literal strings
14380         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
14381         Include "macros.h", for its definition of ASSERT.
14382         (CK): s/assert/ASSERT/
14383         * modules/inttostr-tests (Files): Add macros.h.
14384
14385         init.sh: don't use $ME_ or skip_ before they are defined
14386         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
14387         their first uses.  Also hoist their companions: warn_, fail_,
14388         framework_failure_, $stderr_fileno.  Prompted by a patch from
14389         Stefano Lattarini.
14390
14391         test-sys_socket: avoid set-but-not-used warnings from gcc
14392         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
14393         avoid warning about set-but-not-used variables.
14394
14395         test-xvasprintf: avoid 'const' discard warnings
14396         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
14397         "const" when assigning from literal strings.
14398         (test_xasprintf): Add "void" in function argument list to placate
14399         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
14400
14401         tests: avoid compilation warnings in argmatch and exclude tests...
14402         in packages that define ARGMATCH_DIE_DECL, like coreutils.
14403         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
14404         Since it always exits, declare with the "noreturn" attribute.
14405         * tests/test-argmatch.c: Likewise.
14406
14407         tests: avoid 'const' discard warnings in mbsstr tests
14408         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
14409         * tests/test-mbsstr2.c (main): Likewise.
14410
14411         test-verify: avoid warning from gcc's -Wmissing-declarations
14412         * tests/test-verify.c (function): Declare to be static.
14413
14414         test-inttostr.c: include <string.h> for use of strcmp
14415         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
14416
14417         test-linkat: avoid failed assertion on "other" architectures
14418         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
14419         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
14420         sparc: https://bugs.launchpad.net/bugs/591968
14421
14422 2010-06-11  Jim Meyering  <meyering@redhat.com>
14423
14424         printf.m4: avoid autoconf's "Expanded Before Required" warning
14425         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
14426         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
14427         autoconf warning.
14428
14429 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
14430
14431         Replacement header templates are now named with ".in", not "_".
14432         * doc/gnulib-intro.texi: Correct.
14433
14434 2010-06-10  Jim Meyering  <meyering@redhat.com>
14435
14436         inttostr-tests: depend on snprintf, not snprintf-posix
14437         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
14438         snprintf-posix, to avoid this aclocal failure:
14439           missing file gnulib-tests/vasnprintf.c
14440           configure.ac:45: error: expected source file, required through \
14441           AC_LIBSOURCES, not found
14442
14443 2010-06-10  Jim Meyering  <meyering@redhat.com>
14444
14445         inttostr: add a new function, inttostr, and tests
14446         The namesake function was not available.  The existence of the
14447         template file, inttostr.c makes its addition nontrivial.
14448         * lib/anytostr.c: Rename from inttostr.c.
14449         (anytostr): Rename from inttostr.
14450         * lib/inttostr.c: New file.
14451         * modules/inttostr (Files): Add anytostr.c.
14452         (Makefile.am): Set lib_SOURCES instead of ...
14453         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
14454         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
14455         * lib/offtostr.c: Likewise.
14456         * lib/uinttostr.c: Likewise.
14457         * lib/umaxtostr.c: Likewise.
14458         * modules/inttostr-tests: New file.
14459         * tests/test-inttostr.c: New file.  Test these functions.
14460
14461 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
14462             Bruno Haible  <bruno@clisp.org>
14463
14464         Add "Extending Gnulib" chapter to manual.
14465         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
14466         chapter.
14467         (Extending Gnulib): New chapter.
14468         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
14469         chapter.
14470
14471 2010-06-09  Bruno Haible  <bruno@clisp.org>
14472
14473         Avoid relocwrapper link errors due to gnulib replacement functions.
14474         * lib/areadlink.c: Use the system's malloc, realloc functions.
14475         (areadlink): Set errno to ENOMEM explicitly.
14476         * modules/areadlink (Depends-on): Remove malloc-posix.
14477         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14478
14479 2010-06-09  Bruno Haible  <bruno@clisp.org>
14480
14481         Avoid relocwrapper link errors due to gnulib replacement functions.
14482         * lib/canonicalize-lgpl.c: Use the system's malloc function.
14483         * lib/malloca.c: Likewise.
14484         * lib/relocatable.c: Likewise.
14485         * lib/progreloc.c: Use the system's malloc, sprintf functions.
14486         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
14487         * lib/setenv.c: Use the system's malloc, realloc functions.
14488         * lib/strerror.c: Use the system's sprintf function.
14489         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14490
14491 2010-06-04  Bruno Haible  <bruno@clisp.org>
14492
14493         Prefer documented low-level autoconf macro names.
14494         * m4/lib-link.m4: Use m4_translit instead of translit.
14495         * m4/environ.m4: Likewise.
14496         * m4/mathfunc.m4: Likewise.
14497         * m4/onceonly.m4: Likewise.
14498         * m4/stdint.m4: Likewise.
14499         Suggested by Eric Blake.
14500
14501 2010-06-04  Martin Lambers  <marlam@marlam.de>
14502             Bruno Haible  <bruno@clisp.org>
14503
14504         havelib: Allow library names with '+' characters.
14505         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
14506         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
14507
14508 2010-06-09  Bruno Haible  <bruno@clisp.org>
14509
14510         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
14511         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
14512         realloc failed.
14513
14514 2010-06-08  Peter Simons  <simons@cryp.to>
14515
14516         maint.mk: make the news-check rule more configurable
14517         * top/maint.mk (news-check-lines-spec): New variable.
14518         (news-check): Use "sed -n 1,10p" in place of "head".
14519
14520 2010-06-07  Jim Meyering  <meyering@redhat.com>
14521
14522         do-release-commit-and-tag: fix typo in --help
14523         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
14524
14525         regex: avoid new dead-code warning with gcc-4.6.0
14526         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
14527         if-block containing a while-loop.  It's been unused for at least
14528         5 years.
14529
14530 2010-06-05  Bruno Haible  <bruno@clisp.org>
14531
14532         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
14533         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
14534
14535 2010-06-04  Bruno Haible  <bruno@clisp.org>
14536
14537         Update to GNU gettext 0.18.1.
14538         * modules/gettext (configure.ac): Require gettext infrastructure from
14539         version 0.18.1.
14540
14541 2010-06-03  Bruno Haible  <bruno@clisp.org>
14542
14543         Don't use AC_LIBOBJ with file names in subdirectories.
14544         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
14545         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
14546         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
14547         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
14548         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
14549         gl_LIBUNISTRING_LIBSOURCE.
14550         (Makefile.am): Augment lib_SOURCES here, conditionally.
14551         * NEWS: Drop requirement for Automake option 'subdir-objects'.
14552
14553 2010-06-03  Bruno Haible  <bruno@clisp.org>
14554
14555         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
14556         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
14557         expansion does not end with a newline.
14558         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
14559         unnecessary newline.
14560
14561 2010-06-03  Bruno Haible  <bruno@clisp.org>
14562
14563         Reduce dependencies.
14564         * tests/test-quotearg.h: New file, extracted from
14565         tests/test-quotearg.c.
14566         * tests/test-quotearg-simple.c: New file, extracted from
14567         tests/test-quotearg.c.
14568         * tests/test-quotearg.c: Don't include <ctype.h>.
14569         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
14570         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
14571         use_quote_double_quotes, use_quotearg_colon): Moved to
14572         tests/test-quotearg.h.
14573         (results_g, flag_results, custom_quotes, custom_results): Moved
14574         to tests/test-quotearg-simple.c.
14575         (main): Moved the part that does not depend on gettext to
14576         tests/test-quotearg-simple.c. Return 77 if the test cannot be
14577         performed.
14578         * modules/quotearg-simple: New file.
14579         * modules/quotearg-simple-tests: New file.
14580         * modules/quotearg (Depends-on): Add quotearg-simple.
14581         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
14582         (Files): Add tests/test-quotearg.h.
14583         Reported by Paolo Bonzini.
14584
14585 2010-06-03  Bruno Haible  <bruno@clisp.org>
14586
14587         Reduce dependencies.
14588         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
14589
14590 2010-06-03  Bruno Haible  <bruno@clisp.org>
14591
14592         time: Undefine more broken macros.
14593         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
14594         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
14595         Reported by Eric Blake.
14596
14597 2010-06-03  Bruno Haible  <bruno@clisp.org>
14598
14599         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
14600         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
14601         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
14602         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
14603         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
14604         Reported by Ludovic Courtès <ludo@gnu.org>.
14605
14606 2010-06-02  Eric Blake  <eblake@redhat.com>
14607
14608         time: work with mingw + pthreads-win32 library
14609         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
14610         if timespec is defined only in pthread.h.
14611         * modules/time (Makefile.am): Substitute it.
14612         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
14613         <pthread.h>, when needed.
14614         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
14615         from the library.
14616
14617 2010-05-31  Bruno Haible  <bruno@clisp.org>
14618
14619         Avoid expanding two macros in the wrong order.
14620         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
14621         gl_LIBUNISTRING if it is defined.
14622         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
14623         autoconf >= 2.64.
14624         Reported by Ludovic Courtès <ludo@gnu.org>.
14625
14626 2010-05-27  Jim Meyering  <meyering@redhat.com>
14627
14628         maint.mk: also prohibit "#undef" of always-defined symbols
14629         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
14630         Allow more than one space before the symbol name.
14631         (sc_prohibit_always-defined_macros): Use grep's -E, now that
14632         the regexp uses alternation.
14633
14634 2010-05-26  Eric Blake  <eblake@redhat.com>
14635
14636         maint.mk: avoid echo -e
14637         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
14638         Convert all uses of echo -* to printf.
14639         Reported by Matthias Bolte.
14640
14641 2010-05-25  Bruno Haible  <bruno@clisp.org>
14642
14643         Update to GNU gettext 0.18, part 2.
14644         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
14645         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
14646
14647 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14648
14649         Add missing include in test-pwrite.c.
14650         * tests/test-pwrite.c: Include string.h, for strcmp.
14651
14652 2010-05-24  Bruno Haible  <bruno@clisp.org>
14653
14654         * NEWS: Mention requirement for Automake option 'subdir-objects'.
14655
14656 2010-05-24  Bruno Haible  <bruno@clisp.org>
14657
14658         Don't use conversion with transliteration in u{8,16,32}_strcoll.
14659         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
14660         iconveh_error argument.
14661         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
14662         U_STRCONV_TO_LOCALE.
14663         * lib/unistr/u16-strcoll.c: Likewise.
14664         * lib/unistr/u32-strcoll.c: Likewise.
14665         * modules/unistr/u8-strcoll (Depends-on): Add
14666         uniconv/u8-strconv-to-enc, localcharset. Remove
14667         uniconv/u8-strconv-to-locale.
14668         (configure.ac): Bump version number.
14669         * modules/unistr/u16-strcoll (Depends-on): Add
14670         uniconv/u16-strconv-to-enc, localcharset. Remove
14671         uniconv/u16-strconv-to-locale.
14672         (configure.ac): Bump version number.
14673         * modules/unistr/u32-strcoll (Depends-on): Add
14674         uniconv/u32-strconv-to-enc, localcharset. Remove
14675         uniconv/u32-strconv-to-locale.
14676         (configure.ac): Bump version number.
14677
14678 2010-05-24  Bruno Haible  <bruno@clisp.org>
14679
14680         Avoid a test failure on NetBSD 5.0.
14681         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
14682         an iconv() bug.
14683
14684 2010-05-24  Bruno Haible  <bruno@clisp.org>
14685
14686         Adjust #include directive style.
14687         * modules/regex (Includes): Recommend to write <regex.h>.
14688
14689 2010-05-24  Bruno Haible  <bruno@clisp.org>
14690
14691         regex: Don't require alloca.
14692         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
14693         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
14694         only inside if (0).
14695
14696 2010-05-23  Jim Meyering  <meyering@redhat.com>
14697
14698         test-renameat.c: include <sys/stat.h>
14699         * tests/test-renameat.c: Include <sys/stat.h>; required for
14700         definition of S_IS* macros.
14701
14702 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
14703
14704         Update maintainer documentation for 'relocatable-prog' module.
14705         * doc/relocatable-maint.texi: Update.
14706         Comments by Bruno Haible.
14707
14708 2010-05-23  Bruno Haible  <bruno@clisp.org>
14709
14710         git-merge-changelog: Enable --split-merged-entry by default.
14711         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
14712         (usage): Don't mention this option any more.
14713         Reported by Ralf Wildenhues.
14714
14715 2010-05-23  Jim Meyering  <meyering@redhat.com>
14716
14717         test-pwrite: do not leave behind a test file named "out"
14718         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
14719         The trivial-looking use of init.sh is really necessary.
14720         It ensures that the temporary file, "out", is created in
14721         a temporary directory, and removed upon termination.
14722         * tests/test-pwrite.sh: Re-add file.
14723         * modules/pwrite-tests: Reference it.
14724
14725 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14726
14727         Fix output redirection buglet in init.sh.
14728         * tests/init.sh: Fix redirection of stderr.
14729
14730 2010-05-20  Simon Josefsson  <simon@josefsson.org>
14731
14732         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
14733
14734 2010-05-17  Simon Josefsson  <simon@josefsson.org>
14735
14736         * modules/valgrind-tests: New file.
14737         * m4/valgrind-tests.m4: New file.
14738         * doc/valgrind-tests.texi: New file.
14739         * doc/gnulib.texi (Running self-tests under valgrind): New
14740         section.
14741
14742 2010-05-19  Bruno Haible  <bruno@clisp.org>
14743
14744         Clean up dead code in recent commit.
14745         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
14746         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
14747         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
14748         Suggested by Paolo Bonzini.
14749
14750 2010-05-19  Bruno Haible  <bruno@clisp.org>
14751
14752         Avoid valgrind error reports from libunistring.
14753         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
14754         * modules/libunistring (Files): Add it.
14755         * modules/libunistring-optional (Files): Likewise.
14756
14757 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
14758             Bruno Haible  <bruno@clisp.org>
14759
14760         New module 'libunistring-optional'.
14761         * modules/libunistring-optional: New file.
14762         * m4/libunistring-base.m4: New file.
14763         * m4/libunistring-optional.m4: New file.
14764         * lib/unicase.in.h: Renamed from lib/unicase.h.
14765         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
14766         * lib/unictype.in.h: Renamed from lib/unictype.h.
14767         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
14768         * lib/uniname.in.h: Renamed from lib/uniname.h.
14769         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
14770         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
14771         * lib/unistr.in.h: Renamed from lib/unistr.h.
14772         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
14773         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
14774         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
14775         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
14776         gl_LIBUNISTRING. If the library was found, determine the installed
14777         version and set LIBUNISTRING_VERSION.
14778         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
14779         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
14780         handle a configuration option --with-included-libunistring.
14781         * modules/libunistring (Files): Add m4/absolute-header.m4.
14782         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
14783         Add m4/libunistring-base.m4.
14784         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14785         (Makefile.am): Build unicase.h from unicase.in.h.
14786         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
14787         Add m4/libunistring-base.m4.
14788         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14789         (Makefile.am): Build uniconv.h from uniconv.in.h.
14790         * modules/unictype/base (Files): Use unictype.in.h instead of
14791         unictype.h. Add m4/libunistring-base.m4.
14792         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14793         (Makefile.am): Build unictype.h from unictype.in.h.
14794         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
14795         Add m4/libunistring-base.m4.
14796         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14797         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
14798         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
14799         Add m4/libunistring-base.m4.
14800         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14801         (Makefile.am): Build uniname.h from uniname.in.h.
14802         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
14803         Add m4/libunistring-base.m4.
14804         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14805         (Makefile.am): Build uninorm.h from uninorm.in.h.
14806         * modules/unistdio/base (Files): Use unistdio.in.h instead of
14807         unistdio.h. Add m4/libunistring-base.m4.
14808         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14809         (Makefile.am): Build unistdio.h from unistdio.in.h.
14810         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
14811         Add m4/libunistring-base.m4.
14812         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14813         (Makefile.am): Build unistr.h from unistr.in.h.
14814         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
14815         Add m4/libunistring-base.m4.
14816         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14817         (Makefile.am): Build unitypes.h from unitypes.in.h.
14818         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
14819         Add m4/libunistring-base.m4.
14820         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14821         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
14822         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
14823         uniwidth.h. Add m4/libunistring-base.m4.
14824         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14825         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
14826         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
14827         instead of augmenting lib_SOURCES.
14828         * modules/unicase/empty-suffix-context: Likewise.
14829         * modules/unicase/locale-language: Likewise.
14830         * modules/unicase/tolower: Likewise.
14831         * modules/unicase/totitle: Likewise.
14832         * modules/unicase/toupper: Likewise.
14833         * modules/unicase/u8-casecmp: Likewise.
14834         * modules/unicase/u8-casecoll: Likewise.
14835         * modules/unicase/u8-casefold: Likewise.
14836         * modules/unicase/u8-casexfrm: Likewise.
14837         * modules/unicase/u8-ct-casefold: Likewise.
14838         * modules/unicase/u8-ct-tolower: Likewise.
14839         * modules/unicase/u8-ct-totitle: Likewise.
14840         * modules/unicase/u8-ct-toupper: Likewise.
14841         * modules/unicase/u8-is-cased: Likewise.
14842         * modules/unicase/u8-is-casefolded: Likewise.
14843         * modules/unicase/u8-is-lowercase: Likewise.
14844         * modules/unicase/u8-is-titlecase: Likewise.
14845         * modules/unicase/u8-is-uppercase: Likewise.
14846         * modules/unicase/u8-prefix-context: Likewise.
14847         * modules/unicase/u8-suffix-context: Likewise.
14848         * modules/unicase/u8-tolower: Likewise.
14849         * modules/unicase/u8-totitle: Likewise.
14850         * modules/unicase/u8-toupper: Likewise.
14851         * modules/unicase/u16-casecmp: Likewise.
14852         * modules/unicase/u16-casecoll: Likewise.
14853         * modules/unicase/u16-casefold: Likewise.
14854         * modules/unicase/u16-casexfrm: Likewise.
14855         * modules/unicase/u16-ct-casefold: Likewise.
14856         * modules/unicase/u16-ct-tolower: Likewise.
14857         * modules/unicase/u16-ct-totitle: Likewise.
14858         * modules/unicase/u16-ct-toupper: Likewise.
14859         * modules/unicase/u16-is-cased: Likewise.
14860         * modules/unicase/u16-is-casefolded: Likewise.
14861         * modules/unicase/u16-is-lowercase: Likewise.
14862         * modules/unicase/u16-is-titlecase: Likewise.
14863         * modules/unicase/u16-is-uppercase: Likewise.
14864         * modules/unicase/u16-prefix-context: Likewise.
14865         * modules/unicase/u16-suffix-context: Likewise.
14866         * modules/unicase/u16-tolower: Likewise.
14867         * modules/unicase/u16-totitle: Likewise.
14868         * modules/unicase/u16-toupper: Likewise.
14869         * modules/unicase/u32-casecmp: Likewise.
14870         * modules/unicase/u32-casecoll: Likewise.
14871         * modules/unicase/u32-casefold: Likewise.
14872         * modules/unicase/u32-casexfrm: Likewise.
14873         * modules/unicase/u32-ct-casefold: Likewise.
14874         * modules/unicase/u32-ct-tolower: Likewise.
14875         * modules/unicase/u32-ct-totitle: Likewise.
14876         * modules/unicase/u32-ct-toupper: Likewise.
14877         * modules/unicase/u32-is-cased: Likewise.
14878         * modules/unicase/u32-is-casefolded: Likewise.
14879         * modules/unicase/u32-is-lowercase: Likewise.
14880         * modules/unicase/u32-is-titlecase: Likewise.
14881         * modules/unicase/u32-is-uppercase: Likewise.
14882         * modules/unicase/u32-prefix-context: Likewise.
14883         * modules/unicase/u32-suffix-context: Likewise.
14884         * modules/unicase/u32-tolower: Likewise.
14885         * modules/unicase/u32-totitle: Likewise.
14886         * modules/unicase/u32-toupper: Likewise.
14887         * modules/unicase/ulc-casecmp: Likewise.
14888         * modules/unicase/ulc-casecoll: Likewise.
14889         * modules/unicase/ulc-casexfrm: Likewise.
14890         * modules/uniconv/u8-conv-from-enc: Likewise.
14891         * modules/uniconv/u8-conv-to-enc: Likewise.
14892         * modules/uniconv/u8-strconv-from-enc: Likewise.
14893         * modules/uniconv/u8-strconv-from-locale: Likewise.
14894         * modules/uniconv/u8-strconv-to-enc: Likewise.
14895         * modules/uniconv/u8-strconv-to-locale: Likewise.
14896         * modules/uniconv/u16-conv-from-enc: Likewise.
14897         * modules/uniconv/u16-conv-to-enc: Likewise.
14898         * modules/uniconv/u16-strconv-from-enc: Likewise.
14899         * modules/uniconv/u16-strconv-from-locale: Likewise.
14900         * modules/uniconv/u16-strconv-to-enc: Likewise.
14901         * modules/uniconv/u16-strconv-to-locale: Likewise.
14902         * modules/uniconv/u32-conv-from-enc: Likewise.
14903         * modules/uniconv/u32-conv-to-enc: Likewise.
14904         * modules/uniconv/u32-strconv-from-enc: Likewise.
14905         * modules/uniconv/u32-strconv-from-locale: Likewise.
14906         * modules/uniconv/u32-strconv-to-enc: Likewise.
14907         * modules/uniconv/u32-strconv-to-locale: Likewise.
14908         * modules/unictype/bidicategory-byname: Likewise.
14909         * modules/unictype/bidicategory-name: Likewise.
14910         * modules/unictype/bidicategory-of: Likewise.
14911         * modules/unictype/bidicategory-test: Likewise.
14912         * modules/unictype/block-list: Likewise.
14913         * modules/unictype/block-test: Likewise.
14914         * modules/unictype/category-C: Likewise.
14915         * modules/unictype/category-Cc: Likewise.
14916         * modules/unictype/category-Cf: Likewise.
14917         * modules/unictype/category-Cn: Likewise.
14918         * modules/unictype/category-Co: Likewise.
14919         * modules/unictype/category-Cs: Likewise.
14920         * modules/unictype/category-L: Likewise.
14921         * modules/unictype/category-Ll: Likewise.
14922         * modules/unictype/category-Lm: Likewise.
14923         * modules/unictype/category-Lo: Likewise.
14924         * modules/unictype/category-Lt: Likewise.
14925         * modules/unictype/category-Lu: Likewise.
14926         * modules/unictype/category-M: Likewise.
14927         * modules/unictype/category-Mc: Likewise.
14928         * modules/unictype/category-Me: Likewise.
14929         * modules/unictype/category-Mn: Likewise.
14930         * modules/unictype/category-N: Likewise.
14931         * modules/unictype/category-Nd: Likewise.
14932         * modules/unictype/category-Nl: Likewise.
14933         * modules/unictype/category-No: Likewise.
14934         * modules/unictype/category-P: Likewise.
14935         * modules/unictype/category-Pc: Likewise.
14936         * modules/unictype/category-Pd: Likewise.
14937         * modules/unictype/category-Pe: Likewise.
14938         * modules/unictype/category-Pf: Likewise.
14939         * modules/unictype/category-Pi: Likewise.
14940         * modules/unictype/category-Po: Likewise.
14941         * modules/unictype/category-Ps: Likewise.
14942         * modules/unictype/category-S: Likewise.
14943         * modules/unictype/category-Sc: Likewise.
14944         * modules/unictype/category-Sk: Likewise.
14945         * modules/unictype/category-Sm: Likewise.
14946         * modules/unictype/category-So: Likewise.
14947         * modules/unictype/category-Z: Likewise.
14948         * modules/unictype/category-Zl: Likewise.
14949         * modules/unictype/category-Zp: Likewise.
14950         * modules/unictype/category-Zs: Likewise.
14951         * modules/unictype/category-and: Likewise.
14952         * modules/unictype/category-and-not: Likewise.
14953         * modules/unictype/category-byname: Likewise.
14954         * modules/unictype/category-name: Likewise.
14955         * modules/unictype/category-none: Likewise.
14956         * modules/unictype/category-of: Likewise.
14957         * modules/unictype/category-or: Likewise.
14958         * modules/unictype/category-test: Likewise.
14959         * modules/unictype/combining-class: Likewise.
14960         * modules/unictype/ctype-alnum: Likewise.
14961         * modules/unictype/ctype-alpha: Likewise.
14962         * modules/unictype/ctype-blank: Likewise.
14963         * modules/unictype/ctype-cntrl: Likewise.
14964         * modules/unictype/ctype-digit: Likewise.
14965         * modules/unictype/ctype-graph: Likewise.
14966         * modules/unictype/ctype-lower: Likewise.
14967         * modules/unictype/ctype-print: Likewise.
14968         * modules/unictype/ctype-punct: Likewise.
14969         * modules/unictype/ctype-space: Likewise.
14970         * modules/unictype/ctype-upper: Likewise.
14971         * modules/unictype/ctype-xdigit: Likewise.
14972         * modules/unictype/decimal-digit: Likewise.
14973         * modules/unictype/digit: Likewise.
14974         * modules/unictype/mirror: Likewise.
14975         * modules/unictype/numeric: Likewise.
14976         * modules/unictype/property-alphabetic: Likewise.
14977         * modules/unictype/property-ascii-hex-digit: Likewise.
14978         * modules/unictype/property-bidi-arabic-digit: Likewise.
14979         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
14980         * modules/unictype/property-bidi-block-separator: Likewise.
14981         * modules/unictype/property-bidi-boundary-neutral: Likewise.
14982         * modules/unictype/property-bidi-common-separator: Likewise.
14983         * modules/unictype/property-bidi-control: Likewise.
14984         * modules/unictype/property-bidi-embedding-or-override: Likewise.
14985         * modules/unictype/property-bidi-eur-num-separator: Likewise.
14986         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
14987         * modules/unictype/property-bidi-european-digit: Likewise.
14988         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
14989         * modules/unictype/property-bidi-left-to-right: Likewise.
14990         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
14991         * modules/unictype/property-bidi-other-neutral: Likewise.
14992         * modules/unictype/property-bidi-pdf: Likewise.
14993         * modules/unictype/property-bidi-segment-separator: Likewise.
14994         * modules/unictype/property-bidi-whitespace: Likewise.
14995         * modules/unictype/property-byname: Likewise.
14996         * modules/unictype/property-combining: Likewise.
14997         * modules/unictype/property-composite: Likewise.
14998         * modules/unictype/property-currency-symbol: Likewise.
14999         * modules/unictype/property-dash: Likewise.
15000         * modules/unictype/property-decimal-digit: Likewise.
15001         * modules/unictype/property-default-ignorable-code-point: Likewise.
15002         * modules/unictype/property-deprecated: Likewise.
15003         * modules/unictype/property-diacritic: Likewise.
15004         * modules/unictype/property-extender: Likewise.
15005         * modules/unictype/property-format-control: Likewise.
15006         * modules/unictype/property-grapheme-base: Likewise.
15007         * modules/unictype/property-grapheme-extend: Likewise.
15008         * modules/unictype/property-grapheme-link: Likewise.
15009         * modules/unictype/property-hex-digit: Likewise.
15010         * modules/unictype/property-hyphen: Likewise.
15011         * modules/unictype/property-id-continue: Likewise.
15012         * modules/unictype/property-id-start: Likewise.
15013         * modules/unictype/property-ideographic: Likewise.
15014         * modules/unictype/property-ids-binary-operator: Likewise.
15015         * modules/unictype/property-ids-trinary-operator: Likewise.
15016         * modules/unictype/property-ignorable-control: Likewise.
15017         * modules/unictype/property-iso-control: Likewise.
15018         * modules/unictype/property-join-control: Likewise.
15019         * modules/unictype/property-left-of-pair: Likewise.
15020         * modules/unictype/property-line-separator: Likewise.
15021         * modules/unictype/property-logical-order-exception: Likewise.
15022         * modules/unictype/property-lowercase: Likewise.
15023         * modules/unictype/property-math: Likewise.
15024         * modules/unictype/property-non-break: Likewise.
15025         * modules/unictype/property-not-a-character: Likewise.
15026         * modules/unictype/property-numeric: Likewise.
15027         * modules/unictype/property-other-alphabetic: Likewise.
15028         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
15029         * modules/unictype/property-other-grapheme-extend: Likewise.
15030         * modules/unictype/property-other-id-continue: Likewise.
15031         * modules/unictype/property-other-id-start: Likewise.
15032         * modules/unictype/property-other-lowercase: Likewise.
15033         * modules/unictype/property-other-math: Likewise.
15034         * modules/unictype/property-other-uppercase: Likewise.
15035         * modules/unictype/property-paired-punctuation: Likewise.
15036         * modules/unictype/property-paragraph-separator: Likewise.
15037         * modules/unictype/property-pattern-syntax: Likewise.
15038         * modules/unictype/property-pattern-white-space: Likewise.
15039         * modules/unictype/property-private-use: Likewise.
15040         * modules/unictype/property-punctuation: Likewise.
15041         * modules/unictype/property-quotation-mark: Likewise.
15042         * modules/unictype/property-radical: Likewise.
15043         * modules/unictype/property-sentence-terminal: Likewise.
15044         * modules/unictype/property-soft-dotted: Likewise.
15045         * modules/unictype/property-space: Likewise.
15046         * modules/unictype/property-terminal-punctuation: Likewise.
15047         * modules/unictype/property-test: Likewise.
15048         * modules/unictype/property-titlecase: Likewise.
15049         * modules/unictype/property-unassigned-code-value: Likewise.
15050         * modules/unictype/property-unified-ideograph: Likewise.
15051         * modules/unictype/property-uppercase: Likewise.
15052         * modules/unictype/property-variation-selector: Likewise.
15053         * modules/unictype/property-white-space: Likewise.
15054         * modules/unictype/property-xid-continue: Likewise.
15055         * modules/unictype/property-xid-start: Likewise.
15056         * modules/unictype/property-zero-width: Likewise.
15057         * modules/unictype/scripts: Likewise.
15058         * modules/unictype/syntax-c-ident: Likewise.
15059         * modules/unictype/syntax-c-whitespace: Likewise.
15060         * modules/unictype/syntax-java-ident: Likewise.
15061         * modules/unictype/syntax-java-whitespace: Likewise.
15062         * modules/unilbrk/u8-possible-linebreaks: Likewise.
15063         * modules/unilbrk/u8-width-linebreaks: Likewise.
15064         * modules/unilbrk/u16-possible-linebreaks: Likewise.
15065         * modules/unilbrk/u16-width-linebreaks: Likewise.
15066         * modules/unilbrk/u32-possible-linebreaks: Likewise.
15067         * modules/unilbrk/u32-width-linebreaks: Likewise.
15068         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
15069         * modules/unilbrk/ulc-width-linebreaks: Likewise.
15070         * modules/uniname/uniname: Likewise.
15071         * modules/uninorm/canonical-decomposition: Likewise.
15072         * modules/uninorm/composition: Likewise.
15073         * modules/uninorm/decomposing-form: Likewise.
15074         * modules/uninorm/decomposition: Likewise.
15075         * modules/uninorm/filter: Likewise.
15076         * modules/uninorm/nfc: Likewise.
15077         * modules/uninorm/nfd: Likewise.
15078         * modules/uninorm/nfkc: Likewise.
15079         * modules/uninorm/nfkd: Likewise.
15080         * modules/uninorm/u8-normalize: Likewise.
15081         * modules/uninorm/u8-normcmp: Likewise.
15082         * modules/uninorm/u8-normcoll: Likewise.
15083         * modules/uninorm/u8-normxfrm: Likewise.
15084         * modules/uninorm/u16-normalize: Likewise.
15085         * modules/uninorm/u16-normcmp: Likewise.
15086         * modules/uninorm/u16-normcoll: Likewise.
15087         * modules/uninorm/u16-normxfrm: Likewise.
15088         * modules/uninorm/u32-normalize: Likewise.
15089         * modules/uninorm/u32-normcmp: Likewise.
15090         * modules/uninorm/u32-normcoll: Likewise.
15091         * modules/uninorm/u32-normxfrm: Likewise.
15092         * modules/unistdio/u8-asnprintf: Likewise.
15093         * modules/unistdio/u8-asprintf: Likewise.
15094         * modules/unistdio/u8-snprintf: Likewise.
15095         * modules/unistdio/u8-sprintf: Likewise.
15096         * modules/unistdio/u8-u8-asnprintf: Likewise.
15097         * modules/unistdio/u8-u8-asprintf: Likewise.
15098         * modules/unistdio/u8-u8-snprintf: Likewise.
15099         * modules/unistdio/u8-u8-sprintf: Likewise.
15100         * modules/unistdio/u8-u8-vasnprintf: Likewise.
15101         * modules/unistdio/u8-u8-vasprintf: Likewise.
15102         * modules/unistdio/u8-u8-vsnprintf: Likewise.
15103         * modules/unistdio/u8-u8-vsprintf: Likewise.
15104         * modules/unistdio/u8-vasnprintf: Likewise.
15105         * modules/unistdio/u8-vasprintf: Likewise.
15106         * modules/unistdio/u8-vsnprintf: Likewise.
15107         * modules/unistdio/u8-vsprintf: Likewise.
15108         * modules/unistdio/u16-asnprintf: Likewise.
15109         * modules/unistdio/u16-asprintf: Likewise.
15110         * modules/unistdio/u16-snprintf: Likewise.
15111         * modules/unistdio/u16-sprintf: Likewise.
15112         * modules/unistdio/u16-u16-asnprintf: Likewise.
15113         * modules/unistdio/u16-u16-asprintf: Likewise.
15114         * modules/unistdio/u16-u16-snprintf: Likewise.
15115         * modules/unistdio/u16-u16-sprintf: Likewise.
15116         * modules/unistdio/u16-u16-vasnprintf: Likewise.
15117         * modules/unistdio/u16-u16-vasprintf: Likewise.
15118         * modules/unistdio/u16-u16-vsnprintf: Likewise.
15119         * modules/unistdio/u16-u16-vsprintf: Likewise.
15120         * modules/unistdio/u16-vasnprintf: Likewise.
15121         * modules/unistdio/u16-vasprintf: Likewise.
15122         * modules/unistdio/u16-vsnprintf: Likewise.
15123         * modules/unistdio/u16-vsprintf: Likewise.
15124         * modules/unistdio/u32-asnprintf: Likewise.
15125         * modules/unistdio/u32-asprintf: Likewise.
15126         * modules/unistdio/u32-snprintf: Likewise.
15127         * modules/unistdio/u32-sprintf: Likewise.
15128         * modules/unistdio/u32-u32-asnprintf: Likewise.
15129         * modules/unistdio/u32-u32-asprintf: Likewise.
15130         * modules/unistdio/u32-u32-snprintf: Likewise.
15131         * modules/unistdio/u32-u32-sprintf: Likewise.
15132         * modules/unistdio/u32-u32-vasnprintf: Likewise.
15133         * modules/unistdio/u32-u32-vasprintf: Likewise.
15134         * modules/unistdio/u32-u32-vsnprintf: Likewise.
15135         * modules/unistdio/u32-u32-vsprintf: Likewise.
15136         * modules/unistdio/u32-vasnprintf: Likewise.
15137         * modules/unistdio/u32-vasprintf: Likewise.
15138         * modules/unistdio/u32-vsnprintf: Likewise.
15139         * modules/unistdio/u32-vsprintf: Likewise.
15140         * modules/unistdio/ulc-asnprintf: Likewise.
15141         * modules/unistdio/ulc-asprintf: Likewise.
15142         * modules/unistdio/ulc-fprintf: Likewise.
15143         * modules/unistdio/ulc-snprintf: Likewise.
15144         * modules/unistdio/ulc-sprintf: Likewise.
15145         * modules/unistdio/ulc-vasnprintf: Likewise.
15146         * modules/unistdio/ulc-vasprintf: Likewise.
15147         * modules/unistdio/ulc-vfprintf: Likewise.
15148         * modules/unistdio/ulc-vsnprintf: Likewise.
15149         * modules/unistdio/ulc-vsprintf: Likewise.
15150         * modules/unistr/u8-check: Likewise.
15151         * modules/unistr/u8-chr: Likewise.
15152         * modules/unistr/u8-cmp: Likewise.
15153         * modules/unistr/u8-cmp2: Likewise.
15154         * modules/unistr/u8-cpy: Likewise.
15155         * modules/unistr/u8-cpy-alloc: Likewise.
15156         * modules/unistr/u8-endswith: Likewise.
15157         * modules/unistr/u8-mblen: Likewise.
15158         * modules/unistr/u8-mbsnlen: Likewise.
15159         * modules/unistr/u8-mbtouc: Likewise.
15160         * modules/unistr/u8-mbtouc-unsafe: Likewise.
15161         * modules/unistr/u8-mbtoucr: Likewise.
15162         * modules/unistr/u8-move: Likewise.
15163         * modules/unistr/u8-next: Likewise.
15164         * modules/unistr/u8-prev: Likewise.
15165         * modules/unistr/u8-set: Likewise.
15166         * modules/unistr/u8-startswith: Likewise.
15167         * modules/unistr/u8-stpcpy: Likewise.
15168         * modules/unistr/u8-stpncpy: Likewise.
15169         * modules/unistr/u8-strcat: Likewise.
15170         * modules/unistr/u8-strchr: Likewise.
15171         * modules/unistr/u8-strcmp: Likewise.
15172         * modules/unistr/u8-strcoll: Likewise.
15173         * modules/unistr/u8-strcpy: Likewise.
15174         * modules/unistr/u8-strcspn: Likewise.
15175         * modules/unistr/u8-strdup: Likewise.
15176         * modules/unistr/u8-strlen: Likewise.
15177         * modules/unistr/u8-strmblen: Likewise.
15178         * modules/unistr/u8-strmbtouc: Likewise.
15179         * modules/unistr/u8-strncat: Likewise.
15180         * modules/unistr/u8-strncmp: Likewise.
15181         * modules/unistr/u8-strncpy: Likewise.
15182         * modules/unistr/u8-strnlen: Likewise.
15183         * modules/unistr/u8-strpbrk: Likewise.
15184         * modules/unistr/u8-strrchr: Likewise.
15185         * modules/unistr/u8-strspn: Likewise.
15186         * modules/unistr/u8-strstr: Likewise.
15187         * modules/unistr/u8-strtok: Likewise.
15188         * modules/unistr/u8-to-u16: Likewise.
15189         * modules/unistr/u8-to-u32: Likewise.
15190         * modules/unistr/u8-uctomb: Likewise.
15191         * modules/unistr/u16-check: Likewise.
15192         * modules/unistr/u16-chr: Likewise.
15193         * modules/unistr/u16-cmp: Likewise.
15194         * modules/unistr/u16-cmp2: Likewise.
15195         * modules/unistr/u16-cpy: Likewise.
15196         * modules/unistr/u16-cpy-alloc: Likewise.
15197         * modules/unistr/u16-endswith: Likewise.
15198         * modules/unistr/u16-mblen: Likewise.
15199         * modules/unistr/u16-mbsnlen: Likewise.
15200         * modules/unistr/u16-mbtouc: Likewise.
15201         * modules/unistr/u16-mbtouc-unsafe: Likewise.
15202         * modules/unistr/u16-mbtoucr: Likewise.
15203         * modules/unistr/u16-move: Likewise.
15204         * modules/unistr/u16-next: Likewise.
15205         * modules/unistr/u16-prev: Likewise.
15206         * modules/unistr/u16-set: Likewise.
15207         * modules/unistr/u16-startswith: Likewise.
15208         * modules/unistr/u16-stpcpy: Likewise.
15209         * modules/unistr/u16-stpncpy: Likewise.
15210         * modules/unistr/u16-strcat: Likewise.
15211         * modules/unistr/u16-strchr: Likewise.
15212         * modules/unistr/u16-strcmp: Likewise.
15213         * modules/unistr/u16-strcoll: Likewise.
15214         * modules/unistr/u16-strcpy: Likewise.
15215         * modules/unistr/u16-strcspn: Likewise.
15216         * modules/unistr/u16-strdup: Likewise.
15217         * modules/unistr/u16-strlen: Likewise.
15218         * modules/unistr/u16-strmblen: Likewise.
15219         * modules/unistr/u16-strmbtouc: Likewise.
15220         * modules/unistr/u16-strncat: Likewise.
15221         * modules/unistr/u16-strncmp: Likewise.
15222         * modules/unistr/u16-strncpy: Likewise.
15223         * modules/unistr/u16-strnlen: Likewise.
15224         * modules/unistr/u16-strpbrk: Likewise.
15225         * modules/unistr/u16-strrchr: Likewise.
15226         * modules/unistr/u16-strspn: Likewise.
15227         * modules/unistr/u16-strstr: Likewise.
15228         * modules/unistr/u16-strtok: Likewise.
15229         * modules/unistr/u16-to-u32: Likewise.
15230         * modules/unistr/u16-to-u8: Likewise.
15231         * modules/unistr/u16-uctomb: Likewise.
15232         * modules/unistr/u32-check: Likewise.
15233         * modules/unistr/u32-chr: Likewise.
15234         * modules/unistr/u32-cmp: Likewise.
15235         * modules/unistr/u32-cmp2: Likewise.
15236         * modules/unistr/u32-cpy: Likewise.
15237         * modules/unistr/u32-cpy-alloc: Likewise.
15238         * modules/unistr/u32-endswith: Likewise.
15239         * modules/unistr/u32-mblen: Likewise.
15240         * modules/unistr/u32-mbsnlen: Likewise.
15241         * modules/unistr/u32-mbtouc: Likewise.
15242         * modules/unistr/u32-mbtouc-unsafe: Likewise.
15243         * modules/unistr/u32-mbtoucr: Likewise.
15244         * modules/unistr/u32-move: Likewise.
15245         * modules/unistr/u32-next: Likewise.
15246         * modules/unistr/u32-prev: Likewise.
15247         * modules/unistr/u32-set: Likewise.
15248         * modules/unistr/u32-startswith: Likewise.
15249         * modules/unistr/u32-stpcpy: Likewise.
15250         * modules/unistr/u32-stpncpy: Likewise.
15251         * modules/unistr/u32-strcat: Likewise.
15252         * modules/unistr/u32-strchr: Likewise.
15253         * modules/unistr/u32-strcmp: Likewise.
15254         * modules/unistr/u32-strcoll: Likewise.
15255         * modules/unistr/u32-strcpy: Likewise.
15256         * modules/unistr/u32-strcspn: Likewise.
15257         * modules/unistr/u32-strdup: Likewise.
15258         * modules/unistr/u32-strlen: Likewise.
15259         * modules/unistr/u32-strmblen: Likewise.
15260         * modules/unistr/u32-strmbtouc: Likewise.
15261         * modules/unistr/u32-strncat: Likewise.
15262         * modules/unistr/u32-strncmp: Likewise.
15263         * modules/unistr/u32-strncpy: Likewise.
15264         * modules/unistr/u32-strnlen: Likewise.
15265         * modules/unistr/u32-strpbrk: Likewise.
15266         * modules/unistr/u32-strrchr: Likewise.
15267         * modules/unistr/u32-strspn: Likewise.
15268         * modules/unistr/u32-strstr: Likewise.
15269         * modules/unistr/u32-strtok: Likewise.
15270         * modules/unistr/u32-to-u16: Likewise.
15271         * modules/unistr/u32-to-u8: Likewise.
15272         * modules/unistr/u32-uctomb: Likewise.
15273         * modules/uniwbrk/u8-wordbreaks: Likewise.
15274         * modules/uniwbrk/u16-wordbreaks: Likewise.
15275         * modules/uniwbrk/u32-wordbreaks: Likewise.
15276         * modules/uniwbrk/ulc-wordbreaks: Likewise.
15277         * modules/uniwbrk/wordbreak-property: Likewise.
15278         * modules/uniwidth/u8-strwidth: Likewise.
15279         * modules/uniwidth/u8-width: Likewise.
15280         * modules/uniwidth/u16-strwidth: Likewise.
15281         * modules/uniwidth/u16-width: Likewise.
15282         * modules/uniwidth/u32-strwidth: Likewise.
15283         * modules/uniwidth/u32-width: Likewise.
15284         * modules/uniwidth/width: Likewise.
15285         * modules/unicase/cased-tests (Makefile.am): Link all test programs
15286         with $(LIBUNISTRING).
15287         * modules/unicase/ignorable-tests: Likewise.
15288         * modules/unicase/locale-language-tests: Likewise.
15289         * modules/unicase/tolower-tests: Likewise.
15290         * modules/unicase/totitle-tests: Likewise.
15291         * modules/unicase/toupper-tests: Likewise.
15292         * modules/unicase/u8-casecmp-tests: Likewise.
15293         * modules/unicase/u8-casecoll-tests: Likewise.
15294         * modules/unicase/u8-casefold-tests: Likewise.
15295         * modules/unicase/u8-is-cased-tests: Likewise.
15296         * modules/unicase/u8-is-casefolded-tests: Likewise.
15297         * modules/unicase/u8-is-lowercase-tests: Likewise.
15298         * modules/unicase/u8-is-titlecase-tests: Likewise.
15299         * modules/unicase/u8-is-uppercase-tests: Likewise.
15300         * modules/unicase/u8-tolower-tests: Likewise.
15301         * modules/unicase/u8-totitle-tests: Likewise.
15302         * modules/unicase/u8-toupper-tests: Likewise.
15303         * modules/unicase/u16-casecmp-tests: Likewise.
15304         * modules/unicase/u16-casecoll-tests: Likewise.
15305         * modules/unicase/u16-casefold-tests: Likewise.
15306         * modules/unicase/u16-is-cased-tests: Likewise.
15307         * modules/unicase/u16-is-casefolded-tests: Likewise.
15308         * modules/unicase/u16-is-lowercase-tests: Likewise.
15309         * modules/unicase/u16-is-titlecase-tests: Likewise.
15310         * modules/unicase/u16-is-uppercase-tests: Likewise.
15311         * modules/unicase/u16-tolower-tests: Likewise.
15312         * modules/unicase/u16-totitle-tests: Likewise.
15313         * modules/unicase/u16-toupper-tests: Likewise.
15314         * modules/unicase/u32-casecmp-tests: Likewise.
15315         * modules/unicase/u32-casecoll-tests: Likewise.
15316         * modules/unicase/u32-casefold-tests: Likewise.
15317         * modules/unicase/u32-is-cased-tests: Likewise.
15318         * modules/unicase/u32-is-casefolded-tests: Likewise.
15319         * modules/unicase/u32-is-lowercase-tests: Likewise.
15320         * modules/unicase/u32-is-titlecase-tests: Likewise.
15321         * modules/unicase/u32-is-uppercase-tests: Likewise.
15322         * modules/unicase/u32-tolower-tests: Likewise.
15323         * modules/unicase/u32-totitle-tests: Likewise.
15324         * modules/unicase/u32-toupper-tests: Likewise.
15325         * modules/unicase/ulc-casecmp-tests: Likewise.
15326         * modules/unicase/ulc-casecoll-tests: Likewise.
15327         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
15328         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
15329         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
15330         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
15331         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
15332         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
15333         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
15334         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
15335         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
15336         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
15337         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
15338         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
15339         * modules/unictype/bidicategory-byname-tests: Likewise.
15340         * modules/unictype/bidicategory-name-tests: Likewise.
15341         * modules/unictype/bidicategory-of-tests: Likewise.
15342         * modules/unictype/bidicategory-test-tests: Likewise.
15343         * modules/unictype/block-list-tests: Likewise.
15344         * modules/unictype/block-of-tests: Likewise.
15345         * modules/unictype/block-test-tests: Likewise.
15346         * modules/unictype/category-C-tests: Likewise.
15347         * modules/unictype/category-Cc-tests: Likewise.
15348         * modules/unictype/category-Cf-tests: Likewise.
15349         * modules/unictype/category-Cn-tests: Likewise.
15350         * modules/unictype/category-Co-tests: Likewise.
15351         * modules/unictype/category-Cs-tests: Likewise.
15352         * modules/unictype/category-L-tests: Likewise.
15353         * modules/unictype/category-Ll-tests: Likewise.
15354         * modules/unictype/category-Lm-tests: Likewise.
15355         * modules/unictype/category-Lo-tests: Likewise.
15356         * modules/unictype/category-Lt-tests: Likewise.
15357         * modules/unictype/category-Lu-tests: Likewise.
15358         * modules/unictype/category-M-tests: Likewise.
15359         * modules/unictype/category-Mc-tests: Likewise.
15360         * modules/unictype/category-Me-tests: Likewise.
15361         * modules/unictype/category-Mn-tests: Likewise.
15362         * modules/unictype/category-N-tests: Likewise.
15363         * modules/unictype/category-Nd-tests: Likewise.
15364         * modules/unictype/category-Nl-tests: Likewise.
15365         * modules/unictype/category-No-tests: Likewise.
15366         * modules/unictype/category-P-tests: Likewise.
15367         * modules/unictype/category-Pc-tests: Likewise.
15368         * modules/unictype/category-Pd-tests: Likewise.
15369         * modules/unictype/category-Pe-tests: Likewise.
15370         * modules/unictype/category-Pf-tests: Likewise.
15371         * modules/unictype/category-Pi-tests: Likewise.
15372         * modules/unictype/category-Po-tests: Likewise.
15373         * modules/unictype/category-Ps-tests: Likewise.
15374         * modules/unictype/category-S-tests: Likewise.
15375         * modules/unictype/category-Sc-tests: Likewise.
15376         * modules/unictype/category-Sk-tests: Likewise.
15377         * modules/unictype/category-Sm-tests: Likewise.
15378         * modules/unictype/category-So-tests: Likewise.
15379         * modules/unictype/category-Z-tests: Likewise.
15380         * modules/unictype/category-Zl-tests: Likewise.
15381         * modules/unictype/category-Zp-tests: Likewise.
15382         * modules/unictype/category-Zs-tests: Likewise.
15383         * modules/unictype/category-and-not-tests: Likewise.
15384         * modules/unictype/category-and-tests: Likewise.
15385         * modules/unictype/category-byname-tests: Likewise.
15386         * modules/unictype/category-name-tests: Likewise.
15387         * modules/unictype/category-none-tests: Likewise.
15388         * modules/unictype/category-of-tests: Likewise.
15389         * modules/unictype/category-or-tests: Likewise.
15390         * modules/unictype/category-test-withtable-tests: Likewise.
15391         * modules/unictype/combining-class-tests: Likewise.
15392         * modules/unictype/ctype-alnum-tests: Likewise.
15393         * modules/unictype/ctype-alpha-tests: Likewise.
15394         * modules/unictype/ctype-blank-tests: Likewise.
15395         * modules/unictype/ctype-cntrl-tests: Likewise.
15396         * modules/unictype/ctype-digit-tests: Likewise.
15397         * modules/unictype/ctype-graph-tests: Likewise.
15398         * modules/unictype/ctype-lower-tests: Likewise.
15399         * modules/unictype/ctype-print-tests: Likewise.
15400         * modules/unictype/ctype-punct-tests: Likewise.
15401         * modules/unictype/ctype-space-tests: Likewise.
15402         * modules/unictype/ctype-upper-tests: Likewise.
15403         * modules/unictype/ctype-xdigit-tests: Likewise.
15404         * modules/unictype/decimal-digit-tests: Likewise.
15405         * modules/unictype/digit-tests: Likewise.
15406         * modules/unictype/mirror-tests: Likewise.
15407         * modules/unictype/numeric-tests: Likewise.
15408         * modules/unictype/property-alphabetic-tests: Likewise.
15409         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
15410         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
15411         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
15412         * modules/unictype/property-bidi-block-separator-tests: Likewise.
15413         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
15414         * modules/unictype/property-bidi-common-separator-tests: Likewise.
15415         * modules/unictype/property-bidi-control-tests: Likewise.
15416         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
15417         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
15418         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
15419         * modules/unictype/property-bidi-european-digit-tests: Likewise.
15420         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
15421         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
15422         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
15423         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
15424         * modules/unictype/property-bidi-pdf-tests: Likewise.
15425         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
15426         * modules/unictype/property-bidi-whitespace-tests: Likewise.
15427         * modules/unictype/property-byname-tests: Likewise.
15428         * modules/unictype/property-combining-tests: Likewise.
15429         * modules/unictype/property-composite-tests: Likewise.
15430         * modules/unictype/property-currency-symbol-tests: Likewise.
15431         * modules/unictype/property-dash-tests: Likewise.
15432         * modules/unictype/property-decimal-digit-tests: Likewise.
15433         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
15434         * modules/unictype/property-deprecated-tests: Likewise.
15435         * modules/unictype/property-diacritic-tests: Likewise.
15436         * modules/unictype/property-extender-tests: Likewise.
15437         * modules/unictype/property-format-control-tests: Likewise.
15438         * modules/unictype/property-grapheme-base-tests: Likewise.
15439         * modules/unictype/property-grapheme-extend-tests: Likewise.
15440         * modules/unictype/property-grapheme-link-tests: Likewise.
15441         * modules/unictype/property-hex-digit-tests: Likewise.
15442         * modules/unictype/property-hyphen-tests: Likewise.
15443         * modules/unictype/property-id-continue-tests: Likewise.
15444         * modules/unictype/property-id-start-tests: Likewise.
15445         * modules/unictype/property-ideographic-tests: Likewise.
15446         * modules/unictype/property-ids-binary-operator-tests: Likewise.
15447         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
15448         * modules/unictype/property-ignorable-control-tests: Likewise.
15449         * modules/unictype/property-iso-control-tests: Likewise.
15450         * modules/unictype/property-join-control-tests: Likewise.
15451         * modules/unictype/property-left-of-pair-tests: Likewise.
15452         * modules/unictype/property-line-separator-tests: Likewise.
15453         * modules/unictype/property-logical-order-exception-tests: Likewise.
15454         * modules/unictype/property-lowercase-tests: Likewise.
15455         * modules/unictype/property-math-tests: Likewise.
15456         * modules/unictype/property-non-break-tests: Likewise.
15457         * modules/unictype/property-not-a-character-tests: Likewise.
15458         * modules/unictype/property-numeric-tests: Likewise.
15459         * modules/unictype/property-other-alphabetic-tests: Likewise.
15460         * modules/unictype/property-other-default-ignorable-code-point-tests:
15461         Likewise.
15462         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
15463         * modules/unictype/property-other-id-continue-tests: Likewise.
15464         * modules/unictype/property-other-id-start-tests: Likewise.
15465         * modules/unictype/property-other-lowercase-tests: Likewise.
15466         * modules/unictype/property-other-math-tests: Likewise.
15467         * modules/unictype/property-other-uppercase-tests: Likewise.
15468         * modules/unictype/property-paired-punctuation-tests: Likewise.
15469         * modules/unictype/property-paragraph-separator-tests: Likewise.
15470         * modules/unictype/property-pattern-syntax-tests: Likewise.
15471         * modules/unictype/property-pattern-white-space-tests: Likewise.
15472         * modules/unictype/property-private-use-tests: Likewise.
15473         * modules/unictype/property-punctuation-tests: Likewise.
15474         * modules/unictype/property-quotation-mark-tests: Likewise.
15475         * modules/unictype/property-radical-tests: Likewise.
15476         * modules/unictype/property-sentence-terminal-tests: Likewise.
15477         * modules/unictype/property-soft-dotted-tests: Likewise.
15478         * modules/unictype/property-space-tests: Likewise.
15479         * modules/unictype/property-terminal-punctuation-tests: Likewise.
15480         * modules/unictype/property-test-tests: Likewise.
15481         * modules/unictype/property-titlecase-tests: Likewise.
15482         * modules/unictype/property-unassigned-code-value-tests: Likewise.
15483         * modules/unictype/property-unified-ideograph-tests: Likewise.
15484         * modules/unictype/property-uppercase-tests: Likewise.
15485         * modules/unictype/property-variation-selector-tests: Likewise.
15486         * modules/unictype/property-white-space-tests: Likewise.
15487         * modules/unictype/property-xid-continue-tests: Likewise.
15488         * modules/unictype/property-xid-start-tests: Likewise.
15489         * modules/unictype/property-zero-width-tests: Likewise.
15490         * modules/unictype/scripts-tests: Likewise.
15491         * modules/unictype/syntax-c-ident-tests: Likewise.
15492         * modules/unictype/syntax-c-whitespace-tests: Likewise.
15493         * modules/unictype/syntax-java-ident-tests: Likewise.
15494         * modules/unictype/syntax-java-whitespace-tests: Likewise.
15495         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
15496         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
15497         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
15498         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
15499         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
15500         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
15501         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
15502         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
15503         * modules/uniname/uniname-tests: Likewise.
15504         * modules/uninorm/canonical-decomposition-tests: Likewise.
15505         * modules/uninorm/compat-decomposition-tests: Likewise.
15506         * modules/uninorm/composition-tests: Likewise.
15507         * modules/uninorm/decomposing-form-tests: Likewise.
15508         * modules/uninorm/decomposition-tests: Likewise.
15509         * modules/uninorm/filter-tests: Likewise.
15510         * modules/uninorm/nfc-tests: Likewise.
15511         * modules/uninorm/nfd-tests: Likewise.
15512         * modules/uninorm/nfkc-tests: Likewise.
15513         * modules/uninorm/nfkd-tests: Likewise.
15514         * modules/uninorm/u8-normcmp-tests: Likewise.
15515         * modules/uninorm/u8-normcoll-tests: Likewise.
15516         * modules/uninorm/u16-normcmp-tests: Likewise.
15517         * modules/uninorm/u16-normcoll-tests: Likewise.
15518         * modules/uninorm/u32-normcmp-tests: Likewise.
15519         * modules/uninorm/u32-normcoll-tests: Likewise.
15520         * modules/unistdio/u8-asnprintf-tests: Likewise.
15521         * modules/unistdio/u8-vasnprintf-tests: Likewise.
15522         * modules/unistdio/u8-vasprintf-tests: Likewise.
15523         * modules/unistdio/u8-vsnprintf-tests: Likewise.
15524         * modules/unistdio/u8-vsprintf-tests: Likewise.
15525         * modules/unistdio/u16-asnprintf-tests: Likewise.
15526         * modules/unistdio/u16-vasnprintf-tests: Likewise.
15527         * modules/unistdio/u16-vasprintf-tests: Likewise.
15528         * modules/unistdio/u16-vsnprintf-tests: Likewise.
15529         * modules/unistdio/u16-vsprintf-tests: Likewise.
15530         * modules/unistdio/u32-asnprintf-tests: Likewise.
15531         * modules/unistdio/u32-vasnprintf-tests: Likewise.
15532         * modules/unistdio/u32-vasprintf-tests: Likewise.
15533         * modules/unistdio/u32-vsnprintf-tests: Likewise.
15534         * modules/unistdio/u32-vsprintf-tests: Likewise.
15535         * modules/unistdio/ulc-asnprintf-tests: Likewise.
15536         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
15537         * modules/unistdio/ulc-vasprintf-tests: Likewise.
15538         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
15539         * modules/unistdio/ulc-vsprintf-tests: Likewise.
15540         * modules/unistr/u8-check-tests: Likewise.
15541         * modules/unistr/u8-chr-tests: Likewise.
15542         * modules/unistr/u8-cmp-tests: Likewise.
15543         * modules/unistr/u8-cmp2-tests: Likewise.
15544         * modules/unistr/u8-cpy-alloc-tests: Likewise.
15545         * modules/unistr/u8-cpy-tests: Likewise.
15546         * modules/unistr/u8-mblen-tests: Likewise.
15547         * modules/unistr/u8-mbsnlen-tests: Likewise.
15548         * modules/unistr/u8-mbtouc-tests: Likewise.
15549         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
15550         * modules/unistr/u8-mbtoucr-tests: Likewise.
15551         * modules/unistr/u8-move-tests: Likewise.
15552         * modules/unistr/u8-next-tests: Likewise.
15553         * modules/unistr/u8-prev-tests: Likewise.
15554         * modules/unistr/u8-set-tests: Likewise.
15555         * modules/unistr/u8-stpcpy-tests: Likewise.
15556         * modules/unistr/u8-stpncpy-tests: Likewise.
15557         * modules/unistr/u8-strcat-tests: Likewise.
15558         * modules/unistr/u8-strcmp-tests: Likewise.
15559         * modules/unistr/u8-strcoll-tests: Likewise.
15560         * modules/unistr/u8-strcpy-tests: Likewise.
15561         * modules/unistr/u8-strdup-tests: Likewise.
15562         * modules/unistr/u8-strlen-tests: Likewise.
15563         * modules/unistr/u8-strmblen-tests: Likewise.
15564         * modules/unistr/u8-strmbtouc-tests: Likewise.
15565         * modules/unistr/u8-strncat-tests: Likewise.
15566         * modules/unistr/u8-strncmp-tests: Likewise.
15567         * modules/unistr/u8-strncpy-tests: Likewise.
15568         * modules/unistr/u8-strnlen-tests: Likewise.
15569         * modules/unistr/u8-to-u16-tests: Likewise.
15570         * modules/unistr/u8-to-u32-tests: Likewise.
15571         * modules/unistr/u8-uctomb-tests: Likewise.
15572         * modules/unistr/u16-check-tests: Likewise.
15573         * modules/unistr/u16-chr-tests: Likewise.
15574         * modules/unistr/u16-cmp-tests: Likewise.
15575         * modules/unistr/u16-cmp2-tests: Likewise.
15576         * modules/unistr/u16-cpy-alloc-tests: Likewise.
15577         * modules/unistr/u16-cpy-tests: Likewise.
15578         * modules/unistr/u16-mblen-tests: Likewise.
15579         * modules/unistr/u16-mbsnlen-tests: Likewise.
15580         * modules/unistr/u16-mbtouc-tests: Likewise.
15581         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
15582         * modules/unistr/u16-mbtoucr-tests: Likewise.
15583         * modules/unistr/u16-move-tests: Likewise.
15584         * modules/unistr/u16-next-tests: Likewise.
15585         * modules/unistr/u16-prev-tests: Likewise.
15586         * modules/unistr/u16-set-tests: Likewise.
15587         * modules/unistr/u16-stpcpy-tests: Likewise.
15588         * modules/unistr/u16-stpncpy-tests: Likewise.
15589         * modules/unistr/u16-strcat-tests: Likewise.
15590         * modules/unistr/u16-strcmp-tests: Likewise.
15591         * modules/unistr/u16-strcoll-tests: Likewise.
15592         * modules/unistr/u16-strcpy-tests: Likewise.
15593         * modules/unistr/u16-strdup-tests: Likewise.
15594         * modules/unistr/u16-strlen-tests: Likewise.
15595         * modules/unistr/u16-strmblen-tests: Likewise.
15596         * modules/unistr/u16-strmbtouc-tests: Likewise.
15597         * modules/unistr/u16-strncat-tests: Likewise.
15598         * modules/unistr/u16-strncmp-tests: Likewise.
15599         * modules/unistr/u16-strncpy-tests: Likewise.
15600         * modules/unistr/u16-strnlen-tests: Likewise.
15601         * modules/unistr/u16-to-u32-tests: Likewise.
15602         * modules/unistr/u16-to-u8-tests: Likewise.
15603         * modules/unistr/u16-uctomb-tests: Likewise.
15604         * modules/unistr/u32-check-tests: Likewise.
15605         * modules/unistr/u32-chr-tests: Likewise.
15606         * modules/unistr/u32-cmp-tests: Likewise.
15607         * modules/unistr/u32-cmp2-tests: Likewise.
15608         * modules/unistr/u32-cpy-alloc-tests: Likewise.
15609         * modules/unistr/u32-cpy-tests: Likewise.
15610         * modules/unistr/u32-mblen-tests: Likewise.
15611         * modules/unistr/u32-mbsnlen-tests: Likewise.
15612         * modules/unistr/u32-mbtouc-tests: Likewise.
15613         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
15614         * modules/unistr/u32-mbtoucr-tests: Likewise.
15615         * modules/unistr/u32-move-tests: Likewise.
15616         * modules/unistr/u32-next-tests: Likewise.
15617         * modules/unistr/u32-prev-tests: Likewise.
15618         * modules/unistr/u32-set-tests: Likewise.
15619         * modules/unistr/u32-stpcpy-tests: Likewise.
15620         * modules/unistr/u32-stpncpy-tests: Likewise.
15621         * modules/unistr/u32-strcat-tests: Likewise.
15622         * modules/unistr/u32-strcmp-tests: Likewise.
15623         * modules/unistr/u32-strcoll-tests: Likewise.
15624         * modules/unistr/u32-strcpy-tests: Likewise.
15625         * modules/unistr/u32-strdup-tests: Likewise.
15626         * modules/unistr/u32-strlen-tests: Likewise.
15627         * modules/unistr/u32-strmblen-tests: Likewise.
15628         * modules/unistr/u32-strmbtouc-tests: Likewise.
15629         * modules/unistr/u32-strncat-tests: Likewise.
15630         * modules/unistr/u32-strncmp-tests: Likewise.
15631         * modules/unistr/u32-strncpy-tests: Likewise.
15632         * modules/unistr/u32-strnlen-tests: Likewise.
15633         * modules/unistr/u32-to-u16-tests: Likewise.
15634         * modules/unistr/u32-to-u8-tests: Likewise.
15635         * modules/unistr/u32-uctomb-tests: Likewise.
15636         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
15637         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
15638         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
15639         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
15640         * modules/uniwidth/u8-strwidth-tests: Likewise.
15641         * modules/uniwidth/u8-width-tests: Likewise.
15642         * modules/uniwidth/u16-strwidth-tests: Likewise.
15643         * modules/uniwidth/u16-width-tests: Likewise.
15644         * modules/uniwidth/u32-strwidth-tests: Likewise.
15645         * modules/uniwidth/u32-width-tests: Likewise.
15646         * modules/uniwidth/width-tests: Likewise.
15647
15648 2010-05-18  Richard Jones  <rjones@redhat.com>
15649
15650         doc: users.txt: list hivex
15651         * users.txt: Add hivex.
15652
15653 2010-05-18  Richard Jones  <rjones@redhat.com>
15654
15655         doc: users.txt: list febootstrap
15656         * users.txt: Add febootstrap.
15657
15658 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
15659
15660         bootstrap: fix an error when gnulib is not used as a git submodule
15661         * build-aux/bootstrap (gnulib_path): If its length is zero then
15662         assign "gnulib" to it.
15663         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
15664
15665 2010-05-16  Bruno Haible  <bruno@clisp.org>
15666
15667         Avoid autoconf warnings about AM_ICONV.
15668         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
15669         2.64.
15670
15671 2010-05-16  Bruno Haible  <bruno@clisp.org>
15672
15673         absolute-header: Make the macro usable in more situations.
15674         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
15675         from gl_ABSOLUTE_HEADER.
15676         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
15677
15678 2010-05-16  James Youngman  <jay@gnu.org>
15679
15680         doc: update users.txt
15681         * users.txt: Add CSSC.
15682
15683 2010-05-16  Jim Meyering  <meyering@redhat.com>
15684
15685         init.sh: fix an error in the previous change; add more comments
15686         * tests/init.sh: Compare exit code in loop against 9, not 2.
15687         Patch by Bruno Haible.
15688         Make the two tests more similar by adding an empty "then" clause.
15689         Add comments.
15690
15691         init.sh: avoid unnecessary shell re-exec
15692         * tests/init.sh: Improve the re-exec-required check to first test the
15693         current shell.  If it passes the test, do not search for a shell that
15694         does pass, and do not re-exec.  This test is particularly contorted to
15695         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
15696         of $(...) evokes a syntax error and causes immediate shell exit with
15697         status 2.  Bruno Haible reported that the re-exec made it impossible
15698         to single-step through any init.sh-using script.
15699
15700 2010-05-16  Bruno Haible  <bruno@clisp.org>
15701
15702         Fix collision between gnulib's and libintl's printf replacements.
15703         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
15704         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
15705         (printf): When using GNU C, map the __printf__ function to rpl_printf
15706         via __asm__. When not using GNU C, define rpl_printf instead of
15707         __printf__.
15708         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
15709         commit.
15710         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
15711         commit.
15712         * m4/asm-underscore.m4: New file.
15713         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
15714         * modules/stdio (Files): Add m4/asm-underscore.m4.
15715         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
15716         Reported by Ben Pfaff.
15717
15718 2010-05-16  Bruno Haible  <bruno@clisp.org>
15719
15720         verify: Avoid skipping the test on openSUSE 11.0.
15721         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
15722
15723 2010-05-13  Bruno Haible  <bruno@clisp.org>
15724
15725         Avoid useless warnings from G++.
15726         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
15727         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
15728         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15729
15730 2010-05-11  Jim Meyering  <meyering@redhat.com>
15731
15732         maint.mk: tweak preceding change
15733         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
15734         regexps tighter by anchoring at EOL, and make the new group "shy"
15735         for slightly decreased overhead.
15736
15737 2010-05-11  Eric Blake  <eblake@redhat.com>
15738
15739         maint.mk: gnulib doesn't guarantee NSIG
15740         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
15741
15742 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
15743
15744         test-pwrite.c: Remove unused variable declaration.
15745         * tests/test-pwrite.c (main): Remove read_buf declaration.
15746
15747         Remove useless test-pwrite.sh file.
15748         * tests/test-pwrite.sh: Delete file.
15749         * modules/pwrite-tests: Remove references.
15750         Reported by Bruno Haible.
15751
15752 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
15753
15754         init.sh: fix a typo
15755         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
15756
15757 2010-05-10  Jim Meyering  <meyering@redhat.com>
15758
15759         maint.mk: avoid using a temporary file in the always-defined-macros check
15760         * top/maint.mk (.re-defmac): Remove rule.
15761         (gl_trap_): Remove definition.
15762         (sc_prohibit_always-defined_macros): Rewrite not to create and
15763         depend on a temporary file.  Instead, depend on GNU grep's ability
15764         to read a list of regular expressions from stdin when given "-f -".
15765
15766 2010-05-09  Bruno Haible  <bruno@clisp.org>
15767
15768         Update to GNU gettext 0.18, part 1.
15769         * m4/gettext.m4: Update to GNU gettext 0.18.
15770         * m4/intl.m4: Likewise.
15771         * m4/po.m4: Likewise.
15772         * modules/gettext (Files): Add m4/fcntl-o.m4.
15773         (configure.ac): Require gettext infrastructure from version 0.18.
15774
15775 2010-05-09  Jim Meyering  <meyering@redhat.com>
15776
15777         init.sh: enable MALLOC_PERTURB_
15778         * tests/init.sh: Enable glibc's malloc-perturbing option.
15779
15780         maint.mk: improve sc_cross_check_PATH_usage_in_tests
15781         With my recent change in init.sh from the two-line form:
15782             -#   : ${srcdir=.}
15783             -#   . "$srcdir/init.sh"; path_prepend_ .
15784             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
15785         I noticed that using the one-line form would cause this test
15786         to fail with a false-positive, or to stop working altogether,
15787         depending on whether help-version changed or all the tests did.
15788         * top/maint.mk (_hv_regex): Remove this definition.
15789         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
15790         (_hv_regex_strong): Use a stronger regex to check for conformance.
15791         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
15792         Give a separate diagnostic for lack of conforming use.
15793
15794         maint.mk: prohibit definition of symbols defined by gnulib
15795         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
15796         definition of symbols defined by gnulib.
15797
15798 2010-05-09  Bruno Haible  <bruno@clisp.org>
15799
15800         acl: Avoid test failure on Cygwin-hosted mingw.
15801         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
15802
15803 2010-05-09  Bruno Haible  <bruno@clisp.org>
15804
15805         error: Use system's fcntl function.
15806         * lib/error.c (fcntl): Undefine.
15807
15808 2010-05-09  Jim Meyering  <meyering@redhat.com>
15809
15810         verify: adjust formatting to be more consistent
15811         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
15812         argument-list '('s, and after one comma.
15813
15814 2010-05-09  Bruno Haible  <bruno@clisp.org>
15815
15816         error: More reliable output on mingw.
15817         * lib/error.c: Include <windows.h>.
15818         (is_open): New function.
15819         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
15820         defined.
15821
15822 2010-05-09  Bruno Haible  <bruno@clisp.org>
15823
15824         vasnprintf: Fix syntax errors in libintl build on mingw.
15825         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
15826         pad_ourselves and prec_ourselves after use.
15827
15828 2010-05-08  Bruno Haible  <bruno@clisp.org>
15829
15830         * lib/config.charset: Update comments for Cygwin 1.7.
15831         * lib/localcharset.c: Likewise.
15832
15833 2010-05-07  Jim Meyering  <meyering@redhat.com>
15834
15835         init.sh: improve comments
15836         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
15837         . "${srcdir=.}/init.sh"; path_prepend_ .
15838         Add a note about path_prepend_ and the alternative of using
15839         TESTS_ENVIRONMENT.
15840
15841 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
15842
15843         exclude: Unescape hashed patterns in wildcard mode.
15844         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
15845         to the hash list.
15846         * tests/test-exclude8.sh: New test case.
15847         * modules/exclude-tests: Add new test.
15848
15849 2010-05-05  Eric Blake  <eblake@redhat.com>
15850
15851         verify: automate tests
15852         * modules/verify-tests: New module.
15853         * tests/test-verify.sh: New file.
15854         * tests/test-verify.c: Guard each negative test with a unique id.
15855         Also avoid warning about unused left hand of comma expressions.
15856
15857 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15858
15859         Further improvements to verify.h, suggested by Eric Blake.
15860         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
15861         the GL_* versions, to avoid collision with OpenGL.
15862         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
15863         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
15864         than testing merely whether it's defined.
15865
15866         Modify verify.h to pacify gcc -Wredundant_decls.
15867         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
15868         These use the prefix "GL_" since they're likely to be useful elsewhere.
15869         We may need to break them out into a different .h file.
15870         (__COUNTER__): Define to 0 if the compiler doesn't support it.
15871         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
15872         of verify_function__.
15873
15874 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
15875
15876         Tests for module pwrite.
15877         * modules/pwrite-tests: New file.
15878         * tests/test-pwrite.sh: New file.
15879         * tests/test-pwrite.c: New file.
15880
15881         New module pwrite.
15882         * lib/unistd.in.h (pwrite): New declaration.
15883         * lib/pwrite.c: New file, from glibc with modifications.
15884         * m4/pwrite.m4: New file.
15885         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
15886         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
15887         REPLACE_PWRITE.
15888         * modules/pwrite: New file.
15889         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
15890         REPLACE_PWRITE.
15891         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
15892         * doc/posix-functions/pwrite.texi: Mention the new module.
15893
15894 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
15895
15896         pread: Update documentation.
15897         * doc/posix-functions/pread.texi: Mention the 'pread' module.
15898
15899 2010-05-04  Eric Blake  <eblake@redhat.com>
15900
15901         docs: update cygwin progress
15902         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
15903         this bug.
15904         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
15905         Added in cygwin 1.7.2.
15906         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
15907         Likewise.
15908         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
15909         Likewise.
15910         * doc/glibc-functions/dup3.texi (dup3): Likewise.
15911         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15912         * doc/glibc-functions/accept4.texi (accept4): Likewise.
15913         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
15914         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
15915         Mention nproc module.
15916         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
15917         bug in cygwin 1.7.5 addition.
15918         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
15919         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
15920         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
15921         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
15922         1.7.5.
15923         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
15924         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
15925         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
15926         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
15927         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
15928         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
15929         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
15930         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
15931         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
15932         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
15933         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
15934         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
15935         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
15936         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
15937         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
15938         Likewise.
15939         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
15940         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
15941         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
15942         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
15943         Likewise.
15944         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
15945         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
15946         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
15947         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
15948         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
15949         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
15950         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
15951         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
15952         Likewise.
15953         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
15954         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
15955         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
15956         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
15957         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
15958         Likewise.
15959         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
15960         Likewise.
15961         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
15962         Likewise.
15963         * doc/glibc-functions/xdrrec_endofrecord.texi
15964         (xdrrec_endofrecord): Likewise.
15965         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
15966         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
15967         Likewise.
15968         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
15969         Likewise.
15970
15971 2010-05-04  Jim Meyering  <meyering@redhat.com>
15972
15973         gendocs.sh: make its "-s FILE" option more useful
15974         * build-aux/gendocs.sh: When honoring the -s FILE option, update
15975         $PACKAGE to reflect the probably-different basename of "FILE".
15976
15977 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
15978
15979         bootstrap: don't ignore download_po_files failure
15980         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
15981         failure.
15982
15983 2010-05-03  Jim Meyering  <meyering@redhat.com>
15984
15985         maint.mk: allow to pass options to gendocs.sh
15986         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
15987         (gendocs_options_): New overridable variable.
15988
15989         gnu-web-doc-update: don't ignore configure or build failure
15990         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
15991
15992         announce-gen: backslash-escape '@'s in --help output
15993         * build-aux/announce-gen: Fix syntax errors.
15994
15995         maint.mk, announce-gen: allow project-specific announcement mail headers
15996         * top/maint.mk (translation_project_): Define default.
15997         (announcement_Cc_, announcement_mail_headers_): Likewise.
15998         (announcement): Invoke announce-gen with new --mail-headers option.
15999         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
16000
16001         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
16002         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
16003         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
16004         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
16005         line in the "err2" output file when running "make check" in verbose
16006         mode (i.e., with set -x enabled).
16007
16008 2010-05-03  Bruno Haible  <bruno@clisp.org>
16009
16010         wctob: Fix for weird platforms.
16011         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
16012         argument value.
16013
16014 2010-05-03  Jim Meyering  <meyering@redhat.com>
16015
16016         maint.mk: prohibit unwarranted use of <strings.h>
16017         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
16018         strings.h in a file that does not also use strcasecmp, strncasecmp,
16019         ffs or ffsll.
16020
16021         maint.mk: remove obsolete comments
16022         * top/maint.mk: Remove stale, commented-out rules.
16023
16024 2010-05-02  Bruno Haible  <bruno@clisp.org>
16025
16026         wcwidth: Declare also when it's aliased.
16027         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
16028         macro.
16029
16030 2010-05-02  Bruno Haible  <bruno@clisp.org>
16031
16032         Fix regression from 2010-04-25.
16033         * gnulib-tool (func_modules_transitive_closure): Check the status of
16034         all modules, not only of the tests that are of the form foo-tests where
16035         foo is a module.
16036
16037 2010-05-02  Bruno Haible  <bruno@clisp.org>
16038
16039         wctob: Work around nasty Cygwin 1.7.2 bug.
16040         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
16041         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
16042
16043 2010-05-01  Bruno Haible  <bruno@clisp.org>
16044
16045         fpurge: Sharper test.
16046         * tests/test-fpurge.c (main): Add one more ftell check.
16047         * modules/fpurge-tests (Depends-on): Add ftell.
16048         Suggested by Eric Blake.
16049
16050 2010-05-01  Bruno Haible  <bruno@clisp.org>
16051
16052         ftello: Another test.
16053         * tests/test-ftello3.c: New file.
16054         * modules/ftello-tests (Files): Add it.
16055         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16056         MOSTLYCLEANFILES.
16057
16058         ftell: Another test.
16059         * tests/test-ftell3.c: New file.
16060         * modules/ftell-tests (Files): Add it.
16061         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16062         MOSTLYCLEANFILES.
16063
16064 2010-05-01  Bruno Haible  <bruno@clisp.org>
16065
16066         ftell, ftello: Work around Solaris bug.
16067         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
16068         * lib/ftello.c: Include stdio-impl.h.
16069         (ftello): On Solaris, when _IOWRT is set, compute the result without
16070         looking at _IOREAD.
16071         * modules/ftello (Files): Add lib/stdio-impl.h.
16072         * doc/posix-functions/ftell.texi: Mention Solaris bug.
16073         * doc/posix-functions/ftello.texi: Likewise.
16074         Reported by Eric Blake.
16075
16076 2010-05-01  Bruno Haible  <bruno@clisp.org>
16077
16078         freading: Adapt to special meaning of _IOREAD flag on Solaris.
16079         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
16080         the _IOWRT flag is also set.
16081
16082 2010-05-01  Bruno Haible  <bruno@clisp.org>
16083
16084         Fix doc about a HP-UX stdio bug.
16085         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
16086         * doc/posix-functions/ftello.texi: Likewise.
16087
16088 2010-05-01  Bruno Haible  <bruno@clisp.org>
16089
16090         lseek test: Fix failure on Solaris.
16091         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
16092         output.
16093
16094 2010-04-30  Jim Meyering  <meyering@redhat.com>
16095
16096         bootstrap: don't ignore failure to generate po*/Makevars
16097         * build-aux/bootstrap (with_gettext): Don't ignore failure
16098         to create po/Makevars or runtime-po/Makevars.
16099
16100 2010-04-29  Eric Blake  <eblake@redhat.com>
16101
16102         headers: relax license to LGPLv2+
16103         * modules/fcntl-h (License): Relax license.
16104         * modules/getopt-posix (License): Likewise.
16105         * modules/locale (License): Likewise.
16106         * modules/math (License): Likewise.
16107         * modules/pty (License): Likewise.
16108         * modules/sched (License): Likewise.
16109         * modules/search (License): Likewise.
16110         * modules/spawn (License): Likewise.
16111         * modules/stdarg (License): Likewise.
16112         * modules/sysexits (License): Likewise.
16113
16114 2010-04-29  Jim Meyering  <meyering@redhat.com>
16115
16116         inttypes: relax license to LGPLv2+
16117         * modules/inttypes (License): Relax license.
16118
16119 2010-04-29  Simon Josefsson  <simon@josefsson.org>
16120
16121         * top/maint.mk (indent): Run twice to produce idempotent results.
16122
16123 2010-04-28  Bruno Haible  <bruno@clisp.org>
16124
16125         getdate: Generate getdate.c in the source directory.
16126         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
16127         MOSTLYCLEANFILES.
16128         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
16129
16130 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
16131
16132         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
16133         is not declared as a const *; avoid warnings in that case.
16134
16135 2010-04-28  Eric Blake  <eblake@redhat.com>
16136
16137         canonicalize-lgpl: avoid compiler warning
16138         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
16139         declaration' / 'extraneous semicolon' warning with some compilers.
16140         Reported by Andreas Gruenbacher.
16141
16142 2010-04-28  Jim Meyering  <meyering@redhat.com>
16143
16144         init.sh: ensure a more reliable exit status when exiting via trap
16145         * tests/init.sh (setup_): Don't rely on $? in signal handler.
16146         Inspired by patches from Dmitry V. Levin.
16147         Also trap on signal 3 (SIGQUIT).
16148
16149 2010-04-27  Bruno Haible  <bruno@clisp.org>
16150
16151         Update doc about utimes().
16152         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
16153         'utimens' module.
16154         Reported by Andreas Gruenbacher <agruen@suse.de>.
16155
16156 2010-04-27  Eric Blake  <eblake@redhat.com>
16157
16158         full-read, full-write: relax license
16159         * modules/full-read (License): Drop to LGPLv2+.
16160         * modules/full-write (License): Likewise.
16161         * modules/safe-read (License): Likewise.
16162         * modules/safe-write (License): Likewise.
16163
16164         pthread: mention library for linking
16165         * modules/pthread (Link): Mention $(LIB_PTHREAD).
16166
16167 2010-04-27  Jim Meyering  <meyering@redhat.com>
16168
16169         maint.mk: fix a bug introduced in last change
16170         * top/maint.mk (gl_assured_headers_): Now that all names are on
16171         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
16172         is not anchored to end of word, it should be adequate.
16173
16174         maint.mk: avoid side-effect in latest syntax-check
16175         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
16176         to run commands via $(shell...), and hence to incur cost only when
16177         the new rule is actually run.
16178
16179         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
16180         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
16181         and use that to create a regexp used to detect all #if HAVE_..._H uses.
16182         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
16183         (gl_assured_headers_, az_, AZ_): Define.
16184         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
16185
16186 2010-04-26  Jim Meyering  <jim@meyering.net>
16187             Bruno Haible  <bruno@clisp.org>
16188
16189         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
16190         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
16191         Prompted by an exchange with Gilles Espinasse.
16192
16193 2010-04-26  Jim Meyering  <meyering@redhat.com>
16194
16195         git-version-gen: aesthetic tweak
16196         * build-aux/git-version-gen: Use "$nl" rather than a literal,
16197         so that the command remains on a single line.
16198
16199 2010-04-26  Eric Blake  <eblake@redhat.com>
16200
16201         git-version-gen: allow use on EBCDIC hosts
16202         * build-aux/git-version-gen (dirty): Use literal rather than tying
16203         ourselves to ascii.
16204         Reported by Steve Goetze.
16205
16206 2010-04-25  Bruno Haible  <bruno@clisp.org>
16207
16208         netdb: Add support for GNULIB_POSIXCHECK.
16209         * lib/netdb.in.h: Include warn-on-use.h.
16210         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
16211         functions are used when GNULIB_POSIXCHECK is defined and the
16212         getaddrinfo module is not in use.
16213         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
16214         freeaddrinfo, gai_strerror, getnameinfo are declared.
16215         * modules/netdb (Depends-on): Add warn-on-use.
16216         (Makefile.am): Include warn-on-use.h in netdb.h.
16217
16218 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
16219
16220         build: avoid "make check" failure without .git/ directory
16221         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
16222         there is no .git/ directory.
16223
16224 2010-04-25  Bruno Haible  <bruno@clisp.org>
16225
16226         ptsname: Fix misuse of ttyname_r.
16227         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
16228         of errno.
16229
16230 2010-04-25  Bruno Haible  <bruno@clisp.org>
16231
16232         ttyname_r: Make it work on Solaris 10.
16233         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
16234         if the system function has the POSIX declaration. Test whether the
16235         function fails if the buffer is less than 128 bytes large.
16236         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
16237         system's ttyname_r function. Provide a reasonably large buffer.
16238         * modules/ttyname_r (Depends-on): Add extensions.
16239         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
16240
16241 2010-04-25  Bruno Haible  <bruno@clisp.org>
16242
16243         Use the 'extensions' module for some more functions on Solaris.
16244         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
16245         module.
16246         * doc/posix-functions/ctime_r.texi: Likewise.
16247         * doc/posix-functions/getgrgid_r.texi: Likewise.
16248         * doc/posix-functions/getgrnam_r.texi: Likewise.
16249         * doc/posix-functions/getpwnam_r.texi: Likewise.
16250         * doc/posix-functions/getpwuid_r.texi: Likewise.
16251         * doc/posix-functions/readdir_r.texi: Likewise.
16252         * doc/posix-functions/sigwait.texi: Likewise.
16253         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
16254         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
16255
16256 2010-04-25  Bruno Haible  <bruno@clisp.org>
16257
16258         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
16259         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
16260         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
16261         * lib/ttyname_r.c: Include <limits.h>.
16262         (ttyname_r): Define using the system's ttyname_r function, if it exists
16263         and not on Solaris.
16264         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
16265         set.
16266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
16267         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
16268         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
16269         Reported by Simon Josefsson.
16270
16271 2010-04-25  Bruno Haible  <bruno@clisp.org>
16272
16273         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
16274         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
16275         * doc/posix-functions/ctime_r.texi: Likewise.
16276         * doc/posix-functions/getgrgid_r.texi: Likewise.
16277         * doc/posix-functions/getgrnam_r.texi: Likewise.
16278         * doc/posix-functions/getlogin_r.texi: Likewise.
16279         * doc/posix-functions/getpwnam_r.texi: Likewise.
16280         * doc/posix-functions/getpwuid_r.texi: Likewise.
16281         * doc/posix-functions/readdir_r.texi: Likewise.
16282         * doc/posix-functions/sigwait.texi: Likewise.
16283         * doc/posix-functions/ttyname_r.texi: Likewise.
16284         Reported by Simon Josefsson.
16285
16286 2010-04-25  Bruno Haible  <bruno@clisp.org>
16287
16288         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
16289         * gnulib-tool (func_usage): Document that --with-*-tests options apply
16290         also to --create-testdir.
16291         (func_acceptable): Don't consider the status of *-tests modules here.
16292         (func_modules_transitive_closure): Consider it here, before including a
16293         test module.
16294         (func_import, func_create_testdir): Set inc_all_direct_tests,
16295         inc_all_indirect_tests.
16296         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
16297         --create-testdir and --create-megatestdir.
16298
16299 2010-04-25  Bruno Haible  <bruno@clisp.org>
16300
16301         gnulib-tool: Add --without-*-tests options.
16302         * gnulib-tool (func_usage): Document the --without-*-tests options.
16303         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
16304         excl_unportable_tests): New variables.
16305         Fail if they are specified with --import or --update.
16306         (func_acceptable): Respect the excl_*_tests variables.
16307         (func_import): Set the excl_*_tests variables to empty.
16308
16309 2010-04-25  Simon Josefsson  <simon@josefsson.org>
16310             Bruno Haible  <bruno@clisp.org>
16311
16312         Work around a MacOS X 10.4 bug with openpty.
16313         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
16314         * tests/test-openpty.c (main): Close the master side explicitly.
16315
16316 2010-04-25  Bruno Haible  <bruno@clisp.org>
16317
16318         strnlen: Fix a C++ test error on MacOS X and Solaris.
16319         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
16320         the function is not declared.
16321         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
16322         Simon Josefsson.
16323
16324 2010-04-24  Bruno Haible  <bruno@clisp.org>
16325
16326         Avoid a gcc warning.
16327         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
16328         of correct type for %08lx directive.
16329         Reported by Eric Blake.
16330
16331 2010-04-24  Bruno Haible  <bruno@clisp.org>
16332
16333         vasnprintf: Correct errno value in case of out-of-memory.
16334         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
16335         or sprintf. Use the errno value from SNPRINTF or sprintf.
16336         Reported by Ian Beckwith <ianb@erislabs.net>.
16337
16338 2010-04-24  Bruno Haible  <bruno@clisp.org>
16339
16340         ansi-c++-opt: Find correct compiler when cross-compiling.
16341         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
16342         AC_CHECK_PROGS.
16343         Reported by Simon Josefsson.
16344
16345 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
16346
16347         vc-list-files: Add support for subversion
16348         * build-aux/vc-list-files: Use "svn list" to generate the list of
16349         files controlled by subversion.
16350
16351 2010-04-23  Jim Meyering  <meyering@redhat.com>
16352
16353         vc-list-files tests: convert to use init.sh
16354         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
16355         path_prepend_.
16356         Use Exit, not exit.
16357         Use skip_ rather than open coding it.
16358         Remove trap set-up and compare definitions.
16359         * tests/test-vc-list-files-git.sh: Likewise.
16360         * modules/vc-list-files-tests (Files): Add tests/init.sh.
16361
16362 2010-04-22  Simon Josefsson  <simon@josefsson.org>
16363
16364         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
16365         backup files.
16366
16367 2010-04-21  Simon Josefsson  <simon@josefsson.org>
16368
16369         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
16370
16371 2010-04-20  Eric Blake  <eblake@redhat.com>
16372
16373         tests: be robust to ignored SIGPIPE
16374         * tests/test-select-in.sh: Consume all output.
16375         * tests/test-lseek.sh: Check correct exit status, while avoiding
16376         EPIPE.
16377
16378 2010-04-20  Simon Josefsson  <simon@josefsson.org>
16379             Bruno Haible  <bruno@clisp.org>
16380
16381         visibility: Don't use -fvisibility if it leads to a warning.
16382         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
16383         yes, don't pretend that visibility works if it leads to a warning.
16384         Reported by Mike Gran <spk121@yahoo.com>.
16385
16386 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
16387
16388         * build-aux/bootstrap: Use "git -h" for testing for supported options
16389         instead of "git --help".  The short-form option only shows a summary,
16390         and doesn't layout the full man page.  Grep for the full option name
16391         in the summary, too.
16392
16393 2010-04-19  Bruno Haible  <bruno@clisp.org>
16394
16395         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
16396         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
16397         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
16398         mention of RELOCATABLE_STRIP.
16399         Reported by Sylvain Beucler <beuc@beuc.net>.
16400
16401 2010-04-19  Bruno Haible  <bruno@clisp.org>
16402
16403         * lib/diffseq.h: Fix typo in comment.
16404         Reported by Eric Blake.
16405
16406 2010-04-19  Bruno Haible  <bruno@clisp.org>
16407
16408         ioctl: Move autoconf macro to a .m4 file.
16409         * m4/ioctl.m4: New file, extracted from modules/ioctl.
16410         * modules/ioctl (Files): Add it.
16411         (configure.ac): Simply invoke gl_FUNC_IOCTL.
16412         Reported by Ian Beckwith <ianb@erislabs.net>.
16413
16414 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
16415             Bruno Haible  <bruno@clisp.org>
16416
16417         diffseq: Accommodate use-case with abstract arrays.
16418         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
16419         is not defined.
16420         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
16421         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
16422
16423 2010-04-18  Bruno Haible  <bruno@clisp.org>
16424
16425         * doc/posix-headers/stdbool.texi: More precise wording.
16426
16427 2010-04-17  Jim Meyering  <meyering@redhat.com>
16428
16429         maint.mk: use gnu-style indentation in an embedded perl script
16430         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
16431         Rename variable: s/two/last_two_bytes/
16432
16433 2010-04-16  Eric Blake  <eblake@redhat.com>
16434
16435         test-stdbool: skip test that fails with Solaris CC
16436         * tests/test-stdbool.c (f): Skip test that causes compilation
16437         error under buggy C++ compiler.
16438         * lib/stdbool.in.h: Document the limitation.
16439         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
16440
16441         setenv: allow compilation with C++
16442         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
16443         register keyword.
16444
16445         stdint: allow test to pass with C++
16446         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
16447
16448         getopt: allow compilation with C++
16449         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
16450         struct.
16451         * lib/getopt.c (_getopt_internal_r): Use correct type.
16452         Reported by Dagobert Michelson, via Joel E. Denny.
16453
16454 2010-04-16  Bruno Haible  <bruno@clisp.org>
16455
16456         Override netdb.h always.
16457         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
16458         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
16459         Reported by Ludovic Courtès <ludo@gnu.org>.
16460
16461 2010-04-15  Bruno Haible  <bruno@clisp.org>
16462
16463         openpty: Fix mistake from 2010-03-21.
16464         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
16465         Reported by Simon Josefsson.
16466
16467 2010-04-15  Eric Blake  <eblake@redhat.com>
16468
16469         test-forkpty: fix expected signature
16470         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
16471         Reported by Simon Josefsson.
16472
16473 2010-04-15  Jim Meyering  <meyering@redhat.com>
16474
16475         maint.mk: texinfo_suffix_re_: correct the default regexp
16476         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
16477
16478         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
16479         make it configurable via texinfo_suffix_re_.
16480
16481 2010-04-14  Eric Blake  <eblake@redhat.com>
16482
16483         strtok_r: relax license to LGPLv2+
16484         * modules/strtok_r (License): Relax license.
16485         Reported by Matthias Bolte.
16486
16487 2010-04-14  Simon Josefsson  <simon@josefsson.org>
16488
16489         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
16490         version 1.4.4 by default instead of requiring the libgcrypt
16491         version used during build.  This makes it possible to use the
16492         application with older but still binary compatible libgcrypt
16493         versions.
16494
16495 2010-04-13  Eric Blake  <eblake@redhat.com>
16496
16497         getopt-gnu: match recent glibc fixes and posix ruling
16498         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
16499         '+' handling, when requesting extensions.
16500         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
16501         'W;' handling.
16502         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
16503         * doc/posix-functions/getopt.texi (getopt): Document this.
16504         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16505         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16506         Likewise.
16507
16508         getopt: merge bug fixes from glibc
16509         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
16510         diagnostics.  Honor '+:' correctly.  Reject ';'.
16511
16512         getopt-posix: detect MacOS bug
16513         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
16514         optind when missing a required argument.
16515         * doc/posix-functions/getopt.texi (getopt): Document the bug.
16516         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16517         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16518         Likewise.
16519
16520         getopt-posix: avoid spurious failure on Solaris
16521         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
16522         an indicator that setting optind=1 is sufficient for reset.
16523
16524         getopt-posix: avoid spurious failure on FreeBSD
16525         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
16526         in POSIX mode, since the m4 test uses it.
16527
16528         gnulib-tool: silence warning on BSD sh
16529         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
16530
16531 2010-04-13  Jim Meyering  <meyering@redhat.com>
16532
16533         doc: users.txt: GNU patch now uses gnulib
16534         * users.txt: Add patch.
16535
16536 2010-04-12  Jim Meyering  <meyering@redhat.com>
16537
16538         maint.mk: generate more concise timing data for syntax-check rules
16539         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
16540         " done" from each line that reports a syntax-check test duration.
16541
16542 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
16543
16544         git-version-gen: use "git update-index..." rather than "git status"
16545         * build-aux/git-version-gen: Use git update-index --refresh, not
16546         "git status".  With some versions of git, "git status" would fail
16547         to update the index and result in an unwarranted "-dirty" suffix.
16548
16549 2010-04-11  Jim Meyering  <meyering@redhat.com>
16550
16551         openat: correct formatting (no semantic change)
16552         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
16553         Suggested by Bruno Haible.
16554
16555 2010-04-11  Bruno Haible  <bruno@clisp.org>
16556
16557         Stricter declaration checking in testdirs.
16558         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16559         If for_tests is true, augment AM_CPPFLAGS to define
16560         GNULIB_STRICT_CHECKING.
16561         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
16562         GNULIB_STRICT_CHECKING is defined, verify that the function is
16563         declared.
16564
16565 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
16566             Bruno Haible  <bruno@clisp.org>
16567
16568         libunistring: Improve configure output.
16569         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
16570         Don't say "consider installing GNU libunistring" when checking again
16571         with libiconv.
16572
16573 2010-04-11  Bruno Haible  <bruno@clisp.org>
16574
16575         libunistring: Correct value of $LTLIBUNISTRING.
16576         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
16577         correct the value of $LTLIBUNISTRING.
16578
16579 2010-04-11  Bruno Haible  <bruno@clisp.org>
16580
16581         havelib: Add static libraries to LIBS in the right order.
16582         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
16583         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
16584
16585 2010-04-11  Bruno Haible  <bruno@clisp.org>
16586
16587         libunistring: Detect libunistring also when it depends on libiconv.
16588         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
16589         the second AC_LIB_HAVE_LINKFLAGS invocation.
16590
16591 2010-04-11  James Youngman  <jay@gnu.org>
16592
16593         close-stream: declare local scalars to be "const"
16594         * lib/close-stream.c (close_stream): Make boolean variables const
16595         to document the fact that we set but do not change them.
16596
16597 2010-04-11  Bruno Haible  <bruno@clisp.org>
16598
16599         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
16600
16601 2010-04-11  Jim Meyering  <meyering@redhat.com>
16602
16603         maint.mk: don't include dist-check.mk
16604         * top/maint.mk: Remove bogus include directive.
16605
16606         maint.mk: improve empty-line-at-EOF check
16607         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
16608         solution, rather than tail+Perl-based one.  The latter would read
16609         a few kilobytes from the end of each file, and did not handle empty
16610         files properly.
16611
16612         maint.mk: print the elapsed time for each syntax-check rule
16613         * top/maint.mk (sc_m_rules_): Save start time in a file.
16614         (sc_z_rules_): New rules: remove temp file and print elapsed time.
16615         (local-check): Interpose the .z rules
16616
16617 2010-04-11  Jim Meyering  <meyering@redhat.com>
16618
16619         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
16620         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
16621         empty file with one that ends in an empty line.
16622
16623 2010-04-10  Bruno Haible  <bruno@clisp.org>
16624
16625         mkdir: Make it work on mingw64.
16626         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
16627         * lib/mkdir.c: Update comment.
16628         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
16629
16630 2010-04-10  Bruno Haible  <bruno@clisp.org>
16631
16632         Don't override improved macro from newer autoconf.
16633         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
16634         autoconf >= 2.62.
16635         Reported by Joel E. Denny <jdenny@clemson.edu>.
16636
16637 2010-04-10  Jim Meyering  <meyering@redhat.com>
16638
16639         maint.mk: new syntax-check rule: prohibit empty lines at end of file
16640         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
16641
16642         maint.mk: correct a diagnostic
16643         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
16644         in diagnostic; now use $prohibit.
16645
16646 2010-04-10  Bruno Haible  <address@hidden>
16647
16648         fchownat: Fix a C++ test error on Solaris 8.
16649         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
16650         the function does not exist.
16651
16652 2010-04-10  Bruno Haible  <bruno@clisp.org>
16653
16654         vasnprintf: Add more tests.
16655         * tests/test-vasnprintf-posix.c: Include <errno.h>.
16656         (test_function): Test converting an invalid wide string.
16657
16658         vasnprintf: Correct handling of unconvertible wide string arguments.
16659         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
16660         VASNPRINTF.
16661         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
16662         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
16663         smaller than the expected maximum need for the directive. Set errno to
16664         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
16665         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
16666         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
16667         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
16668         * modules/vasnprintf (Files): Add m4/printf.m4.
16669         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16670
16671 2010-04-10  Bruno Haible  <bruno@clisp.org>
16672
16673         vasnprintf: Fix crash in %ls directive.
16674         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
16675         string is passed as argument to %ls, with no precision and no width.
16676         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16677
16678 2010-04-10  Bruno Haible  <bruno@clisp.org>
16679
16680         vasnprintf: Fix multiple test failures on mingw.
16681         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
16682         _snprintf, or snwprintf, not _snwprintf.
16683
16684 2010-04-10  Bruno Haible  <bruno@clisp.org>
16685
16686         write: Fix a C++ test error on mingw.
16687         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
16688
16689 2010-04-10  Bruno Haible  <bruno@clisp.org>
16690
16691         vasnprintf test: Reduce code duplication.
16692         * tests/test-vasnprintf.c (test_function): New function, extracted from
16693         test_vasnprintf.
16694         (test_vasnprintf, test_asnprintf): Invoke it.
16695
16696 2010-04-10  Bruno Haible  <bruno@clisp.org>
16697
16698         strnlen: Fix warning in C++ mode on MacOS X.
16699         * lib/string.in.h (strnlen): Use the modern idiom.
16700         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
16701         defining strnlen as a macro already in <config.h>.
16702         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16703         REPLACE_STRNLEN.
16704         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
16705         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16706
16707 2010-04-08  James Youngman  <jay@gnu.org>
16708
16709         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
16710         the example.
16711
16712 2010-04-09  Jim Meyering  <meyering@redhat.com>
16713
16714         maint.mk: print better diagnostic when there is no $(_hv_file)
16715         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
16716         announce that when $(_hv_file) (aka help-version) does not exist.
16717
16718         init.sh: run tr in the "C" locale to avoid multibyte interpretation
16719         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
16720         not try to interpret its random input bytes.  Jarno Rajahalme reported
16721         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
16722         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
16723         (mktempd_): Likewise, just in case.
16724
16725         ftruncate: add two years to projected module removal date: 2012
16726         * m4/ftruncate.m4: Adjust comments.
16727
16728         ftruncate: mark module as obsolete; even MinGW provides it, now
16729         * modules/ftruncate (Status): Obsolete.
16730         (Notice): Say that.
16731         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
16732         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
16733
16734 2010-04-08  Bruno Haible  <bruno@clisp.org>
16735
16736         Fix side effects from tests-related modules.
16737         * modules/dprintf-posix (Comment): New section.
16738         * modules/fprintf-posix (Comment): Likewise.
16739         * modules/obstack-printf-posix (Comment): Likewise.
16740         * modules/printf-posix (Comment): Likewise.
16741         * modules/snprintf-posix (Comment): Likewise.
16742         * modules/sprintf-posix (Comment): Likewise.
16743         * modules/vasnprintf-posix (Comment): Likewise.
16744         * modules/vasprintf-posix (Comment): Likewise.
16745         * modules/vdprintf-posix (Comment): Likewise.
16746         * modules/vfprintf-posix (Comment): Likewise.
16747         * modules/vprintf-posix (Comment): Likewise.
16748         * modules/vsnprintf-posix (Comment): Likewise.
16749         * modules/vsprintf-posix (Comment): Likewise.
16750         * modules/xprintf-posix (Comment): Likewise.
16751         * modules/xvasprintf-posix (Comment): Likewise.
16752         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
16753         * modules/floorf-tests (Depends-on): Likewise.
16754         * modules/round-tests (Depends-on): Likewise.
16755         * modules/roundf-tests (Depends-on): Likewise.
16756         * modules/trunc-tests (Depends-on): Likewise.
16757         * modules/truncf-tests (Depends-on): Likewise.
16758         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
16759         'fprintf-posix' module is not present.
16760         * tests/test-floorf2.c (check): Likewise.
16761         * tests/test-trunc2.c (check): Likewise.
16762         * tests/test-truncf2.c (check): Likewise.
16763         * tests/test-round2.c (equal): Likewise.
16764         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16765
16766 2010-04-07  Karl Berry  <karl@gnu.org>
16767
16768         * config/srclist.txt,
16769         * config/srclistvars.sh,
16770         * config/srclist-update: doc fixes.
16771
16772 2010-04-07  Jim Meyering  <meyering@redhat.com>
16773
16774         maint.mk: add a PATH crosschecking syntax-check rule
16775         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
16776         Useful if you use a test like the one in help-version (coreutils,
16777         diffutils, grep, gzip) that ensures $(VERSION) matches what is
16778         printed by prog --version.
16779
16780 2010-04-06  Bruno Haible  <bruno@clisp.org>
16781
16782         Fix link error on mingw.
16783         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
16784         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
16785
16786 2010-04-06  Bruno Haible  <bruno@clisp.org>
16787
16788         Assume rmdir exists.
16789         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
16790
16791 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
16792
16793         doc: update users.txt
16794         * users.txt: Add gcal.
16795
16796 2010-04-06  Jim Meyering  <meyering@redhat.com>
16797
16798         init.sh: simply unset TMPDIR rather than risking env -i
16799         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
16800         although it probably works fine on all Unix-based systems, some
16801         systems (Cygwin?) cannot tolerate a totally cleared environment.
16802         Suggestion from Eric Blake.
16803
16804 2010-04-06  Jim Meyering  <meyering@redhat.com>
16805
16806         init.sh: portability fix: use env's POSIX-specified -i option not -u
16807         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
16808         than unportable env -u.  Solaris 5.11's env lacks support for -u.
16809
16810 2010-04-05  Bruno Haible  <bruno@clisp.org>
16811
16812         btowc: Work around Cygwin 1.7.2 bug.
16813         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
16814         does not map NUL to 0.
16815         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
16816
16817 2010-04-05  Bruno Haible  <bruno@clisp.org>
16818
16819         Make the multithread modules work on Cygwin 1.7.2.
16820         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
16821         imported symbols can be declared weak, so that it returns "no" on
16822         Cygwin 1.7.2.
16823
16824 2010-04-05  Bruno Haible  <bruno@clisp.org>
16825
16826         Use the module 'strncat'.
16827         * modules/unistr/u8-strncat (Depends-on): Add strncat.
16828
16829         Tests for module 'strncat'.
16830         * modules/strncat-tests: New file.
16831         * tests/test-strncat.c: New file.
16832
16833         New module 'strncat'.
16834         * lib/string.in.h (strncat): New declaration.
16835         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
16836         * m4/strncat.m4: New file, based on m4/memchr.m4.
16837         * modules/strncat: New file.
16838         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
16839         is declared.
16840         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
16841         REPLACE_STRNCAT.
16842         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
16843         REPLACE_STRNCAT.
16844         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
16845         module.
16846         * tests/test-string-c++.cc: Check signature of strncat.
16847
16848 2010-04-05  Jim Meyering  <meyering@redhat.com>
16849
16850         xstrtoumax-tests: convert to use init.sh
16851         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
16852         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16853         Use Exit, not exit.
16854         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16855
16856         xstrtoimax-tests: convert to use init.sh
16857         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
16858         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16859         Use Exit, not exit.
16860         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16861
16862 2010-04-05  Bruno Haible  <bruno@clisp.org>
16863
16864         sys_socket: Avoid #define replacements in C++ mode.
16865         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
16866         warning to the function if possible, rather than #defining the symbol
16867         to a dysfunctional alias.
16868
16869 2010-04-05  Bruno Haible  <bruno@clisp.org>
16870
16871         fseeko: Fix C++ test error on mingw.
16872         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
16873         gl_FUNC_FSEEKO.
16874         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
16875         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
16876         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
16877         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
16878
16879 2010-04-05  Bruno Haible  <bruno@clisp.org>
16880
16881         duplocale: Improve test output.
16882         * tests/test-duplocale.c (main): Print reason for skipped test.
16883
16884 2010-04-05  Bruno Haible  <bruno@clisp.org>
16885
16886         Assume rmdir exists.
16887         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
16888         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
16889
16890 2010-04-05  Bruno Haible  <bruno@clisp.org>
16891
16892         Fix link error on Solaris 8 with cc.
16893         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
16894
16895 2010-04-05  Bruno Haible  <bruno@clisp.org>
16896
16897         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
16898         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
16899
16900 2010-04-05  Bruno Haible  <bruno@clisp.org>
16901
16902         vasprintf: Update documentation.
16903         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
16904
16905 2010-04-05  Bruno Haible  <bruno@clisp.org>
16906
16907         ptsname: Improve test.
16908         * tests/test-ptsname.c (main): Also try the various master names of BSD
16909         systems.
16910
16911 2010-04-05  Bruno Haible  <bruno@clisp.org>
16912
16913         memchr: Avoid a possible C++ test error.
16914         * lib/string.in.h (memchr): Provide declaration if function is missing.
16915         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
16916         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
16917         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
16918         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
16919
16920 2010-04-05  Bruno Haible  <bruno@clisp.org>
16921
16922         strtok_r: Improve idiom.
16923         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
16924         AC_LIBOBJ is used.
16925
16926 2010-04-05  Bruno Haible  <bruno@clisp.org>
16927
16928         strdup: Improve idiom.
16929         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
16930         AC_LIBOBJ is used.
16931         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
16932         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
16933         when AC_LIBOBJ is used.
16934
16935 2010-04-05  Bruno Haible  <bruno@clisp.org>
16936
16937         mbsinit, mbrtowc, wcrtomb: Improve idioms.
16938         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
16939         don't set REPLACE_MBSINIT to 1.
16940         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
16941         don't set REPLACE_MBRTOWC to 1.
16942         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
16943         exist, don't set REPLACE_MBSRTOWCS to 1.
16944         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
16945         exist, don't set REPLACE_MBSNRTOWCS to 1.
16946         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
16947         don't set REPLACE_WCRTOMB to 1.
16948         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
16949         exist, don't set REPLACE_WCSRTOMBS to 1.
16950         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
16951         exist, don't set REPLACE_WCSNRTOMBS to 1.
16952
16953 2010-04-05  Bruno Haible  <bruno@clisp.org>
16954
16955         ldexpl: Improve idiom.
16956         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
16957         make sure to set HAVE_DECL_LDEXPL to 0.
16958
16959 2010-04-05  Jim Meyering  <meyering@redhat.com>
16960
16961         xstrtol-tests: convert to use init.sh
16962         * modules/xstrtol-tests (Files): Add tests/init.sh.
16963         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16964         Use Exit, not exit.
16965         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16966
16967         atexit-tests: convert to use init.sh
16968         * modules/atexit-tests (Files): Add tests/init.sh.
16969         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16970         Use Exit, not exit.
16971         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16972
16973         init.sh: fix typo
16974         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
16975
16976         init.sh: make it easier for a test script to write to the tty, ...
16977         when using automake's parallel-tests mode.
16978         * tests/init.sh (stderr_fileno_): Define overridable variable.
16979         (warn_): New function, to use it.
16980         (fail_, skip_, framework_failure_): Use warn_.
16981
16982 2010-04-04  Bruno Haible  <bruno@clisp.org>
16983
16984         btowc: Avoid warning.
16985         * lib/btowc.c: Include <stdlib.h>.
16986         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
16987
16988 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
16989             Bruno Haible  <bruno@clisp.org>
16990
16991         wchar: Port to NetBSD 1.5.
16992         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
16993         * lib/wctype.in.h (WEOF): Likewise.
16994
16995 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
16996             Bruno Haible  <bruno@clisp.org>
16997
16998         Port extended stdio to NetBSD 1.5.
16999         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
17000         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
17001         older.
17002
17003 2010-04-04  Bruno Haible  <bruno@clisp.org>
17004
17005         string: Remove unused substitution.
17006         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
17007         HAVE_DECL_STRERROR.
17008         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
17009
17010 2010-04-04  Bruno Haible  <bruno@clisp.org>
17011
17012         strtod: Avoid a possible C++ test error.
17013         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
17014         set REPLACE_STRTOD.
17015
17016 2010-04-04  Bruno Haible  <bruno@clisp.org>
17017
17018         strerror: Update documentation.
17019         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
17020
17021 2010-04-04  Bruno Haible  <bruno@clisp.org>
17022
17023         stdio: Fix some C++ test errors on Solaris 8 with GCC.
17024         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
17025         _GL_CXXALIAS_SYS_CAST.
17026
17027 2010-04-04  Bruno Haible  <bruno@clisp.org>
17028
17029         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17030         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
17031         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
17032         REPLACE_FREXPL to 1.
17033         * doc/posix-functions/frexpl.texi: Update documentation.
17034
17035 2010-04-04  Bruno Haible  <bruno@clisp.org>
17036
17037         math: Fix some C++ test errors on Solaris 8 and Cygwin.
17038         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
17039
17040 2010-04-04  Bruno Haible  <bruno@clisp.org>
17041
17042         Implement nanosleep for native Windows.
17043         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
17044
17045 2010-04-04  Bruno Haible  <bruno@clisp.org>
17046
17047         math: Fix some C++ test errors on Solaris 8.
17048         * lib/math.in.h (truncf, trunc): Use simpler idiom.
17049
17050 2010-04-04  Bruno Haible  <bruno@clisp.org>
17051
17052         math: Fix some C++ test errors on Cygwin.
17053         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
17054         truncl): Provide declaration if the system does not have it.
17055         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
17056         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
17057         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
17058         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
17059         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
17060         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
17061         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
17062         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
17063         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
17064         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
17065         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
17066         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
17067         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
17068         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
17069         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
17070         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
17071         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
17072         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17073         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17074         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
17075         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17076         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17077
17078 2010-04-04  Bruno Haible  <bruno@clisp.org>
17079
17080         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
17081         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17082         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
17083         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
17084         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
17085         * m4/isinf.m4 (gl_ISINF): Likewise.
17086         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17087
17088 2010-04-04  Bruno Haible  <bruno@clisp.org>
17089
17090         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
17091         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17092
17093 2010-04-04  Bruno Haible  <bruno@clisp.org>
17094
17095         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
17096         * modules/tmpfile (configure.ac): Update.
17097
17098         tmpfile: Fix C++ test error on mingw.
17099         * lib/stdio.in.h (tmpfile): New declaration.
17100         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
17101         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
17102         * modules/tmpfile (Depends-on): Add stdio.
17103         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17104         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
17105         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
17106         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
17107         REPLACE_TMPFILE.
17108         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
17109
17110 2010-04-04  Bruno Haible  <bruno@clisp.org>
17111
17112         ioctl: Fix C++ test error on mingw.
17113         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
17114         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
17115         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
17116
17117 2010-04-03  Bruno Haible  <bruno@clisp.org>
17118
17119         wcwidth: Fix C++ test error on mingw.
17120         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
17121         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
17122         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
17123
17124 2010-04-03  Bruno Haible  <bruno@clisp.org>
17125
17126         nanosleep: Fix C++ test error on mingw.
17127         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
17128         * lib/time.in.h (nanosleep): Use modern idiom.
17129         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
17130         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
17131         REPLACE_NANOSLEEP to 1.
17132         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
17133         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
17134
17135 2010-04-03  Bruno Haible  <bruno@clisp.org>
17136
17137         strptime: Fix C++ test error on mingw.
17138         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
17139         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
17140         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
17141         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
17142         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
17143         not REPLACE_STRPTIME.
17144         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
17145         REPLACE_STRPTIME.
17146
17147 2010-04-03  Bruno Haible  <bruno@clisp.org>
17148
17149         timegm: Fix C++ test error on mingw.
17150         * lib/time.in.h (timegm): Use modern idiom.
17151         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
17152         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
17153         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
17154         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
17155
17156 2010-04-03  Bruno Haible  <bruno@clisp.org>
17157
17158         timegm: Assume declaration if function exists.
17159         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
17160         if it exists. Don't clobber ac_cv_func_timegm.
17161
17162 2010-04-03  Bruno Haible  <bruno@clisp.org>
17163
17164         time_r: Fix C++ test error on mingw.
17165         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
17166         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
17167         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
17168         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
17169         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
17170
17171 2010-04-03  Bruno Haible  <bruno@clisp.org>
17172
17173         time_r: Minor updates.
17174         * modules/time_r (Description): Mention the provided functions.
17175         * lib/time_r.c: Don't include <string.h>.
17176         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
17177         * doc/posix-functions/localtime_r.texi: Likewise.
17178
17179 2010-04-03  Bruno Haible  <bruno@clisp.org>
17180
17181         time: Fix regression introduced on 2010-03-08.
17182         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
17183         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
17184
17185 2010-04-03  Jim Meyering  <meyering@redhat.com>
17186
17187         maint.mk: don't silently disable project-specific syntax-check rules
17188         * top/maint.mk (_prohibit_regexp): Define, to help people realize
17189         that they need to convert their project-specific syntax-check rules
17190         to use the new _sc_search_regexp.
17191
17192 2010-04-03  Bruno Haible  <bruno@clisp.org>
17193
17194         fchdir: Fix regression introduced on 2010-03-08.
17195         * lib/unistd.in.h (fchdir): Fix declaration.
17196         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
17197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
17198         REPLACE_FCHDIR.
17199         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
17200         REPLACE_FCHDIR.
17201
17202 2010-04-03  Bruno Haible  <bruno@clisp.org>
17203
17204         getpagesize: Fix C++ test error on mingw.
17205         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
17206         system does not declare the function.
17207         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
17208         declared.
17209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17210         HAVE_DECL_GETPAGESIZE.
17211         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
17212
17213 2010-04-03  Bruno Haible  <bruno@clisp.org>
17214
17215         stdio: Make C++ tests work on mingw.
17216         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
17217         does not declare the function.
17218
17219 2010-04-03  Bruno Haible  <bruno@clisp.org>
17220
17221         ftello: Fix C++ test error on mingw.
17222         * lib/stdio.in.h (ftello): Use modern idiom.
17223         * lib/ftello.c (ftello): Renamed from rpl_ftello.
17224         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
17225         is missing and that it needs to be replaced.
17226         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
17227         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
17228         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
17229
17230 2010-04-03  Bruno Haible  <bruno@clisp.org>
17231
17232         fseeko: Fix C++ test error on mingw.
17233         * lib/stdio.in.h (fseeko): Use modern idiom.
17234         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
17235         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
17236         is missing and that it needs to be replaced.
17237         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
17238         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
17239         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
17240
17241 2010-04-03  Bruno Haible  <bruno@clisp.org>
17242
17243         mkstemp: Fix C++ test error on mingw.
17244         * lib/stdlib.in.h (mkstemp): Use modern idiom.
17245         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
17246         function is missing and that it needs to be replaced.
17247         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
17248         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
17249
17250 2010-04-03  Bruno Haible  <bruno@clisp.org>
17251
17252         stpncpy: Fix C++ test error on mingw.
17253         * lib/string.in.h (stpncpy): Use modern idiom.
17254         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
17255         function is missing and that it needs to be replaced.
17256         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17257         REPLACE_STPNCPY.
17258         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
17259
17260 2010-04-03  Bruno Haible  <bruno@clisp.org>
17261
17262         sys_stat: Fix C++ test error on mingw.
17263         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
17264         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
17265
17266 2010-04-03  Bruno Haible  <bruno@clisp.org>
17267
17268         pty: Update doc.
17269         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
17270
17271 2010-04-03  Bruno Haible  <bruno@clisp.org>
17272
17273         unistd: Fix C++ test error on mingw.
17274         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
17275
17276 2010-04-03  Bruno Haible  <bruno@clisp.org>
17277
17278         Update doc regarding mingw.
17279         * doc/glibc-functions/openpty.texi: Update regarding mingw.
17280         * doc/glibc-functions/login_tty.texi: Likewise.
17281         * doc/glibc-functions/forkpty.texi: Likewise.
17282
17283 2010-04-03  Bruno Haible  <bruno@clisp.org>
17284
17285         stdlib: Avoid compilation failure of c-strtold on mingw.
17286         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
17287
17288 2010-04-03  Bruno Haible  <bruno@clisp.org>
17289
17290         locale: Make C++ tests work on Cygwin and mingw.
17291         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
17292         cannot provide the function.
17293         Reported by Simon Josefsson.
17294
17295 2010-04-03  Bruno Haible  <bruno@clisp.org>
17296
17297         localename: Port to MacOS X 10.6.
17298         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
17299         memory layout of the locales in MacOS X 10.6 as well.
17300         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
17301
17302 2010-04-02  Bruno Haible  <bruno@clisp.org>
17303
17304         gnulib-tool: Ensure that long-running tests are executed last.
17305         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
17306         running tests after the one for the other tests.
17307
17308 2010-04-02  Bruno Haible  <bruno@clisp.org>
17309
17310         gnulib-tool: Ensure the tests in the main directory are executed first.
17311         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
17312         start with the current directory.
17313
17314 2010-04-02  Bruno Haible  <bruno@clisp.org>
17315
17316         Tests for module 'havelib', moved here from GNU gettext.
17317         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
17318         modifications.
17319         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
17320         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
17321         with modifications.
17322         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
17323         modifications.
17324         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
17325         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
17326         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
17327         with modifications.
17328         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
17329         with modifications.
17330         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
17331         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
17332         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
17333         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
17334         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
17335         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
17336         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
17337         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
17338         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
17339         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
17340         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
17341         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
17342         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
17343         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
17344         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
17345         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
17346         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
17347         with modifications.
17348         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
17349         with modifications.
17350         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
17351         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
17352         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
17353         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
17354         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
17355         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
17356         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
17357         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
17358         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
17359         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
17360         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
17361         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
17362         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
17363         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
17364         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
17365         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
17366         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
17367         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
17368         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
17369         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
17370         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
17371         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
17372         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
17373         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
17374         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
17375         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
17376         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
17377         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
17378         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
17379         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
17380         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
17381         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
17382         * tests/havelib/rpathx/rpathx.c: New file, from
17383         gettext/autoconf-lib-link.
17384         * tests/havelib/rpathx/Makefile.am: New file, from
17385         gettext/autoconf-lib-link.
17386         * tests/havelib/rpathx/configure.ac: New file, from
17387         gettext/autoconf-lib-link with modifications.
17388         * tests/havelib/rpathy/rpathy.c: New file, from
17389         gettext/autoconf-lib-link.
17390         * tests/havelib/rpathy/Makefile.am: New file, from
17391         gettext/autoconf-lib-link.
17392         * tests/havelib/rpathy/configure.ac: New file, from
17393         gettext/autoconf-lib-link with modifications.
17394         * tests/havelib/rpathz/rpathz.c: New file, from
17395         gettext/autoconf-lib-link.
17396         * tests/havelib/rpathz/Makefile.am: New file, from
17397         gettext/autoconf-lib-link.
17398         * tests/havelib/rpathz/configure.ac: New file, from
17399         gettext/autoconf-lib-link with modifications.
17400         * tests/havelib/rpathlx/usex.c: New file, from
17401         gettext/autoconf-lib-link.
17402         * tests/havelib/rpathlx/Makefile.am: New file, from
17403         gettext/autoconf-lib-link.
17404         * tests/havelib/rpathlx/configure.ac: New file, from
17405         gettext/autoconf-lib-link with modifications.
17406         * tests/havelib/rpathly/usey.c: New file, from
17407         gettext/autoconf-lib-link.
17408         * tests/havelib/rpathly/Makefile.am: New file, from
17409         gettext/autoconf-lib-link.
17410         * tests/havelib/rpathly/configure.ac: New file, from
17411         gettext/autoconf-lib-link with modifications.
17412         * tests/havelib/rpathlz/usez.c: New file, from
17413         gettext/autoconf-lib-link.
17414         * tests/havelib/rpathlz/Makefile.am: New file, from
17415         gettext/autoconf-lib-link.
17416         * tests/havelib/rpathlz/configure.ac: New file, from
17417         gettext/autoconf-lib-link with modifications.
17418         * tests/havelib/rpathlyx/usey.c: New file, from
17419         gettext/autoconf-lib-link.
17420         * tests/havelib/rpathlyx/Makefile.am: New file, from
17421         gettext/autoconf-lib-link.
17422         * tests/havelib/rpathlyx/configure.ac: New file, from
17423         gettext/autoconf-lib-link with modifications.
17424         * tests/havelib/rpathlzyx/usez.c: New file, from
17425         gettext/autoconf-lib-link.
17426         * tests/havelib/rpathlzyx/Makefile.am: New file, from
17427         gettext/autoconf-lib-link.
17428         * tests/havelib/rpathlzyx/configure.ac: New file, from
17429         gettext/autoconf-lib-link with modifications.
17430         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
17431         with modifications.
17432
17433 2010-04-02  Bruno Haible  <bruno@clisp.org>
17434
17435         gnulib-tool: Create distributed built sources also for the tests.
17436         * gnulib-tool (func_create_testdir): Also generate distributed built
17437         sources in the tests directory.
17438
17439 2010-04-02  Bruno Haible  <bruno@clisp.org>
17440
17441         gnulib-tool: Obey user's environment variables.
17442         * gnulib-tool (func_create_testdir): When creating built sources,
17443         respect the environment variables for autoconf, automake, etc. given by
17444         the user.
17445
17446 2010-04-02  Bruno Haible  <bruno@clisp.org>
17447
17448         gnulib-tool: Provide the value of --m4-base to modules.
17449         * gnulib-tool (func_import, func_create_testdir): Emit a definition
17450         of gl_m4_base.
17451
17452 2010-04-02  Eric Blake  <eblake@redhat.com>
17453
17454         maint.mk: fix some fallout
17455         * NEWS: Document the incompatible change, and its effect on cfg.mk.
17456         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
17457
17458 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17459
17460         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
17461         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
17462         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
17463         (sc_cast_of_x_alloc_return_value): Likewise.
17464         (sc_cast_of_alloca_return_value): Likewise.
17465         (sc_space_tab): Likewise.
17466         (sc_prohibit_atoi_atof): Likewise.
17467         (sc_prohibit_magic_number_exit): Likewise.
17468         (sc_error_exit_success): Likewise.
17469         (sc_file_system): Likewise.
17470         (sc_prohibit_have_config_h): Likewise.
17471         (sc_require_config_h): Likewise.
17472         (sc_prohibit_HAVE_MBRTOWC): Likewise.
17473         (sc_obsolete_symbols): Likewise.
17474         (sc_changelog): Likewise.
17475         (sc_program_name): Likewise.
17476         (sc_the_the): Likewise.
17477         (sc_trailing_blank): Likewise.
17478         (sc_two_space_separator_in_usage): Likewise.
17479         (sc_useless_cpp_parens): Likewise.
17480         (sc_GPL_version): Likewise.
17481         (sc_GFDL_version): Likewise.
17482         (sc_texinfo_acronym): Likewise.
17483         (sc_prohibit_cvs_keyword): Likewise.
17484         (sc_prohibit_stat_st_blocks): Likewise.
17485         (sc_prohibit_S_IS_definition): Likewise.
17486         (sc_redundant_const): Likewise.
17487         (sc_makefile_TAB_only_indentation): Likewise.
17488         (sc_m4_quote_check): Likewise.
17489         (sc_makefile_path_separator_check): Likewise.
17490         (sc_copyright_check): Likewise.
17491         (sc_Wundef_boolean): Likewise.
17492         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
17493
17494         maint.mk: match 0 or more whitespace-before-function-call '('
17495         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
17496         that have zero or two-and-more spaces between the function name
17497         and the open parenthesis.
17498         (sc_error_message_warn_fatal): Likewise.
17499         (sc_error_message_uppercase): Likewise.
17500         (sc_error_message_period): Likewise.
17501
17502 2010-03-31  Eric Blake  <eblake@redhat.com>
17503
17504         maint.mk: check for [ as well as test
17505         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
17506         Based on a libvirt report by Matthias Bolte.
17507
17508         gnumakefile: don't squelch _version output
17509         * top/GNUmakefile (_version): Create one-shot dependency rather
17510         than using $(shell) when version must be regenerated.
17511         (_autoreconf): Run verbosely, by default.
17512
17513         sys_time: avoid compiler warnings
17514         * lib/sys_time.in.h (includes): Ensure gcc pragma is
17515         unconditional, fixing regression from 2010-03-29.
17516         Reported by Simon Josefsson.
17517
17518 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17519
17520         maint.mk: s/_header_without_use/_sc_header_without_use/
17521         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
17522         (sc_prohibit_assert_without_use): Use the new name.
17523         (sc_prohibit_close_stream_without_use): Likewise.
17524         (sc_prohibit_getopt_without_use): Likewise.
17525         (sc_prohibit_quotearg_without_use): Likewise.
17526         (sc_prohibit_quote_without_use): Likewise.
17527         (sc_prohibit_long_options_without_use): Likewise.
17528         (sc_prohibit_inttostr_without_use): Likewise.
17529         (sc_prohibit_ignore_value_without_use): Likewise.
17530         (sc_prohibit_error_without_use): Likewise.
17531         (sc_prohibit_xalloc_without_use): Likewise.
17532         (sc_prohibit_hash_without_use): Likewise.
17533         (sc_prohibit_hash_pjw_without_use): Likewise.
17534         (sc_prohibit_safe_read_without_use): Likewise.
17535         (sc_prohibit_argmatch_without_use): Likewise.
17536         (sc_prohibit_canonicalize_without_use): Likewise.
17537         (sc_prohibit_root_dev_ino_without_use): Likewise.
17538         (sc_prohibit_openat_without_use): Likewise.
17539         (sc_prohibit_c_ctype_without_use): Likewise.
17540         (sc_prohibit_signal_without_use): Likewise.
17541         (sc_prohibit_intprops_without_use): Likewise.
17542
17543 2010-03-30  Eric Blake  <eblake@redhat.com>
17544
17545         maint: improve module indicators
17546         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
17547         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
17548         columns, and avoid extra macro expansion.
17549
17550         fdopendir: work around FreeBSD bug
17551         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
17552         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
17553         * modules/dirent (Makefile.am): Substitute it.
17554         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
17555         declaration.
17556         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
17557         fix.
17558         Reported by Christian Weisgerber <naddy@mips.inka.de>.
17559
17560 2010-03-29  Bruno Haible  <bruno@clisp.org>
17561
17562         Emit #pragma system_header after the inclusion guard, not before.
17563         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
17564         guard that spans the entire file, not before. This enables an
17565         optimization in GCC's preprocessor.
17566         * lib/ctype.in.h: Likewise.
17567         * lib/dirent.in.h: Likewise.
17568         * lib/errno.in.h: Likewise.
17569         * lib/float.in.h: Likewise.
17570         * lib/getopt.in.h: Likewise.
17571         * lib/iconv.in.h: Likewise.
17572         * lib/langinfo.in.h: Likewise.
17573         * lib/locale.in.h: Likewise.
17574         * lib/math.in.h: Likewise.
17575         * lib/netdb.in.h: Likewise.
17576         * lib/netinet_in.in.h: Likewise.
17577         * lib/pty.in.h: Likewise.
17578         * lib/sched.in.h: Likewise.
17579         * lib/se-selinux.in.h: Likewise.
17580         * lib/search.in.h: Likewise.
17581         * lib/spawn.in.h: Likewise.
17582         * lib/stdarg.in.h: Likewise.
17583         * lib/stdint.in.h: Likewise.
17584         * lib/string.in.h: Likewise.
17585         * lib/strings.in.h: Likewise.
17586         * lib/sys_file.in.h: Likewise.
17587         * lib/sys_ioctl.in.h: Likewise.
17588         * lib/sys_time.in.h: Likewise.
17589         * lib/sys_times.in.h: Likewise.
17590         * lib/sys_utsname.in.h: Likewise.
17591         * lib/sys_wait.in.h: Likewise.
17592         * lib/sysexits.in.h: Likewise.
17593         * lib/wctype.in.h: Likewise.
17594
17595 2010-03-28  James Youngman  <jay@gnu.org>
17596
17597         save-cwd: don't leak a file descriptor when the caller execs.
17598         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
17599         saved file descriptor.
17600         * modules/save-cwd (Depends-on): Depend on cloexec.
17601
17602 2010-03-29  Bruno Haible  <bruno@clisp.org>
17603
17604         Remove vestiges of fts-lgpl module.
17605         * lib/fts_.h: Assume GNULIB_FTS is 1.
17606         * lib/fts.c: Likewise.
17607         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
17608
17609 2010-03-28  Bruno Haible  <bruno@clisp.org>
17610
17611         Fix definition of tests witness macro.
17612         * gnulib-tool (func_import): Fix definition of witness macro.
17613
17614 2010-03-28  Bruno Haible  <bruno@clisp.org>
17615
17616         Fix ioctl's protoype on glibc systems.
17617         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
17618         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
17619         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
17620         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
17621         signature. If not, arrange to replace the ioctl function.
17622         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
17623         REPLACE_IOCTL.
17624         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
17625         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
17626         Reported by Ludovic Courtès <ludo@gnu.org>.
17627
17628 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
17629
17630         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
17631         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
17632         made it so grep -r --include=GLOB* ... did not work.
17633
17634 2010-03-26  Jim Meyering  <meyering@redhat.com>
17635             Eric Blake  <eblake@redhat.com>
17636
17637         maint.mk: prohibit use of test's -o and -a operators
17638         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
17639
17640 2010-03-28  Bruno Haible  <bruno@clisp.org>
17641
17642         Remove unused GNULIB_XYZ macro definitions.
17643         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
17644         invocation.
17645
17646 2010-03-28  Bruno Haible  <bruno@clisp.org>
17647
17648         Mark privileged tests modules.
17649         * modules/idpriv-drop-tests (Status): New section.
17650         * modules/idpriv-droptemp-tests (Status): New section.
17651
17652 2010-03-28  Bruno Haible  <bruno@clisp.org>
17653
17654         Split C++ tests into separate tests modules.
17655         * modules/dirent-c++-tests: New file, extracted from
17656         modules/dirent-tests.
17657         * modules/dirent-tests: Depend on it.
17658         * modules/fcntl-h-c++-tests: New file, extracted from
17659         modules/fcntl-h-tests.
17660         * modules/fcntl-h-tests: Depend on it.
17661         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
17662         * modules/glob-tests: Depend on it.
17663         * modules/iconv-h-c++-tests: New file, extracted from
17664         modules/iconv-h-tests.
17665         * modules/iconv-h-tests: Depend on it.
17666         * modules/langinfo-c++-tests: New file, extracted from
17667         modules/langinfo-tests.
17668         * modules/langinfo-tests: Depend on it.
17669         * modules/locale-c++-tests: New file, extracted from
17670         modules/locale-tests.
17671         * modules/locale-tests: Depend on it.
17672         * modules/math-c++-tests: New file, extracted from modules/math-tests.
17673         * modules/math-tests: Depend on it.
17674         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
17675         * modules/pty-tests: Depend on it.
17676         * modules/search-c++-tests: New file, extracted from
17677         modules/search-tests.
17678         * modules/search-tests: Depend on it.
17679         * modules/signal-c++-tests: New file, extracted from
17680         modules/signal-tests.
17681         * modules/signal-tests: Depend on it.
17682         * modules/spawn-c++-tests: New file, extracted from
17683         modules/spawn-tests.
17684         * modules/spawn-tests: Depend on it.
17685         * modules/stdio-c++-tests: New file, extracted from
17686         modules/stdio-tests.
17687         * modules/stdio-tests: Depend on it.
17688         * modules/stdlib-c++-tests: New file, extracted from
17689         modules/stdlib-tests.
17690         * modules/stdlib-tests: Depend on it.
17691         * modules/string-c++-tests: New file, extracted from
17692         modules/string-tests.
17693         * modules/string-tests: Depend on it.
17694         * modules/sys_ioctl-c++-tests: New file, extracted from
17695         modules/sys_ioctl-tests.
17696         * modules/sys_ioctl-tests: Depend on it.
17697         * modules/sys_select-c++-tests: New file, extracted from
17698         modules/sys_select-tests.
17699         * modules/sys_select-tests: Depend on it.
17700         * modules/sys_socket-c++-tests: New file, extracted from
17701         modules/sys_socket-tests.
17702         * modules/sys_socket-tests: Depend on it.
17703         * modules/sys_stat-c++-tests: New file, extracted from
17704         modules/sys_stat-tests.
17705         * modules/sys_stat-tests: Depend on it.
17706         * modules/sys_time-c++-tests: New file, extracted from
17707         modules/sys_time-tests.
17708         * modules/sys_time-tests: Depend on it.
17709         * modules/time-c++-tests: New file, extracted from modules/time-tests.
17710         * modules/time-tests: Depend on it.
17711         * modules/unistd-c++-tests: New file, extracted from
17712         modules/unistd-tests.
17713         * modules/unistd-tests: Depend on it.
17714         * modules/wchar-c++-tests: New file, extracted from
17715         modules/wchar-tests.
17716         * modules/wchar-tests: Depend on it.
17717         * modules/wctype-c++-tests: New file, extracted from
17718         modules/wctype-tests.
17719         * modules/wctype-tests: Depend on it.
17720         Reported by Simon Josefsson.
17721
17722 2010-03-28  Bruno Haible  <bruno@clisp.org>
17723
17724         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
17725         * gnulib-tool (func_exists_module): New function, extracted from
17726         func_verify_module.
17727         (func_verify_module): Use it.
17728         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
17729         'foo' only if 'foo' exists.
17730         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
17731         module.
17732
17733 2010-03-28  Bruno Haible  <bruno@clisp.org>
17734
17735         gnulib-tool: Add support for special categories of tests.
17736         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
17737         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
17738         (func_usage): Document them.
17739         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
17740         inc_unportable_tests, inc_all_tests): New variables.
17741         (func_acceptable): Consider these variables.
17742         (func_modules_transitive_closure): Make it work when the 'Status' field
17743         consists of multiple words.
17744         (func_import): Store and restore the values of inc_cxx_tests,
17745         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
17746         inc_all_tests in gnulib-comp.m4.
17747         (func_create_testdir): Set inc_all_tests to true.
17748         * doc/gnulib.texi (Extra tests modules): New section.
17749         Suggested by Jim Meyering.
17750
17751 2010-03-28  Bruno Haible  <bruno@clisp.org>
17752
17753         ansi-c++-opt: Allow turning off the C++ build by default.
17754         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
17755         gl_CXX_CHOICE_DEFAULT_NO is defined.
17756         Requested by Eric Blake.
17757
17758 2010-03-28  Bruno Haible  <bruno@clisp.org>
17759
17760         unistd: Avoid #define replacements in C++ mode.
17761         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
17762         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
17763         setsockopt, shutdown, select): In C++, attach a warning to the function
17764         if possible, rather than #defining the symbol to a dysfunctional alias.
17765         Reported by John W. Eaton <jwe@gnu.org>.
17766
17767 2010-03-28  Bruno Haible  <bruno@clisp.org>
17768
17769         Fix link errors on mingw.
17770         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
17771         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
17772         $(LIBSOCKET).
17773         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
17774         $(LIBSOCKET).
17775
17776 2010-03-28  Bruno Haible  <bruno@clisp.org>
17777             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17778
17779         lib-ignore: Determine different options for different compilers.
17780         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
17781         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
17782         Add comments.
17783         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
17784         * NEWS: Mention the change.
17785
17786 2010-03-27  Bruno Haible  <bruno@clisp.org>
17787
17788         Remove unused GNULIB_XYZ macro definitions.
17789         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
17790         * modules/fseek (configure.ac): Likewise.
17791         * modules/ioctl (configure.ac): Likewise.
17792         * modules/open (configure.ac): Likewise.
17793         * modules/stdlib-safer (configure.ac): Likewise.
17794
17795 2010-03-27  Bruno Haible  <bruno@clisp.org>
17796
17797         Add a remark about certain modules.
17798         * modules/malloc (Comment): New section.
17799         * modules/realloc (Comment): Likewise.
17800         * modules/sigpipe (Comment): Likewise.
17801
17802 2010-03-27  Bruno Haible  <bruno@clisp.org>
17803
17804         Resolve conflict between the two kinds of module indicators.
17805         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
17806         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
17807         * modules/canonicalize (configure.ac): Invoke
17808         gl_MODULE_INDICATOR_FOR_TESTS.
17809         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
17810         GNULIB_XYZ.
17811         * tests/test-dirent-c++.cc: Likewise.
17812         * tests/test-dirent-safer.c: Likewise.
17813         * tests/test-dup2.c: Likewise.
17814         * tests/test-fchdir.c: Likewise.
17815         * tests/test-fcntl-h-c++.cc: Likewise.
17816         * tests/test-getopt.c: Likewise.
17817         * tests/test-getopt.h: Likewise.
17818         * tests/test-langinfo-c++.cc: Likewise.
17819         * tests/test-locale-c++.cc: Likewise.
17820         * tests/test-math-c++.cc: Likewise.
17821         * tests/test-pty-c++.cc: Likewise.
17822         * tests/test-search-c++.cc: Likewise.
17823         * tests/test-signal-c++.cc: Likewise.
17824         * tests/test-spawn-c++.cc: Likewise.
17825         * tests/test-stdio-c++.cc: Likewise.
17826         * tests/test-stdlib-c++.cc: Likewise.
17827         * tests/test-string-c++.cc: Likewise.
17828         * tests/test-sys_ioctl-c++.cc: Likewise.
17829         * tests/test-sys_select-c++.cc: Likewise.
17830         * tests/test-sys_socket-c++.cc: Likewise.
17831         * tests/test-sys_stat-c++.cc: Likewise.
17832         * tests/test-sys_time-c++.cc: Likewise.
17833         * tests/test-time-c++.cc: Likewise.
17834         * tests/test-unistd-c++.cc: Likewise.
17835         * tests/test-wchar-c++.cc: Likewise.
17836         * tests/uninorm/test-u8-nfc.c: Likewise.
17837         * tests/uninorm/test-u8-nfd.c: Likewise.
17838         * tests/uninorm/test-u8-nfkc.c: Likewise.
17839         * tests/uninorm/test-u8-nfkd.c: Likewise.
17840         * tests/uninorm/test-u16-nfc.c: Likewise.
17841         * tests/uninorm/test-u16-nfd.c: Likewise.
17842         * tests/uninorm/test-u16-nfkc.c: Likewise.
17843         * tests/uninorm/test-u16-nfkd.c: Likewise.
17844         * tests/uninorm/test-u32-nfc.c: Likewise.
17845         * tests/uninorm/test-u32-nfc-big.c: Likewise.
17846         * tests/uninorm/test-u32-nfd.c: Likewise.
17847         * tests/uninorm/test-u32-nfd-big.c: Likewise.
17848         * tests/uninorm/test-u32-nfkc.c: Likewise.
17849         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
17850         * tests/uninorm/test-u32-nfkd.c: Likewise.
17851         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
17852         * tests/uninorm/test-u32-normalize-big.c: Likewise.
17853
17854 2010-03-27  Bruno Haible  <bruno@clisp.org>
17855
17856         Distinguish two kinds of module indicators.
17857         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
17858         gl_MODULE_INDICATOR.
17859         (gl_MODULE_INDICATOR): New macro.
17860         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17861         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
17862         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
17863         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
17864         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
17865         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
17866         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
17867         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
17868         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
17869         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
17870         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
17871         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
17872         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
17873         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
17874         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
17875         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
17876         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
17877         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
17878         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
17879         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
17880         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
17881         * modules/cloexec (configure.ac): Likewise.
17882         * modules/getopt-gnu (configure.ac): Likewise.
17883         * modules/uninorm/u8-normalize (configure.ac): Likewise.
17884         * modules/uninorm/u16-normalize (configure.ac): Likewise.
17885         * modules/uninorm/u32-normalize (configure.ac): Likewise.
17886         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
17887
17888 2010-03-27  Bruno Haible  <bruno@clisp.org>
17889
17890         New module description field 'Comment'.
17891         * gnulib-tool: New option --extract-comment.
17892         (func_usage): Document it.
17893         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
17894         (func_get_comment): New function.
17895         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
17896
17897 2010-03-27  Bruno Haible  <bruno@clisp.org>
17898
17899         Addendum to 2010-02-07 commit.
17900         * gnulib-tool (func_usage): Document --extract-applicability option.
17901
17902 2010-03-27  Bruno Haible  <bruno@clisp.org>
17903
17904         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
17905         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
17906         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
17907         rather than link errors.
17908
17909 2010-03-27  Bruno Haible  <bruno@clisp.org>
17910
17911         Avoid side effects from tests-related modules on the compilation of lib.
17912         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
17913         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
17914         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
17915         parameter. Emit into AM_CPPFLAGS a definition of the designated C
17916         macro.
17917         (func_import): Define a witness macro. Assign it a value that depends
17918         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
17919         tests-related modules.
17920         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
17921         Reported by Jim Meyering.
17922
17923 2010-03-27  Bruno Haible  <bruno@clisp.org>
17924
17925         Factorize common .m4 code.
17926         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
17927         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
17928         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
17929         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
17930         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
17931         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
17932         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
17933         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
17934         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
17935         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
17936         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
17937         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
17938         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
17939         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
17940         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
17941         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
17942         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
17943         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
17944         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
17945         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
17946         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
17947         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
17948         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
17949         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
17950         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
17951         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
17952         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
17953         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
17954         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
17955         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
17956         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
17957         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
17958
17959 2010-03-27  Bruno Haible  <bruno@clisp.org>
17960
17961         Fix a compilation error on Cygwin with g++ >= 4.3.
17962         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
17963         if it is undefined or if we alias it to chmod.
17964         (lstat): Don't warn about the use of this function if it is undefined
17965         or if we alias it to stat.
17966         Reported by Simon Josefsson.
17967
17968 2010-03-27  Bruno Haible  <bruno@clisp.org>
17969
17970         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
17971         * modules/getlogin (configure.ac): Update.
17972
17973         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
17974         * modules/getlogin_r (configure.ac): Update.
17975
17976         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
17977         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
17978         * modules/inet_ntop (configure.ac): Update.
17979
17980         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
17981         * modules/inet_pton (configure.ac): Update.
17982
17983         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
17984         * modules/mbslen (configure.ac): Update.
17985
17986         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
17987         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
17988         * modules/forkpty (configure.ac): Update.
17989         * modules/openpty (configure.ac): Update.
17990
17991 2010-03-26  Simon Josefsson  <simon@josefsson.org>
17992
17993         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
17994         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
17995
17996 2010-03-25  Eric Blake  <eblake@redhat.com>
17997
17998         maint: use pragma consistently across replacement headers
17999         * lib/ctype.in.h (system_header): Hoist for consistent placement.
18000         * lib/dirent.in.h (system_header): Likewise.
18001         * lib/errno.in.h (system_header): Likewise.
18002         * lib/float.in.h (system_header): Likewise.
18003         * lib/getopt.in.h (system_header): Likewise.
18004         * lib/iconv.in.h (system_header): Likewise.
18005         * lib/inttypes.in.h (system_header): Likewise.
18006         * lib/langinfo.in.h (system_header): Likewise.
18007         * lib/locale.in.h (system_header): Likewise.
18008         * lib/math.in.h (system_header): Likewise.
18009         * lib/netdb.in.h (system_header): Likewise.
18010         * lib/netinet_in.in.h (system_header): Likewise.
18011         * lib/pty.in.h (system_header): Likewise.
18012         * lib/sched.in.h (system_header): Likewise.
18013         * lib/se-selinux.in.h (system_header): Likewise.
18014         * lib/search.in.h (system_header): Likewise.
18015         * lib/spawn.in.h (system_header): Likewise.
18016         * lib/stdarg.in.h (system_header): Likewise.
18017         * lib/stdint.in.h (system_header): Likewise.
18018         * lib/string.in.h (system_header): Likewise.
18019         * lib/strings.in.h (system_header): Likewise.
18020         * lib/sys_file.in.h (system_header): Likewise.
18021         * lib/sys_ioctl.in.h (system_header): Likewise.
18022         * lib/sys_socket.in.h (system_header): Likewise.
18023         * lib/sys_times.in.h (system_header): Likewise.
18024         * lib/sys_utsname.in.h (system_header): Likewise.
18025         * lib/sys_wait.in.h (system_header): Likewise.
18026         * lib/sysexits.in.h (system_header): Likewise.
18027         * lib/unistd.in.h (system_header): Likewise.
18028         * lib/wctype.in.h (system_header): Likewise.
18029
18030         arpa/inet: fix mingw compilation warning
18031         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
18032         Reported by Matthew Bolte.
18033
18034 2010-03-25  Bruno Haible  <bruno@clisp.org>
18035
18036         Avoid collision between gnulib wrapper and libintl wrapper.
18037         * lib/printf.c (printf): Don't define if a printf wrapper is already
18038         defined in intl/printf.c.
18039         Reported by Michel Boaventura <michel@michelboaventura.com>.
18040
18041 2010-03-25  Bruno Haible  <bruno@clisp.org>
18042
18043         Use ANSI C.
18044         * lib/readutmp.h (getutent): Provide ANSI C prototype.
18045
18046 2010-03-25  Bruno Haible  <bruno@clisp.org>
18047
18048         Minor formatting changes.
18049         * lib/acosl.c: Insert space before function argument list.
18050         * lib/argz.c: Likewise.
18051         * lib/asinl.c: Likewise.
18052         * lib/expl.c: Likewise.
18053         * lib/gen-uni-tables.c: Likewise.
18054         * lib/gettext.h: Likewise.
18055         * lib/glthread/lock.h: Likewise.
18056         * lib/tanl.c: Likewise.
18057         * lib/uniname/uniname.c: Likewise.
18058         * tests/test-idpriv-drop.c: Likewise.
18059         * tests/test-idpriv-droptemp.c: Likewise.
18060         * tests/test-lock.c: Likewise.
18061         * tests/test-tls.c: Likewise.
18062         * lib/argp-help.c: Insert space before function-like macro argument
18063         list.
18064         * lib/memcmp.c: Likewise.
18065         * tests/test-base64.c: Likewise.
18066         * lib/localename.c: Insert space before sizeof's argument list.
18067         * lib/safe-alloc.h: Likewise.
18068         * lib/file-set.h: Insert space before macro argument list.
18069         * tests/test-argp.c: Likewise.
18070         * lib/argp-namefrob.h: Insert space before function parameter list.
18071         * lib/getaddrinfo.c: Likewise.
18072         * lib/netdb.in.h: Likewise.
18073         * lib/parse-duration.h: Likewise.
18074         * lib/parse-duration.c: Likewise.
18075         * lib/poll.c: Likewise.
18076         * lib/select.c: Likewise.
18077         * lib/trim.h: Likewise.
18078         * tests/test-usleep.c: Likewise.
18079         * lib/ldexpl.c: Insert space before function parameter list and before
18080         function argument list.
18081         * lib/logl.c: Likewise.
18082         * lib/sqrtl.c: Likewise.
18083         * lib/trim.c: Likewise.
18084         * lib/cosl.c: Use GNU style indentation. Insert space before function
18085         argument list.
18086         * lib/sinl.c: Likewise.
18087         * lib/tsearch.c: Insert space after 'for'.
18088         Reported by Jim Meyering.
18089
18090 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
18091
18092         * maint.mk (sc_Wundef_boolean): Check for the presence of the
18093         config header before grepping, as it's not present before
18094         autoreconf/configure are run.  Reported by Simon Josefsson.
18095
18096 2010-03-23  Bruno Haible  <bruno@clisp.org>
18097
18098         pt_chown: Make it work with automake < 1.11.
18099         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
18100         Reported by Simon Josefsson.
18101
18102 2010-03-23  Bruno Haible  <bruno@clisp.org>
18103
18104         pt_chown: Don't depend on GPLed modules.
18105         * lib/pt_chown.c: Don't include idpriv.h.
18106         (main): Don't drop privileges.
18107         * modules/pt_chown (Depends-on): Remove idpriv-drop.
18108         Reported by Simon Josefsson.
18109
18110 2010-03-24  Simon Josefsson  <simon@josefsson.org>
18111
18112         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
18113         suggestions from karl@freefriends.org (Karl Berry).
18114
18115 2010-03-22  Eric Blake  <eblake@redhat.com>
18116
18117         gethostname: further tweaks
18118         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
18119         are overriding gethostname.
18120         Suggested by Bruno Haible.
18121
18122 2010-03-21  Bruno Haible  <bruno@clisp.org>
18123
18124         Fix comments.
18125         * lib/forkpty.c (rpl_forkpty): Fix comment.
18126         * lib/openpty.c (rpl_openpty): Likewise.
18127         Reported by Eric Blake.
18128
18129 2010-03-22  Eric Blake  <eblake@redhat.com>
18130
18131         gethostname: fix build on mingw
18132         * lib/unistd.in.h (includes): Work around fact that mingw
18133         <winsock2.h> re-includes <unistd.h>, by avoiding any
18134         redeclarations if we are being included by <winsock2.h>.
18135         Reported by Matthias Bolte.
18136
18137 2010-03-21  Bruno Haible  <bruno@clisp.org>
18138
18139         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18140         * lib/forkpty.c (forkpty): New replacement function, from glibc with
18141         modifications.
18142         * lib/pty.in.h (forkpty): Update declaration. Add comments.
18143         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
18144         provide the replacement.
18145         * modules/forkpty (Depends-on): Add openpty, login_tty.
18146         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
18147         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
18148         * doc/glibc-functions/forkpty.texi: More supported platforms.
18149         * config/srclist.txt: Add forkpty.c (commented).
18150
18151 2010-03-21  Bruno Haible  <bruno@clisp.org>
18152
18153         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
18154         (Makefile.am): Verify that PTY_LIB is defined.
18155
18156         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
18157
18158 2010-03-21  Bruno Haible  <bruno@clisp.org>
18159
18160         Tests for module 'login_tty'.
18161         * modules/login_tty-tests: New file.
18162         * tests/test-login_tty.c: New file.
18163
18164         New module 'login_tty'.
18165         * lib/login_tty.c: New file.
18166         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
18167         * modules/login_tty: New file.
18168         * doc/glibc-functions/login_tty.texi: Mention the new module.
18169
18170 2010-03-21  Bruno Haible  <bruno@clisp.org>
18171
18172         login_tty: Documentation.
18173         * doc/glibc-functions/login_tty.texi: New file.
18174         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
18175
18176 2010-03-21  Bruno Haible  <bruno@clisp.org>
18177
18178         pty: Consistent macro naming.
18179         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
18180         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
18181         * modules/pty (configure.ac): Update.
18182
18183 2010-03-21  Bruno Haible  <bruno@clisp.org>
18184
18185         Tests for openpty: Make stricter.
18186         * tests/test-openpty.c (main): Add test of canonical processing and
18187         erase.
18188         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
18189
18190         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18191         * lib/openpty.c (openpty): New replacement function.
18192         * lib/pty.in.h: Include <termios.h>.
18193         (openpty): Update declaration. Add comments.
18194         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
18195         is not declared, arrange to provide the replacement. Check for _getpty
18196         and posix_openpt.
18197         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
18198         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
18199         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
18200         * modules/pty-tests (test_pty_c___LDADD): New variable.
18201         * doc/glibc-functions/openpty.texi: More supported platforms.
18202
18203 2010-03-21  Bruno Haible  <bruno@clisp.org>
18204
18205         setenv: Tweaks.
18206         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
18207         the test program.
18208         * doc/posix-functions/setenv.texi: Update platforms list.
18209
18210 2010-03-21  Bruno Haible  <bruno@clisp.org>
18211
18212         New module 'unlockpt'.
18213         * lib/unlockpt.c: New file, from glibc with modifications.
18214         * m4/unlockpt.m4: New file.
18215         * modules/unlockpt: New file.
18216         * lib/stdlib.in.h (unlockpt): New declaration.
18217         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
18218         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
18219         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
18220         HAVE_UNLOCKPT.
18221         * doc/posix-functions/unlockpt.texi: Mention the new module.
18222         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
18223         * config/srclist.txt: Add unlockpt.c (commented).
18224
18225 2010-03-21  Jim Meyering  <meyering@redhat.com>
18226
18227         maint.mk: prohibit inclusion of "intprops.h" without use
18228         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
18229
18230 2010-03-21  Bruno Haible  <bruno@clisp.org>
18231
18232         New module 'grantpt'.
18233         * lib/grantpt.c: New file, from glibc with modifications.
18234         * m4/grantpt.m4: New file.
18235         * modules/grantpt: New file.
18236         * lib/stdlib.in.h (grantpt): New declaration.
18237         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
18238         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
18239         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
18240         HAVE_GRANTPT.
18241         * doc/posix-functions/grantpt.texi: Mention the new module.
18242         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
18243         * config/srclist.txt: Add grantpt.c (commented).
18244
18245 2010-03-21  Bruno Haible  <bruno@clisp.org>
18246
18247         New module 'pt_chown'.
18248         * lib/pt_chown.c: New file, from glibc with modifications.
18249         * lib/pty-private.h: New file, from glibc with modifications.
18250         * modules/pt_chown: New file.
18251         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
18252
18253 2010-03-21  Bruno Haible  <bruno@clisp.org>
18254
18255         Tests for module 'ptsname'.
18256         * modules/ptsname-tests: New file.
18257         * tests/test-ptsname.c: New file.
18258
18259         New module 'ptsname'.
18260         * lib/ptsname.c: New file, from glibc with modifications.
18261         * m4/ptsname.m4: New file.
18262         * modules/ptsname: New file.
18263         * lib/stdlib.in.h (ptsname): New declaration.
18264         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
18265         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
18266         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
18267         HAVE_PTSNAME.
18268         * doc/posix-functions/ptsname.texi: Mention the new module.
18269         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
18270         * config/srclist.txt: Add ptsname.c (commented).
18271
18272 2010-03-21  Bruno Haible  <bruno@clisp.org>
18273
18274         Tests for module 'ttyname_r'.
18275         * modules/ttyname_r-tests: New file.
18276         * tests/test-ttyname_r.c: New file.
18277
18278         New module 'ttyname_r'.
18279         * lib/ttyname_r.c: New file.
18280         * m4/ttyname_r.m4: New file.
18281         * modules/ttyname_r: New file.
18282         * lib/unistd.in.h (ttyname_r): New declaration.
18283         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
18284         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
18285         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
18286         HAVE_TTYNAME_R.
18287         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
18288         * doc/posix-functions/ttyname_r.texi: Mention the new module.
18289
18290 2010-03-20  Bruno Haible  <bruno@clisp.org>
18291
18292         signal: Undefine macro definitions in C++ mode.
18293         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
18294         sigfillset): Undefine macro definitions from the system header in C++
18295         mode.
18296         Reported by John W. Eaton <jwe@gnu.org>.
18297
18298 2010-03-20  Bruno Haible  <bruno@clisp.org>
18299
18300         Ensure no #include statements inside extern "C" { ... }.
18301         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
18302         contain #include statements.
18303         * lib/time.in.h: Likewise.
18304
18305 2010-03-20  Bruno Haible  <bruno@clisp.org>
18306
18307         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
18308         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
18309         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
18310         Reported by John W. Eaton <jwe@gnu.org>.
18311
18312 2010-03-20  Bruno Haible  <bruno@clisp.org>
18313
18314         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
18315         Reported by Jim Meyering.
18316
18317 2010-03-20  Bruno Haible  <bruno@clisp.org>
18318
18319         pipe: Set errno upon failure.
18320         * lib/pipe.h: Specify that when -1 is returned, errno is set.
18321         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
18322         errno value in error message.
18323
18324 2010-03-20  Bruno Haible  <bruno@clisp.org>
18325             Jim Meyering  <meyering@redhat.com>
18326
18327         lchown: Avoid "unused variable" warning.
18328         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
18329
18330 2010-03-20  Bruno Haible  <bruno@clisp.org>
18331
18332         Work around unlink() bug on MacOS X 10.5.6.
18333         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
18334         attempting to unlink a parent directory.
18335         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
18336         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
18337         activate for the replacement function.
18338         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
18339
18340 2010-03-20  Bruno Haible  <bruno@clisp.org>
18341
18342         Fix link errors on Solaris 8.
18343         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
18344         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
18345
18346 2010-03-19  Jim Meyering  <meyering@redhat.com>
18347
18348         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
18349         The _LIBC implementation of build_range_exp correctly honors the
18350         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
18351         However, the non-_LIBC implementation would ignore that syntax-bit
18352         flag and return REG_ERANGE unconditionally.
18353         This change makes it honor that flag.
18354         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
18355         Make two pointer parameters "const".
18356         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
18357         (parse_bracket_exp): Update caller.
18358
18359         regex.m4: correct the reversed range endpoint ([b-a]) test
18360         * m4/regex.m4: When requiring that [b-a] evoke failure,
18361         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
18362         test pass once again for x86-based systems.
18363
18364 2010-03-19  Bruno Haible  <bruno@clisp.org>
18365
18366         scandir: Fix link error on Solaris 8.
18367         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
18368         macros.
18369
18370 2010-03-19  Bruno Haible  <bruno@clisp.org>
18371
18372         getusershell: Fix documentation.
18373         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
18374         module.
18375         * doc/glibc-functions/setusershell.texi: Likewise.
18376
18377         getusershell: Provide declaration, missing on Solaris 9.
18378         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
18379         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
18380         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
18381         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
18382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18383         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
18384         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
18385         HAVE_GETUSERSHELL.
18386         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
18387
18388 2010-03-19  Bruno Haible  <bruno@clisp.org>
18389
18390         wctype: Provide iswblank function.
18391         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
18392         exists and is fine.
18393         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
18394         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
18395         * tests/test-wctype.c (main): Re-enable the iswblank tests.
18396         * doc/posix-functions/iswblank.texi: Update.
18397
18398 2010-03-19  Bruno Haible  <bruno@clisp.org>
18399
18400         Tests of module 'pty' in C++ mode.
18401         * modules/pty-tests: New file.
18402         * tests/test-pty-c++.cc: New file.
18403         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18404
18405 2010-03-19  Eric Blake  <eblake@redhat.com>
18406
18407         logb: fix documentation
18408         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
18409         1.5 declaration bug.
18410
18411         forkpty, openpty: prefer glibc's const-safe prototype
18412         * lib/forkpty.c (rpl_forkpty): New file.
18413         * lib/openpty.c (rpl_openpty): Likewise.
18414         * modules/forkpty (Files): Distribute it.
18415         * modules/openpty (Files): Likewise.
18416         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
18417         check...
18418         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
18419         replacement for for non-const BSD signature.
18420         * modules/pty (Makefile.am): Substitute witnesses.
18421         * lib/pty.in.h (forkpty, openpty): Declare replacements.
18422         * tests/test-forkpty.c: Update signature check.
18423         * tests/test-openpty.c: Likewise.
18424         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
18425         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18426
18427         forkpty, openpty: split functions into new modules
18428         * modules/pty (Makefile.am): Substitute new witnesses.
18429         (Libraries): Move library detection...
18430         * modules/forkpty: ...into new module.
18431         * modules/openpty: Another new module.
18432         * modules/pty-tests: Rename and split...
18433         * modules/forkpty-tests: ...to this...
18434         * modules/openpty-tests: ...and this.
18435         * tests/test-pty.c: Rename and split...
18436         * tests/test-forkpty.c: ...to this...
18437         * tests/test-openpty.c: ...and this.
18438         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
18439         (gl_PTY): Split library searching...
18440         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
18441         (gl_FORKPTY, gl_OPENPTY): New macros.
18442         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
18443         * NEWS: Mention the split.
18444         * MODULES.html.sh (Misc): Document the modules.
18445         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
18446         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18447
18448         pty: improve replacement header
18449         * lib/pty.in.h: New file.
18450         * modules/pty (Files): Ship it.
18451         (Makefile.am): Always build replacement.
18452         * m4/pty.m4: Rename...
18453         * m4/pty_h.m4: ...to this.
18454         (gl_PTY): Modernize setting of witness macros; update check of
18455         forkpty to take proper advantage of cache.
18456         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
18457
18458         getopt: avoid compiler warning
18459         * lib/getopt.c (attribute_hidden): Remove unused macro.
18460
18461 2010-03-18  Bruno Haible  <bruno@clisp.org>
18462
18463         Fix link errors on Solaris 8.
18464         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
18465         * modules/search-tests (test_search_c___LDADD): Likewise.
18466         * modules/signal-tests (test_signal_c___LDADD): Likewise.
18467         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
18468         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
18469         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
18470         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
18471         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
18472         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
18473
18474 2010-03-18  Bruno Haible  <bruno@clisp.org>
18475
18476         Fix bug introduced on 2010-03-14.
18477         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
18478         (gl_SPAWN_H): Require it.
18479         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
18480         Reported by Simon Josefsson.
18481
18482 2010-03-18  Bruno Haible  <bruno@clisp.org>
18483
18484         Fix typo introduced on 2009-12-31.
18485         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
18486         posix_spawn_file_actions_adddup2.
18487
18488 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
18489         and Eric Blake  <eblake@redhat.com>
18490
18491         test-vc-list-files-git: make more robust
18492         * tests/test-vc-list-files-git.sh: Unset problematic environment
18493         variables.  Chain commands together.
18494
18495 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
18496
18497         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
18498         `AC_CHECK_DECL' invocation.
18499
18500 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
18501
18502         * lib/inttostr.c (inttostr): Make sure the invocation of verify
18503         appears before executable statements. Suggested by Petr Sumbera
18504         <Petr.Sumbera@Sun.COM>.
18505
18506 2010-03-14  Bruno Haible  <bruno@clisp.org>
18507
18508         * tests/test-flock.c (test_exclusive): Comment out a test that causes
18509         portability problems. Instead use a simpler test.
18510         (main): Check that invalid arguments are rejected only on Linux.
18511
18512 2010-03-14  Bruno Haible  <bruno@clisp.org>
18513
18514         Fix bug introduced on 2009-12-31.
18515         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18516         gl_PREREQ_SYS_H_WINSOCK2 always.
18517         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
18518         SYS_SOCKET_H variable.
18519         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
18520         Update comments.
18521         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
18522         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18523         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18524         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18525         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
18526
18527 2010-03-14  Bruno Haible  <bruno@clisp.org>
18528
18529         Fix values returned by sinl, cosl.
18530         * lib/trigl.h: Add specification comments.
18531         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
18532         that combines the values from the precomputed table with the values of
18533         the Chebyshev polynomials.
18534
18535 2010-03-14  Bruno Haible  <bruno@clisp.org>
18536
18537         Fix compilation error when modules 'posix_spawn[p]' are not used.
18538         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
18539         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
18540
18541 2010-03-14  Bruno Haible  <bruno@clisp.org>
18542
18543         Fix compilation error on mingw when module 'time_r' is not used.
18544         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
18545         is 1.
18546         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
18547         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
18548         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
18549         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
18550
18551 2010-03-14  Bruno Haible  <bruno@clisp.org>
18552
18553         Fix compilation error with Sun C.
18554         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
18555         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
18556         instead of GCC specific ULONG_LONG_MAX.
18557         * lib/xstrtoll.c: Likewise.
18558         * lib/xstrtoull.c: Likewise.
18559
18560 2010-03-13  Bruno Haible  <bruno@clisp.org>
18561
18562         Allow the user to disable C++ code and tests.
18563         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
18564         (gl_PROG_ANSI_CXX): Require it.
18565
18566 2010-03-13  Bruno Haible  <bruno@clisp.org>
18567
18568         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
18569         cases.
18570
18571 2010-03-13  Bruno Haible  <bruno@clisp.org>
18572
18573         Test that gnulib does not break the standard C++ headers.
18574         * tests/test-locale-c++2.cc: New file.
18575         * modules/locale-tests (Files): Add it.
18576         (Makefile.am): Compile it for test-locale-c++.
18577         * tests/test-math-c++2.cc: New file.
18578         * modules/math-tests (Files): Add it.
18579         (Makefile.am): Compile it for test-math-c++.
18580         * tests/test-signal-c++2.cc: New file.
18581         * modules/signal-tests (Files): Add it.
18582         (Makefile.am): Compile it for test-signal-c++.
18583         * tests/test-stdio-c++2.cc: New file.
18584         * modules/stdio-tests (Files): Add it.
18585         (Makefile.am): Compile it for test-stdio-c++.
18586         * tests/test-stdlib-c++2.cc: New file.
18587         * modules/stdlib-tests (Files): Add it.
18588         (Makefile.am): Compile it for test-stdlib-c++.
18589         * tests/test-string-c++2.cc: New file.
18590         * modules/string-tests (Files): Add it.
18591         (Makefile.am): Compile it for test-string-c++.
18592         * tests/test-time-c++2.cc: New file.
18593         * modules/time-tests (Files): Add it.
18594         (Makefile.am): Compile it for test-time-c++.
18595         Reported by John W. Eaton <jwe@gnu.org>.
18596
18597 2010-03-13  Bruno Haible  <bruno@clisp.org>
18598
18599         * gnulib-tool (func_usage): Clarify which options are available for
18600         --create-testdir and --create-megatestdir.
18601
18602 2010-03-13  Bruno Haible  <bruno@clisp.org>
18603
18604         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
18605         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
18606         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
18607         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18608         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
18609         when appropriate.
18610         Reported by Jim Meyering.
18611
18612 2010-03-12  Simon Josefsson  <simon@josefsson.org>
18613
18614         * gnulib-tool (func_import): Explain origin of code.
18615
18616 2010-03-12  Bruno Haible  <bruno@clisp.org>
18617
18618         Fix problem with automake's definition of CXXLINK.
18619         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
18620         Reported by Simon Josefsson and Ludovic Courtès.
18621
18622 2010-03-12  Bruno Haible  <bruno@clisp.org>
18623
18624         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
18625         stable releases.
18626
18627 2010-03-11  Bruno Haible  <bruno@clisp.org>
18628
18629         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
18630         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
18631         whether the system provides one variant or multiple variants of the
18632         function.
18633         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
18634         C++ compilers.
18635         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
18636         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
18637         Reported by Jim Meyering.
18638
18639 2010-03-09  Simon Josefsson  <simon@josefsson.org>
18640
18641         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
18642
18643 2010-03-08  Bruno Haible  <bruno@clisp.org>
18644
18645         gnulib-tool: Add support for --libtool in --create-testdir.
18646         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
18647         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
18648
18649 2010-03-08  Eric Blake  <eblake@redhat.com>
18650
18651         gnulib-tool.texi: mention possibility of git submodule
18652         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
18653         submodules.
18654         * doc/.gitignore: Ignore another generated file.
18655
18656 2010-03-08  Karl Berry  <karl@gnu.org>
18657
18658         * doc/gnulib-tool.texi (VCS Issues): Mention third option
18659         of committing gnulib files while skipping others.
18660
18661 2010-03-07  Bruno Haible  <bruno@clisp.org>
18662
18663         Tests of module 'wctype' in C++ mode.
18664         * tests/test-wctype-c++.cc: New file.
18665         * modules/wctype-tests (Files): Add it and tests/signature.h.
18666         (Depends-on): Add ansi-c++-opt.
18667         (Makefile.am): Arrange to compile and run test-wctype-c++.
18668
18669         Tests of module 'wchar' in C++ mode.
18670         * tests/test-wchar-c++.cc: New file.
18671         * modules/wchar-tests (Files): Add it and tests/signature.h.
18672         (Depends-on): Add ansi-c++-opt.
18673         (Makefile.am): Arrange to compile and run test-wchar-c++.
18674         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
18675         gl_MODULE_INDICATOR.
18676
18677         Tests of module 'unistd' in C++ mode.
18678         * tests/test-unistd-c++.cc: New file.
18679         * modules/unistd-tests (Files): Add it and tests/signature.h.
18680         (Depends-on): Add ansi-c++-opt.
18681         (Makefile.am): Arrange to compile and run test-unistd-c++.
18682         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
18683         gl_MODULE_INDICATOR.
18684
18685         Tests of module 'time' in C++ mode.
18686         * tests/test-time-c++.cc: New file.
18687         * modules/time-tests (Files): Add it and tests/signature.h.
18688         (Depends-on): Add ansi-c++-opt.
18689         (Makefile.am): Arrange to compile and run test-time-c++.
18690         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18691
18692         Tests of module 'sys_time' in C++ mode.
18693         * tests/test-sys_time-c++.cc: New file.
18694         * modules/sys_time-tests (Files): Add it and tests/signature.h.
18695         (Depends-on): Add ansi-c++-opt.
18696         (Makefile.am): Arrange to compile and run test-sys_time-c++.
18697         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
18698         gl_MODULE_INDICATOR.
18699
18700         Tests of module 'sys_stat' in C++ mode.
18701         * tests/test-sys_stat-c++.cc: New file.
18702         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
18703         (Depends-on): Add ansi-c++-opt.
18704         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
18705         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
18706         gl_MODULE_INDICATOR.
18707
18708         Tests of module 'sys_socket' in C++ mode.
18709         * tests/test-sys_socket-c++.cc: New file.
18710         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
18711         (Depends-on): Add ansi-c++-opt.
18712         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
18713         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
18714         gl_MODULE_INDICATOR.
18715
18716         Tests of module 'sys_select' in C++ mode.
18717         * tests/test-sys_select-c++.cc: New file.
18718         * modules/sys_select-tests (Files): Add it and tests/signature.h.
18719         (Depends-on): Add ansi-c++-opt.
18720         (Makefile.am): Arrange to compile and run test-sys_select-c++.
18721         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
18722         gl_MODULE_INDICATOR.
18723
18724         Tests of module 'sys_ioctl' in C++ mode.
18725         * tests/test-sys_ioctl-c++.cc: New file.
18726         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
18727         (Depends-on): Add ansi-c++-opt.
18728         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
18729         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
18730         gl_MODULE_INDICATOR.
18731
18732         Tests of module 'string' in C++ mode.
18733         * tests/test-string-c++.cc: New file.
18734         * modules/string-tests (Files): Add it and tests/signature.h.
18735         (Depends-on): Add ansi-c++-opt.
18736         (Makefile.am): Arrange to compile and run test-string-c++.
18737         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
18738         gl_MODULE_INDICATOR.
18739
18740         Tests of module 'stdlib' in C++ mode.
18741         * tests/test-stdlib-c++.cc: New file.
18742         * modules/stdlib-tests (Files): Add it and tests/signature.h.
18743         (Depends-on): Add ansi-c++-opt.
18744         (Makefile.am): Arrange to compile and run test-stdlib-c++.
18745         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
18746         gl_MODULE_INDICATOR.
18747
18748         Tests of module 'stdio' in C++ mode.
18749         * tests/test-stdio-c++.cc: New file.
18750         * modules/stdio-tests (Files): Add it and tests/signature.h.
18751         (Depends-on): Add ansi-c++-opt.
18752         (Makefile.am): Arrange to compile and run test-stdio-c++.
18753         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
18754         gl_MODULE_INDICATOR.
18755
18756         Tests of module 'spawn' in C++ mode.
18757         * tests/test-spawn-c++.cc: New file.
18758         * modules/spawn-tests (Files): Add it and tests/signature.h.
18759         (Depends-on): Add ansi-c++-opt.
18760         (Makefile.am): Arrange to compile and run test-spawn-c++.
18761         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
18762         gl_MODULE_INDICATOR.
18763
18764         Tests of module 'signal' in C++ mode.
18765         * tests/test-signal-c++.cc: New file.
18766         * modules/signal-tests (Files): Add it and tests/signature.h.
18767         (Depends-on): Add ansi-c++-opt.
18768         (Makefile.am): Arrange to compile and run test-signal-c++.
18769         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
18770         gl_MODULE_INDICATOR.
18771
18772         Tests of module 'search' in C++ mode.
18773         * tests/test-search-c++.cc: New file.
18774         * modules/search-tests (Files): Add it and tests/signature.h.
18775         (Depends-on): Add ansi-c++-opt.
18776         (Makefile.am): Arrange to compile and run test-search-c++.
18777         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
18778         gl_MODULE_INDICATOR.
18779
18780         Tests of module 'math' in C++ mode.
18781         * tests/test-math-c++.cc: New file.
18782         * modules/math-tests (Files): Add it and tests/signature.h.
18783         (Depends-on): Add ansi-c++-opt.
18784         (Makefile.am): Arrange to compile and run test-math-c++.
18785         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18786
18787         Tests of module 'locale' in C++ mode.
18788         * tests/test-locale-c++.cc: New file.
18789         * modules/locale-tests (Files): Add it and tests/signature.h.
18790         (Depends-on): Add ansi-c++-opt.
18791         (Makefile.am): Arrange to compile and run test-locale-c++.
18792         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
18793         gl_MODULE_INDICATOR.
18794
18795         Tests of module 'langinfo' in C++ mode.
18796         * tests/test-langinfo-c++.cc: New file.
18797         * modules/langinfo-tests (Files): Add it and tests/signature.h.
18798         (Depends-on): Add ansi-c++-opt.
18799         (Makefile.am): Arrange to compile and run test-langinfo-c++.
18800         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
18801         gl_MODULE_INDICATOR.
18802
18803         Tests of module 'iconv-h' in C++ mode.
18804         * tests/test-iconv-h-c++.cc: New file.
18805         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
18806         (Depends-on): Add ansi-c++-opt.
18807         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
18808
18809         Tests of module 'glob' in C++ mode.
18810         * tests/test-glob-c++.cc: New file.
18811         * modules/glob-tests (Files): Add it.
18812         (Depends-on): Add ansi-c++-opt.
18813         (Makefile.am): Arrange to compile and run test-glob-c++.
18814
18815         Tests of module 'fcntl-h' in C++ mode.
18816         * tests/test-fcntl-h-c++.cc: New file.
18817         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
18818         (Depends-on): Add ansi-c++-opt.
18819         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
18820         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
18821         gl_MODULE_INDICATOR.
18822
18823         Tests of module 'dirent' in C++ mode.
18824         * tests/test-dirent-c++.cc: New file.
18825         * modules/dirent-tests (Files): Add it and tests/signature.h.
18826         (Depends-on): Add ansi-c++-opt.
18827         (Makefile.am): Arrange to compile and run test-dirent-c++.
18828         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
18829         gl_MODULE_INDICATOR.
18830
18831         New module 'ansi-c++-opt'.
18832         * modules/ansi-c++-opt: New file.
18833         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
18834
18835         Document C++ namespace mode.
18836         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
18837
18838         wctype: Avoid #define replacements in C++ mode.
18839         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
18840         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
18841         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
18842         In C++, define a namespaced alias symbol.
18843         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
18844         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
18845         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
18846         rule.
18847
18848         wchar: Avoid #define replacements in C++ mode.
18849         * lib/wchar.in.h: Include c++defs.h.
18850         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
18851         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
18852         symbol.
18853         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
18854         * modules/wchar (Depends-on): Add c++defs.
18855         (Makefile.am): Update wchar.h rule.
18856
18857         unistd: Avoid #define replacements in C++ mode.
18858         * lib/unistd.in.h: Include c++defs.h.
18859         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
18860         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
18861         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
18862         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
18863         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
18864         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
18865         symbol.
18866         (environ): Update.
18867         * modules/unistd (Depends-on): Add c++defs.
18868         (Makefile.am): Update unistd.h rule.
18869
18870         time: Avoid #define replacements in C++ mode.
18871         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
18872         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
18873         define a namespaced alias symbol.
18874         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
18875         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
18876         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
18877         * modules/time (Depends-on): Add c++defs, warn-on-use.
18878         (Makefile.am): Update time.h rule.
18879         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
18880         * modules/nanosleep (configure.ac): Likewise.
18881         * modules/strptime (configure.ac): Likewise.
18882         * modules/timegm (configure.ac): Likewise.
18883
18884         sys_time: Avoid #define replacements in C++ mode.
18885         * lib/sys_time.in.h: Include c++defs.h.
18886         (gettimeofday): In C++, define a namespaced alias symbol.
18887         * modules/sys_time (Depends-on): Add c++defs.
18888         (Makefile.am): Update sys/time.h rule.
18889
18890         sys_stat: Avoid #define replacements in C++ mode.
18891         * lib/sys_stat.in.h: Include c++defs.h.
18892         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
18893         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
18894         namespaced alias symbol.
18895         In C++, define a namespaced alias symbol.
18896         * modules/sys_stat (Depends-on): Add c++defs.
18897         (Makefile.am): Update sys/stat.h rule.
18898
18899         sys_socket: Avoid #define replacements in C++ mode.
18900         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
18901         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
18902         definitions also when the system has a <sys/socket.h>.
18903         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
18904         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
18905         In C++, define a namespaced alias symbol.
18906         * modules/sys_socket (Depends-on): Add c++defs.
18907         (Makefile.am): Update sys/socket.h rule.
18908
18909         sys_select: Avoid #define replacements in C++ mode.
18910         * lib/sys_select.in.h: Include c++defs.h. Enable the function
18911         definitions also when the system has a <sys/select.h>.
18912         (select): In C++, define a namespaced alias symbol.
18913         * modules/sys_select (Depends-on): Add c++defs.
18914         (Makefile.am): Update sys/select.h rule.
18915
18916         sys_ioctl: Avoid #define replacements in C++ mode.
18917         * lib/sys_ioctl.in.h: Include c++defs.h.
18918         (ioctl): In C++, define a namespaced alias symbol.
18919         * modules/sys_ioctl (Depends-on): Add c++defs.
18920         (Makefile.am): Update sys/ioctl.h rule.
18921
18922         string: Avoid #define replacements in C++ mode.
18923         * lib/string.in.h: Include c++defs.h.
18924         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
18925         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
18926         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
18927         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
18928         strsignal, strverscmp): In C++, define a namespaced alias symbol.
18929         * modules/string (Depends-on): Add c++defs.
18930         (Makefile.am): Update string.h rule.
18931
18932         stdlib: Avoid #define replacements in C++ mode.
18933         * lib/stdlib.in.h: Include c++defs.h.
18934         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
18935         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
18936         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
18937         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
18938         symbol.
18939         * modules/stdlib (Depends-on): Add c++defs.
18940         (Makefile.am): Update stdlib.h rule.
18941
18942         stdio: Avoid #define replacements in C++ mode.
18943         * lib/stdio.in.h: Include c++defs.h.
18944         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
18945         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
18946         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
18947         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
18948         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
18949         namespaced alias symbol.
18950         * modules/stdio (Depends-on): Add c++defs.
18951         (Makefile.am): Update stdio.h rule.
18952
18953         spawn: Avoid #define replacements in C++ mode.
18954         * lib/spawn.in.h: Include c++defs.h.
18955         (posix_spawn, posix_spawnp, posix_spawnattr_init,
18956         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
18957         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
18958         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
18959         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
18960         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
18961         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
18962         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
18963         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
18964         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
18965         In C++, define a namespaced alias symbol.
18966         * modules/spawn (Depends-on): Add c++defs.
18967         (Makefile.am): Update spawn.h rule.
18968
18969         signal: Avoid #define replacements in C++ mode.
18970         * lib/signal.in.h: Include c++defs.h.
18971         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
18972         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
18973         namespaced alias symbol.
18974         * modules/signal (Depends-on): Add c++defs.
18975         (Makefile.am): Update signal.h rule.
18976
18977         search: Avoid #define replacements in C++ mode.
18978         * lib/search.in.h: Include c++defs.h.
18979         (_gl_search_compar_fn, _gl_search_action_fn): New types.
18980         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
18981         symbol.
18982         * modules/search (Depends-on): Add c++defs.
18983         (Makefile.am): Update search.h rule.
18984
18985         math: Avoid #define replacements in C++ mode.
18986         * lib/math.in.h: Include c++defs.h.
18987         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
18988         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
18989         trunc, truncl): In C++, define a namespaced alias symbol.
18990         * modules/math (Depends-on): Add c++defs.
18991         (Makefile.am): Update math.h rule.
18992
18993         locale: Avoid #define replacements in C++ mode.
18994         * lib/locale.in.h: Include c++defs.h.
18995         (duplocale): In C++, define a namespaced alias symbol.
18996         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
18997         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
18998         * modules/locale (Depends-on): Add c++defs.
18999         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
19000
19001         langinfo: Avoid #define replacements in C++ mode.
19002         * lib/langinfo.in.h: Include c++defs.h.
19003         (nl_langinfo): In C++, define a namespaced alias symbol.
19004         * modules/langinfo (Depends-on): Add c++defs.
19005         (Makefile.am): Update langinfo.h rule.
19006
19007         iconv-h: Avoid #define replacements in C++ mode.
19008         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
19009         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
19010         symbol.
19011         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
19012         whenever iconv is present.
19013         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
19014         (Makefile.am): Update iconv.h rule.
19015
19016         glob: Avoid #define replacements in C++ mode.
19017         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
19018         (_gl_glob_errfunc_fn): New type.
19019         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
19020         symbol.
19021         * modules/glob (Depends-on): Add c++defs, warn-on-use.
19022         (Makefile.am): Update glob.h rule.
19023
19024         fcntl-h: Avoid #define replacements in C++ mode.
19025         * lib/fcntl.in.h: Include c++defs.h.
19026         (fcntl, open, openat): In C++, define a namespaced alias symbol.
19027         * modules/fcntl-h (Depends-on): Add c++defs.
19028         (Makefile.am): Update fcntl.h rule.
19029
19030         dirent: Avoid #define replacements in C++ mode.
19031         * lib/dirent.in.h: Include c++defs.h.
19032         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
19033         namespaced alias symbol.
19034         (dirfd): Update declaration.
19035         * modules/dirent (Depends-on): Add c++defs.
19036         (Makefile.am): Update dirent.h rule.
19037
19038         ctype: Make it usable in C++ code.
19039         * lib/ctype.in.h: Include c++defs.h.
19040         (isblank): Declare as extern "C".
19041         * modules/ctype (Depends-on): Add c++defs.
19042         (Makefile.am): Update ctype.h rule.
19043
19044         New module 'c++defs'.
19045         * modules/c++defs: New file.
19046         * build-aux/c++defs.h: New file.
19047         Reported by John W. Eaton <jwe@gnu.org>.
19048
19049 2010-03-07  Bruno Haible  <bruno@clisp.org>
19050
19051         logb: Provide missing declaration for Cygwin.
19052         * lib/math.in.h (logb): New declaration.
19053         * m4/logb.m4: New file.
19054         * modules/logb (Files): Add m4/logb.m4.
19055         (Depends-on): Add math.
19056         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
19057         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
19058         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
19059         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
19060         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
19061
19062 2010-03-07  Bruno Haible  <bruno@clisp.org>
19063
19064         Fix test-cond link error.
19065         * tests/test-cond.c: Include <stdio.h>.
19066
19067 2010-03-07  Bruno Haible  <bruno@clisp.org>
19068
19069         Fix test-dirent-safer link error.
19070         * modules/dirent-safer-tests (Makefile.am): Define
19071         test_dirent_safer_LDADD.
19072
19073 2010-03-07  Bruno Haible  <bruno@clisp.org>
19074
19075         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
19076         among default module list.
19077
19078 2010-03-07  Bruno Haible  <bruno@clisp.org>
19079
19080         Fix link error on platforms with GNU libiconv.
19081         * modules/unistr/u8-strcoll-tests (Makefile): Define
19082         test_u8_strcoll_LDADD.
19083         * modules/unistr/u16-strcoll-tests (Makefile): Define
19084         test_u16_strcoll_LDADD.
19085         * modules/unistr/u32-strcoll-tests (Makefile): Define
19086         test_u32_strcoll_LDADD.
19087
19088 2010-03-07  Bruno Haible  <bruno@clisp.org>
19089
19090         Use POSIX declarations for socket functions.
19091         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
19092         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
19093         rpl_sendto): Change declaration to match POSIX.
19094         * lib/connect.c (rpl_connect): Likewise.
19095         * lib/accept.c (rpl_accept): Likewise.
19096         * lib/bind.c (rpl_bind): Likewise.
19097         * lib/getpeername.c (rpl_getpeername): Likewise.
19098         * lib/getsockname.c (rpl_getsockname): Likewise.
19099         * lib/recv.c (rpl_recv): Likewise.
19100         * lib/send.c (rpl_send): Likewise.
19101         * lib/recvfrom.c (rpl_recvfrom): Likewise.
19102         * lib/sendto.c (rpl_sendto): Likewise.
19103
19104 2010-03-06  Bruno Haible  <bruno@clisp.org>
19105
19106         Clarify access, euidaccess, faccessat.
19107         * doc/posix-functions/faccessat.texi: Mention security problem under
19108         "Other problems", not "Portability problems".
19109         * doc/posix-functions/access.texi: Likewise. Mention a related security
19110         problem.
19111         * doc/glibc-functions/euidaccess.texi: Mention security problems.
19112         * lib/euidaccess.c: Add comments about platforms.
19113         * lib/unistd.in.h (access, euidaccess): Add warnings.
19114
19115 2010-03-07  Bruno Haible  <bruno@clisp.org>
19116
19117         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
19118         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
19119         (POSIX_SPAWN_SETSCHEDULER): Likewise.
19120         (POSIX_SPAWN_USEVFORK): Define in a way that works when
19121         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19122         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
19123         declare when POSIX_SPAWN_SETSCHEDULER is zero.
19124         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
19125         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
19126         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
19127         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
19128         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
19129         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
19130         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
19131         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
19132         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
19133         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
19134         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
19135         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
19136         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
19137         Likewise.
19138         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
19139         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
19140         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
19141         Likewise.
19142         * tests/test-spawn.c (main): Make it work when
19143         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19144
19145 2010-03-07  Bruno Haible  <bruno@clisp.org>
19146
19147         Fix incorrect Makefile.am generation in German locale.
19148         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19149         Execute sed command with character range in C locale.
19150
19151 2010-03-06  Bruno Haible  <bruno@clisp.org>
19152
19153         Tests for module 'iconv-h'.
19154         * modules/iconv-h-tests: New file.
19155         * tests/test-iconv-h.c: New file.
19156
19157         New module 'iconv-h'.
19158         * modules/iconv-h: New file.
19159         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
19160         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
19161         (configure.ac): Remove gl_ICONV_H.
19162         (Makefile.am): Remove rule for iconv.h.
19163
19164 2010-03-06  Bruno Haible  <bruno@clisp.org>
19165
19166         More consistent naming of *.m4 files.
19167         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
19168         * modules/wctype (Files): Update.
19169
19170         More consistent naming of *.m4 files.
19171         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
19172         * modules/wchar (Files): Update.
19173
19174 2010-03-06  Jim Meyering  <meyering@redhat.com>
19175
19176         euidaccess: relax license to LGPLv2+
19177         * modules/euidaccess (License): Relax to LGPLv2+.
19178
19179 2010-03-06  Bruno Haible  <bruno@clisp.org>
19180
19181         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
19182         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
19183         (Makefile.am): Augment lib_SOURCES instead.
19184
19185 2010-03-04  Jim Meyering  <meyering@redhat.com>
19186
19187         utime: remove obsolete module
19188         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
19189         unnecessary for years, and has been marked as obsolete for 10 months.
19190         * modules/utime: Remove file.
19191         * lib/utime.c: Remove file.
19192         * m4/utime.m4: Remove file.
19193         * m4/utimes-null.m4: Remove file.
19194         * doc/posix-functions/utime.texi (utime): Remove reference to
19195         the module.  Move the sole "fixed by gnulib" item into the
19196         "problems not fixed by Gnulib" list.
19197         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
19198
19199 2010-03-05  Simon Josefsson  <simon@josefsson.org>
19200
19201         * modules/exit (License): Relax license to LGPLv2+.
19202         (Status): Mark as obsolete.
19203         * NEWS: Mention deprecated 'exit' module.
19204         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
19205         of now obsolete 'exit'.
19206
19207 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19208
19209         fts-lgpl: remove unused module
19210         * modules/fts-lgpl: Remove.
19211         * MODULES.html.sh (func_all_modules): Adjust.
19212         * check-module (find_included_lib_files): Adjust.
19213         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
19214
19215 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
19216
19217         copy-acl: enhance Solaris ACL error handling
19218         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
19219         * lib/set-mode-acl.c (qset_acl): Likewise.
19220
19221 2010-03-02  Bruno Haible  <bruno@clisp.org>
19222
19223         spawn: Don't override the system defined values on FreeBSD 8.
19224         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
19225         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
19226         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
19227         if HAVE_POSIX_SPAWN is 1.
19228         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
19229
19230 2010-03-01  Bruno Haible  <bruno@clisp.org>
19231
19232         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
19233         regarding Automake.
19234
19235 2010-02-25  Bruno Haible  <bruno@clisp.org>
19236
19237         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
19238         * gnulib-tool: Define 'echo' as a function only before the ksh alias
19239         setting, not afterwards.
19240         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
19241
19242 2010-02-24  Eric Blake  <eblake@redhat.com>
19243
19244         bootstrap, git-version-gen: use timestamp
19245         * build-aux/git-version-gen (scriptversion): Force UTC.
19246         * build-aux/bootstrap (scriptversion): New variable.
19247
19248         bootstrap: allow older git
19249         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
19250         older than 1.6.4.  Requested by the libvirt project.
19251
19252 2010-02-23  Eric Blake  <eblake@redhat.com>
19253
19254         warn-on-use: work with old autoconf
19255         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
19256         AS_VAR semantics of autoconf 2.60.
19257         Reported by Bruno Haible.
19258
19259         bootstrap: improve some comments
19260         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
19261         clarification comments.
19262
19263         gettimeofday: provide correct function
19264         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
19265         when replacement is declared, otherwise provide gettimeofday.
19266         Reported by Michael Goffioul.
19267
19268 2010-02-23  Jim Meyering  <meyering@redhat.com>
19269
19270         lib-ignore: relax license to "unlimited", not LGPLv2+
19271         * modules/lib-ignore (License): Relax to "unlimited".
19272
19273 2010-02-23  Jim Meyering  <meyering@redhat.com>
19274
19275         lib-ignore: relax license to LGPLv2+
19276         * modules/lib-ignore (License): Relax to LGPLv2+.
19277
19278 2010-02-22  Eric Blake  <eblake@redhat.com>
19279
19280         lseek: avoid bash 3.2 broken pipe bug
19281         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
19282         warning from bash 3.2.
19283         Reported by Ben Pfaff, with analysis from Bruno Haible.
19284
19285         bootstrap: support non-FSF copyright holder
19286         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
19287         bootstrap.conf override of COPYRIGHT_HOLDER.
19288         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
19289
19290         bootstrap: interoperate with gettext 0.14.1
19291         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
19292
19293         bootstrap: allow for alternate submodule location
19294         * build-aux/bootstrap (gnulib_path): New variable; use instead of
19295         hardcoding submodule location.
19296         (gnulib_mk): Allow direct use of Makefile.am.
19297
19298         bootstrap: use GNULIB_SRCDIR to reduce disk usage
19299         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
19300         rather than reconfiguring where the submodule points.
19301
19302         gettimeofday: restore support for platforms that lack function
19303         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
19304         replacement if function is missing.
19305         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
19306         * modules/sys_time (Makefile.am): Substitute it.
19307         * lib/sys_time.in.h (gettimeofday): Check it.
19308         Reported by Michael Goffioul.
19309
19310 2010-02-21  Bruno Haible  <bruno@clisp.org>
19311
19312         * lib/stdio.in.h (obstack_printf): Fix typo.
19313
19314 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
19315
19316         vc-list-files: use bzr ls's -R option
19317         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
19318         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
19319
19320 2010-02-21  Jim Meyering  <meyering@redhat.com>
19321
19322         init.sh: fix EXEEXT shims to work also for names like test-prog
19323         * tests/init.sh: Re-exec a better shell, when needed.
19324         If the current shell lacks support for posix $(...), an init.sh-using
19325         test will now try to find a shell that supports that.  If EXEEXT is
19326         nonempty, we also require support for hyphen-in-alias-name and shell
19327         substitutions like ${var#glob}.  Failure to find such a shell results
19328         in a skipped test.
19329
19330 2010-02-21  Bruno Haible  <bruno@clisp.org>
19331
19332         Really work around around "broken pipe" error message from bash 3.2.
19333         * gnulib-tool (func_reset_sigpipe): Remove function.
19334         (echo): In bash 3.2, define to a function that uses printf.
19335         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
19336
19337 2010-02-20  Bruno Haible  <bruno@clisp.org>
19338
19339         Restore support for automake 1.9.6 with autoconf 2.61.
19340         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
19341         Reported by James Youngman <jay@gnu.org>.
19342
19343 2010-02-20  Bruno Haible  <bruno@clisp.org>
19344
19345         Improve *printf warning condition.
19346         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
19347         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
19348         and the function is overridden due to SIGPIPE emulation.
19349
19350 2010-02-20  Bruno Haible  <bruno@clisp.org>
19351
19352         * lib/stdio.in.h: Tweak comments.
19353
19354 2010-02-19  Bruno Haible  <bruno@clisp.org>
19355
19356         Make it easier to find modules. New gnulib-tool option '--find'.
19357         * gnulib-tool: New option --find.
19358         (func_usage): Document it.
19359         (func_sanitize_modulelist): New function, extracted from
19360         func_all_modules.
19361         (func_all_modules): Invoke it.
19362         * doc/gnulib-tool.texi (Which modules?): New node.
19363
19364 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
19365
19366         * lib/sys_select.in.h: Provide select replacement even if
19367         sys/select.h exists on a system, for Interix.
19368
19369 2010-02-18  Jim Meyering  <meyering@redhat.com>
19370
19371         init.sh: don't use $(...) just yet
19372         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
19373         to accommodate e.g., Solaris' /bin/sh.
19374
19375 2010-02-17  Bruno Haible  <bruno@clisp.org>
19376
19377         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
19378         Reported by Ludovic Courtès <ludo@gnu.org>.
19379
19380 2010-02-16  Simon Josefsson  <simon@josefsson.org>
19381
19382         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
19383         linking with -lintl.
19384
19385 2010-02-17  Simon Josefsson  <simon@josefsson.org>
19386
19387         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
19388         if not provided by the system's netdb.h.  Reported by
19389         ludo@gnu.org (Ludovic Courtès).
19390
19391 2010-02-15  Jim Meyering  <meyering@redhat.com>
19392
19393         init.sh: improve portability and efficiency
19394         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
19395         "dummy" in a for loop.
19396         Use '!', not '^' to select the complement of a character set used
19397         in a "case" statement.
19398         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
19399         Suggestions from Eric Blake.
19400
19401         init.sh: automatically accommodate programs with the .exe suffix
19402         Automatically arrange for an invocation of "prog" to execute the
19403         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
19404         may use the simpler "prog", yet still work when built on a system
19405         that requires specifying the added suffix.
19406         Do this by constructing a function named "prog" that invokes
19407         "prog.exe" for each .exe file in selected directories.
19408         * tests/init.sh (find_exe_basenames_): New function.
19409         (create_exe_shim_functions_): New function.
19410         (path_prepend_): Use it.
19411
19412         maint.mk: mark syntax-check sc_*.m rules as .PHONY
19413         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
19414         "make -t syntax-check" doesn't create a ton of sc_*.m files.
19415
19416 2010-02-14  Jim Meyering  <meyering@redhat.com>
19417
19418         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
19419         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
19420         (sc_prohibit_hash_pjw_without_use): New rule.
19421
19422         maint.mk: allow the default upload destination dir to be overridden
19423         * top/maint.mk (upload_dest_dir_): Define with a default that
19424         preserves the status quo.
19425         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
19426         Reported by Peter Simons.
19427
19428         maint.mk: prohibit inclusion of "hash.h" without_use
19429         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
19430
19431 2010-02-10  Jim Meyering  <meyering@redhat.com>
19432
19433         maint.mk: prohibit inclusion of "ignore-value.h" without_use
19434         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
19435
19436 2010-02-09  Eric Blake  <ebb9@byu.net>
19437         and Bruno Haible  <bruno@clisp.org>
19438
19439         obstack-printf-posix: ensure declaration
19440         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
19441         extracted from gl_FUNC_OBSTACK_PRINTF.
19442         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
19443         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
19444         Likewise.
19445         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
19446         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
19447         0.
19448
19449 2010-02-08  Bruno Haible  <bruno@clisp.org>
19450
19451         gnulib-tool: Fix typo in 2010-02-07 commit.
19452         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
19453         Reported by Eric Blake.
19454
19455 2010-02-07  Bruno Haible  <bruno@clisp.org>
19456
19457         gnulib-tool: Fix up caching patches.
19458         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
19459         option --no-cache. Use associative arrays when supported by the shell.
19460         (sed_comments): New variable.
19461         (modcache): Renamed from do_cache.
19462         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
19463         abbreviate unnecessarily.
19464         (have_associative): New variable.
19465         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
19466         way also for ksh and zsh.
19467         (func_init_sed_convert_to_cache_statements): New function, extracted
19468         from func_cache_lookup_module. Add support for associative arrays.
19469         Don't set the c_MODULE_cached variable here. Ignore all lines before
19470         the first field header. Remove only the final newline, not all trailing
19471         newlines. Support empty fields correctly. Limit the use of 'eval' to
19472         assignments.
19473         (func_get_description, func_get_status, func_get_notice,
19474         func_get_applicability, func_get_filelist, func_get_dependencies,
19475         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
19476         func_get_automake_snippet, func_get_include_directive,
19477         func_get_link_directive, func_get_license, func_get_maintainer):
19478         Update documentation. List the unoptimized code first. Add support for
19479         associative arrays. Limit the use of 'eval' to assignments.
19480         (func_get_applicability): Undo stylistic pessimisations.
19481         (func_get_automake_snippet, func_get_include_directive): Reduce code
19482         duplication.
19483         (func_modules_transitive_closure, func_modules_add_dummy,
19484         func_modules_notice, func_modules_to_filelist, func_add_file,
19485         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
19486         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
19487         func_create_testdir, func_create_megatestdir): Update documentation.
19488
19489 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19490
19491         * gnulib-tool (func_cache_lookup_module): Store the module name
19492         belonging to the cache variable; error out if two different
19493         module names map to the same cache variable name.
19494
19495 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19496
19497         gnulib-tool: Make caching optional.
19498         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
19499         Update matching short versions of --no-changelog.
19500         (func_usage): Update.
19501         (sed_extract_cache_prog): Renamed from ...
19502         (sed_extract_prog): ... this; revert to old extraction script.
19503         (func_get_description, func_get_status)
19504         (func_get_notice, func_get_applicability, func_get_filelist)
19505         (func_get_dependencies, func_get_autoconf_early_snippet)
19506         (func_get_autoconf_snippet, func_get_automake_snippet)
19507         (func_get_include_directive, func_get_link_directive)
19508         (func_get_license, func_get_maintainer): If $do_cache is false,
19509         use old, non-caching extraction scripts.
19510         Suggestion by Bruno Haible.
19511
19512 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19513
19514         gnulib-tool: cache module metainformation.
19515         * gnulib-tool (sed_extract_prog): Match newline before each
19516         header, and rewrite header to a shell variable suffix.
19517         (func_cache_var, func_cache_lookup_module): New functions,
19518         to turn a module name into a cache variable prefix, and to
19519         look up and cache module metainformation.
19520         (func_get_description, func_get_status)
19521         (func_get_notice, func_get_applicability, func_get_filelist)
19522         (func_get_dependencies, func_get_autoconf_early_snippet)
19523         (func_get_autoconf_snippet, func_get_automake_snippet)
19524         (func_get_include_directive, func_get_link_directive)
19525         (func_get_license, func_get_maintainer): Use
19526         func_cache_lookup_module.
19527
19528 2010-02-07  Bruno Haible  <bruno@clisp.org>
19529
19530         fnctl: Fix missing dependency.
19531         * modules/fcntl (Depends-on): Add getdtablesize.
19532         Reported by John W. Eaton <jwe@gnu.org>.
19533
19534 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19535
19536         Argp: fix recognition of short alias options.
19537
19538         * lib/argp-parse.c (convert_options): Fix improper use of
19539         `|' between character values.
19540         * tests/test-argp.c (group1_option): New alias option
19541         --read (-r).
19542         (group1_parser): Special handling for 'r'.
19543         (test15): New test case.
19544         (test_fun): Add test15.
19545         * tests/test-argp-2.sh: Update expected --help and --usage
19546         outputs.
19547
19548 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19549
19550         * tests/test-argp.c: Fix indentation.
19551
19552 2010-02-04  Eric Blake  <ebb9@byu.net>
19553
19554         gettimeofday: expose type of second argument
19555         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
19556         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
19557         * tests/test-gettimeofday.c: Use it to silence warning.
19558         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
19559         the issue.
19560
19561 2010-02-03  Jim Meyering  <meyering@redhat.com>
19562
19563         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
19564         * lib/regcomp.c (TYPE_SIGNED): Define.
19565         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
19566
19567         regcomp.c: avoid a new -Wshadow warning
19568         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
19569
19570 2010-02-01  Jim Meyering  <meyering@redhat.com>
19571
19572         removing useless parentheses in cpp #define directives
19573         For motivation, see commit c0221df4, "define STREQ(a,b)
19574         consistently, removing useless parentheses"
19575         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
19576         * lib/mountlist.c (MNT_IGNORE): Likewise.
19577         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
19578
19579 2010-02-01  Eric Blake  <ebb9@byu.net>
19580
19581         sys_time: use link-warning
19582         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
19583         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
19584         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
19585         * modules/sys_time (Depends-on): Add warn-on-use.
19586         (Makefile.am): Always build replacement.
19587         (configure.ac): Update substitutions.
19588         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
19589         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
19590         bother with SYS_TIME_H.
19591         * modules/gettimeofday (configure.ac): Declare indicator.
19592         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
19593         in use.
19594
19595         closein-tests: silence compiler warning
19596         * tests/test-closein.c (main): Ignore fread result.
19597         * modules/closein-tests (Depends-on): Add ignore-value.
19598
19599         tests: silence warning about system return
19600         * tests/test-areadlink-with-size.c (main): Ignore system result.
19601         * tests/test-areadlink.c (main): Likewise.
19602         * tests/test-areadlinkat-with-size.c (main): Likewise.
19603         * tests/test-areadlinkat.c (main): Likewise.
19604         * tests/test-canonicalize-lgpl.c (main): Likewise.
19605         * tests/test-canonicalize.c (main): Likewise.
19606         * tests/test-chown.c (main): Likewise.
19607         * tests/test-fchownat.c (main): Likewise.
19608         * tests/test-fdutimensat.c (main): Likewise.
19609         * tests/test-fstatat.c (main): Likewise.
19610         * tests/test-futimens.c (main): Likewise.
19611         * tests/test-lchown.c (main): Likewise.
19612         * tests/test-link.c (main): Likewise.
19613         * tests/test-linkat.c (main): Likewise.
19614         * tests/test-lstat.c (main): Likewise.
19615         * tests/test-mkdir.c (main): Likewise.
19616         * tests/test-mkdirat.c (main): Likewise.
19617         * tests/test-mkfifo.c (main): Likewise.
19618         * tests/test-mkfifoat.c (main): Likewise.
19619         * tests/test-mknod.c (main): Likewise.
19620         * tests/test-readlink.c (main): Likewise.
19621         * tests/test-remove.c (main): Likewise.
19622         * tests/test-rename.c (main): Likewise.
19623         * tests/test-renameat.c (main): Likewise.
19624         * tests/test-rmdir.c (main): Likewise.
19625         * tests/test-symlink.c (main): Likewise.
19626         * tests/test-symlinkat.c (main): Likewise.
19627         * tests/test-unlink.c (main): Likewise.
19628         * tests/test-unlinkat.c (main): Likewise.
19629         * tests/test-utimens.c (main): Likewise.
19630         * tests/test-utimensat.c (main): Likewise.
19631         * modules/areadlink-tests (Depends-on): Add ignore-value.
19632         * modules/areadlink-with-size-tests (Depends-on): Likewise.
19633         * modules/areadlinkat-tests (Depends-on): Likewise.
19634         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
19635         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19636         * modules/canonicalize-tests (Depends-on): Likewise.
19637         * modules/chown-tests (Depends-on): Likewise.
19638         * modules/fdutimensat-tests (Depends-on): Likewise.
19639         * modules/futimens-tests (Depends-on): Likewise.
19640         * modules/lchown-tests (Depends-on): Likewise.
19641         * modules/link-tests (Depends-on): Likewise.
19642         * modules/linkat-tests (Depends-on): Likewise.
19643         * modules/lstat-tests (Depends-on): Likewise.
19644         * modules/mkdir-tests (Depends-on): Likewise.
19645         * modules/mkfifo-tests (Depends-on): Likewise.
19646         * modules/mkfifoat-tests (Depends-on): Likewise.
19647         * modules/mknod-tests (Depends-on): Likewise.
19648         * modules/openat-tests (Depends-on): Likewise.
19649         * modules/readlink-tests (Depends-on): Likewise.
19650         * modules/remove-tests (Depends-on): Likewise.
19651         * modules/rename-tests (Depends-on): Likewise.
19652         * modules/renameat-tests (Depends-on): Likewise.
19653         * modules/rmdir-tests (Depends-on): Likewise.
19654         * modules/symlink-tests (Depends-on): Likewise.
19655         * modules/symlinkat-tests (Depends-on): Likewise.
19656         * modules/unlink-tests (Depends-on): Likewise.
19657         * modules/utimens-tests (Depends-on): Likewise.
19658         * modules/utimensat-tests (Depends-on): Likewise.
19659
19660 2010-01-31  Bruno Haible  <bruno@clisp.org>
19661
19662         Perform the same test for many <math.h> functions.
19663         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
19664         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
19665         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
19666         of gl_MATHFUNC.
19667         * modules/acos (configure.ac): Likewise.
19668         * modules/asin (configure.ac): Likewise.
19669         * modules/atan (configure.ac): Likewise.
19670         * modules/atan2 (configure.ac): Likewise.
19671         * modules/cbrt (configure.ac): Likewise.
19672         * modules/copysign (configure.ac): Likewise.
19673         * modules/cos (configure.ac): Likewise.
19674         * modules/cosh (configure.ac): Likewise.
19675         * modules/erf (configure.ac): Likewise.
19676         * modules/erfc (configure.ac): Likewise.
19677         * modules/exp (configure.ac): Likewise.
19678         * modules/fmod (configure.ac): Likewise.
19679         * modules/hypot (configure.ac): Likewise.
19680         * modules/j0 (configure.ac): Likewise.
19681         * modules/j1 (configure.ac): Likewise.
19682         * modules/jn (configure.ac): Likewise.
19683         * modules/lgamma (configure.ac): Likewise.
19684         * modules/log (configure.ac): Likewise.
19685         * modules/log10 (configure.ac): Likewise.
19686         * modules/log1p (configure.ac): Likewise.
19687         * modules/pow (configure.ac): Likewise.
19688         * modules/remainder (configure.ac): Likewise.
19689         * modules/sin (configure.ac): Likewise.
19690         * modules/sinh (configure.ac): Likewise.
19691         * modules/tan (configure.ac): Likewise.
19692         * modules/tanh (configure.ac): Likewise.
19693         * modules/y0 (configure.ac): Likewise.
19694         * modules/y1 (configure.ac): Likewise.
19695         * modules/yn (configure.ac): Likewise.
19696         Suggested by Paolo Bonzini.
19697
19698 2010-01-31  Bruno Haible  <bruno@clisp.org>
19699
19700         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
19701
19702 2010-01-31  Bruno Haible  <bruno@clisp.org>
19703
19704         Work around getdelim() bug on FreeBSD 8.0.
19705         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
19706         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
19707         not work.
19708         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
19709         is 1.
19710         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
19711         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
19712         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
19713         a non-zero size.
19714         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
19715
19716 2010-01-31  Bruno Haible  <bruno@clisp.org>
19717
19718         Work around getline() bug on FreeBSD 8.0.
19719         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
19720         and a non-zero size.
19721         * tests/test-getline.c (main): Likewise.
19722         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
19723         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
19724
19725 2010-01-28  Eric Blake  <ebb9@byu.net>
19726
19727         regex: fix build failure
19728         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
19729         platforms.
19730
19731 2010-01-28  Jim Meyering  <meyering@redhat.com>
19732
19733         regex: do not ignore memory allocation failure
19734         * lib/regex_internal.c (create_cd_newstate): Detect
19735         re_node_set_init_copy failure.   Extracted from glibc commit
19736         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19737
19738         regex: sync more white-space changes from libc
19739         * lib/regex_internal.c: White-space only changes.
19740         * lib/regexec.c: Likewise.
19741
19742         regex: add many uses of __attribute_warn_unused_result__
19743         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
19744         * lib/regexec.c: Likewise.
19745         Extracted from a messy glibc commit.
19746
19747         regcomp.c: spelling and merge-artifact from glibc
19748         * lib/regcomp.c: Merge remainder of glibc's
19749         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19750
19751         regcomp.c: sync white-space changes from glibc
19752         * lib/regcomp.c: Merge to accommodate white space
19753         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19754
19755         regcomp.c: do not ignore internal return values
19756         * lib/regcomp.c: Do not ignore internal return values.
19757         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
19758         but without its white-space changes and spelling fixes.
19759
19760         regex_internal.h: define __attribute_warn_unused_result__
19761         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
19762
19763         maint: add a syntax-check rule to check for vulnerable Makefile.in
19764         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
19765
19766 2010-01-27  Jim Meyering  <meyering@redhat.com>
19767
19768         ncftpput-ftp: clean up spaces
19769         * build-aux/ncftpput-ftp: Make Copyright line consistent.
19770         Remove trailing blanks.
19771
19772 2010-01-27  Simon Josefsson  <simon@josefsson.org>
19773
19774         * build-aux/git-version-gen: Fix copyright statement.
19775         * build-aux/gnupload: Likewise.
19776         * tests/test-arcfour.c: Likewise.
19777         * tests/test-arctwo.c: Likewise.
19778         * tests/test-count-one-bits.c: Likewise.
19779         * tests/test-crc.c: Likewise.
19780         * tests/test-des.c: Likewise.
19781         * tests/test-gc-arcfour.c: Likewise.
19782         * tests/test-gc-arctwo.c: Likewise.
19783         * tests/test-gc-des.c: Likewise.
19784         * tests/test-gc-hmac-md5.c: Likewise.
19785         * tests/test-gc-hmac-sha1.c: Likewise.
19786         * tests/test-gc-md2.c: Likewise.
19787         * tests/test-gc-md4.c: Likewise.
19788         * tests/test-gc-md5.c: Likewise.
19789         * tests/test-gc-pbkdf2-sha1.c: Likewise.
19790         * tests/test-gc-rijndael.c: Likewise.
19791         * tests/test-gc-sha1.c: Likewise.
19792         * tests/test-gc.c: Likewise.
19793         * tests/test-gethostname.c: Likewise.
19794         * tests/test-gettimeofday.c: Likewise.
19795         * tests/test-hash.c: Likewise.
19796         * tests/test-hmac-md5.c: Likewise.
19797         * tests/test-hmac-sha1.c: Likewise.
19798         * tests/test-md2.c: Likewise.
19799         * tests/test-md4.c: Likewise.
19800         * tests/test-md5.c: Likewise.
19801         * tests/test-memchr.c: Likewise.
19802         * tests/test-memchr2.c: Likewise.
19803         * tests/test-memcmp.c: Likewise.
19804         * tests/test-memmem.c: Likewise.
19805         * tests/test-memrchr.c: Likewise.
19806         * tests/test-rawmemchr.c: Likewise.
19807         * tests/test-read-file.c: Likewise.
19808         * tests/test-rijndael.c: Likewise.
19809         * tests/test-sockets.c: Likewise.
19810         * tests/test-strchrnul.c: Likewise.
19811         * tests/test-strstr.c: Likewise.
19812         * tests/test-strtod.c: Likewise.
19813         * build-aux/ncftpput-ftp: Likewise.
19814
19815 2010-01-26  Eric Blake  <ebb9@byu.net>
19816
19817         ignore-value: update recommended header name
19818         * modules/ignore-value (Include): Only use <> for headers that
19819         exist in glibc.
19820
19821 2010-01-26  Jim Meyering  <meyering@redhat.com>
19822
19823         test-userspec.c: avoid compiler warnings
19824         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
19825         and "initialization discards qualifiers..." warnings.
19826         Put the first "uid" in its own scope, and make char* members "const".
19827
19828 2010-01-25  Bruno Haible  <bruno@clisp.org>
19829
19830         gnulib-tool: Make warning diagnostics consistent.
19831         * gnulib-tool (func_warning): New function.
19832         Use it everywhere where gnulib-tool produces output to stderr and it is
19833         not a fatal error.
19834
19835 2010-01-25  Bruno Haible  <bruno@clisp.org>
19836
19837         Fix test dependencies.
19838         * modules/xstrtol-tests (Depends-on): Add inttypes.
19839         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
19840
19841 2010-01-25 Pádraig Brady <P@draigBrady.com>
19842
19843         syntax-check: detect incorrect boolean macro values in config.h
19844         * modules/maintainer-makefile (configure.ac): Parameterize the location
19845         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
19846         The logic is from Eric Blake and the location indicated by Jim Meyering.
19847         Note the more natural CONFIG_HEADER name is prohibited by automake
19848         for backwards compatibility reasons.
19849         * top/maint.mk (sc_Wundef_boolean): New rule.
19850
19851 2010-01-25  Jim Meyering  <meyering@redhat.com>
19852
19853         bootstrap: detect MacOS 10.6's shasum, too
19854         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
19855         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
19856
19857 2010-01-23  Jim Meyering  <meyering@redhat.com>
19858
19859         xstrtoll: new module
19860         * modules/xstrtoll: New file.
19861         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
19862         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
19863         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
19864         ./configure fails if you use this module and lack "long long".
19865         * modules/xstrtoll-tests: New module.
19866         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
19867         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
19868         new init.sh-based test framework.
19869
19870 2010-01-24  Bruno Haible  <bruno@clisp.org>
19871
19872         Tests for module 'yn'.
19873         * modules/yn-tests: New file.
19874         * tests/test-yn.c: New file.
19875
19876         Tests for module 'y1'.
19877         * modules/y1-tests: New file.
19878         * tests/test-y1.c: New file.
19879
19880         Tests for module 'y0'.
19881         * modules/y0-tests: New file.
19882         * tests/test-y0.c: New file.
19883
19884         Tests for module 'tanh'.
19885         * modules/tanh-tests: New file.
19886         * tests/test-tanh.c: New file.
19887
19888         Tests for module 'tan'.
19889         * modules/tan-tests: New file.
19890         * tests/test-tan.c: New file.
19891
19892         Tests for module 'sqrt'.
19893         * modules/sqrt-tests: New file.
19894         * tests/test-sqrt.c: New file.
19895
19896         Tests for module 'sinh'.
19897         * modules/sinh-tests: New file.
19898         * tests/test-sinh.c: New file.
19899
19900         Tests for module 'sin'.
19901         * modules/sin-tests: New file.
19902         * tests/test-sin.c: New file.
19903
19904         Tests for module 'rint'.
19905         * modules/rint-tests: New file.
19906         * tests/test-rint.c: New file.
19907
19908         Tests for module 'remainder'.
19909         * modules/remainder-tests: New file.
19910         * tests/test-remainder.c: New file.
19911
19912         Tests for module 'pow'.
19913         * modules/pow-tests: New file.
19914         * tests/test-pow.c: New file.
19915
19916         Tests for module 'nextafter'.
19917         * modules/nextafter-tests: New file.
19918         * tests/test-nextafter.c: New file.
19919
19920         Tests for module 'modf'.
19921         * modules/modf-tests: New file.
19922         * tests/test-modf.c: New file.
19923
19924         Tests for module 'logb'.
19925         * modules/logb-tests: New file.
19926         * tests/test-logb.c: New file.
19927
19928         Tests for module 'log1p'.
19929         * modules/log1p-tests: New file.
19930         * tests/test-log1p.c: New file.
19931
19932         Tests for module 'log10'.
19933         * modules/log10-tests: New file.
19934         * tests/test-log10.c: New file.
19935
19936         Tests for module 'log'.
19937         * modules/log-tests: New file.
19938         * tests/test-log.c: New file.
19939
19940         Tests for module 'lgamma'.
19941         * modules/lgamma-tests: New file.
19942         * tests/test-lgamma.c: New file.
19943
19944         Tests for module 'ldexp'.
19945         * modules/ldexp-tests: New file.
19946         * tests/test-ldexp.c: New file.
19947
19948         Tests for module 'jn'.
19949         * modules/jn-tests: New file.
19950         * tests/test-jn.c: New file.
19951
19952         Tests for module 'j1'.
19953         * modules/j1-tests: New file.
19954         * tests/test-j1.c: New file.
19955
19956         Tests for module 'j0'.
19957         * modules/j0-tests: New file.
19958         * tests/test-j0.c: New file.
19959
19960         Tests for module 'hypot'.
19961         * modules/hypot-tests: New file.
19962         * tests/test-hypot.c: New file.
19963
19964         Tests for module 'fmod'.
19965         * modules/fmod-tests: New file.
19966         * tests/test-fmod.c: New file.
19967
19968         Tests for module 'fabs'.
19969         * modules/fabs-tests: New file.
19970         * tests/test-fabs.c: New file.
19971
19972         Tests for module 'exp'.
19973         * modules/exp-tests: New file.
19974         * tests/test-exp.c: New file.
19975
19976         Tests for module 'erfc'.
19977         * modules/erfc-tests: New file.
19978         * tests/test-erfc.c: New file.
19979
19980         Tests for module 'erf'.
19981         * modules/erf-tests: New file.
19982         * tests/test-erf.c: New file.
19983
19984         Tests for module 'cosh'.
19985         * modules/cosh-tests: New file.
19986         * tests/test-cosh.c: New file.
19987
19988         Tests for module 'cos'.
19989         * modules/cos-tests: New file.
19990         * tests/test-cos.c: New file.
19991
19992         Tests for module 'copysign'.
19993         * modules/copysign-tests: New file.
19994         * tests/test-copysign.c: New file.
19995
19996         Tests for module 'cbrt'.
19997         * modules/cbrt-tests: New file.
19998         * tests/test-cbrt.c: New file.
19999
20000         Tests for module 'atan2'.
20001         * modules/atan2-tests: New file.
20002         * tests/test-atan2.c: New file.
20003
20004         Tests for module 'atan'.
20005         * modules/atan-tests: New file.
20006         * tests/test-atan.c: New file.
20007
20008         Tests for module 'asin'.
20009         * modules/asin-tests: New file.
20010         * tests/test-asin.c: New file.
20011
20012         Tests for module 'acos'.
20013         * modules/acos-tests: New file.
20014         * tests/test-acos.c: New file.
20015
20016 2010-01-24  Bruno Haible  <bruno@clisp.org>
20017
20018         Fix tests for common <math.h> functions.
20019         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
20020         code snippet that references the function pointer, rather than merely
20021         calling the function. Substitute the FUNC_LIBM variable.
20022         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
20023         * modules/acos (configure.ac): Likewise.
20024         * modules/asin (configure.ac): Likewise.
20025         * modules/atan (configure.ac): Likewise.
20026         * modules/atan2 (configure.ac): Likewise.
20027         * modules/cbrt (configure.ac): Likewise.
20028         * modules/copysign (configure.ac): Likewise.
20029         * modules/cos (configure.ac): Likewise.
20030         * modules/cosh (configure.ac): Likewise.
20031         * modules/erf (configure.ac): Likewise.
20032         * modules/erfc (configure.ac): Likewise.
20033         * modules/exp (configure.ac): Likewise.
20034         * modules/fabs (configure.ac): Likewise.
20035         * modules/fmod (configure.ac): Likewise.
20036         * modules/hypot (configure.ac): Likewise.
20037         * modules/j0 (configure.ac): Likewise.
20038         * modules/j1 (configure.ac): Likewise.
20039         * modules/jn (configure.ac): Likewise.
20040         * modules/ldexp (configure.ac): Likewise.
20041         * modules/lgamma (configure.ac): Likewise.
20042         * modules/log (configure.ac): Likewise.
20043         * modules/log10 (configure.ac): Likewise.
20044         * modules/log1p (configure.ac): Likewise.
20045         * modules/logb (configure.ac): Likewise.
20046         * modules/modf (configure.ac): Likewise.
20047         * modules/nextafter (configure.ac): Likewise.
20048         * modules/pow (configure.ac): Likewise.
20049         * modules/remainder (configure.ac): Likewise.
20050         * modules/rint (configure.ac): Likewise.
20051         * modules/sin (configure.ac): Likewise.
20052         * modules/sinh (configure.ac): Likewise.
20053         * modules/tan (configure.ac): Likewise.
20054         * modules/tanh (configure.ac): Likewise.
20055         * modules/y0 (configure.ac): Likewise.
20056         * modules/y1 (configure.ac): Likewise.
20057         * modules/yn (configure.ac): Likewise.
20058
20059 2010-01-24  Bruno Haible  <bruno@clisp.org>
20060
20061         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
20062         * tests/test-acosl.c (x): New variable.
20063         (main): Store argument in x and fetch it from x.
20064         * tests/test-asinl.c (x): New variable.
20065         (main): Store argument in x and fetch it from x.
20066         * tests/test-atanl.c (x): New variable.
20067         (main): Store argument in x and fetch it from x.
20068         * tests/test-cosl.c (x): New variable.
20069         (main): Store argument in x and fetch it from x.
20070         * tests/test-expl.c (x): New variable.
20071         (main): Store argument in x and fetch it from x.
20072         * tests/test-logl.c (x): New variable.
20073         (main): Store argument in x and fetch it from x.
20074         * tests/test-sinl.c (x): New variable.
20075         (main): Store argument in x and fetch it from x.
20076         * tests/test-sqrtl.c (x): New variable.
20077         (main): Store argument in x and fetch it from x.
20078         * tests/test-tanl.c (x): New variable.
20079         (main): Store argument in x and fetch it from x.
20080
20081 2010-01-24  Bruno Haible  <bruno@clisp.org>
20082
20083         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
20084         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
20085         assignments to the initial TESTS_ENVIRONMENT.
20086         * doc/gnulib.texi (Unit test modules): Document it.
20087         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
20088         TESTS_ENVIRONMENT.
20089         * modules/btowc-tests (Makefile.am): Likewise.
20090         * modules/c-stack-tests (Makefile.am): Likewise.
20091         * modules/c-strcase-tests (Makefile.am): Likewise.
20092         * modules/copy-file-tests (Makefile.am): Likewise.
20093         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
20094         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
20095         * modules/mbrtowc-tests (Makefile.am): Likewise.
20096         * modules/mbscasecmp-tests (Makefile.am): Likewise.
20097         * modules/mbscasestr-tests (Makefile.am): Likewise.
20098         * modules/mbschr-tests (Makefile.am): Likewise.
20099         * modules/mbscspn-tests (Makefile.am): Likewise.
20100         * modules/mbsinit-tests (Makefile.am): Likewise.
20101         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
20102         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
20103         * modules/mbspbrk-tests (Makefile.am): Likewise.
20104         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
20105         * modules/mbsrchr-tests (Makefile.am): Likewise.
20106         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
20107         * modules/mbsspn-tests (Makefile.am): Likewise.
20108         * modules/mbsstr-tests (Makefile.am): Likewise.
20109         * modules/nl_langinfo-tests (Makefile.am): Likewise.
20110         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
20111         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
20112         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
20113         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
20114         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
20115         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
20116         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
20117         * modules/wcrtomb-tests (Makefile.am): Likewise.
20118         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
20119         * modules/wcsrtombs-tests (Makefile.am): Likewise.
20120         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
20121         assignments from TESTS_ENVIRONMENT.
20122         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
20123         augmentation.
20124         * modules/argp-version-etc-tests (Makefile.am): Likewise.
20125         * modules/atexit-tests (Makefile.am): Likewise.
20126         * modules/binary-io-tests (Makefile.am): Likewise.
20127         * modules/closein-tests (Makefile.am): Likewise.
20128         * modules/dprintf-posix-tests (Makefile.am): Likewise.
20129         * modules/exclude-tests (Makefile.am): Likewise.
20130         * modules/fflush-tests (Makefile.am): Likewise.
20131         * modules/fpending-tests (Makefile.am): Likewise.
20132         * modules/fprintf-posix-tests (Makefile.am): Likewise.
20133         * modules/freadahead-tests (Makefile.am): Likewise.
20134         * modules/freadptr-tests (Makefile.am): Likewise.
20135         * modules/freadseek-tests (Makefile.am): Likewise.
20136         * modules/fseek-tests (Makefile.am): Likewise.
20137         * modules/fseeko-tests (Makefile.am): Likewise.
20138         * modules/ftell-tests (Makefile.am): Likewise.
20139         * modules/ftello-tests (Makefile.am): Likewise.
20140         * modules/idpriv-drop-tests (Makefile.am): Likewise.
20141         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
20142         * modules/lseek-tests (Makefile.am): Likewise.
20143         * modules/parse-duration-tests (Makefile.am): Likewise.
20144         * modules/perror-tests (Makefile.am): Likewise.
20145         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
20146         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
20147         * modules/pipe-tests (Makefile.am): Likewise.
20148         * modules/pread-tests (Makefile.am): Likewise.
20149         * modules/printf-posix-tests (Makefile.am): Likewise.
20150         * modules/select-tests (Makefile.am): Likewise.
20151         * modules/sigpipe-tests (Makefile.am): Likewise.
20152         * modules/tsearch-tests (Makefile.am): Likewise.
20153         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
20154         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
20155         * modules/uniname/uniname-tests (Makefile.am): Likewise.
20156         * modules/uniwidth/width-tests (Makefile.am): Likewise.
20157         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
20158         * modules/version-etc-tests (Makefile.am): Likewise.
20159         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
20160         * modules/vprintf-posix-tests (Makefile.am): Likewise.
20161         * modules/xalloc-die-tests (Makefile.am): Likewise.
20162         * modules/xprintf-posix-tests (Makefile.am): Likewise.
20163         * modules/xstrtoimax-tests (Makefile.am): Likewise.
20164         * modules/xstrtol-tests (Makefile.am): Likewise.
20165         * modules/xstrtoumax-tests (Makefile.am): Likewise.
20166         * modules/yesno-tests (Makefile.am): Likewise.
20167         Suggested by Jim Meyering.
20168
20169 2010-01-24  Bruno Haible  <bruno@clisp.org>
20170
20171         More documentation.
20172         * doc/gnulib.texi (Writing modules): New chapter.
20173         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
20174         the new chapter.
20175
20176 2010-01-24  Jim Meyering  <meyering@redhat.com>
20177
20178         maint.mk: do not prepend "./" after filtering
20179         * top/maint.mk (_prepend_srcdir_prefix): New variable
20180         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
20181         "./" when $(srcdir) is ".".
20182
20183         define STREQ(a,b) consistently, removing useless parentheses
20184         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
20185         since the only risk is that "a" or "b" contains an unparenthesized
20186         comma, but if either did that, STREQ would have 3 or more arguments.
20187         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
20188         * lib/fts.c (STREQ): Remove unnecessary parentheses.
20189         * lib/hash-triple.c (STREQ): Likewise.
20190         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
20191         * lib/getugroups.c (STREQ): Likewise.
20192
20193 2010-01-23  Jim Meyering  <meyering@redhat.com>
20194
20195         maint.mk: fix syntax-check in a non-srcdir build directory
20196         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
20197         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
20198
20199 2010-01-22  Jim Meyering  <meyering@redhat.com>
20200
20201         userspec: add unit tests
20202         * tests/test-userspec.c: New file.
20203         * modules/userspec-tests: Likewise.
20204
20205 2010-01-21  Jim Meyering  <meyering@redhat.com>
20206
20207         maint.mk: handle source file names containing "." robustly
20208         * top/maint.mk (_dot_escaped_srcdir): Define.
20209         (VC_LIST): Use it in LHS of sed substitution.
20210
20211 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
20212
20213         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
20214         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
20215         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
20216         from a non-srcdir build.
20217
20218 2010-01-20  Eric Blake  <ebb9@byu.net>
20219
20220         warn-on-use: use instead of link-warning
20221         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
20222         * modules/unistd (Depends-on, Makefile.am): Likewise.
20223         * modules/arpa_inet (Depends-on): Replace link-warning with
20224         warn-on-use.
20225         (Makefile.am): Update rules accordingly.
20226         * modules/ctype (Depends-on, Makefile.am): Likewise.
20227         * modules/dirent (Depends-on, Makefile.am): Likewise.
20228         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
20229         * modules/inttypes (Depends-on, Makefile.am): Likewise.
20230         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20231         * modules/locale (Depends-on, Makefile.am): Likewise.
20232         * modules/math (Depends-on, Makefile.am): Likewise.
20233         * modules/search (Depends-on, Makefile.am): Likewise.
20234         * modules/signal (Depends-on, Makefile.am): Likewise.
20235         * modules/spawn (Depends-on, Makefile.am): Likewise.
20236         * modules/stdlib (Depends-on, Makefile.am): Likewise.
20237         * modules/string (Depends-on, Makefile.am): Likewise.
20238         * modules/strings (Depends-on, Makefile.am): Likewise.
20239         * modules/sys_file (Depends-on, Makefile.am): Likewise.
20240         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
20241         * modules/sys_select (Depends-on, Makefile.am): Likewise.
20242         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
20243         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
20244         * modules/sys_times (Depends-on, Makefile.am): Likewise.
20245         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20246         * modules/wchar (Depends-on, Makefile.am): Likewise.
20247         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
20248         should be poisoned.
20249         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
20250         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
20251         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
20252         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20253         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20254         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20255         * m4/math_h.m4 (gl_MATH_H): Likewise.
20256         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20257         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
20258         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20259         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
20260         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
20261         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
20262         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
20263         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
20264         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20265         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20266         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20267         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
20268         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20269         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20270         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20271         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
20272         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
20273         GL_LINK_WARNING.
20274         * lib/ctype.in.h: Likewise.
20275         * lib/dirent.in.h: Likewise.
20276         * lib/fcntl.in.h: Likewise.
20277         * lib/inttypes.in.h: Likewise.
20278         * lib/langinfo.in.h: Likewise.
20279         * lib/locale.in.h: Likewise.
20280         * lib/math.in.h: Likewise.
20281         * lib/search.in.h: Likewise.
20282         * lib/signal.in.h: Likewise.
20283         * lib/spawn.in.h: Likewise.
20284         * lib/stdio.in.h: Likewise.
20285         * lib/stdlib.in.h: Likewise.
20286         * lib/string.in.h: Likewise.
20287         * lib/strings.in.h: Likewise.
20288         * lib/sys_file.in.h: Likewise.
20289         * lib/sys_ioctl.in.h: Likewise.
20290         * lib/sys_select.in.h: Likewise.
20291         * lib/sys_socket.in.h: Likewise.
20292         * lib/sys_stat.in.h: Likewise.
20293         * lib/sys_times.in.h: Likewise.
20294         * lib/sys_utsname.in.h: Likewise.
20295         * lib/unistd.in.h: Likewise.
20296         * lib/wchar.in.h: Likewise.
20297
20298 2010-01-20  Bruno Haible  <bruno@clisp.org>
20299
20300         Avoid duplicate -lm.
20301         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
20302         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
20303         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
20304         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
20305         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
20306         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
20307         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
20308         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
20309         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
20310         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
20311         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
20312         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20313         Reported by Paolo Bonzini.
20314
20315 2010-01-19  Bruno Haible  <bruno@clisp.org>
20316
20317         langinfo, nl_langinfo: Relicense under LGPLv2+.
20318         * modules/langinfo (License): Change to LGPLv2+.
20319         * modules/nl_langinfo (License): Likewise.
20320         Patch by David Lutterkort <lutter@redhat.com>.
20321
20322 2010-01-19  Bruno Haible  <bruno@clisp.org>
20323
20324         Avoid compilation error with cc on OSF/1 5.1.
20325         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
20326         statement, not before.
20327         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20328
20329 2010-01-18  Bruno Haible  <bruno@clisp.org>
20330
20331         Avoid a link error due to the __printf__ symbol.
20332         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
20333         and 2.6.x.
20334         (__format__, __printf__): Remove definitions.
20335         * lib/argp-fmtstream.h: Likewise.
20336         * lib/argp.h: Likewise.
20337         * lib/error.h: Likewise.
20338         * lib/vasnprintf.h: Likewise.
20339         * lib/xprintf.h: Likewise.
20340         * lib/xvasprintf.h: Likewise.
20341         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20342
20343 2010-01-18  Bruno Haible  <bruno@clisp.org>
20344
20345         Tests for module 'tanl'.
20346         * modules/tanl-tests: New file.
20347         * tests/test-tanl.c: New file.
20348
20349         Tests for module 'sqrtl'.
20350         * modules/sqrtl-tests: New file.
20351         * tests/test-sqrtl.c: New file.
20352
20353         Tests for module 'sinl'.
20354         * modules/sinl-tests: New file.
20355         * tests/test-sinl.c: New file.
20356
20357         Tests for module 'logl'.
20358         * modules/logl-tests: New file.
20359         * tests/test-logl.c: New file.
20360
20361         Tests for module 'expl'.
20362         * modules/expl-tests: New file.
20363         * tests/test-expl.c: New file.
20364
20365         Tests for module 'cosl'.
20366         * modules/cosl-tests: New file.
20367         * tests/test-cosl.c: New file.
20368
20369         Tests for module 'atanl'.
20370         * modules/atanl-tests: New file.
20371         * tests/test-atanl.c: New file.
20372
20373         Tests for module 'asinl'.
20374         * modules/asinl-tests: New file.
20375         * tests/test-asinl.c: New file.
20376
20377         Tests for module 'acosl'.
20378         * modules/acosl-tests: New file.
20379         * tests/test-acosl.c: New file.
20380
20381         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20382         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
20383         tanl): Use the standard gnulib idiom.
20384         * lib/cosl.c: Don't include trigl.c and sincosl.c.
20385         * lib/sinl.c: Likewise.
20386         * lib/tanl.c: Don't include trigl.c.
20387         (kernel_tanl): Make static.
20388         * lib/sincosl.c: Include trigl.h first.
20389         * lib/trigl.c: Likewise.
20390         * m4/acosl.m4: New file.
20391         * m4/asinl.m4: New file.
20392         * m4/atanl.m4: New file.
20393         * m4/cosl.m4: New file.
20394         * m4/expl.m4: New file.
20395         * m4/logl.m4: New file.
20396         * m4/sinl.m4: New file.
20397         * m4/sqrtl.m4: New file.
20398         * m4/tanl.m4: New file.
20399         * m4/mathl.m4: Remove file.
20400         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
20401         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20402         Don't initialize GNULIB_MATHL.
20403         * modules/acosl: New file.
20404         * modules/asinl: New file.
20405         * modules/atanl: New file.
20406         * modules/cosl: New file.
20407         * modules/expl: New file.
20408         * modules/logl: New file.
20409         * modules/sinl: New file.
20410         * modules/sqrtl: New file.
20411         * modules/tanl: New file.
20412         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
20413         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
20414         substitute GNULIB_MATHL.
20415         * modules/mathl: Rewritten.
20416         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
20417         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
20418         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
20419         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
20420         * doc/posix-functions/expl.texi: Mention the 'expl' module.
20421         * doc/posix-functions/logl.texi: Mention the 'logl' module.
20422         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
20423         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
20424         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
20425
20426 2010-01-18  Bruno Haible  <bruno@clisp.org>
20427
20428         sqrt: Make gl_FUNC_SQRT requirable.
20429         * m4/sqrt.m4: New file.
20430         * modules/sqrt (Files): Add it.
20431         (configure.ac): Invoke gl_FUNC_SQRT.
20432
20433 2010-01-18  Bruno Haible  <bruno@clisp.org>
20434
20435         New modules for common <math.h> functions.
20436         * m4/mathfunc.m4: New file.
20437         * modules/acos: New file.
20438         * modules/asin: New file.
20439         * modules/atan: New file.
20440         * modules/atan2: New file.
20441         * modules/cbrt: New file.
20442         * modules/copysign: New file.
20443         * modules/cos: New file.
20444         * modules/cosh: New file.
20445         * modules/erf: New file.
20446         * modules/erfc: New file.
20447         * modules/exp: New file.
20448         * modules/fabs: New file.
20449         * modules/fmod: New file.
20450         * modules/hypot: New file.
20451         * modules/j0: New file.
20452         * modules/j1: New file.
20453         * modules/jn: New file.
20454         * modules/ldexp: New file.
20455         * modules/lgamma: New file.
20456         * modules/log: New file.
20457         * modules/log10: New file.
20458         * modules/log1p: New file.
20459         * modules/logb: New file.
20460         * modules/modf: New file.
20461         * modules/nextafter: New file.
20462         * modules/pow: New file.
20463         * modules/remainder: New file.
20464         * modules/rint: New file.
20465         * modules/sin: New file.
20466         * modules/sinh: New file.
20467         * modules/sqrt: New file.
20468         * modules/tan: New file.
20469         * modules/tanh: New file.
20470         * modules/y0: New file.
20471         * modules/y1: New file.
20472         * modules/yn: New file.
20473         * doc/posix-functions/acos.texi: Mention the 'acos' module.
20474         * doc/posix-functions/asin.texi: Mention the 'asin' module.
20475         * doc/posix-functions/atan.texi: Mention the 'atan' module.
20476         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
20477         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
20478         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
20479         * doc/posix-functions/cos.texi: Mention the 'cos' module.
20480         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
20481         * doc/posix-functions/erf.texi: Mention the 'erf' module.
20482         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
20483         * doc/posix-functions/exp.texi: Mention the 'exp' module.
20484         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
20485         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
20486         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
20487         * doc/posix-functions/j0.texi: Mention the 'j0' module.
20488         * doc/posix-functions/j1.texi: Mention the 'j1' module.
20489         * doc/posix-functions/jn.texi: Mention the 'jn' module.
20490         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
20491         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
20492         * doc/posix-functions/log.texi: Mention the 'log' module.
20493         * doc/posix-functions/log10.texi: Mention the 'log10' module.
20494         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
20495         * doc/posix-functions/logb.texi: Mention the 'logb' module.
20496         * doc/posix-functions/modf.texi: Mention the 'modf' module.
20497         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
20498         * doc/posix-functions/pow.texi: Mention the 'pow' module.
20499         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
20500         * doc/posix-functions/rint.texi: Mention the 'rint' module.
20501         * doc/posix-functions/sin.texi: Mention the 'sin' module.
20502         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
20503         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
20504         * doc/posix-functions/tan.texi: Mention the 'tan' module.
20505         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
20506         * doc/posix-functions/y0.texi: Mention the 'y0' module.
20507         * doc/posix-functions/y1.texi: Mention the 'y1' module.
20508         * doc/posix-functions/yn.texi: Mention the 'yn' module.
20509
20510 2010-01-18  Jim Meyering  <meyering@redhat.com>
20511
20512         ignore-value: relax license to LGPLv2+
20513         * modules/ignore-value (License): Relax to LGPLv2+.
20514
20515         getdate: don't leak when TZ contains two or more '"'s
20516         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
20517         double quote in TZ after the first one.
20518
20519         readtokens: do not leak internal token_lengths buffer
20520         * lib/readtokens.c (readtokens): Free the local, lengths,
20521         when the supplied "token_lengths" parameter is NULL.
20522
20523 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20524
20525         Fix a couple of missing LIBTHREAD link failures on AIX.
20526         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
20527         $(LIBTHREAD).
20528         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
20529
20530         Link test-poll against INET_PTON_LIB.
20531         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
20532         for inet_pton on Solaris 10.
20533
20534 2010-01-17  Bruno Haible  <bruno@clisp.org>
20535
20536         unistdio/*-sprintf: Fix typo in module description.
20537         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
20538         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
20539         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
20540         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
20541         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
20542         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
20543         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
20544         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20545
20546 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20547
20548         gnulib-tool: fix filelist for AIX, HP-UX ksh.
20549         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
20550         variables in shell case patterns, for AIX and HP-UX ksh.
20551
20552         Split large sed scripts, for HP-UX sed.
20553         * modules/stdio: Split sed scripts around 50 sed commands,
20554         to avoid HP-UX limit of 99 commands, in the near future.
20555         * modules/string: Likewise.
20556         * modules/unistd: Likewise.
20557
20558         gnulib-tool: avoid writing in the current directory.
20559         * gnulib-tool (func_emit_lib_Makefile_am)
20560         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
20561         not in the current directory, so concurrent gnulib-tool
20562         instances do not interfere.
20563
20564 2010-01-16  Jim Meyering  <meyering@redhat.com>
20565
20566         doc: update users.txt
20567         * users.txt: Add grep.
20568         (diffutils, gzip): Update URLs.
20569
20570 2010-01-12  Bruno Haible  <bruno@clisp.org>
20571
20572         posix_spawn: Avoid test failure on Cygwin.
20573         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
20574         characters.
20575         Reported by Simon Josefsson.
20576
20577 2010-01-12  Bruno Haible  <bruno@clisp.org>
20578
20579         * tests/test-cond.c (main): When skipping the test, show the reason.
20580
20581 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20582
20583         * lib/striconv.c (str_cd_iconv): Avoid if before free.
20584
20585 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20586
20587         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
20588         VC_LIST_ALWAYS_EXCLUDE_REGEX.
20589
20590 2010-01-12  Eric Blake  <ebb9@byu.net>
20591
20592         build: guarantee AS_VAR_IF
20593         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
20594         (gl_AS_VAR_IF): Move...
20595         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
20596         Reported by Simon Josefsson.
20597
20598 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20599
20600         * lib/stdio.in.h: Fix typo.
20601
20602 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20603
20604         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
20605         libgpg-error.
20606
20607 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20608
20609         * tests/test-xalloc-die.sh: Use $EXEEXT.
20610
20611 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20612             Bruno Haible  <bruno@clisp.org>
20613
20614         getlogin, getlogin_r: Avoid test failure.
20615         * tests/test-getlogin.c: Include <stdio.h>.
20616         (main): Skip the test when the function fails because stdin is not a
20617         tty.
20618         * tests/test-getlogin_r.c: Include <stdio.h>.
20619         (main): Skip the test when the function fails because stdin is not a
20620         tty.
20621
20622 2010-01-11  Eric Blake  <ebb9@byu.net>
20623
20624         tests: avoid more large file warnings
20625         * tests/test-fflush.c: Avoid warning about ftell use.
20626         * tests/test-fseek.c: Avoid warning about fseek use.
20627
20628 2010-01-10  Bruno Haible  <bruno@clisp.org>
20629
20630         nproc: Work better on Linux when /proc and /sys are not mounted.
20631         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
20632         as lower bound when, on glibc/Linux systems,
20633         sysconf (_SC_NPROCESSORS_CONF) returns 1.
20634         Suggested by Pádraig Brady <P@draigbrady.com>.
20635         Reported by Dmitry V. Levin <ldv@altlinux.org>.
20636
20637         nproc: Refactor.
20638         * lib/nproc.c (num_processors_via_affinity_mask): New function,
20639         extracted from num_processors.
20640         (num_processors): Call it.
20641
20642 2010-01-11  Jim Meyering  <meyering@redhat.com>
20643
20644         utimecmp: avoid new warning from upcoming gcc-4.5.0
20645         * lib/utimecmp.c (BILLION): Define using #define rather than an
20646         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
20647
20648 2010-01-11  Eric Blake  <ebb9@byu.net>
20649
20650         math: add portability warnings for classification macros
20651         * modules/math (Depends-on): Add warn-on-use.
20652         (Makefile.am): Provide new substitutions.
20653         * m4/math_h.m4 (gl_MATH_H): Require inline.
20654         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
20655         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
20656         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
20657         implement warnings.
20658
20659         unistd: warn on use of environ without module
20660         * modules/unistd (Depends-on): Add warn-on-use.
20661         (Makefile.am): Provide new substitutions.
20662         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
20663         * lib/unistd.in.h (environ): Wrap with a warning helper function.
20664
20665         stdio: warn on suspicious uses
20666         * modules/stdio (Depends-on): Add warn-on-use.
20667         (Makefile.am): Provide new substitutions.
20668         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
20669         fseeko.
20670         * lib/stdio.in.h (gets): Always warn on use.
20671         (fseek, ftell): Adjust when warnings are issued, and honor
20672         _GL_NO_LARGE_FILES as a way to silence the warning.
20673         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
20674         any warning about large file offsets.
20675         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
20676         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
20677         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
20678         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
20679         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
20680         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
20681         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
20682         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
20683
20684         warn-on-use: new module
20685         * modules/warn-on-use: New file.
20686         * build-aux/warn-on-use.h: Likewise.
20687         * m4/warn-on-use.m4: Likewise.
20688         * MODULES.html.sh (Support for building): Mention it.
20689
20690 2010-01-10  Bruno Haible  <bruno@clisp.org>
20691
20692         Tests for module 'unistr/u32-strdup'.
20693         * modules/unistr/u32-strdup-tests: New file.
20694         * tests/unistr/test-u32-strdup.c: New file.
20695
20696         Tests for module 'unistr/u16-strdup'.
20697         * modules/unistr/u16-strdup-tests: New file.
20698         * tests/unistr/test-u16-strdup.c: New file.
20699
20700         Tests for module 'unistr/u8-strdup'.
20701         * modules/unistr/u8-strdup-tests: New file.
20702         * tests/unistr/test-u8-strdup.c: New file.
20703         * tests/unistr/test-strdup.h: New file.
20704
20705         Tests for module 'unistr/u32-strncmp'.
20706         * modules/unistr/u32-strncmp-tests: New file.
20707         * tests/unistr/test-u32-strncmp.c: New file.
20708
20709         Tests for module 'unistr/u16-strncmp'.
20710         * modules/unistr/u16-strncmp-tests: New file.
20711         * tests/unistr/test-u16-strncmp.c: New file.
20712
20713         Tests for module 'unistr/u8-strncmp'.
20714         * modules/unistr/u8-strncmp-tests: New file.
20715         * tests/unistr/test-u8-strncmp.c: New file.
20716         * tests/unistr/test-strncmp.h: New file.
20717
20718         Tests for module 'unistr/u32-strcoll'.
20719         * modules/unistr/u32-strcoll-tests: New file.
20720         * tests/unistr/test-u32-strcoll.c: New file.
20721
20722         Tests for module 'unistr/u16-strcoll'.
20723         * modules/unistr/u16-strcoll-tests: New file.
20724         * tests/unistr/test-u16-strcoll.c: New file.
20725
20726         Tests for module 'unistr/u8-strcoll'.
20727         * modules/unistr/u8-strcoll-tests: New file.
20728         * tests/unistr/test-u8-strcoll.c: New file.
20729
20730         Tests for module 'unistr/u32-strcmp'.
20731         * modules/unistr/u32-strcmp-tests: New file.
20732         * tests/unistr/test-u32-strcmp.c: New file.
20733         * tests/unistr/test-u32-strcmp.h: New file.
20734
20735         Tests for module 'unistr/u16-strcmp'.
20736         * modules/unistr/u16-strcmp-tests: New file.
20737         * tests/unistr/test-u16-strcmp.c: New file.
20738         * tests/unistr/test-u16-strcmp.h: New file.
20739
20740         Tests for module 'unistr/u8-strcmp'.
20741         * modules/unistr/u8-strcmp-tests: New file.
20742         * tests/unistr/test-u8-strcmp.c: New file.
20743         * tests/unistr/test-u8-strcmp.h: New file.
20744         * tests/unistr/test-strcmp.h: New file.
20745
20746         Tests for module 'unistr/u32-strncat'.
20747         * modules/unistr/u32-strncat-tests: New file.
20748         * tests/unistr/test-u32-strncat.c: New file.
20749
20750         Tests for module 'unistr/u16-strncat'.
20751         * modules/unistr/u16-strncat-tests: New file.
20752         * tests/unistr/test-u16-strncat.c: New file.
20753
20754         Tests for module 'unistr/u8-strncat'.
20755         * modules/unistr/u8-strncat-tests: New file.
20756         * tests/unistr/test-u8-strncat.c: New file.
20757         * tests/unistr/test-strncat.h: New file.
20758
20759         Tests for module 'unistr/u32-strcat'.
20760         * modules/unistr/u32-strcat-tests: New file.
20761         * tests/unistr/test-u32-strcat.c: New file.
20762
20763         Tests for module 'unistr/u16-strcat'.
20764         * modules/unistr/u16-strcat-tests: New file.
20765         * tests/unistr/test-u16-strcat.c: New file.
20766
20767         Tests for module 'unistr/u8-strcat'.
20768         * modules/unistr/u8-strcat-tests: New file.
20769         * tests/unistr/test-u8-strcat.c: New file.
20770         * tests/unistr/test-strcat.h: New file.
20771
20772         Tests for module 'unistr/u32-stpncpy'.
20773         * modules/unistr/u32-stpncpy-tests: New file.
20774         * tests/unistr/test-u32-stpncpy.c: New file.
20775
20776         Tests for module 'unistr/u16-stpncpy'.
20777         * modules/unistr/u16-stpncpy-tests: New file.
20778         * tests/unistr/test-u16-stpncpy.c: New file.
20779
20780         Tests for module 'unistr/u8-stpncpy'.
20781         * modules/unistr/u8-stpncpy-tests: New file.
20782         * tests/unistr/test-u8-stpncpy.c: New file.
20783         * tests/unistr/test-stpncpy.h: New file.
20784
20785         Tests for module 'unistr/u32-strncpy'.
20786         * modules/unistr/u32-strncpy-tests: New file.
20787         * tests/unistr/test-u32-strncpy.c: New file.
20788
20789         Tests for module 'unistr/u16-strncpy'.
20790         * modules/unistr/u16-strncpy-tests: New file.
20791         * tests/unistr/test-u16-strncpy.c: New file.
20792
20793         Tests for module 'unistr/u8-strncpy'.
20794         * modules/unistr/u8-strncpy-tests: New file.
20795         * tests/unistr/test-u8-strncpy.c: New file.
20796         * tests/unistr/test-strncpy.h: New file.
20797
20798         Tests for module 'unistr/u32-stpcpy'.
20799         * modules/unistr/u32-stpcpy-tests: New file.
20800         * tests/unistr/test-u32-stpcpy.c: New file.
20801
20802         Tests for module 'unistr/u16-stpcpy'.
20803         * modules/unistr/u16-stpcpy-tests: New file.
20804         * tests/unistr/test-u16-stpcpy.c: New file.
20805
20806         Tests for module 'unistr/u8-stpcpy'.
20807         * modules/unistr/u8-stpcpy-tests: New file.
20808         * tests/unistr/test-u8-stpcpy.c: New file.
20809         * tests/unistr/test-stpcpy.h: New file.
20810
20811         Tests for module 'unistr/u32-strcpy'.
20812         * modules/unistr/u32-strcpy-tests: New file.
20813         * tests/unistr/test-u32-strcpy.c: New file.
20814
20815         Tests for module 'unistr/u16-strcpy'.
20816         * modules/unistr/u16-strcpy-tests: New file.
20817         * tests/unistr/test-u16-strcpy.c: New file.
20818
20819         Tests for module 'unistr/u8-strcpy'.
20820         * modules/unistr/u8-strcpy-tests: New file.
20821         * tests/unistr/test-u8-strcpy.c: New file.
20822         * tests/unistr/test-strcpy.h: New file.
20823
20824         Tests for module 'unistr/u32-strnlen'.
20825         * modules/unistr/u32-strnlen-tests: New file.
20826         * tests/unistr/test-u32-strnlen.c: New file.
20827
20828         Tests for module 'unistr/u16-strnlen'.
20829         * modules/unistr/u16-strnlen-tests: New file.
20830         * tests/unistr/test-u16-strnlen.c: New file.
20831
20832         Tests for module 'unistr/u8-strnlen'.
20833         * modules/unistr/u8-strnlen-tests: New file.
20834         * tests/unistr/test-u8-strnlen.c: New file.
20835         * tests/unistr/test-strnlen.h: New file.
20836
20837         Tests for module 'unistr/u32-strlen'.
20838         * modules/unistr/u32-strlen-tests: New file.
20839         * tests/unistr/test-u32-strlen.c: New file.
20840
20841         Tests for module 'unistr/u16-strlen'.
20842         * modules/unistr/u16-strlen-tests: New file.
20843         * tests/unistr/test-u16-strlen.c: New file.
20844
20845         Tests for module 'unistr/u8-strlen'.
20846         * modules/unistr/u8-strlen-tests: New file.
20847         * tests/unistr/test-u8-strlen.c: New file.
20848
20849         Tests for module 'unistr/u32-prev'.
20850         * modules/unistr/u32-prev-tests: New file.
20851         * tests/unistr/test-u32-prev.c: New file.
20852
20853         Tests for module 'unistr/u16-prev'.
20854         * modules/unistr/u16-prev-tests: New file.
20855         * tests/unistr/test-u16-prev.c: New file.
20856
20857         Tests for module 'unistr/u8-prev'.
20858         * modules/unistr/u8-prev-tests: New file.
20859         * tests/unistr/test-u8-prev.c: New file.
20860
20861         Tests for module 'unistr/u32-next'.
20862         * modules/unistr/u32-next-tests: New file.
20863         * tests/unistr/test-u32-next.c: New file.
20864
20865         Tests for module 'unistr/u16-next'.
20866         * modules/unistr/u16-next-tests: New file.
20867         * tests/unistr/test-u16-next.c: New file.
20868
20869         Tests for module 'unistr/u8-next'.
20870         * modules/unistr/u8-next-tests: New file.
20871         * tests/unistr/test-u8-next.c: New file.
20872
20873         Tests for module 'unistr/u32-strmbtouc'.
20874         * modules/unistr/u32-strmbtouc-tests: New file.
20875         * tests/unistr/test-u32-strmbtouc.c: New file.
20876
20877         Tests for module 'unistr/u16-strmbtouc'.
20878         * modules/unistr/u16-strmbtouc-tests: New file.
20879         * tests/unistr/test-u16-strmbtouc.c: New file.
20880
20881         Tests for module 'unistr/u8-strmbtouc'.
20882         * modules/unistr/u8-strmbtouc-tests: New file.
20883         * tests/unistr/test-u8-strmbtouc.c: New file.
20884
20885         Tests for module 'unistr/u32-strmblen'.
20886         * modules/unistr/u32-strmblen-tests: New file.
20887         * tests/unistr/test-u32-strmblen.c: New file.
20888
20889         Tests for module 'unistr/u16-strmblen'.
20890         * modules/unistr/u16-strmblen-tests: New file.
20891         * tests/unistr/test-u16-strmblen.c: New file.
20892
20893         Tests for module 'unistr/u8-strmblen'.
20894         * modules/unistr/u8-strmblen-tests: New file.
20895         * tests/unistr/test-u8-strmblen.c: New file.
20896
20897         Tests for module 'unistr/u32-cpy-alloc'.
20898         * modules/unistr/u32-cpy-alloc-tests: New file.
20899         * tests/unistr/test-u32-cpy-alloc.c: New file.
20900
20901         Tests for module 'unistr/u16-cpy-alloc'.
20902         * modules/unistr/u16-cpy-alloc-tests: New file.
20903         * tests/unistr/test-u16-cpy-alloc.c: New file.
20904
20905         Tests for module 'unistr/u8-cpy-alloc'.
20906         * modules/unistr/u8-cpy-alloc-tests: New file.
20907         * tests/unistr/test-u8-cpy-alloc.c: New file.
20908         * tests/unistr/test-cpy-alloc.h: New file.
20909
20910         Tests for module 'unistr/u32-mbsnlen'.
20911         * modules/unistr/u32-mbsnlen-tests: New file.
20912         * tests/unistr/test-u32-mbsnlen.c: New file.
20913
20914         Tests for module 'unistr/u16-mbsnlen'.
20915         * modules/unistr/u16-mbsnlen-tests: New file.
20916         * tests/unistr/test-u16-mbsnlen.c: New file.
20917
20918         Tests for module 'unistr/u8-mbsnlen'.
20919         * modules/unistr/u8-mbsnlen-tests: New file.
20920         * tests/unistr/test-u8-mbsnlen.c: New file.
20921
20922         Tests for module 'unistr/u32-chr'.
20923         * modules/unistr/u32-chr-tests: New file.
20924         * tests/unistr/test-u32-chr.c: New file.
20925
20926         Tests for module 'unistr/u16-chr'.
20927         * modules/unistr/u16-chr-tests: New file.
20928         * tests/unistr/test-u16-chr.c: New file.
20929
20930         Tests for module 'unistr/u8-chr'.
20931         * modules/unistr/u8-chr-tests: New file.
20932         * tests/unistr/test-u8-chr.c: New file.
20933         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
20934
20935         Tests for module 'unistr/u32-cmp2'.
20936         * modules/unistr/u32-cmp2-tests: New file.
20937         * tests/unistr/test-u32-cmp2.c: New file.
20938
20939         Tests for module 'unistr/u16-cmp2'.
20940         * modules/unistr/u16-cmp2-tests: New file.
20941         * tests/unistr/test-u16-cmp2.c: New file.
20942
20943         Tests for module 'unistr/u8-cmp2'.
20944         * modules/unistr/u8-cmp2-tests: New file.
20945         * tests/unistr/test-u8-cmp2.c: New file.
20946         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
20947
20948         Tests for module 'unistr/u32-cmp'.
20949         * modules/unistr/u32-cmp-tests: New file.
20950         * tests/unistr/test-u32-cmp.c: New file.
20951
20952         Tests for module 'unistr/u16-cmp'.
20953         * modules/unistr/u16-cmp-tests: New file.
20954         * tests/unistr/test-u16-cmp.c: New file.
20955
20956         Tests for module 'unistr/u8-cmp'.
20957         * modules/unistr/u8-cmp-tests: New file.
20958         * tests/unistr/test-u8-cmp.c: New file.
20959         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
20960
20961         Tests for module 'unistr/u32-set'.
20962         * modules/unistr/u32-set-tests: New file.
20963         * tests/unistr/test-u32-set.c: New file.
20964
20965         Tests for module 'unistr/u16-set'.
20966         * modules/unistr/u16-set-tests: New file.
20967         * tests/unistr/test-u16-set.c: New file.
20968
20969         Tests for module 'unistr/u8-set'.
20970         * modules/unistr/u8-set-tests: New file.
20971         * tests/unistr/test-u8-set.c: New file.
20972         * tests/unistr/test-set.h: New file.
20973
20974         Tests for module 'unistr/u32-move'.
20975         * modules/unistr/u32-move-tests: New file.
20976         * tests/unistr/test-u32-move.c: New file.
20977
20978         Tests for module 'unistr/u16-move'.
20979         * modules/unistr/u16-move-tests: New file.
20980         * tests/unistr/test-u16-move.c: New file.
20981
20982         Tests for module 'unistr/u8-move'.
20983         * modules/unistr/u8-move-tests: New file.
20984         * tests/unistr/test-u8-move.c: New file.
20985         * tests/unistr/test-move.h: New file.
20986
20987         Tests for module 'unistr/u32-cpy'.
20988         * modules/unistr/u32-cpy-tests: New file.
20989         * tests/unistr/test-u32-cpy.c: New file.
20990
20991         Tests for module 'unistr/u16-cpy'.
20992         * modules/unistr/u16-cpy-tests: New file.
20993         * tests/unistr/test-u16-cpy.c: New file.
20994
20995         Tests for module 'unistr/u8-cpy'.
20996         * modules/unistr/u8-cpy-tests: New file.
20997         * tests/unistr/test-u8-cpy.c: New file.
20998         * tests/unistr/test-cpy.h: New file.
20999
21000 2010-01-09  Bruno Haible  <bruno@clisp.org>
21001
21002         Tests for module 'unistr/u32-uctomb'.
21003         * modules/unistr/u32-uctomb-tests: New file.
21004         * tests/unistr/test-u32-uctomb.c: New file.
21005
21006         Tests for module 'unistr/u16-uctomb'.
21007         * modules/unistr/u16-uctomb-tests: New file.
21008         * tests/unistr/test-u16-uctomb.c: New file.
21009
21010         Tests for module 'unistr/u8-uctomb'.
21011         * modules/unistr/u8-uctomb-tests: New file.
21012         * tests/unistr/test-u8-uctomb.c: New file.
21013
21014         Tests for module 'unistr/u32-mbtoucr'.
21015         * modules/unistr/u32-mbtoucr-tests: New file.
21016         * tests/unistr/test-u32-mbtoucr.c: New file.
21017
21018         Tests for module 'unistr/u16-mbtoucr'.
21019         * modules/unistr/u16-mbtoucr-tests: New file.
21020         * tests/unistr/test-u16-mbtoucr.c: New file.
21021
21022         Tests for module 'unistr/u8-mbtoucr'.
21023         * modules/unistr/u8-mbtoucr-tests: New file.
21024         * tests/unistr/test-u8-mbtoucr.c: New file.
21025
21026         Tests for module 'unistr/u32-mbtouc'.
21027         * modules/unistr/u32-mbtouc-tests: New file.
21028         * tests/unistr/test-u32-mbtouc.c: New file.
21029
21030         Tests for module 'unistr/u16-mbtouc'.
21031         * modules/unistr/u16-mbtouc-tests: New file.
21032         * tests/unistr/test-u16-mbtouc.c: New file.
21033
21034         Tests for module 'unistr/u8-mbtouc'.
21035         * modules/unistr/u8-mbtouc-tests: New file.
21036         * tests/unistr/test-u8-mbtouc.c: New file.
21037
21038         Tests for module 'unistr/u32-mbtouc-unsafe'.
21039         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
21040         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
21041         * tests/unistr/test-u32-mbtouc.h: New file.
21042
21043         Tests for module 'unistr/u16-mbtouc-unsafe'.
21044         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
21045         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
21046         * tests/unistr/test-u16-mbtouc.h: New file.
21047
21048         Tests for module 'unistr/u8-mbtouc-unsafe'.
21049         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
21050         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
21051         * tests/unistr/test-u8-mbtouc.h: New file.
21052
21053         Tests for module 'unistr/u32-mblen'.
21054         * modules/unistr/u32-mblen-tests: New file.
21055         * tests/unistr/test-u32-mblen.c: New file.
21056
21057         Tests for module 'unistr/u16-mblen'.
21058         * modules/unistr/u16-mblen-tests: New file.
21059         * tests/unistr/test-u16-mblen.c: New file.
21060
21061         Tests for module 'unistr/u8-mblen'.
21062         * modules/unistr/u8-mblen-tests: New file.
21063         * tests/unistr/test-u8-mblen.c: New file.
21064
21065         Tests for module 'unistr/u32-to-u16'.
21066         * modules/unistr/u32-to-u16-tests: New file.
21067         * tests/unistr/test-u32-to-u16.c: New file.
21068
21069         Tests for module 'unistr/u32-to-u8'.
21070         * modules/unistr/u32-to-u8-tests: New file.
21071         * tests/unistr/test-u32-to-u8.c: New file.
21072
21073         Tests for module 'unistr/u16-to-u32'.
21074         * modules/unistr/u16-to-u32-tests: New file.
21075         * tests/unistr/test-u16-to-u32.c: New file.
21076
21077         Tests for module 'unistr/u16-to-u8'.
21078         * modules/unistr/u16-to-u8-tests: New file.
21079         * tests/unistr/test-u16-to-u8.c: New file.
21080
21081         Tests for module 'unistr/u8-to-u32'.
21082         * modules/unistr/u8-to-u32-tests: New file.
21083         * tests/unistr/test-u8-to-u32.c: New file.
21084
21085         Tests for module 'unistr/u8-to-u16'.
21086         * modules/unistr/u8-to-u16-tests: New file.
21087         * tests/unistr/test-u8-to-u16.c: New file.
21088
21089         Tests for module 'unistr/u32-check'.
21090         * modules/unistr/u32-check-tests: New file.
21091         * tests/unistr/test-u32-check.c: New file.
21092
21093         Tests for module 'unistr/u16-check'.
21094         * modules/unistr/u16-check-tests: New file.
21095         * tests/unistr/test-u16-check.c: New file.
21096
21097         Tests for module 'unistr/u8-check'.
21098         * modules/unistr/u8-check-tests: New file.
21099         * tests/unistr/test-u8-check.c: New file.
21100
21101         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
21102         (category_equals): New function.
21103         (main): Add more tests.
21104         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
21105
21106         * tests/unictype/test-bidi_byname.c (main): Add more tests.
21107
21108 2010-01-10  Bruno Haible  <bruno@clisp.org>
21109
21110         unistr/u*-strcoll: Try harder to distinguish different strings.
21111         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
21112         compare s1 and s2 to see if they are different.
21113
21114 2010-01-10  Bruno Haible  <bruno@clisp.org>
21115
21116         unistr/u*-stpncpy: Fix the return value.
21117         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
21118         description of the return value consistent with stpncpy in glibc.
21119         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
21120         written non-NUL unit.
21121
21122 2010-01-10  Bruno Haible  <bruno@clisp.org>
21123
21124         unistr/u*-next: Add missing dependencies.
21125         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
21126         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
21127         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
21128
21129 2010-01-10  Bruno Haible  <bruno@clisp.org>
21130
21131         unistr/u8-mbsnlen: Fix return value for incomplete character.
21132         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
21133         u8_mblen.
21134         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
21135         Remove unistr/u8-mblen.
21136         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
21137         u16_mblen.
21138         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
21139         Remove unistr/u16-mblen.
21140
21141 2010-01-10  Bruno Haible  <bruno@clisp.org>
21142
21143         wchar: Fix compilation error when <wchar.h> is used from coreutils.
21144         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
21145         Reported by Brian Gough <bjg@gnu.org> and
21146         Chris Clayton <chris2553@googlemail.com> via
21147         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
21148
21149 2010-01-09  Bruno Haible  <bruno@clisp.org>
21150
21151         unistr/u16-to-u32: Reject invalid input.
21152         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
21153         u16_mbtouc.
21154         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
21155         Remove unistr/u16-mbtouc.
21156
21157         unistr/u16-to-u8: Reject invalid input.
21158         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
21159         u16_mbtouc.
21160         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
21161         Remove unistr/u16-mbtouc.
21162
21163         unistr/u8-to-u32: Reject invalid input.
21164         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
21165         u8_mbtouc.
21166         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
21167         Remove unistr/u8-mbtouc.
21168
21169         unistr/u8-to-u16: Reject invalid input.
21170         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
21171         u8_mbtouc.
21172         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
21173         Remove unistr/u8-mbtouc.
21174
21175 2010-01-09  Bruno Haible  <bruno@clisp.org>
21176
21177         Tests for module 'getlogin'.
21178         * modules/getlogin-tests: New file.
21179         * tests/test-getlogin.c: New file.
21180
21181         New module 'getlogin'.
21182         * lib/unistd.in.h (getlogin): New declaration.
21183         * lib/getlogin.c: New file.
21184         * m4/getlogin.m4: New file.
21185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
21186         HAVE_GETLOGIN.
21187         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
21188         HAVE_GETLOGIN.
21189         * modules/getlogin: New file.
21190         * doc/posix-functions/getlogin.texi: Mention the new module.
21191         Reported by John W. Eaton <jwe@gnu.org>.
21192
21193 2010-01-09  Bruno Haible  <bruno@clisp.org>
21194
21195         getlogin_r: Support for native Windows.
21196         * lib/getlogin_r.c: Include <windows.h>
21197         (getlogin_r): Implement for native Windows.
21198         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
21199         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
21200         via John W. Eaton <jwe@gnu.org>.
21201
21202 2010-01-09  Bruno Haible  <bruno@clisp.org>
21203
21204         getlogin_r: Small fixes.
21205         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
21206         succeeds.
21207         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
21208         before testing whether getlogin_r is declared. No need to set
21209         HAVE_DECL_GETLOGIN_R to 1.
21210         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
21211
21212 2010-01-09  Bruno Haible  <bruno@clisp.org>
21213
21214         * lib/unistd.in.h (getlogin_r): Add comment.
21215
21216 2010-01-09  Bruno Haible  <bruno@clisp.org>
21217
21218         Tests for module 'getlogin_r'.
21219         * modules/getlogin_r-tests: New file.
21220         * tests/test-getlogin_r.c: New file.
21221
21222 2010-01-09  Jim Meyering  <meyering@redhat.com>
21223
21224         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
21225         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
21226         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
21227
21228 2010-01-08  Simon Josefsson  <simon@josefsson.org>
21229
21230         * lib/dup2.c (rpl_dup2): Improve comment.
21231
21232 2010-01-08  Eric Blake  <ebb9@byu.net>
21233
21234         maint.mk: allow packages to add makefile @@ exceptions
21235         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
21236         (sc_makefile_check): Rename...
21237         (sc_makefile_at_at_check): ...to this, and use hook.
21238
21239         dup2: work around mingw bug
21240         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
21241         Reported by Simon Josefsson.
21242
21243 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
21244
21245         glob: Fix C++ compilation.
21246         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
21247         C++.
21248
21249 2010-01-07  Bruno Haible  <bruno@clisp.org>
21250
21251         Fix indentation of wctype.in.h, broken since 2007-01-06.
21252         * lib/wctype.in.h: Fix indentation of preprocessor directives.
21253
21254 2010-01-07  Bruno Haible  <bruno@clisp.org>
21255
21256         mbslen: Avoid collision with system function.
21257         * lib/string.in.h [MirBSD]: Include <wchar.h>.
21258         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
21259         * m4/mbslen.m4: New file.
21260         * modules/mbslen (Files): Add it.
21261         (configure.ac): Invoke gl_MBSLEN.
21262         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
21263         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
21264         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
21265         via Ian Beckwith <ianb@erislabs.net>.
21266
21267 2010-01-07  Bruno Haible  <bruno@clisp.org>
21268
21269         dirent: Document the last fix.
21270         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
21271
21272 2010-01-07  Bruno Haible  <bruno@clisp.org>
21273
21274         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
21275         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
21276         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
21277         va_list are defined.
21278         * doc/posix-headers/stdio.texi: Document the bug of missing types.
21279         Reported by Eric Blake.
21280
21281 2010-01-07  Bruno Haible  <bruno@clisp.org>
21282
21283         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
21284         * modules/xlist (Depends-on): Add 'list',
21285         * modules/xoset (Depends-on): Add 'oset'.
21286         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21287
21288 2010-01-07  Bruno Haible  <bruno@clisp.org>
21289
21290         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
21291         * doc/posix-functions/strncasecmp.texi: Likewise.
21292
21293 2010-01-07  Bruno Haible  <bruno@clisp.org>
21294
21295         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
21296
21297 2010-01-07  John W. Eaton  <jwe@octave.org>
21298
21299         wctype: allow C++ use
21300         * lib/wctype.in.h: Add extern "C" block for C++.
21301
21302 2010-01-06  Eric Blake  <ebb9@byu.net>
21303
21304         maint.mk: detect incorrect GFDL usage
21305         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
21306
21307 2010-01-06  Jim Meyering  <meyering@redhat.com>
21308         and Eric Blake  <ebb9@byu.net>
21309
21310         maint.mk: ignore multi-line copyright in NEWS
21311         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
21312
21313 2010-01-06  Eric Blake  <ebb9@byu.net>
21314
21315         select: add missing dependency
21316         * modules/select-tests (Depends-on): Move sockets dependency...
21317         * modules/select (Depends-on): ...here.
21318         Reported by Ian Beckwith.
21319
21320         doc: regenerate INSTALL
21321         * doc/INSTALL: Reflect recent autoconf update.
21322         * doc/INSTALL.ISO: Likewise.
21323         * doc/INSTALL.UTF-8: Likewise.
21324
21325         pread: fix compilation on glibc
21326         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
21327         Reported by Ralf Wildenhues.
21328
21329         dirent: fix test failure
21330         * lib/dirent.in.h (includes): Guarantee ino_t.
21331         Reported by Ralf Wildenhues.
21332
21333 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
21334
21335         linkat, renameat: avoid bad free
21336         * lib/at-func2.c (at_func2): Fix typo.
21337         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
21338
21339 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21340
21341         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
21342         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
21343         to avoid failure of symlink test later.
21344
21345 2010-01-06  Eric Blake  <ebb9@byu.net>
21346
21347         stdio, unistd: guarantee ssize_t
21348         * lib/unistd.in.h (includes): Ensure that types required by POSIX
21349         2008 are exposed when needed.
21350         * lib/stdio.in.h (includes): Likewise.
21351         Reported by Ralf Wildenhues.
21352
21353 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
21354
21355         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
21356         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
21357         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
21358
21359 2010-01-06  Jim Meyering  <meyering@redhat.com>
21360
21361         readtokens: this module *does* require xalloc.h
21362         It uses only functions that were omitted by the old syntax-check rule.
21363         * lib/readtokens.c: Include "xalloc.h" once again.
21364         * modules/readtokens (Depends-on): Add xalloc.
21365         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
21366
21367 2010-01-05  Eric Blake  <ebb9@byu.net>
21368
21369         maint: support 'make announcement' from a VPATH build
21370         * top/maint.mk (announcement): Look for correct NEWS file.
21371
21372 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
21373
21374         utimens (fdutimens): ignore a negative FD, per contract
21375         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
21376         when we have a valid file descriptor.  Otherwise, using a brand
21377         new glibc (with just-patched futimens that now fails with EBADF)
21378         would cause this function to fail with ENOSYS.
21379         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
21380         See also http://bugzilla.redhat.com/552320.
21381
21382 2010-01-05  Eric Blake  <ebb9@byu.net>
21383
21384         strcase: document what it provides
21385         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
21386         gnulib module.
21387         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
21388         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
21389
21390 2010-01-05  Jim Meyering  <meyering@redhat.com>
21391
21392         maint: remove useless inclusions of "xalloc.h"
21393         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
21394         * lib/readtokens.c: Likewise.
21395         * lib/same.c: Likewise.
21396         * modules/getloadavg (Depends-on): Remove xalloc.
21397         * modules/readtokens: Likewise.
21398         * modules/same: Likewise.
21399
21400         maint.mk: include 4 more function names in alloca.h-checking regexp
21401         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
21402         regexp.  Before, we would give a false-positive (saying alloca.h
21403         is included unnecessarily) when the only uses involved omitted symbols.
21404
21405         xalloc.h: use consistent formatting
21406         * lib/xalloc.h: Move declarations to start in the first column.
21407
21408 2010-01-05  Eric Blake  <ebb9@byu.net>
21409
21410         mkdir: avoid xalloc
21411         * lib/mkdir.c (includes): Drop unused header.
21412         Reported by John W. Eaton.
21413
21414 2010-01-04  Jim Meyering  <meyering@redhat.com>
21415
21416         nl_langinfo: avoid configure-time syntax error
21417         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
21418         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
21419         the empty string.  Don't let that provoke a shell syntax error.
21420
21421         regcomp, regexec, fnmatch: avoid array bounds read error
21422         * lib/regcomp.c (build_equiv_class): From glibc:
21423         Use only the low 24 bits of a findidx return value as an index
21424         into the weights array.  Patch by Ulrich Drepper:
21425         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
21426         * lib/regexec.c (check_node_accept_bytes): Likewise.
21427         * lib/fnmatch_loop.c (FCT): Likewise.
21428
21429         regcomp: skip collseq lookup when there are no rules
21430         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
21431         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
21432
21433         regcomp: recognize ill-formed { } expressions
21434         * lib/regcomp.c (parse_dup_op): From glibc:
21435         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
21436
21437         regcomp: fix typo in comment
21438         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
21439         s/satisfy/satisfies/.
21440
21441         regcomp: sync from glibc: remove dead store
21442         * lib/regcomp.c (duplicate_node_closure): Remove useless
21443         search_duplicated_node call and dead store.
21444
21445         regcomp: sync from glibc; always use nl_langinfo
21446         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
21447         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
21448         * modules/regex (Depends-on): Add nl_langinfo.
21449
21450 2010-01-04  Eric Blake  <ebb9@byu.net>
21451
21452         fdopendir: fix configure test
21453         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
21454
21455 2010-01-01  Bruno Haible  <bruno@clisp.org>
21456
21457         wchar: Remove unused configure check.
21458         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
21459
21460 2010-01-01  Eric Blake  <ebb9@byu.net>
21461
21462         headers: make check of system header explicit
21463         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
21464         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
21465         ourselves.
21466         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21467         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21468         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
21469         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
21470         internals.
21471         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
21472         missing.
21473         Suggested by Bruno Haible.
21474
21475 2010-01-01  Jim Meyering  <meyering@redhat.com>
21476
21477         ChangeLog: tweak to eliminate unnecessary copyright line
21478         * ChangeLog: Remove a copyright line that was mistakenly updated
21479         by today's update-copyright run.  Reported by Eric Blake.
21480
21481         test-update-copyright: don't let envvar setting cause test failure
21482         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21483
21484 2010-01-01  Bruno Haible  <bruno@clisp.org>
21485
21486         localename: Avoid gcc warning.
21487         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
21488         function if it is not used.
21489
21490 2010-01-01  Jim Meyering  <meyering@redhat.com>
21491
21492         update nearly all FSF copyright year lists to include 2010
21493         Use the same procedure as for 2009, outlined in
21494         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
21495
21496         version-etc: set COPYRIGHT_YEAR to 2010
21497         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
21498
21499 2009-12-31  Eric Blake  <ebb9@byu.net>
21500
21501         doc: correct availability of cygwin 1.5.x getopt
21502         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
21503         variables.
21504         * doc/posix-functions/opterr.texi (opterr): Likewise.
21505         * doc/posix-functions/optind.texi (optind): Likewise.
21506         * doc/posix-functions/optopt.texi (optopt): Likewise.
21507         * doc/posix-functions/tzname.texi (tzname): Likewise.
21508
21509         openat: update maintainer
21510         * modules/openat (Maintainer): Add myself.
21511
21512         utimens: avoid shadowing warning
21513         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
21514         buffers into one, to avoid shadowing, as well as avoiding a
21515         redundant stat.
21516         Reported by Jim Meyering.
21517
21518         test-dup2: avoid compiler warning
21519         * tests/test-dup2.c (is_inheritable): Only define if used.
21520
21521 2010-01-01  Bruno Haible  <bruno@clisp.org>
21522
21523         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
21524         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
21525         defined, use wctomb instead of wcrtomb.
21526
21527 2010-01-01  Bruno Haible  <bruno@clisp.org>
21528
21529         iconv: Reject native Solaris iconv.
21530         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
21531         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
21532
21533 2009-12-31  Bruno Haible  <bruno@clisp.org>
21534
21535         * tests/test-signal.c (main): Remove test of 'SIG'.
21536
21537 2009-12-31  Bruno Haible  <bruno@clisp.org>
21538
21539         spawn: Fix incomplete fix.
21540         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
21541         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
21542         warnings for GNULIB_POSIXCHECK again.
21543         Reported by Eric Blake.
21544
21545 2009-12-31  Bruno Haible  <bruno@clisp.org>
21546
21547         Avoid namespace pollution on glibc systems.
21548         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
21549         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
21550         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
21551         glibc systems.
21552
21553 2009-12-31  Bruno Haible  <bruno@clisp.org>
21554
21555         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
21556         (gl_REPLACE_WCHAR_H): Turn into a no-op.
21557         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
21558         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21559         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21560         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21561         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21562
21563 2009-12-31  Bruno Haible  <bruno@clisp.org>
21564
21565         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
21566         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
21567         afterwards.
21568
21569 2009-12-31  Bruno Haible  <bruno@clisp.org>
21570
21571         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
21572         SYS_UTSNAME_H.
21573
21574 2009-12-31  Bruno Haible  <bruno@clisp.org>
21575
21576         spawn: Fix misapplied patch.
21577         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
21578         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
21579         warnings for GNULIB_POSIXCHECK.
21580
21581 2009-12-31  Bruno Haible  <bruno@clisp.org>
21582
21583         times: Update after sys_times changed.
21584         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
21585         * modules/times (Files): Add it.
21586         (configure.ac): Invoke gl_FUNC_TIMES.
21587
21588 2009-12-31  Bruno Haible  <bruno@clisp.org>
21589
21590         Use AC_C_INLINE where necessary.
21591         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
21592         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21593         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
21594         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
21595         * m4/mbfile.m4 (gl_MBFILE): Likewise.
21596         * m4/mbiter.m4 (gl_MBITER): Likewise.
21597         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21598         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21599         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
21600         * modules/u64 (configure.ac): Likewise.
21601
21602 2009-12-31  Bruno Haible  <bruno@clisp.org>
21603
21604         Use AC_C_INLINE instead of module 'inline' where possible.
21605         * modules/inline (Description): Clarify purpose.
21606         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
21607         * modules/count-one-bits (Depends-on): Remove inline.
21608         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
21609         * modules/openat (Depends-on): Remove inline.
21610         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
21611         instead of depending on module 'inline'.
21612         * modules/filevercmp (Depends-on, configure.ac): Likewise.
21613         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
21614         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
21615         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
21616         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
21617         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
21618         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
21619         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
21620         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
21621         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
21622         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
21623         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
21624         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
21625         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
21626         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
21627         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
21628         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
21629         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
21630         Likewise.
21631         * modules/unictype/property-ascii-hex-digit (Depends-on,
21632         configure.ac): Likewise.
21633         * modules/unictype/property-bidi-arabic-digit (Depends-on,
21634         configure.ac): Likewise.
21635         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
21636         configure.ac): Likewise.
21637         * modules/unictype/property-bidi-block-separator (Depends-on,
21638         configure.ac): Likewise.
21639         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
21640         configure.ac): Likewise.
21641         * modules/unictype/property-bidi-common-separator (Depends-on,
21642         configure.ac): Likewise.
21643         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
21644         Likewise.
21645         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
21646         configure.ac): Likewise.
21647         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
21648         configure.ac): Likewise.
21649         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
21650         configure.ac): Likewise.
21651         * modules/unictype/property-bidi-european-digit (Depends-on,
21652         configure.ac): Likewise.
21653         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
21654         configure.ac): Likewise.
21655         * modules/unictype/property-bidi-left-to-right (Depends-on,
21656         configure.ac): Likewise.
21657         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
21658         configure.ac): Likewise.
21659         * modules/unictype/property-bidi-other-neutral (Depends-on,
21660         configure.ac): Likewise.
21661         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
21662         Likewise.
21663         * modules/unictype/property-bidi-segment-separator (Depends-on,
21664         configure.ac): Likewise.
21665         * modules/unictype/property-bidi-whitespace (Depends-on,
21666         configure.ac): Likewise.
21667         * modules/unictype/property-combining (Depends-on, configure.ac):
21668         Likewise.
21669         * modules/unictype/property-composite (Depends-on, configure.ac):
21670         Likewise.
21671         * modules/unictype/property-currency-symbol (Depends-on,
21672         configure.ac): Likewise.
21673         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
21674         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
21675         Likewise.
21676         * modules/unictype/property-default-ignorable-code-point (Depends-on,
21677         configure.ac): Likewise.
21678         * modules/unictype/property-deprecated (Depends-on, configure.ac):
21679         Likewise.
21680         * modules/unictype/property-diacritic (Depends-on, configure.ac):
21681         Likewise.
21682         * modules/unictype/property-extender (Depends-on, configure.ac):
21683         Likewise.
21684         * modules/unictype/property-format-control (Depends-on, configure.ac):
21685         Likewise.
21686         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
21687         Likewise.
21688         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
21689         Likewise.
21690         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
21691         Likewise.
21692         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
21693         Likewise.
21694         * modules/unictype/property-hyphen (Depends-on, configure.ac):
21695         Likewise.
21696         * modules/unictype/property-id-continue (Depends-on, configure.ac):
21697         Likewise.
21698         * modules/unictype/property-id-start (Depends-on, configure.ac):
21699         Likewise.
21700         * modules/unictype/property-ideographic (Depends-on, configure.ac):
21701         Likewise.
21702         * modules/unictype/property-ids-binary-operator (Depends-on,
21703         configure.ac): Likewise.
21704         * modules/unictype/property-ids-trinary-operator (Depends-on,
21705         configure.ac): Likewise.
21706         * modules/unictype/property-ignorable-control (Depends-on,
21707         configure.ac): Likewise.
21708         * modules/unictype/property-iso-control (Depends-on, configure.ac):
21709         Likewise.
21710         * modules/unictype/property-join-control (Depends-on, configure.ac):
21711         Likewise.
21712         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
21713         Likewise.
21714         * modules/unictype/property-line-separator (Depends-on, configure.ac):
21715         Likewise.
21716         * modules/unictype/property-logical-order-exception (Depends-on,
21717         configure.ac): Likewise.
21718         * modules/unictype/property-lowercase (Depends-on, configure.ac):
21719         Likewise.
21720         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
21721         * modules/unictype/property-non-break (Depends-on, configure.ac):
21722         Likewise.
21723         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
21724         Likewise.
21725         * modules/unictype/property-numeric (Depends-on, configure.ac):
21726         Likewise.
21727         * modules/unictype/property-other-alphabetic (Depends-on,
21728         configure.ac): Likewise.
21729         * modules/unictype/property-other-default-ignorable-code-point
21730         (Depends-on, configure.ac): Likewise.
21731         * modules/unictype/property-other-grapheme-extend (Depends-on,
21732         configure.ac): Likewise.
21733         * modules/unictype/property-other-id-continue (Depends-on,
21734         configure.ac): Likewise.
21735         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
21736         Likewise.
21737         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
21738         Likewise.
21739         * modules/unictype/property-other-math (Depends-on, configure.ac):
21740         Likewise.
21741         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
21742         Likewise.
21743         * modules/unictype/property-paired-punctuation (Depends-on,
21744         configure.ac): Likewise.
21745         * modules/unictype/property-paragraph-separator (Depends-on,
21746         configure.ac): Likewise.
21747         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
21748         Likewise.
21749         * modules/unictype/property-pattern-white-space (Depends-on,
21750         configure.ac): Likewise.
21751         * modules/unictype/property-private-use (Depends-on, configure.ac):
21752         Likewise.
21753         * modules/unictype/property-punctuation (Depends-on, configure.ac):
21754         Likewise.
21755         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
21756         Likewise.
21757         * modules/unictype/property-radical (Depends-on, configure.ac):
21758         Likewise.
21759         * modules/unictype/property-sentence-terminal (Depends-on,
21760         configure.ac): Likewise.
21761         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
21762         Likewise.
21763         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
21764         * modules/unictype/property-terminal-punctuation (Depends-on,
21765         configure.ac): Likewise.
21766         * modules/unictype/property-titlecase (Depends-on, configure.ac):
21767         Likewise.
21768         * modules/unictype/property-unassigned-code-value (Depends-on,
21769         configure.ac): Likewise.
21770         * modules/unictype/property-unified-ideograph (Depends-on,
21771         configure.ac): Likewise.
21772         * modules/unictype/property-uppercase (Depends-on, configure.ac):
21773         Likewise.
21774         * modules/unictype/property-variation-selector (Depends-on,
21775         configure.ac): Likewise.
21776         * modules/unictype/property-white-space (Depends-on, configure.ac):
21777         Likewise.
21778         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
21779         Likewise.
21780         * modules/unictype/property-xid-start (Depends-on, configure.ac):
21781         Likewise.
21782         * modules/unictype/property-zero-width (Depends-on, configure.ac):
21783         Likewise.
21784         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
21785         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
21786         Likewise.
21787
21788 2009-12-31  Bruno Haible  <bruno@clisp.org>
21789
21790         Remove unnecessary AC_C_INLINE invocation.
21791         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
21792         since 2009-08-21.
21793
21794 2009-12-31  Jim Meyering  <meyering@redhat.com>
21795
21796         maint.mk: don't require explicit gpg_key_ID in cfg.mk
21797         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
21798         With this change, we can all remove the gpg_key_ID = ... definition
21799         from our respective cfg.mk files.
21800
21801         maint.mk: create announcement template in ~/, not in /tmp
21802         * top/maint.mk (emit_upload_commands): Adjust.
21803         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
21804         Remove temporary file, .ci-msg.
21805
21806 2009-12-31  Eric Blake  <ebb9@byu.net>
21807
21808         link-warning: always build headers with link warnings
21809         * modules/arpa_inet (Makefile.am): Always build replacement
21810         header.
21811         * modules/ctype (Makefile.am): Likewise.
21812         * modules/dirent (Makefile.am): Likewise.
21813         * modules/inttypes (Makefile.am): Likewise.
21814         * modules/langinfo (Makefile.am): Likewise.
21815         * modules/locale (Makefile.am): Likewise.
21816         * modules/spawn (Makefile.am): Likewise.
21817         * modules/sys_file (Makefile.am): Likewise.
21818         * modules/sys_ioctl (Makefile.am): Likewise.
21819         * modules/sys_select (Makefile.am): Likewise.
21820         * modules/sys_socket (Makefile.am): Likewise.
21821         * modules/sys_times (Makefile.am): Likewise.
21822         * modules/sys_utsname (Makefile.am): Likewise.
21823         * modules/sys_wait (Makefile.am): Likewise.
21824         * modules/wchar (Makefile.am): Likewise.
21825         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
21826         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
21827         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
21828         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
21829         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
21830         Likewise.
21831         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21832         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21833         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
21834         Likewise.
21835         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
21836         Likewise.
21837         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21838         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
21839         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
21840         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21841         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21842         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
21843         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
21844         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
21845         (gl_WCHAR_H_DEFAULTS): Likewise.
21846
21847 2009-12-31  Eric Blake  <ebb9@byu.net>
21848
21849         signal, spawn: use link warnings
21850         * lib/signal.in.h (sigset_t): Make unconditional.
21851         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
21852         (sigpending, sigprocmask, sigaction): Add link warnings.
21853         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
21854         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
21855         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
21856         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
21857         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
21858         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
21859         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
21860         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
21861         (posix_spawn_file_actions_destroy)
21862         (posix_spawn_file_actions_addopen)
21863         (posix_spawn_file_actions_addclose)
21864         (posix_spawn_file_actions_adddup2): Likewise.
21865         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
21866         * tests/test-signal.c (main): Enhance test.
21867
21868         spawn: improve wrapper support
21869         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
21870         (gl_SPAWN_H_DEFAULTS): New defaults.
21871         * modules/spawn (Makefile.am): Substitute them.
21872         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
21873         Only declare if missing or broken.
21874
21875         sys_times, sys_utsname: use include_next
21876         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
21877         header.
21878         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
21879         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
21880         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
21881         * modules/sys_times (Depends-on): Add include_next.
21882         (Makefile.am): Substitute additional values.
21883         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
21884         * lib/sys_times.in.h (includes): Include native header, if
21885         available.
21886         * lib/sys_utsname.in.h (includes): Likewise.
21887         * tests/test-sys_times.c (main): Enhance test.
21888
21889         fdutimensat: revert prior patch
21890         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
21891         utimens.h.
21892         Reported by Bruno Haible.
21893
21894 2009-12-30  Eric Blake  <ebb9@byu.net>
21895
21896         sys_wait: drop link-warning dependency
21897         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
21898         link-warning efforts.
21899         * lib/sys_wait.in.h: Likewise.
21900
21901         fdutimensat: remove bogus dependency
21902         * modules/fdutimensat (Depends-on): Drop inline.
21903
21904         unistd: fix typo
21905         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
21906
21907 2009-12-30  Bruno Haible  <bruno@clisp.org>
21908
21909         Fix compilation error with Solaris cc.
21910         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
21911         * lib/unicase/u16-is-invariant.c: Likewise.
21912         * lib/unicase/u32-is-invariant.c: Likewise.
21913         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
21914
21915 2009-12-30  Bruno Haible  <bruno@clisp.org>
21916
21917         Fix test crash.
21918         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
21919         locales.
21920         Reported by Simon Josefsson <simon@josefsson.org>.
21921
21922 2009-12-30  Bruno Haible  <bruno@clisp.org>
21923
21924         Fix compilation error on most platforms.
21925         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
21926         Reported by Simon Josefsson <simon@josefsson.org>
21927         and Nelson H. F. Beebe <beebe@math.utah.edu>.
21928
21929 2009-12-30  Eric Blake  <ebb9@byu.net>
21930
21931         futimens, utimensat: work around ntfs-3g bug
21932         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
21933         a ctime bug is present, and expand workaround to cover ntfs-3g.
21934         * lib/utimens.c (fdutimens, lutimens): Likewise.
21935         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
21936         (validate_timespec): Adjust return value.
21937         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
21938         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21939         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
21940
21941 2009-12-29  Eric Blake  <ebb9@byu.net>
21942
21943         link-warning: make usage consistent
21944         * modules/ctype (Depends-on): Add link-warning.
21945         (Makefile.am): Update rules accordingly.
21946         * modules/langinfo (Depends-on, Makefile.am): Likewise.
21947         * modules/locale (Depends-on, Makefile.am): Likewise.
21948         * modules/sys_file (Makefile.am): Likewise.
21949         * modules/getopt-posix (Makefile.am): Delete unused link warning
21950         efforts.
21951         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
21952         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
21953         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
21954         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
21955
21956         stdio: remove unused variables
21957         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
21958         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
21959         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21960
21961         tests: test more substitute headers
21962         * modules/ctype-tests: New file.
21963         * modules/dirent-tests: Likewise.
21964         * modules/spawn-tests: Likewise.
21965         * modules/sys_file-tests: Likewise.
21966         * modules/sys_ioctl-tests: Likewise.
21967         * modules/sys_wait-tests: Likewise.
21968         * tests/test-ctype.c: Likewise.
21969         * tests/test-dirent.c: Likewise.
21970         * tests/test-spawn.c: Likewise.
21971         * tests/test-sys_file.c: Likewise.
21972         * tests/test-sys_ioctl.c: Likewise.
21973         * tests/test-sys_wait.c: Likewise.
21974         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
21975         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
21976         whether or not flock is in use.
21977
21978         tests: remove License section from module
21979         * modules/arpa_inet-tests: Remove unneeded section.
21980         * modules/byteswap-tests: Likewise.
21981         * modules/ceilf-tests: Likewise.
21982         * modules/ceill-tests: Likewise.
21983         * modules/crypto/des-tests: Likewise.
21984         * modules/crypto/gc-arcfour-tests: Likewise.
21985         * modules/crypto/gc-arctwo-tests: Likewise.
21986         * modules/crypto/gc-des-tests: Likewise.
21987         * modules/crypto/gc-hmac-md5-tests: Likewise.
21988         * modules/crypto/gc-hmac-sha1-tests: Likewise.
21989         * modules/crypto/gc-md2-tests: Likewise.
21990         * modules/crypto/gc-md4-tests: Likewise.
21991         * modules/crypto/gc-md5-tests: Likewise.
21992         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
21993         * modules/crypto/gc-rijndael-tests: Likewise.
21994         * modules/crypto/gc-sha1-tests: Likewise.
21995         * modules/crypto/gc-tests: Likewise.
21996         * modules/crypto/md2-tests: Likewise.
21997         * modules/crypto/md4-tests: Likewise.
21998         * modules/fcntl-h-tests: Likewise.
21999         * modules/floorf-tests: Likewise.
22000         * modules/floorl-tests: Likewise.
22001         * modules/frexp-nolibm-tests: Likewise.
22002         * modules/frexp-tests: Likewise.
22003         * modules/frexpl-nolibm-tests: Likewise.
22004         * modules/frexpl-tests: Likewise.
22005         * modules/getaddrinfo-tests: Likewise.
22006         * modules/inttypes-tests: Likewise.
22007         * modules/isfinite-tests: Likewise.
22008         * modules/isinf-tests: Likewise.
22009         * modules/ldexpl-tests: Likewise.
22010         * modules/locale-tests: Likewise.
22011         * modules/math-tests: Likewise.
22012         * modules/netdb-tests: Likewise.
22013         * modules/netinet_in-tests: Likewise.
22014         * modules/printf-frexp-tests: Likewise.
22015         * modules/printf-frexpl-tests: Likewise.
22016         * modules/priv-set-tests: Likewise.
22017         * modules/random_r-tests: Likewise.
22018         * modules/round-tests: Likewise.
22019         * modules/roundf-tests: Likewise.
22020         * modules/roundl-tests: Likewise.
22021         * modules/search-tests: Likewise.
22022         * modules/select-tests: Likewise.
22023         * modules/signal-tests: Likewise.
22024         * modules/stdbool-tests: Likewise.
22025         * modules/stddef-tests: Likewise.
22026         * modules/stdint-tests: Likewise.
22027         * modules/stdio-tests: Likewise.
22028         * modules/stdlib-tests: Likewise.
22029         * modules/string-tests: Likewise.
22030         * modules/strings-tests: Likewise.
22031         * modules/sys_select-tests: Likewise.
22032         * modules/sys_socket-tests: Likewise.
22033         * modules/sys_stat-tests: Likewise.
22034         * modules/sys_time-tests: Likewise.
22035         * modules/sys_utsname-tests: Likewise.
22036         * modules/sysexits-tests: Likewise.
22037         * modules/time-tests: Likewise.
22038         * modules/trunc-tests: Likewise.
22039         * modules/truncf-tests: Likewise.
22040         * modules/truncl-tests: Likewise.
22041         * modules/tsearch-tests: Likewise.
22042         * modules/unistd-tests: Likewise.
22043         * modules/wchar-tests: Likewise.
22044         * modules/wctype-tests: Likewise.
22045
22046         tests: fix license on several tests
22047         * tests/test-des.c: Update to GPLv3+.
22048         * tests/test-flock.c: Likewise.
22049         * tests/test-fsync.c: Likewise.
22050         * tests/test-futimens.h: Likewise.
22051         * tests/test-gc-arcfour.c: Likewise.
22052         * tests/test-gc-arctwo.c: Likewise.
22053         * tests/test-gc-des.c: Likewise.
22054         * tests/test-gc-hmac-md5.c: Likewise.
22055         * tests/test-gc-hmac-sha1.c: Likewise.
22056         * tests/test-gc-md2.c: Likewise.
22057         * tests/test-gc-md4.c: Likewise.
22058         * tests/test-gc-md5.c: Likewise.
22059         * tests/test-gc-pbkdf2-sha1.c: Likewise.
22060         * tests/test-gc-rijndael.c: Likewise.
22061         * tests/test-gc-sha1.c: Likewise.
22062         * tests/test-gc.c: Likewise.
22063         * tests/test-getcwd.c: Likewise.
22064         * tests/test-link.c: Likewise.
22065         * tests/test-link.h: Likewise.
22066         * tests/test-lutimens.h: Likewise.
22067         * tests/test-md2.c: Likewise.
22068         * tests/test-md4.c: Likewise.
22069         * tests/test-mkdir.h: Likewise.
22070         * tests/test-rename.c: Likewise.
22071         * tests/test-rename.h: Likewise.
22072         * tests/test-safe-alloc.c: Likewise.
22073         * tests/test-utimens-common.h: Likewise.
22074         * tests/test-utimens.h: Likewise.
22075
22076         maint: sync license texts
22077         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
22078         * doc/gpl-3.0.texi: Revert copyright year update.
22079         * doc/lgpl-3.0.texi: Likewise.
22080
22081 2009-12-29  Jim Meyering  <meyering@redhat.com>
22082
22083         update nearly all FSF copyright year lists to include 2009
22084         The files named by the following are exempted:
22085             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
22086               test -f "$dst" && { echo "$dst"; continue; }
22087               test -d "$dst" || continue
22088               echo "$dst"/$(basename "$src")
22089             done > exempt
22090             git ls-files tests/unictype >> exempt
22091         In the remaining files, convert to all-interval notation if
22092         - there is already at least one year interval like 2000-2003
22093         - the file is maintained by me
22094         - the file is in lib/uni*/, where that style already prevails
22095         Otherwise, use update-copyright's default.
22096
22097 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22098         and Eric Blake  <ebb9@byu.net>
22099
22100         tests: don't require debug system() to pass
22101         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
22102         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22103         * tests/test-unlink.h (test_unlink_func): Likewise.
22104         * tests/test-fstatat.c (main): ...into callers.
22105         * tests/test-lstat.c (main): Likewise.
22106         * tests/test-rmdir.c (main): Likewise.
22107         * tests/test-unlink.c (main): Likewise.
22108         * tests/test-unlinkat.c (main): Likewise.
22109         * tests/test-areadlink-with-size.c (main): Don't require a
22110         debug-only system call to pass, aiding cross-testing to mingw.
22111         * tests/test-areadlink.c (main): Likewise.
22112         * tests/test-areadlinkat-with-size.c (main): Likewise.
22113         * tests/test-areadlinkat.c (main): Likewise.
22114         * tests/test-canonicalize-lgpl.c (main): Likewise.
22115         * tests/test-canonicalize.c (main): Likewise.
22116         * tests/test-chown.c (main): Likewise.
22117         * tests/test-fchownat.c (main): Likewise.
22118         * tests/test-lchown.c (main): Likewise.
22119         * tests/test-fdutimensat.c (main): Likewise.
22120         * tests/test-futimens.c (main): Likewise.
22121         * tests/test-link.c (main): Likewise.
22122         * tests/test-linkat.c (main): Likewise.
22123         * tests/test-mkdir.c (main): Likewise.
22124         * tests/test-mkdirat.c (main): Likewise.
22125         * tests/test-mkfifo.c (main): Likewise.
22126         * tests/test-mkfifoat.c (main): Likewise.
22127         * tests/test-mknod.c (main): Likewise.
22128         * tests/test-readlink.c (main): Likewise.
22129         * tests/test-remove.c (main): Likewise.
22130         * tests/test-rename.c (main): Likewise.
22131         * tests/test-renameat.c (main): Likewise.
22132         * tests/test-symlink.c (main): Likewise.
22133         * tests/test-symlinkat.c (main): Likewise.
22134         * tests/test-utimens.c (main): Likewise.
22135         * tests/test-utimensat.c (main): Likewise.
22136
22137 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22138
22139         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
22140         on $(UNUSED_PARAMETER_H) to avoid build failure.
22141
22142 2009-12-28  Jim Meyering  <meyering@redhat.com>
22143
22144         update-copyright: you may specify a max. line length other than 72
22145         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
22146
22147         maint: use consistent FSF copyright line syntax
22148         * lib/posixtm.c: Add missing comma in FSF copyright line.
22149         * lib/posixtm.h: Likewise.
22150         * lib/getugroups.c: Add missing ", Inc.".
22151
22152         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
22153         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
22154         FSF copyright line.  Remove trailing blanks.
22155
22156 2009-12-28  Eric Blake  <ebb9@byu.net>
22157
22158         test-dup2: reduce dependencies
22159         * modules/cloexec (Configure.ac): Set witness.
22160         * modules/dup2-tests (Depends-on): Drop cloexec.
22161         * tests/test-dup2.c (main): Skip portion of test if cloexec module
22162         not present.
22163         Suggested by Bruno Haible.
22164
22165 2009-12-26  Bruno Haible  <bruno@clisp.org>
22166
22167         Remove an unneeded dependency.
22168         * modules/fseterr (Depends-on): Remove dup2.
22169
22170 2009-12-26  Eric Blake  <ebb9@byu.net>
22171
22172         tests: use macros.h in more places
22173         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
22174         (ASSERT_STREAM): Provide default of stderr.
22175         * tests/test-dirent-safer.c: Include macros.h, using alternate
22176         stream for assertions.
22177         * tests/test-dup-safer.c: Likewise.
22178         * tests/test-freopen-safer.c: Likewise.
22179         * tests/test-getopt.c: Likewise.
22180         * tests/test-openat-safer.c: Likewise.
22181         * tests/test-pipe.c: Likewise.
22182         * tests/test-popen-safer.c: Likewise.
22183         * modules/dirent-safer-tests (Files): Include macros.h.
22184         * modules/unistd-safer-tests (Files): Likewise.
22185         * modules/freopen-safer-tests (Files): Likewise.
22186         * modules/getopt-posix-tests (Files): Likewise.
22187         * modules/openat-safer-tests (Files): Likewise.
22188         * modules/pipe-tests (Files): Likewise.
22189
22190 2009-12-26  Bruno Haible  <bruno@clisp.org>
22191
22192         javacomp: Portability fix.
22193         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
22194         that it also works on Solaris.
22195
22196 2009-12-26  Bruno Haible  <bruno@clisp.org>
22197
22198         localename: Fix storage allocation of gl_locale_name_thread's result.
22199         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
22200         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
22201         all platforms that have 'uselocale'.
22202         (gl_locale_name_thread_unsafe): New function, extracted from
22203         gl_locale_name_thread.
22204         (gl_locale_name_thread): Call struniq on all platforms that have
22205         'uselocale'.
22206         * tests/test-localename.c (test_locale_name_thread): Check that the
22207         resulting strings are permanently allocated.
22208         * modules/localename-tests (Depends-on): Add strdup.
22209
22210 2009-12-26  Bruno Haible  <bruno@clisp.org>
22211
22212         * tests/test-localename.c (categories): Fill in the strings.
22213
22214 2009-12-26  Jim Meyering  <meyering@redhat.com>
22215
22216         isdir: complete the removal of m4/isdir.m4
22217         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
22218
22219         isdir: clean up, since at least grep still uses it
22220         * lib/isdir.c: Include "isdir.h".
22221         (S_ISDIR): Remove now-unneeded definition.
22222         * modules/isdir (Files): Add lib/isdir.h.
22223         * lib/isdir.h: New file, with declaration.
22224         * m4/isdir.m4: Remove file -- unneeded.
22225
22226 2009-12-25  Bruno Haible  <bruno@clisp.org>
22227
22228         selinux-h: Make generated .h files standalone.
22229         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
22230         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
22231         * lib/se-selinux.in.h: Likewise.
22232         * modules/selinux-h (Depends-on): Add unused-parameter.
22233         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
22234         selinux/selinux.h and selinux/context.h.
22235         Suggested by Eric Blake.
22236
22237 2009-12-25  Bruno Haible  <bruno@clisp.org>
22238
22239         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
22240         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
22241         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
22242         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
22243         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
22244
22245 2009-12-24  Bruno Haible  <bruno@clisp.org>
22246
22247         openat: Fix warning.
22248         * lib/openat-proc.c: Include <unistd.h>.
22249
22250 2009-12-24  Bruno Haible  <bruno@clisp.org>
22251
22252         New module 'unused-parameter'.
22253         * build-aux/unused-parameter.h: New file, extracted from earlier
22254         gnulib-common.m4.
22255         * modules/unused-parameter: New file.
22256         * lib/unistr.h: Include unused-parameter.h.
22257         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
22258         _GL_UNUSED.
22259         * modules/unistr/base (Depends-on): Add unused-parameter.
22260
22261 2009-12-24  Bruno Haible  <bruno@clisp.org>
22262
22263         Add missing dependencies to 'extensions' module.
22264         * m4/extensions.m4: Add comment.
22265         * modules/accept4 (Depends-on): Add extensions.
22266         * modules/dup3 (Depends-on): Likewise.
22267         * modules/fcntl (Depends-on): Likewise.
22268         * modules/futimens (Depends-on): Likewise.
22269         * modules/mknod (Depends-on): Likewise.
22270         * modules/pipe2 (Depends-on): Likewise.
22271         * modules/stat-time (Depends-on): Likewise.
22272         * modules/strcasestr-simple (Depends-on): Likewise.
22273         * modules/strsignal (Depends-on): Likewise.
22274         * modules/utimensat (Depends-on): Likewise.
22275         * modules/localcharset (Depends-on): Likewise. Needed because of
22276         gl_FCNTL_O_FLAGS.
22277         * modules/wcrtomb (Depends-on): Likewise. Needed because of
22278         AC_TYPE_MBSTATE_T.
22279         * modules/wcsnrtombs (Depends-on): Likewise.
22280         * modules/wcsrtombs (Depends-on): Likewise.
22281
22282 2009-12-24  Bruno Haible  <bruno@clisp.org>
22283
22284         binary-io: Avoid gcc warning due to SET_BINARY.
22285         * lib/binary-io.h (SET_BINARY): Cast the result to void.
22286         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
22287
22288 2009-12-24  Bruno Haible  <bruno@clisp.org>
22289
22290         Avoid future namespace pollution on glibc systems.
22291         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
22292         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
22293         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
22294         glibc systems.
22295
22296 2009-12-24  Bruno Haible  <bruno@clisp.org>
22297
22298         Refactor common macros used in tests.
22299         * tests/macros.h: New file.
22300         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
22301         and/or <stdlib.h>, if appropriate.
22302         (ASSERT, SIZEOF): Remove macros.
22303         * tests/test-areadlink-with-size.c: Likewise.
22304         * tests/test-areadlinkat.c: Likewise.
22305         * tests/test-areadlinkat-with-size.c: Likewise.
22306         * tests/test-argmatch.c: Likewise.
22307         * tests/test-argv-iter.c: Likewise.
22308         * tests/test-array-mergesort.c: Likewise.
22309         * tests/test-array_list.c: Likewise.
22310         * tests/test-array_oset.c: Likewise.
22311         * tests/test-avltree_list.c: Likewise.
22312         * tests/test-avltree_oset.c: Likewise.
22313         * tests/test-avltreehash_list.c: Likewise.
22314         * tests/test-base64.c: Likewise.
22315         * tests/test-binary-io.c: Likewise.
22316         * tests/test-bitrotate.c: Likewise.
22317         * tests/test-btowc.c: Likewise.
22318         * tests/test-byteswap.c: Likewise.
22319         * tests/test-c-ctype.c: Likewise.
22320         * tests/test-c-stack.c: Likewise.
22321         * tests/test-c-strcasecmp.c: Likewise.
22322         * tests/test-c-strcasestr.c: Likewise.
22323         * tests/test-c-strncasecmp.c: Likewise.
22324         * tests/test-c-strstr.c: Likewise.
22325         * tests/test-canonicalize-lgpl.c: Likewise.
22326         * tests/test-canonicalize.c: Likewise.
22327         * tests/test-carray_list.c: Likewise.
22328         * tests/test-ceilf1.c: Likewise.
22329         * tests/test-ceilf2.c: Likewise.
22330         * tests/test-ceill.c: Likewise.
22331         * tests/test-chown.c: Likewise.
22332         * tests/test-cloexec.c: Likewise.
22333         * tests/test-copy-acl.c: Likewise.
22334         * tests/test-copy-file.c: Likewise.
22335         * tests/test-count-one-bits.c: Likewise.
22336         * tests/test-dprintf-posix.c: Likewise.
22337         * tests/test-dup2.c: Likewise.
22338         * tests/test-dup3.c: Likewise.
22339         * tests/test-duplocale.c: Likewise.
22340         * tests/test-fbufmode.c: Likewise.
22341         * tests/test-fchdir.c: Likewise.
22342         * tests/test-fchownat.c: Likewise.
22343         * tests/test-fcntl-safer.c: Likewise.
22344         * tests/test-fcntl.c: Likewise.
22345         * tests/test-fdopendir.c: Likewise.
22346         * tests/test-fdutimensat.c: Likewise.
22347         * tests/test-fflush2.c: Likewise.
22348         * tests/test-file-has-acl.c: Likewise.
22349         * tests/test-filevercmp.c: Likewise.
22350         * tests/test-flock.c: Likewise.
22351         * tests/test-floorf1.c: Likewise.
22352         * tests/test-floorf2.c: Likewise.
22353         * tests/test-floorl.c: Likewise.
22354         * tests/test-fnmatch.c: Likewise.
22355         * tests/test-fopen.h: Likewise.
22356         * tests/test-fpending.c: Likewise.
22357         * tests/test-fprintf-posix.c: Likewise.
22358         * tests/test-fpurge.c: Likewise.
22359         * tests/test-freadable.c: Likewise.
22360         * tests/test-freadahead.c: Likewise.
22361         * tests/test-freading.c: Likewise.
22362         * tests/test-freadptr.c: Likewise.
22363         * tests/test-freadptr2.c: Likewise.
22364         * tests/test-freadseek.c: Likewise.
22365         * tests/test-freopen.c: Likewise.
22366         * tests/test-frexp.c: Likewise.
22367         * tests/test-frexpl.c: Likewise.
22368         * tests/test-fseek.c: Likewise.
22369         * tests/test-fseeko.c: Likewise.
22370         * tests/test-fstatat.c: Likewise.
22371         * tests/test-fstrcmp.c: Likewise.
22372         * tests/test-fsync.c: Likewise.
22373         * tests/test-ftell.c: Likewise.
22374         * tests/test-ftello.c: Likewise.
22375         * tests/test-func.c: Likewise.
22376         * tests/test-futimens.c: Likewise.
22377         * tests/test-fwritable.c: Likewise.
22378         * tests/test-fwriting.c: Likewise.
22379         * tests/test-getcwd.c: Likewise.
22380         * tests/test-getdate.c: Likewise.
22381         * tests/test-getdelim.c: Likewise.
22382         * tests/test-getdtablesize.c: Likewise.
22383         * tests/test-getgroups.c: Likewise.
22384         * tests/test-getline.c: Likewise.
22385         * tests/test-getndelim2.c: Likewise.
22386         * tests/test-glob.c: Likewise.
22387         * tests/test-hash.c: Likewise.
22388         * tests/test-i-ring.c: Likewise.
22389         * tests/test-iconv-utf.c: Likewise.
22390         * tests/test-iconv.c: Likewise.
22391         * tests/test-idpriv-drop.c: Likewise.
22392         * tests/test-idpriv-droptemp.c: Likewise.
22393         * tests/test-inet_ntop.c: Likewise.
22394         * tests/test-inet_pton.c: Likewise.
22395         * tests/test-isblank.c: Likewise.
22396         * tests/test-isfinite.c: Likewise.
22397         * tests/test-isinf.c: Likewise.
22398         * tests/test-isnan.c: Likewise.
22399         * tests/test-isnand.h: Likewise.
22400         * tests/test-isnanf.h: Likewise.
22401         * tests/test-isnanl.h: Likewise.
22402         * tests/test-lchown.c: Likewise.
22403         * tests/test-ldexpl.c: Likewise.
22404         * tests/test-link.c: Likewise.
22405         * tests/test-linkat.c: Likewise.
22406         * tests/test-linked_list.c: Likewise.
22407         * tests/test-linkedhash_list.c: Likewise.
22408         * tests/test-localename.c: Likewise.
22409         * tests/test-lseek.c: Likewise.
22410         * tests/test-lstat.c: Likewise.
22411         * tests/test-mbmemcasecmp.c: Likewise.
22412         * tests/test-mbmemcasecoll.c: Likewise.
22413         * tests/test-mbrtowc.c: Likewise.
22414         * tests/test-mbscasecmp.c: Likewise.
22415         * tests/test-mbscasestr1.c: Likewise.
22416         * tests/test-mbscasestr2.c: Likewise.
22417         * tests/test-mbscasestr3.c: Likewise.
22418         * tests/test-mbscasestr4.c: Likewise.
22419         * tests/test-mbschr.c: Likewise.
22420         * tests/test-mbscspn.c: Likewise.
22421         * tests/test-mbsinit.c: Likewise.
22422         * tests/test-mbsncasecmp.c: Likewise.
22423         * tests/test-mbsnrtowcs.c: Likewise.
22424         * tests/test-mbspbrk.c: Likewise.
22425         * tests/test-mbspcasecmp.c: Likewise.
22426         * tests/test-mbsrchr.c: Likewise.
22427         * tests/test-mbsrtowcs.c: Likewise.
22428         * tests/test-mbsspn.c: Likewise.
22429         * tests/test-mbsstr1.c: Likewise.
22430         * tests/test-mbsstr2.c: Likewise.
22431         * tests/test-mbsstr3.c: Likewise.
22432         * tests/test-memchr.c: Likewise.
22433         * tests/test-memchr2.c: Likewise.
22434         * tests/test-memcmp.c: Likewise.
22435         * tests/test-memmem.c: Likewise.
22436         * tests/test-memrchr.c: Likewise.
22437         * tests/test-mkdir.c: Likewise.
22438         * tests/test-mkdirat.c: Likewise.
22439         * tests/test-mkfifo.c: Likewise.
22440         * tests/test-mkfifoat.c: Likewise.
22441         * tests/test-mknod.c: Likewise.
22442         * tests/test-nanosleep.c: Likewise.
22443         * tests/test-nl_langinfo.c: Likewise.
22444         * tests/test-obstack-printf.c: Likewise.
22445         * tests/test-open.c: Likewise.
22446         * tests/test-openat.c: Likewise.
22447         * tests/test-pipe-filter-gi1.c: Likewise.
22448         * tests/test-pipe-filter-gi2-main.c: Likewise.
22449         * tests/test-pipe-filter-ii1.c: Likewise.
22450         * tests/test-pipe-filter-ii2-main.c: Likewise.
22451         * tests/test-pipe2.c: Likewise.
22452         * tests/test-popen.h: Likewise.
22453         * tests/test-posixtm.c: Likewise.
22454         * tests/test-pread.c: Likewise.
22455         * tests/test-printf-frexp.c: Likewise.
22456         * tests/test-printf-frexpl.c: Likewise.
22457         * tests/test-printf-posix.c: Likewise.
22458         * tests/test-priv-set.c: Likewise.
22459         * tests/test-quotearg.c: Likewise.
22460         * tests/test-random_r.c: Likewise.
22461         * tests/test-rawmemchr.c: Likewise.
22462         * tests/test-rbtree_list.c: Likewise.
22463         * tests/test-rbtree_oset.c: Likewise.
22464         * tests/test-rbtreehash_list.c: Likewise.
22465         * tests/test-readlink.c: Likewise.
22466         * tests/test-remove.c: Likewise.
22467         * tests/test-rename.c: Likewise.
22468         * tests/test-renameat.c: Likewise.
22469         * tests/test-rmdir.c: Likewise.
22470         * tests/test-round1.c: Likewise.
22471         * tests/test-roundf1.c: Likewise.
22472         * tests/test-roundl.c: Likewise.
22473         * tests/test-safe-alloc.c: Likewise.
22474         * tests/test-sameacls.c: Likewise.
22475         * tests/test-set-mode-acl.c: Likewise.
22476         * tests/test-setenv.c: Likewise.
22477         * tests/test-sigaction.c: Likewise.
22478         * tests/test-signbit.c: Likewise.
22479         * tests/test-sleep.c: Likewise.
22480         * tests/test-snprintf-posix.c: Likewise.
22481         * tests/test-snprintf.c: Likewise.
22482         * tests/test-sprintf-posix.c: Likewise.
22483         * tests/test-stat-time.c: Likewise.
22484         * tests/test-stat.c: Likewise.
22485         * tests/test-strcasestr.c: Likewise.
22486         * tests/test-strchrnul.c: Likewise.
22487         * tests/test-strerror.c: Likewise.
22488         * tests/test-striconv.c: Likewise.
22489         * tests/test-striconveh.c: Likewise.
22490         * tests/test-striconveha.c: Likewise.
22491         * tests/test-strsignal.c: Likewise.
22492         * tests/test-strstr.c: Likewise.
22493         * tests/test-strtod.c: Likewise.
22494         * tests/test-strverscmp.c: Likewise.
22495         * tests/test-symlink.c: Likewise.
22496         * tests/test-symlinkat.c: Likewise.
22497         * tests/test-trunc1.c: Likewise.
22498         * tests/test-trunc2.c: Likewise.
22499         * tests/test-truncf1.c: Likewise.
22500         * tests/test-truncf2.c: Likewise.
22501         * tests/test-truncl.c: Likewise.
22502         * tests/test-uname.c: Likewise.
22503         * tests/test-unlink.c: Likewise.
22504         * tests/test-unlinkat.c: Likewise.
22505         * tests/test-unsetenv.c: Likewise.
22506         * tests/test-usleep.c: Likewise.
22507         * tests/test-utimens.c: Likewise.
22508         * tests/test-utimensat.c: Likewise.
22509         * tests/test-vasnprintf-posix.c: Likewise.
22510         * tests/test-vasnprintf-posix2.c: Likewise.
22511         * tests/test-vasnprintf.c: Likewise.
22512         * tests/test-vasprintf-posix.c: Likewise.
22513         * tests/test-vasprintf.c: Likewise.
22514         * tests/test-vdprintf-posix.c: Likewise.
22515         * tests/test-vfprintf-posix.c: Likewise.
22516         * tests/test-vprintf-posix.c: Likewise.
22517         * tests/test-vsnprintf-posix.c: Likewise.
22518         * tests/test-vsnprintf.c: Likewise.
22519         * tests/test-vsprintf-posix.c: Likewise.
22520         * tests/test-wcrtomb.c: Likewise.
22521         * tests/test-wcsnrtombs.c: Likewise.
22522         * tests/test-wcsrtombs.c: Likewise.
22523         * tests/test-wctype.c: Likewise.
22524         * tests/test-wcwidth.c: Likewise.
22525         * tests/test-xfprintf-posix.c: Likewise.
22526         * tests/test-xmemdup0.c: Likewise.
22527         * tests/test-xprintf-posix.c: Likewise.
22528         * tests/test-xvasprintf.c: Likewise.
22529         * tests/unicase/test-locale-language.c: Likewise.
22530         * tests/unicase/test-mapping-part1.h: Likewise.
22531         * tests/unicase/test-predicate-part1.h: Likewise.
22532         * tests/unicase/test-u8-casecmp.c: Likewise.
22533         * tests/unicase/test-u8-casecoll.c: Likewise.
22534         * tests/unicase/test-u8-casefold.c: Likewise.
22535         * tests/unicase/test-u8-is-cased.c: Likewise.
22536         * tests/unicase/test-u8-is-casefolded.c: Likewise.
22537         * tests/unicase/test-u8-is-lowercase.c: Likewise.
22538         * tests/unicase/test-u8-is-titlecase.c: Likewise.
22539         * tests/unicase/test-u8-is-uppercase.c: Likewise.
22540         * tests/unicase/test-u8-tolower.c: Likewise.
22541         * tests/unicase/test-u8-totitle.c: Likewise.
22542         * tests/unicase/test-u8-toupper.c: Likewise.
22543         * tests/unicase/test-u16-casecmp.c: Likewise.
22544         * tests/unicase/test-u16-casecoll.c: Likewise.
22545         * tests/unicase/test-u16-casefold.c: Likewise.
22546         * tests/unicase/test-u16-is-cased.c: Likewise.
22547         * tests/unicase/test-u16-is-casefolded.c: Likewise.
22548         * tests/unicase/test-u16-is-lowercase.c: Likewise.
22549         * tests/unicase/test-u16-is-titlecase.c: Likewise.
22550         * tests/unicase/test-u16-is-uppercase.c: Likewise.
22551         * tests/unicase/test-u16-tolower.c: Likewise.
22552         * tests/unicase/test-u16-totitle.c: Likewise.
22553         * tests/unicase/test-u16-toupper.c: Likewise.
22554         * tests/unicase/test-u32-casecmp.c: Likewise.
22555         * tests/unicase/test-u32-casecoll.c: Likewise.
22556         * tests/unicase/test-u32-casefold.c: Likewise.
22557         * tests/unicase/test-u32-is-cased.c: Likewise.
22558         * tests/unicase/test-u32-is-casefolded.c: Likewise.
22559         * tests/unicase/test-u32-is-lowercase.c: Likewise.
22560         * tests/unicase/test-u32-is-titlecase.c: Likewise.
22561         * tests/unicase/test-u32-is-uppercase.c: Likewise.
22562         * tests/unicase/test-u32-tolower.c: Likewise.
22563         * tests/unicase/test-u32-totitle.c: Likewise.
22564         * tests/unicase/test-u32-toupper.c: Likewise.
22565         * tests/unicase/test-ulc-casecmp.c: Likewise.
22566         * tests/unicase/test-ulc-casecoll.c: Likewise.
22567         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
22568         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
22569         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
22570         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
22571         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
22572         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
22573         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
22574         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
22575         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
22576         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
22577         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
22578         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
22579         * tests/unictype/test-bidi_byname.c: Likewise.
22580         * tests/unictype/test-bidi_name.c: Likewise.
22581         * tests/unictype/test-bidi_of.c: Likewise.
22582         * tests/unictype/test-bidi_test.c: Likewise.
22583         * tests/unictype/test-block_list.c: Likewise.
22584         * tests/unictype/test-block_of.c: Likewise.
22585         * tests/unictype/test-block_test.c: Likewise.
22586         * tests/unictype/test-categ_and.c: Likewise.
22587         * tests/unictype/test-categ_and_not.c: Likewise.
22588         * tests/unictype/test-categ_byname.c: Likewise.
22589         * tests/unictype/test-categ_name.c: Likewise.
22590         * tests/unictype/test-categ_none.c: Likewise.
22591         * tests/unictype/test-categ_of.c: Likewise.
22592         * tests/unictype/test-categ_or.c: Likewise.
22593         * tests/unictype/test-categ_test_withtable.c: Likewise.
22594         * tests/unictype/test-combining.c: Likewise.
22595         * tests/unictype/test-decdigit.c: Likewise.
22596         * tests/unictype/test-digit.c: Likewise.
22597         * tests/unictype/test-mirror.c: Likewise.
22598         * tests/unictype/test-numeric.c: Likewise.
22599         * tests/unictype/test-pr_byname.c: Likewise.
22600         * tests/unictype/test-pr_test.c: Likewise.
22601         * tests/unictype/test-predicate-part1.h: Likewise.
22602         * tests/unictype/test-scripts.c: Likewise.
22603         * tests/unictype/test-sy_c_ident.c: Likewise.
22604         * tests/unictype/test-sy_java_ident.c: Likewise.
22605         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
22606         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
22607         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
22608         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
22609         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
22610         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
22611         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
22612         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
22613         * tests/uninorm/test-canonical-decomposition.c: Likewise.
22614         * tests/uninorm/test-compat-decomposition.c: Likewise.
22615         * tests/uninorm/test-composition.c: Likewise.
22616         * tests/uninorm/test-decomposing-form.c: Likewise.
22617         * tests/uninorm/test-decomposition.c: Likewise.
22618         * tests/uninorm/test-u8-nfc.c: Likewise.
22619         * tests/uninorm/test-u8-nfd.c: Likewise.
22620         * tests/uninorm/test-u8-nfkc.c: Likewise.
22621         * tests/uninorm/test-u8-nfkd.c: Likewise.
22622         * tests/uninorm/test-u8-normcmp.c: Likewise.
22623         * tests/uninorm/test-u8-normcoll.c: Likewise.
22624         * tests/uninorm/test-u16-nfc.c: Likewise.
22625         * tests/uninorm/test-u16-nfd.c: Likewise.
22626         * tests/uninorm/test-u16-nfkc.c: Likewise.
22627         * tests/uninorm/test-u16-nfkd.c: Likewise.
22628         * tests/uninorm/test-u16-normcmp.c: Likewise.
22629         * tests/uninorm/test-u16-normcoll.c: Likewise.
22630         * tests/uninorm/test-u32-nfc.c: Likewise.
22631         * tests/uninorm/test-u32-nfd.c: Likewise.
22632         * tests/uninorm/test-u32-nfkc.c: Likewise.
22633         * tests/uninorm/test-u32-nfkd.c: Likewise.
22634         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22635         * tests/uninorm/test-u32-normcmp.c: Likewise.
22636         * tests/uninorm/test-u32-normcoll.c: Likewise.
22637         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
22638         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
22639         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
22640         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
22641         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
22642         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
22643         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
22644         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
22645         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
22646         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
22647         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
22648         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
22649         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
22650         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
22651         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
22652         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
22653         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
22654         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
22655         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
22656         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
22657         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
22658         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
22659         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
22660         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
22661         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
22662         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
22663         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
22664         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
22665         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
22666         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
22667         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
22668         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
22669         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
22670         * tests/uniwidth/test-u8-strwidth.c: Likewise.
22671         * tests/uniwidth/test-u8-width.c: Likewise.
22672         * tests/uniwidth/test-u16-strwidth.c: Likewise.
22673         * tests/uniwidth/test-u16-width.c: Likewise.
22674         * tests/uniwidth/test-u32-strwidth.c: Likewise.
22675         * tests/uniwidth/test-u32-width.c: Likewise.
22676         * tests/uniwidth/test-uc_width.c: Likewise.
22677         * tests/uniwidth/test-uc_width2.c: Likewise.
22678         * modules/acl-tests (Files): Add tests/macros.h.
22679         * modules/areadlink-tests (Files): Likewise.
22680         * modules/areadlink-with-size-tests (Files): Likewise.
22681         * modules/areadlinkat-tests (Files): Likewise.
22682         * modules/areadlinkat-with-size-tests (Files): Likewise.
22683         * modules/argmatch-tests (Files): Likewise.
22684         * modules/argv-iter-tests (Files): Likewise.
22685         * modules/array-list-tests (Files): Likewise.
22686         * modules/array-mergesort-tests (Files): Likewise.
22687         * modules/array-oset-tests (Files): Likewise.
22688         * modules/avltree-list-tests (Files): Likewise.
22689         * modules/avltree-oset-tests (Files): Likewise.
22690         * modules/avltreehash-list-tests (Files): Likewise.
22691         * modules/base64-tests (Files): Likewise.
22692         * modules/binary-io-tests (Files): Likewise.
22693         * modules/bitrotate-tests (Files): Likewise.
22694         * modules/btowc-tests (Files): Likewise.
22695         * modules/byteswap-tests (Files): Likewise.
22696         * modules/c-ctype-tests (Files): Likewise.
22697         * modules/c-stack-tests (Files): Likewise.
22698         * modules/c-strcase-tests (Files): Likewise.
22699         * modules/c-strcasestr-tests (Files): Likewise.
22700         * modules/c-strstr-tests (Files): Likewise.
22701         * modules/canonicalize-lgpl-tests (Files): Likewise.
22702         * modules/canonicalize-tests (Files): Likewise.
22703         * modules/carray-list-tests (Files): Likewise.
22704         * modules/ceilf-tests (Files): Likewise.
22705         * modules/ceill-tests (Files): Likewise.
22706         * modules/chown-tests (Files): Likewise.
22707         * modules/cloexec-tests (Files): Likewise.
22708         * modules/copy-file-tests (Files): Likewise.
22709         * modules/count-one-bits-tests (Files): Likewise.
22710         * modules/dprintf-posix-tests (Files): Likewise.
22711         * modules/dup2-tests (Files): Likewise.
22712         * modules/dup3-tests (Files): Likewise.
22713         * modules/duplocale-tests (Files): Likewise.
22714         * modules/fbufmode-tests (Files): Likewise.
22715         * modules/fchdir-tests (Files): Likewise.
22716         * modules/fcntl-safer-tests (Files): Likewise.
22717         * modules/fcntl-tests (Files): Likewise.
22718         * modules/fdopendir-tests (Files): Likewise.
22719         * modules/fdutimensat-tests (Files): Likewise.
22720         * modules/fflush-tests (Files): Likewise.
22721         * modules/filevercmp-tests (Files): Likewise.
22722         * modules/flock-tests (Files): Likewise.
22723         * modules/floorf-tests (Files): Likewise.
22724         * modules/floorl-tests (Files): Likewise.
22725         * modules/fnmatch-tests (Files): Likewise.
22726         * modules/fopen-safer-tests (Files): Likewise.
22727         * modules/fopen-tests (Files): Likewise.
22728         * modules/fpending-tests (Files): Likewise.
22729         * modules/fprintf-posix-tests (Files): Likewise.
22730         * modules/fpurge-tests (Files): Likewise.
22731         * modules/freadable-tests (Files): Likewise.
22732         * modules/freadahead-tests (Files): Likewise.
22733         * modules/freading-tests (Files): Likewise.
22734         * modules/freadptr-tests (Files): Likewise.
22735         * modules/freadseek-tests (Files): Likewise.
22736         * modules/freopen-tests (Files): Likewise.
22737         * modules/frexp-nolibm-tests (Files): Likewise.
22738         * modules/frexp-tests (Files): Likewise.
22739         * modules/frexpl-nolibm-tests (Files): Likewise.
22740         * modules/frexpl-tests (Files): Likewise.
22741         * modules/fseek-tests (Files): Likewise.
22742         * modules/fseeko-tests (Files): Likewise.
22743         * modules/fstrcmp-tests (Files): Likewise.
22744         * modules/fsync-tests (Files): Likewise.
22745         * modules/ftell-tests (Files): Likewise.
22746         * modules/ftello-tests (Files): Likewise.
22747         * modules/func-tests (Files): Likewise.
22748         * modules/futimens-tests (Files): Likewise.
22749         * modules/fwritable-tests (Files): Likewise.
22750         * modules/fwriting-tests (Files): Likewise.
22751         * modules/getcwd-tests (Files): Likewise.
22752         * modules/getdate-tests (Files): Likewise.
22753         * modules/getdelim-tests (Files): Likewise.
22754         * modules/getdtablesize-tests (Files): Likewise.
22755         * modules/getgroups-tests (Files): Likewise.
22756         * modules/getline-tests (Files): Likewise.
22757         * modules/getndelim2-tests (Files): Likewise.
22758         * modules/glob-tests (Files): Likewise.
22759         * modules/hash-tests (Files): Likewise.
22760         * modules/i-ring-tests (Files): Likewise.
22761         * modules/iconv-tests (Files): Likewise.
22762         * modules/iconv_open-utf-tests (Files): Likewise.
22763         * modules/idpriv-drop-tests (Files): Likewise.
22764         * modules/idpriv-droptemp-tests (Files): Likewise.
22765         * modules/inet_ntop-tests (Files): Likewise.
22766         * modules/inet_pton-tests (Files): Likewise.
22767         * modules/isblank-tests (Files): Likewise.
22768         * modules/isfinite-tests (Files): Likewise.
22769         * modules/isinf-tests (Files): Likewise.
22770         * modules/isnan-tests (Files): Likewise.
22771         * modules/isnand-nolibm-tests (Files): Likewise.
22772         * modules/isnand-tests (Files): Likewise.
22773         * modules/isnanf-nolibm-tests (Files): Likewise.
22774         * modules/isnanf-tests (Files): Likewise.
22775         * modules/isnanl-nolibm-tests (Files): Likewise.
22776         * modules/isnanl-tests (Files): Likewise.
22777         * modules/lchown-tests (Files): Likewise.
22778         * modules/ldexpl-tests (Files): Likewise.
22779         * modules/link-tests (Files): Likewise.
22780         * modules/linkat-tests (Files): Likewise.
22781         * modules/linked-list-tests (Files): Likewise.
22782         * modules/linkedhash-list-tests (Files): Likewise.
22783         * modules/localename-tests (Files): Likewise.
22784         * modules/lseek-tests (Files): Likewise.
22785         * modules/lstat-tests (Files): Likewise.
22786         * modules/mbmemcasecmp-tests (Files): Likewise.
22787         * modules/mbmemcasecoll-tests (Files): Likewise.
22788         * modules/mbrtowc-tests (Files): Likewise.
22789         * modules/mbscasecmp-tests (Files): Likewise.
22790         * modules/mbscasestr-tests (Files): Likewise.
22791         * modules/mbschr-tests (Files): Likewise.
22792         * modules/mbscspn-tests (Files): Likewise.
22793         * modules/mbsinit-tests (Files): Likewise.
22794         * modules/mbsncasecmp-tests (Files): Likewise.
22795         * modules/mbsnrtowcs-tests (Files): Likewise.
22796         * modules/mbspbrk-tests (Files): Likewise.
22797         * modules/mbspcasecmp-tests (Files): Likewise.
22798         * modules/mbsrchr-tests (Files): Likewise.
22799         * modules/mbsrtowcs-tests (Files): Likewise.
22800         * modules/mbsspn-tests (Files): Likewise.
22801         * modules/mbsstr-tests (Files): Likewise.
22802         * modules/memchr-tests (Files): Likewise.
22803         * modules/memchr2-tests (Files): Likewise.
22804         * modules/memcmp-tests (Files): Likewise.
22805         * modules/memmem-tests (Files): Likewise.
22806         * modules/memrchr-tests (Files): Likewise.
22807         * modules/mkdir-tests (Files): Likewise.
22808         * modules/mkfifo-tests (Files): Likewise.
22809         * modules/mkfifoat-tests (Files): Likewise.
22810         * modules/mknod-tests (Files): Likewise.
22811         * modules/nanosleep-tests (Files): Likewise.
22812         * modules/nl_langinfo-tests (Files): Likewise.
22813         * modules/obstack-printf-tests (Files): Likewise.
22814         * modules/open-tests (Files): Likewise.
22815         * modules/openat-tests (Files): Likewise.
22816         * modules/pipe-filter-gi-tests (Files): Likewise.
22817         * modules/pipe-filter-ii-tests (Files): Likewise.
22818         * modules/pipe2-tests (Files): Likewise.
22819         * modules/popen-safer-tests (Files): Likewise.
22820         * modules/popen-tests (Files): Likewise.
22821         * modules/posixtm-tests (Files): Likewise.
22822         * modules/pread-tests (Files): Likewise.
22823         * modules/printf-frexp-tests (Files): Likewise.
22824         * modules/printf-frexpl-tests (Files): Likewise.
22825         * modules/printf-posix-tests (Files): Likewise.
22826         * modules/priv-set-tests (Files): Likewise.
22827         * modules/quotearg-tests (Files): Likewise.
22828         * modules/random_r-tests (Files): Likewise.
22829         * modules/rawmemchr-tests (Files): Likewise.
22830         * modules/rbtree-list-tests (Files): Likewise.
22831         * modules/rbtree-oset-tests (Files): Likewise.
22832         * modules/rbtreehash-list-tests (Files): Likewise.
22833         * modules/readlink-tests (Files): Likewise.
22834         * modules/remove-tests (Files): Likewise.
22835         * modules/rename-tests (Files): Likewise.
22836         * modules/renameat-tests (Files): Likewise.
22837         * modules/rmdir-tests (Files): Likewise.
22838         * modules/round-tests (Files): Likewise.
22839         * modules/roundf-tests (Files): Likewise.
22840         * modules/roundl-tests (Files): Likewise.
22841         * modules/safe-alloc-tests (Files): Likewise.
22842         * modules/setenv-tests (Files): Likewise.
22843         * modules/sigaction-tests (Files): Likewise.
22844         * modules/signbit-tests (Files): Likewise.
22845         * modules/sleep-tests (Files): Likewise.
22846         * modules/snprintf-posix-tests (Files): Likewise.
22847         * modules/snprintf-tests (Files): Likewise.
22848         * modules/sprintf-posix-tests (Files): Likewise.
22849         * modules/stat-tests (Files): Likewise.
22850         * modules/stat-time-tests (Files): Likewise.
22851         * modules/strcasestr-tests (Files): Likewise.
22852         * modules/strchrnul-tests (Files): Likewise.
22853         * modules/strerror-tests (Files): Likewise.
22854         * modules/striconv-tests (Files): Likewise.
22855         * modules/striconveh-tests (Files): Likewise.
22856         * modules/striconveha-tests (Files): Likewise.
22857         * modules/strsignal-tests (Files): Likewise.
22858         * modules/strstr-tests (Files): Likewise.
22859         * modules/strtod-tests (Files): Likewise.
22860         * modules/strverscmp-tests (Files): Likewise.
22861         * modules/symlink-tests (Files): Likewise.
22862         * modules/symlinkat-tests (Files): Likewise.
22863         * modules/trunc-tests (Files): Likewise.
22864         * modules/truncf-tests (Files): Likewise.
22865         * modules/truncl-tests (Files): Likewise.
22866         * modules/uname-tests (Files): Likewise.
22867         * modules/unicase/cased-tests (Files): Likewise.
22868         * modules/unicase/ignorable-tests (Files): Likewise.
22869         * modules/unicase/locale-language-tests (Files): Likewise.
22870         * modules/unicase/tolower-tests (Files): Likewise.
22871         * modules/unicase/totitle-tests (Files): Likewise.
22872         * modules/unicase/toupper-tests (Files): Likewise.
22873         * modules/unicase/u8-casecmp-tests (Files): Likewise.
22874         * modules/unicase/u8-casecoll-tests (Files): Likewise.
22875         * modules/unicase/u8-casefold-tests (Files): Likewise.
22876         * modules/unicase/u8-is-cased-tests (Files): Likewise.
22877         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
22878         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
22879         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
22880         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
22881         * modules/unicase/u8-tolower-tests (Files): Likewise.
22882         * modules/unicase/u8-totitle-tests (Files): Likewise.
22883         * modules/unicase/u8-toupper-tests (Files): Likewise.
22884         * modules/unicase/u16-casecmp-tests (Files): Likewise.
22885         * modules/unicase/u16-casecoll-tests (Files): Likewise.
22886         * modules/unicase/u16-casefold-tests (Files): Likewise.
22887         * modules/unicase/u16-is-cased-tests (Files): Likewise.
22888         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
22889         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
22890         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
22891         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
22892         * modules/unicase/u16-tolower-tests (Files): Likewise.
22893         * modules/unicase/u16-totitle-tests (Files): Likewise.
22894         * modules/unicase/u16-toupper-tests (Files): Likewise.
22895         * modules/unicase/u32-casecmp-tests (Files): Likewise.
22896         * modules/unicase/u32-casecoll-tests (Files): Likewise.
22897         * modules/unicase/u32-casefold-tests (Files): Likewise.
22898         * modules/unicase/u32-is-cased-tests (Files): Likewise.
22899         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
22900         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
22901         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
22902         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
22903         * modules/unicase/u32-tolower-tests (Files): Likewise.
22904         * modules/unicase/u32-totitle-tests (Files): Likewise.
22905         * modules/unicase/u32-toupper-tests (Files): Likewise.
22906         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
22907         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
22908         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
22909         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
22910         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
22911         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
22912         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
22913         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
22914         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
22915         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
22916         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
22917         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
22918         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
22919         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
22920         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
22921         * modules/unictype/bidicategory-name-tests (Files): Likewise.
22922         * modules/unictype/bidicategory-of-tests (Files): Likewise.
22923         * modules/unictype/bidicategory-test-tests (Files): Likewise.
22924         * modules/unictype/block-list-tests (Files): Likewise.
22925         * modules/unictype/block-of-tests (Files): Likewise.
22926         * modules/unictype/block-test-tests (Files): Likewise.
22927         * modules/unictype/category-C-tests (Files): Likewise.
22928         * modules/unictype/category-Cc-tests (Files): Likewise.
22929         * modules/unictype/category-Cf-tests (Files): Likewise.
22930         * modules/unictype/category-Cn-tests (Files): Likewise.
22931         * modules/unictype/category-Co-tests (Files): Likewise.
22932         * modules/unictype/category-Cs-tests (Files): Likewise.
22933         * modules/unictype/category-L-tests (Files): Likewise.
22934         * modules/unictype/category-Ll-tests (Files): Likewise.
22935         * modules/unictype/category-Lm-tests (Files): Likewise.
22936         * modules/unictype/category-Lo-tests (Files): Likewise.
22937         * modules/unictype/category-Lt-tests (Files): Likewise.
22938         * modules/unictype/category-Lu-tests (Files): Likewise.
22939         * modules/unictype/category-M-tests (Files): Likewise.
22940         * modules/unictype/category-Mc-tests (Files): Likewise.
22941         * modules/unictype/category-Me-tests (Files): Likewise.
22942         * modules/unictype/category-Mn-tests (Files): Likewise.
22943         * modules/unictype/category-N-tests (Files): Likewise.
22944         * modules/unictype/category-Nd-tests (Files): Likewise.
22945         * modules/unictype/category-Nl-tests (Files): Likewise.
22946         * modules/unictype/category-No-tests (Files): Likewise.
22947         * modules/unictype/category-P-tests (Files): Likewise.
22948         * modules/unictype/category-Pc-tests (Files): Likewise.
22949         * modules/unictype/category-Pd-tests (Files): Likewise.
22950         * modules/unictype/category-Pe-tests (Files): Likewise.
22951         * modules/unictype/category-Pf-tests (Files): Likewise.
22952         * modules/unictype/category-Pi-tests (Files): Likewise.
22953         * modules/unictype/category-Po-tests (Files): Likewise.
22954         * modules/unictype/category-Ps-tests (Files): Likewise.
22955         * modules/unictype/category-S-tests (Files): Likewise.
22956         * modules/unictype/category-Sc-tests (Files): Likewise.
22957         * modules/unictype/category-Sk-tests (Files): Likewise.
22958         * modules/unictype/category-Sm-tests (Files): Likewise.
22959         * modules/unictype/category-So-tests (Files): Likewise.
22960         * modules/unictype/category-Z-tests (Files): Likewise.
22961         * modules/unictype/category-Zl-tests (Files): Likewise.
22962         * modules/unictype/category-Zp-tests (Files): Likewise.
22963         * modules/unictype/category-Zs-tests (Files): Likewise.
22964         * modules/unictype/category-and-not-tests (Files): Likewise.
22965         * modules/unictype/category-and-tests (Files): Likewise.
22966         * modules/unictype/category-byname-tests (Files): Likewise.
22967         * modules/unictype/category-name-tests (Files): Likewise.
22968         * modules/unictype/category-none-tests (Files): Likewise.
22969         * modules/unictype/category-of-tests (Files): Likewise.
22970         * modules/unictype/category-or-tests (Files): Likewise.
22971         * modules/unictype/category-test-withtable-tests (Files): Likewise.
22972         * modules/unictype/combining-class-tests (Files): Likewise.
22973         * modules/unictype/ctype-alnum-tests (Files): Likewise.
22974         * modules/unictype/ctype-alpha-tests (Files): Likewise.
22975         * modules/unictype/ctype-blank-tests (Files): Likewise.
22976         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
22977         * modules/unictype/ctype-digit-tests (Files): Likewise.
22978         * modules/unictype/ctype-graph-tests (Files): Likewise.
22979         * modules/unictype/ctype-lower-tests (Files): Likewise.
22980         * modules/unictype/ctype-print-tests (Files): Likewise.
22981         * modules/unictype/ctype-punct-tests (Files): Likewise.
22982         * modules/unictype/ctype-space-tests (Files): Likewise.
22983         * modules/unictype/ctype-upper-tests (Files): Likewise.
22984         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
22985         * modules/unictype/decimal-digit-tests (Files): Likewise.
22986         * modules/unictype/digit-tests (Files): Likewise.
22987         * modules/unictype/mirror-tests (Files): Likewise.
22988         * modules/unictype/numeric-tests (Files): Likewise.
22989         * modules/unictype/property-alphabetic-tests (Files): Likewise.
22990         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
22991         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
22992         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
22993         Likewise.
22994         * modules/unictype/property-bidi-block-separator-tests (Files):
22995         Likewise.
22996         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
22997         Likewise.
22998         * modules/unictype/property-bidi-common-separator-tests (Files):
22999         Likewise.
23000         * modules/unictype/property-bidi-control-tests (Files): Likewise.
23001         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
23002         Likewise.
23003         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
23004         Likewise.
23005         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
23006         Likewise.
23007         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
23008         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
23009         Likewise.
23010         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
23011         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
23012         Likewise.
23013         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
23014         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
23015         * modules/unictype/property-bidi-segment-separator-tests (Files):
23016         Likewise.
23017         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
23018         * modules/unictype/property-byname-tests (Files): Likewise.
23019         * modules/unictype/property-combining-tests (Files): Likewise.
23020         * modules/unictype/property-composite-tests (Files): Likewise.
23021         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
23022         * modules/unictype/property-dash-tests (Files): Likewise.
23023         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
23024         * modules/unictype/property-default-ignorable-code-point-tests (Files):
23025         Likewise.
23026         * modules/unictype/property-deprecated-tests (Files): Likewise.
23027         * modules/unictype/property-diacritic-tests (Files): Likewise.
23028         * modules/unictype/property-extender-tests (Files): Likewise.
23029         * modules/unictype/property-format-control-tests (Files): Likewise.
23030         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
23031         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
23032         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
23033         * modules/unictype/property-hex-digit-tests (Files): Likewise.
23034         * modules/unictype/property-hyphen-tests (Files): Likewise.
23035         * modules/unictype/property-id-continue-tests (Files): Likewise.
23036         * modules/unictype/property-id-start-tests (Files): Likewise.
23037         * modules/unictype/property-ideographic-tests (Files): Likewise.
23038         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
23039         * modules/unictype/property-ids-trinary-operator-tests (Files):
23040         Likewise.
23041         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
23042         * modules/unictype/property-iso-control-tests (Files): Likewise.
23043         * modules/unictype/property-join-control-tests (Files): Likewise.
23044         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
23045         * modules/unictype/property-line-separator-tests (Files): Likewise.
23046         * modules/unictype/property-logical-order-exception-tests (Files):
23047         Likewise.
23048         * modules/unictype/property-lowercase-tests (Files): Likewise.
23049         * modules/unictype/property-math-tests (Files): Likewise.
23050         * modules/unictype/property-non-break-tests (Files): Likewise.
23051         * modules/unictype/property-not-a-character-tests (Files): Likewise.
23052         * modules/unictype/property-numeric-tests (Files): Likewise.
23053         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
23054         * modules/unictype/property-other-default-ignorable-code-point-tests
23055         (Files): Likewise.
23056         * modules/unictype/property-other-grapheme-extend-tests (Files):
23057         Likewise.
23058         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
23059         * modules/unictype/property-other-id-start-tests (Files): Likewise.
23060         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
23061         * modules/unictype/property-other-math-tests (Files): Likewise.
23062         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
23063         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
23064         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
23065         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
23066         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
23067         * modules/unictype/property-private-use-tests (Files): Likewise.
23068         * modules/unictype/property-punctuation-tests (Files): Likewise.
23069         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
23070         * modules/unictype/property-radical-tests (Files): Likewise.
23071         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
23072         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
23073         * modules/unictype/property-space-tests (Files): Likewise.
23074         * modules/unictype/property-terminal-punctuation-tests (Files):
23075         Likewise.
23076         * modules/unictype/property-test-tests (Files): Likewise.
23077         * modules/unictype/property-titlecase-tests (Files): Likewise.
23078         * modules/unictype/property-unassigned-code-value-tests (Files):
23079         Likewise.
23080         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
23081         * modules/unictype/property-uppercase-tests (Files): Likewise.
23082         * modules/unictype/property-variation-selector-tests (Files): Likewise.
23083         * modules/unictype/property-white-space-tests (Files): Likewise.
23084         * modules/unictype/property-xid-continue-tests (Files): Likewise.
23085         * modules/unictype/property-xid-start-tests (Files): Likewise.
23086         * modules/unictype/property-zero-width-tests (Files): Likewise.
23087         * modules/unictype/scripts-tests (Files): Likewise.
23088         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
23089         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
23090         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
23091         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
23092         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
23093         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
23094         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
23095         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
23096         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
23097         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
23098         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
23099         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
23100         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
23101         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
23102         * modules/uninorm/composition-tests (Files): Likewise.
23103         * modules/uninorm/decomposing-form-tests (Files): Likewise.
23104         * modules/uninorm/decomposition-tests (Files): Likewise.
23105         * modules/uninorm/filter-tests (Files): Likewise.
23106         * modules/uninorm/nfc-tests (Files): Likewise.
23107         * modules/uninorm/nfd-tests (Files): Likewise.
23108         * modules/uninorm/nfkc-tests (Files): Likewise.
23109         * modules/uninorm/nfkd-tests (Files): Likewise.
23110         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
23111         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
23112         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
23113         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
23114         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
23115         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
23116         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
23117         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23118         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
23119         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
23120         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
23121         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
23122         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23123         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
23124         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
23125         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
23126         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
23127         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23128         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
23129         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
23130         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
23131         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
23132         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23133         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
23134         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
23135         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
23136         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
23137         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
23138         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
23139         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
23140         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
23141         * modules/uniwidth/u8-width-tests (Files): Likewise.
23142         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
23143         * modules/uniwidth/u16-width-tests (Files): Likewise.
23144         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
23145         * modules/uniwidth/u32-width-tests (Files): Likewise.
23146         * modules/uniwidth/width-tests (Files): Likewise.
23147         * modules/unlink-tests (Files): Likewise.
23148         * modules/unsetenv-tests (Files): Likewise.
23149         * modules/usleep-tests (Files): Likewise.
23150         * modules/utimens-tests (Files): Likewise.
23151         * modules/utimensat-tests (Files): Likewise.
23152         * modules/vasnprintf-posix-tests (Files): Likewise.
23153         * modules/vasnprintf-tests (Files): Likewise.
23154         * modules/vasprintf-posix-tests (Files): Likewise.
23155         * modules/vasprintf-tests (Files): Likewise.
23156         * modules/vdprintf-posix-tests (Files): Likewise.
23157         * modules/vfprintf-posix-tests (Files): Likewise.
23158         * modules/vprintf-posix-tests (Files): Likewise.
23159         * modules/vsnprintf-posix-tests (Files): Likewise.
23160         * modules/vsnprintf-tests (Files): Likewise.
23161         * modules/vsprintf-posix-tests (Files): Likewise.
23162         * modules/wcrtomb-tests (Files): Likewise.
23163         * modules/wcsnrtombs-tests (Files): Likewise.
23164         * modules/wcsrtombs-tests (Files): Likewise.
23165         * modules/wctype-tests (Files): Likewise.
23166         * modules/wcwidth-tests (Files): Likewise.
23167         * modules/xmemdup0-tests (Files): Likewise.
23168         * modules/xprintf-posix-tests (Files): Likewise.
23169         * modules/xvasprintf-tests (Files): Likewise.
23170
23171 2009-12-24  Eric Blake  <ebb9@byu.net>
23172
23173         test-nanosleep: fix typo
23174         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
23175         patch.
23176         Reported by Bruno Haible.
23177
23178 2009-12-24  Bruno Haible  <bruno@clisp.org>
23179
23180         Reduce namespace pollution on glibc systems.
23181         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
23182         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
23183         systems.
23184         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
23185         <getopt.h> on glibc systems.
23186         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
23187         systems.
23188         * lib/fcntl.c: Include <unistd.h> here instead.
23189
23190 2009-12-24  Bruno Haible  <bruno@clisp.org>
23191
23192         * lib/stdlib.in.h (includes): Fix typo in today's commit.
23193
23194 2009-12-24  Eric Blake  <ebb9@byu.net>
23195
23196         tests: add signature checks
23197         * tests/signature.h (SIGNATURE_CHECK): New file.
23198         * modules/atexit-tests (Files): Use it.
23199         * modules/btowc-tests (Files): Likewise.
23200         * modules/canonicalize-lgpl-tests (Files): Likewise.
23201         * modules/ceilf-tests (Files): Likewise.
23202         * modules/ceill-tests (Files): Likewise.
23203         * modules/chown-tests (Files): Likewise.
23204         * modules/dprintf-posix-tests (Files): Likewise.
23205         * modules/dup2-tests (Files): Likewise.
23206         * modules/dup3-tests (Files): Likewise.
23207         * modules/duplocale-tests (Files): Likewise.
23208         * modules/fchdir-tests (Files): Likewise.
23209         * modules/fcntl-tests (Files): Likewise.
23210         * modules/fdopendir-tests (Files): Likewise.
23211         * modules/fflush-tests (Files): Likewise.
23212         * modules/flock-tests (Files): Likewise.
23213         * modules/floorf-tests (Files): Likewise.
23214         * modules/floorl-tests (Files): Likewise.
23215         * modules/fnmatch-tests (Files): Likewise.
23216         * modules/fopen-tests (Files): Likewise.
23217         * modules/fprintf-posix-tests (Files): Likewise.
23218         * modules/freopen-tests (Files): Likewise.
23219         * modules/frexp-nolibm-tests (Files): Likewise.
23220         * modules/frexp-tests (Files): Likewise.
23221         * modules/frexpl-nolibm-tests (Files): Likewise.
23222         * modules/frexpl-tests (Files): Likewise.
23223         * modules/fseek-tests (Files): Likewise.
23224         * modules/fseeko-tests (Files): Likewise.
23225         * modules/fsync-tests (Files): Likewise.
23226         * modules/ftell-tests (Files): Likewise.
23227         * modules/ftello-tests (Files): Likewise.
23228         * modules/futimens-tests (Files): Likewise.
23229         * modules/getaddrinfo-tests (Files): Likewise.
23230         * modules/getcwd-tests (Files): Likewise.
23231         * modules/getdelim-tests (Files): Likewise.
23232         * modules/getdtablesize-tests (Files): Likewise.
23233         * modules/getgroups-tests (Files): Likewise.
23234         * modules/gethostname-tests (Files): Likewise.
23235         * modules/getline-tests (Files): Likewise.
23236         * modules/getopt-posix-tests (Files): Likewise.
23237         * modules/gettimeofday-tests (Files): Likewise.
23238         * modules/glob-tests (Files): Likewise.
23239         * modules/iconv-tests (Files): Likewise.
23240         * modules/inet_ntop-tests (Files): Likewise.
23241         * modules/inet_pton-tests (Files): Likewise.
23242         * modules/isblank-tests (Files): Likewise.
23243         * modules/lchown-tests (Files): Likewise.
23244         * modules/ldexpl-tests (Files): Likewise.
23245         * modules/link-tests (Files): Likewise.
23246         * modules/linkat-tests (Files): Likewise.
23247         * modules/lseek-tests (Files): Likewise.
23248         * modules/lstat-tests (Files): Likewise.
23249         * modules/mbrtowc-tests (Files): Likewise.
23250         * modules/mbsinit-tests (Files): Likewise.
23251         * modules/mbsnrtowcs-tests (Files): Likewise.
23252         * modules/mbsrtowcs-tests (Files): Likewise.
23253         * modules/memchr-tests (Files): Likewise.
23254         * modules/memcmp-tests (Files): Likewise.
23255         * modules/memmem-tests (Files): Likewise.
23256         * modules/memrchr-tests (Files): Likewise.
23257         * modules/mkdir-tests (Files): Likewise.
23258         * modules/mkfifo-tests (Files): Likewise.
23259         * modules/mkfifoat-tests (Files): Likewise.
23260         * modules/mknod-tests (Files): Likewise.
23261         * modules/nanosleep-tests (Files): Likewise.
23262         * modules/nl_langinfo-tests (Files): Likewise.
23263         * modules/obstack-printf-tests (Files): Likewise.
23264         * modules/open-tests (Files): Likewise.
23265         * modules/openat-tests (Files): Likewise.
23266         * modules/perror-tests (Files): Likewise.
23267         * modules/pipe2-tests (Files): Likewise.
23268         * modules/poll-tests (Files): Likewise.
23269         * modules/popen-tests (Files): Likewise.
23270         * modules/posix_spawn-tests (Files): Likewise.
23271         * modules/posix_spawnp-tests (Files): Likewise.
23272         * modules/pread-tests (Files): Likewise.
23273         * modules/printf-posix-tests (Files): Likewise.
23274         * modules/pty-tests (Files): Likewise.
23275         * modules/random_r-tests (Files): Likewise.
23276         * modules/rawmemchr-tests (Files): Likewise.
23277         * modules/readlink-tests (Files): Likewise.
23278         * modules/remove-tests (Files): Likewise.
23279         * modules/rename-tests (Files): Likewise.
23280         * modules/renameat-tests (Files): Likewise.
23281         * modules/rmdir-tests (Files): Likewise.
23282         * modules/round-tests (Files): Likewise.
23283         * modules/roundf-tests (Files): Likewise.
23284         * modules/roundl-tests (Files): Likewise.
23285         * modules/select-tests (Files): Likewise.
23286         * modules/setenv-tests (Files): Likewise.
23287         * modules/sigaction-tests (Files): Likewise.
23288         * modules/sleep-tests (Files): Likewise.
23289         * modules/snprintf-posix-tests (Files): Likewise.
23290         * modules/snprintf-tests (Files): Likewise.
23291         * modules/sprintf-posix-tests (Files): Likewise.
23292         * modules/stat-tests (Files): Likewise.
23293         * modules/strcasestr-tests (Files): Likewise.
23294         * modules/strchrnul-tests (Files): Likewise.
23295         * modules/strerror-tests (Files): Likewise.
23296         * modules/strsignal-tests (Files): Likewise.
23297         * modules/strstr-tests (Files): Likewise.
23298         * modules/strtod-tests (Files): Likewise.
23299         * modules/strverscmp-tests (Files): Likewise.
23300         * modules/symlink-tests (Files): Likewise.
23301         * modules/symlinkat-tests (Files): Likewise.
23302         * modules/times-tests (Files): Likewise.
23303         * modules/trunc-tests (Files): Likewise.
23304         * modules/truncf-tests (Files): Likewise.
23305         * modules/truncl-tests (Files): Likewise.
23306         * modules/tsearch-tests (Files): Likewise.
23307         * modules/uname-tests (Files): Likewise.
23308         * modules/unlink-tests (Files): Likewise.
23309         * modules/unsetenv-tests (Files): Likewise.
23310         * modules/usleep-tests (Files): Likewise.
23311         * modules/utimensat-tests (Files): Likewise.
23312         * modules/vasprintf-tests (Files): Likewise.
23313         * modules/vdprintf-posix-tests (Files): Likewise.
23314         * modules/vfprintf-posix-tests (Files): Likewise.
23315         * modules/vprintf-posix-tests (Files): Likewise.
23316         * modules/vsnprintf-posix-tests (Files): Likewise.
23317         * modules/vsnprintf-tests (Files): Likewise.
23318         * modules/vsprintf-posix-tests (Files): Likewise.
23319         * modules/wcrtomb-tests (Files): Likewise.
23320         * modules/wcsnrtombs-tests (Files): Likewise.
23321         * modules/wcsrtombs-tests (Files): Likewise.
23322         * modules/wcwidth-tests (Files): Likewise.
23323         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
23324         * tests/test-isinf.c (isinf): Likewise.
23325         * tests/test-isnan.c (isnan): Likewise.
23326         * tests/test-signbit.c (signbit): Likewise.
23327         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
23328         declaration, either as macro or with correct signature.
23329         (select): Ensure function under test is declared with correct
23330         signature in correct header.
23331         * tests/test-atexit.c (atexit): Likewise.
23332         * tests/test-btowc.c (btowc): Likewise.
23333         * tests/test-canonicalize-lgpl.c (realpath)
23334         (canonicalize_file_name): Likewise.
23335         * tests/test-ceilf1.c (ceilf): Likewise.
23336         * tests/test-ceill.c (ceill): Likewise.
23337         * tests/test-chown.c (chown): Likewise.
23338         * tests/test-dprintf-posix.c (dprintf): Likewise.
23339         * tests/test-dup2.c (dup2): Likewise.
23340         * tests/test-dup3.c (dup3): Likewise.
23341         * tests/test-duplocale.c (duplocale): Likewise.
23342         * tests/test-fchdir.c (fchdir): Likewise.
23343         * tests/test-fchownat.c (fchownat): Likewise.
23344         * tests/test-fcntl.c (fcntl): Likewise.
23345         * tests/test-fdopendir.c (fdopendir): Likewise.
23346         * tests/test-fflush.c (fflush): Likewise.
23347         * tests/test-flock.c (flock): Likewise.
23348         * tests/test-floorf1.c (floorf): Likewise.
23349         * tests/test-floorl.c (floorl): Likewise.
23350         * tests/test-fnmatch.c (fnmatch): Likewise.
23351         * tests/test-fopen.c (fopen): Likewise.
23352         * tests/test-fprintf-posix.c (fprintf): Likewise.
23353         * tests/test-freopen.c (freopen): Likewise.
23354         * tests/test-frexp.c (frexp): Likewise.
23355         * tests/test-frexpl.c (frexpl): Likewise.
23356         * tests/test-fseek.c (fseek): Likewise.
23357         * tests/test-fseeko.c (fseeko): Likewise.
23358         * tests/test-fstatat.c (fstatat): Likewise.
23359         * tests/test-fsync.c (fsync): Likewise.
23360         * tests/test-ftell.c (ftell): Likewise.
23361         * tests/test-ftello.c (ftello): Likewise.
23362         * tests/test-futimens.c (futimens): Likewise.
23363         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
23364         (gai_strerror): Likewise.
23365         * tests/test-getcwd.c (getcwd): Likewise.
23366         * tests/test-getdelim.c (getdelim): Likewise.
23367         * tests/test-getdtablesize.c (getdtablesize): Likewise.
23368         * tests/test-getgroups.c (getgroups): Likewise.
23369         * tests/test-gethostname.c (gethostname): Likewise.
23370         * tests/test-getline.c (getline): Likewise.
23371         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
23372         Likewise.
23373         * tests/test-gettimeofday.c (gettimeofday): Likewise.
23374         * tests/test-glob.c (glob, globfree): Likewise.
23375         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
23376         * tests/test-inet_ntop.c (inet_ntop): Likewise.
23377         * tests/test-inet_pton.c (inet_pton): Likewise.
23378         * tests/test-isblank.c (isblank): Likewise.
23379         * tests/test-lchown.c (lchown): Likewise.
23380         * tests/test-ldexpl.c (ldexpl): Likewise.
23381         * tests/test-link.c (link): Likewise.
23382         * tests/test-linkat.c (linkat): Likewise.
23383         * tests/test-lseek.c (lseek): Likewise.
23384         * tests/test-lstat.c (lstat): Likewise.
23385         * tests/test-mbrtowc.c (mbrtowc): Likewise.
23386         * tests/test-mbsinit.c (mbsinit): Likewise.
23387         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
23388         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
23389         * tests/test-memchr.c (memchr): Likewise.
23390         * tests/test-memcmp.c (memcmp): Likewise.
23391         * tests/test-memmem.c (memmem): Likewise.
23392         * tests/test-memrchr.c (memrchr): Likewise.
23393         * tests/test-mkdir.c (mkdir): Likewise.
23394         * tests/test-mkdirat.c (mkdirat): Likewise.
23395         * tests/test-mkfifo.c (mkfifo): Likewise.
23396         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
23397         * tests/test-mknod.c (mknod): Likewise.
23398         * tests/test-nanosleep.c (nanosleep): Likewise.
23399         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
23400         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
23401         Likewise.
23402         * tests/test-open.c (open): Likewise.
23403         * tests/test-openat.c (openat): Likewise.
23404         * tests/test-perror.c (perror): Likewise.
23405         * tests/test-pipe2.c (pipe2): Likewise.
23406         * tests/test-poll.c (poll): Likewise.
23407         * tests/test-popen.c (popen, pclose): Likewise.
23408         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
23409         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
23410         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
23411         (posix_spawn_file_actions_destroy)
23412         (posix_spawn_file_actions_addclose)
23413         (posix_spawn_file_actions_addopen)
23414         (posix_spawn_file_actions_adddup2): Likewise.
23415         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
23416         * tests/test-pread.c (pread): Likewise.
23417         * tests/test-printf-posix.c (printf): Likewise.
23418         * tests/test-pty.c (openpty, forkpty): Likewise.
23419         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
23420         (random_r): Likewise.
23421         * tests/test-rawmemchr.c (rawmemchr): Likewise.
23422         * tests/test-readlink.c (readlink): Likewise.
23423         * tests/test-remove.c (remove): Likewise.
23424         * tests/test-rename.c (rename): Likewise.
23425         * tests/test-renameat.c (renameat): Likewise.
23426         * tests/test-rmdir.c (rmdir): Likewise.
23427         * tests/test-round1.c (round): Likewise.
23428         * tests/test-roundf1.c (roundf): Likewise.
23429         * tests/test-roundl.c (roundl): Likewise.
23430         * tests/test-setenv.c (setenv): Likewise.
23431         * tests/test-sigaction.c (sigaction): Likewise.
23432         * tests/test-sleep.c (sleep): Likewise.
23433         * tests/test-snprintf.c (snprintf): Likewise.
23434         * tests/test-sprintf-posix.c (sprintf): Likewise.
23435         * tests/test-stat.c (stat): Likewise.
23436         * tests/test-stpncpy.c (stpncpy): Likewise.
23437         * tests/test-strcasestr.c (strcasestr): Likewise.
23438         * tests/test-strchrnul.c (strchrnul): Likewise.
23439         * tests/test-strerror.c (strerror): Likewise.
23440         * tests/test-strsignal.c (strsignal): Likewise.
23441         * tests/test-strstr.c (strstr): Likewise.
23442         * tests/test-strtod.c (strtod): Likewise.
23443         * tests/test-strverscmp.c (strverscmp): Likewise.
23444         * tests/test-symlink.c (symlink): Likewise.
23445         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
23446         * tests/test-times.c (times): Likewise.
23447         * tests/test-trunc1.c (trunc): Likewise.
23448         * tests/test-truncf1.c (truncf): Likewise.
23449         * tests/test-truncl.c (truncl): Likewise.
23450         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
23451         Likewise.
23452         * tests/test-uname.c (uname): Likewise.
23453         * tests/test-unlink.c (unlink): Likewise.
23454         * tests/test-unlinkat.c (unlinkat): Likewise.
23455         * tests/test-unsetenv.c (unsetenv): Likewise.
23456         * tests/test-usleep.c (usleep): Likewise.
23457         * tests/test-utimensat.c (utimensat): Likewise.
23458         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
23459         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
23460         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
23461         * tests/test-vprintf-posix.c (vprintf): Likewise.
23462         * tests/test-vsnprintf.c (vsnprintf): Likewise.
23463         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
23464         * tests/test-wcrtomb.c (wcrtomb): Likewise.
23465         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
23466         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
23467         * tests/test-wcwidth.c (wcwidth): Likewise.
23468
23469         build: pull in conditional headers during GNULIB_POSIXCHECK
23470         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
23471         definitions from any conditionally-included headers.
23472         * lib/stdlib.in.h (includes): Likewise.
23473         * lib/unistd.in.h (includes): Likewise.
23474
23475 2009-12-24  Bruno Haible  <bruno@clisp.org>
23476
23477         * tests/test-argv-iter.c: Include header file being tested immediately
23478         after config.h.
23479         * tests/test-base64.c: Likewise.
23480         * tests/test-flock.c: Likewise.
23481         * tests/test-fsync.c: Likewise.
23482         * tests/test-getdate.c: Likewise.
23483         * tests/test-getndelim2.c: Likewise.
23484         * tests/test-isfinite.c: Likewise.
23485         * tests/test-isinf.c: Likewise.
23486         * tests/test-strerror.c: Likewise.
23487         * tests/test-strsignal.c: Likewise.
23488
23489 2009-12-23  Eric Blake  <ebb9@byu.net>
23490
23491         unistd: work around cygwin bug
23492         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
23493         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
23494         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23495
23496 2009-12-23  Bruno Haible  <bruno@clisp.org>
23497
23498         localename: More tests.
23499         * tests/test-localename.c (SIZEOF): New macro.
23500         (categories): New variable.
23501         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
23502         test_locale_name_default): Add test w.r.t. thread locale.
23503         (test_locale_name_thread): New function.
23504         (main): Invoke it.
23505
23506         localename: Make aware of thread locale.
23507         * lib/localename.h (gl_locale_name_thread): New declaration.
23508         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
23509         behaviour with respect to thread locale.
23510         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
23511         <langinfo.h>, glthread/lock.h.
23512         (SIZE_BITS): New macro.
23513         (string_hash): New function.
23514         (struct hash_node): New type.
23515         (HASH_TABLE_SIZE): New macro.
23516         (struniq_hash_table, struniq_lock): New variables.
23517         (struniq): New function.
23518         (gl_locale_name_thread): New function.
23519         (gl_locale_name): Invoke it.
23520         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
23521         * modules/localename (Depends-on): Add lock.
23522         Reported by Mike Gran <spk121@yahoo.com>.
23523
23524 2009-12-23  Eric Blake  <ebb9@byu.net>
23525
23526         va-args: new module
23527         * modules/va-args: New file.
23528         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
23529         * MODULES.html.sh (Core language properties): Mention it.
23530
23531         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
23532         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
23533         named alias for __attribute__((__unused__)).
23534         * lib/chown.c: Update client.
23535         * lib/fchmodat.c: Likewise.
23536         * lib/fts.c: Likewise.
23537         * lib/getdate.y: Likewise.
23538         * lib/getgroups.c: Likewise.
23539         * lib/getopt.c: Likewise.
23540         * lib/getugroups.c: Likewise.
23541         * lib/mkdir.c: Likewise.
23542         * lib/mkfifo.c: Likewise.
23543         * lib/mkfifoat.c: Likewise.
23544         * lib/mknod.c: Likewise.
23545         * lib/mknodat.c: Likewise.
23546         * lib/readlink.c: Likewise.
23547         * lib/se-context.in.h: Likewise.
23548         * lib/se-selinux.in.h: Likewise.
23549         * lib/sockets.c: Likewise.
23550         * lib/symlink.c: Likewise.
23551         * lib/symlinkat.c: Likewise.
23552         * lib/unicodeio.c: Likewise.
23553         * lib/unistr.h: Likewise.
23554         * tests/test-areadlink.c: Likewise.
23555         * tests/test-areadlinkat.c: Likewise.
23556         * tests/test-filenamecat.c: Likewise.
23557         * tests/test-fseeko.c: Likewise.
23558         * tests/test-ftello.c: Likewise.
23559         * tests/test-getdate.c: Likewise.
23560         * tests/test-getgroups.c: Likewise.
23561         * tests/test-gethostname.c: Likewise.
23562         * tests/test-quotearg.c: Likewise.
23563         * tests/test-version-etc.c: Likewise.
23564         * tests/test-xalloc-die.c: Likewise.
23565         * tests/test-xfprintf-posix.c: Likewise.
23566         * tests/test-xprintf-posix.c: Likewise.
23567         * tests/test-xvasprintf.c: Likewise.
23568
23569         tests: avoid compiler warnings
23570         * tests/test-fcntl.c (main): Delete unused parameters.
23571         * tests/test-freopen-safer.c (main): Likewise.
23572         * tests/test-xalloc-die.c (main): Mark unused parameters.
23573         * tests/test-fseeko.c (main): Likewise.
23574         * tests/test-ftello.c (main): Likewise.
23575         * tests/test-nanosleep.c (main): Avoid declaration warning.
23576         * tests/test-sleep.c (main): Likewise.
23577         * tests/test-unsetenv.c (main): Silence warning about string
23578         literal.
23579         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
23580
23581 2009-12-23  Bruno Haible  <bruno@clisp.org>
23582
23583         * tests/test-localename.c (test_locale_name): New function, extracted
23584         from main. Also test mixed situations.
23585         (test_locale_name_posix, test_locale_name_environ,
23586         test_locale_name_default): New functions.
23587         (main): Invoke them all.
23588         * modules/localename-tests (configure.ac): Test for newlocale.
23589
23590 2009-12-23  Bruno Haible  <bruno@clisp.org>
23591
23592         unistd: Ensure getcwd gets declared before being overridden.
23593         * lib/unistd.in.h: Conditionally include <io.h>.
23594
23595 2009-12-22  Bruno Haible  <bruno@clisp.org>
23596
23597         wchar: Diagnose broken combination of glibc and gcc versions and flags.
23598         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
23599         (gl_WCHAR_H): Invoke it.
23600         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
23601         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
23602         Reported by Karl Berry <karl@freefriends.org>.
23603
23604 2009-12-22  Eric Blake  <ebb9@byu.net>
23605
23606         math, unistd: avoid redundant includes
23607         * lib/math.in.h (isnan): No need to re-include <math.h>.
23608         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
23609
23610         getsubopt: work around cygwin bug
23611         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
23612         avoid conflicting with system getsubopt.
23613         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
23614         bug.
23615
23616         getopt: synchronize from glibc
23617         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
23618         parameter order.  Adjust all callers.
23619         (_getopt_internal_r, main): Adjust quoting in error messages.
23620         Drop considerations for outdated POSIX 1003.2 error message.
23621         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
23622         callers.
23623         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
23624
23625         test-getopt: test stderr behavior
23626         * modules/getopt-posix-tests (Depends-on): Add dup2.
23627         * tests/test-getopt.c (ASSERT): Avoid stderr.
23628         (main): Move stderr to a temporary file.
23629         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
23630         Instead, add parameter to inform caller if output occurred.
23631         (test_getopt): Adjust all existing tests to expect silence, and
23632         add new tests of leading ":".
23633         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
23634         glibc shortcomings with leading "-:" or "+:" in optstring.
23635         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23636         Likewise.
23637         * doc/posix-functions/getopt.texi (getopt): Likewise.
23638
23639         test-getopt: enhance test
23640         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
23641         supports optind=0.
23642         * tests/test-getopt.c (OPTIND_MIN): Move...
23643         * tests/test-getopt.h (OPTIND_MIN): ...here.
23644         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
23645         Require that optind=0 works, since modern BSD supports it in
23646         addition to optreset, and since coreutils expects it.
23647         (test_getopt_long_only): New test.
23648         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
23649         glibc shortcomings with 'W;', and enforcement of optind=0.
23650         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23651         Likewise.
23652
23653 2009-12-21  Bruno Haible  <bruno@clisp.org>
23654
23655         localename: Improvements for MacOS X and Cygwin.
23656         * lib/localename.h (gl_locale_name_environ): New declaration.
23657         * lib/localename.c (gl_locale_name_environ): New function, extracted from
23658         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
23659         (gl_locale_name_posix): Invoke it.
23660         (gl_locale_name_default): Add comments. Use Windows native API also on
23661         Cygwin.
23662
23663 2009-12-21  Bruno Haible  <bruno@clisp.org>
23664
23665         Update list of Win32 locale ids.
23666         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
23667         (LANG_SAMI): Renamed from LANG_SAAMI.
23668         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
23669         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
23670         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
23671         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
23672         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
23673         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
23674         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
23675         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
23676         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
23677         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
23678         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
23679         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
23680         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
23681         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
23682         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
23683         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
23684         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
23685         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
23686         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
23687         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
23688         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
23689         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
23690         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
23691         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
23692         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
23693         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
23694         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
23695         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
23696         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
23697         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
23698         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
23699         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
23700         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
23701         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
23702         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
23703         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
23704         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
23705         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
23706         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
23707         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
23708         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
23709         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
23710         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
23711         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
23712         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
23713         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
23714         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
23715         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
23716         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
23717         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
23718         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
23719         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
23720         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
23721         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
23722         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
23723         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
23724         Add more languages and countries for Sami, Sorbian. Add more countries
23725         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
23726         for Pashto. Change country for Syriac, Tswana.
23727
23728 2009-12-21  Eric Blake  <ebb9@byu.net>
23729
23730         test-utimens: avoid spurious failure
23731         * tests/test-chown.h (nap): Factor...
23732         * tests/nap.h: ...into new file.
23733         * tests/test-lchown.h (nap): Avoid duplication.
23734         * tests/test-utimens-common.h (nap): Use shared implementation,
23735         necessary on file systems with 1-second resolution.
23736         * modules/chown-tests (Files): Include new file.
23737         * modules/fdutimensat-tests (Files): Likewise.
23738         * modules/futimens-tests (Files): Likewise.
23739         * modules/lchown-tests (Files): Likewise.
23740         * modules/openat-tests (Files): Likewise.
23741         * modules/utimens-tests (Files): Likewise.
23742         * modules/utimensat-tests (Files): Likewise.
23743
23744 2009-12-19  Eric Blake  <ebb9@byu.net>
23745
23746         futimens, utimensat: work around Linux bug
23747         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
23748         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23749         * lib/utimensat.c (rpl_utimensat): Work around it.
23750         * lib/futimens.c (rpl_futimens): Adjust comment.
23751
23752         utimens: work around Linux ctime bug
23753         * lib/utimens.c (detect_ctime_bug): New helper function.
23754         (update_timespec): Differentiate between workaround needed for
23755         this bug vs. what is needed for systems that lack utimensat.
23756         (fdutimens, lutimens): Work around bug.
23757
23758         utimens: check for ctime update
23759         * tests/test-utimens-common.h (check_ctime): Define.
23760         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
23761         * tests/test-futimens.h (test_futimens): Likewise.
23762         * tests/test-lutimens.h (test_lutimens): Likewise.
23763         * doc/posix-functions/futimens.texi (futimens): Document the bug.
23764         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23765
23766 2009-12-19  Bruno Haible  <bruno@clisp.org>
23767
23768         dprintf-posix: Check against memory leak fixed on 2009-12-15.
23769         * tests/test-dprintf-posix2.sh: New file.
23770         * tests/test-dprintf-posix2.c: New file.
23771         * modules/dprintf-posix-tests (Files): Add them.
23772         (configure.ac): Check for getrlimit and setrlimit.
23773         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
23774
23775 2009-12-19  Bruno Haible  <bruno@clisp.org>
23776
23777         fprintf-posix: Check against memory leak fixed on 2009-12-15.
23778         * tests/test-fprintf-posix3.sh: New file.
23779         * tests/test-fprintf-posix3.c: New file.
23780         * modules/fprintf-posix-tests (Files): Add them.
23781         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
23782
23783 2009-12-19  Eric Blake  <ebb9@byu.net>
23784
23785         dirfd: fix prototype
23786         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
23787         * lib/dirfd.c (dirfd): Likewise.
23788
23789         canonicalize: reduce memory usage
23790         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
23791         allocation to size.
23792         Reported by Solar Designer <solar@openwall.com>.
23793
23794 2009-12-19  Bruno Haible  <bruno@clisp.org>
23795
23796         New module attribute 'Applicability'.
23797         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
23798         * gnulib-tool: New option --extract-applicability.
23799         (func_usage): Document it.
23800         (sed_extract_prog): Recognize it.
23801         (func_get_applicability): New function.
23802         (func_import): Generalize handling of 'link-warning' module.
23803         * modules/link-warning (Applicability): New section.
23804         * modules/arg-nonnull (Applicability): New section.
23805         Repoted by Simon Josefsson <simon@josefsson.org>.
23806
23807 2009-12-19  Bruno Haible  <bruno@clisp.org>
23808
23809         fflush: tweak
23810         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
23811         * lib/fseeko.c (rpl_fseeko): Likewise.
23812
23813 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
23814
23815         * lib/gl_list.h: Fix typo in comment.
23816
23817 2009-12-16  Eric Blake  <ebb9@byu.net>
23818
23819         fcntl: use to simplify other modules
23820         * modules/cloexec (Depends-on): Add fcntl.
23821         * modules/fchdir (Depends-on): Likewise.
23822         * modules/fd-safer-flag (Depends-on): Likewise.
23823         * modules/unistd-safer (Depends-on): Likewise.
23824         * modules/dup3 (configure.ac): Set module indicator.
23825         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
23826         missing.
23827         * lib/fchdir.c (_gl_register_dup): Fix comment.
23828         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
23829         * lib/dup-safer.c (dup_safer): Likewise.
23830         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
23831         * lib/dup3.c (dup3): Likewise.
23832         * tests/test-fchdir.c (main): Enhance test.
23833         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
23834
23835         fcntl: port portions of fcntl to mingw
23836         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
23837         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
23838         replacement for mingw.
23839         * modules/fcntl (Description): Update.
23840         (Depends-on): Add dup2.
23841         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
23842         * modules/fcntl-h (Makefile.am): Substitute it.
23843         * lib/fcntl.in.h (fcntl): Update declaration.
23844         (F_DUPFD, F_GETFD): New macros, when needed.
23845         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
23846         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
23847         * tests/test-fcntl.c (check_flags, main): Enhance test for items
23848         we now guarantee.
23849
23850         fcntl: work around cygwin bug in F_DUPFD
23851         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
23852         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
23853         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
23854         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
23855         * doc/posix-functions/fcntl.texi (fcntl): Document it.
23856
23857         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
23858         * modules/fcntl (Files): List new files.
23859         (configure.ac): Run a test.
23860         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
23861         * lib/fcntl.c (rpl_fcntl): Likewise.
23862         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
23863         (gl_FCNTL_H): Always replace fcntl.h.
23864         * modules/fcntl-h (Makefile.am): Substitute witnesses.
23865         * lib/fcntl.in.h (fcntl): Declare replacement.
23866         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
23867         needed, plus a witness.
23868         * doc/posix-functions/fcntl.texi (fcntl): Document this.
23869         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
23870         * tests/test-fcntl.c: New file.
23871         * modules/fcntl-tests: Likewise.
23872
23873         binary-io: avoid potential compilation warning
23874         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
23875         directives.
23876
23877         fflush: avoid compilation error on NetBSD
23878         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
23879         between off_t and fpos_t, since the latter is sometimes a struct.
23880         * lib/fseeko.c (rpl_fseeko): Likewise.
23881         Reported by Alexander Nasonov <alnsn@yandex.ru>.
23882
23883 2009-12-15  Eric Blake  <ebb9@byu.net>
23884
23885         fcntl-h, stdio, sys_ioctl: fix declarations
23886         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
23887         function must not take arguments.
23888         * lib/sys_ioctl.in.h (ioctl): Likewise.
23889         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
23890         (open): Add a link warning.
23891
23892 2009-12-15  Jim Meyering  <meyering@redhat.com>
23893
23894         areadlink, areadlink-with-size: relax license to LGPLv2+
23895         * modules/areadlink (License): Relax to LGPLv2+.
23896         * modules/areadlink-with-size (License): Likewise.
23897
23898 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
23899             Bruno Haible  <bruno@clisp.org>
23900
23901         *printf: Fix memory leak.
23902         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
23903         * lib/vfprintf.c (vfprintf): Likewise.
23904         * lib/dprintf.c (dprintf): Likewise.
23905         * lib/vdprintf.c (vdprintf): Likewise.
23906
23907 2009-12-14  Eric Blake  <ebb9@byu.net>
23908
23909         accept4: adjust module dependencies
23910         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
23911
23912         utimens: one more try at avoiding compiler warning
23913         * lib/utimens.c (lutimens): Lower scope of result.
23914
23915 2009-12-13  Bruno Haible  <bruno@clisp.org>
23916
23917         Move the malloc checking from module 'list' to new module 'xlist'.
23918         * modules/xlist: New file.
23919         * lib/gl_xlist.h: New file.
23920         * lib/gl_xlist.c: New file.
23921         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
23922         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
23923         gl_list_add_last, gl_list_add_before, gl_list_add_after,
23924         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
23925         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
23926         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
23927         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
23928         gl_sortedlist_nx_add): New declarations.
23929         (struct gl_list_implementation): Rename and change methods accordingly.
23930         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
23931         (gl_list_nx_create): Renamed from gl_list_create.
23932         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
23933         (gl_list_nx_set_at): Renamed from gl_list_set_at.
23934         (gl_list_nx_add_first): Renamed from gl_list_add_first.
23935         (gl_list_nx_add_last): Renamed from gl_list_add_last.
23936         (gl_list_nx_add_before): Renamed from gl_list_add_before.
23937         (gl_list_nx_add_after): Renamed from gl_list_add_after.
23938         (gl_list_nx_add_at): Renamed from gl_list_add_at.
23939         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
23940         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
23941         gl_list_create_empty.
23942         (gl_list_nx_create): Renamed from gl_list_create.
23943         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
23944         (gl_list_nx_set_at): Renamed from gl_list_set_at.
23945         (gl_list_nx_add_first): Renamed from gl_list_add_first.
23946         (gl_list_nx_add_last): Renamed from gl_list_add_last.
23947         (gl_list_nx_add_before): Renamed from gl_list_add_before.
23948         (gl_list_nx_add_after): Renamed from gl_list_add_after.
23949         (gl_list_nx_add_at): Renamed from gl_list_add_at.
23950         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
23951         * lib/gl_array_list.c: Don't include xalloc.h.
23952         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
23953         NULL upon out-of-memory.
23954         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
23955         out-of-memory.
23956         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
23957         Change return type to 'int'.
23958         (gl_array_nx_set_at): Renamed from gl_array_set_at.
23959         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
23960         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
23961         upon out-of-memory.
23962         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
23963         upon out-of-memory.
23964         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
23965         upon out-of-memory.
23966         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
23967         upon out-of-memory.
23968         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
23969         out-of-memory.
23970         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
23971         Update.
23972         (gl_array_list_implementation): Update.
23973         * lib/gl_carray_list.c: Don't include xalloc.h.
23974         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
23975         Return NULL upon out-of-memory.
23976         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
23977         out-of-memory.
23978         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
23979         Change return type to 'int'.
23980         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
23981         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
23982         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
23983         upon out-of-memory.
23984         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
23985         upon out-of-memory.
23986         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
23987         out-of-memory.
23988         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
23989         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
23990         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
23991         Update.
23992         (gl_carray_list_implementation): Update.
23993         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
23994         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
23995         gl_linked_create_empty. Return NULL upon out-of-memory.
23996         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
23997         out-of-memory.
23998         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
23999         Change return type to 'int'. Return -1 upon out-of-memory.
24000         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
24001         out-of-memory.
24002         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
24003         upon out-of-memory.
24004         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
24005         upon out-of-memory.
24006         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
24007         NULL upon out-of-memory.
24008         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
24009         upon out-of-memory.
24010         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
24011         out-of-memory.
24012         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
24013         Update.
24014         * lib/gl_linked_list.c: Don't include xalloc.h.
24015         (gl_linked_list_implementation): Update.
24016         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
24017         (add_to_bucket): Change return type to 'int'.
24018         (gl_linkedhash_list_implementation): Update.
24019         * lib/gl_anytree_list1.h (free_subtree): New function.
24020         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
24021         gl_tree_create_empty. Return NULL upon out-of-memory.
24022         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
24023         Change return type to 'int'. Return -1 upon out-of-memory.
24024         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
24025         out-of-memory.
24026         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
24027         (gl_tree_remove_node): New function, moved here from
24028         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
24029         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
24030         Update.
24031         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
24032         malloc, not xmalloc. Return NULL upon out-of-memory.
24033         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24034         out-of-memory.
24035         (gl_tree_remove_node_from_tree): New function, extracted from
24036         gl_tree_remove_node.
24037         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24038         upon out-of-memory.
24039         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24040         out-of-memory.
24041         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24042         upon out-of-memory.
24043         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24044         upon out-of-memory.
24045         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24046         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
24047         not xmalloc. Return NULL upon out-of-memory.
24048         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24049         out-of-memory.
24050         (gl_tree_remove_node_from_tree): New function, extracted from
24051         gl_tree_remove_node.
24052         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24053         upon out-of-memory.
24054         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24055         out-of-memory.
24056         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24057         upon out-of-memory.
24058         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24059         upon out-of-memory.
24060         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24061         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
24062         gl_anytree_list1.h before gl_anyavltree_list2.h.
24063         (gl_avltree_list_implementation): Update.
24064         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
24065         gl_anytree_list1.h before gl_anyavltree_list2.h.
24066         (gl_rbtree_list_implementation): Update.
24067         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
24068         Change return type to 'int'. Return -1 upon out-of-memory. Use
24069         __builtin_expect.
24070         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
24071         (gl_avltreehash_list_implementation): Update.
24072         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
24073         (gl_rbtreehash_list_implementation): Update.
24074         * modules/array-list (Depends-on): Remove xalloc.
24075         * modules/carray-list (Depends-on): Likewise.
24076         * modules/linked-list (Depends-on): Likewise.
24077         * modules/linkedhash-list (Depends-on): Likewise.
24078         * modules/avltree-list (Depends-on): Likewise.
24079         * modules/rbtree-list (Depends-on): Likewise.
24080         * modules/avltreehash-list (Depends-on): Likewise.
24081         * modules/rbtreehash-list (Depends-on): Likewise.
24082
24083         * modules/xsublist: New file.
24084         * lib/gl_xsublist.h: New file.
24085         * lib/gl_xsublist.c: New file.
24086         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
24087         (gl_sublist_nx_create): New declaration.
24088         * lib/gl_sublist.c: Don't include xalloc.h.
24089         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
24090         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
24091         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
24092         Change return type to 'int'. Return -1 upon out-of-memory.
24093         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
24094         upon out-of-memory.
24095         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
24096         NULL upon out-of-memory.
24097         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
24098         upon out-of-memory.
24099         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
24100         NULL upon out-of-memory.
24101         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
24102         NULL upon out-of-memory.
24103         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
24104         upon out-of-memory.
24105         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
24106         (gl_sublist_list_implementation): Update.
24107         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
24108         upon out-of-memory.
24109         * modules/sublist (Depends-on): Remove xalloc.
24110
24111         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
24112         * tests/test-carray_list.c: Likewise.
24113         * tests/test-linked_list.c: Likewise.
24114         * tests/test-linkedhash_list.c: Likewise.
24115         * tests/test-avltree_list.c: Likewise.
24116         * tests/test-rbtree_list.c: Likewise.
24117         * tests/test-avltreehash_list.c: Likewise.
24118         * tests/test-rbtreehash_list.c: Likewise.
24119         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
24120         * modules/carray-list-tests (Makefile.am): Likewise.
24121         * modules/linked-list-tests (Makefile.am): Likewise.
24122         * modules/linkedhash-list-tests (Makefile.am): Likewise.
24123         * modules/avltree-list-tests (Makefile.am): Likewise.
24124         * modules/rbtree-list-tests (Makefile.am): Likewise.
24125         * modules/avltreehash-list-tests (Makefile.am): Likewise.
24126         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
24127
24128         * NEWS: Mention the changes.
24129
24130         * lib/clean-temp.c: Include gl_xlist.h.
24131         * modules/clean-temp (Depends-on): Add xlist.
24132
24133         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
24134         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
24135
24136         * tests/test-array_oset.c: Include gl_xlist.h.
24137         * modules/array-oset-tests (Depends-on): Add xlist.
24138
24139         Reported by José E. Marchesi <jemarch@gnu.org>.
24140
24141 2009-12-13  Bruno Haible  <bruno@clisp.org>
24142
24143         Move the malloc checking from module 'oset' to new module 'xoset'.
24144         * modules/xoset: New file.
24145         * lib/gl_xoset.h: New file.
24146         * lib/gl_xoset.c: New file.
24147         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
24148         declarations.
24149         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
24150         (struct gl_oset_implementation): Rename and change methods accordingly.
24151         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
24152         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24153         'int'. Mark as __warn_unused_result__.
24154         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
24155         gl_oset_create_empty.
24156         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24157         'int'.
24158         * lib/gl_array_oset.c: Don't include xalloc.h.
24159         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
24160         malloc, not xmalloc.
24161         (grow): Change return type to 'int'. Don't call xalloc_die.
24162         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
24163         to 'int'.
24164         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
24165         'int'.
24166         (gl_array_oset_implementation): Update.
24167         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
24168         gl_tree_create_empty.
24169         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
24170         'int'.
24171         * lib/gl_avltree_oset.c: Don't include xalloc.h.
24172         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24173         xmalloc.
24174         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24175         not xmalloc.
24176         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24177         xmalloc.
24178         (gl_avltree_oset_implementation): Update.
24179         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
24180         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24181         xmalloc.
24182         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24183         not xmalloc.
24184         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24185         xmalloc.
24186         (gl_rbtree_oset_implementation): Update.
24187         * modules/array-oset (Depends-on): Remove xalloc.
24188         * modules/avltree-oset (Depends-on): Likewise.
24189         * modules/rbtree-oset (Depends-on): Likewise.
24190         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
24191         * tests/test-avltree_oset.c: Likewise.
24192         * tests/test-rbtree_oset.c: Likewise.
24193         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
24194         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
24195         * modules/rbtree-oset-tests (Makefile.am): Likewise.
24196         * NEWS: Mention the change.
24197
24198 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
24199
24200         maint.mk: allow a project to override release-prep commands
24201         * top/maint.mk (alpha, beta, stable): Move release-preparatory
24202         commands into a new rule.
24203         (release-prep): New rule.
24204         (release-prep-hook): New overridable variable.
24205
24206 2009-12-13  Bruno Haible  <bruno@clisp.org>
24207
24208         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
24209
24210 2009-12-13  Jim Meyering  <meyering@redhat.com>
24211
24212         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
24213         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
24214
24215 2009-12-12  Bruno Haible  <bruno@clisp.org>
24216
24217         duplocale: Tweak.
24218         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
24219
24220 2009-12-12  Karl Berry  <karl@gnu.org>
24221
24222         * config/srclist.txt (strtoll.c): tab changes, no more sync.
24223
24224 2009-12-12  Bruno Haible  <bruno@clisp.org>
24225
24226         * m4/po.m4: Undo incorrect untabification.
24227
24228 2009-12-12  Bruno Haible  <bruno@clisp.org>
24229
24230         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
24231         * modules/c-strtod (Depends-on): Add locale.
24232         * modules/c-strtold (Depends-on): Likewise.
24233
24234 2009-12-12  Bruno Haible  <bruno@clisp.org>
24235
24236         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
24237
24238 2009-12-11  Eric Blake  <ebb9@byu.net>
24239
24240         setenv: relax requirement in light of POSIX ruling
24241         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
24242         not NULL.
24243         * tests/test-setenv.c (main): Relax test.
24244         * tests/test-unsetenv.c (main): Likewise.
24245         * doc/posix-functions/setenv.texi (setenv): Document this.
24246         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
24247
24248 2009-12-11  Bruno Haible  <bruno@clisp.org>
24249
24250         New module 'fd-safer-flag'.
24251         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
24252         * lib/dup-safer.c (dup_safer_flag): Remove function.
24253         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
24254         * lib/fd-safer.c (fd_safer_flag): Remove function.
24255         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
24256         * modules/cloexec (configure.ac): Drop indicator macro.
24257         * modules/fd-safer-flag: New file.
24258         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
24259         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
24260         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
24261
24262 2009-12-11  Bruno Haible  <bruno@clisp.org>
24263
24264         Tests for module 'nl_langinfo'.
24265         * modules/nl_langinfo-tests: New file.
24266         * tests/test-nl_langinfo.sh: New file.
24267         * tests/test-nl_langinfo.c: New file.
24268
24269         New module 'nl_langinfo'.
24270         * lib/nl_langinfo.c: New file.
24271         * m4/nl_langinfo.m4: New file.
24272         * modules/nl_langinfo: New file.
24273         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
24274
24275 2009-12-11  Bruno Haible  <bruno@clisp.org>
24276
24277         Tests for module 'langinfo'.
24278         * modules/langinfo-tests: New file.
24279         * tests/test-langinfo.c: New file.
24280
24281         New module 'langinfo'.
24282         * lib/langinfo.in.h: New file.
24283         * m4/langinfo_h.m4: New file.
24284         * modules/langinfo: New file.
24285         * doc/posix-headers/langinfo.texi: Mention the new module.
24286
24287 2009-12-11  Bruno Haible  <bruno@clisp.org>
24288
24289         * lib/config.charset: Untabify.
24290
24291 2009-12-11  Bruno Haible  <bruno@clisp.org>
24292
24293         * modules/unistd-safer (configure.ac): Drop indicator macro.
24294
24295 2009-12-11  Bruno Haible  <bruno@clisp.org>
24296
24297         Move pipe2-safer code to its own file.
24298         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
24299         * lib/pipe-safer.c (pipe2_safer): Remove function.
24300         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
24301         (Makefile.am): Add it to lib_SOURCES.
24302
24303 2009-12-10  Bruno Haible  <bruno@clisp.org>
24304
24305         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
24306
24307 2009-12-10  Bruno Haible  <bruno@clisp.org>
24308
24309         Declare which arguments expect non-NULL values, for GCC and clang.
24310         * build-aux/arg-nonnull.h: New file.
24311         * modules/arg-nonnull: New file.
24312         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
24313         (inet_ntop, inet_pton): Use it.
24314         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
24315         (closedir, dirfd, opendir, scandir, alphasort): Use it.
24316         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
24317         (open, openat): Use it.
24318         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
24319         (fnmatch): Use it.
24320         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
24321         (getopt, getopt_long, getopt_long_only): Use it.
24322         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
24323         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
24324         Use it.
24325         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
24326         (iconv_open): Use it.
24327         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
24328         (strtoimax, strtoumax): Use it.
24329         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
24330         (duplocale): Use it.
24331         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
24332         (frexp, frexpl): Use it.
24333         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
24334         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
24335         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
24336         (tsearch, tfind, tdelete, twalk): Use it.
24337         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
24338         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
24339         sigpending): Use it.
24340         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
24341         (posix_spawn, posix_spawnp, posix_spawnattr_init,
24342         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
24343         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
24344         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
24345         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
24346         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
24347         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
24348         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
24349         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
24350         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
24351         Use it.
24352         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
24353         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
24354         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
24355         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
24356         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
24357         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
24358         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
24359         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
24360         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
24361         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
24362         strtoull, unsetenv): Use it.
24363         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
24364         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
24365         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
24366         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
24367         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
24368         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
24369         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
24370         (strcasecmp, strncasecmp): Use it.
24371         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
24372         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
24373         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
24374         rpl_setsockopt): Use it.
24375         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
24376         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
24377         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
24378         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
24379         (gettimeofday): Use it.
24380         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
24381         (times): Use it.
24382         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
24383         (uname): Use it.
24384         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
24385         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
24386         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
24387         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
24388         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
24389         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
24390         unlinkat, write): Use it.
24391         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
24392         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
24393         * lib/argv-iter.h: Include arg-nonnull.h.
24394         (_ATTRIBUTE_NONNULL_): Remove macro.
24395         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
24396         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
24397         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
24398         optimization.
24399         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
24400         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
24401         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
24402         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
24403         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
24404         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
24405         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
24406         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
24407         * modules/arpa_inet (Depends-on): Add arg-nonnull.
24408         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
24409         * modules/dirent (Depends-on): Add arg-nonnull.
24410         (Makefile.am): Insert arg-nonnull.h into dirent.h.
24411         * modules/fcntl-h (Depends-on): Add arg-nonnull.
24412         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
24413         * modules/fnmatch (Depends-on): Add arg-nonnull.
24414         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
24415         * modules/getopt-posix (Depends-on): Add arg-nonnull.
24416         (Makefile.am): Insert arg-nonnull.h into getopt.h.
24417         * modules/glob (Depends-on): Add arg-nonnull.
24418         (Makefile.am): Insert arg-nonnull.h into glob.h.
24419         * modules/iconv_open (Depends-on): Add arg-nonnull.
24420         (Makefile.am): Insert arg-nonnull.h into iconv.h.
24421         * modules/inttypes (Depends-on): Add arg-nonnull.
24422         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
24423         * modules/locale (Depends-on): Add arg-nonnull.
24424         (Makefile.am): Insert arg-nonnull.h into locale.h.
24425         * modules/math (Depends-on): Add arg-nonnull.
24426         (Makefile.am): Insert arg-nonnull.h into math.h.
24427         * modules/netdb (Depends-on): Add arg-nonnull.
24428         (Makefile.am): Insert arg-nonnull.h into netdb.h.
24429         * modules/search (Depends-on): Add arg-nonnull.
24430         (Makefile.am): Insert arg-nonnull.h into search.h.
24431         * modules/signal (Depends-on): Add arg-nonnull.
24432         (Makefile.am): Insert arg-nonnull.h into signal.h.
24433         * modules/spawn (Depends-on): Add arg-nonnull.
24434         (Makefile.am): Insert arg-nonnull.h into spawn.h.
24435         * modules/stdio (Depends-on): Add arg-nonnull.
24436         (Makefile.am): Insert arg-nonnull.h into stdio.h.
24437         * modules/stdlib (Depends-on): Add arg-nonnull.
24438         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
24439         * modules/string (Depends-on): Add arg-nonnull.
24440         (Makefile.am): Insert arg-nonnull.h into string.h.
24441         * modules/strings (Depends-on): Add arg-nonnull.
24442         (Makefile.am): Insert arg-nonnull.h into strings.h.
24443         * modules/sys_socket (Depends-on): Add arg-nonnull.
24444         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
24445         * modules/sys_stat (Depends-on): Add arg-nonnull.
24446         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
24447         * modules/sys_time (Depends-on): Add arg-nonnull.
24448         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
24449         * modules/sys_times (Depends-on): Add arg-nonnull.
24450         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
24451         * modules/sys_utsname (Depends-on): Add arg-nonnull.
24452         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
24453         * modules/time (Depends-on): Add arg-nonnull.
24454         (Makefile.am): Insert arg-nonnull.h into time.h.
24455         * modules/unistd (Depends-on): Add arg-nonnull.
24456         (Makefile.am): Insert arg-nonnull.h into unistd.h.
24457         * modules/wchar (Depends-on): Add arg-nonnull.
24458         (Makefile.am): Insert arg-nonnull.h into wchar.h.
24459         * modules/argv-iter (Depends-on): Add arg-nonnull.
24460         * tests/test-canonicalize.c (null_ptr): New function.
24461         (main): Use it.
24462         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
24463         (main): Use it.
24464         * tests/test-memmem.c (null_ptr): New function.
24465         (main): Use it.
24466         Reported by Jim Meyering.
24467
24468 2009-12-10  Bruno Haible  <bruno@clisp.org>
24469
24470         Use spaces for indentation, not tabs.
24471         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
24472         * m4/*.m4: Untabify.
24473         * build-aux/*.h: Untabify.
24474         * tests/**/*.[hc]: Untabify.
24475         * README: New section "Indent with spaces, not TABs", based on
24476         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
24477         * NEWS: Mention the change.
24478
24479 2009-12-10  Bruno Haible  <bruno@clisp.org>
24480
24481         pty test: Fix link error.
24482         * modules/pty-tests (Makefile.am): Add the default LDADD value to
24483         test_pty_LDADD.
24484
24485 2009-12-07  Simon Josefsson  <simon@josefsson.org>
24486
24487         * modules/pty: New file.
24488         * modules/pty-tests: New file.
24489         * m4/pty.m4: New file.
24490         * tests/test-pty.c: New file.
24491         * doc/glibc-headers/pty.texi: Modified.
24492         * doc/glibc-functions/forkpty.texi: Modified.
24493         * doc/glibc-functions/openpty.texi: Modified.
24494
24495 2009-12-10  Bruno Haible  <bruno@clisp.org>
24496
24497         Avoid syntax error in C++ mode.
24498         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
24499
24500 2009-12-10  Bruno Haible  <bruno@clisp.org>
24501
24502         Use sed with option -e.
24503         * gnulib-tool (func_version, func_emit_copyright_notice,
24504         func_emit_initmacro_end, func_import, func_create_testdir): Pass
24505         option -e to sed.
24506         * modules/link-warning (Makefile.am): Likewise.
24507
24508 2009-12-10  Jim Meyering  <meyering@redhat.com>
24509
24510         mgetgroups: do not write bytes beyond end of malloc'd buffer
24511         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
24512         username, we call getgroups with a one-element-shorter buffer,
24513         but still told it the length was original, max_n_groups.
24514
24515 2009-12-09  Eric Blake  <ebb9@byu.net>
24516
24517         cloexec: relax license
24518         * modules/cloexec (Maintainer): Add myself.
24519         (License): Use LGPL, not GPL.
24520
24521         link-warning: optimize generation
24522         * modules/link-warning (Makefile.am): Reduce process usage.
24523
24524 2009-12-09  Bruno Haible  <bruno@clisp.org>
24525
24526         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
24527         workaround was added on 2009-11-17.
24528
24529 2009-12-09  Jim Meyering  <meyering@redhat.com>
24530             Bruno Haible  <bruno@clisp.org>
24531
24532         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
24533         * modules/link-warning (Makefile.am): Make the comment-removing sed
24534         command more robust in the face of bootstrap-prepended comment lines.
24535
24536 2009-12-09  Bruno Haible  <bruno@clisp.org>
24537
24538         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
24539         most one group.
24540
24541 2009-12-09  Simon Josefsson <simon@josefsson.org>
24542             Bruno Haible  <bruno@clisp.org>
24543
24544         * build-aux/link-warning.h: Add copyright notice.
24545         * modules/link-warning (Makefile.am): Generate link-warning.h from
24546         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
24547         * NEWS: Mention change in link-warning module.
24548         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
24549         * modules/dirent (Makefile.am): Add dependency to dirent.h.
24550         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
24551         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
24552         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
24553         * modules/math (Makefile.am): Add dependency to math.h.
24554         * modules/search (Makefile.am): Add dependency to search.h.
24555         * modules/signal (Makefile.am): Add dependency to signal.h.
24556         * modules/spawn (Makefile.am): Add dependency to spawn.h.
24557         * modules/stdio (Makefile.am): Add dependency to stdio.h.
24558         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
24559         * modules/string (Makefile.am): Add dependency to string.h.
24560         * modules/strings (Makefile.am): Add dependency to strings.h.
24561         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
24562         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
24563         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
24564         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
24565         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
24566         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
24567         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
24568         * modules/unistd (Makefile.am): Add dependency to unistd.h.
24569         * modules/wchar (Makefile.am): Add dependency to wchar.h.
24570
24571 2009-12-09  Bruno Haible  <bruno@clisp.org>
24572
24573         fchdir: Optimize away rpl_fstat when possible.
24574         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
24575         REPLACE_OPEN_DIRECTORY.
24576         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
24577
24578 2009-12-09  Bruno Haible  <bruno@clisp.org>
24579
24580         * lib/fchdir.c: Update comment.
24581
24582 2009-12-09  Bruno Haible  <bruno@clisp.org>
24583
24584         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
24585
24586 2009-12-08  Eric Blake  <ebb9@byu.net>
24587
24588         fchdir: avoid memory leak on re-registration.
24589         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
24590
24591 2009-12-08  Jim Meyering  <meyering@redhat.com>
24592
24593         init.sh: avoid Solaris 10 /bin/sh portability problem
24594         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
24595         sourced script:
24596           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
24597           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
24598           bar
24599         tests/init.sh relied on that, accepting a --set-path=DIR argument,
24600         and two tests used that idiom.
24601         * tests/init.sh: Update suggested usage comments.
24602         (path_prepend_): New function, to be used in place
24603         of the --src-path=DIR option.
24604         (setup_): Move PATH-prepending code into path_prepend_.
24605         * tests/test-pread.sh: Adapt to new usage.
24606         * tests/test-xalloc-die.sh: Likewise.
24607
24608 2009-12-08  Simon Josefsson  <simon@josefsson.org>
24609
24610         * doc/gnulib.texi (Glibc pty.h): Add.
24611         * doc/glibc-functions/forkpty.texi: Add.
24612         * doc/glibc-functions/openpty.texi: Add.
24613         Suggested by Bruno Haible.
24614
24615 2009-12-08  Eric Blake  <ebb9@byu.net>
24616
24617         fchdir: fix logic bugs
24618         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
24619         * tests/test-fchdir.c (main): Enhance test.
24620         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
24621         is in use.
24622
24623         dup2: fix logic bugs
24624         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
24625         REPLACE_DUP2 to decide when rpl_dup2 is needed.
24626         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
24627         exists.
24628         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
24629
24630 2009-12-07  Eric Blake  <ebb9@byu.net>
24631
24632         unlink: fix m4 detection
24633         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
24634
24635         unistd-safer: add unit test
24636         * modules/unistd-safer-tests: New file.
24637         * tests/test-dup-safer.c: Likewise.
24638         * tests/test-cloexec.c (setmode): Avoid compiler warning.
24639         * tests/test-dup2.c (setmode): Likewise.
24640         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
24641
24642         cloexec: preserve text vs. binary across dup_cloexec
24643         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
24644         mode.
24645         * modules/dup2-tests (Depends-on): Add binary-io.
24646         * modules/cloexec-tests (Depends-on): Likewise.
24647         * tests/test-dup2.c (setmode, is_mode): New helpers.
24648         (main): Add tests that translation mode is preserved.
24649         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
24650         Reported by Bruno Haible.
24651
24652         mgetgroups: reduce duplicate listings
24653         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
24654         resulting array.
24655         * tests/test-chown.h (test_chown): Simplify client.
24656         * tests/test-lchown.h (test_lchown): Likewise.
24657
24658 2009-12-06  Bruno Haible  <bruno@clisp.org>
24659
24660         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
24661         value.
24662
24663 2009-12-06  Bruno Haible  <bruno@clisp.org>
24664
24665         * lib/progname.c: Include stdio.h, stdlib.h.
24666         (set_program_name): Reject a NULL argument.
24667
24668 2009-12-05  Eric Blake  <ebb9@byu.net>
24669
24670         pipe2-safer: new module
24671         * modules/pipe2-safer: New file.
24672         * lib/unistd-safer.h (pipe2_safer): New prototype.
24673         * lib/unistd--.h (pipe2): New wrapper.
24674         * lib/pipe-safer.c (pipe2_safer): New function.
24675         * modules/pipe (Depends-on): Add pipe2-safer.
24676         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
24677
24678         stdlib-safer: preserve cloexec flag for mkostemp[s]
24679         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
24680         fd_safer_flag.
24681
24682         unistd-safer: allow preservation of cloexec status via flag
24683         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
24684         prototypes.
24685         * lib/dup-safer.c (dup_safer_flag): New function.
24686         * lib/fd-safer.c (fd_safer_flag): Likewise.
24687         * modules/cloexec (configure.ac): Set witness.
24688
24689         test-dup2: enhance test
24690         * modules/dup2-tests (Depends-on): Add cloexec.
24691         * tests/test-dup2.c (main): Enhance test.
24692
24693         cloexec: add dup_cloexec
24694         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
24695         header and comments.
24696         * lib/cloexec.c (set_cloexec_flag): Add comments.
24697         (dup_cloexec): New function, with mingw implementation borrowed
24698         from...
24699         * lib/w32spawn.h (dup_noinherit): ...here.
24700         * modules/execute (Depends-on): Add cloexec.
24701         * modules/pipe (Depends-on): Likewise.
24702         * modules/cloexec (Depends-on): Add dup2.
24703         * modules/cloexec-tests (Files): New file.
24704         * tests/test-cloexec.c: Likewise.
24705
24706         test-xalloc-die: fix test for mingw
24707         * modules/xalloc-die-tests (Files): Add tests/init.sh.
24708         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
24709         directory and .exe suffix off argv[0] output.
24710
24711         test-fseeko: fix test for mingw
24712         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
24713         than undefining fseek, so test will pass on mingw.
24714
24715 2009-12-05  Bruno Haible  <bruno@clisp.org>
24716
24717         * lib/progname.h (set_program_name): Clarify specification.
24718         * lib/progname.c (set_program_name): Likewise.
24719         Reported by Jim Meyering.
24720
24721 2009-12-05  Jim Meyering  <meyering@redhat.com>
24722
24723         maint.mk: backslash-escape parens in default regexp
24724         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
24725         backslash-escape the literal parentheses.
24726
24727         maint.mk: news-date-check: use grep -E
24728         * top/maint.mk (today): Define a Make variable, not a...
24729         (news-date-check): ...shell variable.
24730         (news-date-regexp): Use the Make variable.
24731         Use grep's -E option.  Change the failing diagnostic to mention
24732         the variable, $(news-date-regexp).
24733
24734 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
24735
24736         maintainer-makefile: allow customization of NEWS entry format
24737         * top/maint.mk (news-date-regexp): New overridable variable.
24738         (news-date-check): Use it.
24739
24740 2009-12-04  Eric Blake  <ebb9@byu.net>
24741
24742         mgetgroups: add xgetgroups, and avoid ENOSYS failures
24743         * lib/mgetgroups.h (xgetgroups): New prototype.
24744         * lib/mgetgroups.c (xgetgroups): New wrapper.
24745         (mgetgroups): Handle ENOSYS.
24746         * modules/mgetgroups (Depends-on): Add realloc.
24747         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
24748
24749         mgetgroups: avoid argument promotion issues with -1
24750         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
24751         for invalid gid_t.
24752         * tests/test-chown.h (getegid, test_chown): Likewise.
24753         * tests/test-lchown.h (getegid, test_lchown): Likewise.
24754
24755 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
24756
24757         exclude: Fix header file problems.
24758         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
24759
24760 2009-12-01  Jim Meyering  <meyering@redhat.com>
24761
24762         fts: fts_open: do not let an empty string cause immediate failure
24763         This is required in support of GNU rm, for which the command
24764         "rm A '' B" must process and remove both A and B, in spite of
24765         the empty string argument.
24766         * lib/fts.c (fts_open): Do not let the presence of an empty string
24767         cause fts_open to fail immediately.  Most fts-using tools must be
24768         able to process all arguments, in order, and can be expected to
24769         diagnose such arguments themselves.
24770
24771 2009-11-30  Eric Blake  <ebb9@byu.net>
24772
24773         utimens: fix compilation error
24774         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
24775         Declare variable at right scope.
24776
24777 2009-11-29  Jim Meyering  <meyering@redhat.com>
24778
24779         bootstrap: handle perl-5.11's changed --version output
24780         * build-aux/bootstrap (get_version): Handle perl separately,
24781         since perl-5.11's --version output is different.
24782
24783 2009-11-28  Jim Meyering  <meyering@redhat.com>
24784
24785         userspec: depend on the inttostr module, too
24786         * modules/userspec (Depends-on): Add inttostr.
24787
24788         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
24789         * lib/userspec.c (parse_with_separator): Do not accept a user ID
24790         number of MAXUID when it evaluates to (uid_t) -1.
24791         Likewise for group ID.  Reported by Matt McCutchen in
24792         <http://savannah.gnu.org/bugs/?28113>
24793
24794         userspec: reformat to use spaces, not TABs
24795         * lib/userspec.c: Expand TABs to spaces.
24796         Add Emacs' "indent-tabs-mode: nil" hint.
24797
24798 2009-11-27  Eric Blake  <ebb9@byu.net>
24799
24800         getopt-gnu: flush out another BSD bug
24801         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
24802         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
24803         flush out BSD bug.
24804         * tests/test-getopt.h (test_getopt): End lists with NULL.
24805         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24806         (test_getopt_long_posix): Enhance test.
24807         * modules/getopt-posix-tests (Depends-on): Add stdbool.
24808         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
24809         getopt-gnu.
24810         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24811         Likewise.
24812
24813 2009-11-27  Simon Josefsson  <simon@josefsson.org>
24814
24815         * modules/idpriv-droptemp-tests (Notice): Fix text.
24816
24817 2009-11-27  Jim Meyering  <meyering@redhat.com>
24818
24819         test-xalloc-die: avoid spurious failure due to libtool argv difference
24820         In a libtool-enabled project, this test would fail due to a difference
24821         in the emitted program name, e.g.,
24822         -test-xalloc-die: memory exhausted
24823         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
24824         Use program to avoid that.
24825         * modules/xalloc-die-tests (Depends-on): Add progname.
24826         * tests/test-xalloc-die.c: Include progname.h".
24827         (program_name): Remove decl.
24828         (main): Call set_program_name.
24829         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
24830
24831 2009-11-26  Richard Jones  <rjones@redhat.com>
24832
24833         w32sock: leave win32 error in place.
24834         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
24835
24836 2009-11-26  Eric Blake  <ebb9@byu.net>
24837
24838         init.sh: suggest to use skip_ and fail_ functions in comments
24839         * tests/init.sh: Add a sentence.
24840
24841 2009-11-25  Bruno Haible  <bruno@clisp.org>
24842
24843         init.sh: add documentation in comments
24844         * tests/init.sh: Add some developer and user documentation.
24845
24846 2009-11-26  Jim Meyering  <meyering@redhat.com>
24847
24848         init.sh: accommodate even those who specify bogus srcdir manually
24849         * tests/init.sh: Normally, srcdir is guaranteed by automake and
24850         configure-time tests to be sanitized, so that there is no need to
24851         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
24852         (with no double quotes) suffices.  However, since tests may be
24853         invoked manually, and since you may explicitly set srcdir to the
24854         name of a directory containing spaces, do quote its uses here.
24855         * tests/test-pread.sh: Likewise.
24856         Suggested by Bruno Haible.
24857
24858         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
24859         * tests/test-pread.sh: Write no data into the pipe, because
24860         test-pread actually reads none.  This avoids a diagnostic,
24861         "bash: echo: write error: Broken pipe", that arises in the unusual
24862         event something is ignoring SIGPIPE, and might be interpreted
24863         as some sort of failure.  Reported by Bruno Haible.
24864
24865 2009-11-25  Jim Meyering  <meyering@redhat.com>
24866
24867         test-pread: cover failure with ESPIPE and EINVAL
24868         * tests/test-pread.c (main): Test for failure, too.
24869         * tests/test-pread.sh: Invoke with stdin on a pipe.
24870         Suggested by Eric Blake.
24871
24872         pread: improvement and fix
24873         * modules/pread (Depends-on): Depend on lseek, for portability to
24874         e.g., mingw.  Suggested by Eric Blake.
24875         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
24876
24877         unistd.in.h: correct declaration of pread
24878         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
24879         Reported by Richard W.M. Jones.
24880
24881         test-pread.sh: distribute the test script
24882         * modules/pread-tests (Files): Include test-pread.sh.
24883
24884         test-pread.sh: clean up
24885         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
24886         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
24887         That is unnecessary, since it's always ".".
24888         Suggestion from Eric Blake.
24889
24890         test-pread.sh: make executable
24891         * tests/test-pread.sh: Set executable bit.
24892         Reported by Eric Blake.
24893
24894         correct typo in test-pread.sh
24895         * tests/test-pread.sh: Add #! line.
24896
24897         test pread
24898         * tests/test-pread.c: New file.
24899         * tests/test-pread.sh: Likewise.
24900         * modules/pread-tests: Likewise.
24901
24902         pread: new module
24903         * modules/pread: New file.
24904         * lib/unistd.in.h (pread): Define/declare.
24905         * lib/pread.c (pread): New file.
24906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
24907         * modules/unistd (Makefile.am): Substitute witnesses.
24908         * doc/posix-functions/pread.texi (pread): Update.
24909         * MODULES.html.sh: Add pread.
24910
24911 2009-11-25  Jim Meyering  <meyering@redhat.com>
24912
24913         tests/init.sh: new file to be used via most *.sh tests
24914         * tests/init.sh: New file.
24915
24916 2009-11-25  Eric Blake  <ebb9@byu.net>
24917
24918         utimens: work around older Linux failure with symlinks
24919         * lib/utimens.c (lutimensat_works_really): New variable.
24920         (fdutimens, lutimens): Use it to manage kernels that support
24921         nanosecond times on files, but not on symlinks.
24922         Reported by OndÅ™ej Vašík.
24923
24924         utimes: fix configure grammar
24925         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
24926
24927 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
24928
24929         regex: Fix fastmap for multibyte character ranges.
24930         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
24931         characters when a multibyte character range is included.
24932
24933 2009-11-22  Andy Wingo  <wingo@pobox.com>
24934
24935         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
24936         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
24937
24938 2009-11-24  Bruno Haible  <bruno@clisp.org>
24939
24940         doc: Most *_l functions exist in MacOS X 10.5.
24941         * doc/posix-functions/duplocale.texi: Update platforms list.
24942         * doc/posix-functions/freelocale.texi: Likewise.
24943         * doc/posix-functions/newlocale.texi: Likewise.
24944         * doc/posix-functions/uselocale.texi: Likewise.
24945         * doc/posix-functions/isalnum_l.texi: Likewise.
24946         * doc/posix-functions/isalpha_l.texi: Likewise.
24947         * doc/posix-functions/isblank_l.texi: Likewise.
24948         * doc/posix-functions/iscntrl_l.texi: Likewise.
24949         * doc/posix-functions/isdigit_l.texi: Likewise.
24950         * doc/posix-functions/isgraph_l.texi: Likewise.
24951         * doc/posix-functions/islower_l.texi: Likewise.
24952         * doc/posix-functions/isprint_l.texi: Likewise.
24953         * doc/posix-functions/ispunct_l.texi: Likewise.
24954         * doc/posix-functions/isspace_l.texi: Likewise.
24955         * doc/posix-functions/isupper_l.texi: Likewise.
24956         * doc/posix-functions/iswalnum_l.texi: Likewise.
24957         * doc/posix-functions/iswalpha_l.texi: Likewise.
24958         * doc/posix-functions/iswblank_l.texi: Likewise.
24959         * doc/posix-functions/iswcntrl_l.texi: Likewise.
24960         * doc/posix-functions/iswctype_l.texi: Likewise.
24961         * doc/posix-functions/iswdigit_l.texi: Likewise.
24962         * doc/posix-functions/iswgraph_l.texi: Likewise.
24963         * doc/posix-functions/iswlower_l.texi: Likewise.
24964         * doc/posix-functions/iswprint_l.texi: Likewise.
24965         * doc/posix-functions/iswpunct_l.texi: Likewise.
24966         * doc/posix-functions/iswspace_l.texi: Likewise.
24967         * doc/posix-functions/iswupper_l.texi: Likewise.
24968         * doc/posix-functions/iswxdigit_l.texi: Likewise.
24969         * doc/posix-functions/isxdigit_l.texi: Likewise.
24970         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
24971         * doc/posix-functions/strcasecmp_l.texi: Likewise.
24972         * doc/posix-functions/strcoll_l.texi: Likewise.
24973         * doc/posix-functions/strfmon_l.texi: Likewise.
24974         * doc/posix-functions/strftime_l.texi: Likewise.
24975         * doc/posix-functions/strncasecmp_l.texi: Likewise.
24976         * doc/posix-functions/strxfrm_l.texi: Likewise.
24977         * doc/posix-functions/tolower_l.texi: Likewise.
24978         * doc/posix-functions/toupper_l.texi: Likewise.
24979         * doc/posix-functions/towctrans_l.texi: Likewise.
24980         * doc/posix-functions/towlower_l.texi: Likewise.
24981         * doc/posix-functions/towupper_l.texi: Likewise.
24982         * doc/posix-functions/wcscoll_l.texi: Likewise.
24983         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
24984         * doc/posix-functions/wctrans_l.texi: Likewise.
24985         * doc/posix-functions/wctype_l.texi: Likewise.
24986         * doc/glibc-functions/strptime_l.texi: Likewise.
24987         * doc/glibc-functions/strtod_l.texi: Likewise.
24988         * doc/glibc-functions/strtof_l.texi: Likewise.
24989         * doc/glibc-functions/strtol_l.texi: Likewise.
24990         * doc/glibc-functions/strtold_l.texi: Likewise.
24991         * doc/glibc-functions/strtoll_l.texi: Likewise.
24992         * doc/glibc-functions/strtoul_l.texi: Likewise.
24993         * doc/glibc-functions/strtoull_l.texi: Likewise.
24994         * doc/glibc-functions/wcsftime_l.texi: Likewise.
24995         * doc/glibc-functions/wcstod_l.texi: Likewise.
24996         * doc/glibc-functions/wcstof_l.texi: Likewise.
24997         * doc/glibc-functions/wcstol_l.texi: Likewise.
24998         * doc/glibc-functions/wcstold_l.texi: Likewise.
24999         * doc/glibc-functions/wcstoll_l.texi: Likewise.
25000         * doc/glibc-functions/wcstoul_l.texi: Likewise.
25001         * doc/glibc-functions/wcstoull_l.texi: Likewise.
25002
25003 2009-11-24  Bruno Haible  <bruno@clisp.org>
25004
25005         duplocale: Fix logic bug.
25006         * lib/duplocale.c: Don't include <langinfo.h>.
25007         (_NL_LOCALE_NAME): Remove macro.
25008         (rpl_duplocale): Use setlocale instead of nl_langinfo.
25009         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
25010
25011 2009-11-23  Jim Meyering  <meyering@redhat.com>
25012
25013         test-update-copyright: don't hard-code /usr/bin/perl
25014         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
25015         perl to print the current year.  Gilles Espinasse reported that
25016         the replaced use of perl was hard-coded as /usr/bin/perl.
25017
25018 2009-11-23  Bruno Haible  <bruno@clisp.org>
25019
25020         duplocale: Add support for glibc 2.3.x.
25021         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
25022
25023 2009-11-22  Bruno Haible  <bruno@clisp.org>
25024
25025         vasnprintf: Tiny optimization.
25026         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
25027         MacOS X.
25028
25029 2009-11-22  Bruno Haible  <bruno@clisp.org>
25030
25031         Tests for module 'duplocale'.
25032         * modules/duplocale-tests: New file.
25033         * tests/test-duplocale.c: New file.
25034
25035         New module 'duplocale'.
25036         * m4/duplocale.m4: New file.
25037         * lib/locale.in.h (duplocale): New declaration.
25038         * lib/duplocale.c: New file.
25039         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
25040         gl_LOCALE_H_DEFAULTS): New macros.
25041         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
25042         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
25043         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
25044         REPLACE_DUPLOCALE.
25045         * modules/duplocale: New file.
25046         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
25047
25048 2009-11-22  Bruno Haible  <bruno@clisp.org>
25049
25050         * modules/locale-tests (configure.ac): Test for newlocale function.
25051         * tests/test-locale.c: When the system has extended locale functions,
25052         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
25053
25054         locale: Make locale_t available when possible.
25055         * lib/locale.in.h: Include <xlocale.h> when it exists.
25056         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
25057         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
25058         * modules/locale (Depends-on): Add extensions.
25059         (Makefile.am): Also substitute HAVE_XLOCALE_H.
25060         * doc/posix-headers/locale.texi: Document the problem with locale_t.
25061
25062 2009-11-22  Bruno Haible  <bruno@clisp.org>
25063
25064         Add comments.
25065         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
25066         invocation.
25067         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
25068         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25069         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25070
25071 2009-11-22  Bruno Haible  <bruno@clisp.org>
25072
25073         error: account for the possibility of freopen (stdout).
25074         * lib/error.c: Include <unistd.h>.
25075         (flush_stdout): New function, extracted from error and error_at_line.
25076         Determine stdout's fd dynamically.
25077         (error, error_at_line): Invoke flush_stdout.
25078         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
25079         * modules/error (Depends-on): Add unistd.
25080
25081 2009-11-22  Bruno Haible  <bruno@clisp.org>
25082
25083         diffseq: Add comment.
25084         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
25085
25086 2009-11-22  Jim Meyering  <meyering@redhat.com>
25087
25088         c-stack: avoid defining an unused static function
25089         * lib/c-stack.c (find_stack_direction): Do not define this function
25090         when it will not be used.
25091
25092         diffseq: avoid spurious gcc warnings
25093         * lib/diffseq.h (IF_LINT2): Define.
25094         (compareseq): Use it to initialize two members of "part".
25095         This avoids two used-uninitialized warnings.
25096
25097 2009-11-21  Jim Meyering  <meyering@redhat.com>
25098
25099         c-stack: avoid "ignoring return value of `write'" warning
25100         * lib/c-stack.c: Include "ignore-value.h".
25101         (die): Explicitly ignore each write return value.
25102         * modules/c-stack (Depends-on): Add ignore-value.
25103
25104 2009-11-21  Bruno Haible  <bruno@clisp.org>
25105
25106         diffseq: reduce scope of variable 'best'.
25107         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
25108         variable, earlier used for two different purposes.
25109
25110 2009-11-21  Jim Meyering  <meyering@redhat.com>
25111
25112         diffseq: remove useless assignment to "best"
25113         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
25114         assignment.  At that point "best" is already guaranteed to be zero.
25115
25116 2009-11-20  Eric Blake  <ebb9@byu.net>
25117
25118         build: mention ftp redirector in release announcements
25119         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
25120         values that used to come from cfg.mk; mention FTP redirect URL.
25121         * build-aux/announce-gen: Mention the mirror list.
25122         Suggested by Karl Berry.
25123
25124         nanosleep: improve port to mingw
25125         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
25126         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
25127         LIB_NANOSLEEP, but only when needed.
25128         * modules/select (Link): Document LIBSOCKET.
25129         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
25130         enough.
25131
25132         nanosleep: work around cygwin bug
25133         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
25134         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
25135         bug.
25136         (getnow): Delete, not needed.
25137         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
25138         LIB_CLOCK_GETTIME.
25139         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
25140         clock-time, gettime.
25141         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
25142         bug.
25143         * modules/nanosleep-tests: New test.
25144         * tests/test-nanosleep.c: New file.
25145
25146         sleep: work around cygwin bug
25147         * lib/sleep.c (rpl_sleep): Work around the bug.
25148         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
25149         (gl_PREREQ_SLEEP): Delete unused macro.
25150         * modules/sleep (Depends-on): Add verify.
25151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25152         * modules/unistd (Makefile.am): Substitute witness.
25153         * lib/unistd.in.h (sleep): Update prototype.
25154         * doc/posix-functions/sleep.texi (sleep): Document the bug.
25155         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
25156         * modules/sleep-tests (Depends-on): Check for alarm.
25157
25158 2009-11-20  Jim Meyering  <meyering@redhat.com>
25159
25160         maint.mk: improve sc_prohibit_magic_number_exit
25161         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
25162         so it does not match uses like System.exit(1).
25163         Add comments showing how to correct all offenders.
25164
25165 2009-11-19  Eric Blake  <ebb9@byu.net>
25166
25167         xalloc-die-tests: add missing library
25168         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
25169
25170         test-xvasprintf: silence compiler warnings
25171         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
25172         empty string from gcc.
25173
25174 2009-11-19  Jim Meyering  <meyering@redhat.com>
25175
25176         xfreopen: new module, from coreutils
25177         * modules/xfreopen: New module.
25178         * lib/xfreopen.c: New file.
25179         * lib/xfreopen.h: New file.
25180         * MODULES.html.sh (File stream based Input/Output"): Add it.
25181
25182 2009-11-19  Eric Blake  <ebb9@byu.net>
25183
25184         manywarnings: depend on warnings
25185         * modules/manywarnings (Depends-on): Add warnings.
25186
25187         build: avoid compiler warnings
25188         * lib/select.c (rpl_select): Delete unused variable.
25189         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
25190
25191 2009-11-18  Eric Blake  <ebb9@byu.net>
25192
25193         tests: avoid false negative with --with-packager
25194         * tests/test-version-etc.sh: Discard packager information.
25195         * tests/test-argp-version-etc-1.sh: Likewise.
25196         Reported by Mike Frysinger.
25197
25198         utimens: fix regression on Solaris
25199         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
25200         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
25201         can only change fd timestamps via futimesat.  Instead, use an
25202         additional witness macro to avoid BSD bug.
25203         Reported by Jim Meyering.
25204
25205 2009-11-17  Eric Blake  <ebb9@byu.net>
25206
25207         usleep: use it to simplify tests
25208         * modules/stat-time-tests (Depends-on): Add usleep.
25209         (configure.ac): Drop usleep check.
25210         * modules/chown-tests (Depends-on, configure.ac): Likewise.
25211         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
25212         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
25213         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
25214         * modules/openat-tests (Depends-on, configure.ac): Likewise.
25215         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
25216         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
25217         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
25218         Likewise.
25219         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
25220         * tests/test-lchown.h (nap): Likewise.
25221         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
25222         * tests/test-stat-time.c (nap): Likewise.
25223         * tests/test-utimens-common.h (nap): Update comments.
25224
25225         usleep: new module
25226         * modules/usleep: New file.
25227         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
25228         * lib/usleep.c (usleep): Likewise.
25229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25230         * modules/unistd (Makefile.am): Substitute witnesses.
25231         * lib/unistd.in.h (usleep): Add declaration.
25232         * doc/pastposix-functions/usleep.texi (usleep): Document this.
25233         * MODULES.html.sh (Date and time): Likewise.
25234         * modules/usleep-tests (Depends-on): New test.
25235         * tests/test-usleep.c: New file.
25236
25237         chown: work around OpenBSD bug
25238         * lib/chown.c (rpl_chown): Work around the bug.
25239         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
25240         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
25241         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
25242         * modules/chown (Depends-on): Add stdbool.
25243         * modules/lchown (Depends-on): Likewise.
25244         * doc/posix-functions/chown.texi (chown): Document the bug.
25245         * doc/posix-functions/lchown.texi (lchown): Likewise.
25246         * tests/test-lchown.h (test_chown): Relax test.
25247
25248         mkstemp: avoid conflict with C++ keyword template
25249         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
25250         * lib/mkostemp.c (mkostemp): Likewise.
25251         * lib/mkostemps.c (mkostemps): Likewise.
25252         * lib/mkstemp.c (mkstemp): Likewise.
25253         * lib/mkstemps.c (mkstemps): Likewise.
25254
25255         xalloc-die-tests: optimize
25256         * tests/test-xalloc-die.sh: Reduce number of processes.
25257
25258 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25259
25260         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
25261         patch from ludo@gnu.org (Ludovic Courtès).
25262
25263 2009-11-17  Jim Meyering  <meyering@redhat.com>
25264
25265         version-etc: use proper license string
25266         * modules/version-etc (License): Use LGPL, not LGPLv3+.
25267         * modules/version-etc-fsf: Likewise.
25268
25269 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25270
25271         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
25272         printed to stdout.  Deal with EOL differences.
25273
25274 2009-11-17  Eric Blake  <ebb9@byu.net>
25275
25276         unsetenv: work around Solaris bug
25277         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
25278         * lib/unsetenv.c (rpl_unsetenv): Work around it.
25279         Reported by Jim Meyering.
25280
25281         vasnprintf: avoid compiler warnings
25282         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
25283         variables.
25284         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
25285
25286 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25287
25288         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
25289         settings since xalloc-die is no longer the self test,
25290         xalloc-die.sh is.
25291
25292 2009-11-17  Jim Meyering  <meyering@redhat.com>
25293
25294         test-xalloc-die.sh: make the code agree with the commit log
25295         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
25296         at the end, just in case you happen to have a test-xalloc-die
25297         program in some other PATH directory.
25298
25299         test-xalloc-die.sh: fix a portability bug
25300         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
25301         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
25302         Otherwise, argv[0] (as often seen in diagnostics) would be too
25303         system-dependent, sometimes with, and sometimes without the leading "./".
25304
25305         version-etc-fsf: relax license to LGPLv3+
25306         * modules/version-etc-fsf (License): Relax license.
25307
25308 2009-11-16  Eric Blake  <ebb9@byu.net>
25309
25310         xalloc-die-tests: avoid printing null pointer
25311         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
25312         shell script.
25313         * tests/test-xalloc-die.c (program_name): Declare.
25314         * tests/test-xalloc-die.sh (tmpfiles): New file.
25315
25316         setenv, unsetenv: work around various bugs
25317         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
25318         (setenv) [HAVE_SETENV]: Work around bugs.
25319         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
25320         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
25321         for bugs.
25322         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
25323         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
25324         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
25325         * modules/stdlib (Makefile.am): Update substitutions.
25326         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
25327         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
25328         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
25329         * modules/setenv-tests: New test.
25330         * modules/unsetenv-tests: Likewise.
25331         * tests/test-setenv.c: New file.
25332         * tests/test-unsetenv.c: Likewise.
25333
25334 2009-11-16  Jim Meyering  <meyering@redhat.com>
25335
25336         version-etc: relax license to LGPLv3+
25337         * modules/version-etc (License): Relax license.
25338
25339         better AC_REQUIRE expanded-before-required-warning avoidance
25340         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
25341         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
25342         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
25343         which is no longer needed.
25344
25345 2009-11-16  Eric Blake  <ebb9@byu.net>
25346
25347         test-freading: clean up temporary file
25348         * tests/test-freading.c (main): Remove file on success, and use
25349         ASSERT more liberally.
25350         Reported by Jim Meyering.
25351
25352 2009-11-16  Jim Meyering  <meyering@redhat.com>
25353
25354         avoid new AC_REQUIRE expanded-before-required warnings
25355         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
25356         merely using it.
25357         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
25358         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
25359
25360 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25361
25362         * tests/test-xalloc-die.c: New file.
25363         * modules/xalloc-die-tests: New file.
25364         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
25365         XFAIL_TESTS so it can be appended by modules.
25366
25367 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25368
25369         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
25370         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
25371
25372 2009-11-14  Eric Blake  <ebb9@byu.net>
25373
25374         fnmatch: avoid compiler warning
25375         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
25376         to silence compiler warning about mismatch signedness in ?:.
25377         Reported by Robert Millan.
25378
25379         intprops: add double-inclusion guard
25380         * lib/intprops.h: Allow idempotent includes.
25381         Suggested by Bruce Korb.
25382
25383         openat: detect Solaris fchownat bug
25384         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
25385         penalizing glibc chownat when only lchownat is broken.
25386         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
25387         trailing slash bugs.
25388         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
25389         * modules/openat-tests (Files): Include more files.
25390         (Depends-on): Add mgetgroups, sleep, stat-time.
25391         (configure.ac): Add additional checks.
25392         (Makefile.am): Build new test.
25393         * tests/test-fchownat.c: New file.
25394
25395         lchown: detect Solaris and FreeBSD bug
25396         * lib/lchown.c (rpl_lchown): Work around bug.
25397         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
25398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25399         * modules/unistd (Makefile.am): Populate it.
25400         * lib/unistd.in.h (lchown): Update declaration.
25401         * doc/posix-functions/lchown.texi (lchown): Document the bug.
25402         * modules/lchown-tests: New file.
25403         * tests/test-lchown.h (test_lchown): Likewise.
25404         * tests/test-lchown.c (main): Likewise.
25405
25406         chown: detect Solaris and FreeBSD bug
25407         * lib/chown.c (rpl_chown): Work around bug.
25408         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
25409         (gl_PREREQ_CHOWN): Delete.
25410         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25411         * modules/unistd (Makefile.am): Populate it.
25412         * lib/unistd.in.h (chown): Update declaration.
25413         * lib/lchown.c (chown): Update client.
25414         * modules/lchown (Depends-on): Add lstat.
25415         * doc/posix-functions/chown.texi (chown): Document the bug.
25416         * doc/posix-functions/getgroups.texi (getgroups): Document
25417         getgroups pitfall.
25418         * modules/chown-tests: New file.
25419         * tests/test-chown.h (test_chown): Likewise.
25420         * tests/test-chown.c (main): Likewise.
25421
25422 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
25423
25424         gnulib-tool: correctly detect absence of m4 directories
25425         * gnulib-tool: Avoid extra newline on data passed to wc -l.
25426
25427 2009-11-14  Jim Meyering  <meyering@redhat.com>
25428
25429         maint.mk: Prohibit inclusion of "xalloc.h" without use.
25430         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25431
25432 2009-11-14  John W. Eaton  <jwe@gnu.org>
25433
25434         strftime.h: wrap funtion declaration in extern "C" block
25435         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
25436
25437 2009-11-13  Eric Blake  <ebb9@byu.net>
25438
25439         getgroups: avoid compiler warning
25440         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
25441
25442         getgroups: work around FreeBSD bug
25443         * lib/getgroups.c (rpl_getgroups): Work around the bug.
25444         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
25445         * doc/posix-functions/getgroups.texi (getgroups): Document it.
25446         * tests/test-getgroups.c (main): Fix buffer overrun.
25447
25448         getgroups: avoid compilation failure
25449         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
25450         * modules/getgroups (Depends-on): Add stdint.
25451
25452 2009-11-13  Jim Meyering  <meyering@redhat.com>
25453
25454         test-getgroups: avoid compilation failure
25455         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
25456
25457 2009-11-13  Eric Blake  <ebb9@byu.net>
25458
25459         mgetgroups: new module, taken from coreutils
25460         * modules/mgetgroups: New file.
25461         * lib/mgetgroups.h: Likewise.
25462         * lib/mgetgroups.c (mgetgroups): Likewise.
25463         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
25464         * MODULES.html.sh (Users and groups): Mention it.
25465
25466         getgroups: don't expose GETGROUPS_T to user
25467         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
25468         an element at a time if GETGROUPS_T is wrong size.
25469         * lib/getugroups.h (getugroups): Change signature.
25470         * lib/unistd.in.h (getgroups): Likewise.
25471         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
25472         signature needs fixing.
25473         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
25474         AC_TYPE_GETGROUPS.
25475         * modules/group-member (Depends-on): Add getgroups.
25476         * lib/group-member.c (group_info, get_group_info): Use gid_t.
25477         (group_member): Rely on getgroups replacement.
25478         * lib/getugroups.c (getugroups): Use gid_t.
25479         * tests/test-getgroups.c (main): Likewise.
25480         * NEWS: Mention the signature change.
25481         * doc/posix-functions/getgroups.texi (getgroups): Mention the
25482         problem with signature.
25483         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
25484         GETGROUPS_T is still useful for setgroups.
25485
25486         getgroups, getugroups: provide stubs for mingw
25487         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
25488         * lib/getugroups.c (getugroups): Likewise.
25489         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
25490         function.  Modernize replacement scheme.
25491         (gl_PREREQ_GETGROUPS): Delete.
25492         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
25493         * modules/getgroups (configure.ac): Declare witness.
25494         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25495         * modules/unistd (Depends-on): Substitute witness.
25496         * lib/unistd.in.h (getgroups): Declare replacement.
25497
25498         getgroups: avoid calling exit
25499         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
25500         drop xalloc.
25501         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
25502         dependencies.
25503         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
25504         exiting, in the rare case of malloc failure.
25505
25506         getgroups: fix logic error
25507         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
25508         has more than 20 groups.
25509         * modules/getgroups-tests: New test.
25510         * tests/test-getgroups.c: New file.
25511
25512 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25513
25514         * tests/test-base64.c: Improve.
25515
25516 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25517
25518         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
25519         Blake <ebb9@byu.net>.
25520
25521 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25522
25523         * tests/test-xvasprintf.c: Add %s%s related checks.
25524
25525 2009-11-12  Eric Blake  <ebb9@byu.net>
25526
25527         version-etc: match standards.texi style
25528         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
25529         and use <> only for URLs.
25530
25531 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
25532
25533         fts: do not fail on a submount during traversal
25534         * lib/fts.c (fts_build): Read the stat info again after opening
25535         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
25536         Original report at http://bugzilla.redhat.com/501848.
25537
25538 2009-11-12  Jim Meyering  <meyering@redhat.com>
25539
25540         bootstrap: sync from coreutils
25541         * build-aux/bootstrap (bootstrap_epilogue): New function.
25542         Use git_modules_config in one more place.  This make bootstrap's
25543         --gnulib-srcdir option more useful for testing.
25544
25545         bootstrap: generalize autoheader check
25546         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
25547         AC_CONFIG_HEADERS.
25548
25549 2009-11-11  Eric Blake  <ebb9@byu.net>
25550
25551         mkfifoat: use new modules for Solaris and BSD bugs
25552         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
25553         * lib/mkfifoat.c (mknodat): Split...
25554         * lib/mknodat.c (mknodat): ...into new file.
25555         * modules/mkfifoat (Files): Ship new file.
25556         (Depends-on): Add mkfifo, mknod.
25557         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
25558         (Depends-on): Add symlink.
25559         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
25560         redundant with test_mkfifo.h.
25561         (do_mkfifoat, do_mknodat): New helpers.
25562
25563         mknod: new module
25564         * modules/mknod: New file.
25565         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
25566         * lib/mknod.c (mknod): Likewise.
25567         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
25568         defaults.
25569         * modules/sys_stat (Makefile.am): Substitute them.
25570         * lib/sys_stat.in.h (mknod): Declare replacement.
25571         * MODULES.html.sh (Support for systems lacking POSIX:2008):
25572         Document it.
25573         * doc/posix-functions/mknod.texi (mknod): Likewise.
25574         * modules/mknod-tests: New test.
25575         * tests/test-mknod.c: Likewise.
25576
25577         mkfifo: new module
25578         * modules/mkfifo: New file.
25579         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
25580         * lib/mkfifo.c (mkfifo): Likewise.
25581         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
25582         defaults.
25583         * modules/sys_stat (Makefile.am): Substitute them.
25584         * lib/sys_stat.in.h (mkfifo): Declare replacement.
25585         * MODULES.html.sh (Support for systems lacking POSIX:2008):
25586         Document it.
25587         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
25588         * modules/mkfifo-tests: New test.
25589         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
25590         from test-mkfifoat.c.
25591         * tests/test-mkfifo.c: New file.
25592
25593         readlink: detect FreeBSD bug
25594         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
25595         slash on symlink.
25596         * doc/posix-functions/readlink.texi (readlink): Document the bug.
25597         * tests/test-readlink.h (test_readlink): Enhance test.
25598
25599         symlink: detect FreeBSD bug
25600         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
25601         slash on symlink.
25602         * doc/posix-functions/symlink.texi (symlink): Document the bug.
25603         * tests/test-symlink.h (test_symlink): Enhance test.
25604
25605 2009-11-10  Eric Blake  <ebb9@byu.net>
25606
25607         link: detect FreeBSD bug
25608         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
25609         symlink.
25610         * doc/posix-functions/link.texi (link): Document the bug.
25611         * tests/test-link.h (test_link): Enhance test.
25612         * tests/test-linkat.c (main): Update caller.
25613
25614         unlink, remove: detect FreeBSD bug
25615         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
25616         slash on symlink.
25617         * doc/posix-functions/unlink.texi (unlink): Document the bug.
25618         * doc/posix-functions/remove.texi (remove): Likewise.
25619         * tests/test-unlink.h (test_unlink): Enhance test.
25620         * tests/test-remove.c (main): Likewise.
25621
25622 2009-11-09  Eric Blake  <ebb9@byu.net>
25623
25624         rename: detect FreeBSD bug
25625         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
25626         slash on symlink.
25627         * modules/renameat-tests (Depends-on): Add filenamecat.
25628         * tests/test-rename.h (test_rename): Allow one more errno.
25629         * tests/test-renameat.c (main): Likewise.
25630         * doc/posix-functions/rename.texi (rename): Document the bug.
25631
25632         open: detect FreeBSD bug
25633         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
25634         symlink.
25635         * doc/posix-functions/open.texi (open): Document the bug.
25636         * doc/posix-functions/utimes.texi (utimes): Likewise.
25637         * tests/test-open.h (test_open): Add parameters, and test symlink
25638         handling.
25639         * tests/test-open.c (main): Adjust caller.
25640         * tests/test-fcntl-safer.c (main): Likewise.
25641         * modules/open-tests (Depends-on): Add stdbool, symlink.
25642         * modules/fcntl-safer-tests (Depends-on): Likewise.
25643         * tests/test-openat.c (main): Add test-open tests.
25644
25645         stat: detect FreeBSD bug
25646         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
25647         symlink.
25648         * doc/posix-functions/stat.texi (stat): Document the bug.
25649         * tests/test-stat.h (test_stat_func): Add argument.
25650         * tests/test-stat.c (main): Adjust caller.
25651         * tests/test-fstatat.c (main): Likewise.
25652         * modules/stat-tests (Depends-on): Add stdbool, symlink.
25653         Reported by Jim Meyering.
25654
25655 2009-11-09  James Youngman  <jay@gnu.org>
25656
25657         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
25658         * lib/strftime.c: Correct placement of #include "ignore-value.h".
25659
25660 2009-11-08  Jim Meyering  <meyering@redhat.com>
25661
25662         utimens: remove invalid futimesat call
25663         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
25664         It used the file descriptor of the target file as the DIR_FD
25665         parameter and NULL as the file name.  That caused failure with
25666         errno == EFAULT on FreeBSD-8.0-rc2
25667
25668 2009-11-07  Eric Blake  <ebb9@byu.net>
25669
25670         fflush, freadseek: use fseeko, not fseek
25671         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
25672         (clear_ungetc_buffer): Avoid potential problems on large files.
25673         * lib/freadseek.c (freadseek): Likewise.
25674         * modules/freadseek (Depends-on): Add fseeko.
25675         * modules/fseek (configure.ac): Set a witness.
25676         * tests/test-fflush.c (main): Use fseeko.
25677         * tests/test-fpurge.c (fseek): Disable link warning.
25678         * tests/test-freadable.c (fseek): Likewise.
25679         * tests/test-freading.c (fseek): Likewise.
25680         * tests/test-fseeko.c (fseek): Likewise.
25681         * tests/test-ftell.c (fseek): Likewise.
25682         * tests/test-ftello.c (fseek): Likewise.
25683         * tests/test-fwritable.c (fseek): Likewise.
25684         * tests/test-fwriting.c (fseek): Likewise.
25685
25686 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25687
25688         * modules/memchr (Depends-on): Drop getpagesize dependency.
25689
25690 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25691
25692         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
25693         Reported by Ludovic Courtès.
25694         * build-aux/pmccabe2html: Improve example usage.
25695         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
25696
25697 2009-11-06  Jim Meyering  <meyering@redhat.com>
25698
25699         do-release-commit-and-tag: New module.
25700         Automate the release-commit and tag process.
25701         * build-aux/do-release-commit-and-tag: New script, from coreutils.
25702         * modules/do-release-commit-and-tag: New file.
25703         * MODULES.html.sh (Support for maintaining and releasing): Add it.
25704
25705 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25706
25707         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
25708         because test-select.c uses inet_pton.
25709
25710 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25711
25712         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
25713         GETADDRINFO_LIB.  Bump serial number.
25714         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
25715         Suggested by Eric Blake <ebb9@byu.net>.
25716
25717 2009-11-05  Eric Blake  <ebb9@byu.net>
25718
25719         strtod: detect darwin bug
25720         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
25721         Reported by Leo Davis.
25722
25723         freopen-safer: new module
25724         * modules/freopen-safer: New module.
25725         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
25726         * lib/freopen-safer.c (freopen_safer): New file.
25727         * lib/stdio-safer.h (freopen_safer): New declaration.
25728         * lib/stdio--.h (freopen): New override.
25729         * MODULES.html.sh (File stream based Input/Output): Mention it.
25730         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
25731         freopen-safer module.
25732         * doc/posix-functions/stderr.texi (stderr): Likewise.
25733         * doc/posix-functions/stdin.texi (stdin): Likewise.
25734         * doc/posix-functions/stdout.texi (stdout): Likewise.
25735         * modules/freopen-safer-tests: New test.
25736         * tests/test-reopen-safer.c: New file.
25737
25738 2009-11-05  Jim Meyering  <meyering@redhat.com>
25739
25740         maint.mk: Prohibit inclusion of "close-stream.h" without use.
25741         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25742
25743 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25744
25745         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
25746
25747 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25748
25749         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
25750
25751 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25752
25753         Fix link error.
25754         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
25755         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25756
25757 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25758
25759         * tests/test-func.c: Also test value of __func__.
25760
25761 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25762
25763         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
25764         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
25765
25766 2009-11-05  Bruno Haible  <bruno@clisp.org>
25767
25768         Fix link error.
25769         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
25770         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25771         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
25772
25773 2009-11-05  Bruno Haible  <bruno@clisp.org>
25774
25775         Tests for module 'inet_pton'.
25776         * modules/inet_pton-tests: New file.
25777         * tests/test-inet_pton.c: New file.
25778
25779 2009-11-05  Bruno Haible  <bruno@clisp.org>
25780
25781         Tests for module 'inet_ntop'.
25782         * modules/inet_ntop-tests: New file.
25783         * tests/test-inet_ntop.c: New file.
25784
25785 2009-11-04  Eric Blake  <ebb9@byu.net>
25786
25787         stdlib-safer: wrap all mkstemp variants
25788         * modules/mkostemp (configure.ac): Set witness.
25789         * modules/mkostemps (configure.ac): Likewise.
25790         * modules/mkstemps (configure.ac): Likewise.
25791         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
25792         (mkstemps_safer): Wrap more functions.
25793         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
25794         wrapping.
25795         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
25796         (mkstemps_safer): Implement the wrappers.
25797
25798         mkstemps, mkostemps: new modules
25799         * modules/mkostemps: New module.
25800         * modules/mkstemps: Likewise.
25801         * lib/mkostemps.c (mkostemps): New file.
25802         * lib/mkstemps.c (mkstemps): Likewise.
25803         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
25804         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
25805         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
25806         * modules/stdlib (Makefile.am): Substitute them.
25807         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
25808         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
25809         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25810         * doc/gnulib.texi (Glibc stdlib.h): Include them.
25811         * MODULES.html.sh (File system functions): Mention them.
25812
25813         tempname: resync from glibc
25814         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
25815         same values for __GT_FILE as glibc.  Abort even when assertions
25816         are disabled.
25817         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
25818         match its value otherwise.  Allow idempotent inclusion.
25819         * lib/mkdtemp.c (mkdtemp): Adjust caller.
25820         * lib/mkostemp.c (mkostemp): Likewise.
25821         * lib/mkstemp.c (mkstemp): Likewise.
25822         * lib/tmpfile.c (tmpfile): Likewise.
25823         * NEWS: Document this.
25824
25825         utimens: fix use of futimens on older Linux
25826         * lib/utimens.c (fdutimens): Use updated, rather than original,
25827         timespec to avoid bug in older Linux kernel.
25828         Reported by Simon Josefsson.
25829
25830 2009-11-04  Bruno Haible  <bruno@clisp.org>
25831
25832         Make num_processors more flexible and consistent.
25833         * lib/nproc.h (enum nproc_query): New type.
25834         (num_processors): Add a 'query' argument.
25835         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
25836         (num_processors): Add a 'query' argument. Test the value of the
25837         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
25838         mingw, count the number of CPUs available for the current process.
25839         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
25840         Check for sched_getaffinity and sched_getaffinity_np.
25841         * modules/nproc (Depends-on): Add c-ctype, extensions.
25842         * NEWS: Mention the change.
25843
25844 2009-11-03  Bruno Haible  <bruno@clisp.org>
25845
25846         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
25847
25848 2009-11-03  Jim Meyering  <meyering@redhat.com>
25849
25850         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
25851         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
25852         if it is defined.
25853
25854 2009-11-02  Eric Blake  <ebb9@byu.net>
25855
25856         mktime, timegm: share common declaration
25857         * lib/mktime-internal.h: New file.
25858         * lib/mktime.c: Use it rather than open-coding a declaration.
25859         * lib/timegm.c: Likewise.
25860         * modules/mktime (Files): Ship it.
25861         * modules/timegm (Files): Likewise.
25862         Suggested by Bruno Haible.
25863
25864         test-update-copyright: update test to match script changes
25865         * tests/test-update-copyright.sh: Avoid hard-coding perl
25866         location.  Don't update *.bak created by earlier runs.
25867
25868 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
25869             Simon Josefsson  <simon@josefsson.org>
25870             Bruno Haible  <bruno@clisp.org>
25871
25872         Fix link error on Solaris 8.
25873         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
25874         also in libnsl. Define also INET_PTON_LIB.
25875         * modules/inet_pton (Link): New section.
25876
25877 2009-11-02  Simon Josefsson  <simon@josefsson.org>
25878             Bruno Haible  <bruno@clisp.org>
25879
25880         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
25881         * modules/inet_ntop (Link): New section.
25882         Reported by Boyan Kasarov <bkasarov@gmail.com>.
25883
25884 2009-11-02  Eric Blake  <ebb9@byu.net>
25885
25886         maint: avoid compiler warnings in m4 macros
25887         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
25888         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
25889
25890 2009-11-02  Simon Josefsson  <simon@josefsson.org>
25891
25892         * m4/pmccabe2html.m4: Remove file.
25893         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
25894         function.  Change maintainer.
25895         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
25896         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
25897         Courtès).
25898
25899 2009-10-31  Eric Blake  <ebb9@byu.net>
25900
25901         fseeko: fix m4 regression
25902         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
25903         regression from 2009-10-27.
25904         Reported by Ralf Wildenhues.
25905
25906 2009-10-31  Jim Meyering  <meyering@redhat.com>
25907
25908         inttostr: aesthetics and improved (compile-time) safety
25909         Define inttype_is_signed rather than inttype_is_unsigned,
25910         since the sole use is via "#if inttype_is_signed".
25911         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
25912         inttype_is_unsigned.
25913         * lib/offtostr.c (inttype_is_signed): Likewise.
25914         * lib/uinttostr.c (inttype_is_signed): Likewise.
25915         * lib/umaxtostr.c (inttype_is_signed): Likewise.
25916         * lib/inttostr.c (inttostr): Use verify to cross-check the
25917         inttype_is_signed value and the signedness of the actual type.
25918         * modules/inttostr (Depends-on): Add verify.
25919
25920 2009-10-30  Eric Blake  <ebb9@byu.net>
25921
25922         build: avoid compiler warnings
25923         * lib/fchmodat.c (lchmod): Mark unused variables.
25924         * lib/getopt.c (_getopt_initialize): Likewise.
25925         * lib/mktime.c (__mktime_internal): Provide prototype.
25926         * lib/inttostr.c (inttostr): Avoid compiler warning even with
25927         older gcc that do not understand #pragma GCC diagnostic.
25928         * lib/uinttostr.c (inttype_is_unsigned): Define.
25929         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
25930
25931 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
25932
25933         stat: fix compilation on AIX
25934         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
25935         only see struct stat64.
25936
25937 2009-10-30  Eric Blake  <ebb9@byu.net>
25938
25939         exclude: make more robust
25940         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
25941         rather than masking a coding bug.
25942         Suggested by Bruno Haible.
25943
25944 2009-10-30  Jim Meyering  <meyering@redhat.com>
25945
25946         perl scripts: remove #!/usr/bin/perl in favor of more portable...
25947         Rather than putting #!/usr/bin/perl on the first line,
25948         start with a variant of what's recommended by "man perlrun" that
25949         invokes the first "perl" program from your shell's search path.
25950         * build-aux/gitlog-to-changelog: Replace #!... as above.
25951         Add a "Local Variables" perl mode setting.
25952         Prompted by a patch from Ludovic Courtès.
25953         Improved by Eric Blake.
25954         * build-aux/useless-if-before-free: Likewise.
25955         * build-aux/announce-gen: Likewise.
25956         * build-aux/update-copyright: Likewise.
25957
25958 2009-10-29  Eric Blake  <ebb9@byu.net>
25959
25960         filenamecat-lgpl: adjust clients
25961         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
25962         filenamecat.
25963         * modules/renameat (Depends-on): Likewise.
25964
25965         filenamecat: split into filenamecat-lgpl
25966         * modules/filenamecat-lgpl: New module.
25967         * modules/filenamecat (Files): Move library-safe files into
25968         filenamecat-lgpl.
25969         (Depends-on): Add filenamecat-lgpl.
25970         (configure.ac): Declare witness.
25971         * lib/filenamecat.h (file_name_concat): Only declare when using
25972         GPL module.
25973         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
25974         Move...
25975         * lib/filenamecat-lgpl.c: ...into new file.
25976         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
25977         (gl_FILE_NAME_CONCAT): Use it.
25978         * MODULES.html.sh (File system functions): Mention new module.
25979
25980         argp: avoid memory leak
25981         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
25982         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
25983         base_name, since the latter malloc()s and can call exit().
25984         Leak introduced 2006-07-03.
25985
25986         dirname-lgpl: adjust clients that don't need full dirname
25987         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
25988         * modules/filenamecat (Depends-on): Likewise.
25989         * modules/linkat (Depends-on): Likewise.
25990         * modules/mkancesdirs (Depends-on): Likewise.
25991         * modules/mkdir (Depends-on): Likewise.
25992         * modules/openat (Depends-on): Likewise.
25993         * modules/savewd (Depends-on): Likewise.
25994         * modules/rename (Depends-on): Likewise.
25995         (License): Relax license.
25996         * modules/mkdir-tests (Depends-on): Drop progname.
25997         (Makefile.am): Delete unneeded LDADD.
25998         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
25999
26000         dirname: split into dirname-lgpl
26001         * modules/dirname-lgpl: New module.
26002         * modules/dirname (Files): Move library-safe files into
26003         dirname-lgpl.
26004         (Depends-on): Add dirname-lgpl.
26005         (configure.ac): Declare witness.
26006         * modules/double-slash-root (License): Relax license.
26007         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
26008         module.
26009         * lib/dirname.c (dir_len, mdir_name): Move...
26010         * lib/dirname-lgpl.c: ...into new file.
26011         * lib/basename.c (last_component, base_len): Move...
26012         * lib/basename-lgpl.c: ...into new file.
26013         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
26014         (gl_DIRNAME): Use it.
26015         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
26016         Mention new module.
26017         * modules/dirname-tests (Depends-on): Add progname.
26018         * tests/test-dirname.c (program_name): Delete.
26019
26020         mkdir: make safe for libraries
26021         * modules/mkdir (Depends-on): Drop xalloc.
26022         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
26023         exit.
26024
26025         tests: avoid some compiler warnings
26026         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
26027         literals.
26028         * tests/test-memchr.c (main): Avoid type mismatch.
26029         * tests/test-arpa_inet.c (main): Avoid unused parameters.
26030         * tests/test-base64.c (main): Likewise.
26031         * tests/test-getdelim.c (main): Likewise.
26032         * tests/test-gethostname.c (main): Likewise.
26033         * tests/test-getline.c (main): Likewise.
26034         * tests/test-netinet_in.c (main): Likewise.
26035         * tests/test-select.c (open_server_socket, main): Likewise.
26036         * tests/test-select-stdin.c (main): Likewise.
26037         * tests/test-sockets.c (main): Likewise.
26038         * tests/test-strsignal.c (main): Likewise.
26039         * tests/test-sys_select.c (main): Likewise.
26040         * tests/test-sys_socket.c (main): Likewise.
26041         * tests/test-u64.c (main): Likewise.
26042         * tests/test-xfprintf-posix.c (main): Likewise.
26043         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
26044
26045         sockets: avoid compiler warning
26046         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
26047
26048         maint: detect usage(1) and other suspicious exits
26049         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
26050
26051 2009-10-29  Jim Meyering  <meyering@redhat.com>
26052
26053         timespec: long-to-int truncation could make timespec_cmp malfunction
26054         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
26055         a multiple of 2^32 nanoseconds as no difference.
26056
26057 2009-10-28  Jim Meyering  <meyering@redhat.com>
26058
26059         fprintftime: wrap macro code argument in "do {...} while(0)"
26060         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
26061         cpy macro must be a statement that can be followed by a semicolon.
26062         Now that the else clause contains a comment and is hence longer
26063         than one line, I require curly braces.  That in turn requires
26064         that we wrap this code block in the standard do...while(0).
26065
26066         fprintftime: remove stray semicolon from previous change
26067         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
26068
26069         fprintftime: avoid a warning about ignored fwrite return value
26070         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
26071         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
26072         that is unsafe.
26073         * modules/fprintftime (Depends-on): Add ignore-value.
26074
26075         exclude: avoid an unwarranted warning
26076         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
26077
26078 2009-10-27  Eric Blake  <ebb9@byu.net>
26079
26080         fseek: avoid compilation failure when fflush is replaced
26081         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
26082         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
26083         module is in use.
26084         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
26085         module is not in use; since REPLACE_FSEEK worked otherwise.
26086         (GNULIB_FTELLO): Likewise for ftell.
26087         Reported by Ian Beckwith and others.
26088
26089 2009-10-27  Bruno Haible  <bruno@clisp.org>
26090
26091         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
26092         Reported by Jim Meyering.
26093
26094 2009-10-27  Jim Meyering  <jim@meyering.net>
26095             Bruno Haible  <bruno@clisp.org>
26096
26097         Avoid warning despite dropping the return value of fwrite.
26098         * lib/unicodeio.c: Include ignore-value.h.
26099         (fwrite_success_callback): Explicitly ignore fwrite's return value.
26100         * modules/unicodeio (Depends-on): Add ignore-value.
26101
26102 2009-10-26  Eric Blake  <ebb9@byu.net>
26103
26104         areadlinkat: fix fallback path
26105         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
26106         pointer and zero.
26107
26108 2009-10-22  Pádraig Brady  <P@draigBrady.com>
26109
26110         Use a better IO block size for modern systems
26111         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
26112         * lib/md2.c: Likewise.
26113         * lib/md4.c: Likewise.
26114         * lib/md5.c: Likewise.
26115         * lib/sha1.c: Likewise.
26116         * lib/sha256.c: Likewise.
26117         * lib/sha512.c: Likewise.
26118
26119 2009-10-22  Eric Blake  <ebb9@byu.net>
26120
26121         tests: avoid several compiler warnings
26122         * tests/test-getcwd.c (main): Avoid buffer underflow.
26123         * tests/test-getdate.c (main): String literals are not safe with
26124         putenv, so use setenv.  Declare unused argument.
26125         * modules/getdate-tests (Depends-on): Add setenv.
26126         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
26127         problems with string literals in char *.
26128         * tests/test-hash.c (main): Avoid shadowing declaration.
26129         (insert_new): Treat string literals as char const *.
26130         * tests/test-getopt.h (test_getopt): Likewise.
26131         (getopt_loop): Alter types to minimize casting elsewhere.
26132         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
26133         (test_getopt_long_posix): Likewise.
26134         (do_getopt_long): Add wrapper to minimize casting.
26135         * tests/test-atexit.c (clear_temp_file): Use void.
26136         * tests/test-areadlink-with-size.c (main): Declare unused
26137         arguments.
26138         * tests/test-areadlink.c (main): Likewise.
26139         * tests/test-areadlinkat-with-size.c (main): Likewise.
26140         * tests/test-areadlinkat.c (main): Likewise.
26141         * tests/test-canonicalize-lgpl.c (main): Likewise.
26142         * tests/test-canonicalize.c (main): Likewise.
26143         * tests/test-dirent-safer.c (main): Likewise.
26144         * tests/test-dirname.c (main): Likewise.
26145         * tests/test-dup2.c (main): Likewise.
26146         * tests/test-fchdir.c (main): Likewise.
26147         * tests/test-fcntl-h.c (main): Likewise.
26148         * tests/test-fcntl-safer.c (main): Likewise.
26149         * tests/test-fdopendir.c (main): Likewise.
26150         * tests/test-fdutimensat.c (main): Likewise.
26151         * tests/test-fflush.c (main): Likewise.
26152         * tests/test-filenamecat.c (main): Likewise.
26153         * tests/test-filevercmp.c (main): Likewise.
26154         * tests/test-fopen-safer.c (main): Likewise.
26155         * tests/test-fopen.c (main): Likewise.
26156         * tests/test-fpending.c (main): Likewise.
26157         * tests/test-fpurge.c (main): Likewise.
26158         * tests/test-freading.c (main): Likewise.
26159         * tests/test-fstatat.c (main): Likewise.
26160         * tests/test-fsync.c (main): Likewise.
26161         * tests/test-futimens.c (main): Likewise.
26162         * tests/test-getndelim2.c (main): Likewise.
26163         * tests/test-gettimeofday.c (main): Likewise.
26164         * tests/test-getopt.c (main): Likewise.
26165         * tests/test-i-ring.c (main): Likewise.
26166         * tests/test-inttypes.c (main): Likewise.
26167         * tests/test-link.c (main): Likewise.
26168         * tests/test-lstat.c (main): Likewise.
26169         * tests/test-math.c (main): Likewise.
26170         * tests/test-md5.c (main): Likewise.
26171         * tests/test-memchr2.c (main): Likewise.
26172         * tests/test-memrchr.c (main): Likewise.
26173         * tests/test-mkdir.c (main): Likewise.
26174         * tests/test-mkdirat.c (main): Likewise.
26175         * tests/test-mkfifoat.c (main): Likewise.
26176         * tests/test-open.c (main): Likewise.
26177         * tests/test-openat-safer.c (main): Likewise.
26178         * tests/test-openat.c (main): Likewise.
26179         * tests/test-quotearg.c (main): Likewise.
26180         * tests/test-rawmemchr.c (main): Likewise.
26181         * tests/test-readlink.c (main): Likewise.
26182         * tests/test-remove.c (main): Likewise.
26183         * tests/test-rename.c (main): Likewise.
26184         * tests/test-renameat.c (main): Likewise.
26185         * tests/test-rmdir.c (main): Likewise.
26186         * tests/test-sha1.c (main): Likewise.
26187         * tests/test-signal.c (main): Likewise.
26188         * tests/test-sigaction.c (main): Likewise.
26189         * tests/test-stat.c (main): Likewise.
26190         * tests/test-stat-time.c (main): Likewise.
26191         * tests/test-stddef.c (main): Likewise.
26192         * tests/test-stdint.c (main): Likewise.
26193         * tests/test-stdio.c (main): Likewise.
26194         * tests/test-stdlib.c (main): Likewise.
26195         * tests/test-strchrnul.c (main): Likewise.
26196         * tests/test-strerror.c (main): Likewise.
26197         * tests/test-string.c (main): Likewise.
26198         * tests/test-strtod.c (main): Likewise.
26199         * tests/test-strverscmp.c (main): Likewise.
26200         * tests/test-symlink.c (main): Likewise.
26201         * tests/test-symlinkat.c (main): Likewise.
26202         * tests/test-sys_stat.c (main): Likewise.
26203         * tests/test-sys_time.c (main): Likewise.
26204         * tests/test-time.c (main): Likewise.
26205         * tests/test-unistd.c (main): Likewise.
26206         * tests/test-unlink.c (main): Likewise.
26207         * tests/test-unlinkat.c (main): Likewise.
26208         * tests/test-utimens.c (main): Likewise.
26209         * tests/test-utimensat.c (main): Likewise.
26210         * tests/test-version-etc.c (main): Likewise.
26211         * tests/test-wchar.c (main): Likewise.
26212         * tests/test-wctype.c (main): Likewise.
26213         * tests/test-xprintf-posix.c (main): Likewise.
26214         * tests/test-posixtm.c (main): Likewise.
26215         (STREQ): Delete unused macro.
26216         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
26217         shadowed variables.
26218         * tests/test-memchr.c (main): Likewise.
26219
26220 2009-10-21  Eric Blake  <ebb9@byu.net>
26221
26222         areadlinkat: avoid failure on older glibc
26223         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
26224         rather than mis-comparing 0 against FUNC_RESULT of char*.
26225
26226 2009-10-21  Bruno Haible  <bruno@clisp.org>
26227
26228         * modules/stpncpy (License): Relicense under LGPLv2+.
26229         Reported by David Lutterkort <lutter@redhat.com>.
26230
26231 2009-10-20  Eric Blake  <ebb9@byu.net>
26232
26233         utimensat: work around Solaris 9 bug
26234         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
26235         has trailing slash bugs.
26236         * tests/test-lutimens.h (test_lutimens): Enhance test.
26237         * tests/test-utimens.h (test_utimens): Likewise.
26238         * doc/posix-functions/utime.texi (utime): Enhance documentation.
26239         * doc/posix-functions/utimes.texi (utimes): Likewise.
26240         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26241         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
26242         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
26243         * doc/posix-functions/futimens.texi (futimens): Likewise.
26244
26245         fdutimensat: new module
26246         * modules/fdutimensat: New file.
26247         * lib/fdutimensat.c (fdutimensat): Likewise.
26248         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
26249         * MODULES.html.sh (File system functions): Mention module.
26250         * modules/fdutimensat-tests: New test.
26251         * tests/test-fdutimensat.c: Likewise.
26252
26253         doc: regenerate INSTALL
26254         * doc/INSTALL: Reflect recent autoconf update.
26255         * doc/INSTALL.ISO: Likewise.
26256         * doc/INSTALL.UTF-8: Likewise.
26257
26258 2009-10-20  Pádraig Brady  <P@draigBrady.com>
26259
26260         acl: warn if ACL support is not detected
26261         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
26262
26263 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
26264
26265         * lib/nproc.h: Add extern "C" block for C++.
26266
26267 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
26268             Bruno Haible  <bruno@clisp.org>
26269
26270         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
26271         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
26272         * doc/posix-functions/isalpha.texi: Likewise.
26273         * doc/posix-functions/isblank.texi: Likewise.
26274         * doc/posix-functions/iscntrl.texi: Likewise.
26275         * doc/posix-functions/isdigit.texi: Likewise.
26276         * doc/posix-functions/isgraph.texi: Likewise.
26277         * doc/posix-functions/islower.texi: Likewise.
26278         * doc/posix-functions/isprint.texi: Likewise.
26279         * doc/posix-functions/ispunct.texi: Likewise.
26280         * doc/posix-functions/isspace.texi: Likewise.
26281         * doc/posix-functions/isupper.texi: Likewise.
26282         * doc/posix-functions/isxdigit.texi: Likewise.
26283
26284 2009-10-18  Bruno Haible  <bruno@clisp.org>
26285
26286         Tests for module 'isblank'.
26287         * modules/isblank-tests: New file.
26288         * tests/test-isblank.c: New file.
26289
26290         New module 'isblank'.
26291         * lib/isblank.c: New file.
26292         * m4/isblank.m4: New file.
26293         * modules/isblank: New file.
26294         * doc/posix-functions/isblank.texi: Mention the new module.
26295
26296 2009-10-18  Bruno Haible  <bruno@clisp.org>
26297
26298         New module 'ctype'.
26299         * lib/ctype.in.h: New file.
26300         * m4/ctype.m4: New file.
26301         * modules/ctype: New file.
26302         * doc/posix-headers/ctype.texi: Mention the new module.
26303
26304 2009-10-18  Jim Meyering  <meyering@redhat.com>
26305
26306         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
26307         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
26308         right after its initialization, rather than farther down.
26309         Keeping these in close proximity makes it easier to ensure
26310         that each such variable is initialized.  E.g.,
26311
26312             LIB_CLOCK_GETTIME=
26313             AC_SUBST([LIB_CLOCK_GETTIME])
26314
26315         This change also increments these serial numbers.
26316         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
26317         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26318         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26319
26320 2009-10-18  Bruno Haible  <bruno@clisp.org>
26321
26322         Don't let environment variables perturb build.
26323         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
26324         (gl_PREREQ_GETHRXTIME): ... not here.
26325
26326 2009-10-18  Bruno Haible  <bruno@clisp.org>
26327
26328         Avoid symlink attack in localcharset module.
26329         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
26330         (O_NOFOLLOW): Define fallback.
26331         (get_charset_aliases): Don't open the file if it is a symbolic link.
26332         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
26333         gl_FCNTL_H.
26334         (gl_FCNTL_H): Require it.
26335         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
26336         * modules/localcharset (Files): Add m4/fcntl_h.m4.
26337         Reported by Fergal Glynn <fglynn@veracode.com>.
26338
26339 2009-10-18  Bruno Haible  <bruno@clisp.org>
26340
26341         Implement nproc for mingw.
26342         * lib/nproc.c: Include <windows.h>
26343         (num_processors): On native Windows platforms, try GetSystemInfo.
26344
26345 2009-10-18  Bruno Haible  <bruno@clisp.org>
26346
26347         Implement nproc for IRIX.
26348         * lib/nproc.c: Include <sys/sysmp.h>.
26349         (num_processors): On IRIX systems, try sysmp.
26350         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
26351
26352 2009-10-18  Bruno Haible  <bruno@clisp.org>
26353
26354         Implement nproc for HP-UX.
26355         * lib/nproc.c: Include <sys/pstat.h>
26356         (num_processors): On HP-UX systems, try pstat_getdynamic.
26357         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
26358         pstat_getdynamic.
26359
26360 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
26361             Bruno Haible  <bruno@clisp.org>
26362
26363         Implement nproc for NetBSD, OpenBSD.
26364         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
26365         (ARRAY_SIZE): New macro.
26366         (num_processors): On BSD systems, try sysctl of HW_NCPU.
26367         * m4/nproc.m4: New file.
26368         * modules/nproc (Files): Add m4/nproc.m4.
26369         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
26370         (Makefile.am): Instead, augment lib_SOURCES.
26371
26372 2009-10-18  Bruno Haible  <bruno@clisp.org>
26373
26374         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
26375         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
26376         sys/param.h.
26377
26378 2009-10-16  Eric Blake  <ebb9@byu.net>
26379
26380         utimensat: new module
26381         * modules/utimensat: New file.
26382         * lib/utimensat.c (utimensat): Likewise.
26383         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26384         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
26385         so we can work around Linux bugs.
26386         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26387         * modules/sys_stat (Makefile.am): Substitute them.
26388         * lib/sys_stat.in.h (utimensat): Declare it.
26389         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26390         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26391         * modules/utimensat-tests: New test.
26392         * tests/test-utimensat.c: Likewise.
26393
26394         utimens: let lutimens work on non-symlinks
26395         * lib/utimens.c (lutimens): Fall back to utimens rather than
26396         failing with ENOSYS, when file is not a symlink.
26397         (utimens): Reduce redirection.
26398         * tests/test-lutimens.h (test_lutimens): Update test to cover
26399         non-symlinks.
26400         * tests/test-utimens.h (test_utimens): Update test to cover
26401         symlinks.
26402         * tests/test-utimens.c (main): Update caller.
26403
26404         utimens: cache whether utimensat syscall works
26405         * lib/utimens.c (utimensat_works_really): New cache variable.
26406         (fdutimens, lutimens): Use it to avoid failing syscall.
26407
26408         test-stat-time, test-utimens: improve portability
26409         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
26410         ext4 on alpha, and for cygwin.
26411         * tests/test-utimens-common.h: New file.
26412         (nap): Factor delays into single function.
26413         * tests/test-lutimens.h (test_lutimens): Use new header.
26414         * tests/test-futimens.h (test_futimens): Likewise.
26415         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
26416         timestamps to occur from same machine, as was done previously for
26417         test_utimens.
26418         * modules/utimens-tests (Files): Ship new file.
26419         * modules/futimens-tests (Files): Likewise.
26420         Reported in part by Jim Meyering.
26421
26422         sys_stat: sort replacement declarations
26423         * lib/sys_stat.in.h: Sort declarations.
26424         * lib/futimens.c (futimens): Fix typo.
26425
26426 2009-10-15  Jim Meyering  <meyering@redhat.com>
26427
26428         don't let environment settings perturb build
26429         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
26430         could cause a configure-time and/or build-time malfunction.
26431         Typically, a configure-time function-in-library test is performed
26432         via code like this:
26433
26434           LIB_VAR=
26435           AC_SUBST([LIB_VAR])
26436           prefix_saved_LIBS=$LIBS
26437             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
26438                        [test "$ac_cv_search_FUNC" = "none required" ||
26439                         LIB_VAR=$ac_cv_search_FUNC])
26440           LIBS=$prefix_saved_LIBS
26441
26442         However, in each of the files affected by this change, the LIB_VAR=
26443         initialization was omitted.  Thus, when set in the environment, its
26444         value would propagate into generated Makefiles when FUNC is not found
26445         in LIB_NAME.
26446         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
26447         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26448         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26449
26450 2009-10-14  Eric Blake  <ebb9@byu.net>
26451
26452         fchdir: avoid infinite recursion in mingw
26453         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
26454         recursing.
26455
26456         test-stat-time: port to mingw
26457         * tests/test-stat-time.c (force_unlink): Return a value.
26458         (test_ctime) [W32]: Fix compilation error.
26459         (nap): Don't call usleep with too large an argument.  Use
26460         force_unlink.
26461         * doc/pastposix-functions/usleep.texi (usleep): Document the
26462         portability issue.
26463
26464 2009-10-13  Jim Meyering  <meyering@redhat.com>
26465
26466         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
26467         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
26468         * modules/pipe-filter-ii: Likewise.
26469         * modules/sys_socket-tests: Likewise.
26470         * modules/tsearch-tests: Likewise.
26471         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
26472         (check): Depend on it.
26473
26474 2009-10-12  Eric Blake  <ebb9@byu.net>
26475
26476         utimens-tests: port to NFS file systems
26477         * tests/test-utimens.h (test_utimens): Refactor utimecmp
26478         comparisons to avoid spurious failures from timestamp drift
26479         between NFS machines.
26480
26481 2009-10-12  Eric Blake  <ebb9@byu.net>
26482
26483         stat-time-tests: minor cleanups
26484         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
26485         * tests/test-stat-time.c (nap): Separate assignment from call.
26486         Suggested by Paolo Bonzini and Bruno Haible.
26487
26488         sys_stat: guarantee struct timespec
26489         * lib/sys_stat.in.h (includes): Always include <time.h>
26490         * modules/sys_stat (Depends-on): Add time.
26491         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
26492         mode_t permission values.
26493         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
26494         get at subsecond timestamps.
26495
26496 2009-10-10  Eric Blake  <ebb9@byu.net>
26497
26498         futimens: new module
26499         * modules/futimens: New file.
26500         * lib/futimens.c (futimens): Likewise.
26501         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
26502         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
26503         we can work around Linux bugs.
26504         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26505         * modules/sys_stat (Makefile.am): Substitute them.
26506         * lib/sys_stat.in.h (futimens): Declare it.
26507         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26508         * doc/posix-functions/futimens.texi (futimens): Likewise.
26509         * modules/futimens-tests: New test.
26510         * tests/test-futimens.c: Likewise.
26511
26512         utimens: introduce fdutimens
26513         * lib/utimens.h (fdutimens): New prototype.
26514         * lib/utimens.c (gl_futimens): Move guts...
26515         (fdutimens): ...to new interface.
26516         * tests/test-utimens.c (do_fdutimens): Use it.
26517
26518         utimens: add UTIME_NOW and UTIME_OMIT support
26519         * lib/utimens.c (validate_timespec, update_timespec): New helper
26520         functions.
26521         (gl_futimens, lutimens): Use them.
26522         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
26523         stdbool, sys_stat.
26524         (Link): Mention resulting library dependency.
26525         * modules/utimecmp (Link): Likewise.
26526         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
26527         (Makefile.am): Pick up library dependency.
26528         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
26529         definition.
26530         * tests/test-sys_stat.c: Test the definitions.
26531         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
26532         * NEWS: Document library dependency.
26533
26534         utimecmp: support symlink timestamps
26535         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
26536         hashing when possible.  Use pathconf when available.
26537         (SYSCALL_RESOLUTION): Recognize tighter resolution.
26538         * modules/utimecmp (Depends-on): Add lstat.
26539
26540         utimens: add lutimens interface
26541         * lib/utimens.c (lutimens): New function.
26542         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
26543         * lib/utimens.h (lutimens): Declare new interface.
26544         * tests/test-utimens.c (main): Enhance test.
26545         * tests/test-lutimens.h (test_lutimens): New file.
26546         * modules/utimens-tests (Files): Distribute it.
26547         (Depends-on): Add symlink.
26548         (configure.ac): Check for usleep.
26549
26550         utimens: validate futimens usage
26551         * lib/utimens.c (gl_futimens): Require valid fd up front, using
26552         fewer syscalls on failure later on.  Avoid compiler warning on
26553         mingw.
26554         * modules/utimens (Depends-on): Add dup2.
26555
26556         utimens: add test
26557         * modules/utimens-tests: New test.
26558         * tests/test-utimens.h: New file.
26559         * tests/test-futimens.h: Likewise.
26560         * tests/test-utimens.c: Likewise.
26561
26562         doc: mention timestamp portability issues
26563         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
26564         instead.
26565         * doc/posix-functions/utime.texi (utime): Likewise.
26566         * doc/posix-functions/utimes.texi (utimes): Likewise.
26567         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
26568         instead.
26569         * doc/posix-functions/futimens.texi (futimens): Mention utimens
26570         module.
26571         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26572         Mention weakness with symlink timestamps.
26573         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
26574         to utimensat/futimens instead.
26575         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
26576
26577         test-dup2: enhance test
26578         * tests/test-dup2.c (main): Also check AT_FDCWD.
26579
26580         test-stat-time: avoid more spurious failures
26581         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
26582         xfs; and avoid race if the two timestamps cross quantization edge.
26583
26584         relocatable: prefer 'file system' over 'filesystem'
26585         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
26586         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
26587         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
26588         * doc/relocatable.texi (Enabling Relocatability): Likewise.
26589         * lib/relocatable.c (compute_curr_prefix): Likewise.
26590
26591 2009-10-10  Jim Meyering  <meyering@redhat.com>
26592
26593         stat-time-tests: check for the usleep function
26594         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
26595
26596 2009-10-10  Bruno Haible  <bruno@clisp.org>
26597
26598         * modules/xnanosleep: Put the Link section after the Include section.
26599
26600 2009-10-09  Eric Blake  <ebb9@byu.net>
26601
26602         dup2: work around FreeBSD 6.1 bug
26603         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
26604         * doc/posix-functions/dup2.texi (dup2): Document it.
26605         Reported by Nelson H. F. Beebe and Jim Meyering.
26606
26607         test-stat-time: port to buggy NFS clients
26608         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
26609         (test_ctime): Also skip test if mtime and ctime are skewed.
26610
26611         maint: prefer 'file system' over 'filesystem'
26612         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
26613         * doc/posix-functions/lstat.texi (lstat): Likewise.
26614         * lib/file-has-acl.c (file_has_acl): Likewise.
26615         * lib/fwriteerror.c [TEST]: Likewise.
26616         * tests/test-areadlink.h (test_areadlink): Likewise.
26617         * tests/test-areadlinkat-with-size.c (main): Likewise.
26618         * tests/test-areadlinkat.c (main): Likewise.
26619         * tests/test-canonicalize-lgpl.c (main): Likewise.
26620         * tests/test-canonicalize.c (main): Likewise.
26621         * tests/test-fstatat.c (main): Likewise.
26622         * tests/test-linkat.c (main): Likewise.
26623         * tests/test-lstat.h (test_lstat_func): Likewise.
26624         * tests/test-mkdir.h (test_mkdir): Likewise.
26625         * tests/test-readlink.h (test_readlink): Likewise.
26626         * tests/test-remove.c (main): Likewise.
26627         * tests/test-rename.h (test_rename): Likewise.
26628         * tests/test-renameat.c (main): Likewise.
26629         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26630         * tests/test-symlink.h (test_symlink): Likewise.
26631         * tests/test-symlinkat.c (main): Likewise.
26632         * tests/test-unlink.h (test_unlink_func): Likewise.
26633         * tests/test-unlinkat.c (main): Likewise.
26634
26635         maint: make realtime library usage explicit
26636         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
26637         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
26638         * modules/settime (Link): Likewise.
26639         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
26640
26641         test-stat-time: speed up execution
26642         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
26643         warning on mingw.
26644         (nap): New helper function.
26645         (prepare_test): Use it to reduce sleep time.
26646         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
26647         execution.
26648         * modules/stat-time-tests (configure.ac): Check for usleep.
26649
26650 2009-10-09  Jim Meyering  <meyering@redhat.com>
26651
26652         selinux-h: always use getfilecon wrappers
26653         * lib/getfilecon.c: New file.
26654         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
26655         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
26656         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
26657         (fgetfilecon): Provide a stub.
26658         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
26659         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
26660         file unconditionally.
26661         When <selinux/selinux.h> is found, arrange to use wrappers.
26662         * modules/selinux-h (Files): Add getfilecon.c.
26663         (Makefile.am): Substitute include-next-related bits
26664         into the now-always-generated selinux/selinux.h file.
26665         * doc/glibc-functions/lgetfilecon.texi: New file.
26666         * doc/glibc-functions/fgetfilecon.texi: New file.
26667         * doc/glibc-functions/getfilecon.texi: New file.
26668         * doc/glibc-functions/getfilecon-desc.texi: New file.
26669         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
26670         which to pull in the new files.
26671         * MODULES.html.sh (Misc): Add selinux-h.
26672
26673 2009-10-08  Jim Meyering  <meyering@redhat.com>
26674
26675         unistd: fix comment typo
26676         * lib/unistd.in.h (euidaccess): Fix a comment typo.
26677
26678 2009-10-08  Eric Blake  <ebb9@byu.net>
26679
26680         areadlink: use SIZE_MAX consistently
26681         * modules/areadlink (Depends-on): Add stdint.
26682         * modules/areadlink-with-size (Depends-on): Likewise.
26683         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
26684         gives NULL; drop sys/types, since unistd gives size_t; and add
26685         stdint for SIZE_MAX.
26686         (SIZE_MAX): Rely on headers.
26687         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
26688         and add stdint.
26689         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
26690         (SIZE_MAX): Likewise.
26691         (INITIAL_BUF_SIZE): Turn into enum.
26692         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
26693
26694 2009-10-08  Jim Meyering  <meyering@redhat.com>
26695
26696         areadlinkat: avoid compilation failure
26697         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
26698         Fix typo in comment.
26699
26700 2009-10-07  Eric Blake  <ebb9@byu.net>
26701
26702         areadlinkat-with-size: new module
26703         * modules/areadlinkat-with-size: New module.
26704         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
26705         * lib/areadlink.h (areadlinkat): Declare it.
26706         * MODULES.html.sh (File system functions): Mention it.
26707         * modules/areadlinkat-with-size-tests: New test.
26708         * tests/test-areadlinkat-with-size.c: New file.
26709
26710         xreadlinkat: new module
26711         * modules/xreadlinkat: New module.
26712         * lib/xreadlinkat.c (xreadlinkat): New file.
26713         * lib/xreadlink.h (xreadlinkat): Declare it.
26714         * MODULES.html.sh (File system functions): Mention it.
26715
26716         areadlinkat: new module
26717         * lib/at-func.c (FUNC_FAIL): New define.
26718         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
26719         * modules/areadlinkat: New module.
26720         * lib/linkat.c (areadlinkat): Move...
26721         * lib/areadlinkat.c (areadlinkat): ...to new file.
26722         * lib/areadlink.h (areadlinkat): Declare it.
26723         * modules/linkat (Depends-on): Add areadlinkat.
26724         * MODULES.html.sh (File system functions): Mention it.
26725         * modules/areadlinkat-tests: New test.
26726         * tests/test-areadlinkat.c: New file.
26727
26728         areadlink, areadlink-with-size: add tests
26729         * modules/areadlink-tests: New test.
26730         * modules/areadlink-with-size-tests: Likewise.
26731         * tests/test-areadlink.h: New file.
26732         * tests/test-areadlink.c: Likewise.
26733         * tests/test-areadlink-with-size.c: Likewise.
26734
26735         maint: minor cleanups
26736         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
26737         _UNUSED_PARAMETER_ instead.
26738         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
26739         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
26740         * modules/linkat-tests (Files): Distribute test-link.h.
26741
26742         openat, utimens: whitespace cleanup
26743         * lib/openat.c: Prefer space throughout, rather than mix of 8
26744         spaces vs. tabs.
26745         * lib/at-func.c: Likewise.
26746         * lib/utimens.c: Likewise.
26747
26748         openat: avoid using wrong fd
26749         * lib/openat.c (openat_permissive): Reject user's fd if saving the
26750         working directory chooses same fd.
26751         * lib/at-func.c (AT_FUNC_NAME): Likewise.
26752
26753         mkdir, mkdirat: fix cygwin 1.5.x bug
26754         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
26755         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
26756         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
26757         bug.
26758         (gl_PREREQ_MKDIR): Delete unused macro.
26759         * modules/mkdir (Files): Track file rename.
26760         (configure.ac): Update macro name.
26761         * modules/openat (Depends-on): Add mkdir.
26762         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
26763
26764         mkdir, mkdirat: add tests
26765         * modules/mkdir-tests: New test.
26766         * tests/test-mkdir.h: New file.
26767         * tests/test-mkdir.c: Likewise.
26768         * tests/test-mkdirat.c: Likewise.
26769         * modules/openat-tests (Files): Add new files.
26770         (Makefile.am): Run new test.
26771
26772 2009-10-06  Eric Blake  <ebb9@byu.net>
26773
26774         doc: tweak *at function documentation
26775         * doc/posix-functions/faccessat.texi (faccessat): Mention
26776         known issue with replacement.
26777         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
26778         * doc/posix-functions/linkat.texi (linkat): Likewise.
26779         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26780         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26781         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26782         * doc/posix-functions/renameat.texi (renameat): Likewise.
26783         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26784
26785         openat: fix GNU/Hurd bug in unlinkat
26786         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
26787         broken.
26788         * doc/posix-functions/unlink.texi (unlink): Document this.
26789         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
26790
26791         fdopendir: fix GNU/Hurd bug
26792         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
26793         allowing non-directory fds.
26794         * lib/fdopendir.c (rpl_fdopendir): Work around it.
26795         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26796         * modules/dirent (Makefile.am): Substitute it.
26797         * lib/dirent.in.h (fdopendir): Declare replacement.
26798         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
26799         * tests/test-fdopendir.c (main): Test something other than
26800         /dev/null, since on Hurd that behaves like a directory.
26801
26802         test-symlink: port to GNU/Hurd
26803         * tests/test-symlink.h (test_symlink): Relax expected errno.
26804
26805         doc: tweak more cygwin information
26806         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
26807         now compatible with glibc.
26808         * doc/posix-functions/getopt.texi (getopt): Likewise.
26809
26810         getopt-gnu: add another test
26811         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
26812         guarantee behavior relied on by m4.
26813         * tests/test-getopt.c (main): Use it.
26814         * modules/getopt-posix-tests (Depends-on): Add setenv.
26815         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
26816
26817         getopt: fix compilation on darwin
26818         * lib/getopt.in.h (includes): Leave breadcrumbs during system
26819         include.
26820         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
26821         Reported by Ludovic Courtès.
26822
26823 2009-10-06  Bruno Haible  <bruno@clisp.org>
26824
26825         * modules/size_max (Description): Discourage its use.
26826         Reported by Simon Josefsson.
26827
26828 2009-10-06  Jim Meyering  <meyering@redhat.com>
26829
26830         linkat: avoid compilation failure
26831         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
26832
26833 2009-10-05  Eric Blake  <ebb9@byu.net>
26834
26835         linkat: support Linux 2.6.17
26836         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
26837         linkat on Linux, but allow cache variable override.
26838         * lib/linkat.c (rpl_linkat): Define override.
26839         * modules/linkat (Depends-on): Add symlinkat.
26840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
26841         * modules/unistd (Makefile.am): Substitute it.
26842         * lib/unistd.in.h (linkat): Declare replacement.
26843         Reported by Pádraig Brady.
26844
26845         quotearg: port test to systems with C.UTF-8 locale
26846         * tests/test-quotearg.c (struct result_strings): Add another
26847         member, differentiating between C.ASCII and C.UTF-8 handling.
26848         (compare_strings): Add parameter.
26849         (main): Adjust all callers.
26850
26851         getopt: avoid clash with FreeBSD _getopt_internal
26852         * lib/getopt.in.h (_getopt_internal): Override the name.
26853         * lib/getopt_int.h (includes): Pick up any overrides.
26854         Reported by Reuben Thomas.
26855
26856         hash: allow C89 compilation
26857         * lib/hash.c (check_tuning): Move declaration before statement.
26858         Reported by Reuben Thomas.
26859
26860 2009-10-05  Karl Berry  <karl@gnu.org>
26861
26862         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
26863
26864 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
26865             Bruno Haible  <bruno@clisp.org>
26866
26867         * lib/uname.c (uname): Use a table-driven algorithm to compute
26868         Windows NT versions.
26869
26870 2009-10-04  Bruno Haible  <bruno@clisp.org>
26871
26872         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
26873         program_invocation_short_name.
26874         * modules/progname (configure.ac): Test for presence of
26875         program_invocation_short_name.
26876         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
26877
26878 2009-10-04  Bruno Haible  <bruno@clisp.org>
26879
26880         * lib/progname.c (set_program_name): Fix comment.
26881         Reported by Jim Meyering.
26882
26883 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
26884             Bruno Haible  <bruno@clisp.org>
26885
26886         * lib/uname.c: Include <string.h>.
26887         (uname): Do only one call to GetVersionEx in the common case.
26888
26889 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
26890             Bruno Haible  <bruno@clisp.org>
26891
26892         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
26893         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
26894         (uname): Add support for Windows CE and various non-x86 CPU types.
26895
26896 2009-10-03  Bruno Haible  <bruno@clisp.org>
26897
26898         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
26899         invocation to tests/configure.ac.
26900         Reported by Ian Beckwith <ianb@erislabs.net>.
26901
26902 2009-10-02  Eric Blake  <ebb9@byu.net>
26903
26904         fchdir: avoid compiler warning
26905         * lib/fchdir.c (canonicalize_file_name)
26906         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
26907
26908         test-open: support mingw errno values
26909         * tests/test-open.h (test_open): Relax test.
26910         * tests/test-fopen.h (test_fopen): Likewise.
26911         * tests/test-openat-safer.c (main): Likewise.
26912
26913         open: fix opening directory on mingw
26914         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
26915
26916         test-open: on GNU/Hurd, /dev/null is a directory
26917         * tests/test-fopen.h (main): Rename...
26918         (test_fopen): ...to this.  Use a guaranteed non-directory when
26919         confirming open behavior on trailing slash.
26920         * tests/test-openat-safer.c (main): Likewise.
26921         * tests/test-open.h (main): Likewise....
26922         (test_open): ...to this.
26923         * tests/test-fopen.c (main): Adjust caller.
26924         * tests/test-fopen-safer.c (main): Likewise.
26925         * tests/test-open.c (main): Likewise.
26926         * tests/test-fcntl-safer.c (main): Likewise.
26927         Reported by Samuel Thibault.
26928
26929         rename, fchdir: don't ignore chdir failure
26930         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
26931         * lib/rename.c (rpl_rename) [W32]: Likewise.
26932         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
26933         an empty destination directory if source cannot be renamed,
26934         although there is still possibility for failure.
26935         * doc/posix-functions/rename.texi (rename): Document the race.
26936         Reported by Jim Meyering.
26937
26938         maint: cleanup whitespace in recent commits
26939         * lib/rename.c (rpl_rename): Remove tabs.
26940         * tests/test-link.h (test_link): Likewise.
26941         * lib/fchdir.c (get_name): Likewise.
26942         Reported by Jim Meyering.
26943
26944 2009-10-02  Ben Pfaff  <blp@gnu.org>
26945
26946         relocatable-prog-wrapper: Add missing dependency on
26947         double-slash-root.
26948         * modules/relocatable-prog-wrapper: Add dependency.
26949         Reported by Ian Beckwith <ianb@erislabs.net>.
26950
26951 2009-10-02  Eric Blake  <ebb9@byu.net>
26952
26953         renameat: fix Solaris bugs
26954         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
26955         needed fixing.
26956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
26957         * modules/stdio (Makefile.am): Substitute it.
26958         * lib/stdio.in.h (renameat): Declare replacement.
26959         * lib/renameat.c (rpl_renameat): Implement fix.
26960
26961         renameat: new module
26962         * modules/renameat: New file.
26963         * lib/renameat.c (renameat): Likewise.
26964         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
26965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
26966         * modules/stdio (Makefile.am): Substitute them.
26967         * lib/stdio.in.h (renameat): Declare it.
26968         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26969         * doc/posix-functions/renameat.texi (renameat): Likewise.
26970         * modules/renameat-tests: New test.
26971         * tests/test-renameat.c: Likewise.
26972
26973         rename: fix mingw bugs
26974         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
26975         directory overwrite bugs.
26976
26977         rename: fix another cygwin 1.5 bug
26978         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
26979         checks.
26980         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
26981         unnecessary cygwin workarounds.  Also work around bug with moving
26982         full directory onto an empty one.
26983         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
26984
26985         rename-dest-slash: merge into rename module
26986         * modules/rename-dest-slash (Status): Mark obsolete.
26987         (Depends-on): Add rename.
26988         (Files): Let rename do it all.
26989         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
26990         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
26991         * m4/rename-dest-slash.m4: ...so this file can be deleted.
26992         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
26993         * lib/rename.c (rpl_rename): Update comments.
26994
26995         rename: fix cygwin 1.5.x bugs
26996         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
26997         * lib/rename.c (rpl_rename): Work around them.
26998         * modules/rename (Depends-on): Add same-inode.
26999
27000         rename: fix Solaris 10 bug
27001         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27002         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
27003         was the only bug.
27004
27005         rename: fix Solaris 9 bug
27006         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
27007         on non-directory.  Avoid calling exit.
27008         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
27009         strdup.
27010         * modules/rename-tests (Depends-on): Drop lstat.
27011         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27012         (gl_PREREQ_RENAME): Delete unused macro.
27013
27014         rename-dest-slash: fix NetBSD bug
27015         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
27016         links.
27017         * modules/rename-dest-slash (Depends-on): Add same-inode.
27018
27019         rename-tests: new test, exposes several platform bugs
27020         * modules/rename-tests: New file.
27021         * tests/test-rename.h: Likewise.
27022         * tests/test-rename.c: Likewise.
27023         * doc/posix-functions/rename.texi (rename): Improve documentation,
27024         including bugs that will eventually be fixed in gnulib.
27025
27026 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
27027
27028         * lib/uname.c: Include <stdlib.h>
27029         (uname): Assume version info is available.
27030
27031 2009-10-02  Jim Meyering  <meyering@redhat.com>
27032
27033         gnu-web-doc-update: correct --help output
27034         * build-aux/gnu-web-doc-update: Make --help output relevant.
27035
27036         gnu-web-doc-update: add standard options
27037         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
27038
27039         gnu-web-doc-update: New module.
27040         Use this script to automatically update the on-line web documentation
27041         for your GNU project at http://www.gnu.org/software/$pkg/manual/
27042         * modules/gnu-web-doc-update: New file, from coreutils.
27043         * build-aux/gnu-web-doc-update: New script.
27044
27045 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
27046
27047         link: LoadLibrary is not needed.
27048         * lib/link.c: Use GetModuleHandle.
27049
27050 2009-10-01  Eric Blake  <ebb9@byu.net>
27051
27052         getopt: bump serial number
27053         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
27054         change.
27055
27056         tests: tighten link, rmdir, and remove tests
27057         * tests/test-link.h (includes): No need to use <config.h> here.
27058         Clean up if directory hard link was created, otherwise test for
27059         trailing '.'.
27060         * tests/test-linkat.c (main): Simplify.
27061         * tests/test-remove.c (main): Enhance test for trailing '.'.
27062         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27063
27064 2009-10-01  Jim Meyering  <meyering@redhat.com>
27065
27066         maint.mk: requiring "make major" was annoying, for a "minor" release.
27067         What is intended is "stable", to contrast with alpha and beta,
27068         so require "make stable", not "make major".
27069         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
27070         (get_tool_versions): Likewise.
27071         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
27072
27073 2009-09-30  Ben Pfaff  <blp@gnu.org>
27074
27075         Fix broken build of replacement for Windows tmpfile().
27076         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
27077         flags argument added along with the 'mkostemp' module.
27078
27079 2009-09-28  Bruno Haible  <bruno@clisp.org>
27080
27081         Avoid identifier clash with POSIX function 'remove' defined as a macro.
27082         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
27083         to 'remove_elt'.
27084         (gl_list_remove): Update.
27085         * lib/gl_list.c (gl_list_remove): Update.
27086         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
27087         to 'remove_elt'.
27088         (gl_oset_remove): Update.
27089         * lib/gl_list.c (gl_oset_remove): Update.
27090         Reported by Eric Blake.
27091
27092 2009-09-28  Eric Blake  <ebb9@byu.net>
27093
27094         doc: mention yet more cygwin 1.7 status
27095         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
27096         cygwin.
27097         * doc/glibc-functions/execvpe.texi (execvpe): New file.
27098         * doc/gnulib.texi (Glibc unistd.h): Mention it.
27099
27100         argp: fix test failure
27101         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
27102         that are not upper-case.  Pass correct range to tolower.
27103
27104 2009-09-27  Jim Meyering  <meyering@redhat.com>
27105
27106         test-yesno: work around sparc-dash here-document infelicity
27107         Without this change, the literal \177 byte in a here document
27108         would make dash 0.5.5.1-3 access uninitialized memory.
27109         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
27110         Instead, use a marker, "@", and filter through tr to create the desired
27111         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
27112
27113 2009-09-27  Bruno Haible  <bruno@clisp.org>
27114
27115         Disable untested support for new flavours of ACLs on AIX.
27116         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
27117         progress.
27118         * lib/set-mode-acl.c (qset_acl): Likewise.
27119
27120 2008-12-07  Bruno Haible  <bruno@clisp.org>
27121
27122         Add support for new flavours of ACLs on AIX. (Untested.)
27123         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
27124         (file_has_acl): Add support for newer AIX.
27125         * lib/set-mode-acl.c (qset_acl): Likewise.
27126         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
27127         Rainer Tammer <tammer@tammer.net>.
27128
27129 2009-09-26  Eric Blake  <ebb9@byu.net>
27130
27131         argp: fix compilation of getopt
27132         * lib/getopt.in.h (includes): Use different guard than glibc.
27133         Reported by Sergey Poznyakoff.
27134
27135         doc: mention more cygwin 1.7 status
27136         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
27137         bug.
27138         * doc/posix-functions/execl.texi (execl): Likewise.
27139         * doc/posix-functions/execle.texi (execle): Likewise.
27140         * doc/posix-functions/execlp.texi (execlp): Likewise.
27141         * doc/posix-functions/execv.texi (execv): Likewise.
27142         * doc/posix-functions/execve.texi (execve): Likewise.
27143         * doc/posix-functions/execvp.texi (execvp): Likewise.
27144         * doc/glibc-functions/canonicalize_file_name.texi
27145         (canonicalize_file_name): Cygwin 1.7 now provides this.
27146         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
27147         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
27148         on AT_SYMLINK_NOFOLLOW.
27149
27150 2009-09-24  Eric Blake  <ebb9@byu.net>
27151
27152         test-linkat: make test more robust
27153         * tests/test-linkat.c (main): Avoid collision with EEXIST.
27154
27155         getopt: fix inclusion guards for cygwin
27156         * modules/getopt-posix (Depends-on): Add include-next.
27157         (Makefile.am): Substitute more items in replacement header.
27158         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
27159         <getopt.h>.
27160         * lib/getopt.in.h (includes): Use split inclusion guard, and
27161         prefer <getopt.h> over include <unistd.h> when one is present.
27162         (option): Also override name of 'struct option'.
27163
27164         same-inode: revert prior change; it is not yet ready
27165         * NEWS: Undo mention of this change.
27166         * lib/same-inode.h (same-inode.h): Undo tri-state change.
27167         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27168         * lib/cycle-check.c (cycle_check): Likewise.
27169         * lib/same.c (same_name): Likewise.
27170         * lib/at-func2.c (at_func2): Likewise.
27171
27172 2009-09-23  Eric Blake  <ebb9@byu.net>
27173
27174         linkat: new module
27175         * modules/linkat: New file.
27176         * lib/at-func2.c (at_func2): Likewise.
27177         * lib/linkat.c (linkat): Likewise.
27178         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27179         * lib/openat-priv.h (at_func2): Add declaration.
27180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27181         * modules/unistd (Makefile.am): Substitute them.
27182         * lib/unistd.in.h (linkat): Declare it.
27183         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27184         * doc/posix-functions/linkat.texi (linkat): Likewise.
27185         * doc/posix-functions/link.texi (link): Tweak wording.
27186         * tests/test-link.c (main): Move guts...
27187         * tests/test-link.h (test_link): ...into new file.
27188         * modules/linkat-tests: New test.
27189         * tests/test-linkat.c: Likewise.
27190         * modules/link-tests (Files): Ship new file.
27191         (Depends-on): Add stdbool.
27192
27193         dirname: add library-safe mdir_name
27194         * lib/dirname.h (mdir_name): New prototype.
27195         * lib/dirname.c (dir_name): Move guts...
27196         (mdir_name): ...to new function that avoids xalloc_die.
27197
27198         fchdir: another mingw fix
27199         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
27200         * lib/fchdir.c (get_name): New helper method; skips canonicalize
27201         on mingw (where it has not yet been ported), and make it optional
27202         elsewhere.
27203         (_gl_register_fd): Use it.
27204
27205         same-inode: make SAME_INODE tri-state, to port to mingw
27206         * NEWS: Mention this change.
27207         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
27208         st_ino always being 0.
27209         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27210         * lib/cycle-check.c (cycle_check): Likewise.
27211         * lib/same.c (same_name): Likewise.
27212
27213         lstat: avoid mingw compilation error
27214         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
27215         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
27216         lstat ourselves.
27217         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
27218         was adequate.
27219         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
27220         the checks for lstat.
27221         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
27222
27223         link: fix test failure on Solaris 9
27224         * lib/link.c (rpl_link): Don't assume link will catch bogus
27225         trailing slash on source.
27226
27227         test-symlinkat: enhance test
27228         * tests/test-readlink.c (main): Move guts...
27229         * tests/test-readlink.h (test_readlink): ...into new file.
27230         * tests/test-symlink.c (main): Move guts...
27231         * tests/test-symlink.h (test_symlink): ...into new file.
27232         * tests/test-symlinkat.c (main): Use new files for further
27233         coverage.
27234         (do_symlink, do_readlink): New helper functions.
27235         * modules/symlink-tests (Files): Ship new file.
27236         (Depends-on): Add stdbool.
27237         * modules/readlink-tests (Files): Ship new file.
27238         (Depends-on): Add stdbool.
27239         * modules/symlinkat-tests (Files): Use new files.
27240
27241 2009-09-23  Eric Blake  <ebb9@byu.net>
27242
27243         readlink: document portability issue with symlink length
27244         * doc/posix-functions/lstat.texi (lstat): Mention that some file
27245         systems have bogus st_size on symlinks, and mention the
27246         areadlink-with-size module.
27247         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
27248         * doc/posix-functions/readlink.texi (readlink): Mention the
27249         areadlink module, and ERANGE failure.
27250         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27251         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
27252
27253         readlink: fix Solaris 9 bug with trailing slash
27254         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
27255         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
27256         * doc/posix-functions/readlink.texi (readlink): Document this.
27257         * modules/readlink-tests: New test.
27258         * tests/test-readlink.c: Likewise.
27259
27260         readlink: fix cygwin 1.5.x bug with return type
27261         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
27262         * lib/unistd.in.h (readlink): Use ssize_t.
27263         * lib/readlink.c (readlink): Likewise.
27264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27265         * modules/unistd (Makefile.am): Substitute it.
27266         * lib/unistd.in.h (readlink): Declare replacement.
27267         * doc/posix-functions/readlink.texi (readlink): Document this.
27268
27269         symlink: use throughout gnulib
27270         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
27271         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
27272         symlink is not used.
27273         * modules/symlinkat (Depends-on): Add symlink.
27274         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27275         * modules/canonicalize-tests (Depends-on): Likewise.
27276         * modules/lstat-tests (Depends-on): Likewise.
27277         * modules/openat-tests (Depends-on): Likewise.
27278         * modules/remove-tests (Depends-on): Likewise.
27279         * modules/rmdir-tests (Depends-on): Likewise.
27280         * modules/unlink-tests (Depends-on): Likewise.
27281         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
27282         * tests/test-canonicalize.c (symlink): Likewise.
27283         * tests/test-fstatat.c (symlink): Likewise.
27284         * tests/test-lstat.c (symlink): Likewise.
27285         * tests/test-remove.c (symlink): Likewise.
27286         * tests/test-rmdir.c (symlink): Likewise.
27287         * tests/test-unlink.c (symlink): Likewise.
27288         * tests/test-unlinkat.c (symlink): Likewise.
27289
27290         symlink: new module, for Solaris 9 bug
27291         * modules/symlink: New file.
27292         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27293         * lib/symlink.c: Likewise.
27294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27295         * modules/unistd (Makefile.am): Substitute them.
27296         * lib/unistd.in.h (symlink): Declare replacement.
27297         * MODULES.html.sh (File system functions): Mention it.
27298         * doc/posix-functions/symlink.texi (symlink): Likewise.
27299         * modules/symlink-tests: New test.
27300         * tests/test-symlink.c: Likewise.
27301
27302 2009-09-23  Bruno Haible  <bruno@clisp.org>
27303
27304         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
27305         when needed.
27306         Test case: gnulib-tool --import --with-tests atexit inttypes.
27307         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
27308
27309 2009-09-23  Bruno Haible  <bruno@clisp.org>
27310
27311         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
27312         subcommand, not in a subshell.
27313
27314 2009-09-22  Eric Blake  <ebb9@byu.net>
27315
27316         unistd: sort replacement declarations
27317         * lib/unistd.in.h: Sort declarations.
27318
27319         open, openat: minor optimization
27320         * lib/open.c (open): If open succeeded, len is non-zero.
27321         * lib/openat.c (rpl_openat): Likewise.
27322
27323         link-follow: ensure correct result
27324         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
27325         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
27326         distinguish between possible failures.
27327
27328 2009-09-21  Eric Blake  <ebb9@byu.net>
27329
27330         fts: avoid compiler warning
27331         * lib/fts.c (dirent_inode_sort_may_be_useful)
27332         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
27333
27334 2009-09-19  Bruno Haible  <bruno@clisp.org>
27335
27336         * lib/progreloc.c (canonicalize_file_name): New declaration.
27337
27338 2009-09-19  Eric Blake  <ebb9@byu.net>
27339
27340         link: fix quoting
27341         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
27342
27343         openat: fix openat bugs on Solaris 9
27344         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
27345         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
27346         * modules/openat (Depends-on): Add open.
27347         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
27348         * modules/fcntl-h (Makefile.am): Substitute it.
27349         * lib/fcntl.in.h (openat): Declare replacement.
27350         * doc/posix-functions/openat.texi (openat): Document this.
27351
27352         openat: move fstatat and unlinkat into correct files
27353         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
27354         compiled.
27355         * lib/openat.c (fstatat, unlinkat): Move...
27356         * lib/fstatat.c (fstatat): ...into correct files.
27357         * lib/unlinkat.c (unlinkat): Likewise.
27358
27359         openat: fix unlinkat bugs on Solaris 9
27360         * lib/unlinkat.c (unlinkat): New file.
27361         * modules/openat (Depends-on): Add unlink.
27362         (Files): Distribute it.
27363         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
27364         trailing slash behavior is broken.
27365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27366         * modules/unistd (Makefile.am): Substitute it.
27367         * lib/unistd.in.h (unlinkat): Declare replacement.
27368         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
27369
27370         openat: fix fstatat bugs on Solaris 9
27371         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
27372         stat.
27373         * doc/posix-functions/fstatat.texi (fstatat): Document this.
27374
27375         test-unlinkat: enhance test, to expose Solaris 9 bug
27376         * tests/test-unlink.c (main): Factor guts...
27377         * tests/test-unlink.h (test_rmdir_func): ...into new file.
27378         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
27379         * tests/test-rmdir.c (main): Adjust caller.
27380         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
27381         (unlinker): New helper function.
27382         (rmdirat): Enhance check.
27383         * modules/rmdir-tests (Depends-on): Add stdbool.
27384         * modules/unlink-tests (Depends-on): Likewise.
27385         (Files): Add test-unlink.h.
27386         * modules/openat-tests (Files): Likewise.
27387         (Depends-on): Add unlinkdir.
27388
27389         test-fstatat: new test, to expose Solaris 9 bugs
27390         * tests/test-stat.c (main): Factor guts...
27391         * tests/test-stat.h (test_stat_func): ...into new file.
27392         * tests/test-lstat.c (main): Factor guts...
27393         * tests/test-lstat.h (test_lstat_func): ...into new file.
27394         * tests/test-fstatat.c: New file.
27395         * modules/stat-tests (Files): Add test-stat.h.
27396         * modules/lstat-tests (Files): Add test-lstat.h.
27397         (Depends-on): Add stdbool.
27398         * modules/openat-tests (Depends-on): Add pathmax.
27399         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
27400         (Makefile.am): Run new test.
27401
27402         remove: new module, for mingw and Solaris 9 bugs
27403         * modules/remove: New file.
27404         * lib/remove.c: Likewise.
27405         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
27406         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27407         * modules/stdio (Makefile.am): Use them.
27408         * lib/stdio.in.h (remove): Declare replacement.
27409         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27410         * doc/posix-functions/remove.texi (remove): Likewise.
27411         * modules/remove-tests: New test.
27412         * tests/test-remove.c: Likewise.
27413
27414         unlink: new module, for Solaris 9 bug
27415         * modules/unlink: New file.
27416         * lib/unlink.c: Likewise.
27417         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27419         * modules/unistd (Makefile.am): Use them.
27420         * lib/unistd.in.h (stat): Declare replacement.
27421         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27422         * doc/posix-functions/unlink.texi (unlink): Likewise.
27423         * modules/unlink-tests: New test.
27424         * tests/test-unlink.c: Likewise.
27425
27426         lstat: fix Solaris 9 bug
27427         * lib/lstat.c (lstat): Also check for trailing slash on
27428         non-symlink, non-directories.  Use stat module to simplify logic.
27429         * doc/posix-functions/lstat.texi (lstat): Document it.
27430         * modules/lstat-tests (Depends-on): Add errno, same-inode.
27431         (configure.ac): Check for symlink.
27432         * tests/test-lstat.c (main): Add more tests.
27433
27434         stat: add as dependency to other modules
27435         * modules/chown (Depends-on): Add stat.
27436         * modules/euidaccess (Depends-on): Likewise.
27437         * modules/fchdir (Depends-on): Likewise.
27438         * modules/isdir (Depends-on): Likewise.
27439         * modules/link (Depends-on): Likewise.
27440         * modules/lstat (Depends-on): Likewise.
27441         * modules/mkdir-p (Depends-on): Likewise.
27442         * modules/modechange (Depends-on): Likewise.
27443         * modules/open (Depends-on): Likewise.
27444         * modules/readlink (Depends-on): Likewise.
27445         * modules/same (Depends-on): Likewise.
27446
27447         stat: fix Solaris 9 bug
27448         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
27449         slash.
27450         * lib/stat.c (rpl_stat): Work around it.
27451         * doc/posix-functions/stat.texi (stat): Update documentation.
27452
27453         stat: new module, for mingw bug
27454         * modules/stat: New file.
27455         * lib/stat.c: Likewise.
27456         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27457         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27458         * modules/sys_stat (Makefile.am): Use them.
27459         * lib/sys_stat.in.h (stat): Declare replacement.
27460         * lib/openat.c (fstatat): Deal with lstat and stat being function
27461         macros.
27462         * modules/openat (Depends-on): Add inline.
27463         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27464         * doc/posix-functions/stat.texi (stat): Likewise.
27465         * modules/stat-tests: New test.
27466         * tests/test-stat.c: Likewise.
27467
27468 2009-09-19  Jim Meyering  <meyering@redhat.com>
27469
27470         syntax-check: detect unnecessary inclusion of canonicalize.h
27471         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
27472
27473 2009-09-19  Eric Blake  <ebb9@byu.net>
27474
27475         canonicalize-lgpl: adjust clients to use correct header
27476         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27477         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
27478         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
27479         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
27480         * lib/progreloc.c (includes): Likewise.
27481
27482 2009-09-19  Jim Meyering  <meyering@redhat.com>
27483
27484         test-posixtm.c: correct a comment
27485         * tests/test-posixtm.c: Correct first-line comment.
27486         Spotted by Eric Blake.
27487
27488 2009-09-16  Jim Meyering  <meyering@redhat.com>
27489
27490         posixtm-tests: make T const-correct; add a test case
27491         * tests/test-posixtm.c (T): Declare const.
27492         Add a test for -(2^31+1).
27493         Remove useless can-succeed-only-in-2002 test.
27494
27495         posixtm-tests: adjust the sole failing test
27496         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
27497         expected output matches what mktime now produces.  Cross-checked via
27498         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
27499
27500         posixtm: move #ifdef'd tests into a new module
27501         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
27502         * tests/test-posixtm.c: ... this new file.
27503         * modules/posixtm-tests: New module.
27504
27505 2009-09-19  Eric Blake  <ebb9@byu.net>
27506
27507         openat: simplify use of at-func.c
27508         * lib/at-func.c (includes): Include prerequisites here, to
27509         simplify requirements on client files.
27510         * lib/openat-priv.h: Add double-inclusion guard.
27511         * lib/faccessat.c (includes): Simplify.
27512         * lib/fchmodat.c (includes): Likewise.
27513         * lib/fchownat.c (includes): Likewise.
27514         * lib/mkdirat.c (includes): Likewise.
27515         * lib/mkfifoat.c (includes): Likewise.
27516         * lib/symlinkat.c (includes): Likewise.
27517
27518         openat: allow return of fd 0
27519         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
27520         * modules/save-cwd (Depends-on): Replace fcntl-safer with
27521         unistd-safer.
27522         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
27523         <fcntl.h>; this module does not leak fds.
27524         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
27525         must be allowed to return 0, leaving openat_safer to add the
27526         safety.
27527         (openat_permissive): Avoid writing to just-opened fd 2 if
27528         restoring the current directory fails.
27529         * lib/openat-die.c (openat_restore_fail): Add comment.
27530         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
27531         (save_cwd): Guarantee safe fd, but without use of open_safer.
27532         * tests/test-openat.c: New test.
27533         * modules/openat-tests (Files, Makefile.am): Distribute and build
27534         new file.
27535
27536         relocatable-prog-wrapper: fix build
27537         * modules/relocatable-prog-wrapper (Files): Update name of
27538         canonicalize m4 file, broken on 2009-09-17.
27539         Reported by emad hajjar <aleppos@hotmail.com>.
27540
27541 2009-09-19  Bruno Haible  <bruno@clisp.org>
27542
27543         * lib/safe-alloc.h: Use the standard header with GPL copyright.
27544         * lib/safe-alloc.c: Likewise.
27545         Reported by Ian Beckwith <ianb@erislabs.net>.
27546
27547 2009-09-18  Bruno Haible  <bruno@clisp.org>
27548
27549         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
27550         Reported by <erobles@sensacd.com.mx>.
27551
27552 2009-09-17  Eric Blake  <ebb9@byu.net>
27553
27554         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
27555         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
27556         slashes when checking if last component is missing.
27557         * tests/test-canonicalize.c (main): Test this.
27558
27559         canonicalize, canonicalize-lgpl: honor // if distinct from /
27560         * modules/canonicalize (Files): Add double-slash-root.m4.
27561         * modules/canonicalize-lgpl (Files): Likewise.
27562         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27563         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
27564         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
27565         fallback definition.
27566         (canonicalize_filename_mode): Use it to protect //.
27567         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
27568         (__realpath): Likewise.
27569         * tests/test-canonicalize.c (main): Test this.
27570         * tests/test-canonicalize-lgpl.c (main): Likewise.
27571         * modules/canonicalize-tests (Depends-on): Add same-inode.
27572         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27573
27574         canonicalize-lgpl: fix glibc bug with trailing slash
27575         * m4/canonicalize-lgpl.m4: Move contents...
27576         * m4/canonicalize.m4: ...here.
27577         (gl_CANONICALIZE_LGPL): Factor realpath check...
27578         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
27579         glibc 2.3.5 bug, fixed 2005-04-27.
27580         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
27581         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
27582         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
27583         * modules/canonicalize-lgpl (Files): Manage file rename.
27584         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
27585         * modules/stdlib (Makefile.am): Substitute witness.
27586         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
27587         is needed.
27588         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
27589         replacement is required.
27590         * lib/canonicalize.c (canonicalize_file_name): Likewise.
27591         * doc/glibc-functions/canonicalize_file_name.texi
27592         (canonicalize_file_name): Document this.
27593         * doc/posix-functions/realpath.texi (realpath): Likewise.
27594
27595         canonicalize-lgpl: reject non-directory with trailing slash
27596         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
27597         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
27598         catches failures in glibc 2.3.5.
27599         * tests/test-canonicalize.c (main): Likewise.
27600
27601         canonicalize-lgpl: use native realpath if it works
27602         * lib/canonicalize-lgpl.c (realpath): Guard with
27603         FUNC_REALPATH_WORKS.
27604         * lib/stdlib.in.h (realpath): Make declaration optional based on
27605         HAVE_REALPATH.
27606         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
27607         native realpath works.
27608         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
27609         * modules/stdlib (Makefile.am): Substitute witness.
27610
27611         canonicalize, canonicalize-lgpl: use <stdlib.h>
27612         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
27613         (Include): Mention <stdlib.h>.
27614         (configure.ac): Mention functions we provide.
27615         * modules/canonicalize (configure.ac): Likewise.
27616         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
27617         realpath if canonicalize_file_name is missing.
27618         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
27619         * modules/stdlib (Makefile.am): Substitute witnesses.
27620         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
27621         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
27622         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
27623         * NEWS: Document this.
27624         * doc/glibc-functions/canonicalize_file_name.texi
27625         (canonicalize_file_name): Likewise.
27626         * doc/posix-functions/realpath.texi (realpath): Likewise.
27627         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
27628
27629         test-canonicalize: consolidate into single C program
27630         * tests/test-canonicalize.sh: Delete; move setup into...
27631         * tests/test-canonicalize.c (main): ...the program, making it
27632         easier to run in debugger.  Add some tests.
27633         * modules/canonicalize-tests (Files): Remove unused file.
27634         (Depends-on): Add progname.
27635         (configure.ac, Makefile.am): Simplify.
27636
27637         test-canonicalize-lgpl: consolidate into single C program
27638         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
27639         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
27640         easier to run in debugger.  Add some tests.
27641         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
27642         (configure.ac, Makefile.am): Simplify.
27643
27644         canonicalize: avoid resolvepath
27645         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
27646         unnecessary checks.
27647         * lib/canonicalize.c (includes): Simplify.
27648         (canonicalize_file_name): Drop resolvepath implementation.
27649         * modules/canonicalize (Depends-on): Drop filenamecat.
27650
27651         canonicalize: don't lose errno
27652         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
27653         over calls to free.
27654
27655         canonicalize: simplify errno handling
27656         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
27657         assignment.
27658
27659         canonicalize, canonicalize-lgpl: update module dependencies
27660         * modules/canonicalize (Depends-on): Add extensions, lstat,
27661         pathmax, stdlib.
27662         (Files): Drop pathmax.h.
27663         (configure.ac): Adjust macro name.
27664         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
27665         lstat, stdlib, sys_stat.
27666         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
27667         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
27668         extensions.
27669         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
27670         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
27671         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
27672         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
27673         declaration, if available.
27674         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
27675         we can rely on the readlink module.
27676         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
27677         (includes): Use <unistd.h> unconditionally.
27678
27679 2009-09-17  Eric Blake  <ebb9@byu.net>
27680
27681         maint: make Include sections of modules consistent
27682         * modules/alloca: Use only header name; no need to list #include.
27683         * modules/alloca-opt: Likewise.
27684         * modules/arpa_inet: Likewise.
27685         * modules/canon-host: Likewise.
27686         * modules/configmake: Likewise.
27687         * modules/dirent: Likewise.
27688         * modules/eealloc: Likewise.
27689         * modules/environ: Likewise.
27690         * modules/fchdir: Likewise.
27691         * modules/fcntl: Likewise.
27692         * modules/fcntl-h: Likewise.
27693         * modules/gethrxtime: Likewise.
27694         * modules/gettime: Likewise.
27695         * modules/ignore-value: Likewise.
27696         * modules/inet_ntop: Likewise.
27697         * modules/inet_pton: Likewise.
27698         * modules/inttypes: Likewise.
27699         * modules/isnand-nolibm: Likewise.
27700         * modules/isnanf-nolibm: Likewise.
27701         * modules/mbchar: Likewise.
27702         * modules/mbfile: Likewise.
27703         * modules/mbiter: Likewise.
27704         * modules/mbuiter: Likewise.
27705         * modules/netdb: Likewise.
27706         * modules/netinet_in: Likewise.
27707         * modules/nproc: Likewise.
27708         * modules/pagealign_alloc: Likewise.
27709         * modules/poll: Likewise.
27710         * modules/printf-frexp: Likewise.
27711         * modules/pthread: Likewise.
27712         * modules/putenv: Likewise.
27713         * modules/random_r: Likewise.
27714         * modules/relocatable-prog: Likewise.
27715         * modules/search: Likewise.
27716         * modules/select: Likewise.
27717         * modules/selinux-h: Likewise.
27718         * modules/settime: Likewise.
27719         * modules/signal: Likewise.
27720         * modules/size_max: Likewise.
27721         * modules/socklen: Likewise.
27722         * modules/ssize_t: Likewise.
27723         * modules/stdarg: Likewise.
27724         * modules/stdbool: Likewise.
27725         * modules/stddef: Likewise.
27726         * modules/stdint: Likewise.
27727         * modules/stdio: Likewise.
27728         * modules/stdlib: Likewise.
27729         * modules/string: Likewise.
27730         * modules/strings: Likewise.
27731         * modules/sys_file: Likewise.
27732         * modules/sys_ioctl: Likewise.
27733         * modules/sys_select: Likewise.
27734         * modules/sys_socket: Likewise.
27735         * modules/sys_stat: Likewise.
27736         * modules/sys_time: Likewise.
27737         * modules/sys_times: Likewise.
27738         * modules/sys_utsname: Likewise.
27739         * modules/sys_wait: Likewise.
27740         * modules/sysexits: Likewise.
27741         * modules/time: Likewise.
27742         * modules/times: Likewise.
27743         * modules/tmpfile: Likewise.
27744         * modules/trim: Likewise.
27745         * modules/unistd: Likewise.
27746         * modules/wchar: Likewise.
27747         * modules/wctype: Likewise.
27748
27749 2009-09-17  Bruno Haible  <bruno@clisp.org>
27750
27751         Make getdate.y compile on QNX and NetBSD 5 / i386.
27752         * m4/getdate.m4 (gl_GETDATE): Conditionally define
27753         TIME_T_FITS_IN_LONG_INT.
27754         * lib/getdate.y (long_time_t): New type.
27755         (relative_time): Change type of 'seconds' field to long_time_t.
27756         (get_date): Update types of local variables. Check against overflow
27757         during conversion from long_time_t to time_t.
27758         Reported by Matt Kraai <kraai@ftbfs.org>
27759         and Hasso Tepper <hasso@netbsd.org>.
27760
27761 2009-09-17  Bruno Haible  <bruno@clisp.org>
27762
27763         * modules/COPYING: Update copyright years.
27764         * modules/README: Likeiwse.
27765         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
27766         Reported by Ian Beckwith <ianb@erislabs.net>.
27767
27768 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
27769
27770         * users.txt: Update references for gnuit package.
27771
27772 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
27773
27774         * m4/getdelim.m4: Fix typo in copyright line.
27775
27776 2009-09-17  Bruno Haible  <bruno@clisp.org>
27777
27778         * lib/atoll.c: Use the standard header with GPL copyright.
27779         * lib/argz.in.h: Likewise.
27780         * lib/glob.c: Likewise.
27781         * lib/glob-libc.h: Likewise.
27782         * lib/random_r.c: Likewise.
27783         * lib/siglist.h: Likewise.
27784         * lib/strsignal.c: Likewise.
27785         Reported by Ian Beckwith <ianb@erislabs.net>.
27786
27787 2009-09-17  Eric Blake  <ebb9@byu.net>
27788
27789         rmdir: ensure correct dependency order
27790         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
27791
27792 2009-09-17  Bruno Haible  <bruno@clisp.org>
27793
27794         Disable assertion that fails on NetBSD 5 / i386.
27795         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
27796         Reported by Sam Steingold <sds@gnu.org>
27797         and Hasso Tepper <hasso@netbsd.org>.
27798
27799 2009-09-16  Eric Blake  <ebb9@byu.net>
27800
27801         unlinkdir: port to mingw
27802         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
27803         on which no one can unlink a directory.
27804
27805         stdlib: sort witness names
27806         * modules/stdlib (Makefile.am): Sort replacements.
27807         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
27808         * lib/stdlib.in.h: Likewise.
27809
27810         parse-duration-tests: avoid link failure
27811         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
27812         LIBINTL.
27813         Reported by Tom G. Christensen.
27814
27815         openat-tests: ensure unlinkat behaves like rmdir
27816         * tests/test-rmdir.c (main): Factor guts...
27817         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
27818         * modules/rmdir-tests (Files): Ship new file.
27819         * modules/openat-tests: New test.
27820         * tests/test-unlinkat.c: Likewise.
27821
27822         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
27823         * modules/rmdir-errno (Status, Notice): Now obsolete.
27824
27825         rmdir: work around cygwin 1.5.x and mingw bugs
27826         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
27827         * lib/rmdir.c (rmdir): Work around it.
27828         * modules/rmdir (Status, Notice): No longer obsolete.
27829         (Files): Add dos.m4.
27830         (Depends-on): Add unistd.
27831         (configure.ac): Set witnesses.
27832         (License): Relax to LGPLv2+.
27833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
27834         * modules/unistd (Makefile.am): Substitute witnesses.
27835         * lib/unistd.in.h (rmdir): Declare replacement.
27836         * doc/posix-functions/rmdir.texi (rmdir): Document this.
27837         * modules/rmdir-tests: New tests.
27838         * tests/test-rmdir.c: Likewise.
27839
27840 2009-09-15  Eric Blake  <ebb9@byu.net>
27841
27842         fchdir: improve use of replacement functions
27843         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
27844         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
27845         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
27846         REPLACE_CLOSEDIR.
27847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
27848         * modules/sys_stat (Makefile.am): Substitute correct witness.
27849         * modules/dirent (Makefile.am): Likewise.
27850         * modules/unistd (Makefile.am): Likewise.
27851         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
27852         * lib/unistd.in.h (dup): Likewise.
27853         * lib/sys_stat.in.h (fstat): Likewise.
27854
27855         maint: ignore gnulib-tool temp files
27856         * .gitignore: Ignore files created during gnulib-tool --test.
27857
27858 2009-09-13  Jim Meyering  <meyering@redhat.com>
27859
27860         posixtm: don't reject a time that specify "60" as the number of seconds
27861         * lib/posixtm.c (posixtime): The code to reject invalid dates
27862         would also reject a time specified with the .60 suffix.
27863         But POSIX allows that, in order to accommodate leap seconds.
27864         So don't reject it.
27865         (main): Adjust tests accordingly.
27866         * modules/posixtm (Depends-on): Add stpcpy.
27867
27868 2009-09-11  Jim Meyering  <meyering@redhat.com>
27869
27870         announce-gen: include [$release_type] in emitted Subject:
27871         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
27872         e.g., [stable] in the emitted Subject: line.
27873
27874 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27875
27876         Remove obsolete macros from several modules.
27877         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
27878         obsolete Autoconf macros with their modern counterparts.
27879         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
27880         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
27881         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
27882         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
27883         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
27884         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27885         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
27886         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27887         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27888         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
27889         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
27890         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
27891         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
27892         * m4/sockets.m4 (gl_SOCKETS): Likewise.
27893         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
27894         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
27895         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
27896         * m4/time_r.m4 (gl_TIME_R): Likewise.
27897         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27898         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
27899         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
27900
27901         Fix copyright header in build-aux scripts.
27902         * build-aux/git-version-gen: Fix copyright header to match GPLv3
27903         recommendation.
27904         * build-aux/ncftpput-ftp: Likewise.
27905         * build-aux/update-copyright: Likewise.
27906
27907 2009-09-09  Eric Blake  <ebb9@byu.net>
27908
27909         test-link: allow Linux choice of errno
27910         * tests/test-link.c (main): Relax test for alternate error.
27911
27912         strndup: fix improper m4 caching
27913         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
27914         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
27915         (gl_PREREQ_STRNDUP): Delete.
27916         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
27917         * modules/string (Makefile.am): Substitute it.
27918         * lib/string.in.h (strndup): Modernize prototype.
27919
27920         getcwd: port to mingw
27921         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
27922         different from the POSIX assumptions made throughout the getcwd
27923         module; fortunately, the mingw getcwd does not need replacement.
27924         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
27925         * modules/getcwd-tests: New test.
27926         * tests/test-getcwd.c: Likewise.
27927
27928         link: fix platform bugs
27929         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
27930         * lib/link.c (link): Work around them.  Fix related mingw bug.
27931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
27932         * modules/unistd (Makefile.am): Substitute it.
27933         * lib/unistd.in.h (link): Declare replacement.
27934         * doc/posix-functions/link.texi (link): Document this.
27935         * modules/link (Depends-on): Add strdup-posix, sys_stat.
27936
27937         test-link: consolidate into single C program, test more cases
27938         * tests/test-link.sh: Delete.
27939         * tests/test-link.c: Test more error conditions.  Exposes bugs on
27940         at least Cygwin and Solaris.
27941         * modules/link-tests (Files): Remove unused file.
27942         (Depends-on): Add errno, sys_stat.
27943         (Makefile.am): Simplify.
27944
27945 2009-09-08  Bruno Haible  <bruno@clisp.org>
27946
27947         Work around towlower, towupper bug on mingw.
27948         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
27949         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
27950         * doc/posix-functions/towlower.texi: Mention the mingw bug.
27951         * doc/posix-functions/towupper.texi: Likewise.
27952         Reported by Eric Blake.
27953
27954 2009-09-08  Jim Meyering  <meyering@redhat.com>
27955
27956         build: don't try to run autoheader if we don't use it
27957         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
27958         is not used in configure.ac.
27959
27960 2009-09-08  Eric Blake  <ebb9@byu.net>
27961
27962         euidaccess: fix compilation error
27963         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
27964
27965         rawmemchr: relax license
27966         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
27967         okay.
27968         Reported by Jim Meyering.
27969
27970         mkfifoat: new module
27971         * modules/mkfifoat: New file.
27972         * lib/mkfifoat.c: Likewise.
27973         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
27974         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27975         * modules/sys_stat (Makefile.am): Use them.
27976         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
27977         * MODULES.html.sh (File system functions): Mention module.
27978         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
27979         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
27980         * modules/mkfifoat-tests: New test.
27981         * tests/test-mkfifoat.c: Likewise.
27982
27983         strchrnul: relax license
27984         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
27985         okay.
27986         Reported by Jim Meyering.
27987
27988 2009-09-08  Eric Blake  <ebb9@byu.net>
27989
27990         fstatat: fix compilation on Solaris
27991         * lib/fstatat.c (includes): Add fcntl.h.
27992         Reported by Pádraig Brady.
27993
27994 2009-09-07  Eric Blake  <ebb9@byu.net>
27995
27996         rename: modernize replacement
27997         * modules/rename (Depends-on): Add stdio.
27998         (configure.ac): Declare witness.
27999         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
28000         stdio take care of replacement.
28001         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
28002         * modules/stdio (Makefile.am): Substitute them.
28003         * lib/stdio.in.h (rename): Declare replacement.
28004         * lib/rename.c (includes): Allow cross-compilation to non-windows
28005         machines.
28006         * doc/posix-functions/rename.texi (rename): Improve
28007         documentation.
28008
28009         stdio: sort witness names
28010         * modules/stdio (Makefile.am): Sort replacements.
28011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28012         * lib/stdio.in.h: Likewise.
28013
28014         getcwd: minor cleanups
28015         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
28016         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
28017
28018         openat: provide more convenience names
28019         * modules/faccessat (configure.ac): Add C witness.
28020         * lib/unistd.in.h (readlinkat): Fix typo.
28021         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
28022         convenience wrappers.
28023         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
28024         wrappers in syntax checks.
28025
28026 2009-09-06  Eric Blake  <ebb9@byu.net>
28027
28028         doc: fix comments in recent patches
28029         * lib/faccessat.c: Mention correct function.
28030         * lib/fchmodat.c: Likewise.
28031         * lib/fchownat.c: Likewise.
28032         * lib/symlinkat.c: Likewise.
28033         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
28034         constants.
28035
28036         faccessat, symlinkat: continue cleanup of previous patch
28037         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
28038         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28039         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
28040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
28041         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
28042         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
28043         set.
28044
28045 2009-09-06  Bruno Haible  <bruno@clisp.org>
28046
28047         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
28048         (fstatat): Declare if GNULIB_FSTATAT is set.
28049         (mkdirat): Declare if GNULIB_MKDIRAT is set.
28050         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
28051         (unlinkat): Declare if GNULIB_UNLINKAT is set.
28052         * modules/fcntl-h (Files): Remove m4/openat.m4.
28053         * modules/sys_stat (Files): Remove m4/openat.m4.
28054         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
28055         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
28056         * modules/unistd (Files): Remove m4/openat.m4.
28057         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
28058         GNULIB_OPENAT.
28059         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
28060         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
28061         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
28062         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
28063         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
28064         gl_OPENAT_DEFAULTS.
28065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
28066         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
28067         Don't require gl_OPENAT_DEFAULTS.
28068         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
28069         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
28070         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
28071         (gl_OPENAT_DEFAULTS): Remove macro.
28072
28073 2009-09-06  Bruno Haible  <bruno@clisp.org>
28074
28075         * modules/openat (configure.ac): Remove unneeded witness.
28076
28077 2009-09-06  Bruno Haible  <bruno@clisp.org>
28078
28079         Set errno to ENOSYS when a function is entirely unsupported.
28080         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
28081         EOPNOTSUPP.
28082         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28083         * modules/chown (Depends-on): Remove errno.
28084
28085 2009-09-06  Bruno Haible  <bruno@clisp.org>
28086
28087         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
28088
28089 2009-09-06  Bruno Haible  <bruno@clisp.org>
28090
28091         * lib/sys_stat.in.h: Fix preprocessor command indentation.
28092
28093 2009-09-06  Ben Pfaff  <blp@gnu.org>
28094             Bruno Haible  <bruno@clisp.org>
28095
28096         Work around a glibc bug in strtok_r.
28097         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
28098         Undefine if UNDEFINE_STRTOK_R is set.
28099         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
28100         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28101         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
28102         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
28103         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
28104         UNDEFINE_STRTOK_R.
28105         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
28106
28107 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28108
28109         exclude: minor fix
28110         * lib/exclude.c: Include wctype.h
28111
28112 2009-09-06  Akim Demaille  <demaille@gostai.com>
28113
28114         bootstrap: improve error message
28115         * build-aux/bootstrap (find_tool): Upon failure, report the list
28116         of candidates.
28117         Honor the initial value of the envvar.
28118
28119 2009-09-05  Eric Blake  <ebb9@byu.net>
28120
28121         symlinkat: new module
28122         * modules/symlinkat: New file.
28123         * lib/symlinkat.c: Likewise.
28124         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
28125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28126         * modules/unistd (Makefile.am): Use them.
28127         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
28128         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
28129         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
28130         * MODULES.html.sh (File system functions): Mention module.
28131         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28132         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28133         * modules/symlinkat-tests: New test.
28134         * tests/test-symlinkat.c: Likewise.
28135
28136         test-openat-safer: add more checks
28137         * tests/test-openat-safer.c (main): Check more code paths.
28138
28139 2009-09-05  Jim Meyering  <meyering@redhat.com>
28140
28141         syntax-check: detect unnecessary inclusion of openat.h
28142         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
28143
28144 2009-09-05  Bruno Haible  <bruno@clisp.org>
28145
28146         Support towlower, towupper.
28147         * doc/posix-functions/towlower.texi: Mention module wctype.
28148         * doc/posix-functions/towupper.texi: Likewise.
28149         * lib/wctype.in.h (towlower, towupper): New functions.
28150         * tests/test-wctype.c: Include stdio.h, stdlib.h.
28151         (ASSERT): New macro.
28152         (e): New variable.
28153         (main): Test also towlower, towupper. Test WEOF argument.
28154         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28155
28156 2009-09-05  Bruno Haible  <bruno@clisp.org>
28157
28158         Fix conversion behaviour when the input is invalid.
28159         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
28160         mark occurring in first pass of indirect conversion.
28161         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
28162         input.
28163         Found by clang's static analyzer.
28164
28165 2009-09-05  Bruno Haible  <bruno@clisp.org>
28166
28167         * tests/test-striconveh.c (main): Test indirect conversion on platforms
28168         where direct conversion is possible.
28169
28170 2009-09-04  Eric Blake  <ebb9@byu.net>
28171
28172         openat: fail with ENOENT on empty name
28173         * lib/openat-proc.c (openat_proc_name): Special-case the empty
28174         buffer.
28175
28176         link-follow: fix logic bug in prior patch
28177         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
28178         reversed sense of yes and no in prior patch.  Avoid confusing
28179         compilation failure with desired semantics.
28180
28181         link-follow: accomodate mingw and cross-compilation
28182         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
28183         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
28184         cross-compilation results to -1, to make linkat easier to
28185         implement when cross-compiling.  Trivially support mingw.
28186         * modules/link-follow (configure.ac): Call new name.
28187         * NEWS: Mention this.
28188
28189 2009-09-03  Eric Blake  <ebb9@byu.net>
28190
28191         faccessat: compile replacement
28192         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
28193         needed.
28194
28195         fts: fix compilation error
28196         * lib/fts.c (includes): Re-add "openat.h", for
28197         openat_needs_fchdir.
28198
28199         faccessat: new module
28200         * modules/faccessat: New file.
28201         * lib/faccessat.c: Likewise.
28202         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28204         * modules/unistd (Makefile.am): Use it.
28205         * lib/unistd.in.h (faccessat): Declare it.
28206         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
28207         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
28208         * MODULES.html.sh (File system functions): Mention it.
28209         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
28210         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28211
28212         euidaccess: prefer POSIX over non-standard implementation
28213         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
28214         * lib/euidaccess.c (euidaccess): Use it if available.
28215
28216         openat: make template easier to use
28217         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
28218         AT_FUNC_F2 to be undefined.
28219         (VALIDATE_FLAG): New macro; use it to reject bad flags.
28220         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
28221         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
28222         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
28223         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
28224         Likewise.
28225         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
28226         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
28227         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
28228         Likewise.
28229
28230         openat: declare in POSIX headers
28231         * NEWS: Mention this.
28232         * modules/openat (configure.ac): Declare witnesses.
28233         (Depends-on): Add fcntl-h, sys_stat, unistd.
28234         (Include): Mention correct headers.
28235         * modules/fcntl-h (Depends-on): Add link-warning.
28236         (Files): Add openat.m4.
28237         (Makefile.am): Substitute witnesses.
28238         * modules/sys_stat (Files, Makefile.am): Likewise.
28239         * modules/unistd (Files, Makefile.am): Likewise.
28240         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
28241         (gl_OPENAT_DEFAULTS): New macro.
28242         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
28243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
28244         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
28245         (SYS_STAT_H): Remove unused variable.
28246         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
28247         * lib/fcntl--.h (includes): Remove unneeded header.
28248         * lib/openat-safer.c (includes): Likewise.
28249         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
28250         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
28251         appropriate headers.
28252         (__OPENAT_PREFIX): Delete.
28253         * lib/fcntl.in.h (openat): Provide declaration.
28254         (AT_FDCWD): Fix Solaris bug.
28255         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
28256         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
28257         * lib/fchmodat.c (includes):  Adjust to find declaration.
28258         * lib/fchownat.c (includes): Likewise.
28259         * lib/mkdirat.c (includes): Likewise.
28260         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
28261         still visible.
28262
28263 2009-09-02  Eric Blake  <ebb9@byu.net>
28264
28265         errno: use consistently
28266         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
28267         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
28268         * lib/canonicalize.c (ELOOP): Likewise.
28269         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
28270         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
28271         * lib/lchown.c (EOPNOTSUPP): Likewise.
28272         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
28273         * lib/savewd.c (ESTALE): Likewise.
28274         * lib/settime.c (ENOSYS): Likewise.
28275         * lib/utimens.c (ENOSYS): Likewise.
28276         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
28277         * lib/chdir-safer.c (ELOOP): Likewise.
28278         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
28279         * modules/c-stack (Depends-on): Add errno.
28280         * modules/canonicalize (Depends-on): Likewise.
28281         * modules/chdir-safer (Depends-on): Likewise.
28282         * modules/fdopendir (Depends-on): Likewise.
28283         * modules/inet_ntop (Depends-on): Likewise.
28284         * modules/inet_pton (Depends-on): Likewise.
28285         * modules/lchown (Depends-on): Likewise.
28286         * modules/openat (Depends-on): Likewise.
28287         * modules/savewd (Depends-on): Likewise.
28288         * modules/settime (Depends-on): Likewise.
28289         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
28290
28291         fts: avoid leaking fds
28292         * modules/fts (Depends-on): Add cloexec.
28293         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
28294         flag.
28295
28296         fts: make directory fds more robust
28297         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
28298         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
28299
28300         backupfile, chdir-long, fts, savedir: make safer
28301         * lib/backupfile.c (includes): Use "dirent--.h", since
28302         numbered_backup can write to stderr during readdir.
28303         * lib/savedir.c (includes): Likewise.
28304         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
28305         emulation can write to stderr on failure.
28306         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
28307         * lib/getcwd.c: Document why opendir_safer is unused.
28308         * lib/glob.c: Likewise.
28309         * lib/scandir.c: Likewise.
28310         * lib/openat-proc.c: Likewise, for open_safer.
28311         * modules/backupfile (Depends-on): Add dirent-safer.
28312         * modules/savedir (Depends-on): Likewise.
28313         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
28314         * modules/chdir-long (Depends-on): Add openat-safer.
28315
28316         openat-safer: new module
28317         * modules/openat-safer: New file.
28318         * lib/openat-safer.c: Likewise.
28319         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
28320         * lib/fcntl-safer.h (openat_safer): Declare.
28321         * lib/fcntl--.h (openat): Override.
28322         * MODULES.html.sh (File descriptor based I/O): Mention it.
28323         * lib/openat.h: Add double-inclusion guards.
28324         * lib/openat.c (includes): Only include "fcntl-safer.h", not
28325         "fcntl--.h", so we can implement openat.
28326         * modules/openat-safer-tests: New test.
28327         * tests/test-openat-safer.c: New file.
28328
28329         dirent-safer: new module
28330         * modules/dirent-safer: New file.
28331         * lib/dirent--.h: Likewise.
28332         * lib/dirent-safer.h: Likewise.
28333         * lib/opendir-safer.c: Likewise.
28334         * m4/dirent-safer.m4: Likewise.
28335         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
28336         * modules/dirent-safer-tests: New test.
28337         * tests/test-dirent-safer.c: New file.
28338         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
28339
28340         fdopendir: optimize on mingw
28341         * lib/unistd.in.h (_gl_directory_name): New prototype.
28342         * lib/fchdir.c (_gl_directory_name): Implement it.
28343         (fchdir): Use it to simplify implementation.
28344         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
28345         fchdir, when available, to avoid calling [f]chdir().
28346
28347         fdopendir: split into its own module
28348         * lib/openat.c (fdopendir): Move...
28349         * lib/fdopendir.c: ...into new file.
28350         * modules/fdopendir: New module.
28351         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
28352         * modules/openat (Depends-on): Add fdopendir.
28353         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
28354         fdopendir here.
28355         * modules/savedir (Depends-on): Only need fdopendir, not full
28356         openat.
28357         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
28358         * lib/openat.h (fdopendir): Drop prototype.
28359         * lib/dirent.in.h (fdopendir): Provide prototype.
28360         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
28361         * modules/dirent (Makefile.am): Substitute them.
28362         * MODULES.html.sh (File system functions): Mention it.
28363         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
28364         * modules/fdopendir-tests: New file.
28365         * tests/test-fdopendir.c: Likewise.
28366
28367         fchdir: use more consistent macro convention
28368         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
28369         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
28370         REPLACE_FCHDIR, rather than relying on config.h macros.
28371         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
28372         inside a single make-time REPLACE_FCHDIR block, rather than using
28373         the config.h FCHDIR_REPLACEMENT.
28374         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
28375         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
28376         Manage fstat replacement.
28377         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
28378         REPLACE_FCHDIR.
28379         * modules/sys_stat (Files): Add m4/unistd_h.m4.
28380         (Makefile.am): Substitute REPLACE_FCHDIR.
28381         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
28382         FCHDIR_REPLACEMENT.
28383         * lib/dup-safer.c (dup_safer): Likewise.
28384         * lib/dup2.c (rpl_dup2): Likewise.
28385         * lib/dup3.c (rpl_dup3): Likewise.
28386         * lib/open.c (rpl_open): Likewise.
28387
28388         fchdir: simplify error handling, and support dup3
28389         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
28390         stdbool, malloc-posix, realloc-posix.
28391         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
28392         (ensure_dirs_slot): Return false on allocation failure.
28393         (rpl_dup2): Delete.
28394         (_gl_register_dup): New function.
28395         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
28396         (_gl_register_fd): Close fd on allocation failure.
28397         * lib/fcntl.in.h (_gl_register_fd): Update signature.
28398         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
28399         prototype.
28400         (rpl_dup2_fchdir): Delete prototype.
28401         * lib/open.c (open): Update caller.
28402         * lib/dup2.c (dup2): Track fchdir metadata.
28403         * lib/dup3.c (dup3): Likewise.
28404         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
28405         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
28406
28407 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28408
28409         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
28410         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
28411         don't pass arguments to AC_OUTPUT.
28412
28413 2009-09-02  Bruno Haible  <bruno@clisp.org>
28414
28415         * modules/mkdtemp (License): Relicense under LGPLv2+.
28416         Reported by Paolo Bonzini.
28417
28418 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28419
28420         Replace uses of obsolete autoconf macros in Jim's modules.
28421         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
28422         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
28423         can evoke a warning from autoconf when run with -Wobsolete
28424         enabled.  They were declared obsolete for good reasons (see
28425         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
28426         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
28427         should not continue using the deprecated macros.
28428         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
28429         obsolete Autoconf macros with modern counterparts.
28430         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28431         * m4/dos.m4 (gl_AC_DOS): Likewise.
28432         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
28433         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28434         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
28435         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
28436         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
28437         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
28438         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
28439         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
28440         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
28441         Likewise.
28442         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28443         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
28444         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
28445         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
28446         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
28447         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
28448
28449 2009-09-01  Eric Blake  <ebb9@byu.net>
28450
28451         fchdir: fix off-by-one bug in previous patch
28452         * lib/fchdir.c (rpl_fstat): Use correct bounds.
28453         (_gl_unregister_fd): Delete useless if.
28454
28455 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
28456
28457         maint.mk: sort the list of syntax-check rules
28458         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
28459         easier to get a sense of progress when the rules are run sequentially
28460         and take a long time.
28461
28462 2009-09-01  Simon Josefsson  <simon@josefsson.org>
28463
28464         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
28465         * modules/netinet_in: Likewise.
28466         * modules/sys_file: Likewise.
28467         * modules/sys_ioctl: Likewise.
28468         * modules/sys_select: Likewise.
28469         * modules/sys_socket: Likewise.
28470         * modules/sys_stat: Likewise.
28471         * modules/sys_time: Likewise.
28472         * modules/sys_times: Likewise.
28473         * modules/sys_utsname: Likewise.
28474         * modules/sys_wait: Likewise.
28475
28476 2009-09-01  Jim Meyering  <meyering@redhat.com>
28477
28478         fts: help ensure that return values are not ignored
28479         * lib/fts_.h (__GNUC_PREREQ): Define.
28480         (__attribute_warn_unused_result__): Define.
28481         (fts_children, fts_close, fts_open, fts_read): Declare with
28482         __attribute_warn_unused_result__.
28483
28484         fts: fts_close now fails also when closing a dir file descriptor fails
28485         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
28486         and propagate to caller, along with errno.
28487
28488         announce-gen: correct formatting in --help output
28489         * build-aux/announce-gen (usage): Move the one-line description in
28490         --help output "up", to where it belongs, just after Usage:.
28491
28492 2009-08-31  Eric Blake  <ebb9@byu.net>
28493
28494         fchdir: port to mingw
28495         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
28496         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
28497         opened, then use a substitute.
28498         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
28499         replacement.
28500         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
28501         (_gl_register_fd): No need to check stat if open already filters
28502         all directories.
28503         (fchdir): Fix error condition to match POSIX.
28504         * modules/fchdir (Depends-on): Add sys_stat.
28505         * doc/posix-functions/open.texi (open): Document the limitation.
28506         * modules/fchdir-tests: New file.
28507         * tests/test-fchdir.c: Likewise.
28508
28509         canonicalize: allow cross-testing from cygwin to mingw
28510         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
28511         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
28512         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
28513         Likewise.
28514         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
28515         target does not support symlinks.
28516         * tests/test-canonicalize-lgpl.sh: Likewise.
28517
28518         chown: avoid compilation warning on mingw
28519         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
28520         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
28521         mingw.
28522         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28523         * modules/chown (Depends-on): Add errno.
28524
28525 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
28526
28527         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
28528         command.
28529
28530 2009-08-31  Jim Meyering  <meyering@redhat.com>
28531
28532         canonicalize: remove useless initialization
28533         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
28534         initialization of local, "end".
28535
28536 2009-08-30  Bruno Haible  <bruno@clisp.org>
28537
28538         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
28539         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
28540         ENOSYS.
28541
28542 2009-08-30  Bruno Haible  <bruno@clisp.org>
28543
28544         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
28545         /usr/xpg4/bin/tr when it exists.
28546         * tests/test-pipe-filter-gi1.sh: Likewise.
28547
28548 2009-08-30  Bruno Haible  <bruno@clisp.org>
28549
28550         Work around deficient /usr/bin/id program on Solaris.
28551         * tests/test-file-has-acl.sh (ID): New variable.
28552         * tests/test-set-mode-acl.sh (ID): Likewise.
28553         * tests/test-copy-acl.sh (ID): Likewise.
28554         * tests/test-copy-file.sh (ID): Likewise.
28555
28556 2009-08-30  Bruno Haible  <bruno@clisp.org>
28557
28558         New module 'xstriconveh'.
28559         * lib/xstriconveh.h: New file.
28560         * lib/xstriconveh.c: New file.
28561         * modules/xstriconveh: New file.
28562
28563 2009-08-30  Bruno Haible  <bruno@clisp.org>
28564
28565         Make it easier to use mem_cd_iconveh.
28566         * lib/striconveh.h (iconveh_t): New type.
28567         (iconveh_open, iconveh_close): New declarations.
28568         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
28569         with a single 'const iconveh_t *' argument.
28570         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
28571         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
28572         with a single 'const iconveh_t *' argument.
28573         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
28574         * tests/test-striconveh.c (main): Update.
28575         * NEWS: Mention the change.
28576
28577 2009-08-30  Bruno Haible  <bruno@clisp.org>
28578
28579         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
28580         problem.
28581
28582 2009-08-30  Bruno Haible  <bruno@clisp.org>
28583
28584         Work around iconv_open problem on Solaris.
28585         * lib/iconv_open-solaris.gperf: New file.
28586         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
28587         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
28588         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
28589         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
28590         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
28591         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
28592
28593 2009-08-29  Jim Meyering  <meyering@redhat.com>
28594
28595         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
28596         * top/maint.mk (cvs-check): Remove target; it was just an alias
28597         to the better-named vc-diff-check.
28598         (maintainer-distcheck): Remove rule.  It was used only from
28599         the (alpha/beta/major) target, and all of its commands but one
28600         were coreutils-specific.
28601         (vc-dist): Remove rule.
28602         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
28603         Run vc-diff-check, not vc-dist.
28604         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
28605
28606 2009-08-27  Bruno Haible  <bruno@clisp.org>
28607
28608         * tests/test-bitrotate.c (main): Remove test that uses a shift count
28609         of 0.
28610
28611 2009-08-27  Bruno Haible  <bruno@clisp.org>
28612
28613         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
28614         compilers.
28615         * doc/func.texi: Document the SunPRO C bug.
28616
28617 2009-08-27  Bruno Haible  <bruno@clisp.org>
28618
28619         Fix link error on Solaris.
28620         * tests/test-parse-duration.c (xstrdup): Remove function.
28621
28622 2009-08-26  Pádraig Brady  <P@draigbrady.com>
28623
28624         ignore-value: handle pointer types, too
28625         * lib/ignore-value.h (__attribute__): Remove definition.
28626         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
28627         of a more concise and more-often effective "(void) i" statement.
28628         (ignore_ptr): New function to suppress warnings from functions that
28629         return pointers, and to make it explicit that one function doesn't
28630         handle all cases.
28631
28632 2009-08-25  Bruno Haible  <bruno@clisp.org>
28633
28634         dup2: work around a Linux bug.
28635         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
28636         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
28637         * doc/posix-functions/dup2.texi: Mention the Linux bug.
28638         Reported by Simon Josefsson.
28639
28640 2009-08-25  Jim Meyering  <meyering@redhat.com>
28641
28642         libguestfs uses gnulib
28643         * users.txt: Add libguestfs.
28644
28645 2009-08-24  Eric Blake  <ebb9@byu.net>
28646
28647         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
28648         * lib/pipe2.c (includes): Add binary-io.h.
28649         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
28650
28651 2009-08-24  Bruno Haible  <bruno@clisp.org>
28652
28653         Tolerate declared but missing accept4 syscall.
28654         * lib/accept4.c (accept4): Invoke original accept4 function first, if
28655         available.
28656         * lib/sys_socket.in.h (accept4): If the function is already present,
28657         override it.
28658         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
28659         * modules/accept4 (Makefile.am): Compile accept4.c always.
28660         Reported by Paolo Bonzini and Eric Blake.
28661
28662 2009-08-23  Bruno Haible  <bruno@clisp.org>
28663
28664         New module 'accept4'.
28665         * lib/sys_socket.in.h (accept4): New declaration.
28666         * lib/accept4.c: New file.
28667         * m4/accept4.m4: New file.
28668         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28669         GNULIB_ACCEPT4, HAVE_ACCEPT4.
28670         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
28671         HAVE_ACCEPT4.
28672         * modules/accept4: New file.
28673         * doc/glibc-functions/accept4.texi: Mention the new module.
28674
28675 2009-08-24  Jim Meyering  <meyering@redhat.com>
28676
28677         progname: also set global program_invocation_name, when possible
28678         Before this change, a libtool-enabled program that calls glibc's
28679         error function would report the program name as
28680         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
28681         * modules/progname (configure.ac): Check for a declaration of
28682         program_invocation_name.
28683         * lib/progname.c:  Include <errno.h>.
28684         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
28685         Set program_invocation_name.
28686
28687 2009-08-23  Bruno Haible  <bruno@clisp.org>
28688
28689         * lib/dup3.c: Include <string.h>.
28690
28691 2009-08-23  Bruno Haible  <bruno@clisp.org>
28692
28693         * lib/dup3.c (dup3): Test only once whether the system actually exists.
28694         * lib/pipe2.c (pipe2): Likewise.
28695         Suggested by Eric Blake.
28696
28697 2009-08-23  Bruno Haible  <bruno@clisp.org>
28698
28699         Tolerate declared but missing dup3 syscall.
28700         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
28701         * lib/unistd.in.h (dup3): If the function is already present,
28702         override it.
28703         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
28704         * modules/dup3 (Makefile.am): Compile dup3.c always.
28705         Reported by Paolo Bonzini.
28706
28707 2009-08-23  Bruno Haible  <bruno@clisp.org>
28708
28709         Tolerate declared but missing pipe2 syscall.
28710         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
28711         available.
28712         * lib/unistd.in.h (pipe2): If the function is already present,
28713         override it.
28714         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
28715         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
28716         Reported by Paolo Bonzini.
28717
28718 2009-08-23  Bruno Haible  <bruno@clisp.org>
28719
28720         * lib/pipe2.c (pipe2): Move #ifs inside function.
28721
28722 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28723
28724         quotearg: document limitations of quote_these_too
28725         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
28726         those limitations are created.
28727         * lib/quotearg.h (set_char_quoting): Document that digits and
28728         letters that are special after backslash are not permitted.
28729         (quotearg_char): Cross-reference set_char_quoting documentation.
28730
28731 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
28732
28733         quotearg: implement custom_quoting_style
28734         * lib/quotearg.c: (struct quoting_options): Add left_quote and
28735         right_quote fields.
28736         (set_custom_quoting): New public function.
28737         (quotearg_buffer_restyled): Add left_quote and right_quote
28738         arguments, handle them very much like locale quoting, and update
28739         all uses.
28740         (quotearg_n_custom): New public function.
28741         (quotearg_n_custom_mem): New public function.
28742         (quotearg_custom): New public function.
28743         (quotearg_custom_mem): New public function.
28744         * lib/quotearg.h: Prototype and document new public functions.
28745         (enum quoting_style): For escape_quoting_style and
28746         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
28747         ignored even though they're otherwise like c_quoting_style.
28748         Add custom_quoting_style member and document with comparison to
28749         clocale_quoting_style.
28750         * tests/test-quotearg.c (custom_quotes): New array.
28751         (custom_results): New array.
28752         (main): Extend to test custom quoting.
28753
28754 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28755
28756         quotearg: fix right quote escaping when it's in quote_these_too
28757         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
28758         quote, be sure to prepend only one backslash.
28759         * tests/test-quotearg.c (use_quote_double_quotes): New function.
28760         (main): Test it.
28761
28762 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28763
28764         quotearg-tests: test escaping of embedded locale quotes
28765         * tests/test-quotearg.c (struct result_strings): Add member for
28766         new input.
28767         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
28768         (inputs): Add new input.
28769         (results_g): Add expected results.
28770         (flag_results): Likewise.
28771         (locale_results): Likewise.
28772         (compare_strings): Check those.
28773
28774 2009-08-23  Bruno Haible  <bruno@clisp.org>
28775
28776         Tests for module 'dup3'.
28777         * modules/dup3-tests: New file.
28778         * tests/test-dup3.c: New file.
28779
28780         New module 'dup3'.
28781         * lib/unistd.in.h (dup3): New declaration.
28782         * lib/dup3.c: New file.
28783         * m4/dup3.m4: New file.
28784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
28785         HAVE_DUP3.
28786         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
28787         * modules/dup3: New file.
28788         * doc/glibc-functions/dup3.texi: Mention the new module.
28789
28790 2009-08-23  Bruno Haible  <bruno@clisp.org>
28791
28792         Tweak the dup2 test.
28793         * tests/test-dup2.c (main): Create the test file empty. Verify that an
28794         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
28795         the test file is still empty. Fix argument order of lseek.
28796
28797 2009-08-23  Bruno Haible  <bruno@clisp.org>
28798
28799         Avoid test link errors when the modules getopt-gnu, gettext are used.
28800         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
28801         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28802
28803 2009-08-23  Bruno Haible  <bruno@clisp.org>
28804
28805         Fix getdtablesize() on mingw.
28806         * lib/getdtablesize.c (getdtablesize): Implement differently.
28807         * lib/unistd.in.h (getdtablesize): Improve comment.
28808
28809 2009-08-23  Bruno Haible  <bruno@clisp.org>
28810
28811         New module 'mkostemp'.
28812         Based on Ulrich Drepper's 2007-08-10 change in glibc.
28813         * lib/stdlib.in.h (mksotemp): New declaration.
28814         * lib/mkostemp.c: New file, from glibc with modifications.
28815         * lib/tempname.h (GT_FILE): Remove outdated comment.
28816         (gen_tempname): Add flags argument.
28817         * lib/tempname.c (__GT_BIGFILE): Remove macro.
28818         (__GT_FILE): Map to 1.
28819         (small_open, large_open): Remove macros.
28820         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
28821         * lib/mkstemp.c (mkstemp): Update.
28822         * lib/mkdtemp.c (mkdtemp): Likewise.
28823         * m4/mkostemp.m4: New file.
28824         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
28825         HAVE_MKOSTEMP.
28826         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
28827         HAVE_MKOSTEMP.
28828         * modules/mkostemp: New file, based on modules/mkstemp.
28829         * doc/glibc-functions/mkostemp.texi: Mention the new module.
28830         * NEWS: Mention the change.
28831
28832 2009-08-23  Bruno Haible  <bruno@clisp.org>
28833
28834         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
28835         Reported by Eric Blake.
28836
28837 2009-08-23  Bruno Haible  <bruno@clisp.org>
28838
28839         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
28840         Reported by Eric Blake.
28841
28842 2009-08-23  Bruno Haible  <bruno@clisp.org>
28843
28844         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
28845         * modules/pipe2 (Depends-on): Likewise.
28846
28847 2009-08-23  Eric Blake  <ebb9@byu.net>
28848
28849         fcntl-h: add O_TTY_INIT support
28850         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
28851         * tests/test-fcntl-h.c (o): Test it.
28852         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28853
28854         fcntl-h: rename from fcntl, in preparation for fcntl(2)
28855         * modules/fcntl: Move <fcntl.h> header replacement...
28856         * modules/fcntl-h: ...to new name, so as not to collide with
28857         like-named function.
28858         * tests/test-fcntl.c: Rename...
28859         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
28860         * modules/fcntl-tests: Rename...
28861         * modules/fcntl-h-tests: ...to this.  Update test file name.
28862         * modules/chdir-long (Depends-on): Update clients.
28863         * modules/chdir-safer (Depends-on): Likewise.
28864         * modules/fcntl-safer (Depends-on): Likewise.
28865         * modules/fts (Depends-on): Likewise.
28866         * modules/mkancesdirs (Depends-on): Likewise.
28867         * modules/mkdir-p (Depends-on): Likewise.
28868         * modules/open (Depends-on): Likewise.
28869         * modules/savewd (Depends-on): Likewise.
28870         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
28871         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28872
28873 2009-08-22  Bruno Haible  <bruno@clisp.org>
28874
28875         * modules/binary-io (License): Relicense under LGPL.
28876         * modules/pipe2 (License): Likewise.
28877
28878 2009-08-22  Bruno Haible  <bruno@clisp.org>
28879
28880         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
28881         return value.
28882         * lib/pipe-filter-gi.c (filter_init): Likewise.
28883         Reported by Eric Blake.
28884
28885 2009-08-22  Bruno Haible  <bruno@clisp.org>
28886
28887         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
28888         * modules/pipe (Depends-on): Add pipe2.
28889
28890 2009-08-22  Bruno Haible  <bruno@clisp.org>
28891
28892         Tests for module 'pipe2'.
28893         * modules/pipe2-tests: New file.
28894         * tests/test-pipe2.c: New file.
28895
28896         New module 'pipe2'.
28897         * lib/unistd.in.h (pipe2): New declaration.
28898         * lib/pipe2.c: New file.
28899         * m4/pipe2.m4: New file.
28900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
28901         HAVE_PIPE2.
28902         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
28903         * modules/pipe2: New file.
28904         * doc/glibc-functions/pipe2.texi: Mention the new module.
28905
28906 2009-08-22  Bruno Haible  <bruno@clisp.org>
28907
28908         Reference some new glibc functions.
28909         * doc/glibc-functions/accept4.texi: New file.
28910         * doc/glibc-functions/dup3.texi: New file.
28911         * doc/glibc-functions/mkostemp.texi: New file.
28912         * doc/glibc-functions/pipe2.texi: New file.
28913         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
28914         (Glibc sys/socket.h): Refer to accept4.
28915         (Glibc unistd.h): Refer to dup3, pipe2.
28916         Reported by Eric Blake.
28917
28918 2009-08-22  Jim Meyering  <meyering@redhat.com>
28919             Bruno Haible  <bruno@clisp.org>
28920
28921         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
28922         This makes it so packages using automake-1.11's silent-rules option
28923         can print e.g., a single "GEN    configmake.h" line, rather than
28924         the 30+ statements that perform the job.  If you want to see the
28925         actual commands, you can still run "make V=1".
28926         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
28927         so that make output is abbreviated when those variables are defined
28928         appropriately.
28929         * modules/argz: Likewise.
28930         * modules/arpa_inet: Likewise.
28931         * modules/byteswap: Likewise.
28932         * modules/configmake: Likewise.
28933         * modules/dirent: Likewise.
28934         * modules/errno: Likewise.
28935         * modules/fcntl: Likewise.
28936         * modules/float: Likewise.
28937         * modules/fnmatch: Likewise.
28938         * modules/getopt-posix: Likewise.
28939         * modules/glob: Likewise.
28940         * modules/iconv_open: Likewise.
28941         * modules/inttypes: Likewise.
28942         * modules/localcharset: Likewise.
28943         * modules/locale: Likewise.
28944         * modules/math: Likewise.
28945         * modules/netdb: Likewise.
28946         * modules/netinet_in: Likewise.
28947         * modules/poll: Likewise.
28948         * modules/posix_spawnp-tests: Likewise.
28949         * modules/sched: Likewise.
28950         * modules/search: Likewise.
28951         * modules/selinux-h: Likewise.
28952         * modules/signal: Likewise.
28953         * modules/spawn: Likewise.
28954         * modules/stdarg: Likewise.
28955         * modules/stdbool: Likewise.
28956         * modules/stddef: Likewise.
28957         * modules/stdint: Likewise.
28958         * modules/stdio: Likewise.
28959         * modules/stdlib: Likewise.
28960         * modules/string: Likewise.
28961         * modules/strings: Likewise.
28962         * modules/sys_file: Likewise.
28963         * modules/sys_ioctl: Likewise.
28964         * modules/sys_select: Likewise.
28965         * modules/sys_socket: Likewise.
28966         * modules/sys_stat: Likewise.
28967         * modules/sys_time: Likewise.
28968         * modules/sys_times: Likewise.
28969         * modules/sys_utsname: Likewise.
28970         * modules/sys_wait: Likewise.
28971         * modules/sysexits: Likewise.
28972         * modules/time: Likewise.
28973         * modules/unistd: Likewise.
28974         * modules/wchar: Likewise.
28975         * modules/wctype: Likewise.
28976
28977 2009-08-22  Jim Meyering  <meyering@redhat.com>
28978
28979         announce-gen: detect write failure
28980         * build-aux/announce-gen: Add Coda at end.
28981         Remove equivalent-but-more-verbose block at top.
28982
28983 2009-08-19  Akim Demaille  <demaille@gostai.com>
28984
28985         bootstrap: --help to stdout.
28986         * bootstrap (usage): Don't send --help to stderr.
28987         Use a here doc instead of a long string.
28988
28989 2009-08-21  Eric Blake  <ebb9@byu.net>
28990
28991         test-popen-safer: split from test-popen
28992         * tests/test-popen.c (main): Move...
28993         * tests/test-popen.h: ...into new file.
28994         * tests/test-popen-safer2.c: New file.
28995         * modules/popen-tests (Files): Add test-popen.h.
28996         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
28997         Suggested by Bruno Haible.
28998
28999         test-fcntl-safer: split from test-open
29000         * tests/test-open.c (main): Move...
29001         * tests/test-open.h: ...into new file.
29002         * tests/test-fcntl-safer.c: New file.
29003         * modules/open-tests (Files): Add test-open.h.
29004         * modules/fcntl-safer-tests: New file.
29005         Suggested by Bruno Haible.
29006
29007         test-fopen-safer: split from test-fopen
29008         * tests/test-fopen.c (main): Move...
29009         * tests/test-fopen.h: ...into new file.
29010         * tests/test-fopen-safer.c: New file.
29011         * modules/fopen-tests (Files): Add test-fopen.h.
29012         * modules/fopen-safer-tests: New file.
29013         Suggested by Bruno Haible.
29014
29015 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29016
29017         popen-safer: test O_CLOEXEC at run-time.
29018         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
29019
29020 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29021
29022         fcntl: move more flags to the header
29023         * lib/cloexec.c: Do not define FD_CLOEXEC here.
29024         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
29025         * lib/fcntl.in.h: Do both things here.
29026
29027 2009-08-21  Jim Meyering  <meyering@redhat.com>
29028
29029         consistently remove $@-t before redirecting to it
29030         * modules/argz: Remove $@-t and $@ before redirecting to the former.
29031         * modules/alloca-opt: Likewise.
29032         * modules/byteswap: Likewise.
29033         * modules/fnmatch: Likewise.
29034         * modules/getopt-posix: Likewise.
29035         * modules/glob: Likewise.
29036         * modules/poll: Likewise.
29037         * modules/posix_spawnp-tests: Likewise.
29038         * modules/sys_socket: Likewise.
29039         * modules/sysexits: Likewise.
29040
29041 2009-08-21  Eric Blake  <ebb9@byu.net>
29042
29043         popen: simplify access to original popen
29044         * lib/popen.c (rpl_popen): No need to worry about popen being a
29045         macro.
29046         Reported by Bruno Haible.
29047
29048 2009-08-20  Eric Blake  <ebb9@byu.net>
29049
29050         build: avoid some compiler warnings
29051         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
29052         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
29053         type.
29054         (new_exclude_segment, excluded_file_pattern_p)
29055         (excluded_file_name_p): Reduce scope.
29056         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
29057         old-style declaration.
29058
29059 2009-08-20  Simon Josefsson  <simon@josefsson.org>
29060
29061         * tests/test-exclude1.sh: Handle Windows EOL.
29062         * tests/test-exclude2.sh: Likewise.
29063         * tests/test-exclude3.sh: Likewise.
29064         * tests/test-exclude4.sh: Likewise.
29065         * tests/test-exclude5.sh: Likewise.
29066         * tests/test-exclude6.sh: Likewise.
29067         * tests/test-exclude7.sh: Likewise.
29068
29069 2009-08-19  Akim Demaille  <demaille@gostai.com>
29070
29071         bootstrap: find sha1sum when named gsha1sum.
29072         * bootstrap (find_tool): New.
29073         ($SHA1SUM): New.
29074         Use it.
29075
29076 2009-08-20  Jim Meyering  <meyering@redhat.com>
29077
29078         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
29079         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
29080         expression that converts "." in a file name to "\." in the resulting
29081         regexp.  Start with a dummy statement, so that prior shell variable
29082         definitions are expanded portably.  Reported by Simon Josefsson.
29083
29084 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
29085
29086         Fix polling for writeability of a screen buffer.
29087         * lib/poll.c: Distinguish input and screen buffers for the
29088         Win32 implementation.
29089         * lib/select.c: Likewise.
29090
29091 2009-08-19  Eric Blake  <ebb9@byu.net>
29092
29093         popen-safer: prevent popen from clobbering std descriptors
29094         * modules/popen-safer: New file.
29095         * lib/popen-safer.c: Likewise.
29096         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
29097         * lib/stdio--.h (popen): Provide override.
29098         * lib/stdio-safer.h (popen_safer): Provide declaration.
29099         * tests/test-popen.c (includes): Partially test this.
29100         * modules/popen-safer-tests: New file, for more tests.
29101         * tests/test-popen-safer.c: Likewise.
29102         * MODULES.html.sh (file stream based Input/Output): Mention it.
29103
29104         tests: test some of the *-safer modules
29105         * modules/fopen-safer (Depends-on): Add fopen.
29106         * modules/fcntl-safer (Depends-on): Add fcntl.
29107         * modules/stdlib-safer (Depends-on): Add stdlib.
29108         (configure.ac): Set indicator.
29109         * modules/unistd-safer (configure.ac): Likewise.
29110         * modules/tmpfile-safer (configure.ac): Likewise.
29111         (Depends-on): Add tmpfile.
29112         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
29113         active.
29114         * tests/test-fopen.c (includes): Test safer versions when they are
29115         in use.
29116         * tests/test-open.c (includes): Likewise.
29117
29118         popen: fix cygwin 1.5 bug when stdin closed
29119         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
29120         * modules/popen: New file.
29121         * modules/popen-tests: Likewise.
29122         * tests/test-popen.c: Likewise.
29123         * m4/popen.m4: Likewise.
29124         * lib/popen.c: Likewise.
29125         * lib/stdio.in.h (popen): New declaration.
29126         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
29127         * modules/stdio (Makefile.am): Likewise.
29128         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
29129
29130 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
29131
29132         maint.mk: give full control over update-copyright exclusions
29133         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
29134         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
29135         (update-copyright): Don't force inclusion of top-level
29136         ChangeLog.  Don't force exclusion of all COPYING files, but make
29137         them the default exclusion instead.
29138
29139 2009-08-16  Bruno Haible  <bruno@clisp.org>
29140
29141         Fix test failures on Solaris 10.
29142         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
29143         tests when Solaris iconv() is used.
29144         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
29145         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
29146         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
29147         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
29148         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
29149
29150 2009-08-16  Bruno Haible  <bruno@clisp.org>
29151
29152         Fix test failures on Solaris 10.
29153         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
29154         'tr' program and pass it as first argument.
29155         * tests/test-pipe-filter-gi1.sh: Likewise.
29156         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
29157         program as first argument.
29158         * tests/test-pipe-filter-gi1.c (main): Likewise.
29159
29160 2009-08-16  Eric Blake  <ebb9@byu.net>
29161
29162         fpurge: fix previous commits
29163         * modules/fpurge (Makefile.am): Make replacement conditional,
29164         partially reverting 2007-04-29 change; missed in previous
29165         attempt.
29166         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
29167         is missing.
29168
29169 2009-08-16  Bruno Haible  <bruno@clisp.org>
29170
29171         Clarify fpurge's effect on the file position.
29172         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
29173         * tests/test-fpurge.c (main): Make a second pass for checking the file
29174         position.
29175
29176 2009-08-16  Bruno Haible  <bruno@clisp.org>
29177
29178         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
29179         declaration of fpurge is missing.
29180         * tests/test-fpurge.c (main): Check that the file has not more contents
29181         than expected. Close the file before removing it.
29182
29183 2009-08-15  Eric Blake  <ebb9@byu.net>
29184
29185         fpurge: don't wrap working cygwin implementation
29186         * lib/fpurge.c (fpurge): Fix comment typo.
29187         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
29188         1.7 to avoid replacement.
29189         * tests/test-fpurge.c (main): Enhance test.
29190
29191 2009-08-15  Eric Blake  <ebb9@byu.net>
29192         and Jim Meyering  <meyering@redhat.com>
29193
29194         test-update-copyright: skip if perl is insufficient
29195         * tests/test-update-copyright.sh: Failure to run maintainer tool
29196         should not cause testsuite failure on cygwin 1.5.
29197
29198 2009-08-14  Eric Blake  <ebb9@byu.net>
29199
29200         doc: mention more functions added in cygwin 1.7.0
29201         * doc/posix-headers/limits.texi (limits.h): Update for recent
29202         cygwin additions.
29203         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
29204         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
29205         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
29206         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
29207         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
29208
29209 2009-08-14  Eric Blake  <ebb9@byu.net>
29210
29211         maint.mk: simplify update-copyright rule
29212         * top/maint.mk (update-copyright-local): Delete, and document how
29213         to do it in cfg.mk instead.
29214         (update-copyright-exclude-regexp): Delete, and document how to do
29215         it in .x-update-copyright instead.
29216         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
29217         exclude ChangeLog.
29218
29219 2009-08-14  Bruno Haible  <bruno@clisp.org>
29220
29221         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
29222
29223 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29224
29225         maint.mk: support update-copyright-env
29226         * top/maint.mk (update-copyright-env): Define place-holder.
29227         (update-copyright): Expand $(update-copyright-env) before
29228         invoking update-copyright.
29229
29230 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29231
29232         update-copyright: implement forced reformatting
29233         * build-aux/update-copyright: Implement and document
29234         UPDATE_COPYRIGHT_FORCE.
29235         * tests/test-update-copyright.sh: Test it.
29236
29237 2009-08-14  Eric Blake  <ebb9@byu.net>
29238         and Bruno Haible  <bruno@clisp.org>
29239
29240         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
29241         * tests/test-locale.c: Revert previous patch related to NULL.
29242         * tests/test-stdio.c: Likewise.
29243         * tests/test-stdlib.c: Likewise.
29244         * tests/test-string.c: Likewise.
29245         * tests/test-unistd.c: Likewise.
29246         * modules/time-tests (Depends-on): Add verify.
29247         * modules/wchar-tests (Depends-on): Likewise.
29248         * tests/test-time.c: Test for NULL compliance.
29249         * tests/test-wchar.c: Likewise.
29250         * modules/locale (Depends-on): Add stddef.
29251         * modules/stdio (Depends-on): Likewise.
29252         * modules/stdlib (Depends-on): Likewise.
29253         * modules/string (Depends-on): Likewise.
29254         * modules/time (Depends-on): Likewise.
29255         * modules/unistd (Depends-on): Likewise.
29256         * modules/wchar (Depends-on): Likewise.
29257         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
29258         * lib/stdlib.in.h (includes): Likewise.
29259         * lib/string.in.h (includes): Likewise.
29260         * lib/time.in.h (includes): Likewise.
29261         * lib/unistd.in.h (includes): Likewise.
29262         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
29263         replaced.
29264         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29265         * m4/stddef_h.m4: New file.
29266         * modules/stddef: Likewise.
29267         * lib/stddef.in.h: Likewise.
29268         * modules/stddef-tests: Likewise.
29269         * tests/test-stddef.c: Likewise.
29270         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
29271         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
29272         * doc/posix-headers/locale.texi (locale.h): Likewise.
29273         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
29274         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29275         * doc/posix-headers/string.texi (string.h): Likewise.
29276         * doc/posix-headers/time.texi (time.h): Likewise.
29277         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
29278         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
29279
29280 2009-08-14  Eric Blake  <ebb9@byu.net>
29281
29282         doc: improve git diff of texinfo files
29283         * .gitattributes: Add rule for *.texi files, with hint on how to
29284         use it.
29285         Copied from m4, and based on a report by Bruno Haible.
29286
29287 2009-08-14  Bruno Haible  <bruno@clisp.org>
29288
29289         Disable multithread support by default on Cygwin 1.5.x for real.
29290         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
29291
29292 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29293
29294         update-copyright: much ado about intervals
29295         * build-aux/update-copyright: Implement and document
29296         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
29297         of copyright year intervals.
29298         Also, document UPDATE_COPYRIGHT_YEAR.
29299         * tests/test-update-copyright.sh: Test it.
29300
29301         update-copyright: convert 2-digit to 4-digit years
29302         * build-aux/update-copyright: Implement and document.
29303         * tests/test-update-copyright.sh: Update.
29304
29305 2009-08-14  Jim Meyering  <meyering@redhat.com>
29306
29307         test-exclude: avoid coreutils "make check" failure
29308         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
29309         just as in test-argmatch.c.
29310
29311 2009-08-13  Eric Blake  <ebb9@byu.net>
29312
29313         test-dup2: fix bad assumption
29314         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
29315         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
29316
29317         test-version-etc: fix CRLF portability issue
29318         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
29319         recognize \r.
29320         * tests/test-argp-version-etc-1.sh: Likewise.
29321
29322         getopt: update client modules
29323         * modules/argp (Depends-on): Use getopt-gnu.
29324         * modules/git-merge-changelog (Depends-on): Likewise.
29325         * modules/long-options (Depends-on): Likewise.
29326         * modules/xstrtol (Depends-on): Likewise.
29327
29328 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29329
29330         * tests/test-version-etc.sh: Don't fail on different
29331         project/version.  Don't fail on CRLF differences.  Rewrite to use
29332         multiple -e instead of multiple sed forks, suggested by Eric Blake
29333         <ebb9@byu.net>.
29334         * tests/test-argp-version-etc-1.sh: Likewise.
29335
29336 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29337
29338         * tests/test-version-etc.sh: Don't fail on different
29339         project/version.
29340
29341 2009-08-12  Bruno Haible  <bruno@clisp.org>
29342
29343         Tests for modules 'getopt-posix', 'getopt-gnu'.
29344         * modules/getopt-posix-tests: New file.
29345         * tests/test-getopt.c: New file.
29346         * tests/test-getopt.h: New file.
29347         * tests/test-getopt_long.h: New file.
29348
29349         New modules 'getopt-posix', 'getopt-gnu'.
29350         * modules/getopt-gnu: New file, renamed from modules/getopt.
29351         * modules/getopt-posix: New file.
29352         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
29353         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
29354         (gl_GETOPT): Remove macro.
29355         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
29356         Disable the test against BSD systems that declare optreset. Test
29357         against mingw bug. Test against lack of support of optional arguments
29358         on many platforms.
29359         * doc/glibc-headers/getopt.texi: Update module name and list of
29360         relevant platforms.
29361         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
29362         'getopt-gnu' and more portability problems.
29363         * NEWS: Mention the changes.
29364
29365 2009-08-12  Bruno Haible  <bruno@clisp.org>
29366
29367         Ensure that optarg etc. get declared by <unistd.h>.
29368         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
29369         AC_USE_SYSTEM_EXTENSIONS.
29370         * modules/getopt (Depends-on): Add 'extensions'.
29371
29372 2009-08-12  Bruno Haible  <bruno@clisp.org>
29373
29374         Avoid test link errors.
29375         * modules/pipe-filter-ii-tests (Makefile.am): Define
29376         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
29377         * modules/pipe-filter-gi-tests (Makefile.am): Define
29378         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
29379         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29380
29381 2009-08-12  Bruno Haible  <bruno@clisp.org>
29382
29383         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
29384         gl_GETOPT_SUBSTITUTE before.
29385         (gl_GETOPT): Use it.
29386         * m4/argp.m4 (gl_ARGP): Update.
29387         Reported by Sergey Poznyakoff.
29388
29389         * m4/getopt.m4: Reorder macros.
29390         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
29391         (gl_GETOPT_SUBSTITUTE): Remove macro.
29392
29393 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29394
29395         Minor improvement in gitlog-to-changelog
29396
29397         * build-aux/gitlog-to-changelog: New option `--format' makes
29398         output format string configurable.
29399
29400 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29401
29402         Optimize exclude: use hash tables for non-wildcard patterns.
29403
29404         * lib/exclude.c: Include hash.h and mbuiter.h
29405         (struct exclude_pattern, exclude_segment): New data types.
29406         (struct exclude): Rewrite.
29407         (fnmatch_pattern_has_wildcards): New function.
29408         (new_exclude_segment, free_exclude_segment): New functions.
29409         (excluded_file_pattern_p, excluded_file_name_p): New functions.
29410         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
29411         * lib/exclude.h (is_fnmatch_pattern): New prototype.
29412         * modules/exclude: Depend on hash and mbuiter.
29413
29414         * modules/exclude-tests: New file.
29415         * tests/test-exclude.c: New file.
29416         * tests/test-exclude1.sh: New file.
29417         * tests/test-exclude2.sh: New file.
29418         * tests/test-exclude3.sh: New file.
29419         * tests/test-exclude4.sh: New file.
29420         * tests/test-exclude5.sh: New file.
29421         * tests/test-exclude6.sh: New file.
29422         * tests/test-exclude7.sh: New file.
29423
29424 2009-08-12  Bruno Haible  <bruno@clisp.org>
29425
29426         Ensure that getopt() gets declared by <unistd.h>.
29427         * lib/unistd.in.h: Conditionally include getopt.h.
29428         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
29429         Set GNULIB_UNISTD_H_GETOPT.
29430         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29431         GNULIB_UNISTD_H_GETOPT.
29432         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
29433
29434 2009-08-12  Bruno Haible  <bruno@clisp.org>
29435
29436         Clarify logic.
29437         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
29438         gl_replace_getopt instead of GETOPT_H.
29439
29440 2009-08-12  Bruno Haible  <bruno@clisp.org>
29441
29442         * m4/getopt.m4: Add comments.
29443
29444 2009-08-12  Bruno Haible  <bruno@clisp.org>
29445
29446         Disable multithread support by default on Cygwin 1.5.x.
29447         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
29448         set gl_use_threads=no if not specified otherwise.
29449
29450 2009-08-11  Bruno Haible  <bruno@clisp.org>
29451
29452         Avoid compilation error on NetBSD 5.0.
29453         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
29454         * tests/test-stdio.c: Likewise.
29455         * tests/test-stdlib.c: Likewise.
29456         * tests/test-string.c: Likewise.
29457         * tests/test-unistd.c: Likewise.
29458         Reported by Greg Troxel <gdt@ir.bbn.com>
29459         at <https://savannah.gnu.org/support/?106973>.
29460
29461 2009-08-11  Bruno Haible  <bruno@clisp.org>
29462
29463         * modules/dup2-tests (Depends-on): Remove close.
29464
29465         Undo 2009-07-19 commit.
29466         * modules/acl-tests (Depends-on): Remove close.
29467         * modules/binary-io-tests (Depends-on): Likewise.
29468         * modules/closein-tests (Depends-on): Likewise.
29469         * modules/flock-tests (Depends-on): Likewise.
29470         * modules/fsync-tests (Depends-on): Likewise.
29471         * modules/lseek-tests (Depends-on): Likewise.
29472         * modules/pipe-tests (Depends-on): Likewise.
29473         * modules/posix_spawn-tests (Depends-on): Likewise.
29474         * modules/posix_spawnp-tests (Depends-on): Likewise.
29475         * modules/stat-time-tests (Depends-on): Likewise.
29476         * modules/yesno-tests (Depends-on): Likewise.
29477
29478 2009-08-10  Bruno Haible  <bruno@clisp.org>
29479
29480         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
29481
29482 2009-08-10  Bruno Haible  <bruno@clisp.org>
29483
29484         Fix a gcc warning.
29485         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
29486
29487 2009-08-10  Bruno Haible  <bruno@clisp.org>
29488
29489         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
29490         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
29491         not only the first time.
29492         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
29493         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
29494         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
29495         is 1, not only the the first time.
29496
29497 2009-08-10  Bruno Haible  <bruno@clisp.org>
29498
29499         Make it possible to use module 'gethostname' without module 'close'.
29500         * lib/unistd.in.h (close): Evoke a link error only if
29501         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
29502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29503         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29504         * modules/unistd (Makefile.am): Substitute
29505         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29506         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
29507         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
29508         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
29509         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29510         * modules/sys_ioctl (Makefile.am): Substitute
29511         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29512         * modules/socket (configure.ac): On native Windows, set
29513         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
29514         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29515         Reported by Sam Steingold <sds@gnu.org>.
29516
29517 2009-08-10  Bruno Haible  <bruno@clisp.org>
29518
29519         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
29520         * modules/ioctl (configure.ac): Likewise.
29521
29522 2009-08-10  Bruno Haible  <bruno@clisp.org>
29523
29524         Avoid collision between gnulib wrapper and libintl wrapper.
29525         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
29526         already defined in intl/printf.c.
29527         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
29528         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
29529
29530 2009-08-09  Bruno Haible  <bruno@clisp.org>
29531
29532         Make <sys/select.h> really self-contained, also on Solaris 10.
29533         * lib/sys_select.in.h: Include <string.h>.
29534         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
29535         Solaris 10 problem.
29536         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
29537         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
29538         Reported by Jim Meyering.
29539
29540 2009-08-09  Bruno Haible  <bruno@clisp.org>
29541
29542         Avoid warnings from 'aclocal' that are due to a use of macro name
29543         AM_XGETTEXT_OPTION that is not defined in automake.
29544         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
29545         automake.
29546         * modules/error (configure.ac): Likewise.
29547         * modules/propername (configure.ac): Likewise.
29548         * modules/vasprintf (configure.ac): Likewise.
29549         * modules/verror (configure.ac): Likewise.
29550         * modules/xprintf (configure.ac): Likewise.
29551         * modules/xvasprintf (configure.ac): Likewise.
29552
29553 2009-08-08  Bruno Haible  <bruno@clisp.org>
29554
29555         Avoid compilation error in C++ mode.
29556         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
29557         Reported by Sam Steingold <sds@gnu.org>.
29558
29559 2009-08-08  Bruno Haible  <bruno@clisp.org>
29560
29561         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
29562         for the various Unix platforms.
29563         * doc/posix-headers/limits.texi: Update platforms list regarding
29564         HOST_NAME_MAX.
29565         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29566
29567 2009-08-07  Jim Meyering  <meyering@redhat.com>
29568
29569         selinux-at: fix typo in a comment
29570         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
29571         Spotted by Paolo Bonzini.
29572
29573         selinux-at: remove redundant m4 code, add documentation
29574         * modules/selinux-at (configure.ac): Remove redundant code.
29575         LIB_SELINUX is already set via the dependent module, selinux-h.
29576         (Include): Add quotes around selinux-at.h.
29577         * lib/selinux-at.h: Add documentation.
29578         Reported by Bruno Haible in
29579         http://marc.info/?l=gnulib-bug&m=124958988300749
29580
29581 2009-08-07  Bruno Haible  <bruno@clisp.org>
29582
29583         Avoid link error on MacOS X 10.3 and 10.4.
29584         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
29585         on non-ELF systems.
29586         * lib/argp-pv.c (argp_program_version): Likewise.
29587         Reported by Simon Josefsson.
29588
29589 2009-08-07  Simon Josefsson  <simon@josefsson.org>
29590
29591         * tests/test-version-etc.sh: Use $EXEEXT.
29592
29593 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
29594
29595         update-copyright: update documentation to point to maint.mk
29596         * build-aux/update-copyright: Here.
29597
29598 2009-08-06  Jim Meyering  <meyering@redhat.com>
29599
29600         maint.mk: support update-copyright-local
29601         * top/maint.mk (update-copyright-local): Define place-holder.
29602         (update-copyright): Depend on $(update-copyright-local).
29603
29604 2009-08-06  Jim Meyering  <meyering@redhat.com>
29605
29606         selinux-at: new module
29607         Initially written for coreutils, this module will soon be
29608         used by findutils, too.
29609         * MODULES.html.sh [Misc]: Add selinux-at.
29610         * lib/selinux-at.h: New file, from coreutils.
29611         * lib/selinux-at.c: Likewise.
29612         * modules/selinux-at: Likewise.
29613         (License): Change from LGPL to GPL, since it depends
29614         on the GPL'd openat module.
29615
29616         doc: update README
29617         * README: Remove references to cogito.
29618         Remove cvs-repo-updating instructions from 2007.
29619         Don't imply that CVS is better if you have limited disk space.
29620
29621 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29622
29623         update-copyright: support C-style comments
29624         * build-aux/update-copyright: Implement and document.
29625         * tests/test-update-copyright.sh: Test.
29626
29627 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29628
29629         update-copyright: support omitted "(C)"
29630         * build-aux/update-copyright: Implement and document.  Also,
29631         allow variable whitespace before "(C)".
29632         * tests/test-update-copyright.sh: Test.
29633
29634 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29635
29636         update-copyright: don't trip on non-FSF copyright statements
29637         * build-aux/update-copyright: Fix so that the first correctly
29638         formatted FSF copyright statement is recognized no matter what
29639         appears before it.  Update documentation.
29640         * tests/test-update-copyright.sh: Test that.
29641
29642 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29643
29644         update-copyright: clean up code a little
29645         * build-aux/update-copyright: Append "_re" to the name of any
29646         variable holding a regular expression.
29647         Replace "old" and "new" with "stmt" in variable names.
29648         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
29649         handled correctly.
29650         Format code more consistently.
29651
29652 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29653
29654         update-copyright-tests: improve portability
29655         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
29656         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
29657
29658 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
29659
29660         update-copyright: support @copyright{} and &copy;
29661         * build-aux/update-copyright: Implement and document.
29662         * tests/test-update-copyright.sh: Test.
29663
29664 2009-08-04  Jim Meyering  <meyering@redhat.com>
29665
29666         update-copyright-tests: correctly test EOL=\r\n handling
29667         * tests/test-update-copyright.sh: Put \r at the end of some lines
29668         for the dos-eol tests.  Based on a patch by Joel E. Denny.
29669
29670         maint.mk: make update-copyright exclusion list more configurable
29671         * top/maint.mk (update-copyright): Default to excluding COPYING,
29672         but allow an override, in case someone does want to update that file.
29673
29674         maint.mk: don't update copyright date in COPYING
29675         * top/maint.mk (update-copyright): Exclude COPYING.
29676
29677         maint.mk: add a copyright-updating rule
29678         * top/maint.mk (update-copyright): New rule.
29679         Derived from coreutils/Makefile.am.
29680
29681         update-copyright: rename some variables
29682         * build-aux/update-copyright: Rename a few variables for clarity.
29683         Tweak syntax.  List Joel E. Denny as coauthor.
29684
29685 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
29686
29687         update-copyright: fix bug for 2-digit last year and add tests
29688         * build-aux/update-copyright: Fix bug.
29689         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
29690         specified.
29691         * modules/update-copyright-tests: New
29692         * tests/test-update-copyright.sh: New.
29693
29694 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29695
29696         update-copyright: handle leading tabs in line prefix
29697         * build-aux/update-copyright: Count leading tabs as 8 spaces
29698         when computing margin.  This helps with the formatting of
29699         ChangeLogs, for example.
29700         Fix documentation a little.
29701
29702 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29703
29704         update-copyright: support EOL=\r\n
29705         * build-aux/update-copyright: Implement that.
29706
29707 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29708
29709         update-copyright: automatically format copyright statements
29710         * build-aux/update-copyright: Implement that.
29711         Also, be a little more predictable and safer by always failing
29712         when the full copyright format is not perfectly recognized as an
29713         unbroken whole.  Discussed at
29714         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
29715         Rewrite documentation.
29716
29717 2009-08-03  Bruno Haible  <bruno@clisp.org>
29718
29719         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
29720
29721 2009-08-02  Bruno Haible  <bruno@clisp.org>
29722
29723         Tests for module 'uname'.
29724         * modules/uname-tests: New file.
29725         * tests/test-uname.c: New file.
29726
29727         New module 'uname'.
29728         * lib/uname.c: New file.
29729         * m4/uname.m4: New file.
29730         * modules/uname: New file.
29731         * doc/posix-functions/uname.texi: Mention the new module.
29732
29733 2009-08-02  Bruno Haible  <bruno@clisp.org>
29734
29735         Tests for module 'sys_utsname'.
29736         * modules/sys_utsname-tests: New file.
29737         * tests/test-sys_utsname.c: New file.
29738
29739         New module 'sys_utsname'.
29740         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
29741         * m4/sys_utsname_h.m4: New file.
29742         * modules/sys_utsname: New file.
29743         * doc/posix-headers/sys_utsname.texi: Mention the new module.
29744
29745 2009-08-02  Bruno Haible  <bruno@clisp.org>
29746
29747         Implicitly initialize the sockets library.
29748         * lib/gethostname.c: Include sockets.h.
29749         (rpl_gethostname): Invoke gl_sockets_startup.
29750         * lib/socket.c: Include sockets.h.
29751         (rpl_socket): Invoke gl_sockets_startup.
29752         * modules/gethostname (Depends-on): Add sockets.
29753         * modules/socket (Depends-on): Likewise.
29754         * tests/test-poll.c: Don't include sockets.h.
29755         (main): Don't invoke gl_sockets_startup.
29756         * tests/test-select.c: Don't include sockets.h.
29757         (main): Don't invoke gl_sockets_startup.
29758
29759 2009-08-02  Bruno Haible  <bruno@clisp.org>
29760
29761         Allow multiple calls to gl_sockets_startup.
29762         * lib/sockets.c (initialized_sockets_version): New variable.
29763         (gl_sockets_startup): Do nothing if already called for this or a higher
29764         version.
29765         (gl_sockets_cleanup): Reset initialized_sockets_version.
29766
29767 2009-08-03  Simon Josefsson  <simon@josefsson.org>
29768
29769         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
29770         different project/version.
29771
29772 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
29773             Bruno Haible  <bruno@clisp.org>
29774
29775         Tests for module 'pipe-filter-gi'.
29776         * modules/pipe-filter-gi-tests: New file.
29777         * tests/test-pipe-filter-gi1.sh: New file.
29778         * tests/test-pipe-filter-gi1.c: New file.
29779         * tests/test-pipe-filter-gi2.sh: New file.
29780         * tests/test-pipe-filter-gi2-main.c: New file.
29781         * tests/test-pipe-filter-gi2-child.c: New file.
29782
29783         New module 'pipe-filter-gi'.
29784         * lib/pipe-filter-gi.c: New file.
29785         * modules/pipe-filter-gi: New file.
29786
29787 2009-08-02  Bruno Haible  <bruno@clisp.org>
29788             Paolo Bonzini  <bonzini@gnu.org>
29789
29790         Tests for module 'pipe-filter-ii'.
29791         * modules/pipe-filter-ii-tests: New file.
29792         * tests/test-pipe-filter-ii1.sh: New file.
29793         * tests/test-pipe-filter-ii1.c: New file.
29794         * tests/test-pipe-filter-ii2.sh: New file.
29795         * tests/test-pipe-filter-ii2-main.c: New file.
29796         * tests/test-pipe-filter-ii2-child.c: New file.
29797
29798         New module 'pipe-filter-ii'.
29799         * lib/pipe-filter.h: New file.
29800         * lib/pipe-filter-ii.c: New file.
29801         * lib/pipe-filter-aux.h: New file.
29802         * modules/pipe-filter-ii: New file.
29803
29804 2009-08-02  Simon Josefsson  <simon@josefsson.org>
29805
29806         * lib/gc-libgcrypt.c: Change copyright to FSF.
29807         * lib/gc-gnulib.c: Likewise.
29808
29809 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
29810
29811         * lib/gethostname.c: Include limits.h.
29812
29813 2009-08-02  Simon Josefsson  <simon@josefsson.org>
29814             Bruno Haible  <bruno@clisp.org>
29815
29816         Ensure HOST_NAME_MAX as part of the gethostname module.
29817         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
29818         define also HOST_NAME_MAX.
29819         * tests/test-gethostname.c: Include <limits.h>.
29820         (main): Check also HOST_NAME_MAX.
29821         * doc/posix-headers/limits.texi: Document the mingw problem.
29822
29823 2009-08-02  Bruno Haible  <bruno@clisp.org>
29824
29825         * lib/gethostname.c (gethostname): Fix handling of large len argument.
29826         Add comments.
29827
29828 2009-03-31  Simon Josefsson  <simon@josefsson.org>
29829
29830         * lib/gethostname.c: Add Windows wrapper.
29831         * m4/gethostname.m4: Look for gethostname in -lws2_32.
29832         * modules/gethostname: Depend on sys_socket & errno, for also
29833         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
29834         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
29835
29836 2009-07-31  Jim Meyering  <meyering@redhat.com>
29837
29838         getloadavg: fix symbol name in comment
29839         * lib/getloadavg.c: Correct a typo I introduced when adding
29840         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
29841         Matt Kraai spotted the problem.
29842
29843 2009-07-29  Matt Kraai  <mkraai@beckman.com>
29844
29845         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
29846         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
29847         code also if ! defined N_NAME_POINTER.
29848         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
29849         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
29850         but the n_name member is a 12-byte array.
29851
29852 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
29853
29854         update-copyright: generalize comment handling
29855         * build-aux/update-copyright: Handle copyright statements
29856         within more comment styles.
29857         Document usage.
29858         Report any file with an external copyright holder or parse failure.
29859
29860 2009-07-29  Jim Meyering  <meyering@redhat.com>
29861
29862         mktime: correct setting of REPLACE_MKTIME
29863         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
29864
29865         update-copyright: new module
29866         * modules/update-copyright: New file.
29867         * build-aux/update-copyright: New file.
29868         * MODULES.html.sh (maint+release support): Add update-copyright.
29869
29870 2009-07-27  Bruno Haible  <bruno@clisp.org>
29871
29872         Fix compilation error when <ctime> is used and mktime is replaced.
29873         * lib/time.in.h (mktime): New declaration.
29874         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
29875         REPLACE_MKTIME instead of defining mktime in config.h.
29876         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
29877         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
29878         Reported by Ross McFarland <rwmcfa1@neces.com>.
29879
29880 2009-07-27  Bruno Haible  <bruno@clisp.org>
29881
29882         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
29883         Reported by Matt Kraai <mkraai@beckman.com>.
29884
29885 2009-07-25  Jim Meyering  <meyering@redhat.com>
29886
29887         maint.mk: avoid warnings about missing files
29888         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
29889         diagnostic when .prev-version does not exist.
29890         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
29891         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
29892         nonexistent cfg.mk.
29893         Suggestions from Simon Josefsson.
29894
29895 2009-07-25  Bruno Haible  <bruno@clisp.org>
29896
29897         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
29898         defined as macros. Needed on QNX 6.4.1.
29899         Reported by Matt Kraai <mkraai@beckman.com>.
29900
29901 2009-07-23  Jim Meyering  <meyering@redhat.com>
29902
29903         maint.mk: invoke "make dist" with a working value of XZ_OPT
29904         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
29905
29906 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
29907
29908         Make fseeko.c compile on QNX.
29909         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
29910
29911 2009-07-22  Peter Simons  <simons@cryp.to>
29912
29913         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
29914         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
29915         * lib/md4.h: Likewise.
29916         * lib/md5.h: Likewise.
29917         * lib/sha1.h: Likewise.
29918         * lib/sha256.h: Likewise.
29919         * lib/sha512.h: Likewise.
29920
29921         tests-sha1: don't assign literal string to 'char *' variable
29922         * tests/test-sha1.c (main): Declare locals with "const" to match
29923         attributes of the right hand side.
29924
29925 2009-07-21  Eric Blake  <ebb9@byu.net>
29926
29927         dup2: fix more mingw problems
29928         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
29929         fd to itself.
29930         * doc/posix-functions/dup2.texi (dup2): Document the bug.
29931         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
29932         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
29933         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
29934         care of mingw bugs.
29935
29936 2009-07-21  Jim Meyering  <meyering@redhat.com>
29937
29938         vc-list-files: avoid failure when /bin/sh is dash
29939         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
29940         On some Debian based systems, /bin/sh is a symlink to dash, and running
29941         this command would omit the "/" following each 'tests' prefix:
29942           dash -x build-aux/vc-list-files -C . tests
29943         That is because bash and dash work differently:
29944           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
29945           bash ok
29946           dash odd
29947
29948 2009-07-21  Eric Blake  <ebb9@byu.net>
29949
29950         dup2-tests: test previous patch
29951         * modules/dup2-tests: New file.
29952         * tests/test-dup2.c: Likewise.
29953         * tests/test-open.c (main): Avoid unspecified behavior.
29954         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
29955         test.
29956
29957         dup2: work around mingw and cygwin 1.5 bug
29958         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
29959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29960         * modules/unistd (Makefile.am): Substitute it.
29961         * lib/unistd.in.h (dup2): Declare the replacement.
29962         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
29963         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
29964         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
29965         * modules/execute (Depends-on): Add dup2.
29966         * modules/fseterr (Depends-on): Likewise.
29967         * modules/pipe (Depends-on): Likewise.
29968         * modules/posix_spawn-internal (Depends-on): Likewise.
29969
29970 2009-07-21  Bruno Haible  <bruno@clisp.org>
29971
29972         * modules/.gitattributes: New file.
29973
29974 2009-07-20  Bruno Haible  <bruno@clisp.org>
29975
29976         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
29977         (main): Use it.
29978
29979 2009-07-20  Eric Blake  <ebb9@byu.net>
29980
29981         test-pipe: make a bit more robust.
29982         * tests/test-pipe.c (myerr): Allow error messages regardless of
29983         what we do to stderr.
29984         (test_pipe): Rearrange to avoid deadlock.
29985         (child_main): Try a larger read, to ensure we avoided deadlock.
29986         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
29987         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
29988         if misused.
29989
29990 2009-07-19  Jim Meyering  <meyering@redhat.com>
29991
29992         fts: avoid false-positive cycle-detection
29993         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
29994         for each new command line argument.
29995
29996 2009-07-19  Bruno Haible  <bruno@clisp.org>
29997
29998         Fix build error on mingw with the modules sys_select and unistd.
29999         * modules/acl-tests (Depends-on): Add close.
30000         * modules/binary-io-tests (Depends-on): Likewise.
30001         * modules/closein-tests (Depends-on): Likewise.
30002         * modules/flock-tests (Depends-on): Likewise.
30003         * modules/fsync-tests (Depends-on): Likewise.
30004         * modules/lseek-tests (Depends-on): Likewise.
30005         * modules/pipe-tests (Depends-on): Likewise.
30006         * modules/posix_spawn-tests (Depends-on): Likewise.
30007         * modules/posix_spawnp-tests (Depends-on): Likewise.
30008         * modules/stat-time-tests (Depends-on): Likewise.
30009         * modules/yesno-tests (Depends-on): Likewise.
30010
30011 2009-07-19  Bruno Haible  <bruno@clisp.org>
30012
30013         Unify conditionals.
30014         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
30015         macros, not at the compiler macros.
30016         * lib/pipe.c: Likewise.
30017         * lib/execute.c: Likewise.
30018         * lib/spawni.c: Likewise.
30019
30020 2009-07-19  Bruno Haible  <bruno@clisp.org>
30021
30022         Fix handling of closed stdin/stdout/stderr on mingw.
30023         * lib/w32spawn.h: Include unistd.h.
30024         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
30025         file descriptor with O_NOINHERIT flag.
30026         (fd_safer_noinherit): New function, based on fd-safer.c.
30027         (dup_safer_noinherit): New function, based on dup-safer.c.
30028         (undup_safer_noinherit): New function.
30029         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
30030         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
30031         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
30032         instead of fd_safer.
30033         * tests/test-pipe.c: Include <windows.h>.
30034         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
30035         result.
30036
30037         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
30038         from main.
30039         (test_pipe): Pass an extra argument for disambiguation.
30040         (main): Invoke parent_main or child_main.
30041
30042         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
30043         consistently.
30044
30045 2009-07-18  Eric Blake  <ebb9@byu.net>
30046
30047         test-pipe: fix mingw build
30048         * tests/test-pipe.c (main): Avoid fcntl on mingw.
30049
30050 2009-07-18  Bruno Haible  <bruno@clisp.org>
30051
30052         * modules/pipe-tests (Makefile.am): Fix typo.
30053
30054 2009-07-18  Eric Blake  <ebb9@byu.net>
30055
30056         error: fix mingw build
30057         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
30058         Reported by Bruno Haible.
30059
30060         error: avoid undefined use of stdout
30061         * lib/error.c (error, error_at_line): Check that fd 1 is open
30062         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
30063         is handling faults and the close_stdout module wants to report the
30064         detection of closed stdout as an error.
30065
30066 2009-07-17  Eric Blake  <ebb9@byu.net>
30067
30068         pipe: be robust in face of closed fds
30069         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
30070         should cause child to misbehave.
30071         * modules/pipe-tests: New module.
30072         * tests/test-pipe.c: New file.
30073         * tests/test-pipe.sh: New file.
30074         Reported by Akim Demaille.
30075
30076 2009-07-14  Bruno Haible  <bruno@clisp.org>
30077
30078         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
30079         Reported by anonymous kc.
30080
30081 2009-07-07  Jim Meyering  <meyering@redhat.com>
30082
30083         maint.mk: don't look for translatable strings in *.m4 or *.mk
30084         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
30085         when searching for translatable strings.
30086
30087 2009-07-05  Jim Meyering  <meyering@redhat.com>
30088
30089         remove superfluous parentheses in STREQ definition
30090         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
30091         * lib/getugroups.c (STREQ): Likewise.
30092         * lib/fnmatch.c (STREQ): Likewise.
30093         Spotted by Bruno Haible.
30094
30095 2009-07-04  Jim Meyering  <meyering@redhat.com>
30096
30097         argv-iter: new module
30098         * MODULES.html.sh: Add argv-iter.
30099         * lib/argv-iter.c, lib/argv-iter.h: New files.
30100         * modules/argv-iter: New file.
30101         * modules/argv-iter-tests: New file.
30102         * tests/test-argv-iter.c: Test it.
30103
30104 2009-07-04  Bruno Haible  <bruno@clisp.org>
30105
30106         Fix assertion.
30107         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
30108         contains more exact copies of a given entry than file2, leave the extra
30109         copies unpaired rather than aborting.
30110         Reported by Eric Blake.
30111
30112 2009-07-02  Bruno Haible  <bruno@clisp.org>
30113
30114         Speedup git-merge-changelog for git cherry-pick.
30115         * lib/git-merge-changelog.c (struct entries_mapping): New type.
30116         (entries_mapping_get): New function, extracted from compute_mapping.
30117         (entries_mapping_reverse_get): New function.
30118         (compute_mapping): Add a 'full' argument. Return the result in a
30119         'struct entries_mapping'.
30120         (main): Update. Access the mappings through entries_mapping_get.
30121         Reported by Eric Blake.
30122
30123 2009-07-02  Bruno Haible  <bruno@clisp.org>
30124
30125         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
30126         best_i.
30127
30128 2009-07-02  Bruno Haible  <bruno@clisp.org>
30129
30130         Speed up approximate search for matching ChangeLog entries.
30131         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
30132         argument. Call fstrcmp_bounded instead of fstrcmp.
30133         (compute_mapping, try_split_merged_entry, main): Update callers.
30134
30135 2009-07-02  Bruno Haible  <bruno@clisp.org>
30136
30137         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
30138
30139 2009-06-30  Bruno Haible  <bruno@clisp.org>
30140
30141         Reduce the number of uc_is_cased calls.
30142         * lib/unicase.h (casing_suffix_context_t): Add
30143         'first_char_except_ignorable' field.
30144         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
30145         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
30146         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
30147         Update initializer.
30148         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
30149         case-ignorable characters.
30150         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
30151         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
30152         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
30153         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
30154         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
30155
30156 2009-06-30  Bruno Haible  <bruno@clisp.org>
30157
30158         Tests for module 'unicase/ignorable'.
30159         * modules/unicase/ignorable-tests: New file.
30160         * tests/unicase/test-ignorable.c: New file, generated by
30161         gen-uni-tables.
30162
30163         Tests for module 'unicase/cased'.
30164         * modules/unicase/cased-tests: New file.
30165         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
30166         * tests/unicase/test-predicate-part1.h: New file, derived from
30167         tests/unictype/test-predicate-part1.h.
30168         * tests/unicase/test-predicate-part2.h: New file, same as
30169         tests/unictype/test-predicate-part2.h.
30170
30171         Fix evaluation of "Before C" condition of FINAL_SIGMA.
30172         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
30173         (output_casing_properties): New function.
30174         (main): Call it.
30175         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
30176         * lib/unicase/cased.c: Include unictype/bitmap.h.
30177         (uc_is_cased): Define through a bitmap lookup.
30178         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
30179         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
30180         (uc_is_case_ignorable): Define through a bitmap lookup.
30181         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
30182         lib/unictype/bitmap.h.
30183         (Depends-on): Add inline. Clean up.
30184         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
30185         lib/unictype/bitmap.h.
30186         (Depends-on): Add inline. Clean up.
30187         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
30188         recognition.
30189         * tests/unicase/test-u16-tolower.c (main): Likewise.
30190         * tests/unicase/test-u32-tolower.c (main): Likewise.
30191
30192 2009-06-30  Bruno Haible  <bruno@clisp.org>
30193
30194         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
30195         * lib/unicase/u16-casemap.c: Likewise.
30196         * lib/unicase/u32-casemap.c: Likewise.
30197
30198 2009-06-29  Bruno Haible  <bruno@clisp.org>
30199
30200         Define u32_casefold as a wrapper around u32_ct_casefold.
30201         * lib/unicase/u32-casefold.c: Update.
30202         * modules/unicase/u32-casefold (Depends-on): Add
30203         unicase/u32-ct-casefold, unicase/empty-prefix-context,
30204         unicase/empty-suffix-context. Clean up.
30205
30206         Define u16_casefold as a wrapper around u16_ct_casefold.
30207         * lib/unicase/u16-casefold.c: Update.
30208         * modules/unicase/u16-casefold (Depends-on): Add
30209         unicase/u16-ct-casefold, unicase/empty-prefix-context,
30210         unicase/empty-suffix-context. Clean up.
30211
30212         Define u8_casefold as a wrapper around u8_ct_casefold.
30213         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
30214         * lib/unicase/u8-casefold.c: Update.
30215         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
30216         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30217
30218         Define u32_totitle as a wrapper around u32_ct_totitle.
30219         * lib/unicase/u32-totitle.c: Update.
30220         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
30221         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30222
30223         Define u16_totitle as a wrapper around u16_ct_totitle.
30224         * lib/unicase/u16-totitle.c: Update.
30225         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
30226         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30227
30228         Define u8_totitle as a wrapper around u8_ct_totitle.
30229         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
30230         functions.
30231         (FUNC): Delegate to U_CT_TOTITLE.
30232         * lib/unicase/u8-totitle.c: Update.
30233         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
30234         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30235
30236         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
30237         invocation.
30238         * modules/unicase/u32-tolower (Depends-on): Add
30239         unicase/empty-prefix-context, unicase/empty-suffix-context.
30240
30241         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
30242         invocation.
30243         * modules/unicase/u16-tolower (Depends-on): Add
30244         unicase/empty-prefix-context, unicase/empty-suffix-context.
30245
30246         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
30247         * modules/unicase/u8-tolower (Depends-on): Add
30248         unicase/empty-prefix-context, unicase/empty-suffix-context.
30249
30250         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
30251         invocation.
30252         * modules/unicase/u32-toupper (Depends-on): Add
30253         unicase/empty-prefix-context, unicase/empty-suffix-context.
30254
30255         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
30256         invocation.
30257         * modules/unicase/u16-toupper (Depends-on): Add
30258         unicase/empty-prefix-context, unicase/empty-suffix-context.
30259
30260         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
30261         * modules/unicase/u8-toupper (Depends-on): Add
30262         unicase/empty-prefix-context, unicase/empty-suffix-context.
30263
30264         New module 'unicase/u32-ct-casefold'.
30265         * lib/unicase/u32-ct-casefold.c: New file.
30266         * modules/unicase/u32-ct-casefold: New file.
30267
30268         New module 'unicase/u16-ct-casefold'.
30269         * lib/unicase/u16-ct-casefold.c: New file.
30270         * modules/unicase/u16-ct-casefold: New file.
30271
30272         New module 'unicase/u8-ct-casefold'.
30273         * lib/unicase/u8-ct-casefold.c: New file.
30274         * lib/unicase/u-ct-casefold.h: New file, derived from
30275         lib/unicase/u-casefold.h.
30276         * modules/unicase/u8-ct-casefold: New file.
30277
30278         New module 'unicase/u32-ct-totitle'.
30279         * lib/unicase/u32-ct-totitle.c: New file.
30280         * modules/unicase/u32-ct-totitle: New file.
30281
30282         New module 'unicase/u16-ct-totitle'.
30283         * lib/unicase/u16-ct-totitle.c: New file.
30284         * modules/unicase/u16-ct-totitle: New file.
30285
30286         New module 'unicase/u8-ct-totitle'.
30287         * lib/unicase/u8-ct-totitle.c: New file.
30288         * lib/unicase/u-ct-totitle.h: New file, derived from
30289         lib/unicase/u-totitle.h.
30290         * modules/unicase/u8-ct-totitle: New file.
30291
30292         New module 'unicase/u32-ct-tolower'.
30293         * lib/unicase/u32-ct-tolower.c: New file.
30294         * modules/unicase/u32-ct-tolower: New file.
30295
30296         New module 'unicase/u16-ct-tolower'.
30297         * lib/unicase/u16-ct-tolower.c: New file.
30298         * modules/unicase/u16-ct-tolower: New file.
30299
30300         New module 'unicase/u8-ct-tolower'.
30301         * lib/unicase/u8-ct-tolower.c: New file.
30302         * modules/unicase/u8-ct-tolower: New file.
30303
30304         New module 'unicase/u32-ct-toupper'.
30305         * lib/unicase/u32-ct-toupper.c: New file.
30306         * modules/unicase/u32-ct-toupper: New file.
30307
30308         New module 'unicase/u16-ct-toupper'.
30309         * lib/unicase/u16-ct-toupper.c: New file.
30310         * modules/unicase/u16-ct-toupper: New file.
30311
30312         New module 'unicase/u8-ct-toupper'.
30313         * lib/unicase/u8-ct-toupper.c: New file.
30314         * modules/unicase/u8-ct-toupper: New file.
30315
30316         Add context arguments to u*_casemap functions.
30317         * lib/unicase/unicasemap.h: Include unicase.h.
30318         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
30319         suffix_context arguments.
30320         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
30321         functions.
30322         (FUNC): Add prefix_context and suffix_context arguments. Use
30323         uc_is_cased and uc_is_case_ignorable.
30324         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
30325         * lib/unicase/u16-casemap.c: Likewise.
30326         * lib/unicase/u32-casemap.c: Likewise.
30327         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
30328         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30329         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
30330         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30331         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
30332         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30333
30334         New module 'unicase/u32-suffix-context'.
30335         * lib/unicase/u32-suffix-context.c: New file.
30336         * modules/unicase/u32-suffix-context: New file.
30337
30338         New module 'unicase/u16-suffix-context'.
30339         * lib/unicase/u16-suffix-context.c: New file.
30340         * modules/unicase/u16-suffix-context: New file.
30341
30342         New module 'unicase/u8-suffix-context'.
30343         * lib/unicase/u8-suffix-context.c: New file.
30344         * lib/unicase/u-suffix-context.h: New file.
30345         * modules/unicase/u8-suffix-context: New file.
30346
30347         New module 'unicase/empty-suffix-context'.
30348         * lib/unicase/empty-suffix-context.c: New file.
30349         * modules/unicase/empty-suffix-context: New file.
30350
30351         New module 'unicase/u32-prefix-context'.
30352         * lib/unicase/u32-prefix-context.c: New file.
30353         * modules/unicase/u32-prefix-context: New file.
30354
30355         New module 'unicase/u16-prefix-context'.
30356         * lib/unicase/u16-prefix-context.c: New file.
30357         * modules/unicase/u16-prefix-context: New file.
30358
30359         New module 'unicase/u8-prefix-context'.
30360         * lib/unicase/u8-prefix-context.c: New file.
30361         * lib/unicase/u-prefix-context.h: New file.
30362         * lib/unicase/context.h: New file.
30363         * modules/unicase/u8-prefix-context: New file.
30364
30365         New module 'unicase/empty-prefix-context'.
30366         * lib/unicase/empty-prefix-context.c: New file.
30367         * modules/unicase/empty-prefix-context: New file.
30368
30369         New module 'unicase/ignorable'.
30370         * lib/unicase/ignorable.c: New file.
30371         * modules/unicase/ignorable: New file.
30372
30373         New module 'unicase/cased'.
30374         * lib/unicase/caseprop.h: New file.
30375         * lib/unicase/cased.c: New file.
30376         * modules/unicase/cased: New file.
30377
30378         New functions for case mapping of substrings.
30379         * lib/unicase.h (casing_prefix_context_t): New type.
30380         (unicase_empty_prefix_context): New variable.
30381         (u8_casing_prefix_context, u16_casing_prefix_context,
30382         u32_casing_prefix_context, u8_casing_prefixes_context,
30383         u16_casing_prefixes_context, u32_casing_prefixes_context): New
30384         declarations.
30385         (casing_suffix_context_t): New type.
30386         (unicase_empty_suffix_context): New variable.
30387         (u8_casing_suffix_context, u16_casing_suffix_context,
30388         u32_casing_suffix_context, u8_casing_suffixes_context,
30389         u16_casing_suffixes_context, u32_casing_suffixes_context,
30390         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
30391         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
30392         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
30393         declarations.
30394
30395 2009-06-28  Jim Meyering  <meyering@redhat.com>
30396
30397         boostrap: indent only with spaces
30398         * build-aux/bootstrap: Indent only with spaces, never TABs.
30399
30400         bootstrap: split long lines
30401         * build-aux/bootstrap: Keep line length < 80.
30402
30403         bootstrap: sync from coreutils
30404         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
30405         just as autoreconf does.  Verify a list of prerequisite
30406         package-name,version-number pairs if defined in bootstrap.conf.
30407         Refer to README-prereq, if prerequisites are not satisfied.
30408
30409 2009-06-27  Eric Blake  <ebb9@byu.net>
30410
30411         tests: add test for bogus NULL definition
30412         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
30413         * tests/test-stdlib.c: Likewise.
30414         * tests/test-string.c: Likewise.
30415         * tests/test-locale.c: Likewise.
30416         * tests/test-unistd.c: Likewise.
30417         * modules/stdio-tests (Depends-on): Add verify.
30418         * modules/stdlib-tests (Depends-on): Likewise.
30419         * modules/string-tests (Depends-on): Likewise.
30420         * modules/locale-tests (Depends-on): Likewise.
30421         * modules/unistd-tests (Depends-on): Likewise.
30422
30423 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
30424
30425         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
30426         self-explaining comment.
30427         * m4/selinux-selinux-h: Update serial.
30428         (gl_LIBSELINUX): New macro, adding a warning for missing development
30429         packages to code extracted from...
30430         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
30431         Add warning for missing development packages here, too.
30432
30433 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
30434
30435         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
30436
30437 2009-06-25  Eric Blake  <ebb9@byu.net>
30438
30439         version-etc: fix regression
30440         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
30441         gcc.
30442         (version_etc): Use it, to catch bugs with trailing NULL.
30443         * lib/version-etc.c (version_etc_arn): Delete unused argument.
30444         (version_etc_va): Fix logic bug.
30445         * modules/version-etc-tests: Add test.
30446         * tests/test-version-etc.c: New file.
30447         * tests/test-version-etc.sh: Likewise.
30448
30449 2009-06-25  Sam Steingold  <sds@gnu.org>
30450
30451         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
30452         mbtowc declaration.
30453
30454 2009-06-25  Eric Blake  <ebb9@byu.net>
30455
30456         fpurge: migrate into <stdio.h>
30457         * lib/fpurge.h: Delete...
30458         * lib/stdio.in.h (fpurge): ...and declare here, instead.
30459         * lib/fpurge.c (fpurge): Change declaring header.
30460         * modules/fpurge (Files): Drop deleted file.
30461         (Depends-on): Add stdio.
30462         (configure.ac): Set witness.
30463         * modules/stdio (Makefile.am): Support fpurge macros.
30464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30465         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
30466         * lib/fflush.c: Update client.
30467         * tests/test-fpurge.c: Likewise.
30468         * NEWS: Mention the change.
30469
30470 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30471
30472         * lib/argp-version-etc.c (program_authors): Add const
30473         qualifier.
30474         * lib/version-etc.c: Fix typos in the comments.
30475         * modules/argp-version-etc: Depends on version-etc.
30476
30477 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30478
30479         argp-version-etc: new module.
30480
30481         * lib/argp-version-etc.c: New file.
30482         * lib/argp-version-etc.h: New file.
30483         * modules/argp-version-etc: New file.
30484         * modules/argp-version-etc-tests: New file.
30485         * tests/test-argp-version-etc.c: New test.
30486         * tests/test-argp-version-etc-1.sh: New test.
30487
30488 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30489
30490         Provide additional interfaces and documentation for version-etc
30491         module.
30492
30493         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
30494         interfaces.
30495         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
30496         prototypes.
30497
30498 2009-06-24  Bruno Haible  <bruno@clisp.org>
30499
30500         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
30501         HAVE_LIB${NAME} macro.
30502         Reported by Sam Steingold <sds@gnu.org>.
30503
30504 2009-06-23  Simon Josefsson  <simon@josefsson.org>
30505
30506         * modules/hash-tests (test_hash_LDADD): Link to libintl when
30507         needed.
30508
30509 2009-06-21  Bruno Haible  <bruno@clisp.org>
30510
30511         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
30512         work.
30513         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
30514         together with LIB${NAME}, LTLIB${NAME}.
30515         Reported by Sam Steingold <sds@gnu.org>.
30516
30517 2009-06-20  Jim Meyering  <meyering@redhat.com>
30518
30519         tests: make sc_require_test_exit_idiom more generic
30520         * top/maint.mk (Exit_witness_file): New overridable variable.
30521         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
30522         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
30523
30524 2009-06-19  Jim Meyering  <meyering@redhat.com>
30525
30526         hash: reverse order of src/dst parameters in an internal interface
30527         * lib/hash.c (transfer_entries): Reverse order of parameters to
30528         put DST before SRC.  Adjust callers.
30529
30530         tests: test-hash: avoid wholesale duplication
30531         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
30532         Instead, use a loop and add a single conditional.
30533
30534         tests: test-hash: allow seed selection via a command line argument
30535         * tests/test-hash.c (get_seed): New function.
30536         (main): Use it.
30537
30538 2009-06-19  Eric Blake  <ebb9@byu.net>
30539
30540         hash: avoid memory leak on allocation failure
30541         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
30542         failure.  Factor repeated algorithm...
30543         (transfer_entries): ...into new helper routine.
30544         (hash_delete): React to hash_rehash return value.
30545
30546         hash: reduce memory pressure in hash_rehash no-op case
30547         * lib/hash.c (next_prime): Avoid overflow.
30548         (hash_initialize): Factor bucket size computation...
30549         (compute_bucket_size): ...into new helper function.
30550         (hash_rehash): Use new function and open coding to reduce memory
30551         pressure, and avoid a memory leak in USE_OBSTACK code.
30552         Reported by Jim Meyering.
30553
30554 2009-06-18  Eric Blake  <ebb9@byu.net>
30555
30556         hash: make rotation more obvious
30557         * modules/hash (Depends-on): Add bitrotate and stdint.
30558         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
30559         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
30560         (SIZE_MAX): Rely on headers for definition.
30561         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
30562         (raw_hasher): Use rotr_sz.
30563         Suggested by Jim Meyering.
30564
30565         hash: fix memory leak in last patch
30566         * lib/hash.c (hash_rehash): Avoid memory leak.
30567
30568         hash: avoid no-op rehashing
30569         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
30570
30571         hash: provide default callback functions
30572         * lib/hash.c (raw_hasher, raw_comparator): New functions.
30573         (hash_initialize): Use them as defaults.
30574         * tests/test-hash.c (main): Test this.
30575
30576         hash: minor optimization
30577         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
30578         when possible.
30579         (hash_initialize): Document this promise.
30580         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
30581         * tests/test-hash.c (hash_compare_strings): Test this.
30582
30583 2009-06-18  Bruno Haible  <bruno@clisp.org>
30584
30585         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
30586         going to be replaced anyway.
30587
30588 2009-06-18  Bruno Haible  <bruno@clisp.org>
30589
30590         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
30591         in one place.
30592         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
30593         be replaced anyway.
30594
30595 2009-06-18  Eric Blake  <ebb9@byu.net>
30596
30597         hash: check for resize before insertion
30598         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
30599         threshold before insertion, so that a pathological hash_rehash
30600         that fills every bucket can still trigger another rehash.
30601
30602 2009-06-18  Jim Meyering  <meyering@redhat.com>
30603
30604         hash-tests: add a loop around the small tests
30605         * tests/test-hash.c (main): Repeat small tests with selected
30606         small initial table sizes.
30607
30608 2009-06-17  Eric Blake  <ebb9@byu.net>
30609
30610         hash: minor cleanups
30611         * lib/hash.h (hash_entry): Make opaque, by moving...
30612         * lib/hash.c (hash_entry): ...here.
30613         (hash_insert): Clarify restrictions on what can be inserted.
30614         (hash_get_next): Clarify when it is safe to remove an element
30615         during traversal.
30616         (check_tuning): Skip verification when tuning is known safe.
30617         (hash_initialize): Clarify restrictions on tuning.
30618
30619 2009-06-17  Jim Meyering  <jim@meyering.net>
30620         and Eric Blake  <ebb9@byu.net>
30621
30622         hash-tests: new module
30623         * modules/hash-tests: New file.
30624         * tests/test-hash.c: New file.
30625
30626 2009-06-17  Eric Blake  <ebb9@byu.net>
30627
30628         strstr-simple: document new module
30629         * MODULES.html.sh: Document new module.
30630
30631         strstr, strcasestr: replace on platforms with broken memchr
30632         * modules/strstr: Split into...
30633         * modules/strstr-simple: ...new module that does not care about
30634         performance, but does care about glibc bug.
30635         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
30636         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
30637         if platform memchr is broken, per Debian bug 521737.
30638         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
30639         memchr.
30640         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
30641         * doc/posix-functions/strstr.texi (strstr): Document the fix.
30642         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30643         * modules/mountlist (Depends-on): Add strstr-simple.
30644         * modules/gen-uni-tables (Depends-on): Likewise.
30645         * modules/argz (Depends-on): Add strstr.
30646
30647 2009-06-17  Bruno Haible  <bruno@clisp.org>
30648
30649         * modules/posix_spawn-internal (Depends-on): Add errno.
30650
30651 2009-06-17  Bruno Haible  <bruno@clisp.org>
30652
30653         Define missing ESTALE on Interix 3.5.
30654         * lib/errno.in.h (ESTALE): Assign a value if missing.
30655         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
30656         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
30657         missing.
30658         * doc/posix-headers/errno.texi: Mention the Interix bug.
30659         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
30660
30661 2009-06-15  Eric Blake  <ebb9@byu.net>
30662
30663         memchr, memchr2: add valgrind exception
30664         * lib/memchr.valgrind: New file.
30665         * lib/memchr2.valgrind: New file.
30666         * modules/memchr (Files): Distribute valgrind file.
30667         * modules/memchr2 (Files): Likewise.
30668
30669         docs: memchr is no longer obsolete
30670         * MODULES.html.sh: Move memchr from obsolete to string.h section.
30671         * lib/string.in.h (memchr): Simplify logic.
30672
30673 2009-06-14  Jim Meyering  <meyering@redhat.com>
30674
30675         link-follow: fix the "checking..." message to not mention trailing slash
30676         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
30677         never considered trailing slashes.
30678
30679 2009-06-14  Bruno Haible  <bruno@clisp.org>
30680
30681         * m4/memchr.m4: Mention also the bug on IA-64.
30682         * doc/posix-functions/memchr.texi: Likewise.
30683
30684 2009-06-12  Eric Blake  <ebb9@byu.net>
30685
30686         memchr: detect broken x86_64 and alpha implementations
30687         * modules/memchr-tests (Depends-on): Move mmap detection...
30688         * modules/memchr (Depends-on): ...here.
30689         (configure.ac): Set indicator.
30690         * lib/string.in.h (memchr): Declare replacement.
30691         * modules/string (Makefile.am): Trigger replacement.
30692         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
30693         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
30694         bugs.
30695         * doc/posix-functions/memchr.texi (memchr): Document the bug.
30696         * modules/getpagesize (License): Relax license.
30697
30698 2009-06-11  Bruno Haible  <bruno@clisp.org>
30699
30700         * lib/idpriv.h: Add more references.
30701
30702 2009-06-08  Bruno Haible  <bruno@clisp.org>
30703
30704         Tests for module 'idpriv-droptemp'.
30705         * modules/idpriv-droptemp-tests: New file.
30706         * tests/test-idpriv-droptemp.sh: New file.
30707         * tests/test-idpriv-droptemp.su.sh: New file.
30708         * tests/test-idpriv-droptemp.c: New file.
30709
30710         New module 'idpriv-droptemp'.
30711         * lib/idpriv-droptemp.c: New file.
30712         * modules/idpriv-droptemp: New file.
30713
30714 2009-06-08  Bruno Haible  <bruno@clisp.org>
30715
30716         Tests for module 'idpriv-drop'.
30717         * modules/idpriv-drop-tests: New file.
30718         * tests/test-idpriv-drop.sh: New file.
30719         * tests/test-idpriv-drop.su.sh: New file.
30720         * tests/test-idpriv-drop.c: New file.
30721
30722         New module 'idpriv-drop'.
30723         * lib/idpriv.h: New file.
30724         * lib-idpriv-drop.c: New file.
30725         * m4/idpriv.m4: New file.
30726         * modules/idpriv-drop: New file.
30727
30728 2009-06-08  Bruno Haible  <bruno@clisp.org>
30729
30730         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
30731         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30732         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30733         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30734         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30735         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30736         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30737
30738 2009-06-08  Eric Blake  <ebb9@byu.net>
30739
30740         test-strstr: use memory fence, when possible
30741         * tests/test-strstr.c (main): Use memory fence, in order to be
30742         more likely to trigger Debian bug 521737.
30743         * modules/strstr-tests (Files): Pull in additional files.
30744
30745         memchr: no longer obsolete, for wider field testing
30746         * modules/memchr (Status, Notice): Delete, this module is no
30747         longer obsolete.
30748         * modules/vasnprintf (Depends-on): Add memchr.
30749
30750 2009-06-07  Jim Meyering  <meyering@redhat.com>
30751
30752         hash: declare some functions with the warn_unused_result attribute
30753         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
30754
30755 2009-06-07  Bruno Haible  <bruno@clisp.org>
30756
30757         * tests/test-alignof.c: Don't test int64_t if it does not exist.
30758         Reported by Eric Blake.
30759
30760 2009-06-06  Eric Blake  <ebb9@byu.net>
30761
30762         test-alignof: fix typo with long double
30763         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
30764         compiler error.
30765
30766 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
30767
30768         Escape non-texinfo { and }s.
30769         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
30770         markup error.
30771
30772 2009-06-04  Jim Meyering  <meyering@redhat.com>
30773
30774         gitlog-to-changelog: don't infloop on an empty commit log
30775         * build-aux/gitlog-to-changelog: Warn about an empty log message.
30776         Reported by Boris Petersen <transacid@centerim.org>.
30777
30778 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
30779
30780         version-etc: extend for packagers
30781         Add three new configure options, intended for packagers:
30782           --with-packager="packager name"
30783           --with-packager-version="packager-specific version"
30784           --with-packager-bug-reports="packager bug reporting"
30785         An example with coreutils:
30786           $ ./configure \
30787             --with-packager=Gentoo \
30788             --with-packager-bug-report=http://bugs.gentoo.org/ \
30789             --with-packager-version="patchset 1.6"
30790           $ ./src/ls --version | head -n2
30791           ls (GNU coreutils) 7.1-dirty
30792           Packaged by Gentoo (patchset 1.6)
30793         Note that the bug reporting info via --help doesn't show up because
30794         coreutils uses its own custom emit_bug_reporting_address() implementation
30795         in src/system.h.  If it didn't, it'd look like:
30796           $ ./src/ls --help | tail -n4
30797           Report bugs to <bug-coreutils@gnu.org>.
30798           Report Gentoo bugs to <http://bugs.gentoo.org/>.
30799           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
30800           General help using GNU software: <http://www.gnu.org/gethelp/>.
30801         * lib/version-etc.c: Print new information, if provided.
30802         * m4/version-etc.m4: New file.
30803         * modules/version-etc (Files): Add m4/version-etc.m4.
30804         (configure.ac): Add gl_VERSION_ETC.
30805
30806 2009-05-31  Bruno Haible  <bruno@clisp.org>
30807
30808         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
30809         and 'int64_t'.
30810         * modules/alignof-tests (Dependencies): Add stdint.
30811         Reported by Eric Blake.
30812
30813 2009-05-31  Bruno Haible  <bruno@clisp.org>
30814
30815         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
30816         restriction due to compiler bugs.
30817         Reported by Eric Blake.
30818
30819 2009-05-31  Simon Josefsson  <simon@josefsson.org>
30820             Bruno Haible  <bruno@clisp.org>
30821
30822         Fix test-alignof failure.
30823         * lib/alignof.h (alignof_slot): New macro.
30824         (alignof_type): New macro, with the same semantics as the previous
30825         'alignof'.
30826         (alignof): Alias to alignof_slot.
30827         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
30828         check that the results are usable as constant expressions.
30829
30830 2009-05-31  Bruno Haible  <bruno@clisp.org>
30831
30832         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
30833         * tests/test-memchr.c (main): Check that memchr does not read past the
30834         first occurrence of the byte.
30835         * tests/test-strstr.c (main): Update comment.
30836         Suggested by Eric Blake.
30837
30838 2009-05-30  Bruno Haible  <bruno@clisp.org>
30839
30840         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
30841         detail how to use dumpbin.
30842         Reported by David Byron <dbyron@dbyron.com>.
30843
30844 2009-06-02  Simon Josefsson  <simon@josefsson.org>
30845
30846         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
30847
30848 2009-06-02  Simon Josefsson  <simon@josefsson.org>
30849
30850         * m4/manywarnings.m4: Add GCC 4.4 warnings.
30851
30852 2009-05-28  Bruno Haible  <bruno@clisp.org>
30853
30854         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
30855         build-aux/ files.
30856
30857 2009-05-28  Simon Josefsson  <simon@josefsson.org>
30858
30859         * gnulib-tool (func_import): Transform license on build-aux/ files too.
30860
30861 2009-05-27  Simon Josefsson  <simon@josefsson.org>
30862
30863         * gnulib-tool (sed_transform_main_lib_file)
30864         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
30865         regexps.
30866
30867 2009-05-26  Simon Josefsson  <simon@josefsson.org>
30868
30869         * tests/test-strstr.c: Add another self-test.
30870         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
30871         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
30872
30873 2009-05-23  Bruno Haible  <bruno@clisp.org>
30874
30875         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
30876         change.
30877
30878 2009-05-21  Bruno Haible  <bruno@clisp.org>
30879
30880         Simplify use of mode_t varargs.
30881         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
30882         uses 'mode_t' or 'int'.
30883         * lib/openat.c (openat): Likewise.
30884         * lib/open-safer.c (open_safer): Likewise.
30885         * m4/mode_t.m4: New file.
30886         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
30887         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
30888         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
30889         * modules/open (Files): Add m4/mode_t.m4.
30890         * modules/openat (Files): Likewise.
30891         * modules/fcntl-safer (Files): Likewise.
30892         Suggested by Eric Blake.
30893
30894 2009-05-21  Pádraig Brady  <P@draigbrady.com>
30895
30896         * doc/glibc-functions/fallocate.texi: New file.
30897         * doc/gnulib.texi: Include it.
30898
30899 2009-05-21  Eric Blake  <ebb9@byu.net>
30900             Bruno Haible  <bruno@clisp.org>
30901
30902         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
30903         invocations.
30904         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30905
30906 2009-05-21  Eric Blake  <ebb9@byu.net>
30907             Bruno Haible  <bruno@clisp.org>
30908
30909         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
30910         include_next. Fix of 2008-11-20 commit.
30911         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
30912         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
30913         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
30914         NEXT_MATH_H.
30915         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
30916         instead of NEXT_MATH_H.
30917
30918 2009-05-21  Bruno Haible  <bruno@clisp.org>
30919
30920         Avoid redefinition warnings for SIZE_MAX.
30921         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
30922         Reported by Simon Josefsson.
30923
30924 2009-05-21  Bruno Haible  <bruno@clisp.org>
30925
30926         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
30927         AC_CACHE_VAL.
30928
30929 2009-05-20  Bruno Haible  <bruno@clisp.org>
30930
30931         Make zeroptr.h work on mingw.
30932         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
30933         mprotect.
30934         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
30935         * modules/memchr2-tests (configure.ac): Likewise.
30936         * modules/memcmp-tests (configure.ac): Likewise.
30937         * modules/memmem-tests (configure.ac): Likewise.
30938         * modules/memrchr-tests (configure.ac): Likewise.
30939         Reported by Simon Josefsson.
30940
30941 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30942
30943         * tests/test-glob.c: Include string.h for strcmp prototype.
30944
30945 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30946
30947         * modules/getdelim (Depends-on): Add explicit stdint, although it
30948         was implicitly already pulled in via realloc-posix.
30949         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
30950
30951 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30952
30953         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
30954         G. Christensen" <tgc@jupiterrise.com>.
30955         * m4/sys_socket_h.m4: Check for sa_family_t.
30956         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
30957         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
30958         * tests/test-sys_socket.c: Check that sa_family_t works.
30959
30960 2009-05-18  Eric Blake  <ebb9@byu.net>
30961
30962         maint.mk: allow gnulib_dir in VPATH build
30963         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
30964
30965 2009-05-15  Jim Meyering  <meyering@redhat.com>
30966
30967         maint.mk: Give gnulib_dir a default definition.
30968         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
30969         Thus, most packages no longer need to specify this variable in cfg.mk
30970
30971 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
30972
30973         rename.m4: fix typos that would make non-mingw cross-configure fail
30974         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
30975
30976 2009-05-13  Eric Blake  <ebb9@byu.net>
30977
30978         mmap-anon: avoid out-of-order autoconf expansion
30979         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
30980         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
30981         * modules/memchr-tests (Depends-on): Add extensions.
30982         * modules/memchr2-tests (Depends-on): Add extensions.
30983         * modules/memcmp-tests (Depends-on): Add extensions.
30984         * modules/memmem-tests (Depends-on): Add extensions.
30985         * modules/memrchr-tests (Depends-on): Add extensions.
30986
30987 2009-05-13  Bruno Haible  <bruno@clisp.org>
30988
30989         Make some tests ISO C 99 compliant.
30990         * tests/zerosize-ptr.h: New file.
30991         * tests/test-memchr.c: Include zerosize-ptr.h.
30992         (main): Use a zero-size object pointer instead of NULL.
30993         * tests/test-memchr2.c: Include zerosize-ptr.h.
30994         (main): Use a zero-size object pointer instead of NULL.
30995         * tests/test-memcmp.c: Include zerosize-ptr.h.
30996         (main): Use a zero-size object pointer instead of NULL.
30997         * tests/test-memmem.c: Include zerosize-ptr.h.
30998         (main): Use a zero-size object pointer instead of NULL.
30999         * tests/test-memrchr.c: Include zerosize-ptr.h.
31000         (main): Use a zero-size object pointer instead of NULL.
31001         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
31002         m4/mmap-anon.m4.
31003         (Depends-on): Add getpagesize.
31004         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31005         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
31006         m4/mmap-anon.m4.
31007         (Depends-on): Add getpagesize.
31008         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31009         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
31010         m4/mmap-anon.m4.
31011         (Depends-on): Add getpagesize.
31012         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31013         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
31014         m4/mmap-anon.m4.
31015         (Depends-on): Add getpagesize.
31016         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31017         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
31018         m4/mmap-anon.m4.
31019         (Depends-on): Add getpagesize.
31020         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31021
31022 2009-05-12  Bruno Haible  <bruno@clisp.org>
31023
31024         Tests for module 'alignof'.
31025         * modules/alignof-tests: New file.
31026         * tests/test-alignof.c: New file.
31027
31028 2009-05-12  Bruno Haible  <bruno@clisp.org>
31029
31030         Fix alignof macro.
31031         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
31032         vendor compilers that are always correct.
31033
31034 2009-05-12  Bruno Haible  <bruno@clisp.org>
31035
31036         Make the MAP_ANONYMOUS detection work on HP-UX 11.
31037         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
31038         not whether its fully works.
31039
31040 2009-05-12  Bruno Haible  <bruno@clisp.org>
31041
31042         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
31043
31044 2009-05-12  Jim Meyering  <meyering@redhat.com>
31045
31046         * top/maint.mk: Adjust backslash alignment.
31047
31048 2009-05-11  Simon Josefsson  <simon@josefsson.org>
31049
31050         * top/maint.mk: Make $(srcdir)/build-aux configurable.
31051
31052 2009-05-11  Eric Blake  <ebb9@byu.net>
31053
31054         argp: avoid undefined behavior
31055         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
31056         macros.
31057
31058 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31059
31060         * tests/test-vc-list-files-git.sh: Do git config of user.email and
31061         user.name to prevent git commit from complaining.
31062
31063 2009-05-10  Bruno Haible  <bruno@clisp.org>
31064
31065         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
31066         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
31067         it rewrites every file name only once.
31068         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
31069
31070 2009-05-08  Bruno Haible  <bruno@clisp.org>
31071
31072         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
31073         instead of 'max'.
31074
31075 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31076
31077         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
31078         sockaddr_storage test.
31079
31080 2009-05-07  Simon Josefsson  <simon@josefsson.org>
31081
31082         * modules/sys_socket (Makefile.am): Substitute
31083         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
31084         * m4/sys_socket_h.m4: Check for sockaddr_storage.
31085         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
31086         * tests/test-sys_socket.c: Check sockaddr_storage.
31087
31088 2009-05-08  Bruno Haible  <bruno@clisp.org>
31089
31090         New module 'alignof'.
31091         * lib/alignof.h: New file.
31092         * modules/alignof: New file.
31093
31094 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31095             Bruno Haible  <bruno@clisp.org>
31096
31097         Fix test-file-has-acl on FreeBSD.
31098         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
31099         mask is implicitly added.
31100         * tests/test-file-has-acl.c: Include <signal.h>.
31101         (main): Terminate the test after 5 seconds.
31102         * modules/acl-tests (configure.ac): Check for alarm function.
31103
31104 2009-05-04  Bruno Haible  <bruno@clisp.org>
31105
31106         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
31107         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
31108         * modules/errno (configure.ac): Drop AC_REQUIRE.
31109         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
31110         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
31111
31112 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31113
31114         * modules/glob-tests: New module.
31115         * tests/test-glob.c: Add.
31116
31117 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31118
31119         * modules/fnmatch-tests: New module.
31120         * tests/test-fnmatch.c: Add.
31121
31122 2009-05-04  Eric Blake  <ebb9@byu.net>
31123
31124         maint: make the new no-submodule-changes rule VPATH-safe
31125         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
31126
31127 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31128             Bruno Haible  <bruno@clisp.org>
31129
31130         acl: Fix infinite loop on FreeBSD.
31131         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
31132         of return value from acl_get_entry.
31133         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
31134         Likewise.
31135
31136 2009-05-03  Bruno Haible  <bruno@clisp.org>
31137
31138         * lib/acl-internal.h (acl_entries): Clarify return value.
31139         * lib/acl_entries.c (acl_entries): Likewise.
31140
31141 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31142
31143         Bug fix in acl module.
31144         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
31145
31146 2009-05-03  Bruno Haible  <bruno@clisp.org>
31147
31148         Create gperf-generated file in the source dir, not in the build dir.
31149         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
31150         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
31151         * modules/unicase/locale-language (unicase/locale-languages.h):
31152         Likewise.
31153         * modules/unicase/special-casing (unicase/special-casing-table.h):
31154         Likewise.
31155         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
31156         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
31157         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
31158         Reported by Ralf Wildenhues.
31159
31160 2009-05-03  Bruno Haible  <bruno@clisp.org>
31161
31162         * modules/fnmatch (Description, configure.ac): Taken from
31163         fnmatch-posix.
31164         * modules/fnmatch-posix: Turn into a symbolic reference to the
31165         'fnmatch' module, and deprecate.
31166         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
31167
31168 2009-05-03  Bruno Haible  <bruno@clisp.org>
31169
31170         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
31171         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
31172         Reported by Ralf Wildenhues.
31173
31174 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31175
31176         * m4/fnmatch.m4: Fix fnmatch re-define.
31177
31178 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31179
31180         priv-set: new module and tests; adapt write-any-file
31181         * lib/priv-set.c: New file.
31182         * lib/priv-set.h: New file.
31183         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
31184         * lib/write-any-file.c: Simplify by using priv-set module.
31185         * m4/priv-set.m4: New file.
31186         * modules/priv-set: New file.
31187         * modules/unlinkdir: Add dependency on priv-set module.
31188         * modules/write-any-file: Likewise.
31189
31190         Tests for module 'priv-set'.
31191         * modules/priv-set-tests: New file.
31192         * tests/test-priv-set.c: New file.
31193
31194 2009-05-03  Jim Meyering  <meyering@redhat.com>
31195             Bruno Haible  <bruno@clisp.org>
31196
31197         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
31198         use the converted UTF-8 variant of the name instead.
31199
31200 2009-05-03  Jim Meyering  <meyering@redhat.com>
31201
31202         tests: tighten some getdate tests
31203         * tests/test-getdate.c (main): Tighten tests: require equality,
31204         not just greater than.  Set TZ envvar to UTC0.
31205
31206 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
31207
31208         getdate: correctly interpret "next monday" when run on a Monday
31209         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
31210         that e.g., "next tues" (when run on a tuesday) results in a date
31211         that is one week in the future, and not today's date.
31212         I.e., add a week when the wday is the same as the current one.
31213         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
31214         and earlier by Martin Bernreuther and Jan Minář.
31215         * tests/test-getdate.c (main): Check that "next DAY" is always in
31216         the future and that "last DAY" is always in the past.
31217
31218 2009-05-02  Jim Meyering  <meyering@redhat.com>
31219
31220         build: ensure that a release build fails when a submodule is unclean
31221         * top/maint.mk (no-submodule-changes): New rule.
31222         (alpha beta major): Depend on it.
31223
31224 2009-05-02  Bruno Haible  <bruno@clisp.org>
31225
31226         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
31227         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
31228         shell variable gl_fnmatch_required to detect which variant is
31229         requested.
31230         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
31231         gl_FUNC_FNMATCH_POSIX.
31232         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
31233         exclude fnmatch-posix.
31234
31235 2009-05-02  Bruno Haible  <bruno@clisp.org>
31236
31237         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
31238         * modules/mbsrtowcs (License): Change to LGPLv2+.
31239         * modules/strnlen1 (License): Likewise.
31240         Reported by Simon Josefsson.
31241
31242 2009-05-02  Bruno Haible  <bruno@clisp.org>
31243
31244         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
31245         "cross".
31246         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
31247         gnulib-tool was called with option --source-base=lib.
31248
31249 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31250
31251         Use automake *-local hooks without commands, for extensibility.
31252         * modules/localcharset (Makefile.am): Rename install-exec-local
31253         rule to install-exec-localcharset, and make it a prerequisite of
31254         install-exec-local.  Likewise, rename the uninstall-local rule to
31255         uninstall-localcharset, and make it a prerequisite of the former.
31256
31257 2009-05-01  Bruno Haible  <bruno@clisp.org>
31258
31259         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
31260         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31261         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
31262         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
31263         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
31264         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31265         m4/locale-zh.m4, m4/codeset.m4.
31266
31267         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31268         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
31269         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31270         m4/locale-zh.m4.
31271
31272         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
31273         REPLACE_WCRTOMB if mbstate_t must be replaced.
31274         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
31275         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
31276
31277 2009-05-01  Bruno Haible  <bruno@clisp.org>
31278
31279         Avoid compiler warnings when redefining macros defined by <libintl.h>.
31280         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
31281         dngettext, dcngettext, textdomain, bindtextdomain,
31282         bind_textdomain_codeset): Undefine before redefining.
31283
31284 2009-04-30  Bruno Haible  <bruno@clisp.org>
31285
31286         Fix bug introduced on 2009-04-25.
31287         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
31288         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
31289         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
31290         is defined.
31291         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
31292         is defined.
31293         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
31294         is defined.
31295         Reported by Elbert_Pol <elbert.pol@gmail.com>.
31296
31297 2009-04-28  Bruno Haible  <bruno@clisp.org>
31298
31299         Comment tweaks.
31300         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
31301         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
31302         * lib/unicase.h (u*_casexfrm): Likewise.
31303         Reported by Paolo Bonzini.
31304
31305 2009-04-28  Bruno Haible  <bruno@clisp.org>
31306
31307         Fix a compilation error.
31308         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
31309         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31310         Reported by Jim Meyering.
31311
31312 2009-04-27  Bruno Haible  <bruno@clisp.org>
31313
31314         New module 'libunistring'.
31315         * modules/libunistring: New file.
31316         * m4/libunistring.m4: New file.
31317         * MODULES.html.sh (Unicode string functions): Add it.
31318
31319 2009-04-27  Eric Blake  <ebb9@byu.net>
31320
31321         maint.mk: allow package-specific header to provide <config.h>
31322         * top/maint.mk (sc_require_config_h): New variable.
31323         (sc_require_config_h, sc_require_config_h_first): Use it.
31324
31325 2009-04-27  Simon Josefsson  <simon@josefsson.org>
31326
31327         * top/maint.mk (sc_avoid_if_before_free): Except
31328         useless-if-before-free script.
31329
31330 2009-04-27  Eric Blake  <ebb9@byu.net>
31331
31332         maintainer-makefile: depend on all required helper scripts
31333         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
31334         useless-if-before-free.
31335         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
31336         version, rather than assuming gnulib checkout is available.
31337         Reported by Simen Josefsson.
31338
31339 2009-04-26  Bruno Haible  <bruno@clisp.org>
31340
31341         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
31342         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
31343         "../" or "..".
31344
31345 2009-04-26  Bruno Haible  <bruno@clisp.org>
31346
31347         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
31348         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
31349         AC_LIB_HAVE_LINKFLAGS.
31350
31351 2009-04-26  Bruno Haible  <bruno@clisp.org>
31352
31353         Simplify calling convention of u*_conv_from_encoding.
31354         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
31355         u32_conv_from_encoding): Expect a resultbuf argument and return the
31356         result directly as a pointer.
31357         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
31358         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
31359         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
31360         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
31361         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
31362         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31363         Update.
31364         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
31365         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
31366         * lib/vasnprintf.c (VASNPRINTF): Update.
31367         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
31368         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
31369         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
31370         * NEWS: Mention the change.
31371
31372 2009-04-26  Bruno Haible  <bruno@clisp.org>
31373
31374         Simplify calling convention of u*_conv_to_encoding.
31375         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
31376         u32_conv_to_encoding): Expect a resultbuf argument and return the
31377         result directly as a pointer.
31378         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31379         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
31380         freeing scaled_offsets if mem_iconveha failed.
31381         * lib/unicase/u-casexfrm.h (FUNC): Update.
31382         * lib/uninorm/u-normxfrm.h (FUNC): Update.
31383         * lib/vasnprintf.c (VASNPRINTF): Update.
31384         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
31385         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
31386         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
31387         * NEWS: Mention the change.
31388
31389 2009-04-26  Bruno Haible  <bruno@clisp.org>
31390
31391         Avoid test failures on AIX and OSF/1.
31392         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
31393         malloc(0).
31394         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31395         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31396         Likewise.
31397         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
31398         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
31399         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
31400         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
31401         * doc/posix-functions/malloc.texi: Document the portability problem
31402         related to malloc(0).
31403
31404 2009-04-26  Bruno Haible  <bruno@clisp.org>
31405
31406         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
31407         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
31408         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
31409
31410 2009-04-25  Bruno Haible  <bruno@clisp.org>
31411
31412         Avoid link error when creating a namespace clean library.
31413         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
31414         as macro with arguments if already defined as an alias.
31415         * lib/signbitf.c (gl_signbitf): Don't undefine.
31416         * lib/signbitd.c (gl_signbitd): Don't undefine.
31417         * lib/signbitl.c (gl_signbitl): Don't undefine.
31418
31419 2009-04-25  Jim Meyering  <meyering@redhat.com>
31420
31421         vc-list-files: fix another quoting bug
31422         * build-aux/vc-list-files: Avoid sed backslash expansion
31423         of pathological directory names.
31424
31425 2009-04-25  Eric Blake  <ebb9@byu.net>
31426
31427         vc-list-files: fix shell quoting error
31428         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
31429         timestamp.
31430
31431 2009-04-25  Jim Meyering  <meyering@redhat.com>
31432
31433         vc-list-files: restore lost functionality with subdir argument
31434         * build-aux/vc-list-files: When given a non-"." sub-directory
31435         argument, substitute the $dir/ prefix back onto each resulting name.
31436         Otherwise, coreutils' root_tests check would fail.
31437
31438 2009-04-24  Eric Blake  <ebb9@byu.net>
31439
31440         vc-list-files: ignore git symlinks
31441         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
31442         than ls-files, to ignore git symlinks.
31443
31444         maint.mk: import improvements from m4
31445         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
31446         (move_if_change): Delete unused macro.
31447         (news-date-check, vc-diff-check): Support VPATH builds.
31448         (announcement): Likewise.  Split --bootstrap-tools list...
31449         (boostrap-tools): ...into separate list, which can be overridden
31450         in cfg.mk.
31451         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
31452         requiring dependency on useless-if-before-free module.
31453         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
31454         Support VPATH builds.
31455
31456 2009-04-24  Jim Meyering  <meyering@redhat.com>
31457
31458         maint.mk: remove coreutils-specific rules and variables
31459         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
31460         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
31461         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
31462
31463         maint.mk: remove obsolete rule
31464         * top/maint.mk (rel-check): Remove rule.
31465         (WGET, WGETFLAGS): Remove now-unused variables.
31466
31467 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31468
31469         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
31470         consistency.
31471
31472         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
31473         '$(PATH_SEPARATOR)' instead of ':'.
31474
31475 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31476
31477         * lib/getopt1.c (main): Use 'const' for static array.
31478
31479 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31480
31481         * top/maint.mk: Sync with coreutils.
31482         * NEWS: Explain incompatibilities.
31483
31484 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31485             Bruno Haible  <bruno@clisp.org>
31486
31487         Fix cross-compilation results.
31488         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
31489         statement, as third argument of AC_TRY_RUN.
31490         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31491         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31492         Likewise.
31493         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31494         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
31495         Likewise.
31496         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31497         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
31498         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
31499
31500 2009-04-20  Bruno Haible  <bruno@clisp.org>
31501
31502         Avoid test failure on mingw.
31503         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
31504
31505 2009-04-20  Bruno Haible  <bruno@clisp.org>
31506
31507         Avoid compilation error on mingw.
31508         * modules/localename-tests (Depends-on): Add locale.
31509
31510 2009-04-19  Bruno Haible  <bruno@clisp.org>
31511
31512         Support for building a shared library on Windows platforms.
31513         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
31514         (main): Test the presence of UNINORM_NFC here.
31515         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
31516         (main): Test the presence of UNINORM_NFD here.
31517         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
31518         (main): Test the presence of UNINORM_NFKC here.
31519         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
31520         (main): Test the presence of UNINORM_NFKD here.
31521
31522 2009-04-19  Bruno Haible  <bruno@clisp.org>
31523
31524         Avoid a compiler warning.
31525         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
31526         Change type of variable 'sequence'.
31527
31528 2009-04-19  Bruno Haible  <bruno@clisp.org>
31529
31530         * modules/configmake (Makefile.am): When the contents of configmake.h
31531         does not change, arrange to preserve its modification time.
31532
31533 2009-04-17  Simon Josefsson  <simon@josefsson.org>
31534
31535         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
31536         gettext domain.
31537
31538 2009-04-16  Jim Meyering  <meyering@redhat.com>
31539
31540         useless-if-before-free: improve conversion code
31541         * build-aux/useless-if-before-free: Adjust code-in-comment to match
31542         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
31543
31544 2009-04-14  Bruno Haible  <bruno@clisp.org>
31545
31546         * modules/fcntl (Depends-on): Add extensions.
31547         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
31548
31549 2009-04-12  Ben Pfaff  <blp@gnu.org>
31550
31551         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
31552         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
31553
31554 2009-03-20  Ben Pfaff  <blp@gnu.org>
31555
31556         Make rename replace existing destinations on Windows.
31557         * m4/rename.m4: Add test for Mingw.
31558         * lib/rename.c: Add rename replacement that uses MoveFileEx with
31559         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
31560         * doc/posix-functions/rename.texi: Document.
31561
31562 2009-04-10  Bruno Haible  <bruno@clisp.org>
31563
31564         New include file "iconveh.h".
31565         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
31566         * lib/striconveh.h: Include it.
31567         (enum iconv_ilseq_handler): Remove definition.
31568         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
31569         striconveh.h.
31570         * lib/striconveha.c: Include striconveh.h.
31571         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
31572         * modules/striconveh (Files): Add lib/iconveh.h.
31573         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
31574         lib/striconveh.h.
31575
31576 2009-04-10  Bruno Haible  <bruno@clisp.org>
31577
31578         * lib/uniconv.h: Update comment.
31579
31580 2009-04-10  Bruno Haible  <bruno@clisp.org>
31581
31582         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
31583         always.
31584         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31585         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31586         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31587         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
31588         "unistring-notinline.h", so that the function gets defined always.
31589         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31590         * lib/unistr/u8-uctomb.c: Likewise.
31591         * lib/unistr/u16-mbtouc.c: Likewise.
31592         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31593         * lib/unistr/u16-uctomb.c: Likewise.
31594         * lib/unistr/u32-mbtouc.c: Likewise.
31595         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31596         * lib/unistr/u32-uctomb.c: Likewise.
31597
31598 2009-04-10  Bruno Haible  <bruno@clisp.org>
31599
31600         Mark 'utime' obsolete.
31601         * modules/utime (Status, Notice): New sections.
31602         Suggested by Jim Meyering.
31603
31604         Fix cross-compile guess for utime test.
31605         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
31606         autoconf.
31607         * doc/posix-functions/utime.texi: Give more precisions.
31608         Reported by Jan <ipif@ymail.com>.
31609
31610 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
31611
31612         filevercmp: correct today's change
31613         * lib/filevercmp.c: Also handle coreutils' test inputs.
31614         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
31615
31616         Fix regression in 'filevercmp' module. Thanks Sven Joachim
31617         for reporting it.
31618         * lib/filevercmp.c: Special handle for "", "." and "..".
31619         * tests/test-filevercmp.c: Enlarge the set suite.
31620
31621 2009-04-07  Jim Meyering  <meyering@redhat.com>
31622
31623         useless-if-before-free: show how to remove braced useless free, too
31624         * build-aux/useless-if-before-free: still only in a comment, though.
31625
31626 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
31627
31628         maint.mk: import changes to syntax-check macros from coreutils
31629         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
31630         Use them in the relevant macros.
31631
31632 2009-04-06  Bruno Haible  <bruno@clisp.org>
31633
31634         Fix unportable use of bit-fields.
31635         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
31636         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
31637         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
31638
31639 2009-04-06  Bruno Haible  <bruno@clisp.org>
31640
31641         Avoid test failures on AIX and OSF/1.
31642         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
31643         that malloc(0) = NULL.
31644         * tests/unicase/test-u8-tolower.c (check): Likewise.
31645         * tests/unicase/test-u8-totitle.c (check): Likewise.
31646         * tests/unicase/test-u8-toupper.c (check): Likewise.
31647         * tests/unicase/test-u16-casefold.c (check): Likewise.
31648         * tests/unicase/test-u16-tolower.c (check): Likewise.
31649         * tests/unicase/test-u16-totitle.c (check): Likewise.
31650         * tests/unicase/test-u16-toupper.c (check): Likewise.
31651         * tests/unicase/test-u32-casefold.c (check): Likewise.
31652         * tests/unicase/test-u32-tolower.c (check): Likewise.
31653         * tests/unicase/test-u32-totitle.c (check): Likewise.
31654         * tests/unicase/test-u32-toupper.c (check): Likewise.
31655         * tests/uninorm/test-u8-nfc.c (check): Likewise.
31656         * tests/uninorm/test-u8-nfd.c (check): Likewise.
31657         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
31658         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
31659         * tests/uninorm/test-u16-nfc.c (check): Likewise.
31660         * tests/uninorm/test-u16-nfd.c (check): Likewise.
31661         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
31662         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
31663         * tests/uninorm/test-u32-nfc.c (check): Likewise.
31664         * tests/uninorm/test-u32-nfd.c (check): Likewise.
31665         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
31666         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
31667
31668 2009-04-05  Bruno Haible  <bruno@clisp.org>
31669
31670         Work around an autoconf limitation.
31671         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
31672         comment line if it would be longer than 3 KB.
31673
31674 2009-04-05  Bruno Haible  <bruno@clisp.org>
31675
31676         Avoid test failure with libiconv-1.13.
31677         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
31678         of the expected test results.
31679
31680 2009-04-05  Bruno Haible  <bruno@clisp.org>
31681
31682         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
31683         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
31684         that it should be installed.
31685
31686 2009-04-05  Bruno Haible  <bruno@clisp.org>
31687
31688         * gnulib-tool: New option --copy-file.
31689         (func_usage): Document it.
31690         (func_dest_tmpfilename): Moved out of func_import.
31691         (func_add_file, func_update_file): New functions, extracted from
31692         func_import.
31693         (func_import): Update.
31694
31695 2009-04-05  Karl Berry  <karl@gnu.org>
31696
31697         * README: prominently mention gnulib-tool.
31698         Rearrange sections so getting the code is near the top.
31699
31700 2009-04-05  Bruno Haible  <bruno@clisp.org>
31701
31702         * lib/unicase.h: Mention u*_cmp2.
31703         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
31704         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
31705         * lib/unicase/ulc-casecmp.c: Likewise.
31706         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
31707         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
31708         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
31709         unistr/u8-cmp.
31710         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
31711         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
31712         unistr/u16-cmp.
31713         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
31714         unistr/u32-cmp.
31715
31716         * lib/uninorm.h: Mention u*_cmp2.
31717         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
31718         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
31719         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
31720         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
31721         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
31722         unistr/u8-cmp.
31723         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
31724         unistr/u16-cmp.
31725         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
31726         unistr/u32-cmp.
31727
31728         New module 'unistr/u32-cmp2'.
31729         * lib/unistr/u32-cmp2.c: New file.
31730         * modules/unistr/u32-cmp2: New file.
31731
31732         New module 'unistr/u16-cmp2'.
31733         * lib/unistr/u16-cmp2.c: New file.
31734         * modules/unistr/u16-cmp2: New file.
31735
31736         New module 'unistr/u8-cmp2'.
31737         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
31738         * lib/unistr/u8-cmp2.c: New file.
31739         * lib/unistr/u-cmp2.h: New file.
31740         * modules/unistr/u8-cmp2: New file.
31741
31742 2009-04-05  Bruno Haible  <bruno@clisp.org>
31743
31744         * lib/unictype.h (uc_property_is_valid): New macro.
31745         * tests/unictype/test-pr_byname.c (main): Use it.
31746
31747         * lib/unistr.h: Doc fixes.
31748         * lib/uniconv.h: Doc fixes.
31749         * lib/unictype.h: Doc fixes.
31750
31751 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
31752
31753         Port coreutils 7.2 to Solaris 8.
31754
31755         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
31756         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
31757         for Solaris 8.  This is a bit of a hack, as it means it's the
31758         caller's responsibility to add -lnsl if needed, but most likely it
31759         won't be needed since only getaddrinfo uses this and getaddrinfo
31760         isn't needed on Solaris 8.
31761
31762         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
31763         problem to Solaris 8 encountered with coreutils 7.2, which
31764         resulted in a message "fnmatch.c:292: warning: passing argument 4
31765         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
31766         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
31767
31768 2009-04-03  Simon Josefsson  <simon@josefsson.org>
31769
31770         * m4/ld-version-script.m4: Add FIXME comment.
31771
31772 2009-04-02  Simon Josefsson  <simon@josefsson.org>
31773
31774         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
31775         SOVERSION variable.
31776
31777 2009-04-02  Bruno Haible  <bruno@clisp.org>
31778
31779         * Makefile (info, html, dvi, pdf): Combine the rules.
31780         Suggested by Jim Meyering.
31781
31782 2009-04-01  Bruno Haible  <bruno@clisp.org>
31783
31784         * Makefile (info, html, dvi, pdf): New targets.
31785         Reported by Reuben Thomas <rrt@sc3d.org>.
31786
31787 2009-04-01  Bruno Haible  <bruno@clisp.org>
31788
31789         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
31790         can be put into PATH.
31791         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
31792
31793 2009-04-01  Bruno Haible  <bruno@clisp.org>
31794
31795         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
31796
31797 2009-04-01  Bruno Haible  <bruno@clisp.org>
31798
31799         Rename module 'visibility'.
31800         * modules/lib-symbol-visibility: Renamed from modules/visibility.
31801         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
31802         * doc/gnulib.texi: Update.
31803         * MODULES.html.sh (Misc): Update.
31804         * NEWS: Mention the change.
31805
31806 2009-04-01  Simon Josefsson  <simon@josefsson.org>
31807
31808         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
31809         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
31810         Eric Blake <ebb9@byu.net> for review.
31811         * MODULES.html.sh: Add lib-msvc-compat.
31812         * doc/gnulib.texi: Link to new section.
31813         * m4/ld-output-def.m4: New file.
31814         * doc/ld-output-def.texi: New file.
31815
31816 2009-04-01  Simon Josefsson  <simon@josefsson.org>
31817
31818         Rename ld-version-script to lib-symbol-versions.  Suggested by
31819         Bruno Haible <bruno@clisp.org>.
31820         * modules/ld-version-script: Renamed to lib-symbol-versions.
31821         * doc/ld-version-script.texi: Fix module name.
31822         * MODULES.html.sh: Add lib-symbol-versions.
31823
31824 2009-03-31  Simon Josefsson  <simon@josefsson.org>
31825
31826         * modules/u64-tests: New file.
31827         * tests/test-u64.c: New file.
31828
31829 2009-03-04  Simon Josefsson  <simon@josefsson.org>
31830
31831         * MODULES.html.sh: Mention u64.
31832         * modules/u64: New module.
31833         * modules/crypto/sha512: Depend on u64 module instead of providing
31834         u64.h.
31835
31836 2009-03-27  Eric Blake  <ebb9@byu.net>
31837
31838         test-strerror: make debugging EAI_SYSTEM easier
31839         * modules/getaddrinfo-tests (Depends-on): Add strerror.
31840         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
31841         failure was EAI_SYSTEM.
31842
31843 2009-03-25  Bruno Haible  <bruno@clisp.org>
31844
31845         Fix a problem with --enable-relocatable on Solaris 7.
31846         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
31847         since 2008-02-24.
31848
31849 2009-03-25  Eric Blake  <ebb9@byu.net>
31850
31851         test-sockets: avoid gcc warning
31852         * tests/test-sockets.c (main): Silence compiler warning.
31853
31854 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
31855
31856         New modules nproc, pthread, contributed by Glen Lenker.
31857
31858         * MODULES.html.sh: Add pthread, nproc.
31859         * lib/nproc.c: New file.
31860         * lib/nproc.h: New file.
31861         * lib/pthread.in.h: New file.
31862         * m4/pthread.m4: New file.
31863         * modules/nproc: New file.
31864         * modules/pthread: New file.
31865
31866 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31867
31868         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
31869         New variable.
31870
31871 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
31872
31873         filevercmp: handle simple~ and numbered.~3~ backup suffixes
31874         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
31875         * tests/test-filevercmp.c: Add tests for backup suffixes.
31876
31877 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31878
31879         * modules/stdlib (Depends-on): Add stdint, needed when defining
31880         struct random_data on, for example, HP-UX 10.20.  Reported by
31881         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31882
31883 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31884
31885         * lib/readline.c (readline): Call fflush on stdout after printing
31886         prompt.
31887
31888 2009-03-20  Bruno Haible  <bruno@clisp.org>
31889
31890         Remove dependency from 'close' module to -lws2_32 on native Windows.
31891         * lib/close-hook.h: New file.
31892         * lib/close-hook.c: New file.
31893         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
31894         w32sock.h.
31895         (_gl_close_fd_maybe_socket): Remove function.
31896         (rpl_close): Invoke execute_all_close_hooks instead of
31897         _gl_close_fd_maybe_socket.
31898         * lib/sockets.c: Include close-hook.h, w32sock.h.
31899         (close_fd_maybe_socket): New function, essentially from lib/close.c.
31900         (close_sockets_hook): New variable.
31901         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
31902         (gl_sockets_cleanup): Unregister it.
31903         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
31904         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
31905         * modules/close-hook: New file.
31906         * modules/close (Files): Remove lib/w32sock.h.
31907         (Depends-on): Add close-hook.
31908         (Link): Remove section.
31909         * modules/sockets (Files): Add lib/w32sock.h.
31910         (Depends-on): Add close-hook.
31911         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
31912         invocation.
31913         * NEWS: Mention that LIB_CLOSE is gone.
31914
31915 2009-03-23  Eric Blake  <ebb9@byu.net>
31916
31917         signal-tests: test previous patch
31918         * tests/test-signal.c: New file.
31919         * modules/signal-tests: Likewise.
31920
31921         signal.h: always support 'volatile sig_atomic_t'
31922         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
31923         (gl_SIGNAL_H_DEFAULTS): Add a default.
31924         * modules/signal (Makefile.am): Substitute if needed.
31925         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
31926         users can blindly add volatile.
31927         * doc/posix-headers/signal.texi (signal.h): Document it.
31928         Reported by Matthew Woehlke.
31929
31930 2009-03-23  Jim Meyering  <meyering@redhat.com>
31931
31932         pathmax: PATH_MAX: use pathconf only when available
31933         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
31934         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
31935         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
31936         This avoids a link failure in a PSP cross-compilation environment
31937         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
31938
31939         * lib/vasnprintf.c (divide): Fix typo in comment.
31940
31941 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31942
31943         * gnulib-tool (func_filter_filelist): Fix comment.
31944
31945 2009-03-20  Bruno Haible  <bruno@clisp.org>
31946
31947         Make sockets.h self-contained.
31948         * lib/sockets.c: Include sockets.h first.
31949         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
31950
31951 2009-03-19  Eric Blake  <ebb9@byu.net>
31952
31953         doc: mention more functions added in cygwin 1.7.0
31954         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
31955         addition.
31956         * doc/posix-functions/log2f.texi: Likewise.
31957
31958 2009-03-19  Jim Meyering  <meyering@redhat.com>
31959
31960         fsusage: avoid syntax error due to statement-before-declaration
31961         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
31962         after all declarations.  Reported by Matthew Woehlke in
31963         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
31964
31965 2009-03-18  Eric Blake  <ebb9@byu.net>
31966
31967         build-aux/compile: sync from automake
31968         * build-aux/compile: New file, from automake.
31969         * config/srclist.txt: Mention build-aux/compile.
31970
31971 2009-03-17  Bruno Haible  <bruno@clisp.org>
31972
31973         * lib/git-merge-changelog.c: Fix typo in comment.
31974         Reported by Reuben Thomas <rrt@sc3d.org>.
31975
31976 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
31977
31978         * m4/regex.m4: update and improve help for
31979         --without-included-regex.
31980
31981 2009-03-17  Simon Josefsson  <simon@josefsson.org>
31982
31983         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
31984         failure on missing include files.
31985
31986 2009-03-17  Eric Blake  <ebb9@byu.net>
31987
31988         doc: mention more functions added in cygwin 1.7.0
31989         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
31990         addition.
31991         * doc/posix-functions/fwscanf.texi: Likewise.
31992         * doc/posix-functions/swprintf.texi: Likewise.
31993         * doc/posix-functions/swscanf.texi: Likewise.
31994         * doc/posix-functions/vfwprintf.texi: Likewise.
31995         * doc/posix-functions/vfwscanf.texi: Likewise.
31996         * doc/posix-functions/vswprintf.texi: Likewise.
31997         * doc/posix-functions/vswscanf.texi: Likewise.
31998         * doc/posix-functions/vwprintf.texi: Likewise.
31999         * doc/posix-functions/vwscanf.texi: Likewise.
32000         * doc/posix-functions/wcscasecmp.texi: Likewise.
32001         * doc/posix-functions/wcsdup.texi: Likewise.
32002         * doc/posix-functions/wcsftime.texi: Likewise.
32003         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32004         * doc/posix-functions/wprintf.texi: Likewise.
32005         * doc/posix-functions/wscanf.texi: Likewise.
32006         * doc/glibc-functions/gethostbyname2.texi: Likewise.
32007
32008 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32009
32010         maint.mk: really add $(AM_MAKEFLAGS)
32011         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
32012         was inadvertently omitted in the last commit.
32013         Spotted by Bruno Haible.
32014
32015         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
32016         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
32017         $(AM_MAKEFLAGS)' rather than plain `make'.
32018
32019         gnulib-tool: execute $MAKE not make
32020         * gnulib-tool: Default $MAKE to 'make'.
32021         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
32022         than make.  Initialize $MAKE in the do-autobuild script.
32023
32024         gnulib-tool: use $MAKE not make in generated files
32025         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
32026         make, in generated files.  Initialize $MAKE in the do-autobuild
32027         script.
32028
32029         * top/GNUmakefile (_have-git-version-gen): Fix typo.
32030
32031         GNUmakefile: disable parallelism only for multiple, recursive targets
32032         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
32033         additions in the Makefile.
32034         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
32035         by Automake.
32036         (.NOTPARALLEL): Only disable parallel builds if multiple targets
32037         are listed on the command line and at least one of them is
32038         listed in $(ALL_RECURSIVE_TARGETS).
32039
32040 2009-03-14  Bruno Haible  <bruno@clisp.org>
32041
32042         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
32043         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
32044         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
32045         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
32046         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
32047         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
32048         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
32049         unistr/u8-uctomb.
32050         * modules/unistr/u8-strchr (Depends-on): Likewise.
32051         * modules/unistr/u8-strrchr (Depends-on): Likewise.
32052         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
32053         unistr/u16-uctomb.
32054         * modules/unistr/u16-strchr (Depends-on): Likewise.
32055         * modules/unistr/u16-strrchr (Depends-on): Likewise.
32056
32057 2009-03-12  Bruno Haible  <bruno@clisp.org>
32058
32059         Work around select() bug on Interix 3.5.
32060         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
32061         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
32062         * m4/select.m4: New file.
32063         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
32064         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
32065         * modules/select (Files): Add m4/select.m4.
32066         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
32067         * modules/nanosleep (Depends-on): Add select.
32068         * modules/poll (Depends-on): Likewise.
32069         * doc/posix-functions/select.texi: Mention the Interix bug.
32070         Reported by Markus Duft <mduft@gentoo.org>.
32071
32072         * lib/select.c: Renamed from lib/winsock-select.c.
32073         * modules/select (Files): Add lib/select.c, remove
32074         lib/winsock-select.c.
32075         (configure.ac): Update.
32076
32077 2009-03-12  Jim Meyering  <meyering@redhat.com>
32078
32079         avoid gcc warnings about unused macro definitions
32080         * lib/readtokens.c (STREQ): Remove unused definition.
32081         * lib/xmalloc.c (SIZE_MAX): Likewise.
32082         * lib/openat-die.c (N_): Likewise.
32083         * lib/mountlist.c (SIZE_MAX): Remove definition.
32084         Instead, include <stdint.h>.
32085         * lib/readutmp.c: Likewise.
32086         * modules/readutmp (Depends-on): Add stdint.
32087         * modules/mountlist (Depends-on): Add stdint.
32088         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
32089
32090 2009-03-10  Bruno Haible  <bruno@clisp.org>
32091
32092         Tests for module 'mbmemcasecoll'.
32093         * modules/mbmemcasecoll-tests: New file.
32094         * tests/test-mbmemcasecoll1.sh: New file.
32095         * tests/test-mbmemcasecoll2.sh: New file.
32096         * tests/test-mbmemcasecoll3.sh: New file.
32097         * tests/test-mbmemcasecoll.c: New file.
32098
32099         New module 'mbmemcasecoll'.
32100         * lib/mbmemcasecoll.h: New file.
32101         * lib/mbmemcasecoll.c: New file.
32102         * modules/mbmemcasecoll: New file.
32103
32104         * tests/test-mbmemcasecmp.h: New file, extracted from
32105         tests/test-mbmemcasecmp.c.
32106         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
32107         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
32108         (main): Update.
32109         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
32110
32111 2009-03-09  Bruno Haible  <bruno@clisp.org>
32112
32113         Tests for module 'mbmemcasecmp'.
32114         * modules/mbmemcasecmp-tests: New file.
32115         * tests/test-mbmemcasecmp1.sh: New file.
32116         * tests/test-mbmemcasecmp2.sh: New file.
32117         * tests/test-mbmemcasecmp3.sh: New file.
32118         * tests/test-mbmemcasecmp.c: New file.
32119
32120         New module 'mbmemcasecmp'.
32121         * lib/mbmemcasecmp.h: New file.
32122         * lib/mbmemcasecmp.c: New file.
32123         * modules/mbmemcasecmp: New file.
32124
32125 2009-03-09  Bruno Haible  <bruno@clisp.org>
32126
32127         Tests for module 'unicase/ulc-casecoll'.
32128         * modules/unicase/ulc-casecoll-tests: New file.
32129         * tests/unicase/test-ulc-casecoll1.sh: New file.
32130         * tests/unicase/test-ulc-casecoll2.sh: New file.
32131         * tests/unicase/test-ulc-casecoll.c: New file.
32132
32133         New module 'unicase/ulc-casecoll'.
32134         * lib/unicase.h (ulc_casecoll): New declaration.
32135         * lib/unicase/ulc-casecoll.c: New file.
32136         * modules/unicase/ulc-casecoll: New file.
32137
32138         New module 'unicase/ulc-casexfrm'.
32139         * lib/unicase.h (ulc_casexfrm): New declaration.
32140         * lib/unicase/ulc-casexfrm.c: New file.
32141         * modules/unicase/ulc-casexfrm: New file.
32142
32143 2009-03-09  Bruno Haible  <bruno@clisp.org>
32144
32145         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
32146         invocations.
32147
32148         * m4/mbscasecmp.m4: Remove file.
32149         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
32150         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
32151
32152         * m4/mbscasestr.m4: Remove file.
32153         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
32154         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
32155
32156         * m4/mbschr.m4: Remove file.
32157         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
32158         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
32159
32160         * m4/mbscspn.m4: Remove file.
32161         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
32162         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
32163
32164         * m4/mbslen.m4: Remove file.
32165         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
32166         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
32167
32168         * m4/mbsncasecmp.m4: Remove file.
32169         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
32170         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
32171
32172         * m4/mbsnlen.m4: Remove file.
32173         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
32174         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
32175
32176         * m4/mbspbrk.m4: Remove file.
32177         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
32178         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
32179
32180         * m4/mbspcasecmp.m4: Remove file.
32181         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
32182         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
32183
32184         * m4/mbsrchr.m4: Remove file.
32185         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
32186         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
32187
32188         * m4/mbssep.m4: Remove file.
32189         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
32190         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
32191
32192         * m4/mbsspn.m4: Remove file.
32193         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
32194         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
32195
32196         * m4/mbsstr.m4: Remove file.
32197         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
32198         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
32199
32200         * m4/mbstok_r.m4: Remove file.
32201         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
32202         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
32203
32204         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
32205
32206         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
32207         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
32208
32209         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
32210
32211 2009-03-08  Bruno Haible  <bruno@clisp.org>
32212
32213         Tests for module 'unicase/ulc-casecmp'.
32214         * modules/unicase/ulc-casecmp-tests: New file.
32215         * tests/unicase/test-ulc-casecmp1.sh: New file.
32216         * tests/unicase/test-ulc-casecmp2.sh: New file.
32217         * tests/unicase/test-ulc-casecmp.c: New file.
32218
32219         New module 'unicase/ulc-casecmp'.
32220         * lib/unicase.h (ulc_casecmp): New declaration.
32221         * lib/unicase/ulc-casecmp.c: New file.
32222         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
32223         'const SRC_UNIT *'.
32224         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
32225         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
32226         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
32227         * modules/unicase/ulc-casecmp: New file.
32228
32229         Tests for module 'unicase/u32-is-cased'.
32230         * modules/unicase/u32-is-cased-tests: New file.
32231         * tests/unicase/test-u32-is-cased.c: New file.
32232
32233         Tests for module 'unicase/u16-is-cased'.
32234         * modules/unicase/u16-is-cased-tests: New file.
32235         * tests/unicase/test-u16-is-cased.c: New file.
32236
32237         Tests for module 'unicase/u8-is-cased'.
32238         * modules/unicase/u8-is-cased-tests: New file.
32239         * tests/unicase/test-u8-is-cased.c: New file.
32240         * tests/unicase/test-is-cased.h: New file.
32241
32242         New module 'unicase/u32-is-cased'.
32243         * lib/unicase/u32-is-cased.c: New file.
32244         * modules/unicase/u32-is-cased: New file.
32245
32246         New module 'unicase/u16-is-cased'.
32247         * lib/unicase/u16-is-cased.c: New file.
32248         * modules/unicase/u16-is-cased: New file.
32249
32250         New module 'unicase/u8-is-cased'.
32251         * lib/unicase/u8-is-cased.c: New file.
32252         * lib/unicase/u-is-cased.h: New file.
32253         * modules/unicase/u8-is-cased: New file.
32254
32255         Tests for module 'unicase/u32-is-casefolded'.
32256         * modules/unicase/u32-is-casefolded-tests: New file.
32257         * tests/unicase/test-u32-is-casefolded.c: New file.
32258
32259         Tests for module 'unicase/u16-is-casefolded'.
32260         * modules/unicase/u16-is-casefolded-tests: New file.
32261         * tests/unicase/test-u16-is-casefolded.c: New file.
32262
32263         Tests for module 'unicase/u8-is-casefolded'.
32264         * modules/unicase/u8-is-casefolded-tests: New file.
32265         * tests/unicase/test-u8-is-casefolded.c: New file.
32266         * tests/unicase/test-is-casefolded.h: New file.
32267
32268         New module 'unicase/u32-is-casefolded'.
32269         * lib/unicase/u32-is-casefolded.c: New file.
32270         * modules/unicase/u32-is-casefolded: New file.
32271
32272         New module 'unicase/u16-is-casefolded'.
32273         * lib/unicase/u16-is-casefolded.c: New file.
32274         * modules/unicase/u16-is-casefolded: New file.
32275
32276         New module 'unicase/u8-is-casefolded'.
32277         * lib/unicase/u8-is-casefolded.c: New file.
32278         * modules/unicase/u8-is-casefolded: New file.
32279
32280         Tests for module 'unicase/u32-is-titlecase'.
32281         * modules/unicase/u32-is-titlecase-tests: New file.
32282         * tests/unicase/test-u32-is-titlecase.c: New file.
32283
32284         Tests for module 'unicase/u16-is-titlecase'.
32285         * modules/unicase/u16-is-titlecase-tests: New file.
32286         * tests/unicase/test-u16-is-titlecase.c: New file.
32287
32288         Tests for module 'unicase/u8-is-titlecase'.
32289         * modules/unicase/u8-is-titlecase-tests: New file.
32290         * tests/unicase/test-u8-is-titlecase.c: New file.
32291         * tests/unicase/test-is-titlecase.h: New file.
32292
32293         New module 'unicase/u32-is-titlecase'.
32294         * lib/unicase/u32-is-titlecase.c: New file.
32295         * modules/unicase/u32-is-titlecase: New file.
32296
32297         New module 'unicase/u16-is-titlecase'.
32298         * lib/unicase/u16-is-titlecase.c: New file.
32299         * modules/unicase/u16-is-titlecase: New file.
32300
32301         New module 'unicase/u8-is-titlecase'.
32302         * lib/unicase/u8-is-titlecase.c: New file.
32303         * modules/unicase/u8-is-titlecase: New file.
32304
32305         Tests for module 'unicase/u32-is-lowercase'.
32306         * modules/unicase/u32-is-lowercase-tests: New file.
32307         * tests/unicase/test-u32-is-lowercase.c: New file.
32308
32309         Tests for module 'unicase/u16-is-lowercase'.
32310         * modules/unicase/u16-is-lowercase-tests: New file.
32311         * tests/unicase/test-u16-is-lowercase.c: New file.
32312
32313         Tests for module 'unicase/u8-is-lowercase'.
32314         * modules/unicase/u8-is-lowercase-tests: New file.
32315         * tests/unicase/test-u8-is-lowercase.c: New file.
32316         * tests/unicase/test-is-lowercase.h: New file.
32317
32318         New module 'unicase/u32-is-lowercase'.
32319         * lib/unicase/u32-is-lowercase.c: New file.
32320         * modules/unicase/u32-is-lowercase: New file.
32321
32322         New module 'unicase/u16-is-lowercase'.
32323         * lib/unicase/u16-is-lowercase.c: New file.
32324         * modules/unicase/u16-is-lowercase: New file.
32325
32326         New module 'unicase/u8-is-lowercase'.
32327         * lib/unicase/u8-is-lowercase.c: New file.
32328         * modules/unicase/u8-is-lowercase: New file.
32329
32330         Tests for module 'unicase/u32-is-uppercase'.
32331         * modules/unicase/u32-is-uppercase-tests: New file.
32332         * tests/unicase/test-u32-is-uppercase.c: New file.
32333
32334         Tests for module 'unicase/u16-is-uppercase'.
32335         * modules/unicase/u16-is-uppercase-tests: New file.
32336         * tests/unicase/test-u16-is-uppercase.c: New file.
32337
32338         Tests for module 'unicase/u8-is-uppercase'.
32339         * modules/unicase/u8-is-uppercase-tests: New file.
32340         * tests/unicase/test-u8-is-uppercase.c: New file.
32341         * tests/unicase/test-is-uppercase.h: New file.
32342
32343         New module 'unicase/u32-is-uppercase'.
32344         * lib/unicase/u32-is-uppercase.c: New file.
32345         * modules/unicase/u32-is-uppercase: New file.
32346
32347         New module 'unicase/u16-is-uppercase'.
32348         * lib/unicase/u16-is-uppercase.c: New file.
32349         * modules/unicase/u16-is-uppercase: New file.
32350
32351         New module 'unicase/u8-is-uppercase'.
32352         * lib/unicase/u8-is-uppercase.c: New file.
32353         * modules/unicase/u8-is-uppercase: New file.
32354
32355         New module 'unicase/u32-is-invariant'.
32356         * lib/unicase/u32-is-invariant.c: New file.
32357         * modules/unicase/u32-is-invariant: New file.
32358
32359         New module 'unicase/u16-is-invariant'.
32360         * lib/unicase/u16-is-invariant.c: New file.
32361         * modules/unicase/u16-is-invariant: New file.
32362
32363         New module 'unicase/u8-is-invariant'.
32364         * lib/unicase/u8-is-invariant.c: New file.
32365         * lib/unicase/invariant.h: New file.
32366         * lib/unicase/u-is-invariant.h: New file.
32367         * modules/unicase/u8-is-invariant: New file.
32368
32369         Tests for module 'unicase/u32-casecoll'.
32370         * modules/unicase/u32-casecoll-tests: New file.
32371         * tests/unicase/test-u32-casecoll.c: New file.
32372
32373         Tests for module 'unicase/u16-casecoll'.
32374         * modules/unicase/u16-casecoll-tests: New file.
32375         * tests/unicase/test-u16-casecoll.c: New file.
32376
32377         Tests for module 'unicase/u8-casecoll'.
32378         * modules/unicase/u8-casecoll-tests: New file.
32379         * tests/unicase/test-u8-casecoll.c: New file.
32380
32381         New module 'unicase/u32-casecoll'.
32382         * lib/unicase/u32-casecoll.c: New file.
32383         * modules/unicase/u32-casecoll: New file.
32384
32385         New module 'unicase/u16-casecoll'.
32386         * lib/unicase/u16-casecoll.c: New file.
32387         * modules/unicase/u16-casecoll: New file.
32388
32389         New module 'unicase/u8-casecoll'.
32390         * lib/unicase/u8-casecoll.c: New file.
32391         * lib/unicase/u-casecoll.h: New file.
32392         * modules/unicase/u8-casecoll: New file.
32393
32394         New module 'unicase/u32-casexfrm'.
32395         * lib/unicase/u32-casexfrm.c: New file.
32396         * modules/unicase/u32-casexfrm: New file.
32397
32398         New module 'unicase/u16-casexfrm'.
32399         * lib/unicase/u16-casexfrm.c: New file.
32400         * modules/unicase/u16-casexfrm: New file.
32401
32402         New module 'unicase/u8-casexfrm'.
32403         * lib/unicase/u8-casexfrm.c: New file.
32404         * lib/unicase/u-casexfrm.h: New file.
32405         * modules/unicase/u8-casexfrm: New file.
32406
32407         Tests for module 'unicase/u32-casecmp'.
32408         * modules/unicase/u32-casecmp-tests: New file.
32409         * tests/unicase/test-u32-casecmp.c: New file.
32410
32411         Tests for module 'unicase/u16-casecmp'.
32412         * modules/unicase/u16-casecmp-tests: New file.
32413         * tests/unicase/test-u16-casecmp.c: New file.
32414
32415         Tests for module 'unicase/u8-casecmp'.
32416         * modules/unicase/u8-casecmp-tests: New file.
32417         * tests/unicase/test-u8-casecmp.c: New file.
32418         * tests/unicase/test-casecmp.h: New file.
32419
32420         New module 'unicase/u32-casecmp'.
32421         * lib/unicase/u32-casecmp.c: New file.
32422         * modules/unicase/u32-casecmp: New file.
32423
32424         New module 'unicase/u16-casecmp'.
32425         * lib/unicase/u16-casecmp.c: New file.
32426         * modules/unicase/u16-casecmp: New file.
32427
32428         New module 'unicase/u8-casecmp'.
32429         * lib/unicase/u8-casecmp.c: New file.
32430         * lib/unicase/u-casecmp.h: New file.
32431         * modules/unicase/u8-casecmp: New file.
32432
32433         Tests for module 'unicase/u32-casefold'.
32434         * modules/unicase/u32-casefold-tests: New file.
32435         * tests/unicase/test-u32-casefold.c: New file.
32436
32437         Tests for module 'unicase/u16-casefold'.
32438         * modules/unicase/u16-casefold-tests: New file.
32439         * tests/unicase/test-u16-casefold.c: New file.
32440
32441         Tests for module 'unicase/u8-casefold'.
32442         * modules/unicase/u8-casefold-tests: New file.
32443         * tests/unicase/test-u8-casefold.c: New file.
32444
32445         New module 'unicase/u32-casefold'.
32446         * lib/unicase/u32-casefold.c: New file.
32447         * modules/unicase/u32-casefold: New file.
32448
32449         New module 'unicase/u16-casefold'.
32450         * lib/unicase/u16-casefold.c: New file.
32451         * modules/unicase/u16-casefold: New file.
32452
32453         New module 'unicase/u8-casefold'.
32454         * lib/unicase/u8-casefold.c: New file.
32455         * lib/unicase/u-casefold.h: New file.
32456         * modules/unicase/u8-casefold: New file.
32457
32458         New module 'unicase/tocasefold'.
32459         * lib/unicase/casefold.h: New file.
32460         * lib/unicase/tocasefold.c: New file.
32461         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
32462         * modules/unicase/tocasefold: New file.
32463
32464         Tests for module 'unicase/u32-totitle'.
32465         * modules/unicase/u32-totitle-tests: New file.
32466         * tests/unicase/test-u32-totitle.c: New file.
32467
32468         Tests for module 'unicase/u16-totitle'.
32469         * modules/unicase/u16-totitle-tests: New file.
32470         * tests/unicase/test-u16-totitle.c: New file.
32471
32472         Tests for module 'unicase/u8-totitle'.
32473         * modules/unicase/u8-totitle-tests: New file.
32474         * tests/unicase/test-u8-totitle.c: New file.
32475
32476         New module 'unicase/u32-totitle'.
32477         * lib/unicase/u32-totitle.c: New file.
32478         * modules/unicase/u32-totitle: New file.
32479
32480         New module 'unicase/u16-totitle'.
32481         * lib/unicase/u16-totitle.c: New file.
32482         * modules/unicase/u16-totitle: New file.
32483
32484         New module 'unicase/u8-totitle'.
32485         * lib/unicase/u8-totitle.c: New file.
32486         * lib/unicase/u-totitle.h: New file.
32487         * modules/unicase/u8-totitle: New file.
32488
32489         Tests for module 'unicase/u32-tolower'.
32490         * modules/unicase/u32-tolower-tests: New file.
32491         * tests/unicase/test-u32-tolower.c: New file.
32492
32493         Tests for module 'unicase/u16-tolower'.
32494         * modules/unicase/u16-tolower-tests: New file.
32495         * tests/unicase/test-u16-tolower.c: New file.
32496
32497         Tests for module 'unicase/u8-tolower'.
32498         * modules/unicase/u8-tolower-tests: New file.
32499         * tests/unicase/test-u8-tolower.c: New file.
32500
32501         New module 'unicase/u32-tolower'.
32502         * lib/unicase/u32-tolower.c: New file.
32503         * modules/unicase/u32-tolower: New file.
32504
32505         New module 'unicase/u16-tolower'.
32506         * lib/unicase/u16-tolower.c: New file.
32507         * modules/unicase/u16-tolower: New file.
32508
32509         New module 'unicase/u8-tolower'.
32510         * lib/unicase/u8-tolower.c: New file.
32511         * modules/unicase/u8-tolower: New file.
32512
32513         Tests for module 'unicase/u32-toupper'.
32514         * modules/unicase/u32-toupper-tests: New file.
32515         * tests/unicase/test-u32-toupper.c: New file.
32516
32517         Tests for module 'unicase/u16-toupper'.
32518         * modules/unicase/u16-toupper-tests: New file.
32519         * tests/unicase/test-u16-toupper.c: New file.
32520
32521         Tests for module 'unicase/u8-toupper'.
32522         * modules/unicase/u8-toupper-tests: New file.
32523         * tests/unicase/test-u8-toupper.c: New file.
32524
32525         New module 'unicase/u32-toupper'.
32526         * lib/unicase/u32-toupper.c: New file.
32527         * modules/unicase/u32-toupper: New file.
32528
32529         New module 'unicase/u16-toupper'.
32530         * lib/unicase/u16-toupper.c: New file.
32531         * modules/unicase/u16-toupper: New file.
32532
32533         New module 'unicase/u8-toupper'.
32534         * lib/unicase/u8-toupper.c: New file.
32535         * modules/unicase/u8-toupper: New file.
32536
32537         New module 'unicase/u32-casemap'.
32538         * lib/unicase/u32-casemap.c: New file.
32539         * modules/unicase/u32-casemap: New file.
32540
32541         New module 'unicase/u16-casemap'.
32542         * lib/unicase/u16-casemap.c: New file.
32543         * modules/unicase/u16-casemap: New file.
32544
32545         New module 'unicase/u8-casemap'.
32546         * lib/unicase/unicasemap.h: New file.
32547         * lib/unicase/u8-casemap.c: New file.
32548         * lib/unicase/u-casemap.h: New file.
32549         * modules/unicase/u8-casemap: New file.
32550
32551         New module 'unicase/special-casing'.
32552         * lib/unicase/special-casing.h: New file.
32553         * lib/unicase/special-casing.c: New file.
32554         * lib/unicase/special-casing-table.gperf: New file, generated by
32555         gen-uni-tables.c.
32556         * modules/unicase/special-casing: New file.
32557
32558         Tests for module 'unicase/locale-language'.
32559         * modules/unicase/locale-language-tests: New file.
32560         * tests/unicase/test-locale-language.sh: New file.
32561         * tests/unicase/test-locale-language.c: New file.
32562
32563         New module 'unicase/locale-language'.
32564         * lib/unicase/locale-language.c: New file.
32565         * lib/unicase/locale-languages.gperf: New file.
32566         * modules/unicase/locale-language: New file.
32567
32568         Generate more tables for case conversion and case folding.
32569         * lib/gen-uni-tables.c (SCC_*): New enum items.
32570         (struct special_casing_rule): New type.
32571         (casing_rules, num_casing_rules, allocated_casing_rules): New
32572         variables.
32573         (add_casing_rule, fill_casing_rules): New functions.
32574         (struct casefold_rule): New type.
32575         (casefolding_rules, num_casefolding_rules,
32576         allocated_casefolding_rules): New variables.
32577         (fill_casefolding_rules): New function.
32578         (unicode_casefold): New variable.
32579         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
32580         sort_casing_rules, output_casing_rules): New functions.
32581         (main): Accept to more arguments: SpecialCasing.txt and
32582         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
32583         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
32584         Output mapping for casefolding.
32585
32586         * lib/unicase.h: Include stdbool.h, uninorm.h.
32587         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
32588         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
32589         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
32590         arguments.
32591         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
32592         resultp arguments.
32593         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
32594         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
32595         resultp arguments.
32596         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
32597         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
32598         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
32599         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
32600         declarations.
32601         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
32602
32603 2009-03-08  Bruno Haible  <bruno@clisp.org>
32604
32605         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
32606         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
32607         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
32608         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
32609
32610 2009-03-07  Bruno Haible  <bruno@clisp.org>
32611
32612         Adjust u*_normcmp, u*_normcoll API.
32613         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
32614         u16_normcoll, u32_normcoll): Change failure conventions.
32615         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
32616         errno and return -1.
32617         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
32618
32619 2009-03-07  Bruno Haible  <bruno@clisp.org>
32620
32621         Tests for module 'uninorm/u32-normcoll'.
32622         * modules/uninorm/u32-normcoll-tests: New file.
32623         * tests/uninorm/test-u32-normcoll.c: New file.
32624
32625         Tests for module 'uninorm/u16-normcoll'.
32626         * modules/uninorm/u16-normcoll-tests: New file.
32627         * tests/uninorm/test-u16-normcoll.c: New file.
32628
32629         Tests for module 'uninorm/u8-normcoll'.
32630         * modules/uninorm/u8-normcoll-tests: New file.
32631         * tests/uninorm/test-u8-normcoll.c: New file.
32632
32633 2009-03-07  Bruno Haible  <bruno@clisp.org>
32634
32635         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
32636         tests/uninorm/test-u32-normcmp.c.
32637         * tests/uninorm/test-u32-normcmp.c: Include it.
32638         (test_nonascii): New function, extracted from main. Add some more
32639         tests.
32640         (main): Invoke test_ascii and test_nonascii.
32641         * modules/uninorm/u32-normcmp-tests (Files): Add
32642         tests/uninorm/test-u32-normcmp.h.
32643         (Depends-on): Remove uninorm/u32-normcmp.
32644
32645         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
32646         tests/uninorm/test-u16-normcmp.c.
32647         * tests/uninorm/test-u16-normcmp.c: Include it.
32648         (test_nonascii): New function, extracted from main. Add some more
32649         tests.
32650         (main): Invoke test_ascii and test_nonascii.
32651         * modules/uninorm/u16-normcmp-tests (Files): Add
32652         tests/uninorm/test-u16-normcmp.h.
32653         (Depends-on): Remove uninorm/u16-normcmp.
32654
32655         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
32656         tests/uninorm/test-u8-normcmp.c.
32657         * tests/uninorm/test-u8-normcmp.c: Include it.
32658         (test_nonascii): New function, extracted from main. Add some more
32659         tests.
32660         (main): Invoke test_ascii and test_nonascii.
32661         * modules/uninorm/u8-normcmp-tests (Files): Add
32662         tests/uninorm/test-u8-normcmp.h.
32663         (Depends-on): Remove uninorm/u8-normcmp.
32664
32665 2009-03-07  Bruno Haible  <bruno@clisp.org>
32666
32667         New module 'uninorm/u32-normcoll'.
32668         * lib/uninorm/u32-normcoll.c: New file.
32669         * modules/uninorm/u32-normcoll: New file.
32670
32671         New module 'uninorm/u16-normcoll'.
32672         * lib/uninorm/u16-normcoll.c: New file.
32673         * modules/uninorm/u16-normcoll: New file.
32674
32675         New module 'uninorm/u8-normcoll'.
32676         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
32677         declarations.
32678         * lib/uninorm/u8-normcoll.c: New file.
32679         * lib/uninorm/u-normcoll.h: New file.
32680         * modules/uninorm/u8-normcoll: New file.
32681
32682         New module 'uninorm/u32-normxfrm'.
32683         * lib/uninorm/u32-normxfrm.c: New file.
32684         * modules/uninorm/u32-normxfrm: New file.
32685
32686         New module 'uninorm/u16-normxfrm'.
32687         * lib/uninorm/u16-normxfrm.c: New file.
32688         * modules/uninorm/u16-normxfrm: New file.
32689
32690         New module 'uninorm/u8-normxfrm'.
32691         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
32692         declarations.
32693         * lib/uninorm/u8-normxfrm.c: New file.
32694         * lib/uninorm/u-normxfrm.h: New file.
32695         * modules/uninorm/u8-normxfrm: New file.
32696
32697 2009-03-07  Bruno Haible  <bruno@clisp.org>
32698
32699         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
32700         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
32701         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
32702
32703 2009-03-07  Bruno Haible  <bruno@clisp.org>
32704
32705         New module 'memxfrm'.
32706         * lib/memxfrm.h: New file.
32707         * lib/memxfrm.c: New file.
32708         * modules/memxfrm: New file.
32709
32710 2009-03-07  Bruno Haible  <bruno@clisp.org>
32711
32712         New module 'memcmp2'.
32713         * lib/memcmp2.h: New file.
32714         * lib/memcmp2.c: New file.
32715         * modules/memcmp2: New file.
32716
32717 2009-03-07  Bruno Haible  <bruno@clisp.org>
32718
32719         Tests for module 'uninorm/decomposing-form'.
32720         * modules/uninorm/decomposing-form-tests: New file.
32721         * tests/uninorm/test-decomposing-form.c: New file.
32722
32723         New module 'uninorm/decomposing-form'.
32724         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
32725         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
32726         Add 'decomposing_variant' field.
32727         * lib/uninorm/decomposing-form.c: New file.
32728         * lib/uninorm/nfc.c (uninorm_nfc): Update.
32729         * lib/uninorm/nfd.c (uninorm_nfd): Update.
32730         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
32731         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
32732         * modules/uninorm/decomposing-form: New file.
32733         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
32734         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
32735
32736 2009-03-07  Bruno Haible  <bruno@clisp.org>
32737
32738         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
32739         strings.
32740
32741 2009-03-06  Bruno Haible  <bruno@clisp.org>
32742
32743         Tests for module 'uninorm/u32-normcmp'.
32744         * tests/uninorm/test-u32-normcmp.c: New file.
32745         * modules/uninorm/u32-normcmp-tests: New file.
32746
32747         Tests for module 'uninorm/u16-normcmp'.
32748         * tests/uninorm/test-u16-normcmp.c: New file.
32749         * modules/uninorm/u16-normcmp-tests: New file.
32750
32751         Tests for module 'uninorm/u8-normcmp'.
32752         * tests/uninorm/test-u8-normcmp.c: New file.
32753         * modules/uninorm/u8-normcmp-tests: New file.
32754
32755         New module 'uninorm/u32-normcmp'.
32756         * lib/uninorm/u32-normcmp.c: New file.
32757         * modules/uninorm/u32-normcmp: New file.
32758
32759         New module 'uninorm/u16-normcmp'.
32760         * lib/uninorm/u16-normcmp.c: New file.
32761         * modules/uninorm/u16-normcmp: New file.
32762
32763         New module 'uninorm/u8-normcmp'.
32764         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
32765         declarations.
32766         * lib/uninorm/u8-normcmp.c: New file.
32767         * lib/uninorm/u-normcmp.h: New file.
32768         * modules/uninorm/u8-normcmp: New file.
32769
32770 2009-03-06  Bruno Haible  <bruno@clisp.org>
32771
32772         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
32773         Reported by Eric Blake.
32774
32775 2009-03-06  Eric Blake  <ebb9@byu.net>
32776             Bruno Haible  <bruno@clisp.org>
32777
32778         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
32779         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
32780         condition.
32781         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
32782         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
32783         condition.
32784         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
32785
32786 2009-03-06  Eric Blake  <ebb9@byu.net>
32787
32788         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
32789         to avoid compiler warnings.
32790         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
32791
32792 2009-03-05  Bruno Haible  <bruno@clisp.org>
32793
32794         * tests/test-ftell.c (main): Disable test beyond end of file on
32795         FreeMiNT.
32796         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
32797
32798 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
32799
32800         * lib/filevercmp.c: Move hidden files up in ordering.
32801         * tests/test-filevercmp.c: Add tests for hidden files.
32802
32803 2009-03-04  Bruno Haible  <bruno@clisp.org>
32804
32805         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
32806         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
32807         AM_CFLAGS.
32808         Reported by Simon Josefsson.
32809
32810 2009-03-03  Bruno Haible  <bruno@clisp.org>
32811
32812         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
32813         Reported by Simon Josefsson.
32814
32815         * doc/ld-version-script.texi: Update node reference.
32816
32817 2009-03-03  Bruno Haible  <bruno@clisp.org>
32818
32819         * modules/visibility (License): Change to 'unlimited'.
32820         Suggested by Simon Josefsson.
32821
32822 2009-03-03  Jim Meyering  <meyering@redhat.com>
32823
32824         unlinkdir: cannot_unlink_dir may modify process state
32825         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
32826         it's neither thread-safe nor appropriate for use in a library.
32827
32828 2009-03-03  Eric Blake  <ebb9@byu.net>
32829
32830         test-closein: silence test under Darwin
32831         * tests/test-closein.sh: Ignore stderr from cat, since we don't
32832         care if it dies from EPIPE or EBADF.
32833
32834 2009-03-03  Bruno Haible  <bruno@clisp.org>
32835
32836         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
32837         earlier.
32838         * doc/visibility.texi: Fix @node and @section.
32839
32840 2009-03-03  Simon Josefsson  <simon@josefsson.org>
32841
32842         * doc/gnulib.texi: Link to sections for ld version script and
32843         visibility.
32844         * doc/visibility.texi: Add @node and @section.
32845         * modules/ld-version-script: New module.
32846         * m4/ld-version-script.m4: New file.
32847         * doc/ld-version-script.texi: New file.
32848
32849 2009-03-02  David Lutterkort  <lutter@redhat.com>
32850
32851         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
32852         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32853
32854 2009-03-02  Bruno Haible  <bruno@clisp.org>
32855
32856         * doc/visibility.texi: Mention libtool's -export-symbols option.
32857
32858 2009-03-02  Jim Meyering  <meyering@redhat.com>
32859
32860         announce-gen: new option: --no-print-checksums
32861         * build-aux/announce-gen (usage): Describe it.
32862         (print_checksums): Print a newline here, not in the [*] footnote.
32863         (main): Honor it.
32864
32865 2009-03-01  Bruno Haible  <bruno@clisp.org>
32866
32867         Use socklen_t in the native Windows replacements prototypes.
32868         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
32869         instead of 'int'.
32870         * lib/getsockopt.c (rpl_getsockopt): Likewise.
32871         * lib/setsockopt.c (rpl_setsockopt): Likewise.
32872         * modules/getsockopt (Depends-on): Add socklen.
32873         * modules/setsockopt (Depends-on): Add socklen.
32874
32875 2009-03-01  Bruno Haible  <bruno@clisp.org>
32876
32877         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
32878         least 4.2.
32879
32880 2009-03-01  Eric Blake  <ebb9@byu.net>
32881             Bruno Haible  <bruno@clisp.org>
32882
32883         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
32884         error messages.
32885         * lib/wait-process.c (wait_subprocess): Omit error message about
32886         deadly signal sent to the child of termsigp != NULL.
32887
32888 2009-03-01  Eric Blake  <ebb9@byu.net>
32889
32890         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
32891
32892 2009-03-01  Bruno Haible  <bruno@clisp.org>
32893
32894         Avoid a gcc warning.
32895         * tests/test-sched.c (b): Make global.
32896         Reported by Eric Blake.
32897
32898 2009-01-19  Martin Lambers  <marlam@marlam.de>
32899
32900         Provide POSIX semantics for socket timeout options on W32.
32901         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
32902         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
32903         * modules/setsockopt: Depend on sys_time module for struct timeval.
32904         * modules/getsockopt: Depend on sys_time module for struct timeval.
32905
32906 2009-03-01  Simon Josefsson  <simon@josefsson.org>
32907
32908         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
32909         __USE_GNU, for consistency with netdb.in.h.
32910         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32911
32912 2009-03-01  Bruno Haible  <bruno@clisp.org>
32913
32914         More support for FreeMiNT.
32915         * lib/fseeko.c (rpl_fseeko): Complete last commit.
32916         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32917
32918 2009-03-01  Bruno Haible  <bruno@clisp.org>
32919
32920         More support for FreeMiNT.
32921         * lib/fpurge.c (fpurge): Correct last commit.
32922         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32923
32924 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32925
32926         Fix unportable awk script in vc-list-files.
32927         * build-aux/vc-list-files: In the replacement awk script, use
32928         substr with a second argument of 1, not zero.
32929         Report by Simon Josefsson.
32930
32931 2009-02-28  Bruno Haible  <bruno@clisp.org>
32932
32933         More support for FreeMiNT.
32934         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
32935         to FreeMiNT today.
32936         * lib/fwriting.c (fwriting): Likewise.
32937         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
32938
32939 2009-02-28  Bruno Haible  <bruno@clisp.org>
32940
32941         * tests/test-freadseek.c (main): Disable test beyond end of file on
32942         FreeMiNT.
32943         * tests/test-ftello.c (main): Likewise.
32944         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
32945
32946 2009-02-28  Bruno Haible  <bruno@clisp.org>
32947
32948         Add tentative support for FreeMiNT.
32949         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
32950         * lib/fpurge.c (fpurge): Likewise.
32951         * lib/freadable.c (freadable): Likewise.
32952         * lib/freading.c (freading): Likewise.
32953         * lib/freadptr.c (freadptr): Likewise.
32954         * lib/freadseek.c (freadptrinc): Likewise.
32955         * lib/fseeko.c (rpl_fseeko): Likewise.
32956         * lib/fseterr.c (fseterr): Likewise.
32957         * lib/fwritable.c (fwritable): Likewise.
32958         * lib/fwriting.c (fwriting): Likewise.
32959         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
32960         Hourihane.
32961         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32962
32963 2009-02-28  Bruno Haible  <bruno@clisp.org>
32964
32965         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
32966         SIGCHLD.
32967         Reported by Jim Meyering.
32968
32969 2009-02-28  Bruno Haible  <bruno@clisp.org>
32970
32971         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
32972         Mention the results of these tests on various platforms.
32973         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
32974         order.
32975         * doc/posix-functions/printf.texi: Likewise.
32976         * doc/posix-functions/snprintf.texi: Likewise.
32977         * doc/posix-functions/sprintf.texi: Likewise.
32978         * doc/posix-functions/vfprintf.texi: Likewise.
32979         * doc/posix-functions/vprintf.texi: Likewise.
32980         * doc/posix-functions/vsnprintf.texi: Likewise.
32981         * doc/posix-functions/vsprintf.texi: Likewise.
32982         * doc/glibc-functions/obstack_printf.texi: Likewise.
32983         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
32984
32985 2009-02-28  Bruno Haible  <bruno@clisp.org>
32986
32987         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
32988         Reported by Loïc Minier <lool@dooz.org>.
32989
32990 2009-02-27  Bruno Haible  <bruno@clisp.org>
32991
32992         * gnulib-tool (func_import): Make the sed expression used to create the
32993         sed script for updating the .gitignore file POSIX compliant.
32994         Reported by Eric Blake.
32995
32996 2009-02-27  Bruno Haible  <bruno@clisp.org>
32997
32998         * gnulib-tool (sed): Don't alias as "sed --posix".
32999         Reported by Eric Blake.
33000
33001 2009-02-27  Bruno Haible  <bruno@clisp.org>
33002
33003         Avoid test link errors.
33004         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
33005         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
33006         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
33007         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
33008         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33009
33010 2009-02-27  Bruno Haible  <bruno@clisp.org>
33011
33012         Avoid spurious "(cached)" in configure output.
33013         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
33014         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
33015         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
33016         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
33017         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
33018         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
33019         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
33020         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
33021         Reported by Eric Blake.
33022
33023 2009-02-27  Eric Blake  <ebb9@byu.net>
33024
33025         printf: fix regression in previous patch
33026         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
33027
33028 2009-02-27  Bruno Haible  <bruno@clisp.org>
33029
33030         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
33031         value.
33032         * lib/stdint.in.h: Likewise.
33033         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
33034
33035 2009-02-27  Eric Blake  <ebb9@byu.net>
33036
33037         doc: mention more functions added in cygwin 1.7.0
33038         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
33039         addition.
33040         * doc/posix-functions/open_wmemstream.texi: Likewise.
33041         * doc/posix-functions/wcsnlen.texi: Likewise.
33042         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33043         * doc/posix-functions/wcstod.texi: Likewise.
33044         * doc/posix-functions/wcstof.texi: Likewise.
33045         * doc/posix-functions/wcstoimax.texi: Likewise.
33046         * doc/posix-functions/wcstok.texi: Likewise.
33047         * doc/posix-functions/wcstoumax.texi: Likewise.
33048
33049         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
33050         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
33051         * doc/posix-functions/fprintf.texi: Update.
33052         * doc/posix-functions/printf.texi: Update.
33053         * doc/posix-functions/snprintf.texi: Update.
33054         * doc/posix-functions/sprintf.texi: Update.
33055         * doc/posix-functions/vfprintf.texi: Update.
33056         * doc/posix-functions/vprintf.texi: Update.
33057         * doc/posix-functions/vsnprintf.texi: Update.
33058         * doc/posix-functions/vsprintf.texi: Update.
33059         * doc/glibc-functions/obstack_printf.texi: Update.
33060         * doc/glibc-functions/obstack_vprintf.texi: Update.
33061
33062 2009-02-26  Eric Blake  <ebb9@byu.net>
33063
33064         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
33065         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
33066         compilation bug by using runtime conversion.
33067         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33068         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
33069         * modules/ceill-tests (Files): Use nan.h.
33070         * modules/floorl-tests (Files): Likewise.
33071         * modules/frexpl-tests (Files): Likewise.
33072         * modules/isnanl-tests (Files): Likewise.
33073         * modules/ldexpl-tests (Files): Likewise.
33074         * modules/roundl-tests (Files): Likewise.
33075         * modules/truncl-tests (Files): Likewise.
33076         * tests/test-ceill.c (main): Use a working NaN.
33077         * tests/test-floorl.c (main): Likewise.
33078         * tests/test-frexpl.c (main): Likewise.
33079         * tests/test-isnan.c (test_long_double): Likewise.
33080         * tests/test-isnanl.h (main): Likewise.
33081         * tests/test-ldexpl.h (main): Likewise.
33082         * tests/test-roundl.h (main): Likewise.
33083         * tests/test-truncl.h (main): Likewise.
33084         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
33085
33086 2009-02-26  Eric Blake  <ebb9@byu.net>
33087             Bruno Haible  <bruno@clisp.org>
33088
33089         Work around a *printf bug with %ls on Solaris.
33090         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
33091         precision is specified, sprintf stops converting the wide string
33092         argument when the number of bytes that have been produced by this
33093         conversion equals or exceeds the precision.
33094         * doc/posix-functions/fprintf.texi: Update.
33095         * doc/posix-functions/printf.texi: Update.
33096         * doc/posix-functions/snprintf.texi: Update.
33097         * doc/posix-functions/sprintf.texi: Update.
33098         * doc/posix-functions/vfprintf.texi: Update.
33099         * doc/posix-functions/vprintf.texi: Update.
33100         * doc/posix-functions/vsnprintf.texi: Update.
33101         * doc/posix-functions/vsprintf.texi: Update.
33102         * doc/glibc-functions/obstack_printf.texi: Update.
33103         * doc/glibc-functions/obstack_vprintf.texi: Update.
33104
33105 2009-02-26  Eric Blake  <ebb9@byu.net>
33106
33107         stdlib: favor compiler check of random.h
33108         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
33109         to avoid an ObjC random.h installed by Swarm.
33110
33111 2009-02-26  Bruno Haible  <bruno@clisp.org>
33112
33113         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
33114         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
33115         Reported by Gary V. Vaughan <gary@gnu.org>.
33116
33117 2009-02-26  Bruno Haible  <bruno@clisp.org>
33118
33119         Fix *printf behaviour regarding the %ls directive.
33120         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
33121         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
33122         NEED_PRINTF_DIRECTIVE_LS.
33123         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
33124         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33125         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33126         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
33127         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
33128         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
33129         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33130         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33131         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33132         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33133         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33134         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
33135         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33136         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33137         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33138         * doc/posix-functions/fprintf.texi: Update.
33139         * doc/posix-functions/printf.texi: Update.
33140         * doc/posix-functions/snprintf.texi: Update.
33141         * doc/posix-functions/sprintf.texi: Update.
33142         * doc/posix-functions/vfprintf.texi: Update.
33143         * doc/posix-functions/vprintf.texi: Update.
33144         * doc/posix-functions/vsnprintf.texi: Update.
33145         * doc/posix-functions/vsprintf.texi: Update.
33146         * doc/glibc-functions/obstack_printf.texi: Update.
33147         * doc/glibc-functions/obstack_vprintf.texi: Update.
33148         Reported by Eric Blake.
33149
33150 2009-02-25  Bruno Haible  <bruno@clisp.org>
33151
33152         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
33153         with known value.
33154         Reported by Gary V. Vaughan <gary@gnu.org>.
33155
33156 2009-02-25  Bruno Haible  <bruno@clisp.org>
33157
33158         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
33159         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
33160         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
33161         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
33162         Reported by Gary V. Vaughan <gary@gnu.org>.
33163
33164 2009-02-25  Bruno Haible  <bruno@clisp.org>
33165
33166         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
33167         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
33168         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
33169         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
33170         Reported by Gary V. Vaughan <gary@gnu.org>.
33171
33172 2009-02-25  Eric Blake  <ebb9@byu.net>
33173
33174         tests: skip fseek/ftell tests if ungetc is broken
33175         * m4/ungetc.m4: New file.
33176         * modules/fseek-tests: Split test, so ungetc dependency is
33177         separate from rest of test.
33178         * modules/fseeko-tests: Likewise.
33179         * modules/ftell-tests: Likewise.
33180         * modules/ftello-tests: Likewise.
33181         * tests/test-fseek.c (main): Isolate ungetc dependency.
33182         * tests/test-fseeko.c (main): Likewise.
33183         * tests/test-ftell.c (main): Likewise.
33184         * tests/test-ftello.c (main): Likewise.
33185         * tests/test-fseek2.sh: New file.
33186         * tests/test-fseeko2.sh: Likewise.
33187         * tests/test-ftell2.sh: Likewise.
33188         * tests/test-ftello2.sh: Likewise.
33189
33190 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
33191
33192         test-getaddrinfo: fix usage of skip return code 77
33193         * tests/test-gettaddrinfo.c: Return skip code 77 only
33194         for first occurance of skip (4x77 is not 77)
33195
33196 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
33197
33198         strtod: avoid C99 decl-after-statement
33199         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
33200
33201 2009-02-24  Eric Blake  <ebb9@byu.net>
33202
33203         strtod: detect HP-UX 11.31 bug
33204         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
33205         Reported by Gary V. Vaughan.
33206
33207 2009-02-23  Bruno Haible  <bruno@clisp.org>
33208
33209         Fix invalid read past end of memory block.
33210         * lib/vasnprintf.c (DCHAR_SET): Define.
33211         (local_wcslen): Define only when needed.
33212         (local_strnlen, local_wcsnlen): New functions.
33213         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
33214         directives that involve a conversion ourselves.
33215         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
33216         wcsnlen, mbrtowc, wcrtomb.
33217         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
33218         * tests/test-vasprintf-posix.c (test_function): Likewise.
33219         * tests/test-snprintf-posix.h (test_function): Likewise.
33220         * tests/test-sprintf-posix.h (test_function): Likewise.
33221         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33222
33223 2009-02-22  Bruno Haible  <bruno@clisp.org>
33224
33225         Implement new clarified decomposition of Hangul syllables.
33226         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
33227         of type LTV, return only a pairwise decomposition.
33228         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
33229         Likewise.
33230         * tests/uninorm/test-decomposition.c (main): Updated expected result.
33231         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
33232         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
33233
33234 2009-02-22  Bruno Haible  <bruno@clisp.org>
33235
33236         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
33237         zero-length results and shrink excess allocated memory.
33238         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
33239         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
33240         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
33241         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
33242         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
33243         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
33244         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
33245         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
33246         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
33247         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
33248         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
33249         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
33250
33251 2009-02-21  Bruno Haible  <bruno@clisp.org>
33252
33253         * doc/gnulib.texi: Include safe-alloc.texi earlier.
33254         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
33255         spaces after a period. Put a space between a macro name and its
33256         argument list. Trivial rewordings.
33257         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
33258         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
33259         (main): Return 0 explicitly.
33260
33261 2009-02-21  Bruno Haible  <bruno@clisp.org>
33262
33263         Tests for module 'uninorm/filter'.
33264         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
33265         * modules/uninorm/filter-tests: New file.
33266
33267         New module 'uninorm/filter'.
33268         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
33269         uninorm_filter_flush, uninorm_filter_free): New declarations.
33270         * lib/uninorm/uninorm-filter.c: New file.
33271         * modules/uninorm/filter: New file.
33272
33273 2009-02-21  Bruno Haible  <bruno@clisp.org>
33274
33275         Tests for module 'uninorm/nfkc'.
33276         * tests/uninorm/test-nfkc.c: New file.
33277         * tests/uninorm/test-u8-nfkc.c: New file.
33278         * tests/uninorm/test-u16-nfkc.c: New file.
33279         * tests/uninorm/test-u32-nfkc.c: New file.
33280         * tests/uninorm/test-u32-nfkc-big.sh: New file.
33281         * tests/uninorm/test-u32-nfkc-big.c: New file.
33282         * modules/uninorm/nfkc-tests: New file.
33283
33284         New module 'uninorm/nfkc'.
33285         * lib/uninorm/nfkc.c: New file.
33286         * modules/uninorm/nfkc: New file.
33287
33288         Tests for module 'uninorm/nfkd'.
33289         * tests/uninorm/test-nfkd.c: New file.
33290         * tests/uninorm/test-u8-nfkd.c: New file.
33291         * tests/uninorm/test-u16-nfkd.c: New file.
33292         * tests/uninorm/test-u32-nfkd.c: New file.
33293         * tests/uninorm/test-u32-nfkd-big.sh: New file.
33294         * tests/uninorm/test-u32-nfkd-big.c: New file.
33295         * modules/uninorm/nfkd-tests: New file.
33296
33297         New module 'uninorm/nfkd'.
33298         * lib/uninorm/nfkd.c: New file.
33299         * modules/uninorm/nfkd: New file.
33300
33301         Tests for module 'uninorm/nfc'.
33302         * tests/uninorm/test-nfc.c: New file.
33303         * tests/uninorm/test-u8-nfc.c: New file.
33304         * tests/uninorm/test-u16-nfc.c: New file.
33305         * tests/uninorm/test-u32-nfc.c: New file.
33306         * tests/uninorm/test-u32-nfc-big.sh: New file.
33307         * tests/uninorm/test-u32-nfc-big.c: New file.
33308         * modules/uninorm/nfc-tests: New file.
33309
33310         New module 'uninorm/nfc'.
33311         * lib/uninorm/nfc.c: New file.
33312         * modules/uninorm/nfc: New file.
33313
33314         Tests for module 'uninorm/nfd'.
33315         * tests/uninorm/test-nfd.c: New file.
33316         * tests/uninorm/test-u8-nfd.c: New file.
33317         * tests/uninorm/test-u16-nfd.c: New file.
33318         * tests/uninorm/test-u32-nfd.c: New file.
33319         * tests/uninorm/test-u32-nfd-big.sh: New file.
33320         * tests/uninorm/test-u32-nfd-big.c: New file.
33321         * tests/uninorm/test-u32-normalize-big.h: New file.
33322         * tests/uninorm/test-u32-normalize-big.c: New file.
33323         * tests/uninorm/NormalizationTest.txt: New file, created from
33324         Unicode 5.1.0 NormalizationTest.txt.
33325         * modules/uninorm/nfd-tests: New file.
33326
33327         New module 'uninorm/nfd'.
33328         * lib/uninorm/nfd.c: New file.
33329         * modules/uninorm/nfd: New file.
33330
33331         New module 'uninorm/u32-normalize'.
33332         * lib/uninorm/u32-normalize.c: New file.
33333         * modules/uninorm/u32-normalize: New file.
33334
33335         New module 'uninorm/u16-normalize'.
33336         * lib/uninorm/u16-normalize.c: New file.
33337         * modules/uninorm/u16-normalize: New file.
33338
33339         New module 'uninorm/u8-normalize'.
33340         * lib/uninorm/u8-normalize.c: New file.
33341         * lib/uninorm/normalize-internal.h: New file.
33342         * lib/uninorm/u-normalize-internal.h: New file.
33343         * modules/uninorm/u8-normalize: New file.
33344
33345         New module 'uninorm/decompose-internal'.
33346         * lib/uninorm/decompose-internal.c: New file.
33347         * modules/uninorm/decompose-internal: New file.
33348
33349         Tests for module 'uninorm/composition'.
33350         * tests/uninorm/test-composition.c: New file.
33351         * modules/uninorm/composition-tests: New file.
33352
33353         New module 'uninorm/composition'.
33354         * lib/uninorm/composition.c: New file.
33355         * lib/uninorm/composition-table.gperf: New file, generated by
33356         gen-uni-tables.
33357         * modules/uninorm/composition: New file.
33358
33359         Tests for module 'uninorm/compat-decomposition'.
33360         * tests/uninorm/test-compat-decomposition.c: New file.
33361         * modules/uninorm/compat-decomposition-tests: New file.
33362
33363         New module 'uninorm/compat-decomposition'.
33364         * lib/uninorm/decompose-internal.h: New file.
33365         * lib/uninorm/compat-decomposition.c: New file.
33366         * modules/uninorm/compat-decomposition: New file.
33367
33368         Tests for module 'uninorm/canonical-decomposition'.
33369         * tests/uninorm/test-canonical-decomposition.c: New file.
33370         * modules/uninorm/canonical-decomposition-tests: New file.
33371
33372         New module 'uninorm/canonical-decomposition'.
33373         * lib/uninorm/canonical-decomposition.c: New file.
33374         * modules/uninorm/canonical-decomposition: New file.
33375
33376         Tests for module 'uninorm/decomposition'.
33377         * tests/uninorm/test-decomposition.c: New file.
33378         * modules/uninorm/decomposition-tests: New file.
33379
33380         New module 'uninorm/decomposition'.
33381         * lib/uninorm/decomposition.c: New file.
33382         * modules/uninorm/decomposition: New file.
33383
33384         New module 'uninorm/decomposition-table'.
33385         * lib/uninorm/decomposition-table.h: New file.
33386         * lib/uninorm/decomposition-table.c: New file.
33387         * lib/uninorm/decomposition-table1.h: New file, generated by
33388         gen-uni-tables.
33389         * lib/uninorm/decomposition-table2.h: New file, generated by
33390         gen-uni-tables.
33391         * modules/uninorm/decomposition-table: New file.
33392
33393         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
33394         (UC_DECOMP_*): New enumeration items.
33395         (get_decomposition): New function.
33396         (struct decomp_table): New type.
33397         (output_decomposition, output_decomposition_tables): New functions.
33398         (unicode_composition_exclusions): New variable.
33399         (fill_composition_exclusions, debug_output_composition_tables): New
33400         functions.
33401         (main): Accept one more argument. Invoke fill_composition_exclusions.
33402         Output decomposition and composition tables.
33403
33404         New module 'uninorm/base'.
33405         * lib/uninorm.h: New file.
33406         * lib/unictype.h: Update comment.
33407         * modules/uninorm/base: New file.
33408
33409 2009-02-21  David Lutterkort  <lutter@redhat.com>
33410
33411         Tests for module 'safe-alloc'.
33412         * tests/test-safe-alloc.c: New file.
33413         * modules/safe-alloc-tests: New file.
33414
33415         New module 'safe-alloc'.
33416         * lib/safe-alloc.h: New file.
33417         * lib/safe-alloc.c: New file.
33418         * m4/safe-alloc.m4: New file.
33419         * modules/safe-alloc: New file.
33420         * doc/safe-alloc.texi: New file.
33421         * doc/gnulib.texi: Include it.
33422         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
33423         safe-alloc.
33424
33425 2009-02-18  Bruno Haible  <bruno@clisp.org>
33426
33427         Fix link error on non-glibc systems.
33428         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
33429         variable.
33430         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33431
33432 2009-02-18  Jim Meyering  <meyering@redhat.com>
33433
33434         fts: avoid used-uninitialized error due to recent change
33435         * lib/fts.c (fts_read): Guard uses of the new member,
33436         parent->fts_n_dirs_remaining, since it's not relevant for
33437         the parent of a directory specified on the command-line.
33438
33439 2009-02-17  James Youngman  <jay@gnu.org>
33440             Bruno Haible  <bruno@clisp.org>
33441
33442         * m4/include_next.m4: Reformulate comment.
33443
33444 2009-02-16  Jim Meyering  <meyering@redhat.com>
33445
33446         fts: add #if guards so that the fts_lgpl module still builds
33447         * lib/fts.c: Guard just-added hash-table-using parts with
33448         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
33449         Reported by Simon Josefsson.
33450
33451 2009-02-15  Bruno Haible  <bruno@clisp.org>
33452
33453         * modules/array-mergesort-tests: New file.
33454         * tests/test-array-mergesort.c: New file.
33455
33456         New module 'array-mergesort'.
33457         * modules/array-mergesort: New file.
33458         * lib/array-mergesort.h: New file.
33459
33460 2009-02-15  Bruno Haible  <bruno@clisp.org>
33461
33462         Fix 2009-02-07 commit.
33463         * lib/gen-uni-tables.c (output_predicate, output_category,
33464         output_combclass, output_bidi_category, output_decimal_digit,
33465         output_digit, output_numeric, output_mirror, output_scripts,
33466         output_ident_category, output_simple_mapping): Fix format directives.
33467         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
33468
33469 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
33470
33471         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
33472         fixes are available from IBM.
33473
33474 2009-02-13  Jim Meyering  <meyering@redhat.com>
33475
33476         fts: arrange not to stat non-directories in more cases
33477         This makes GNU find (when it doesn't need to stat each file)
33478         *much* more efficient at traversing reiserfs file systems.
33479         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
33480         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
33481         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
33482         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
33483         (leaf_optimization_applies): New function.
33484         (LCO_hash, LCO_compare): New helper functions.
33485         (link_count_optimize_ok): New function.
33486         (fts_stat): Initialize new member (if dir).
33487         (fts_read): Decrement parent's fts_n_dirs_remaining count if
33488         we've just stat'ed a directory.  Skip the stat call when possible.
33489         ---
33490         Note this AFS-related exchange:
33491         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
33492         and note find's pioctl call in find/fstype.c.
33493         But that is necessary only if you want to enable the
33494         optimization for AFS, and for now, I don't.
33495
33496         fts: move a function definition "up" (no semantic change)
33497         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
33498         "up" to precede upcoming use of a related function.
33499
33500 2009-02-11  Jim Meyering  <meyering@redhat.com>
33501
33502         fts: correct internal computation of nlinks (optimization-related)
33503         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
33504         whether the current entry is a directory, so don't test it.
33505
33506 2009-02-10  Bruno Haible  <bruno@clisp.org>
33507
33508         Tests for module 'uniwbrk/ulc-wordbreaks'.
33509         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
33510         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
33511         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
33512
33513         Tests for module 'uniwbrk/u32-wordbreaks'.
33514         * modules/uniwbrk/u32-wordbreaks-tests: New file.
33515         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
33516
33517         Tests for module 'uniwbrk/u16-wordbreaks'.
33518         * modules/uniwbrk/u16-wordbreaks-tests: New file.
33519         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
33520
33521         Tests for module 'uniwbrk/u8-wordbreaks'.
33522         * modules/uniwbrk/u8-wordbreaks-tests: New file.
33523         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
33524
33525 2009-02-10  Bruno Haible  <bruno@clisp.org>
33526
33527         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
33528         property.
33529         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
33530         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
33531         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
33532
33533 2009-02-10  Simon Josefsson  <simon@josefsson.org>
33534
33535         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
33536         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
33537
33538 2009-02-10  Bruno Haible  <bruno@clisp.org>
33539
33540         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
33541         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
33542         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
33543         * lib/unilbrk/u8-possible-linebreaks.c: Update.
33544         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
33545         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
33546
33547 2009-02-09  Simon Josefsson  <simon@josefsson.org>
33548
33549         * lib/sockets.h (gl_fd_to_handle): New function.
33550
33551         * tests/test-sockets.c: Call gl_fd_to_handle.
33552
33553 2009-02-09  Bruno Haible  <bruno@clisp.org>
33554
33555         * doc/havelib.texi: Document the conventions on bi-arch systems.
33556
33557 2009-02-08  Bruno Haible  <bruno@clisp.org>
33558
33559         Document the AC_LIB_LINKFLAGS macro.
33560         * doc/havelib.texi: New file, mostly written on 2005-05-24.
33561         * doc/gnulib.texi: Include it.
33562
33563 2009-02-08  Bruno Haible  <bruno@clisp.org>
33564
33565         Fix wrong order of sections, compared to TOC.
33566         * doc/gnulib.texi: Include relocatable-maint.texi after the
33567         "Regular expressions" node, not before.
33568
33569 2009-02-08  Bruno Haible  <bruno@clisp.org>
33570
33571         Tests for module 'unicase/totitle'.
33572         * modules/unicase/totitle-tests: New file.
33573
33574         Tests for module 'unicase/tolower'.
33575         * modules/unicase/tolower-tests: New file.
33576
33577         Tests for module 'unicase/toupper'.
33578         * modules/unicase/toupper-tests: New file.
33579         * tests/unicase/test-mapping-part1.h: New file.
33580         * tests/unicase/test-mapping-part2.h: New file.
33581
33582         New module 'unicase/totitle'.
33583         * modules/unicase/totitle: New file.
33584         * lib/unicase/totitle.c: New file.
33585
33586         New module 'unicase/tolower'.
33587         * modules/unicase/tolower: New file.
33588         * lib/unicase/tolower.c: New file.
33589
33590         New module 'unicase/toupper'.
33591         * modules/unicase/toupper: New file.
33592         * lib/unicase/toupper.c: New file.
33593         * lib/unicase/simple-mapping.h: New file.
33594
33595         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
33596         (mapping_table): New structure.
33597         (output_simple_mapping): New function.
33598         (main): Invoke output_simple_mapping_test and output_simple_mapping.
33599         * modules/gen-uni-tables (Description): Update.
33600         * lib/unicase/toupper.h: New file, automatically generated by
33601         gen-uni-tables.
33602         * lib/unicase/tolower.h: New file, automatically generated by
33603         gen-uni-tables.
33604         * lib/unicase/totitle.h: New file, automatically generated by
33605         gen-uni-tables.
33606         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
33607         gen-uni-tables.
33608         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
33609         gen-uni-tables.
33610         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
33611         gen-uni-tables.
33612
33613         New module 'unicase/base'.
33614         * modules/unicase/base: New file.
33615         * lib/unicase.h: New file.
33616
33617 2009-02-08  Bruno Haible  <bruno@clisp.org>
33618
33619         New module 'uniwbrk/ulc-wordbreaks'.
33620         * modules/uniwbrk/ulc-wordbreaks: New file.
33621         * lib/uniwbrk/ulc-wordbreaks.c: New file.
33622
33623         New module 'uniwbrk/u32-wordbreaks'.
33624         * modules/uniwbrk/u32-wordbreaks: New file.
33625         * lib/uniwbrk/u32-wordbreaks.c: New file.
33626
33627         New module 'uniwbrk/u16-wordbreaks'.
33628         * modules/uniwbrk/u16-wordbreaks: New file.
33629         * lib/uniwbrk/u16-wordbreaks.c: New file.
33630
33631         New module 'uniwbrk/u8-wordbreaks'.
33632         * modules/uniwbrk/u8-wordbreaks: New file.
33633         * lib/uniwbrk/u8-wordbreaks.c: New file.
33634         * lib/uniwbrk/u-wordbreaks.h: New file.
33635
33636         New module 'uniwbrk/table'.
33637         * modules/uniwbrk/table: New file.
33638         * lib/uniwbrk/wbrktable.h: New file.
33639         * lib/uniwbrk/wbrktable.c: New file.
33640
33641         New module 'uniwbrk/wordbreak-property'.
33642         * modules/uniwbrk/wordbreak-property: New file.
33643         * lib/uniwbrk/wordbreak-property.c: New file.
33644
33645         * lib/gen-uni-tables.c (WBP_*): New enum items.
33646         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
33647         (unicode_org_wbp): New variable.
33648         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
33649         New functions.
33650         (wbp_table): New structure.
33651         (output_wbp, output_wbrk_tables): New functions.
33652         (main): Accept additional argument. Invoke fill_org_wbp,
33653         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
33654         output_wbrk_tables.
33655         * modules/gen-uni-tables (Description): Update.
33656         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
33657         gen-uni-tables.
33658
33659         New module 'uniwbrk/base'.
33660         * modules/uniwbrk/base: New file.
33661         * lib/uniwbrk.h: New file.
33662
33663 2009-02-08  Bruno Haible  <bruno@clisp.org>
33664
33665         Update to Unicode 5.1.0.
33666         * lib/gen-uni-tables.c (is_property_alphabetic): Include
33667         U+2185..U+2188.
33668         (is_property_default_ignorable_code_point): Don't include characters
33669         of category Cc or Cs and not-a-characters.
33670         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
33671         U+0D79, U+109E, U+109F, U+A60C.
33672         * lib/unictype/bidi_of.h: Regenerated.
33673         * lib/unictype/blocks.h: Regenerated.
33674         * lib/unictype/categ_C.h: Regenerated.
33675         * lib/unictype/categ_Cf.h: Regenerated.
33676         * lib/unictype/categ_Cn.h: Regenerated.
33677         * lib/unictype/categ_L.h: Regenerated.
33678         * lib/unictype/categ_Ll.h: Regenerated.
33679         * lib/unictype/categ_Lm.h: Regenerated.
33680         * lib/unictype/categ_Lo.h: Regenerated.
33681         * lib/unictype/categ_Lu.h: Regenerated.
33682         * lib/unictype/categ_M.h: Regenerated.
33683         * lib/unictype/categ_Mc.h: Regenerated.
33684         * lib/unictype/categ_Me.h: Regenerated.
33685         * lib/unictype/categ_Mn.h: Regenerated.
33686         * lib/unictype/categ_N.h: Regenerated.
33687         * lib/unictype/categ_Nd.h: Regenerated.
33688         * lib/unictype/categ_Nl.h: Regenerated.
33689         * lib/unictype/categ_No.h: Regenerated.
33690         * lib/unictype/categ_P.h: Regenerated.
33691         * lib/unictype/categ_Pd.h: Regenerated.
33692         * lib/unictype/categ_Pe.h: Regenerated.
33693         * lib/unictype/categ_Pf.h: Regenerated.
33694         * lib/unictype/categ_Pi.h: Regenerated.
33695         * lib/unictype/categ_Po.h: Regenerated.
33696         * lib/unictype/categ_Ps.h: Regenerated.
33697         * lib/unictype/categ_S.h: Regenerated.
33698         * lib/unictype/categ_Sk.h: Regenerated.
33699         * lib/unictype/categ_Sm.h: Regenerated.
33700         * lib/unictype/categ_So.h: Regenerated.
33701         * lib/unictype/categ_of.h: Regenerated.
33702         * lib/unictype/combining.h: Regenerated.
33703         * lib/unictype/ctype_alnum.h: Regenerated.
33704         * lib/unictype/ctype_alpha.h: Regenerated.
33705         * lib/unictype/ctype_graph.h: Regenerated.
33706         * lib/unictype/ctype_lower.h: Regenerated.
33707         * lib/unictype/ctype_print.h: Regenerated.
33708         * lib/unictype/ctype_punct.h: Regenerated.
33709         * lib/unictype/ctype_upper.h: Regenerated.
33710         * lib/unictype/decdigit.h: Regenerated.
33711         * lib/unictype/digit.h: Regenerated.
33712         * lib/unictype/mirror.h: Regenerated.
33713         * lib/unictype/numeric.h: Regenerated.
33714         * lib/unictype/pr_alphabetic.h: Regenerated.
33715         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
33716         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
33717         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
33718         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
33719         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
33720         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
33721         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
33722         * lib/unictype/pr_combining.h: Regenerated.
33723         * lib/unictype/pr_dash.h: Regenerated.
33724         * lib/unictype/pr_decimal_digit.h: Regenerated.
33725         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
33726         * lib/unictype/pr_deprecated.h: Regenerated.
33727         * lib/unictype/pr_diacritic.h: Regenerated.
33728         * lib/unictype/pr_extender.h: Regenerated.
33729         * lib/unictype/pr_format_control.h: Regenerated.
33730         * lib/unictype/pr_grapheme_base.h: Regenerated.
33731         * lib/unictype/pr_grapheme_extend.h: Regenerated.
33732         * lib/unictype/pr_grapheme_link.h: Regenerated.
33733         * lib/unictype/pr_id_continue.h: Regenerated.
33734         * lib/unictype/pr_id_start.h: Regenerated.
33735         * lib/unictype/pr_ideographic.h: Regenerated.
33736         * lib/unictype/pr_ignorable_control.h: Regenerated.
33737         * lib/unictype/pr_lowercase.h: Regenerated.
33738         * lib/unictype/pr_math.h: Regenerated.
33739         * lib/unictype/pr_numeric.h: Regenerated.
33740         * lib/unictype/pr_other_alphabetic.h: Regenerated.
33741         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
33742         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
33743         * lib/unictype/pr_other_id_continue.h: Regenerated.
33744         * lib/unictype/pr_other_lowercase.h: Regenerated.
33745         * lib/unictype/pr_other_math.h: Regenerated.
33746         * lib/unictype/pr_punctuation.h: Regenerated.
33747         * lib/unictype/pr_sentence_terminal.h: Regenerated.
33748         * lib/unictype/pr_soft_dotted.h: Regenerated.
33749         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
33750         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
33751         * lib/unictype/pr_unified_ideograph.h: Regenerated.
33752         * lib/unictype/pr_uppercase.h: Regenerated.
33753         * lib/unictype/pr_xid_continue.h: Regenerated.
33754         * lib/unictype/pr_xid_start.h: Regenerated.
33755         * lib/unictype/pr_zero_width.h: Regenerated.
33756         * lib/unictype/scripts.h: Regenerated.
33757         * lib/unictype/scripts_byname.gperf: Regenerated.
33758         * lib/unictype/sy_java_ident.h: Regenerated.
33759         * lib/unilbrk/lbrkprop1.h: Regenerated.
33760         * lib/unilbrk/lbrkprop2.h: Regenerated.
33761         * tests/unictype/test-categ_C.c: Regenerated.
33762         * tests/unictype/test-categ_Cf.c: Regenerated.
33763         * tests/unictype/test-categ_Cn.c: Regenerated.
33764         * tests/unictype/test-categ_L.c: Regenerated.
33765         * tests/unictype/test-categ_Ll.c: Regenerated.
33766         * tests/unictype/test-categ_Lm.c: Regenerated.
33767         * tests/unictype/test-categ_Lo.c: Regenerated.
33768         * tests/unictype/test-categ_Lu.c: Regenerated.
33769         * tests/unictype/test-categ_M.c: Regenerated.
33770         * tests/unictype/test-categ_Mc.c: Regenerated.
33771         * tests/unictype/test-categ_Me.c: Regenerated.
33772         * tests/unictype/test-categ_Mn.c: Regenerated.
33773         * tests/unictype/test-categ_N.c: Regenerated.
33774         * tests/unictype/test-categ_Nd.c: Regenerated.
33775         * tests/unictype/test-categ_Nl.c: Regenerated.
33776         * tests/unictype/test-categ_No.c: Regenerated.
33777         * tests/unictype/test-categ_P.c: Regenerated.
33778         * tests/unictype/test-categ_Pd.c: Regenerated.
33779         * tests/unictype/test-categ_Pe.c: Regenerated.
33780         * tests/unictype/test-categ_Pf.c: Regenerated.
33781         * tests/unictype/test-categ_Pi.c: Regenerated.
33782         * tests/unictype/test-categ_Po.c: Regenerated.
33783         * tests/unictype/test-categ_Ps.c: Regenerated.
33784         * tests/unictype/test-categ_S.c: Regenerated.
33785         * tests/unictype/test-categ_Sk.c: Regenerated.
33786         * tests/unictype/test-categ_Sm.c: Regenerated.
33787         * tests/unictype/test-categ_So.c: Regenerated.
33788         * tests/unictype/test-ctype_alnum.c: Regenerated.
33789         * tests/unictype/test-ctype_alpha.c: Regenerated.
33790         * tests/unictype/test-ctype_graph.c: Regenerated.
33791         * tests/unictype/test-ctype_lower.c: Regenerated.
33792         * tests/unictype/test-ctype_print.c: Regenerated.
33793         * tests/unictype/test-ctype_punct.c: Regenerated.
33794         * tests/unictype/test-ctype_upper.c: Regenerated.
33795         * tests/unictype/test-decdigit.h: Regenerated.
33796         * tests/unictype/test-digit.h: Regenerated.
33797         * tests/unictype/test-numeric.h: Regenerated.
33798         * tests/unictype/test-pr_alphabetic.c: Regenerated.
33799         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
33800         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
33801         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
33802         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
33803         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
33804         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
33805         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
33806         * tests/unictype/test-pr_combining.c: Regenerated.
33807         * tests/unictype/test-pr_dash.c: Regenerated.
33808         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
33809         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
33810         * tests/unictype/test-pr_deprecated.c: Regenerated.
33811         * tests/unictype/test-pr_diacritic.c: Regenerated.
33812         * tests/unictype/test-pr_extender.c: Regenerated.
33813         * tests/unictype/test-pr_format_control.c: Regenerated.
33814         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
33815         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
33816         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
33817         * tests/unictype/test-pr_id_continue.c: Regenerated.
33818         * tests/unictype/test-pr_id_start.c: Regenerated.
33819         * tests/unictype/test-pr_ideographic.c: Regenerated.
33820         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
33821         * tests/unictype/test-pr_lowercase.c: Regenerated.
33822         * tests/unictype/test-pr_math.c: Regenerated.
33823         * tests/unictype/test-pr_numeric.c: Regenerated.
33824         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
33825         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
33826         Regenerated.
33827         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
33828         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
33829         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
33830         * tests/unictype/test-pr_other_math.c: Regenerated.
33831         * tests/unictype/test-pr_punctuation.c: Regenerated.
33832         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
33833         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
33834         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
33835         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
33836         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
33837         * tests/unictype/test-pr_uppercase.c: Regenerated.
33838         * tests/unictype/test-pr_xid_continue.c: Regenerated.
33839         * tests/unictype/test-pr_xid_start.c: Regenerated.
33840         * tests/unictype/test-pr_zero_width.c: Regenerated.
33841
33842         Update to Unicode 5.1.0.
33843         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
33844         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
33845         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
33846         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
33847         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
33848         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
33849         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
33850         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
33851         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
33852         (nonspacing_table_ind): Update.
33853         * tests/uniwidth/test-uc_width2.sh: Update expected result.
33854
33855         Update to Unicode 5.1.0.
33856         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
33857         code transform.
33858         * lib/uniname/uniname.c (unicode_character_name,
33859         unicode_name_character): Add the range 0x1Fxxx to the code transform.
33860         * lib/uniname/uninames.h: Regenerated.
33861         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
33862
33863 2009-02-07  Bruno Haible  <bruno@clisp.org>
33864
33865         Merge gen-ctype and gen-lbrk into a single program.
33866         * lib/gen-uni-tables.c: New file, incorporating
33867         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
33868         Add directory prefixes to the names of the generated files.
33869         * lib/unictype/gen-ctype.c: Remove file.
33870         * lib/unilbrk/gen-lbrk.c: Remove file.
33871         * modules/gen-uni-tables: New file.
33872         * modules/unictype/gen-ctype: Remove file.
33873         * modules/unilbrk/gen-lbrk: Remove file.
33874
33875 2009-02-07  Bruno Haible  <bruno@clisp.org>
33876
33877         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
33878
33879         New module 'unistr/u32-strcoll'.
33880         * modules/unistr/u32-strcoll: New file.
33881         * lib/unistr/u32-strcoll.c: New file.
33882
33883         New module 'unistr/u16-strcoll'.
33884         * modules/unistr/u16-strcoll: New file.
33885         * lib/unistr/u16-strcoll.c: New file.
33886
33887         New module 'unistr/u8-strcoll'.
33888         * modules/unistr/u8-strcoll: New file.
33889         * lib/unistr/u8-strcoll.c: New file.
33890         * lib/unistr/u-strcoll.h: New file.
33891
33892 2009-02-07  Bruno Haible  <bruno@clisp.org>
33893
33894         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
33895         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
33896         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
33897         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
33898         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
33899         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
33900
33901 2009-02-07  Bruno Haible  <bruno@clisp.org>
33902
33903         Make 64-bit clean.
33904         * lib/unictype/gen-ctype.c (output_predicate, output_category,
33905         output_combclass, output_bidi_category, output_decimal_digit,
33906         output_digit, output_numeric, output_mirror, output_scripts,
33907         output_ident_category): Use proper width specifier in format strings.
33908
33909 2009-02-07  Bruno Haible  <bruno@clisp.org>
33910
33911         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
33912         failure behaviour.
33913
33914 2009-02-07  Jim Meyering  <meyering@redhat.com>
33915
33916         regex: avoid compilation failure with upcoming gcc-4.4
33917         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
33918         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
33919         "... error: integer overflow in preprocessor expression".
33920
33921 2009-02-05  Ben Pfaff  <blp@gnu.org>
33922
33923         Fix link errors on Windows when close module is used.
33924         * modules/close: Add $(LIB_CLOSE) to Link section.
33925         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
33926         $(LIB_CLOSE) on Windows.
33927
33928 2009-02-05  Jim Meyering  <meyering@redhat.com>
33929
33930         still avoid unused-parameter warnings, but do it cleanly
33931         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
33932         (get_fs_usage): Cast to void instead.
33933         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
33934         (dev_from_mount_options, read_file_system_list): Cast to void.
33935         Prompted by Bruno Haible.
33936
33937 2009-02-04  Jim Meyering  <meyering@redhat.com>
33938
33939         fsusage.c: correct copyright year
33940         * lib/fsusage.c: Reflect year in which the change is pushed into
33941
33942         avoid misc. warnings
33943         * lib/fsusage.c (UNUSED_PARAM): Define.
33944         (get_fs_usage): Mark parameter "disk" as unused.
33945         * lib/getugroups.c (getgrent): Use "void" in prototype.
33946         * lib/mountlist.c: Mark unused parameters.
33947         (read_file_system_list): Declare a local with "const".
33948         * lib/nanosleep.c (getnow): Declare static.
33949         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
33950
33951         dirfd: set errno upon failure
33952         * lib/dirfd.c: Include <errno.h>.
33953         Set errno to ENOTSUP when returning -1.
33954         * modules/dirfd (Depends-on): Add errno.
33955         Suggested by John Kodis <kodis@comcast.net>.
33956
33957 2009-02-01  Bruno Haible  <bruno@clisp.org>
33958
33959         Don't assume sizeof (long) >= sizeof (void *).
33960         * lib/memcmp.c: Include stdint.h.
33961         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
33962         srcp2 to 'const byte *'.
33963         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
33964         types to uintptr_t.
33965         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
33966         * modules/memcmp (Depends-on): Add stdint.
33967         Reported by Ozkan Sezer <sezeroz@gmail.com>.
33968
33969 2009-01-30  Eric Blake  <ebb9@byu.net>
33970
33971         fix more require-before-expand issues
33972         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
33973         expand, AC_PROG_AWK.
33974         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
33975
33976 2009-01-28  Eric Blake  <ebb9@byu.net>
33977
33978         version-etc: use consistent URL formatting
33979         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
33980         Improve formatting.  Use fputs for string without %.
33981
33982 2009-01-28  Jim Meyering  <meyering@redhat.com>
33983
33984         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
33985         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
33986         "underquoted definition of NAME" from autoconf-2.59.
33987
33988 2009-01-28  Bruno Haible  <bruno@clisp.org>
33989
33990         * doc/gnulib.texi: Add "Obsolete modules" to index.
33991
33992 2009-01-28  Jim Meyering  <meyering@redhat.com>
33993
33994         useless-if-before-free: recognize more variants
33995         * build-aux/useless-if-before-free: Also recognize e.g.,
33996         if (NULL != p) free (p);
33997
33998 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
33999
34000         test-getaddrinfo: skip (don't fail) this test when there's no network
34001         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
34002         on the presumption that it means you lack network access.
34003
34004 2009-01-26  Jim Meyering  <meyering@redhat.com>
34005
34006         fflush: avoid warnings on modern systems
34007         * lib/fflush.c (rpl_fflush): Move declarations of locals,
34008         pos and result, into scopes where they're used.
34009
34010 2009-01-26  Eric Blake  <ebb9@byu.net>
34011
34012         Silence warning reintroduced by recent extensions patch.
34013         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
34014         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
34015         autoconf.
34016
34017         Backport improved autoconf semantics of AC_DEFUN_ONCE.
34018         * m4/00gnulib.m4: New file.
34019         * gnulib-tool (func_get_filelist): Always use it.
34020         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
34021         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
34022
34023 2009-01-25  Bruno Haible  <bruno@clisp.org>
34024
34025         Make test-quotearg work on MacOS X and AIX.
34026         * tests/test-quotearg.sh: New file.
34027         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
34028         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
34029         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
34030         include <libintl.h>.
34031         (fake_locale): Remove variable.
34032         (gettext, dgettext, dcgettext): Remove functions.
34033         (main): Instead of setting a fake locale, set a real locale. Call
34034         textdomain and bindtextdomain.
34035         * modules/quotearg-tests (Files): Add the new files.
34036         (Depends-on): Add gettext, setenv, unsetenv.
34037         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
34038         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
34039         Augment TESTS_ENVIRONMENT.
34040
34041 2009-01-25  Bruno Haible  <bruno@clisp.org>
34042
34043         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
34044         fr_FR.ISO8859-1 locale on MacOS X.
34045         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
34046         ja_JP.eucJP locale on MacOS X.
34047         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
34048         zh_CN.GB18030 locale on MacOS X.
34049
34050 2009-01-25  Bruno Haible  <bruno@clisp.org>
34051
34052         Avoid link errors on MacOS X 10.3.
34053         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
34054         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
34055
34056 2009-01-25  Bruno Haible  <bruno@clisp.org>
34057
34058         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34059         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
34060         * modules/pipe (Files): Remove m4/posix_spawn.m4.
34061         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34062         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
34063         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34064         posix_spawnattr_init, posix_spawnattr_setsigmask,
34065         posix_spawnattr_setflags, posix_spawnattr_destroy.
34066
34067         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34068         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
34069         * modules/execute (Files): Remove m4/posix_spawn.m4.
34070         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34071         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34072         posix_spawnattr_init, posix_spawnattr_setsigmask,
34073         posix_spawnattr_setflags, posix_spawnattr_destroy.
34074
34075 2009-01-25  Bruno Haible  <bruno@clisp.org>
34076
34077         * lib/glthread/threadlib.c: Include <stdlib.h>.
34078
34079 2009-01-25  Bruno Haible  <bruno@clisp.org>
34080
34081         * lib/glthread/threadlib.c (dummy): New declaration.
34082
34083 2009-01-25  Bruno Haible  <bruno@clisp.org>
34084
34085         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
34086         multibyte characters also for the GB18030 encoding. Don't crash when
34087         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
34088
34089 2009-01-25  Bruno Haible  <bruno@clisp.org>
34090
34091         Avoid redefining 'struct random_data' on OSF/1 5.1.
34092         * lib/stdlib.in.h: Include <random.h> if it exists.
34093         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
34094         HAVE_RANDOM_H. Include <random.h> when testing whether
34095         'struct random_data' exists.
34096         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
34097
34098 2009-01-25  Bruno Haible  <bruno@clisp.org>
34099
34100         Don't install charset.alias on MacOS X >= 10.3.
34101         * lib/localcharset.c (DARWIN7): New macro.
34102         (get_charset_aliases): Hardcode the result for Darwin7.
34103         * modules/localcharset (install-exec-local): Don't install
34104         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
34105
34106 2009-01-25  Bruno Haible  <bruno@clisp.org>
34107
34108         Don't install charset.alias on mingw and Cygwin.
34109         * modules/localcharset (install-exec-local): Don't install
34110         charset.alias on mingw and Cygwin, if the file does not yet exist.
34111         The result for these platforms is hardcoded in localcharset.c.
34112
34113 2009-01-25  Bruno Haible  <bruno@clisp.org>
34114
34115         Make it possible again to use AC_GNU_SOURCE together with gnulib.
34116         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
34117         before requiring AC_USE_SYSTEM_EXTENSIONS.
34118
34119 2009-01-25  Jim Meyering  <meyering@redhat.com>
34120
34121         c-strtod: avoid warnings
34122         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
34123         "assignment discards qualifiers from pointer target type" warnings.
34124
34125 2009-01-24  Bruno Haible  <bruno@clisp.org>
34126
34127         Add support for non-UTF-8 locales on MacOS X.
34128         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
34129         canonical encodings. For Darwin 7 and newer, don't map traditional
34130         encodings to UTF-8.
34131         Reported by Vincent Lefevre <vincent@vinc17.org>
34132         at <http://savannah.gnu.org/bugs/?25235>.
34133
34134 2009-01-24  Bruno Haible  <bruno@clisp.org>
34135
34136         * doc/gnulib.texi (Obsolete modules): New section.
34137         Reported by Mike Frysinger <vapier@gentoo.org>.
34138
34139 2009-01-24  Bruno Haible  <bruno@clisp.org>
34140
34141         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
34142         (%.dvi): New rule.
34143
34144 2009-01-24  Bruno Haible  <bruno@clisp.org>
34145
34146         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
34147         Reported by Eric Blake.
34148
34149 2009-01-24  Bruno Haible  <bruno@clisp.org>
34150
34151         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
34152         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
34153         Reported by Gary V. Vaughan <gary@gnu.org>.
34154
34155 2009-01-24  Bruno Haible  <bruno@clisp.org>
34156
34157         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
34158
34159 2009-01-23  Bruno Haible  <bruno@clisp.org>
34160
34161         Make c-strtod, c-strtold usable in libraries.
34162         * lib/c-strtod.c: Include string.h instead of xalloc.h.
34163         (C_STRTOD): Call strdup instead of xstrdup.
34164         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
34165         * modules/c-strtold (Depends-on): Likewise.
34166         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
34167         * NEWS: Mention the change.
34168         Reported by Michael Gold <mgold@ncf.ca>.
34169
34170 2009-01-23  Jim Meyering  <meyering@redhat.com>
34171
34172         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
34173         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
34174         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
34175
34176 2009-01-23  Simon Josefsson  <simon@josefsson.org>
34177
34178         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
34179         GNU CoreUtils.
34180         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
34181         * modules/version-etc (Description): Update.
34182
34183 2009-01-22  Bruno Haible  <bruno@clisp.org>
34184
34185         Cache the C locale object.
34186         * lib/c-strtod.c (c_locale_cache): New variable.
34187         (c_locale): New function.
34188         (C_STRTOD): Use it, and don't call freelocale.
34189         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
34190         Suggested by Paolo Bonzini.
34191
34192 2009-01-21  Bruno Haible  <bruno@clisp.org>
34193
34194         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
34195         conditions other than overflow.
34196
34197 2009-01-21  Bruno Haible  <bruno@clisp.org>
34198
34199         * lib/c-strtod.c: Include errno.h.
34200         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
34201         value from STRTOD_L and STRTOD.
34202
34203 2009-01-21  Bruno Haible  <bruno@clisp.org>
34204         and Jim Meyering  <meyering@redhat.com>
34205
34206         nanosleep: skip configure test (fail it) for apple universal builds
34207         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
34208         universal builds, assume that nanosleep does not work.
34209         * modules/nanosleep (Depends-on): Add multiarch.
34210
34211         mktime: skip configure test (fail it) for apple universal builds
34212         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
34213         universal builds, assume that mktime does not work.
34214         * modules/mktime (Depends-on): Add multiarch.
34215
34216 2009-01-21  Eric Blake  <ebb9@byu.net>
34217
34218         multiarch: avoid expand-before-require warning
34219         * modules/multiarch (configure.ac): Require, rather than expand,
34220         gl_MULTIARCH.
34221         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
34222         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
34223         enforce that all clients require it.  Partial reversion of
34224         2008-12-29 patch.
34225
34226         error: avoid expand-before-require warning
34227         * modules/errno (configure.ac): Require, rather than expand,
34228         gl_HEADER_ERRNO_H.
34229         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
34230         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
34231         enforce that all clients require it.
34232
34233         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
34234         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
34235         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
34236         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
34237
34238 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
34239
34240         Revert:
34241         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34242
34243         regex: do not depend on obsolete modules.
34244         * modules/regex: Remove memcmp and memmove.
34245
34246 2009-01-20  Bruno Haible  <bruno@clisp.org>
34247
34248         Make the 'link' module link on Windows NT 4.
34249         * lib/link.c (_WIN32_WINNT): Don't define.
34250         (CreateHardLinkFuncType): New type.
34251         (CreateHardLinkFunc, initialized): New variables.
34252         (initialize): New function.
34253         (link): Invoke CreateHardLink indirectly through the function pointer.
34254
34255 2009-01-20  Bruno Haible  <bruno@clisp.org>
34256
34257         Fix compilation failure on mingw.
34258         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
34259
34260 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
34261
34262         * doc/c-strtod.texi: Mention a couple of restrictions.
34263
34264 2009-01-20  Jim Meyering  <meyering@redhat.com>
34265
34266         gettimeofday: move more declarations out of functions
34267         * lib/gettimeofday.c: Move extern declarations of tzset and
34268         gmtime out of containing functions.  Prompted by Bruno Haible.
34269
34270 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34271
34272         regex: do not depend on obsolete modules.
34273         * modules/regex: Remove memcmp and memmove.
34274
34275 2009-01-19  Bruno Haible  <bruno@clisp.org>
34276
34277         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34278         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
34279         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34280         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
34281         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
34282
34283 2009-01-19  Bruno Haible  <bruno@clisp.org>
34284
34285         * tests/test-link.c: Include <errno.h>.
34286         (main): Exit with code 77 when a hard link cannot be created due to
34287         the file system.
34288         * tests/test-link.sh: Skip test when a hard link cannot be created due
34289         to the file system.
34290         Suggested by Eric Blake.
34291
34292 2009-01-19  Martin Lambers  <marlam@marlam.de>
34293
34294         * modules/link-tests: New file.
34295         * tests/test-link.sh: New file.
34296         * tests/test-link.c: New file.
34297
34298 2009-01-19  Eric Blake  <ebb9@byu.net>
34299
34300         doc: mention another function added in cygwin 1.7.0
34301         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
34302         Another new function in cygwin 1.7.
34303
34304 2009-01-19  Bruno Haible  <bruno@clisp.org>
34305
34306         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34307         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
34308         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
34309         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34310         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34311         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
34312         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
34313         * m4/md4.m4 (gl_MD4): Likewise.
34314         * m4/md5.m4 (gl_MD5): Likewise.
34315         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
34316         * m4/sha1.m4 (gl_SHA1): Likewise.
34317         * m4/sha256.m4 (gl_SHA256): Likewise.
34318         * m4/sha512.m4 (gl_SHA512): Likewise.
34319
34320 2009-01-19  Bruno Haible  <bruno@clisp.org>
34321
34322         * modules/uniname/uniname-tests (Depends-on): Add progname.
34323         * tests/uniname/test-uninames.c: Include progname.h.
34324         (main): Call set_program_name.
34325
34326         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
34327         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
34328         (main): Call set_program_name.
34329
34330         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
34331         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
34332         (main): Call set_program_name.
34333
34334         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
34335         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
34336         (main): Call set_program_name.
34337
34338         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
34339         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
34340         (main): Call set_program_name.
34341
34342         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
34343         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
34344         (main): Call set_program_name.
34345
34346         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
34347         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
34348         (main): Call set_program_name.
34349
34350         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
34351         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
34352         (main): Call set_program_name.
34353
34354         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
34355         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
34356         (main): Call set_program_name.
34357
34358 2009-01-19  Eric Blake  <ebb9@byu.net>
34359
34360         test-unistd: test previous patch
34361         * tests/test-unistd.c: Test *_FILENO macros.
34362
34363         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
34364         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34365         Guarantee a definition.
34366         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
34367         * modules/unistd-safer (Depends-on): Add dependency on unistd.
34368         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
34369         * lib/dup-safer.c (STDERR_FILENO): Likewise.
34370         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34371         Likewise.
34372         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
34373         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
34374         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34375         Likewise.
34376         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
34377         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
34378         (STDERR_FILENO): Likewise.
34379         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
34380         (STDERR_FILENO): Likewise.
34381         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
34382         (STDERR_FILENO): Likewise.
34383         Reported by Elbert Pol.
34384
34385 2009-01-19  Eric Blake  <ebb9@byu.net>
34386
34387         doc: mention more functions added in cygwin 1.7.0
34388         * doc/posix-functions/abort.texi (abort): Update wording related
34389         to cygwin.
34390         * doc/posix-functions/daylight.texi (daylight): Likewise.
34391         * doc/posix-functions/optarg.texi (optarg): Likewise.
34392         * doc/posix-functions/optarg.texi (opterr): Likewise.
34393         * doc/posix-functions/optarg.texi (optind): Likewise.
34394         * doc/posix-functions/optarg.texi (optopt): Likewise.
34395         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
34396         worked in 1.5.x, and was withdrawn in 1.7.
34397         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
34398         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
34399         cygwin versions.
34400         * doc/posix-functions/perror.texi (perror): Likewise.
34401         * doc/posix-functions/printf.texi (printf): Likewise.
34402         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
34403         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
34404         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
34405         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
34406         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
34407         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
34408         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
34409         Likewise.
34410         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
34411         Likewise.
34412         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
34413         this function.
34414         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
34415         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
34416         Likewise.
34417         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
34418         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
34419         * doc/posix-functions/confstr.texi (confstr): Likewise.
34420         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
34421         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
34422         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
34423         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
34424         * doc/posix-functions/fputws.texi (fputws): Likewise.
34425         * doc/posix-functions/fwide.texi (fwide): Likewise.
34426         * doc/posix-functions/getwc.texi (getwc): Likewise.
34427         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
34428         * doc/posix-functions/putwc.texi (putwc): Likewise.
34429         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
34430         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
34431         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
34432         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
34433         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
34434         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
34435         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
34436         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
34437         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
34438         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
34439         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
34440
34441 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34442
34443         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
34444         * lib/ioctl.c: Include <sys/ioctl.h>.
34445
34446 2009-01-19  Simon Josefsson  <simon@josefsson.org>
34447
34448         * modules/getdate-tests (Depends-on): Add progname.
34449         * tests/test-getdate.c: Use progname module, to avoid link errors
34450         on non-glibc systems.
34451
34452 2009-01-18  Simon Josefsson  <simon@josefsson.org>
34453
34454         * modules/filenamecat-tests (Depends-on): Add progname.
34455         * modules/fstrcmp-tests (Depends-on): Likewise.
34456
34457         * tests/test-filenamecat.c: Use progname module, to avoid link
34458         errors on non-glibc systems.
34459         * tests/test-fstrcmp.c: Likewise.
34460
34461 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34462
34463         gettimeofday: avoid warning: nested extern declaration of 'localtime'
34464         * lib/gettimeofday.c: Move extern declaration out of function.
34465
34466 2009-01-18  Bruno Haible  <bruno@clisp.org>
34467
34468         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
34469         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
34470         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
34471
34472 2009-01-18  Bruno Haible  <bruno@clisp.org>
34473
34474         * lib/strftime.c (MEMPCPY): Remove unused macro.
34475         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
34476
34477 2009-01-18  Martin Lambers  <marlam@marlam.de>
34478
34479         New module 'link'.
34480         * lib/unistd.in.h (link): New declaration.
34481         * lib/link.c: New file.
34482         * m4/link.m4: New file.
34483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
34484         HAVE_LINK.
34485         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
34486         * modules/link: New file.
34487         * doc/posix-functions/link.texi: Mention the new module.
34488
34489 2009-01-18  Bruno Haible  <bruno@clisp.org>
34490
34491         * tests/test-avltree_list.c (main): Call set_program_name.
34492         * tests/test-avltree_oset.c (main): Likewise.
34493         * tests/test-obstack-printf.c: Include progname.h.
34494         (main): Call set_program_name.
34495         * tests/test-quotearg.c: Include progname.h.
34496         (main): Call set_program_name.
34497         * tests/test-xmemdup0.c: Include progname.h.
34498         (main): Call set_program_name.
34499
34500 2009-01-18  Bruno Haible  <bruno@clisp.org>
34501
34502         New module 'alphasort'.
34503         * lib/dirent.in.h (alphasort): New declaration.
34504         * lib/alphasort.c: New file, from glibc with modifications.
34505         * m4/alphasort.m4: New file.
34506         * modules/alphasort: New file.
34507         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
34508         HAVE_ALPHASORT.
34509         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
34510         HAVE_ALPHASORT.
34511         * doc/posix-functions/alphasort.texi: Mention the new module and the
34512         portability problems.
34513
34514 2009-01-18  Bruno Haible  <bruno@clisp.org>
34515
34516         New module 'scandir'.
34517         * lib/dirent.in.h (scandir): New declaration.
34518         * lib/scandir.c: New file, from glibc with modifications.
34519         * m4/scandir.m4: New file.
34520         * modules/scandir: New file.
34521         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
34522         HAVE_SCANDIR.
34523         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
34524         HAVE_SCANDIR.
34525         * doc/posix-functions/scandir.texi: Mention the new module and the
34526         portability problems.
34527
34528 2009-01-17  Bruno Haible  <bruno@clisp.org>
34529
34530         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
34531         Update documentation.
34532         (func_remove_suffix): Escape all dots in the suffix. Update
34533         documentation.
34534         (func_filter_filelist): Update documentation.
34535         Reported by Ralf Wildenhues.
34536
34537 2009-01-17  Bruno Haible  <bruno@clisp.org>
34538
34539         * modules/dprintf-posix-tests: New file.
34540         * tests/test-dprintf-posix.sh: New file.
34541         * tests/test-dprintf-posix.c: New file.
34542
34543         New modules 'dprintf', 'dprintf-posix'.
34544         * lib/stdio.in.h (dprintf): New declaration.
34545         * lib/dprintf.c: New file.
34546         * m4/dprintf.m4: New file.
34547         * m4/dprintf-posix.m4: New file.
34548         * modules/dprintf: New file.
34549         * modules/dprintf-posix: New file.
34550         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
34551         HAVE_DPRINTF, REPLACE_DPRINTF.
34552         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
34553         HAVE_DPRINTF, REPLACE_DPRINTF.
34554         * doc/posix-functions/dprintf.texi: Mention the new modules.
34555
34556 2009-01-17  Bruno Haible  <bruno@clisp.org>
34557
34558         * modules/vdprintf-posix-tests: New file.
34559         * tests/test-vdprintf-posix.sh: New file.
34560         * tests/test-vdprintf-posix.c: New file.
34561
34562         New modules 'vdprintf', 'vdprintf-posix'.
34563         * lib/stdio.in.h (vdprintf): New declaration.
34564         * lib/vdprintf.c: New file.
34565         * m4/vdprintf.m4: New file.
34566         * m4/vdprintf-posix.m4: New file.
34567         * modules/vdprintf: New file.
34568         * modules/vdprintf-posix: New file.
34569         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
34570         HAVE_VDPRINTF, REPLACE_VDPRINTF.
34571         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
34572         HAVE_VDPRINTF, REPLACE_VDPRINTF.
34573         * doc/posix-functions/vdprintf.texi: Mention the new modules.
34574
34575 2009-01-17  Bruno Haible  <bruno@clisp.org>
34576
34577         Fix replacement of fopen on mingw.
34578         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
34579         mingw.
34580
34581 2009-01-17  Bruno Haible  <bruno@clisp.org>
34582
34583         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
34584         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
34585
34586 2009-01-17  Bruno Haible  <bruno@clisp.org>
34587
34588         Avoid test-fflush2.sh failure on mingw.
34589         * tests/test-fflush2.c: Include binary-io.h.
34590         (main): Put standard input into binary mode.
34591         * modules/fflush-tests (Depends-on): Add binary-io.
34592
34593 2009-01-17  Bruno Haible  <bruno@clisp.org>
34594
34595         * lib/wchar.in.h: In another particular situation, include only the
34596         system's <wchar.h> file.
34597         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
34598         Reported by Albert Chin-A-Young <china@thewrittenword.com>
34599         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
34600
34601 2009-01-17  Bruno Haible  <bruno@clisp.org>
34602
34603         Support for stripping executables in --enable-relocatable.
34604         * build-aux/install-reloc: Expect one more argument, or an environment
34605         variable RELOC_STRIP_PROG. If set, strip the destination program and
34606         its wrapper.
34607         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
34608         RELOC_STRIP_PROG.
34609         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
34610         to set RELOCATABLE_STRIP.
34611         * NEWS: Mention the new Makefile requirement.
34612
34613 2009-01-17  Bruno Haible  <bruno@clisp.org>
34614
34615         * build-aux/install-reloc: Remove debugging information left over by
34616         C compiler on MacOS X.
34617
34618 2009-01-17  Bruno Haible  <bruno@clisp.org>
34619
34620         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
34621         * lib/progreloc.c (find_executable): Fix type of pointer passed to
34622         _NSGetExecutablePath.
34623
34624 2009-01-16  Jim Meyering  <meyering@redhat.com>
34625
34626         strerror: avoid warnings about discarding "const"
34627         * lib/strerror.c (rpl_strerror): Instead of returning a const
34628         string from each and every "case", use a variable, and add a single
34629         cast after the switch.
34630
34631 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
34632
34633         * lib/arpa_inet.in.h: Add extern "C" block for C++.
34634
34635 2009-01-16  Bruno Haible  <bruno@clisp.org>
34636
34637         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
34638         array initializer syntax that also works in C++ mode.
34639         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34640
34641 2009-01-16  Jim Meyering  <meyering@redhat.com>
34642
34643         poll: suppress a warning
34644         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
34645         to ignore "...unsigned expression < 0 is always false" warnings.
34646
34647 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
34648
34649         poll: remove declarations of unused variables
34650         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
34651         sockbuf and optlen.
34652
34653 2009-01-15  Bruno Haible  <bruno@clisp.org>
34654
34655         Make fflush-after-ungetc POSIX compliant on BSD systems.
34656         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
34657         (clear_ungetc_buffer): Implement also for other systems.
34658         (rpl_fflush): On glibc systems, invoke
34659         clear_ungetc_buffer_preserving_position. Otherwise, invoke
34660         clear_ungetc_buffer after fetching the stream's position, not before.
34661
34662 2009-01-15  Bruno Haible  <bruno@clisp.org>
34663
34664         Make fflush-after-ungetc POSIX compliant on glibc systems.
34665         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
34666         after ungetc.
34667         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
34668         (rpl_fflush): On glibc systems, simply call the system's fflush
34669         function after clearing the ungetc buffer.
34670         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
34671         Instead, lseek only to the end of file, then use the system's fseeko
34672         for the rest. On glibc systems, reset the EOF indicator bit.
34673
34674 2009-01-15  Jim Meyering  <meyering@redhat.com>
34675
34676         openmp.m4: revert quote-adding change, for portability to older autoconf
34677         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
34678         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
34679         Simon Josefsson noticed the problem when using autoconf-2.61.
34680
34681 2009-01-15  Bruno Haible  <bruno@clisp.org>
34682
34683         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
34684         * tests/test-fflush2.c (ASSERT): Always fail.
34685         (main): Add two tests for fflush() after ungetc(), taking into account
34686         the Austin Group's clarification.
34687         Suggested by Eric Blake.
34688
34689 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
34690
34691         mktime.m4: remove K&R-style function prototypes
34692         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
34693         for the Sun C++ compiler.
34694
34695 2009-01-14  Bruno Haible  <bruno@clisp.org>
34696
34697         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
34698         while including <wchar.h>.
34699         * lib/wchar.in.h: In two particular situations on HP-UX, include only
34700         the system's <wchar.h> file.
34701         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34702
34703 2009-01-14  Bruno Haible  <bruno@clisp.org>
34704
34705         * m4/csharp.m4: Don't mention gettext on the serial number line.
34706         * m4/csharpexec.m4: Likewise.
34707         * m4/eaccess.m4: Likewise.
34708         * m4/javaexec.m4: Likewise.
34709         * m4/sig_atomic_t.m4: Likewise.
34710         * m4/tmpdir.m4: Likewise.
34711         * m4/intldir.m4: Bump gettext version.
34712         * m4/lib-ld.m4: Likewise.
34713
34714 2009-01-14  Bruno Haible  <bruno@clisp.org>
34715
34716         * lib/progname.c (set_program_name): Add more comments.
34717         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34718
34719 2009-01-14  Simon Josefsson  <simon@josefsson.org>
34720
34721         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
34722         were sys/stat.h does not define it.
34723
34724 2009-01-14  Jim Meyering  <meyering@redhat.com>
34725
34726         many *.m4 files: improve m4 quoting
34727         99% of this change was performed by running the following commands:
34728         git ls-files | grep '\.m4$' | xargs perl -pi \
34729           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
34730           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
34731           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
34732           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
34733         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
34734         The remainder were to add Copyright dates, increment serial numbers,
34735         undo some changes in comments, exclude m4/intl.m4, and add quotes
34736         around the "1" in ",1" where the unusual spacing prohibited the
34737         above regexps from doing the job.  For more details, see
34738         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
34739         * m4/acl.m4: Modified.
34740         * m4/afs.m4: Likewise.
34741         * m4/alloca.m4: Likewise.
34742         * m4/argp.m4: Likewise.
34743         * m4/argz.m4: Likewise.
34744         * m4/atexit.m4: Likewise.
34745         * m4/bison-i18n.m4: Likewise.
34746         * m4/bison.m4: Likewise.
34747         * m4/byteswap.m4: Likewise.
34748         * m4/c-stack.m4: Likewise.
34749         * m4/c-strtod.m4: Likewise.
34750         * m4/calloc.m4: Likewise.
34751         * m4/canonicalize-lgpl.m4: Likewise.
34752         * m4/chown.m4: Likewise.
34753         * m4/clock_time.m4: Likewise.
34754         * m4/codeset.m4: Likewise.
34755         * m4/copy-file.m4: Likewise.
34756         * m4/csharp.m4: Likewise.
34757         * m4/csharpcomp.m4: Likewise.
34758         * m4/csharpexec.m4: Likewise.
34759         * m4/d-ino.m4: Likewise.
34760         * m4/d-type.m4: Likewise.
34761         * m4/dirfd.m4: Likewise.
34762         * m4/double-slash-root.m4: Likewise.
34763         * m4/eaccess.m4: Likewise.
34764         * m4/eealloc.m4: Likewise.
34765         * m4/environ.m4: Likewise.
34766         * m4/errno_h.m4: Likewise.
34767         * m4/euidaccess.m4: Likewise.
34768         * m4/execute.m4: Likewise.
34769         * m4/fatal-signal.m4: Likewise.
34770         * m4/fchdir.m4: Likewise.
34771         * m4/fcntl_h.m4: Likewise.
34772         * m4/fileblocks.m4: Likewise.
34773         * m4/filenamecat.m4: Likewise.
34774         * m4/findprog.m4: Likewise.
34775         * m4/flexmember.m4: Likewise.
34776         * m4/fnmatch.m4: Likewise.
34777         * m4/fopen.m4: Likewise.
34778         * m4/fpending.m4: Likewise.
34779         * m4/fprintf-posix.m4: Likewise.
34780         * m4/free.m4: Likewise.
34781         * m4/frexp.m4: Likewise.
34782         * m4/frexpl.m4: Likewise.
34783         * m4/fsusage.m4: Likewise.
34784         * m4/ftruncate.m4: Likewise.
34785         * m4/gc-camellia.m4: Likewise.
34786         * m4/gc-random.m4: Likewise.
34787         * m4/gc.m4: Likewise.
34788         * m4/getaddrinfo.m4: Likewise.
34789         * m4/getcwd-abort-bug.m4: Likewise.
34790         * m4/getcwd-path-max.m4: Likewise.
34791         * m4/getdate.m4: Likewise.
34792         * m4/getdomainname.m4: Likewise.
34793         * m4/getgroups.m4: Likewise.
34794         * m4/gethostname.m4: Likewise.
34795         * m4/gethrxtime.m4: Likewise.
34796         * m4/getline.m4: Likewise.
34797         * m4/getloadavg.m4: Likewise.
34798         * m4/getndelim2.m4: Likewise.
34799         * m4/getpass.m4: Likewise.
34800         * m4/gettext.m4: Likewise.
34801         * m4/gettime.m4: Likewise.
34802         * m4/gettimeofday.m4: Likewise.
34803         * m4/gnulib-common.m4: Likewise.
34804         * m4/group-member.m4: Likewise.
34805         * m4/host-os.m4: Likewise.
34806         * m4/iconv.m4: Likewise.
34807         * m4/iconv_open.m4: Likewise.
34808         * m4/inet_ntop.m4: Likewise.
34809         * m4/inet_pton.m4: Likewise.
34810         * m4/inline.m4: Likewise.
34811         * m4/intldir.m4: Likewise.
34812         * m4/intlmacosx.m4: Likewise.
34813         * m4/intmax.m4: Likewise.
34814         * m4/intmax_t.m4: Likewise.
34815         * m4/inttypes.m4: Likewise.
34816         * m4/inttypes_h.m4: Likewise.
34817         * m4/inttypes-pri.m4: Likewise.
34818         * m4/isapipe.m4: Likewise.
34819         * m4/isnand.m4: Likewise.
34820         * m4/isnanf.m4: Likewise.
34821         * m4/isnanl.m4: Likewise.
34822         * m4/javacomp.m4: Likewise.
34823         * m4/javaexec.m4: Likewise.
34824         * m4/jm-winsz1.m4: Likewise.
34825         * m4/jm-winsz2.m4: Likewise.
34826         * m4/lchown.m4: Likewise.
34827         * m4/lcmessage.m4: Likewise.
34828         * m4/ldexpl.m4: Likewise.
34829         * m4/lib-ld.m4: Likewise.
34830         * m4/lib-link.m4: Likewise.
34831         * m4/libsigsegv.m4: Likewise.
34832         * m4/link-follow.m4: Likewise.
34833         * m4/localcharset.m4: Likewise.
34834         * m4/locale-fr.m4: Likewise.
34835         * m4/locale-ja.m4: Likewise.
34836         * m4/locale-tr.m4: Likewise.
34837         * m4/locale-zh.m4: Likewise.
34838         * m4/lock.m4: Likewise.
34839         * m4/longlong.m4: Likewise.
34840         * m4/ls-mntd-fs.m4: Likewise.
34841         * m4/lstat.m4: Likewise.
34842         * m4/malloc.m4: Likewise.
34843         * m4/mathl.m4: Likewise.
34844         * m4/mbrtowc.m4: Likewise.
34845         * m4/mbstate_t.m4: Likewise.
34846         * m4/mbswidth.m4: Likewise.
34847         * m4/memchr.m4: Likewise.
34848         * m4/memcmp.m4: Likewise.
34849         * m4/memcpy.m4: Likewise.
34850         * m4/memmem.m4: Likewise.
34851         * m4/memmove.m4: Likewise.
34852         * m4/mempcpy.m4: Likewise.
34853         * m4/memrchr.m4: Likewise.
34854         * m4/memset.m4: Likewise.
34855         * m4/minmax.m4: Likewise.
34856         * m4/mkdir-slash.m4: Likewise.
34857         * m4/mkdtemp.m4: Likewise.
34858         * m4/mktime.m4: Likewise.
34859         * m4/mmap-anon.m4: Likewise.
34860         * m4/mountlist.m4: Likewise.
34861         * m4/nanosleep.m4: Likewise.
34862         * m4/nls.m4: Likewise.
34863         * m4/nocrash.m4: Likewise.
34864         * m4/open.m4: Likewise.
34865         * m4/openat.m4: Likewise.
34866         * m4/openmp.m4: Likewise.
34867         * m4/pathmax.m4: Likewise.
34868         * m4/perl.m4: Likewise.
34869         * m4/physmem.m4: Likewise.
34870         * m4/pipe.m4: Likewise.
34871         * m4/po.m4: Likewise.
34872         * m4/poll.m4: Likewise.
34873         * m4/posixtm.m4: Likewise.
34874         * m4/posixver.m4: Likewise.
34875         * m4/printf-frexp.m4: Likewise.
34876         * m4/printf-frexpl.m4: Likewise.
34877         * m4/printf-posix.m4: Likewise.
34878         * m4/printf-posix-rpl.m4: Likewise.
34879         * m4/printf.m4: Likewise.
34880         * m4/progtest.m4: Likewise.
34881         * m4/putenv.m4: Likewise.
34882         * m4/readline.m4: Likewise.
34883         * m4/readlink.m4: Likewise.
34884         * m4/readutmp.m4: Likewise.
34885         * m4/realloc.m4: Likewise.
34886         * m4/regex.m4: Likewise.
34887         * m4/relocatable.m4: Likewise.
34888         * m4/relocatable-lib.m4: Likewise.
34889         * m4/rename-dest-slash.m4: Likewise.
34890         * m4/rename.m4: Likewise.
34891         * m4/rmdir-errno.m4: Likewise.
34892         * m4/rmdir.m4: Likewise.
34893         * m4/roundf.m4: Likewise.
34894         * m4/roundl.m4: Likewise.
34895         * m4/rpmatch.m4: Likewise.
34896         * m4/save-cwd.m4: Likewise.
34897         * m4/selinux-selinux-h.m4: Likewise.
34898         * m4/setenv.m4: Likewise.
34899         * m4/settime.m4: Likewise.
34900         * m4/sig2str.m4: Likewise.
34901         * m4/sig_atomic_t.m4: Likewise.
34902         * m4/signalblocking.m4: Likewise.
34903         * m4/signbit.m4: Likewise.
34904         * m4/sigpipe.m4: Likewise.
34905         * m4/sockets.m4: Likewise.
34906         * m4/sockpfaf.m4: Likewise.
34907         * m4/st_dm_mode.m4: Likewise.
34908         * m4/stat-time.m4: Likewise.
34909         * m4/stdbool.m4: Likewise.
34910         * m4/stdint.m4: Likewise.
34911         * m4/stdint_h.m4: Likewise.
34912         * m4/stpcpy.m4: Likewise.
34913         * m4/stpncpy.m4: Likewise.
34914         * m4/strcase.m4: Likewise.
34915         * m4/strchrnul.m4: Likewise.
34916         * m4/strcspn.m4: Likewise.
34917         * m4/strdup.m4: Likewise.
34918         * m4/strftime.m4: Likewise.
34919         * m4/strndup.m4: Likewise.
34920         * m4/strnlen.m4: Likewise.
34921         * m4/strpbrk.m4: Likewise.
34922         * m4/strptime.m4: Likewise.
34923         * m4/strsep.m4: Likewise.
34924         * m4/strtod.m4: Likewise.
34925         * m4/strtoimax.m4: Likewise.
34926         * m4/strtok_r.m4: Likewise.
34927         * m4/strtol.m4: Likewise.
34928         * m4/strtoll.m4: Likewise.
34929         * m4/strtoul.m4: Likewise.
34930         * m4/strtoull.m4: Likewise.
34931         * m4/strtoumax.m4: Likewise.
34932         * m4/strverscmp.m4: Likewise.
34933         * m4/threadlib.m4: Likewise.
34934         * m4/timegm.m4: Likewise.
34935         * m4/tm_gmtoff.m4: Likewise.
34936         * m4/tmpdir.m4: Likewise.
34937         * m4/tmpfile.m4: Likewise.
34938         * m4/tzset.m4: Likewise.
34939         * m4/uintmax_t.m4: Likewise.
34940         * m4/unlinkdir.m4: Likewise.
34941         * m4/unlocked-io.m4: Likewise.
34942         * m4/uptime.m4: Likewise.
34943         * m4/userspec.m4: Likewise.
34944         * m4/utimbuf.m4: Likewise.
34945         * m4/utime.m4: Likewise.
34946         * m4/utimes-null.m4: Likewise.
34947         * m4/utimes.m4: Likewise.
34948         * m4/vararrays.m4: Likewise.
34949         * m4/vasnprintf.m4: Likewise.
34950         * m4/vfprintf-posix.m4: Likewise.
34951         * m4/vprintf-posix.m4: Likewise.
34952         * m4/wait-process.m4: Likewise.
34953         * m4/wchar_t.m4: Likewise.
34954         * m4/wint_t.m4: Likewise.
34955         * m4/write-any-file.m4: Likewise.
34956         * m4/yield.m4: Likewise.
34957
34958 2009-01-13  Bruno Haible  <bruno@clisp.org>
34959
34960         Avoid test-copy-file.sh failures when ACL support insufficient.
34961         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
34962         TESTS_ENVIRONMENT.
34963         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
34964         Reported by Jim Meyering.
34965
34966 2009-01-13  Bruno Haible  <bruno@clisp.org>
34967
34968         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
34969         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
34970         * modules/unistdio/u8-printf-parse (Files): Likewise.
34971         * modules/unistdio/u32-printf-parse (Files): Likewise.
34972         * modules/unistdio/ulc-printf-parse (Files): Likewise.
34973
34974 2009-01-13  Simon Josefsson  <simon@josefsson.org>
34975
34976         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
34977         and m4/inttypes_h.m4 too.
34978
34979 2009-01-12  Eric Blake  <ebb9@byu.net>
34980
34981         tests: IRIX 6.2 cc can't compile -0.0 into .data
34982         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
34983         rather than at compile-time.
34984         * tests/test-floorl.c (minus_zero): Likewise.
34985         * tests/test-frexpl.c (minus_zero): Likewise.
34986         * tests/test-isnan.c (minus_zerol): Likewise.
34987         * tests/test-isnanl.h (minus_zero): Likewise.
34988         * tests/test-ldexpl.c (minus_zero): Likewise.
34989         * tests/test-roundl.c (minus_zero): Likewise.
34990         * tests/test-signbit.c (minus_zerol): Likewise.
34991         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
34992         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
34993         * tests/test-truncl.c (minus_zero): Likewise.
34994         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
34995         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
34996         Reported by Tom G. Christensen and Nelson H. F. Beebe.
34997
34998 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34999
35000         regex: fix glibc bug 9697
35001         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
35002         handling.
35003
35004 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35005
35006         regex: fix glibc bug 697
35007         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
35008         being NULL also if there are no backreferences.
35009
35010 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35011
35012         regex: merge glibc changes
35013         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
35014         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
35015         re_string_skip_chars, re_string_reconstruct): Likewise.
35016         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
35017
35018 2009-01-07  Jim Meyering  <meyering@redhat.com>
35019
35020         poll: filter through cppi
35021         * lib/poll.c: Indent cpp directives to reflect nesting.
35022
35023 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
35024
35025         poll: don't return uninitialized
35026         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
35027
35028 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
35029
35030         avoid compile failure on AIX 6.1
35031         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
35032         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
35033
35034 2009-01-04  Jim Meyering  <meyering@redhat.com>
35035
35036         remove duplicate inclusion of <stdio.h>
35037         * tests/test-fprintf-posix.c: Likewise.
35038         * tests/test-printf-posix.c: Likewise.
35039         * tests/test-snprintf-posix.c: Likewise.
35040         * tests/test-sprintf-posix.c: Likewise.
35041         * tests/test-vasprintf-posix.c: Likewise.
35042         * tests/test-vfprintf-posix.c: Likewise.
35043         * tests/test-vprintf-posix.c: Likewise.
35044         * tests/test-vsnprintf-posix.c: Likewise.
35045         * tests/test-vsprintf-posix.c: Likewise.
35046
35047 2009-01-03  Jim Meyering  <meyering@redhat.com>
35048
35049         gnulib-tool: fix sed-based filtering
35050         * gnulib-tool (func_filter_filelist): Remove extra backslash
35051         in sed_fff_filter definition.
35052
35053 2009-01-02  Jim Meyering  <meyering@redhat.com>
35054
35055         strftime: avoid compilation failure on Solaris 2.6
35056         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
35057         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
35058         Don't #define mbrlen or mbsinit, since now they're guaranteed to
35059         be available.  Reported by Tom G. Christensen.  Details in
35060         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
35061
35062 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35063             Bruno Haible  <bruno@clisp.org>
35064
35065         Speed up gnulib-tool by doing more string processing through shell
35066         built-ins.
35067         * gnulib-tool (fast_func_append): New variable.
35068         (func_remove_prefix, func_remove_suffix): New functions.
35069         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
35070         (func_filter_filelist): New function.
35071         (func_get_dependencies): Use func_remove_suffix instead of sed.
35072         (func_get_automake_snippet): Use func_filter_filelist instead of a
35073         subshell and sed invocation.
35074
35075 2009-01-01  Bruno Haible  <bruno@clisp.org>
35076
35077         Fix a security bug.
35078         * gnulib-tool (func_import, import, update): Don't allow the characters
35079         '"', '$', '`', '\' in macro arguments that become part of commands that
35080         are evaluated.
35081
35082 2009-01-01  Bruno Haible  <bruno@clisp.org>
35083
35084         * gnulib-tool (func_reset_sigpipe): Add more comments.
35085
35086 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35087
35088         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
35089         func_emit_tests_Makefile_am, func_import): Abort loops early if we
35090         already know the answer.
35091
35092 2009-01-01  Jim Meyering  <meyering@redhat.com>
35093
35094         * lib/version-etc.c (version_etc_va): Update copyright year.
35095
35096 2008-12-30  Bruno Haible  <bruno@clisp.org>
35097
35098         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
35099         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
35100         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
35101
35102 2008-12-29  Eric Blake  <ebb9@byu.net>
35103
35104         multiarch: avoid autoconf AC_REQUIRE bug
35105         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
35106         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
35107         2.63 and older.
35108         Reported by Bruno Haible, and analyzed in
35109         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
35110
35111 2008-12-29  Bruno Haible  <bruno@clisp.org>
35112
35113         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
35114         files in subdirectories correctly.
35115         Reported by Ralf Wildenhues.
35116
35117 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35118
35119         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
35120         rather than 'join FILE -', for Solaris join.
35121
35122 2008-12-29  Bruno Haible  <bruno@clisp.org>
35123
35124         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
35125         quoting.
35126         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
35127         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
35128         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
35129         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
35130         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
35131         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
35132         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
35133         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
35134         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
35135         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
35136         * m4/nls.m4 (AM_NLS): Likewise.
35137         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
35138         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
35139         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
35140         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
35141         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
35142         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
35143         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
35144         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
35145         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
35146         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
35147         * m4/xsize.m4 (gl_XSIZE): Likewise.
35148         Suggested by Jim Meyering.
35149
35150 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35151
35152         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
35153         * lib/parse-duration.c: use a switch instead of cascading if's.
35154
35155 2008-12-29  Eric Blake  <ebb9@byu.net>
35156
35157         wchar.h: supply WEOF on Irix 5.3
35158         * lib/wchar.in.h (wint_t): Also supply WEOF.
35159         * lib/wctype.in.h (wint_t): Likewise.
35160         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
35161         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
35162         Reported by Tom G. Christensen.
35163
35164 2008-12-26  Bruno Haible  <bruno@clisp.org>
35165
35166         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
35167         i486, i586, i686.
35168
35169 2008-12-26  Bruno Haible  <bruno@clisp.org>
35170
35171         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
35172
35173 2008-12-26  Bruno Haible  <bruno@clisp.org>
35174
35175         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
35176         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
35177         not __STDC_CONSTANT_MACROS.
35178         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35179
35180 2008-12-25  Bruno Haible  <bruno@clisp.org>
35181
35182         Add support for universal builds to vasnprintf.
35183         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
35184         universal builds, guess no.
35185         * modules/vasnprintf-posix (Depends-on): Add multiarch.
35186         * modules/vasprintf-posix (Depends-on): Likewise.
35187         * modules/fprintf-posix (Depends-on): Likewise.
35188         * modules/vfprintf-posix (Depends-on): Likewise.
35189         * modules/snprintf-posix (Depends-on): Likewise.
35190         * modules/vsnprintf-posix (Depends-on): Likewise.
35191         * modules/sprintf-posix (Depends-on): Likewise.
35192         * modules/vsprintf-posix (Depends-on): Likewise.
35193         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35194         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35195         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35196         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35197         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35198         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35199         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35200
35201         Add support for universal builds to <inttypes.h>.
35202         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
35203         _SCNu64_PREFIX): In Apple
35204         universal builds, define directly, using _LP64.
35205         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
35206         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
35207         * modules/inttypes (Depends-on): Add multiarch.
35208         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35209
35210         Add support for universal builds to <stdint.h>.
35211         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
35212         universal builds, define directly, using _LP64.
35213         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
35214         Apple universal builds, don't test for the size and suffix of ptrdiff_t
35215         and size_t.
35216         * modules/stdint (Depends-on): Add multiarch.
35217         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35218
35219         New module 'multiarch'.
35220         * modules/multiarch: New file.
35221         * m4/multiarch.m4: New file.
35222
35223 2008-12-25  Bruno Haible  <bruno@clisp.org>
35224
35225         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
35226
35227 2008-12-25  Bruno Haible  <bruno@clisp.org>
35228
35229         * modules/btowc (License): Relicense under LGPLv2+.
35230         * modules/mbsinit (License): Likewise.
35231         * modules/mbrtowc (License): Likewise.
35232         * modules/wcrtomb (License): Likewise.
35233         * modules/streq (License): Likewise.
35234         Reported by David Lutterkort <lutter@redhat.com>.
35235
35236 2008-12-23  Bruno Haible  <bruno@clisp.org>
35237
35238         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
35239
35240 2008-12-23  Bruno Haible  <bruno@clisp.org>
35241
35242         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
35243         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
35244         GETADDRINFO_LIB, not in LIBS.
35245         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
35246         * modules/canon-host (Link): Likewise.
35247         * NEWS: Mention the change.
35248         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
35249         GETADDRINFO_LIB.
35250
35251 2008-12-22  Bruno Haible  <bruno@clisp.org>
35252
35253         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
35254         * doc/posix-functions/iswalpha_l.texi: Likewise.
35255         * doc/posix-functions/iswblank_l.texi: Likewise.
35256         * doc/posix-functions/iswcntrl_l.texi: Likewise.
35257         * doc/posix-functions/iswctype_l.texi: Likewise.
35258         * doc/posix-functions/iswdigit_l.texi: Likewise.
35259         * doc/posix-functions/iswgraph_l.texi: Likewise.
35260         * doc/posix-functions/iswlower_l.texi: Likewise.
35261         * doc/posix-functions/iswprint_l.texi: Likewise.
35262         * doc/posix-functions/iswpunct_l.texi: Likewise.
35263         * doc/posix-functions/iswspace_l.texi: Likewise.
35264         * doc/posix-functions/iswupper_l.texi: Likewise.
35265         * doc/posix-functions/iswxdigit_l.texi: Likewise.
35266         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
35267         * doc/posix-functions/open_wmemstream.texi: Likewise.
35268         * doc/posix-functions/swscanf.texi: Likewise.
35269         * doc/posix-functions/towctrans_l.texi: Likewise.
35270         * doc/posix-functions/towlower.texi: Likewise.
35271         * doc/posix-functions/towlower_l.texi: Likewise.
35272         * doc/posix-functions/towupper.texi: Likewise.
35273         * doc/posix-functions/towupper_l.texi: Likewise.
35274         * doc/posix-functions/vfwprintf.texi: Likewise.
35275         * doc/posix-functions/vfwscanf.texi: Likewise.
35276         * doc/posix-functions/vswscanf.texi: Likewise.
35277         * doc/posix-functions/vwprintf.texi: Likewise.
35278         * doc/posix-functions/vwscanf.texi: Likewise.
35279         * doc/posix-functions/wcpcpy.texi: Likewise.
35280         * doc/posix-functions/wcpncpy.texi: Likewise.
35281         * doc/posix-functions/wcscasecmp.texi: Likewise.
35282         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
35283         * doc/posix-functions/wcscoll_l.texi: Likewise.
35284         * doc/posix-functions/wcsdup.texi: Likewise.
35285         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35286         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
35287         * doc/posix-functions/wcsnlen.texi: Likewise.
35288         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35289         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
35290         * doc/posix-functions/wctrans_l.texi: Likewise.
35291         * doc/posix-functions/wctype_l.texi: Likewise.
35292         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
35293         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
35294         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
35295         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
35296         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
35297         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
35298         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
35299         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
35300         * doc/glibc-functions/wcschrnul.texi: Likewise.
35301         * doc/glibc-functions/wcsftime_l.texi: Likewise.
35302         * doc/glibc-functions/wcstod_l.texi: Likewise.
35303         * doc/glibc-functions/wcstof_l.texi: Likewise.
35304         * doc/glibc-functions/wcstol_l.texi: Likewise.
35305         * doc/glibc-functions/wcstold_l.texi: Likewise.
35306         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35307         * doc/glibc-functions/wcstoq.texi: Likewise.
35308         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35309         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35310         * doc/glibc-functions/wcstouq.texi: Likewise.
35311         * doc/glibc-functions/wmempcpy.texi: Likewise.
35312
35313 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
35314             Eric Blake  <ebb9@byu.net>
35315             Paolo Bonzini  <bonzini@gnu.org>
35316             Bruno Haible  <bruno@clisp.org>
35317
35318         Make c-stack work on Haiku.
35319         * lib/c-stack.c (SA_ONSTACK): Define fallback.
35320         (c_stack_action): Use SA_ONSTACK flag.
35321
35322 2008-12-22  Bruno Haible  <bruno@clisp.org>
35323
35324         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
35325
35326 2008-12-22  Bruno Haible  <bruno@clisp.org>
35327
35328         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
35329         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
35330         being overridden.
35331         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
35332         New macros.
35333         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
35334         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
35335         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
35336         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
35337
35338 2008-12-22  Bruno Haible  <bruno@clisp.org>
35339
35340         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
35341         from test code.
35342
35343 2008-12-22  Eric Blake  <ebb9@byu.net>
35344
35345         Avoid gcc warnings on cygwin.
35346         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
35347         Avoid unused variable.
35348         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
35349         Likewise.
35350
35351 2008-12-22  Bruno Haible  <bruno@clisp.org>
35352
35353         Remove HAVE_MBRTOWC conditionals.
35354         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
35355         (mbscasecmp): Assume mbrtowc function.
35356         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
35357         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
35358         * lib/mbschr.c: Include mbuiter.h unconditionally.
35359         (mbschr): Assume mbrtowc function.
35360         * lib/mbscspn.c: Include mbuiter.h unconditionally.
35361         (mbscspn): Assume mbrtowc function.
35362         * lib/mbslen.c: Include mbuiter.h unconditionally.
35363         (mbslen): Assume mbrtowc function.
35364         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
35365         (mbsncasecmp): Assume mbrtowc function.
35366         * lib/mbsnlen.c: Include mbiter.h unconditionally.
35367         (mbsnlen): Assume mbrtowc function.
35368         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
35369         (mbspbrk): Assume mbrtowc function.
35370         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
35371         (mbspcasecmp): Assume mbrtowc function.
35372         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
35373         (mbsrchr): Assume mbrtowc function.
35374         * lib/mbssep.c: Include mbuiter.h unconditionally.
35375         (mbssep): Assume mbrtowc function.
35376         * lib/mbsspn.c: Include mbuiter.h unconditionally.
35377         (mbsspn): Assume mbrtowc function.
35378         * lib/mbsstr.c: Include mbuiter.h unconditionally.
35379         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
35380         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
35381         (mbstok_r): Assume mbrtowc function.
35382         * lib/propername.c: Include mbuiter.h unconditionally.
35383         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
35384         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
35385         (trim2): Assume mbrtowc function.
35386         * lib/mbswidth.c (mbsinit): Remove fallback definition.
35387         (mbsnwidth): Assume mbrtowc function.
35388         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
35389         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
35390         fallback definitions.
35391         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
35392
35393 2008-12-22  Bruno Haible  <bruno@clisp.org>
35394
35395         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
35396
35397 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
35398
35399         * modules/regex: Request emulations for the mb*/wc* functions we need.
35400         * m4/regex.m4: Don't look for those functions here.
35401         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
35402
35403 2008-12-22  Bruno Haible  <bruno@clisp.org>
35404
35405         * modules/fnmatch (Depends-on): Remove duplicated dependency.
35406
35407 2008-12-21  Bruno Haible  <bruno@clisp.org>
35408
35409         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
35410         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
35411         (Include): Remove conditionalization.
35412         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
35413         (Include): Remove conditionalization.
35414         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
35415         (Include): Remove conditionalization.
35416         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
35417         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35418         * NEWS: Mention the change.
35419         Reported by Alan Hourihane <alanh@fairlite.co.uk>
35420         via Sergey Poznyakoff <gray@gnu.org.ua>.
35421
35422 2008-12-21  Bruno Haible  <bruno@clisp.org>
35423
35424         * MODULES.html.sh (Extended multibyte and wide character utilities
35425         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
35426         wcrtomb, wcsrtombs.
35427         (Support for systems lacking POSIX:2008): Add accept, bind, close,
35428         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
35429         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
35430         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
35431
35432 2008-12-21  Bruno Haible  <bruno@clisp.org>
35433
35434         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
35435
35436 2008-12-21  Bruno Haible  <bruno@clisp.org>
35437
35438         * modules/wcsnrtombs-tests: New file.
35439         * tests/test-wcsnrtombs1.sh: New file.
35440         * tests/test-wcsnrtombs2.sh: New file.
35441         * tests/test-wcsnrtombs3.sh: New file.
35442         * tests/test-wcsnrtombs4.sh: New file.
35443         * tests/test-wcsnrtombs.c: New file.
35444
35445         New module 'wcsnrtombs'.
35446         * lib/wchar.in.h (wcsnrtombs): New declaration.
35447         * lib/wcsnrtombs.c: New file.
35448         * lib/wcsrtombs-state.c: New file.
35449         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
35450         (internal_state): Remove variable.
35451         * m4/wcsnrtombs.m4: New file.
35452         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
35453         compilation units.
35454         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
35455         HAVE_WCSNRTOMBS.
35456         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
35457         HAVE_WCSNRTOMBS.
35458         * modules/wcsnrtombs: New file.
35459         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
35460         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
35461
35462 2008-12-21  Bruno Haible  <bruno@clisp.org>
35463
35464         * modules/wcsrtombs-tests: New file.
35465         * tests/test-wcsrtombs1.sh: New file.
35466         * tests/test-wcsrtombs2.sh: New file.
35467         * tests/test-wcsrtombs3.sh: New file.
35468         * tests/test-wcsrtombs4.sh: New file.
35469         * tests/test-wcsrtombs.c: New file.
35470
35471         New module 'wcsrtombs'.
35472         * lib/wchar.in.h (wcsrtombs): New declaration.
35473         * lib/wcsrtombs.c: New file.
35474         * m4/wcsrtombs.m4: New file.
35475         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
35476         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
35477         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
35478         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
35479         * modules/wcsrtombs: New file.
35480         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
35481         bugs.
35482
35483 2008-12-21  Bruno Haible  <bruno@clisp.org>
35484
35485         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
35486         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
35487         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
35488         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
35489         if not correct.
35490         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
35491         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
35492         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35493         m4/locale-zh.m4, m4/codeset.m4.
35494         * doc/posix-functions/wcrtomb.texi: Document the bug.
35495
35496 2008-12-21  Bruno Haible  <bruno@clisp.org>
35497
35498         Work around a btowc() bug on IRIX 6.5.
35499         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
35500         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
35501         REPLACE_WTOBC if not.
35502         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
35503         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
35504         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
35505
35506 2008-12-21  Bruno Haible  <bruno@clisp.org>
35507
35508         * modules/wcrtomb-tests: New file.
35509         * tests/test-wcrtomb.sh: New file.
35510         * tests/test-wcrtomb.c: New file.
35511
35512         New module 'wcrtomb'.
35513         * lib/wchar.in.h (wcrtomb): New declaration.
35514         * lib/wcrtomb.c: New file.
35515         * m4/wcrtomb.m4: New file.
35516         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
35517         HAVE_WCRTOMB.
35518         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
35519         HAVE_WCRTOMB.
35520         * modules/wcrtomb: New file.
35521         * doc/posix-functions/wcrtomb.texi: Mention the new module.
35522
35523 2008-12-21  Bruno Haible  <bruno@clisp.org>
35524
35525         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
35526         * modules/mbsrtowcs (Files): Likewise.
35527         * modules/wctob (Files): Likewise.
35528         * modules/c-strcase-tests (Files): Likewise.
35529         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35530         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35531         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35532         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35533         * modules/vasnprintf-posix-tests (Files): Likewise.
35534
35535 2008-12-21  William Pursell  <bill.pursell@gmail.com>
35536
35537         gitlog-to-changelog: pass all command-line arguments to git-log
35538         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
35539         it is sometimes convenient to filter the commits in various ways.
35540         gitlog-to-changelog only allows --since to specify a start date,
35541         but git-log itself supports many other filtering mechanisms.
35542         At the moment, I want to filter by branch name.  Rather than
35543         adding a --branch option to gitlog-to-changelog, it seems more
35544         flexible to simply pass all options directly to git-log and let
35545         git do the work.  Notice that this effectively makes --since a
35546         redundant option for gitlog-to-changelog, but removing it would
35547         require current usage to change since calls would then require
35548         an additional '--'.
35549
35550 2008-12-21  Bruno Haible  <bruno@clisp.org>
35551
35552         * modules/mbsnrtowcs-tests: New file.
35553         * tests/test-mbsnrtowcs1.sh: New file.
35554         * tests/test-mbsnrtowcs2.sh: New file.
35555         * tests/test-mbsnrtowcs3.sh: New file.
35556         * tests/test-mbsnrtowcs4.sh: New file.
35557         * tests/test-mbsnrtowcs.c: New file.
35558
35559         New module 'mbsnrtowcs'.
35560         * lib/wchar.in.h (mbsnrtowcs): New declaration.
35561         * lib/mbsnrtowcs.c: New file.
35562         * lib/mbsrtowcs-state.c: New file.
35563         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
35564         (internal_state): Remove variable.
35565         * m4/mbsnrtowcs.m4: New file.
35566         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
35567         compilation units.
35568         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
35569         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
35570         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
35571         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
35572         * modules/mbsnrtowcs: New file.
35573         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
35574         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
35575         portability problem.
35576
35577 2008-12-21  Bruno Haible  <bruno@clisp.org>
35578
35579         Work around mbsrtowcs bug.
35580         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
35581         (gl_FUNC_MBSRTOWCS): Invoke it.
35582         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35583         m4/locale-zh.m4.
35584         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
35585
35586 2008-12-21  Bruno Haible  <bruno@clisp.org>
35587
35588         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
35589
35590 2008-12-21  Bruno Haible  <bruno@clisp.org>
35591
35592         Update doc for AIX.
35593         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
35594         16-bit wchar_t type.
35595         * doc/posix-functions/btowc.texi: Likewise.
35596         * doc/posix-functions/fgetwc.texi: Likewise.
35597         * doc/posix-functions/fgetws.texi: Likewise.
35598         * doc/posix-functions/fputwc.texi: Likewise.
35599         * doc/posix-functions/fputws.texi: Likewise.
35600         * doc/posix-functions/fwide.texi: Likewise.
35601         * doc/posix-functions/fwprintf.texi: Likewise.
35602         * doc/posix-functions/fwscanf.texi: Likewise.
35603         * doc/posix-functions/getwchar.texi: Likewise.
35604         * doc/posix-functions/getwc.texi: Likewise.
35605         * doc/posix-functions/iswalnum.texi: Likewise.
35606         * doc/posix-functions/iswalpha.texi: Likewise.
35607         * doc/posix-functions/iswblank.texi: Likewise.
35608         * doc/posix-functions/iswcntrl.texi: Likewise.
35609         * doc/posix-functions/iswctype.texi: Likewise.
35610         * doc/posix-functions/iswdigit.texi: Likewise.
35611         * doc/posix-functions/iswgraph.texi: Likewise.
35612         * doc/posix-functions/iswlower.texi: Likewise.
35613         * doc/posix-functions/iswprint.texi: Likewise.
35614         * doc/posix-functions/iswpunct.texi: Likewise.
35615         * doc/posix-functions/iswspace.texi: Likewise.
35616         * doc/posix-functions/iswupper.texi: Likewise.
35617         * doc/posix-functions/iswxdigit.texi: Likewise.
35618         * doc/posix-functions/mbrtowc.texi: Likewise.
35619         * doc/posix-functions/mbsrtowcs.texi: Likewise.
35620         * doc/posix-functions/mbstowcs.texi: Likewise.
35621         * doc/posix-functions/mbtowc.texi: Likewise.
35622         * doc/posix-functions/putwchar.texi: Likewise.
35623         * doc/posix-functions/putwc.texi: Likewise.
35624         * doc/posix-functions/swprintf.texi: Likewise.
35625         * doc/posix-functions/tolower.texi: Likewise.
35626         * doc/posix-functions/toupper.texi: Likewise.
35627         * doc/posix-functions/towctrans.texi: Likewise.
35628         * doc/posix-functions/ungetwc.texi: Likewise.
35629         * doc/posix-functions/vswprintf.texi: Likewise.
35630         * doc/posix-functions/wcrtomb.texi: Likewise.
35631         * doc/posix-functions/wcscat.texi: Likewise.
35632         * doc/posix-functions/wcschr.texi: Likewise.
35633         * doc/posix-functions/wcscmp.texi: Likewise.
35634         * doc/posix-functions/wcscoll.texi: Likewise.
35635         * doc/posix-functions/wcscpy.texi: Likewise.
35636         * doc/posix-functions/wcscspn.texi: Likewise.
35637         * doc/posix-functions/wcsftime.texi: Likewise.
35638         * doc/posix-functions/wcslen.texi: Likewise.
35639         * doc/posix-functions/wcsncat.texi: Likewise.
35640         * doc/posix-functions/wcsncmp.texi: Likewise.
35641         * doc/posix-functions/wcsncpy.texi: Likewise.
35642         * doc/posix-functions/wcspbrk.texi: Likewise.
35643         * doc/posix-functions/wcsrchr.texi: Likewise.
35644         * doc/posix-functions/wcsrtombs.texi: Likewise.
35645         * doc/posix-functions/wcsspn.texi: Likewise.
35646         * doc/posix-functions/wcsstr.texi: Likewise.
35647         * doc/posix-functions/wcstod.texi: Likewise.
35648         * doc/posix-functions/wcstof.texi: Likewise.
35649         * doc/posix-functions/wcstoimax.texi: Likewise.
35650         * doc/posix-functions/wcstok.texi: Likewise.
35651         * doc/posix-functions/wcstold.texi: Likewise.
35652         * doc/posix-functions/wcstoll.texi: Likewise.
35653         * doc/posix-functions/wcstol.texi: Likewise.
35654         * doc/posix-functions/wcstombs.texi: Likewise.
35655         * doc/posix-functions/wcstoull.texi: Likewise.
35656         * doc/posix-functions/wcstoul.texi: Likewise.
35657         * doc/posix-functions/wcstoumax.texi: Likewise.
35658         * doc/posix-functions/wcswidth.texi: Likewise.
35659         * doc/posix-functions/wcsxfrm.texi: Likewise.
35660         * doc/posix-functions/wctob.texi: Likewise.
35661         * doc/posix-functions/wctomb.texi: Likewise.
35662         * doc/posix-functions/wctrans.texi: Likewise.
35663         * doc/posix-functions/wctype.texi: Likewise.
35664         * doc/posix-functions/wcwidth.texi: Likewise.
35665         * doc/posix-functions/wmemchr.texi: Likewise.
35666         * doc/posix-functions/wmemcmp.texi: Likewise.
35667         * doc/posix-functions/wmemcpy.texi: Likewise.
35668         * doc/posix-functions/wmemmove.texi: Likewise.
35669         * doc/posix-functions/wmemset.texi: Likewise.
35670         * doc/posix-functions/wprintf.texi: Likewise.
35671         * doc/posix-functions/wscanf.texi: Likewise.
35672
35673 2008-12-21  Bruno Haible  <bruno@clisp.org>
35674
35675         Update doc for HP-UX 11.11.
35676         * doc/posix-functions/btowc.texi: Clarify that the function is missing
35677         in HP-UX version 11.00, not in all versions of HP-UX 11.
35678         * doc/posix-functions/fwide.texi: Likewise.
35679         * doc/posix-functions/fwprintf.texi: Likewise.
35680         * doc/posix-functions/fwscanf.texi: Likewise.
35681         * doc/posix-functions/inet_ntop.texi: Likewise.
35682         * doc/posix-functions/inet_pton.texi: Likewise.
35683         * doc/posix-functions/mbrlen.texi: Likewise.
35684         * doc/posix-functions/mbrtowc.texi: Likewise.
35685         * doc/posix-functions/mbsinit.texi: Likewise.
35686         * doc/posix-functions/mbsrtowcs.texi: Likewise.
35687         * doc/posix-functions/swprintf.texi: Likewise.
35688         * doc/posix-functions/swscanf.texi: Likewise.
35689         * doc/posix-functions/towctrans.texi: Likewise.
35690         * doc/posix-functions/vfwprintf.texi: Likewise.
35691         * doc/posix-functions/vswprintf.texi: Likewise.
35692         * doc/posix-functions/vwprintf.texi: Likewise.
35693         * doc/posix-functions/wcrtomb.texi: Likewise.
35694         * doc/posix-functions/wcsrtombs.texi: Likewise.
35695         * doc/posix-functions/wcsstr.texi: Likewise.
35696         * doc/posix-functions/wctob.texi: Likewise.
35697         * doc/posix-functions/wctrans.texi: Likewise.
35698         * doc/posix-functions/wmemchr.texi: Likewise.
35699         * doc/posix-functions/wmemcmp.texi: Likewise.
35700         * doc/posix-functions/wmemcpy.texi: Likewise.
35701         * doc/posix-functions/wmemmove.texi: Likewise.
35702         * doc/posix-functions/wmemset.texi: Likewise.
35703         * doc/posix-functions/wprintf.texi: Likewise.
35704         * doc/posix-functions/wscanf.texi: Likewise.
35705
35706 2008-12-21  Bruno Haible  <bruno@clisp.org>
35707
35708         Work around a portability problem.
35709         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
35710         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
35711
35712 2008-12-20  Bruno Haible  <bruno@clisp.org>
35713
35714         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
35715         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
35716         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
35717         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
35718         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
35719
35720         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
35721         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
35722         set.
35723         (GNULIB_defined_mbstate_t): New macro.
35724         (mbsinit): Redefine if REPLACE_MBSINIT is set.
35725         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
35726         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
35727         reuses the system's mbrtowc function but works around the bugs.
35728         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
35729         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
35730         macros.
35731         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
35732         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
35733         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
35734         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
35735         REPLACE_MBSINIT if mbsinit needs to be overridden.
35736         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
35737         REPLACE_MBSINIT, REPLACE_MBRTOWC.
35738         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
35739         REPLACE_MBSINIT, REPLACE_MBRTOWC.
35740         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35741         m4/locale-zh.m4.
35742         (Depends): Add mbsinit.
35743         * modules/mbsinit (Depends): Add mbrtowc.
35744         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
35745
35746 2008-12-20  Bruno Haible  <bruno@clisp.org>
35747
35748         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
35749         so that there are no conversion errors on AIX.
35750         * tests/test-mbsrtowcs.c (main): LIkewise.
35751
35752 2008-12-20  Bruno Haible  <bruno@clisp.org>
35753
35754         Work around wctob bug on Solaris <= 9.
35755         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
35756         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
35757         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
35758         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
35759         * modules/wctob (Files): Add m4/locale-fr.m4.
35760         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
35761
35762 2008-12-20  Bruno Haible  <bruno@clisp.org>
35763
35764         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
35765         /dev/null.
35766         * tests/test-select-in.sh: Likewise.
35767         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35768
35769 2008-12-20  Bruno Haible  <bruno@clisp.org>
35770
35771         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
35772         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
35773         Cygwin 1.5.x.
35774
35775 2008-12-20  Bruno Haible  <bruno@clisp.org>
35776
35777         Ensure mbstate_t is defined on HP-UX 11.11.
35778         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
35779         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
35780         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
35781         AC_USE_SYSTEM_EXTENSIONS.
35782         * modules/fnmatch (Depends-on): Add extensions.
35783         * modules/mbrlen (Depends-on): Likewise.
35784         * modules/mbrtowc (Depends-on): Likewise.
35785         * modules/mbsinit (Depends-on): Likewise.
35786         * modules/mbsrtowcs (Depends-on): Likewise.
35787         * modules/mbswidth (Depends-on): Likewise.
35788         * modules/quotearg (Depends-on): Likewise.
35789         * modules/strftime (Depends-on): Likewise.
35790
35791 2008-12-20  Bruno Haible  <bruno@clisp.org>
35792
35793         Ensure wctob is declared on IRIX 6.5.
35794         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
35795         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
35796         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
35797         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
35798         of HAVE_WCTOB.
35799         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
35800         HAVE_WCTOB.
35801         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
35802
35803 2008-12-19  Bruno Haible  <bruno@clisp.org>
35804
35805         * modules/mbsrtowcs-tests: New file.
35806         * tests/test-mbsrtowcs1.sh: New file.
35807         * tests/test-mbsrtowcs2.sh: New file.
35808         * tests/test-mbsrtowcs3.sh: New file.
35809         * tests/test-mbsrtowcs4.sh: New file.
35810         * tests/test-mbsrtowcs.c: New file.
35811
35812         New module 'mbsrtowcs'.
35813         * lib/wchar.in.h (mbsrtowcs): New declaration.
35814         * lib/mbsrtowcs.c: New file.
35815         * m4/mbsrtowcs.m4: New file.
35816         * modules/mbsrtowcs: New file.
35817         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
35818         HAVE_MBSRTOWCS.
35819         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
35820         HAVE_MBSRTOWCS.
35821         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
35822
35823 2008-12-19  Bruno Haible  <bruno@clisp.org>
35824
35825         New module 'mbrlen'.
35826         * lib/wchar.in.h (mbrlen): New declaration.
35827         * lib/mbrlen.c: New file.
35828         * m4/mbrlen.m4: New file.
35829         * modules/mbrlen: New file.
35830         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
35831         HAVE_MBRLEN.
35832         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
35833         HAVE_MBRLEN.
35834         * doc/posix-functions/mbrlen.texi: Document the new module.
35835
35836 2008-12-19  Bruno Haible  <bruno@clisp.org>
35837
35838         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
35839         * modules/mbrtowc (Depends-on): Add verify.
35840         Suggested by Paul Eggert.
35841
35842 2008-12-18  Bruno Haible  <bruno@clisp.org>
35843
35844         * modules/mbsinit-tests: New file.
35845         * tests/test-mbsinit.sh: New file.
35846         * tests/test-mbsinit.c: New file.
35847
35848 2008-12-18  Bruno Haible  <bruno@clisp.org>
35849
35850         * modules/mbrtowc-tests: New file.
35851         * tests/test-mbrtowc1.sh: New file.
35852         * tests/test-mbrtowc2.sh: New file.
35853         * tests/test-mbrtowc3.sh: New file.
35854         * tests/test-mbrtowc4.sh: New file.
35855         * tests/test-mbrtowc.c: New file.
35856
35857         New module 'mbrtowc'.
35858         * lib/wchar.in.h (mbstate_t): Override when the system does not have
35859         mbsinit and mbrtowc.
35860         (mbrtowc): New declaration.
35861         * lib/mbrtowc.c: New file.
35862         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
35863         * modules/mbrtowc: New file.
35864         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
35865         HAVE_MBRTOWC.
35866         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
35867         HAVE_MBRTOWC.
35868         * doc/posix-functions/mbrtowc.texi: Document the new module.
35869
35870 2008-12-18  Bruno Haible  <bruno@clisp.org>
35871
35872         New module 'wctob'.
35873         * lib/wchar.in.h (wctob): New declaration.
35874         * lib/wctob.c: New file.
35875         * m4/wctob.m4: New file.
35876         * modules/wctob: New file.
35877         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
35878         HAVE_WCTOB.
35879         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
35880         * doc/posix-functions/wctob.texi: Document the new module.
35881
35882 2008-12-18  Bruno Haible  <bruno@clisp.org>
35883
35884         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
35885         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
35886
35887 2008-12-18  Simon Josefsson  <simon@josefsson.org>
35888
35889         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
35890         G. Christensen" <tgc@jupiterrise.com>.
35891
35892         * lib/flock.c: Need to include errno.h.  Reported by "Tom
35893         G. Christensen" <tgc@jupiterrise.com>.
35894
35895         * lib/flock.c: Need to include string.h.  Reported by "Tom
35896         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
35897         <ebb9@byu.net>.
35898
35899 2008-12-18  Bruno Haible  <bruno@clisp.org>
35900
35901         * m4/locale-ja.m4: New file, from GNU gettext.
35902
35903 2008-12-17  Bruno Haible  <bruno@clisp.org>
35904
35905         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
35906         Suggested by Eric Blake.
35907
35908 2008-12-17  Bruno Haible  <bruno@clisp.org>
35909
35910         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
35911
35912 2008-12-17  Bruno Haible  <bruno@clisp.org>
35913
35914         * lib/mbsinit.c: Include verify.h. Verify an assumption.
35915         * modules/mbsinit (Depends-on): Add verify.
35916         Suggested by Paul Eggert.
35917
35918 2008-12-17  Bruno Haible  <bruno@clisp.org>
35919
35920         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
35921         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
35922         gl_FUNC_MBRTOWC.
35923         * m4/mbiter.m4 (gl_MBITER): LIkewise.
35924         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
35925         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
35926         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
35927         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
35928         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
35929         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
35930         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
35931         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
35932         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
35933         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
35934         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
35935         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
35936         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
35937         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
35938         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
35939         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
35940         * modules/trim (configure.ac): Likewise.
35941
35942 2008-12-17  Bruno Haible  <bruno@clisp.org>
35943
35944         * modules/btowc-tests: New file.
35945         * tests/test-btowc1.sh: New file.
35946         * tests/test-btowc2.sh: New file.
35947         * tests/test-btowc.c: New file.
35948
35949         New module 'btowc'.
35950         * lib/wchar.in.h (btowc): New declaration.
35951         * lib/btowc.c: New file.
35952         * m4/btowc.m4: New file.
35953         * modules/btowc: New file.
35954         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
35955         HAVE_BTOWC.
35956         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
35957         * doc/posix-functions/btowc.texi: Document the new module.
35958
35959 2008-12-17  Bruno Haible  <bruno@clisp.org>
35960
35961         New module 'mbsinit'.
35962         * lib/wchar.in.h (mbsinit): New declaration.
35963         * lib/mbsinit.c: New file.
35964         * m4/mbsinit.m4: New file.
35965         * modules/mbsinit: New file.
35966         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
35967         HAVE_MBSINIT.
35968         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
35969         HAVE_MBSINIT.
35970         * doc/posix-functions/mbsinit.texi: Document the new module.
35971
35972 2008-12-16  Bruno Haible  <bruno@clisp.org>
35973
35974         * lib/unistd.in.h: Add comment.
35975         * tests/test-environ.c: Don't include <stdlib.h>.
35976
35977 2008-12-16  Bruno Haible  <bruno@clisp.org>
35978
35979         * lib/parse-duration.h (parse_duration): Document return value
35980         convention.
35981         * lib/parse-duration.c: Include specification header first. Add
35982         comments.
35983         (_): Remove macro.
35984         (parse_year_month_day, parse_hour_minute_second): Move side effects
35985         outside of strchr call.
35986         (parse_non_iso8601): Move side effects outside of isspace call.
35987         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
35988         call.
35989
35990 2008-12-16  Bruno Haible  <bruno@clisp.org>
35991
35992         * tests/test-parse-duration.sh: Produce no output when the test
35993         succeeds.
35994
35995 2008-12-16  Bruno Haible  <bruno@clisp.org>
35996
35997         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
35998         expressions.
35999
36000 2008-12-15  Bruno Haible  <bruno@clisp.org>
36001
36002         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
36003         * doc/glibc-functions/flistxattr.texi: Likewise.
36004         * doc/glibc-functions/fopencookie.texi: Likewise.
36005         * doc/glibc-functions/fremovexattr.texi: Likewise.
36006         * doc/glibc-functions/fsetxattr.texi: Likewise.
36007         * doc/glibc-functions/getxattr.texi: Likewise.
36008         * doc/glibc-functions/lgetxattr.texi: Likewise.
36009         * doc/glibc-functions/listxattr.texi: Likewise.
36010         * doc/glibc-functions/llistxattr.texi: Likewise.
36011         * doc/glibc-functions/lremovexattr.texi: Likewise.
36012         * doc/glibc-functions/lsetxattr.texi: Likewise.
36013         * doc/glibc-functions/removexattr.texi: Likewise.
36014         * doc/glibc-functions/setxattr.texi: Likewise.
36015         * doc/posix-functions/open_memstream.texi: Likewise.
36016
36017 2008-12-15  Eric Blake  <ebb9@byu.net>
36018
36019         Update doc for cygwin 1.7.
36020         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
36021         functions.
36022         * doc/posix-functions/fchmodat.texi: Likewise.
36023         * doc/posix-functions/fchownat.texi: Likewise.
36024         * doc/posix-functions/fdopendir.texi: Likewise.
36025         * doc/posix-functions/fmemopen.texi: Likewise.
36026         * doc/posix-functions/freeaddrinfo.texi: Likewise.
36027         * doc/posix-functions/fstatat.texi: Likewise.
36028         * doc/posix-functions/futimens.texi: Likewise.
36029         * doc/posix-functions/gai_strerror.texi: Likewise.
36030         * doc/posix-functions/getaddrinfo.texi: Likewise.
36031         * doc/posix-functions/getnameinfo.texi: Likewise.
36032         * doc/posix-functions/if_freenameindex.texi: Likewise.
36033         * doc/posix-functions/if_indextoname.texi: Likewise.
36034         * doc/posix-functions/if_nameindex.texi: Likewise.
36035         * doc/posix-functions/if_nametoindex.texi: Likewise.
36036         * doc/posix-functions/insque.texi: Likewise.
36037         * doc/posix-functions/linkat.texi: Likewise.
36038         * doc/posix-functions/llrint.texi: Likewise.
36039         * doc/posix-functions/llrintf.texi: Likewise.
36040         * doc/posix-functions/llrintl.texi: Likewise.
36041         * doc/posix-functions/lockf.texi: Likewise.
36042         * doc/posix-functions/lrintl.texi: Likewise.
36043         * doc/posix-functions/mkdirat.texi: Likewise.
36044         * doc/posix-functions/mkfifoat.texi: Likewise.
36045         * doc/posix-functions/mknodat.texi: Likewise.
36046         * doc/posix-functions/mq_close.texi: Likewise.
36047         * doc/posix-functions/mq_getattr.texi: Likewise.
36048         * doc/posix-functions/mq_notify.texi: Likewise.
36049         * doc/posix-functions/mq_open.texi: Likewise.
36050         * doc/posix-functions/mq_receive.texi: Likewise.
36051         * doc/posix-functions/mq_send.texi: Likewise.
36052         * doc/posix-functions/mq_setattr.texi: Likewise.
36053         * doc/posix-functions/mq_timedreceive.texi: Likewise.
36054         * doc/posix-functions/mq_timedsend.texi: Likewise.
36055         * doc/posix-functions/mq_unlink.texi: Likewise.
36056         * doc/posix-functions/open_memstream.texi: Likewise.
36057         * doc/posix-functions/openat.texi: Likewise.
36058         * doc/posix-functions/posix_fadvise.texi: Likewise.
36059         * doc/posix-functions/posix_fallocate.texi: Likewise.
36060         * doc/posix-functions/posix_madvise.texi: Likewise.
36061         * doc/posix-functions/posix_memalign.texi: Likewise.
36062         * doc/posix-functions/posix_openpt.texi: Likewise.
36063         * doc/posix-functions/readlinkat.texi: Likewise.
36064         * doc/posix-functions/remque.texi: Likewise.
36065         * doc/posix-functions/renameat.texi: Likewise.
36066         * doc/posix-functions/rintl.texi: Likewise.
36067         * doc/posix-functions/sem_unlink.texi: Likewise.
36068         * doc/posix-functions/shm_open.texi: Likewise.
36069         * doc/posix-functions/shm_unlink.texi: Likewise.
36070         * doc/posix-functions/signgam.texi: Likewise.
36071         * doc/posix-functions/sigset.texi: Likewise.
36072         * doc/posix-functions/stpcpy.texi: Likewise.
36073         * doc/posix-functions/stpncpy.texi: Likewise.
36074         * doc/posix-functions/strerror.texi: Likewise.
36075         * doc/posix-functions/strtod.texi: Likewise.
36076         * doc/posix-functions/symlinkat.texi: Likewise.
36077         * doc/posix-functions/unlinkat.texi: Likewise.
36078         * doc/posix-functions/utimensat.texi: Likewise.
36079         * doc/glibc-functions/bindresvport.texi: Likewise.
36080         * doc/glibc-functions/dn_expand.texi: Likewise.
36081         * doc/glibc-functions/exp10.texi: Likewise.
36082         * doc/glibc-functions/exp10f.texi: Likewise.
36083         * doc/glibc-functions/fgetxattr.texi: Likewise.
36084         * doc/glibc-functions/flistxattr.texi: Likewise.
36085         * doc/glibc-functions/fopencookie.texi: Likewise.
36086         * doc/glibc-functions/freeifaddrs.texi: Likewise.
36087         * doc/glibc-functions/fremovexattr.texi: Likewise.
36088         * doc/glibc-functions/fsetxattr.texi: Likewise.
36089         * doc/glibc-functions/getifaddrs.texi: Likewise.
36090         * doc/glibc-functions/getxattr.texi: Likewise.
36091         * doc/glibc-functions/lgetxattr.texi: Likewise.
36092         * doc/glibc-functions/listxattr.texi: Likewise.
36093         * doc/glibc-functions/llistxattr.texi: Likewise.
36094         * doc/glibc-functions/lremovexattr.texi: Likewise.
36095         * doc/glibc-functions/lsetxattr.texi: Likewise.
36096         * doc/glibc-functions/pow10.texi: Likewise.
36097         * doc/glibc-functions/pow10f.texi: Likewise.
36098         * doc/glibc-functions/rcmd_af.texi: Likewise.
36099         * doc/glibc-functions/removexattr.texi: Likewise.
36100         * doc/glibc-functions/res_init.texi: Likewise.
36101         * doc/glibc-functions/res_mkquery.texi: Likewise.
36102         * doc/glibc-functions/res_query.texi: Likewise.
36103         * doc/glibc-functions/res_querydomain.texi: Likewise.
36104         * doc/glibc-functions/res_send.texi: Likewise.
36105         * doc/glibc-functions/rresvport_af.texi: Likewise.
36106         * doc/glibc-functions/setxattr.texi: Likewise.
36107         * doc/glibc-functions/strcasestr.texi: Likewise.
36108
36109 2008-12-15  Bruno Haible  <bruno@clisp.org>
36110
36111         Fix compilation error on OSF/1 4.0.
36112         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
36113         <sys/time.h>, simply delegate to the system header.
36114         Reported by Daniel Richard G. <oss@teragram.com>.
36115
36116 2008-12-15  Bruno Haible  <bruno@clisp.org>
36117
36118         * doc/posix-functions/openat.texi: Mention the 'openat' module.
36119         * doc/posix-functions/fchmodat.texi: Likewise.
36120         * doc/posix-functions/fchownat.texi: Likewise.
36121         * doc/posix-functions/fdopendir.texi: Likewise.
36122         * doc/posix-functions/fstatat.texi: Likewise.
36123         * doc/posix-functions/mkdirat.texi: Likewise.
36124         * doc/posix-functions/unlinkat.texi: Likewise.
36125
36126 2008-12-14  Bruno Haible  <bruno@clisp.org>
36127
36128         Update doc for POSIX:2008.
36129         * doc/posix-functions/faccessat.texi: New file.
36130         * doc/posix-functions/fchmodat.texi: New file.
36131         * doc/posix-functions/fchownat.texi: New file.
36132         * doc/posix-functions/fdopendir.texi: New file.
36133         * doc/posix-functions/fstatat.texi: New file.
36134         * doc/posix-functions/futimens.texi: New file.
36135         * doc/posix-functions/linkat.texi: New file.
36136         * doc/posix-functions/mkdirat.texi: New file.
36137         * doc/posix-functions/mkfifoat.texi: New file.
36138         * doc/posix-functions/mknodat.texi: New file.
36139         * doc/posix-functions/open_wmemstream.texi: New file.
36140         * doc/posix-functions/openat.texi: New file.
36141         * doc/posix-functions/psiginfo.texi: New file.
36142         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
36143         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
36144         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
36145         * doc/posix-functions/readlinkat.texi: New file.
36146         * doc/posix-functions/renameat.texi: New file.
36147         * doc/posix-functions/strerror_l.texi: New file.
36148         * doc/posix-functions/symlinkat.texi: New file.
36149         * doc/posix-functions/unlinkat.texi: New file.
36150         * doc/posix-functions/utimensat.texi: New file.
36151         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36152
36153 2008-12-14  Bruno Haible  <bruno@clisp.org>
36154
36155         Update doc for POSIX:2008.
36156         * doc/posix-functions/alphasort.texi: Renamed from
36157         doc/glibc-functions/alphasort.texi.
36158         * doc/posix-functions/dirfd.texi: Renamed from
36159         doc/glibc-functions/dirfd.texi.
36160         * doc/posix-functions/dprintf.texi: Renamed from
36161         doc/glibc-functions/dprintf.texi.
36162         * doc/posix-functions/duplocale.texi: Renamed from
36163         doc/glibc-functions/duplocale.texi.
36164         * doc/posix-functions/fexecve.texi: Renamed from
36165         doc/glibc-functions/fexecve.texi.
36166         * doc/posix-functions/fmemopen.texi: Renamed from
36167         doc/glibc-functions/fmemopen.texi.
36168         * doc/posix-functions/freelocale.texi: Renamed from
36169         doc/glibc-functions/freelocale.texi.
36170         * doc/posix-functions/getdate_err.texi: Renamed from
36171         doc/glibc-functions/getdate_err.texi.
36172         * doc/posix-functions/isalnum_l.texi: Renamed from
36173         doc/glibc-functions/isalnum_l.texi.
36174         * doc/posix-functions/isalpha_l.texi: Renamed from
36175         doc/glibc-functions/isalpha_l.texi.
36176         * doc/posix-functions/isblank_l.texi: Renamed from
36177         doc/glibc-functions/isblank_l.texi.
36178         * doc/posix-functions/iscntrl_l.texi: Renamed from
36179         doc/glibc-functions/iscntrl_l.texi.
36180         * doc/posix-functions/isdigit_l.texi: Renamed from
36181         doc/glibc-functions/isdigit_l.texi.
36182         * doc/posix-functions/isgraph_l.texi: Renamed from
36183         doc/glibc-functions/isgraph_l.texi.
36184         * doc/posix-functions/islower_l.texi: Renamed from
36185         doc/glibc-functions/islower_l.texi.
36186         * doc/posix-functions/isprint_l.texi: Renamed from
36187         doc/glibc-functions/isprint_l.texi.
36188         * doc/posix-functions/ispunct_l.texi: Renamed from
36189         doc/glibc-functions/ispunct_l.texi.
36190         * doc/posix-functions/isspace_l.texi: Renamed from
36191         doc/glibc-functions/isspace_l.texi.
36192         * doc/posix-functions/isupper_l.texi: Renamed from
36193         doc/glibc-functions/isupper_l.texi.
36194         * doc/posix-functions/iswalnum_l.texi: Renamed from
36195         doc/glibc-functions/iswalnum_l.texi.
36196         * doc/posix-functions/iswalpha_l.texi: Renamed from
36197         doc/glibc-functions/iswalpha_l.texi.
36198         * doc/posix-functions/iswblank_l.texi: Renamed from
36199         doc/glibc-functions/iswblank_l.texi.
36200         * doc/posix-functions/iswcntrl_l.texi: Renamed from
36201         doc/glibc-functions/iswcntrl_l.texi.
36202         * doc/posix-functions/iswctype_l.texi: Renamed from
36203         doc/glibc-functions/iswctype_l.texi.
36204         * doc/posix-functions/iswdigit_l.texi: Renamed from
36205         doc/glibc-functions/iswdigit_l.texi.
36206         * doc/posix-functions/iswgraph_l.texi: Renamed from
36207         doc/glibc-functions/iswgraph_l.texi.
36208         * doc/posix-functions/iswlower_l.texi: Renamed from
36209         doc/glibc-functions/iswlower_l.texi.
36210         * doc/posix-functions/iswprint_l.texi: Renamed from
36211         doc/glibc-functions/iswprint_l.texi.
36212         * doc/posix-functions/iswpunct_l.texi: Renamed from
36213         doc/glibc-functions/iswpunct_l.texi.
36214         * doc/posix-functions/iswspace_l.texi: Renamed from
36215         doc/glibc-functions/iswspace_l.texi.
36216         * doc/posix-functions/iswupper_l.texi: Renamed from
36217         doc/glibc-functions/iswupper_l.texi.
36218         * doc/posix-functions/iswxdigit_l.texi: Renamed from
36219         doc/glibc-functions/iswxdigit_l.texi.
36220         * doc/posix-functions/isxdigit_l.texi: Renamed from
36221         doc/glibc-functions/isxdigit_l.texi.
36222         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
36223         doc/glibc-functions/mbsnrtowcs.texi.
36224         * doc/posix-functions/mkdtemp.texi: Renamed from
36225         doc/glibc-functions/mkdtemp.texi.
36226         * doc/posix-functions/newlocale.texi: Renamed from
36227         doc/glibc-functions/newlocale.texi.
36228         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
36229         doc/glibc-functions/nl_langinfo_l.texi.
36230         * doc/posix-functions/open_memstream.texi: Renamed from
36231         doc/glibc-functions/open_memstream.texi.
36232         * doc/posix-functions/opterr.texi: Renamed from
36233         doc/glibc-functions/opterr.texi.
36234         * doc/posix-functions/optind.texi: Renamed from
36235         doc/glibc-functions/optind.texi.
36236         * doc/posix-functions/optopt.texi: Renamed from
36237         doc/glibc-functions/optopt.texi.
36238         * doc/posix-functions/psignal.texi: Renamed from
36239         doc/glibc-functions/psignal.texi.
36240         * doc/posix-functions/scandir.texi: Renamed from
36241         doc/glibc-functions/scandir.texi.
36242         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
36243         doc/glibc-functions/sched_get_priority_min.texi.
36244         * doc/posix-functions/signgam.texi: Renamed from
36245         doc/glibc-functions/signgam.texi.
36246         * doc/posix-functions/stpcpy.texi: Renamed from
36247         doc/glibc-functions/stpcpy.texi.
36248         * doc/posix-functions/stpncpy.texi: Renamed from
36249         doc/glibc-functions/stpncpy.texi.
36250         * doc/posix-functions/strcasecmp_l.texi: Renamed from
36251         doc/glibc-functions/strcasecmp_l.texi.
36252         * doc/posix-functions/strcoll_l.texi: Renamed from
36253         doc/glibc-functions/strcoll_l.texi.
36254         * doc/posix-functions/strfmon_l.texi: Renamed from
36255         doc/glibc-functions/strfmon_l.texi.
36256         * doc/posix-functions/strftime_l.texi: Renamed from
36257         doc/glibc-functions/strftime_l.texi.
36258         * doc/posix-functions/strncasecmp_l.texi: Renamed from
36259         doc/glibc-functions/strncasecmp_l.texi.
36260         * doc/posix-functions/strndup.texi: Renamed from
36261         doc/glibc-functions/strndup.texi.
36262         * doc/posix-functions/strnlen.texi: Renamed from
36263         doc/glibc-functions/strnlen.texi.
36264         * doc/posix-functions/strsignal.texi: Renamed from
36265         doc/glibc-functions/strsignal.texi.
36266         * doc/posix-functions/strxfrm_l.texi: Renamed from
36267         doc/glibc-functions/strxfrm_l.texi.
36268         * doc/posix-functions/timer_gettime.texi: Renamed from
36269         doc/glibc-functions/timer_gettime.texi.
36270         * doc/posix-functions/tolower_l.texi: Renamed from
36271         doc/glibc-functions/tolower_l.texi.
36272         * doc/posix-functions/toupper_l.texi: Renamed from
36273         doc/glibc-functions/toupper_l.texi.
36274         * doc/posix-functions/towctrans_l.texi: Renamed from
36275         doc/glibc-functions/towctrans_l.texi.
36276         * doc/posix-functions/towlower_l.texi: Renamed from
36277         doc/glibc-functions/towlower_l.texi.
36278         * doc/posix-functions/towupper_l.texi: Renamed from
36279         doc/glibc-functions/towupper_l.texi.
36280         * doc/posix-functions/uselocale.texi: Renamed from
36281         doc/glibc-functions/uselocale.texi.
36282         * doc/posix-functions/vdprintf.texi: Renamed from
36283         doc/glibc-functions/vdprintf.texi.
36284         * doc/posix-functions/wcpcpy.texi:
36285         Renamed from doc/glibc-functions/wcpcpy.texi.
36286         * doc/posix-functions/wcpncpy.texi: Renamed from
36287         doc/glibc-functions/wcpncpy.texi.
36288         * doc/posix-functions/wcscasecmp.texi: Renamed from
36289         doc/glibc-functions/wcscasecmp.texi.
36290         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
36291         doc/glibc-functions/wcscasecmp_l.texi.
36292         * doc/posix-functions/wcscoll_l.texi: Renamed from
36293         doc/glibc-functions/wcscoll_l.texi.
36294         * doc/posix-functions/wcsdup.texi: Renamed from
36295         doc/glibc-functions/wcsdup.texi.
36296         * doc/posix-functions/wcsncasecmp.texi: Renamed from
36297         doc/glibc-functions/wcsncasecmp.texi.
36298         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
36299         doc/glibc-functions/wcsncasecmp_l.texi.
36300         * doc/posix-functions/wcsnlen.texi: Renamed from
36301         doc/glibc-functions/wcsnlen.texi.
36302         * doc/posix-functions/wcsnrtombs.texi: Renamed from
36303         doc/glibc-functions/wcsnrtombs.texi.
36304         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
36305         doc/glibc-functions/wcsxfrm_l.texi.
36306         * doc/posix-functions/wctrans_l.texi: Renamed from
36307         doc/glibc-functions/wctrans_l.texi.
36308         * doc/posix-functions/wctype_l.texi: Renamed from
36309         doc/glibc-functions/wctype_l.texi.
36310         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36311         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
36312         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
36313         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
36314         these subsections.
36315         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
36316         Remove sections.
36317
36318 2008-12-14  Bruno Haible  <bruno@clisp.org>
36319
36320         Update doc for POSIX:2008.
36321         * doc/posix-functions/*.texi: Update URL of POSIX specification.
36322
36323 2008-12-14  Bruno Haible  <bruno@clisp.org>
36324
36325         Update doc for POSIX:2008.
36326         * doc/pastposix-functions/bcmp.texi: Renamed from
36327         doc/posix-functions/bcmp.texi.
36328         * doc/pastposix-functions/bcopy.texi: Renamed from
36329         doc/posix-functions/bcopy.texi.
36330         * doc/pastposix-functions/bsd_signal.texi: Renamed from
36331         doc/posix-functions/bsd_signal.texi.
36332         * doc/pastposix-functions/bzero.texi: Renamed from
36333         doc/posix-functions/bzero.texi.
36334         * doc/pastposix-functions/ecvt.texi: Renamed from
36335         doc/posix-functions/ecvt.texi.
36336         * doc/pastposix-functions/fcvt.texi: Renamed from
36337         doc/posix-functions/fcvt.texi.
36338         * doc/pastposix-functions/ftime.texi: Renamed from
36339         doc/posix-functions/ftime.texi.
36340         * doc/pastposix-functions/gcvt.texi: Renamed from
36341         doc/posix-functions/gcvt.texi.
36342         * doc/pastposix-functions/getcontext.texi: Renamed from
36343         doc/posix-functions/getcontext.texi.
36344         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
36345         doc/posix-functions/gethostbyaddr.texi.
36346         * doc/pastposix-functions/gethostbyname.texi: Renamed from
36347         doc/posix-functions/gethostbyname.texi.
36348         * doc/pastposix-functions/getwd.texi: Renamed from
36349         doc/posix-functions/getwd.texi.
36350         * doc/pastposix-functions/h_errno.texi: Renamed from
36351         doc/posix-functions/h_errno.texi.
36352         * doc/pastposix-functions/index.texi: Renamed from
36353         doc/posix-functions/index.texi.
36354         * doc/pastposix-functions/makecontext.texi: Renamed from
36355         doc/posix-functions/makecontext.texi.
36356         * doc/pastposix-functions/mktemp.texi: Renamed from
36357         doc/posix-functions/mktemp.texi.
36358         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
36359         doc/posix-functions/pthread_attr_getstackaddr.texi.
36360         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
36361         doc/posix-functions/pthread_attr_setstackaddr.texi.
36362         * doc/pastposix-functions/rindex.texi: Renamed from
36363         doc/posix-functions/rindex.texi.
36364         * doc/pastposix-functions/scalb.texi: Renamed from
36365         doc/posix-functions/scalb.texi.
36366         * doc/pastposix-functions/setcontext.texi: Renamed from
36367         doc/posix-functions/setcontext.texi.
36368         * doc/pastposix-functions/swapcontext.texi: Renamed from
36369         doc/posix-functions/swapcontext.texi.
36370         * doc/pastposix-functions/ualarm.texi: Renamed from
36371         doc/posix-functions/ualarm.texi.
36372         * doc/pastposix-functions/usleep.texi: Renamed from
36373         doc/posix-functions/usleep.texi.
36374         * doc/pastposix-functions/vfork.texi: Renamed from
36375         doc/posix-functions/vfork.texi.
36376         * doc/pastposix-functions/wcswcs.texi: Renamed from
36377         doc/posix-functions/wcswcs.texi.
36378         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
36379         (Function Substitutes): Update.
36380
36381 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36382
36383         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
36384         m4/strerror.m4.
36385
36386 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36387             Bruno Haible  <bruno@clisp.org>
36388
36389         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
36390
36391 2008-12-13  Bruno Haible  <bruno@clisp.org>
36392
36393         * modules/strtoull (Depends-on): Remove unistd.
36394
36395 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36396
36397         * modules/strtoull (Depends-on): Add stdlib.
36398
36399 2008-12-11  Simon Josefsson  <simon@josefsson.org>
36400
36401         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
36402
36403 2008-12-10  Jim Meyering  <meyering@redhat.com>
36404
36405         gl_ASSERT: don't say assertions are disabled when they're not
36406         * m4/assert.m4 (gl_ASSERT): Do not make configure report
36407         "checking whether to enable assertions... no", when they are in
36408         fact enabled.  This is solely a bug in the output of configure.
36409         In spite of saying "no", NDEBUG was not defined in that case.
36410         Also, as noted by Eric Blake, leave assertions enabled upon
36411         --enable-assert=INVALID.
36412
36413 2008-12-10  Bruno Haible  <bruno@clisp.org>
36414
36415         Change MODULES.html to refer to POSIX:2008 where possible.
36416         * MODULES.html.sh (POSIX2008_URL): New variable.
36417         (posix_headers): Remove sys/timeb, ucontext.
36418         (posix2001_headers): New variable.
36419         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
36420         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
36421         index, makecontext, mktemp, pthread_attr_getstackaddr,
36422         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
36423         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
36424         (posix2001_functions): New variable.
36425         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
36426         otherwise.
36427
36428 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36429
36430         add missing include to parse-duration.c
36431         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
36432         * modules/parse-duration (Depends-on): Add xalloc.
36433
36434         fix sed script reading maint.mk
36435         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
36436         (syntax-check-rules): Use it.
36437
36438 2008-12-09  Bruno Haible  <bruno@clisp.org>
36439
36440         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
36441         MacOS X 10.4/PowerPC.
36442         Reported by Simon Josefsson.
36443
36444 2008-12-08  Jim Meyering  <meyering@redhat.com>
36445
36446         work around mingw's lack of some S_IF definitions
36447         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
36448         Reported by Simon Josefsson.
36449
36450 2008-12-08  Bruno Haible  <bruno@clisp.org>
36451
36452         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
36453         applied to variables. Needed on MacOS X 10.4/PowerPC.
36454         Reported by Simon Josefsson.
36455
36456 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
36457         and Eric Blake  <ebb9@byu.net>
36458
36459         assert: honor --enable-assert
36460         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
36461         order to honor --enable-assert, rather than treating it as a
36462         synonym for --disable-assert.
36463
36464 2008-12-08  Jim Meyering  <meyering@redhat.com>
36465
36466         * lib/posixtm.c: Remove now-useless declaration of mktime.
36467
36468         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
36469
36470 2008-12-07  Bruno Haible  <bruno@clisp.org>
36471
36472         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
36473         test_once): Mark functions as static.
36474         * tests/test-tls.c (test_tls): Likewise.
36475
36476 2008-12-07  Bruno Haible  <bruno@clisp.org>
36477
36478         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
36479         iconv_register_autodetect.
36480
36481 2008-12-07  Jim Meyering  <meyering@redhat.com>
36482
36483         posixtm.c: avoid a warning
36484         * lib/posixtm.c (posixtime): Don't initialize tm0.
36485         It's no longer needed to placate gcc4's -Wuninitialized,
36486         and the attempt to placate would elicit a new warning.
36487
36488         unicodeio.c: mark unused parameters
36489         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
36490         (fallback_failure_callback): Likewise.
36491
36492 2008-12-07  Bruno Haible  <bruno@clisp.org>
36493
36494         * gnulib-tool (func_create_testdir): When building the tests
36495         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
36496         Reported by Simon Josefsson.
36497
36498 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36499
36500         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
36501
36502 2008-12-06  Bruno Haible  <bruno@clisp.org>
36503
36504         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
36505         Suggested by Eric Blake.
36506
36507 2008-12-06  Bruno Haible  <bruno@clisp.org>
36508
36509         Fix a c-stack test failure on MacOS X.
36510         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
36511         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
36512         handler for SIGBUS as well.
36513         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
36514         install a signal handler for SIGBUS as well.
36515         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
36516
36517 2008-12-06  Bruno Haible  <bruno@clisp.org>
36518
36519         Advocacy documentation.
36520         * doc/gnulib-intro.texi (Benefits): New section.
36521         * doc/gnulib.texi: Update.
36522
36523 2008-12-06  Bruno Haible  <bruno@clisp.org>
36524
36525         Document the 'manywarnings' module.
36526         * doc/manywarnings.texi: New file.
36527         * doc/gnulib.texi: Include it.
36528
36529 2008-12-05  Eric Blake  <ebb9@byu.net>
36530
36531         tests: silence some gcc warnings
36532         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
36533         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
36534         type mismatches.
36535
36536 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36537             Bruno Haible  <bruno@clisp.org>
36538
36539         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
36540
36541 2008-11-29  Jim Meyering  <meyering@redhat.com>
36542
36543         unicodeio.c: mark unused parameters
36544         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
36545         (fallback_failure_callback): Likewise.
36546
36547         fts: fix a thinko
36548         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
36549         (set_stat_type): Return S_IF*-valued "type" directly.
36550         Prompted by James Youngman's spotting a related bug.
36551         Confirmed by further testing through find.
36552
36553         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
36554         * lib/fts.c (D_TYPE): Define.
36555         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
36556         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
36557         (s_ifmt_shift_bits): New function.
36558         (set_stat_type): New function.
36559         (fts_build): When not calling fts_stat, call set_stat_type
36560         to propagate dirent.d_type info to fts_read caller.
36561         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
36562         fts_statp->st_mode type information may be valid.
36563
36564 2008-11-28  Simon Josefsson  <simon@josefsson.org>
36565
36566         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
36567         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
36568         <sds@gnu.org>.
36569
36570 2008-11-20  Bruno Haible  <bruno@clisp.org>
36571
36572         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
36573         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
36574         INCLUDE_NEXT.
36575         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
36576         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
36577         * modules/math (Makefile.am): Substitute
36578         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
36579         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36580
36581 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
36582             Bruno Haible  <bruno@clisp.org>
36583
36584         * lib/stdint.in.h: Define all type macros so that their expansion is
36585         a single typedef'ed token. Fixes a compilation failure in Boost which
36586         does "using ::int8_t;".
36587
36588 2008-11-18  Simon Josefsson  <simon@josefsson.org>
36589
36590         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
36591         gl_MANYWARN_ALL_GCC.
36592         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
36593         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
36594         * modules/manywarnings: New file.
36595         * MODULES.html.sh: Mention manywarnings module.
36596
36597 2008-11-18  Bruno Haible  <bruno@clisp.org>
36598
36599         * doc/gnulib-tool.texi (Unit tests): New section.
36600
36601 2008-11-18  Simon Josefsson  <simon@josefsson.org>
36602
36603         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
36604         paths like 'lib/po/foo.po'.
36605
36606 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36607
36608         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
36609         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
36610
36611 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36612
36613         * m4/warnings.m4: Use CPPFLAGS to really check whether the
36614         parameter works.
36615
36616 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36617
36618         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
36619
36620 2008-11-17  Bruce Korb  <bkorb@gnu.org>
36621
36622         * modules/parse-duration-tests: New file.
36623         * tests/test-parse-duration.sh: New file.
36624         * tests/test-parse-duration.c: New file.
36625
36626         New module 'parse-duration'.
36627         * lib/parse-duration.h: New file.
36628         * lib/parse-duration.c: New file.
36629         * modules/parse-duration: New file.
36630
36631 2008-11-17  Bruno Haible  <bruno@clisp.org>
36632
36633         * tests/test-select-out.sh: Comment out the first pipe test.
36634         Reported by Simon Josefsson.
36635
36636 2008-11-17  Bruno Haible  <bruno@clisp.org>
36637
36638         * modules/getaddrinfo (Depends-on): Add servent, hostent.
36639         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
36640         gl_HOSTENT.
36641
36642 2008-11-17  Bruno Haible  <bruno@clisp.org>
36643
36644         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
36645         -lnetwork and -lnet. Needed for Haiku and BeOS.
36646
36647 2008-11-16  Bruno Haible  <bruno@clisp.org>
36648
36649         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
36650
36651 2008-11-16  Bruno Haible  <bruno@clisp.org>
36652
36653         Avoid test failure on Haiku.
36654         * tests/test-fsync.c: Include <errno.h>.
36655         (main): Don't require that fsync (0) fails.
36656
36657 2008-11-15  Bruno Haible  <bruno@clisp.org>
36658
36659         New module 'hostent'.
36660         * modules/hostent: New file.
36661         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
36662
36663 2008-11-15  Bruno Haible  <bruno@clisp.org>
36664
36665         New module 'servent'.
36666         * modules/servent: New file.
36667         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
36668
36669 2008-11-15  Bruno Haible  <bruno@clisp.org>
36670
36671         Avoid generating same test program with two different rules.
36672         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
36673         test-frexp to test-frexp-nolibm.
36674         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
36675         test-frexpl to test-frexpl-nolibm.
36676
36677 2008-11-15  Bruno Haible  <bruno@clisp.org>
36678
36679         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
36680         $(FREXPL_LIBM).
36681
36682 2008-11-15  Bruno Haible  <bruno@clisp.org>
36683
36684         * lib/netdb.in.h: Activate the definitions also when the system's
36685         <netdb.h> has 'struct addrinfo'.
36686         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
36687         EAI_OVERFLOW or AI_NUMERICSERV.
36688         * doc/posix-headers/netdb.texi: Document the problem.
36689
36690 2008-11-15  Bruno Haible  <bruno@clisp.org>
36691
36692         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
36693
36694         Make the 'sched' module work on platforms where <sched.h> exists but
36695         is incomplete (such as Haiku).
36696         * lib/sched.in.h; Include the system's <sched.h> if it exists.
36697         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
36698         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
36699         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
36700         HAVE_STRUCT_SCHED_PARAM.
36701         * modules/sched (Depends-on): Add include_next.
36702         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
36703         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
36704         * doc/posix-headers/sched.texi: Document the issue.
36705
36706 2008-11-13  Jim Meyering  <meyering@redhat.com>
36707
36708         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
36709         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
36710         test would fail due to the difference in the Report bugs to ...
36711         line.  The expected address is empty, "<>", while the actual
36712         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
36713
36714 2008-11-12  Bruno Haible  <bruno@clisp.org>
36715
36716         lstat: don't compile lstat.c on systems lacking lstat
36717         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
36718         which don't have lstat; this is handled by lib/sys_stat.in.h already.
36719         Reported by Daniel P. Berrange via Jim Meyering.
36720
36721 2008-11-12  Jim Meyering  <meyering@redhat.com>
36722
36723         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
36724
36725 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36726
36727         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
36728         instead.
36729
36730 2008-11-12  Bruno Haible  <bruno@clisp.org>
36731
36732         * lib/unicodeio.c: Include unistr.h.
36733         (utf8_wctomb): Remove function.
36734         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
36735
36736 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36737
36738         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
36739         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
36740         <bruno@clisp.org>.
36741         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
36742
36743 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36744
36745         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
36746         * doc/gnulib.texi: Add section for warnings.
36747
36748 2008-11-11  Bruno Haible  <bruno@clisp.org>
36749
36750         * lib/sockets.h: Add a comment.
36751
36752 2008-11-11  Karl Berry  <karl@gnu.org>
36753
36754         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
36755
36756 2008-11-11  Eric Blake  <ebb9@byu.net>
36757
36758         fdl.texi: avoid git symlinks
36759         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
36760
36761 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36762
36763         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
36764
36765 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36766
36767         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
36768         (gl_WARN_ADD): Substitute $2 if literal.
36769
36770 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36771
36772         * m4/warning.m4: Remove.
36773
36774 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36775
36776         * m4/warnings.m4: Almost complete rewrite. :-)
36777
36778 2008-11-10  Simon Josefsson  <simon@josefsson.org>
36779
36780         * modules/warnings: New module.
36781         * m4/warnings.m4: New file.
36782         * MODULES.html.sh: Mention warnings module.
36783         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
36784         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36785
36786 2008-11-10  Eric Blake  <ebb9@byu.net>
36787
36788         fdl.texi: make a symlink to the latest version
36789         * doc/standards.texi: Revert today's earlier change.
36790         * doc/fdl-1.2.texi: Rename from old fdl.texi...
36791         * doc/fdl.texi: ...and replace this with a symlink to the newer
36792         fdl-1.3.texi.
36793
36794 2008-11-10  Bruno Haible  <bruno@clisp.org>
36795
36796         * tests/test-select-fd.c (main): Accept the result file name as fourth
36797         argument.
36798         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
36799         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
36800
36801 2008-11-10  Bruno Haible  <bruno@clisp.org>
36802
36803         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
36804         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
36805         as autoconf-substituted macros.
36806         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
36807         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
36808         gl_NETDB_H_DEFAULTS. Set these variables.
36809         * modules/netdb (Makefile.am): Substitute these variables.
36810
36811 2008-11-10  Eric Blake  <ebb9@byu.net>
36812
36813         standards.texi: include correct file for FDL 1.3
36814         * doc/standards.texi (GNU Free Documentation License): Change
36815         include file to pull in FDL 1.3, not 1.2.
36816
36817         fdl.texi: revert accidental change to license
36818         * doc/fdl.texi: This is FDL 1.2, not 1.3.
36819
36820 2008-11-10  Bruno Haible  <bruno@clisp.org>
36821
36822         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
36823         cross-compiling guesses also when the native compile gives no result.
36824
36825 2008-11-10  Bruno Haible  <bruno@clisp.org>
36826
36827         * lib/spawni.c (__spawni): Force variable into the stack.
36828
36829 2008-11-10  Bruno Haible  <bruno@clisp.org>
36830
36831         Add support for Haiku.
36832         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
36833         glibc and BeOS, but also on Haiku.
36834         * lib/fpurge.c (fpurge): Likewise.
36835         * lib/freadable.c (freadable): Likewise.
36836         * lib/freadahead.c (freadahead): Likewise.
36837         * lib/freading.c (freading): Likewise.
36838         * lib/freadptr.c (freadptr): Likewise.
36839         * lib/freadseek.c (freadptrinc): Likewise.
36840         * lib/fseeko.c (rpl_fseeko): Likewise.
36841         * lib/fseterr.c (fseterr): Likewise.
36842         * lib/fwritable.c (fwritable): Likewise.
36843         * lib/fwriting.c (fwriting): Likewise.
36844         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
36845
36846 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
36847
36848         * lib/config.charset: Treat Haiku like BeOS.
36849
36850 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
36851
36852         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
36853         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
36854
36855 2008-11-08  Bruno Haible  <bruno@clisp.org>
36856
36857         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
36858         AC_CACHE_CHECK.
36859
36860 2008-11-08  Bruno Haible  <bruno@clisp.org>
36861
36862         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
36863
36864 2008-11-08  Bruno Haible  <bruno@clisp.org>
36865
36866         * tests/test-select-fd.c: New file.
36867         * tests/test-select-in.sh: New file.
36868         * tests/test-select-out.sh: New file.
36869         * tests/test-select-stdin.c: New file.
36870         * modules/select-tests (Files): Add the new files.
36871         (Depends-on): Add gettimeofday.
36872         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
36873         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
36874         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
36875
36876 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
36877             Bruno Haible  <bruno@clisp.org>
36878
36879         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
36880
36881 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
36882
36883         * build-aux/pmccabe2html: Added support for C++ source files.
36884
36885 2008-11-05  Ben Pfaff  <blp@gnu.org>
36886
36887         Fix lib/close.c build on Windows.
36888         * modules/close (Files): Add lib/w32sock.h.
36889
36890 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
36891
36892         Accept Bison's NEWS format.
36893         * build-aux/announce-gen (print_news_deltas): Tweak
36894         $re_prefix.
36895
36896 2008-11-04  Bruno Haible  <bruno@clisp.org>
36897
36898         * modules/random_r (Maintainer): Add glibc.
36899
36900 2008-11-04  Simon Josefsson  <simon@josefsson.org>
36901
36902         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
36903         by karl@freefriends.org (Karl Berry).
36904         * doc/alloca.texi: Likewise.
36905         * doc/c-ctype.texi: Likewise.
36906         * doc/c-strcase.texi: Likewise.
36907         * doc/c-strcaseeq.texi: Likewise.
36908         * doc/c-strcasestr.texi: Likewise.
36909         * doc/c-strstr.texi: Likewise.
36910         * doc/c-strtod.texi: Likewise.
36911         * doc/c-strtold.texi: Likewise.
36912         * doc/ctime.texi: Likewise.
36913         * doc/error.texi: Likewise.
36914         * doc/fdl.texi: Likewise.
36915         * doc/gcd.texi: Likewise.
36916         * doc/getdate.texi: Likewise.
36917         * doc/gnulib-intro.texi: Likewise.
36918         * doc/gnulib-tool.texi: Likewise.
36919         * doc/gnulib.texi: Likewise.
36920         * doc/inet_ntoa.texi: Likewise.
36921         * doc/maintain.texi: Likewise.
36922         * doc/make-stds.texi: Likewise.
36923         * doc/quote.texi: Likewise.
36924         * doc/regexprops-generic.texi: Likewise.
36925         * doc/standards.texi: Likewise.
36926         * doc/verify.texi: Likewise.
36927         * doc/visibility.texi: Likewise.
36928         * doc/gnulib.texi (GNU Free Documentation License): Include
36929         fdl-1.3.texi instead of fdl.texi.
36930
36931 2008-11-04  Simon Josefsson  <simon@josefsson.org>
36932
36933         * doc/fdl-1.3.texi: New file, from
36934         <http://www.gnu.org/licenses/fdl-1.3.texi>.
36935         * modules/fdl-1.3: Add.
36936         * MODULES.html.sh: Add fdl-1.3.
36937
36938 2008-11-03  Bruno Haible  <bruno@clisp.org>
36939
36940         Make determination of absolute name of header file work with AIX xlc.
36941         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
36942         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
36943         preprocessing.
36944         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36945         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
36946
36947 2008-11-03  Simon Josefsson  <simon@josefsson.org>
36948
36949         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
36950         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
36951         <ludo@gnu.org>.
36952
36953 2008-11-02  Bruno Haible  <bruno@clisp.org>
36954
36955         Mark 'strpbrk' obsolete.
36956         * modules/strpbrk (Status, Notice): New sections.
36957         * modules/strtok_r (Depends-on): Add strpbrk.
36958
36959 2008-11-02  Bruno Haible  <bruno@clisp.org>
36960
36961         Mark 'strdup' obsolete.
36962         * modules/strdup (Status, Notice): New sections.
36963         * modules/findprog (Depends-on): Add strdup.
36964         * modules/getaddrinfo (Depends-on): Likewise.
36965         * modules/localename (Depends-on): Likewise.
36966         * modules/relocatable-lib (Depends-on): Likewise.
36967         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
36968         * modules/relocatable-prog (Depends-on): Likewise.
36969         * modules/trim (Depends-on): Likewise.
36970         * modules/unictype/gen-ctype (Depends-on): Likewise.
36971         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
36972
36973 2008-11-02  Bruno Haible  <bruno@clisp.org>
36974
36975         Mark 'strcspn' obsolete.
36976         * modules/strcspn (Status, Notice): New sections.
36977
36978 2008-11-02  Bruno Haible  <bruno@clisp.org>
36979
36980         Mark 'rmdir' obsolete.
36981         * modules/rmdir (Status, Notice): New sections.
36982         * modules/clean-temp (Depends-on): Add rmdir.
36983         * modules/openat (Depends-on): Likewise.
36984
36985 2008-11-02  Bruno Haible  <bruno@clisp.org>
36986
36987         Mark 'raise' obsolete.
36988         * modules/raise (Status, Notice): New sections.
36989         (Include): Specify <signal.h>.
36990         * modules/stdio (Depends-on): Add raise.
36991         * modules/write (Depends-on): Likewise.
36992
36993 2008-11-02  Bruno Haible  <bruno@clisp.org>
36994
36995         Mark 'memset' obsolete.
36996         * modules/memset (Status, Notice): New sections.
36997
36998 2008-11-02  Bruno Haible  <bruno@clisp.org>
36999
37000         Mark 'memmove' obsolete.
37001         * modules/memmove (Status, Notice): New sections.
37002         * modules/argp (Depends-on): Add memmove.
37003         * modules/argz (Depends-on): Likewise.
37004         * modules/canonicalize (Depends-on): Likewise.
37005         * modules/canonicalize-lgpl (Depends-on): Likewise.
37006         * modules/fts (Depends-on): Likewise.
37007         * modules/getcwd (Depends-on): Likewise.
37008         * modules/human (Depends-on): Likewise.
37009         * modules/regex (Depends-on): Likewise.
37010         * modules/striconveh (Depends-on): Likewise.
37011         * modules/trim (Depends-on): Likewise.
37012         * modules/unistr/u8-move (Depends-on): Likewise.
37013         * modules/unistr/u16-move (Depends-on): Likewise.
37014         * modules/unistr/u32-move (Depends-on): Likewise.
37015
37016 2008-11-02  Bruno Haible  <bruno@clisp.org>
37017
37018         Mark 'memcpy' obsolete.
37019         * modules/memcpy (Status, Notice): New sections.
37020
37021 2008-11-02  Bruno Haible  <bruno@clisp.org>
37022
37023         Mark 'memcmp' obsolete.
37024         * modules/memcmp (Status, Notice): New sections.
37025         * modules/argmatch (Depends-on): Add memchr.
37026         * modules/backupfile (Depends-on): Likewise.
37027         * modules/c-strcasestr (Depends-on): Likewise.
37028         * modules/crypto/des (Depends-on): Likewise.
37029         * modules/csharpcomp (Depends-on): Likewise.
37030         * modules/fnmatch (Depends-on): Likewise.
37031         * modules/git-merge-changelog (Depends-on): Likewise.
37032         * modules/isnand (Depends-on): Likewise.
37033         * modules/isnand-nolibm (Depends-on): Likewise.
37034         * modules/isnanf (Depends-on): Likewise.
37035         * modules/isnanf-nolibm (Depends-on): Likewise.
37036         * modules/isnanl (Depends-on): Likewise.
37037         * modules/isnanl-nolibm (Depends-on): Likewise.
37038         * modules/mbchar (Depends-on): Likewise.
37039         * modules/memcoll (Depends-on): Likewise.
37040         * modules/quotearg (Depends-on): Likewise.
37041         * modules/regex (Depends-on): Likewise.
37042         * modules/relocatable-prog (Depends-on): Likewise.
37043         * modules/same (Depends-on): Likewise.
37044         * modules/signbit (Depends-on): Likewise.
37045         * modules/strcasestr-simple (Depends-on): Likewise.
37046         * modules/unictype/gen-ctype (Depends-on): Likewise.
37047         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37048         * modules/uniname/uniname (Depends-on): Likewise.
37049         * modules/unistr/u8-cmp (Depends-on): Likewise.
37050
37051 2008-11-02  Bruno Haible  <bruno@clisp.org>
37052
37053         Mark 'memchr' obsolete.
37054         * modules/memchr (Status, Notice): New sections.
37055         * modules/argp (Depends-on): Add memchr.
37056         * modules/base64 (Depends-on): Likewise.
37057         * modules/c-strcasestr (Depends-on): Likewise.
37058         * modules/chdir-long (Depends-on): Likewise.
37059         * modules/fnmatch (Depends-on): Likewise.
37060         * modules/getsubopt (Depends-on): Likewise.
37061         * modules/git-merge-changelog (Depends-on): Likewise.
37062         * modules/glob (Depends-on): Likewise.
37063         * modules/strcasestr-simple (Depends-on): Likewise.
37064         * modules/strnlen (Depends-on): Likewise.
37065
37066 2008-11-02  Bruno Haible  <bruno@clisp.org>
37067
37068         Mark 'atexit' obsolete.
37069         * modules/atexit (Status, Notice): New sections.
37070         * modules/chdir-long (Depends-on): Add atexit.
37071         * modules/wait-process (Depends-on): Likewise.
37072
37073 2008-11-02  Bruno Haible  <bruno@clisp.org>
37074
37075         * gnulib-tool: New option --with-obsolete.
37076         (func_usage): Document it.
37077         (func_modules_transitive_closure): Drop obsolete dependencies if
37078         incobsolete is not true.
37079         (func_import): Read and save the incobsolete variable to the cache.
37080
37081 2008-11-02  Bruno Haible  <bruno@clisp.org>
37082
37083         * modules/TEMPLATE-EXTENDED: New field 'Status'.
37084         * gnulib-tool: New option --extract-status.
37085         (func_usage): Document it.
37086         (sed_extract_prog): Recognize it.
37087         (func_get_status): New function.
37088
37089 2008-10-30  Simon Josefsson  <simon@josefsson.org>
37090
37091         * modules/sockets (License): Change from LGPL to LGPLv2+.
37092
37093 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37094
37095         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
37096
37097 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37098
37099         * MODULES.html.sh (Support for systems lacking POSIX:2001):
37100         Mention times and sys_times.
37101         * modules/sys_times, modules/sys_times-tests: New modules.
37102         * modules/times, modules/times-tests: Likewise
37103         * m4/sys_times_h.m4: New file.
37104         * lib/sys_times.in.h: Likewise
37105         * lib/times.c: Likewise.
37106         * tests/test-sys_times.c: Likewise.
37107         * tests/test-times.c: Likewise.
37108         * doc/posix-headers/sys_times.texi: Update.
37109         * doc/posix-functions/times.texi: Update.
37110
37111 2008-10-28  Jim Meyering  <meyering@redhat.com>
37112
37113         * modules/tempname (Depends-on): Add lstat.
37114
37115         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
37116
37117 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37118
37119         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
37120         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
37121         using idiom used elsewhere in gnulib.
37122
37123 2008-10-27  Jim Meyering  <meyering@redhat.com>
37124
37125         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
37126
37127 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37128
37129         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
37130         TESTS_ENVIRONMENT, for shell scripts that needs to call built
37131         programs.
37132         * tests/test-argp-2.sh: Use $EXEEXT when needed.
37133
37134 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37135
37136         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
37137
37138 2008-10-27  Bruno Haible  <bruno@clisp.org>
37139
37140         * tests/test-lstat.c: Include <stdio.h>.
37141
37142 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37143
37144         * modules/lstat-tests: New module.
37145         * tests/test-lstat.c: New file.
37146
37147 2008-10-26  Jim Meyering  <meyering@redhat.com>
37148
37149         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
37150
37151 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37152             Bruno Haible  <bruno@clisp.org>
37153
37154         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
37155         * modules/configmake (Include): Add a note that the include must come
37156         after all system headers.
37157         * lib/javaversion.c: Include configmake.h after all other includes.
37158
37159 2008-10-26  Bruno Haible  <bruno@clisp.org>
37160
37161         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
37162         HAVE_STRUCT_RANDOM_DATA to 1.
37163         (gl_STDLIB_H): Simplify.
37164
37165 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37166
37167         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
37168         substitute HAVE_STRUCT_RANDOM_DATA.
37169         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
37170         random_data.
37171         * modules/stdlib (Makefile.am): Substitute
37172         HAVE_STRUCT_RANDOM_DATA.
37173
37174 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37175
37176         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
37177         * doc/gnulib-intro.texi (Copyright): Likewise.
37178
37179 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37180
37181         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
37182         findings.
37183
37184 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
37185             Bruno Haible  <bruno@clisp.org>
37186
37187         * lib/unistd.in.h: Include <winsock2.h>.
37188         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
37189         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
37190         Provide dummy declarations.
37191         (gethostname): Override.
37192         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
37193         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
37194         gl_PREREQ_SYS_H_WINSOCK2.
37195         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
37196         * doc/posix-functions/gethostname.texi: More details.
37197
37198 2008-10-25  Bruno Haible  <bruno@clisp.org>
37199
37200         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37201         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
37202         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
37203
37204         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
37205         here ...
37206         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
37207         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
37208         gl_UNISTD_H_DEFAULTS.
37209
37210 2008-10-25  Eric Blake  <ebb9@byu.net>
37211
37212         signbit: avoid spurious compiler failure
37213         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
37214         declarations inside function.
37215
37216 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37217             Bruno Haible  <bruno@clisp.org>
37218
37219         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
37220         * modules/random_r (Depends-on): Add stdint.
37221
37222 2008-10-24  Bruno Haible  <bruno@clisp.org>
37223
37224         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
37225         Eggert.
37226         * modules/strerror (License): Likewise.
37227
37228 2008-10-24  Jim Meyering  <meyering@redhat.com>
37229
37230         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
37231         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
37232
37233 2008-10-24  Eric Blake  <ebb9@byu.net>
37234
37235         getgroups: fix compilation when getgroups is available
37236         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
37237         but with <config.h> override of getgroups disabled.
37238
37239 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37240
37241         * doc/gnulib.texi (Header files): Add note about C++ problems.
37242         Explained by Bruno Haible <bruno@clisp.org>.
37243
37244 2008-10-23  Bruno Haible  <bruno@clisp.org>
37245
37246         Define a dummy SA_NODEFER macro on Interix.
37247         * lib/signal.in.h (SA_NODEFER): Define fallback.
37248         Reported by Aleksey Cheusov <cheusov@tut.by> via
37249         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
37250
37251 2008-10-23  Bruno Haible  <bruno@clisp.org>
37252
37253         * modules/freadahead (License): Change to LGPLv2+.
37254         Suggested by Simon Josefsson.
37255
37256 2008-10-23  Jim Meyering  <meyering@redhat.com>
37257
37258         random_r: new module
37259         * modules/random_r: New file.
37260         * m4/random_r.m4: New file.
37261         * lib/random_r.c: New file, from glibc.
37262         * modules/random_r-tests: New file.
37263         * tests/test-random_r.c: New file.
37264         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
37265          Declare.
37266         (RAND_MAX): Define.
37267         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
37268         * modules/stdlib: Substitute them, too.
37269         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
37270         * doc/glibc-functions/initstate_r.texi: Mention the new module.
37271         * doc/glibc-functions/random_r.texi: Likewise.
37272         * doc/glibc-functions/setstate_r.texi: Likewise.
37273         * doc/glibc-functions/srandom_r.texi: Likewise.
37274         * config/srclist.txt: Mention it.
37275
37276 2008-10-23  David Lutterkort  <lutter@redhat.com>
37277
37278         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
37279         link requirement
37280
37281 2008-10-23  Jim Meyering  <meyering@redhat.com>
37282
37283         selinux-h: mark parameters of stub functions as intentionally unused
37284         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
37285         * lib/se-context.in.h: Likewise.
37286
37287 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37288
37289         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
37290
37291 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37292
37293         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
37294
37295 2008-10-22  Eric Blake  <ebb9@byu.net>
37296
37297         glthread/thread: avoid compiler warning
37298         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
37299         Add unreachable abort to silence compiler.
37300
37301 2008-10-22  Eric Blake  <ebb9@byu.net>
37302
37303         netdb: also supply struct addrinfo for cygwin 1.5.x
37304         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
37305         older cygwin.
37306         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
37307         cygwin.
37308         * doc/posix-headers/netdb.texi (netdb.h): Document this.
37309
37310 2008-10-22  Bruno Haible  <bruno@clisp.org>
37311
37312         * users.txt: Update entry about pspp.
37313
37314 2008-10-21  Bruno Haible  <bruno@clisp.org>
37315
37316         Simplification.
37317         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
37318         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
37319
37320         Simplification.
37321         * lib/ioctl.c (ioctl): Don't undefine.
37322         * lib/socket.c (socket): Don't undefine.
37323
37324         Remove unused module indicator macros.
37325         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
37326         GNULIB_$1 as a C macro.
37327
37328         * doc/posix-functions/close.texi: Undo last change.
37329         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
37330         Windows platforms.
37331
37332 2008-10-21  Bruno Haible  <bruno@clisp.org>
37333
37334         Add gethostname() declaration to <unistd.h>.
37335         * lib/unistd.in.h (gethostname): New declaration.
37336         * lib/gethostname.c: Include <unistd.h>.
37337         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
37338         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
37339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
37340         and HAVE_GETHOSTNAME.
37341         * modules/gethostname (Depends-on): Add unistd.
37342         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37343         (Include): Specify <unistd.h>.
37344         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
37345         HAVE_GETHOSTNAME.
37346         * tests/test-gethostname.c: Include <unistd.h> first.
37347
37348 2008-10-21  Bruno Haible  <bruno@clisp.org>
37349
37350         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
37351         * modules/select-tests (Depends-on): Likewise.
37352         Reported by Simon Josefsson.
37353
37354 2008-10-21  Simon Josefsson  <simon@josefsson.org>
37355
37356         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
37357         * lib/accept.c: New file, based on winsock.c.
37358         * lib/bind.c: New file, based on winsock.c.
37359         * lib/connect.c: New file, based on winsock.c.
37360         * lib/getpeername.c: New file, based on winsock.c.
37361         * lib/getsockname.c: New file, based on winsock.c.
37362         * lib/getsockopt.c: New file, based on winsock.c.
37363         * lib/ioctl.c: New file, based on winsock.c.
37364         * lib/listen.c: New file, based on winsock.c.
37365         * lib/recv.c: New file, based on winsock.c.
37366         * lib/recvfrom.c: New file, based on winsock.c.
37367         * lib/send.c: New file, based on winsock.c.
37368         * lib/sendto.c: New file, based on winsock.c.
37369         * lib/setsockopt.c: New file, based on winsock.c.
37370         * lib/shutdown.c: New file, based on winsock.c.
37371         * lib/socket.c: New file, based on winsock.c.
37372         * lib/w32sock.h: New file, based on winsock.c.
37373         * lib/winsock.c: Remove file.
37374         * modules/accept: Likewise.
37375         * modules/bind: Likewise.
37376         * modules/connect: Likewise.
37377         * modules/getpeername: Likewise.
37378         * modules/getsockname: Likewise.
37379         * modules/getsockopt: Likewise.
37380         * modules/ioctl: Likewise.
37381         * modules/listen: Likewise.
37382         * modules/recv: Likewise.
37383         * modules/recvfrom: Likewise.
37384         * modules/send: Likewise.
37385         * modules/sendto: Likewise.
37386         * modules/setsockopt: Likewise.
37387         * modules/shutdown: Likewise.
37388         * modules/socket: Use socket.c instead of winsock.c.
37389         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
37390         * doc/posix-functions/accept.texi: Doc fix.
37391         * doc/posix-functions/bind.texi: Doc fix.
37392         * doc/posix-functions/close.texi: Doc fix.
37393         * doc/posix-functions/connect.texi: Doc fix.
37394         * doc/posix-functions/getpeername.texi: Doc fix.
37395         * doc/posix-functions/getsockname.texi: Doc fix.
37396         * doc/posix-functions/getsockopt.texi: Doc fix.
37397         * doc/posix-functions/ioctl.texi: Doc fix.
37398         * doc/posix-functions/listen.texi: Doc fix.
37399         * doc/posix-functions/recv.texi: Doc fix.
37400         * doc/posix-functions/recvfrom.texi: Doc fix.
37401         * doc/posix-functions/send.texi: Doc fix.
37402         * doc/posix-functions/sendto.texi: Doc fix.
37403         * doc/posix-functions/setsockopt.texi: Doc fix.
37404         * doc/posix-functions/shutdown.texi: Doc fix.
37405         * doc/posix-functions/socket.texi: Doc fix.
37406
37407 2008-10-20  Bruno Haible  <bruno@clisp.org>
37408
37409         Take into account the role of SIGABRT_COMPAT on Windows 2008.
37410         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
37411         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
37412         as an alias for SIGABRT.
37413         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
37414         (sigaction): Map it to SIGABRT.
37415         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
37416
37417 2008-10-20  Bruno Haible  <bruno@clisp.org>
37418
37419         * lib/fts.c: Don't include lstat.h.
37420         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
37421
37422         Move the lstat() declaration to <sys/stat.h>.
37423         * lib/lstat.h: Remove file.
37424         * lib/sys_stat.in.h: Add special invocation convention.
37425         (lstat): New declaration.
37426         * lib/lstat.c (orig_lstat): New function.
37427         (rpl_lstat): Use orig_lstat instead of lstat.
37428         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
37429         AC_C_INLINE. Set REPLACE_LSTAT.
37430         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
37431         and REPLACE_LSTAT.
37432         * modules/lstat (Files): Remove lib/lstat.h.
37433         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37434         (Include): Specify <sys/stat.h> instead of lstat.h.
37435         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
37436         REPLACE_LSTAT.
37437         * NEWS: Mention the change.
37438
37439 2008-10-20  Bruno Haible  <bruno@clisp.org>
37440
37441         * modules/posix_spawn-tests: New file.
37442         * tests/test-posix_spawn3.c: New file.
37443
37444 2008-10-20  Bruno Haible  <bruno@clisp.org>
37445
37446         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
37447         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37448         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
37449         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37450         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
37451
37452 2008-10-20  Bruno Haible  <bruno@clisp.org>
37453
37454         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
37455         of posix_spawn on AIX 5.3.
37456
37457 2008-10-20  Bruno Haible  <bruno@clisp.org>
37458
37459         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
37460
37461 2008-10-20  Bruno Haible  <bruno@clisp.org>
37462
37463         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
37464         of AC_LANG_PROGRAM.
37465
37466 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37467
37468         * lib/netdb.in.h: Don't define GNU specific constants until they
37469         are supported or needed.  Reported by Bruno Haible
37470         <bruno@clisp.org>.
37471
37472 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37473
37474         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
37475
37476 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37477
37478         * lib/getaddrinfo.h: Remove file.
37479         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
37480         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
37481         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
37482         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
37483         * modules/netdb: Substitute GNULIB_GETADDRINFO.
37484         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
37485         * tests/test-getaddrinfo.c: Likewise.
37486         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
37487         * NEWS: Mention change.
37488
37489 2008-10-19  Bruno Haible  <bruno@clisp.org>
37490
37491         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
37492
37493 2008-10-19  Bruno Haible  <bruno@clisp.org>
37494
37495         * lib/wait-process.c: Include simply <sys/wait.h>.
37496         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
37497         WIFSTOPPED): Remove fallback definitions.
37498         * modules/wait-process (Depends-on): Add sys_wait.
37499
37500         New module 'sys_wait'.
37501         * modules/sys_wait: New file.
37502         * lib/sys_wait.in.h: New file, partially copied from
37503         lib/wait-process.c.
37504         * m4/sys_wait_h.m4: New file.
37505         * doc/posix-headers/sys_wait.texi: Mention the new module.
37506
37507 2008-10-19  Bruno Haible  <bruno@clisp.org>
37508
37509         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
37510
37511 2008-10-19  Bruno Haible  <bruno@clisp.org>
37512
37513         Assume that waitpid() fills an 'int' status, not a 'union wait'.
37514         * lib/wait-process.c (WAIT_T): Remove type.
37515         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
37516         (wait_subprocess): Update.
37517
37518 2008-10-19  Bruno Haible  <bruno@clisp.org>
37519
37520         New module 'atoll'.
37521         * modules/atoll: New file.
37522         * lib/stdlib.in.h (atoll): New declaration.
37523         * lib/atoll.c: New file, from glibc with modifications.
37524         * m4/atoll.m4: New file.
37525         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
37526         HAVE_ATOLL.
37527         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
37528         * doc/posix-functions/atoll.texi: Mention the new module.
37529
37530 2008-10-19  Bruno Haible  <bruno@clisp.org>
37531
37532         Add strtoull() declaration to <stdlib.h>.
37533         * lib/stdlib.in.h (strtoull): New declaration.
37534         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
37535         Set HAVE_STRTOULL.
37536         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
37537         HAVE_STRTOULL.
37538         * modules/strtoull (Depends-on): Add stdlib.
37539         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37540         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
37541         HAVE_STRTOULL.
37542
37543 2008-10-19  Bruno Haible  <bruno@clisp.org>
37544
37545         Add strtoll() declaration to <stdlib.h>.
37546         * lib/stdlib.in.h (strtoll): New declaration.
37547         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
37548         Set HAVE_STRTOLL.
37549         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
37550         HAVE_STRTOLL.
37551         * modules/strtoll (Depends-on): Add stdlib.
37552         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37553         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
37554
37555 2008-10-19  Bruno Haible  <bruno@clisp.org>
37556
37557         * modules/bcopy (Depends-on): Add strings.
37558         (Include): Specify <strings.h>.
37559
37560 2008-10-19  Bruno Haible  <bruno@clisp.org>
37561
37562         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
37563
37564 2008-10-19  Bruno Haible  <bruno@clisp.org>
37565
37566         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
37567         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
37568         mingw.
37569
37570 2008-10-19  Bruno Haible  <bruno@clisp.org>
37571
37572         * lib/atanl.c: Don't include isnanl.h.
37573         * lib/cosl.c: Likewise.
37574         * lib/ldexpl.c: Likewise.
37575         * lib/logl.c: Likewise.
37576         * lib/sinl.c: Likewise.
37577         * lib/sqrtl.c: Likewise.
37578         * lib/tanl.c: Likewise.
37579
37580         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
37581         * lib/isnanf.h: Remove file.
37582         * lib/isnand.h: Remove file.
37583         * lib/isnanl.h: Remove file.
37584         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
37585         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
37586         macros.
37587         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
37588         HAVE_ISNANF, don't define it as a C macro.
37589         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
37590         HAVE_ISNAND, don't define it as a C macro.
37591         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
37592         HAVE_ISNANL, don't define it as a C macro.
37593         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
37594         HAVE_ISNAN[FDL].
37595         * modules/isnanf (Files): Remove lib/isnanf.h.
37596         (Depends-on): Add math.
37597         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37598         (Include): Specify <math.h> instead of isnanf.h.
37599         * modules/isnand (Files): Remove lib/isnand.h.
37600         (Depends-on): Add math.
37601         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37602         (Include): Specify <math.h> instead of isnand.h.
37603         * modules/isnanl (Files): Remove lib/isnanl.h.
37604         (Depends-on): Add math.
37605         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37606         (Include): Specify <math.h> instead of isnanl.h.
37607         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
37608         HAVE_ISNAN[FDL].
37609         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
37610         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
37611         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
37612         * NEWS: Mention the change.
37613
37614 2008-10-18  Bruno Haible  <bruno@clisp.org>
37615
37616         Add getusershell(), setusershell(), endusershell() declarations to
37617         <unistd.h>.
37618         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
37619         declarations.
37620         * lib/getusershell.c: Include unistd.h.
37621         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
37622         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
37623         HAVE_GETUSERSHELL.
37624         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
37625         and HAVE_GETUSERSHELL.
37626         * modules/getusershell (Depends-on): Add unistd, extensions.
37627         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37628         (Include): Specify <unistd.h>.
37629         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
37630         HAVE_GETUSERSHELL.
37631
37632 2008-10-18  Bruno Haible  <bruno@clisp.org>
37633
37634         Add a getloadavg() declaration to <stdlib.h>.
37635         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
37636         getloadavg declaration.
37637         (getloadavg): New declaration.
37638         * lib/getloadavg.c: Include <stdlib.h> first.
37639         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
37640         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
37641         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
37642         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
37643         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
37644         * modules/getloadavg (Depends-on): Add stdlib, extensions.
37645         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37646         (Include): Specify <stdlib.h>.
37647         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
37648         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
37649
37650 2008-10-18  Bruno Haible  <bruno@clisp.org>
37651
37652         * lib/dirchownmod.c: Don't include lchmod.h.
37653
37654         Move the lchmod() declaration to <sys/stat.h>.
37655         * lib/lchmod.h: Remove file.
37656         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
37657         (lchmod): New declaration, moved here from lib/lchown.h.
37658         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
37659         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
37660         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
37661         and HAVE_LCHMOD.
37662         * modules/lchmod (Files): Remove lib/lchmod.h.
37663         (Depends-on): Add sys_stat, extensions.
37664         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37665         (Include): Specify <sys/stat.h> instead of lchmod.h.
37666         * modules/sys_stat (Depends-on): Add link-warning.
37667         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
37668         definition of GL_LINK_WARNING.
37669         * NEWS: Mention the change.
37670
37671 2008-10-18  Bruno Haible  <bruno@clisp.org>
37672
37673         * lib/fchdir.c: Don't include dirfd.h.
37674         * lib/fts.c: Likewise.
37675         * lib/getcwd.c: Likewise.
37676         * lib/glob.c: Likewise.
37677
37678         Move the dirfd() declaration to <dirent.h>.
37679         * lib/dirfd.h: Remove file.
37680         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
37681         (dirfd): New declaration.
37682         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
37683         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
37684         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
37685         HAVE_DECL_DIRFD.
37686         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
37687         HAVE_DECL_DIRFD.
37688         * modules/dirfd (Files): Remove lib/dirfd.h.
37689         (Depends-on): Add dirent, extensions.
37690         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
37691         (Include): Specify <dirent.h> instead of dirfd.h.
37692         * modules/dirent (Depends-on): Add link-warning.
37693         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
37694         definition of GL_LINK_WARNING.
37695         * NEWS: Mention the change.
37696
37697 2008-10-18  Bruno Haible  <bruno@clisp.org>
37698
37699         Move the euidaccess() declaration to <unistd.h>.
37700         * lib/euidaccess.h: Remove file.
37701         * lib/unistd.in.h (euidaccess): New declaration.
37702         * lib/euidaccess.c: Don't include euidaccess.h.
37703         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
37704         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
37705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
37706         and HAVE_EUIDACCESS.
37707         * modules/euidaccess (Files): Remove lib/euidaccess.h.
37708         (Depends-on): Add unistd.
37709         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37710         (Include): Specify <unistd.h> instead of euidaccess.h.
37711         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
37712         HAVE_EUIDACCESS.
37713         * NEWS: Mention the change.
37714
37715 2008-10-18  Bruno Haible  <bruno@clisp.org>
37716
37717         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
37718
37719         Move the getdomainname() declaration to <unistd.h>.
37720         * lib/getdomainname.h: Remove file.
37721         * lib/unistd.in.h (getdomainname): New declaration.
37722         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
37723         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
37724         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
37725         HAVE_GETDOMAINNAME.
37726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37727         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
37728         * modules/getdomainname (Files): Remove lib/getdomainname.h.
37729         (Depends-on): Add unistd, extensions.
37730         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37731         (Includes): Specify <unistd.h> instead of getdomainname.h.
37732         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
37733         HAVE_GETDOMAINNAME.
37734         * NEWS: Mention the change.
37735
37736 2008-10-18  Bruno Haible  <bruno@clisp.org>
37737
37738         * modules/dirent: New file.
37739         * m4/dirent_h.m4: New file.
37740         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
37741         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
37742         * modules/fchdir (Files): Remove lib/dirent.in.h.
37743         (Depends-on): Add dirent.
37744         (Makefile.am): Move rules to modules/dirent.
37745         * doc/posix-headers/dirent.texi: Mention the new module.
37746
37747 2008-10-18  Bruno Haible  <bruno@clisp.org>
37748
37749         Avoid -Wunused-parameter warnings in public gnulib header files.
37750         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
37751         macro.
37752         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
37753
37754 2008-10-18  Bruno Haible  <bruno@clisp.org>
37755
37756         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
37757         * doc/glibc-functions/error.texi: Mention the module 'error'.
37758         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
37759         * doc/glibc-functions/getdomainname.texi: Mention the module
37760         'getdomainname'.
37761         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
37762         * doc/glibc-functions/getpagesize.texi: Mention the module
37763         'getpagesize'.
37764         * doc/glibc-functions/getusershell.texi: Mention the module
37765         'getusershell'.
37766         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
37767         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
37768         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
37769         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
37770         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
37771         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
37772         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
37773         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
37774         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
37775         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
37776         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
37777         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
37778         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
37779         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
37780
37781 2008-10-17  Bruno Haible  <bruno@clisp.org>
37782
37783         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
37784         HP-UX and IRIX, use -0.0L.
37785         * tests/test-ceill.c (minus_zero): Likewise.
37786         * tests/test-floorl.c (minus_zero): Likewise.
37787         * tests/test-frexpl.c (minus_zero): Likewise.
37788         * tests/test-isnan.c (minus_zerol): Likewise.
37789         * tests/test-isnanl.h (minus_zero): Likewise.
37790         * tests/test-ldexpl.c (minus_zero): Likewise.
37791         * tests/test-roundl.c (minus_zero): Likewise.
37792         * tests/test-signbit.c (minus_zerol): Likewise.
37793         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
37794         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
37795         * tests/test-truncl.c (minus_zero): Likewise.
37796         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
37797         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
37798         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
37799         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
37800
37801 2008-10-17  Bruno Haible  <bruno@clisp.org>
37802
37803         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
37804         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
37805         that it gets activated only for gcc >= 3.0.
37806         * lib/dirent.in.h: Likewise.
37807         * lib/errno.in.h: Likewise.
37808         * lib/fcntl.in.h: Likewise.
37809         * lib/float.in.h: Likewise.
37810         * lib/iconv.in.h: Likewise.
37811         * lib/inttypes.in.h: Likewise.
37812         * lib/locale.in.h: Likewise.
37813         * lib/math.in.h: Likewise.
37814         * lib/netdb.in.h: Likewise.
37815         * lib/netinet_in.in.h: Likewise.
37816         * lib/search.in.h: Likewise.
37817         * lib/signal.in.h: Likewise.
37818         * lib/spawn.in.h: Likewise.
37819         * lib/stdarg.in.h: Likewise.
37820         * lib/stdint.in.h: Likewise.
37821         * lib/stdio.in.h: Likewise.
37822         * lib/stdlib.in.h: Likewise.
37823         * lib/string.in.h: Likewise.
37824         * lib/strings.in.h: Likewise.
37825         * lib/sys_file.in.h: Likewise.
37826         * lib/sys_ioctl.in.h: Likewise.
37827         * lib/sys_select.in.h: Likewise.
37828         * lib/sys_socket.in.h: Likewise.
37829         * lib/sys_stat.in.h: Likewise.
37830         * lib/sys_time.in.h: Likewise.
37831         * lib/sysexits.in.h: Likewise.
37832         * lib/time.in.h: Likewise.
37833         * lib/unistd.in.h: Likewise.
37834         * lib/wchar.in.h: Likewise.
37835         * lib/wctype.in.h: Likewise.
37836         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37837
37838 2008-10-17  Jim Meyering  <meyering@redhat.com>
37839
37840         ignore-value: don't depend on inline module
37841         * modules/ignore-value (Depends-on): Remove 'inline'.
37842         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
37843         Suggestion from Bruno Haible.
37844
37845 2008-10-17  Bruno Haible  <bruno@clisp.org>
37846
37847         New implementation of condition variables for Win32.
37848         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
37849         (gl_linked_waitqueue_t): New type.
37850         (gl_cond_t): Use it.
37851         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
37852         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
37853         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
37854         (glthread_cond_init_func, glthread_cond_wait_func,
37855         glthread_cond_timedwait_func, glthread_cond_signal_func,
37856         glthread_cond_broadcast_func, glthread_cond_destroy_func):
37857         Reimplemented on the basis of gl_linked_waitqueue_t.
37858         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
37859         gl_waitqueue_t.
37860         (gl_rwlock_t): Update.
37861         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
37862
37863 2008-10-17  Simon Josefsson  <simon@josefsson.org>
37864
37865         * modules/recvfrom (Depends-on): Add dependency on getpeername.
37866         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37867
37868 2008-10-17  Jim Meyering  <meyering@redhat.com>
37869
37870         ignore-value: new module
37871         * modules/ignore-value: New file.
37872         * lib/ignore-value.h: New file.
37873         * MODULES.html.sh (Compiler warning management): New section,
37874         just for this module.  More to come.
37875
37876 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37877
37878         open-safer.c: avoid 'signed and unsigned in conditional...' warning
37879         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
37880         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
37881
37882 2008-10-16  Jim Meyering  <meyering@redhat.com>
37883
37884         openat-die.c: avoid 'no previous prototype' warning
37885         * lib/openat-die.c: Include "openat.h".
37886         Reported by Reuben Thomas <rrt@sc3d.org>.
37887
37888 2008-10-16  Simon Josefsson  <simon@josefsson.org>
37889
37890         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
37891         * lib/netdb.in.h: Fix typo.
37892         Reported by Bruno Haible  <bruno@clisp.org>
37893
37894         * lib/netdb.in.h: Include sys/socket.h for platforms without
37895         netdb.h, to get structures like hostent on MinGW.
37896         * modules/netdb (Depends-on): Add sys_socket.
37897
37898 2008-10-15  Simon Josefsson  <simon@josefsson.org>
37899
37900         * modules/netdb, modules/netdb-tests: New file.
37901         * m4/netdb_h.m4: New file.
37902         * lib/netdb.in.h: Add, currently just an empty file pending
37903         definitions.
37904         * tests/test-netdb.c: New file.
37905         * doc/posix-headers/netdb.texi: Mention that we replace it if
37906         needed.
37907         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37908         netdb.
37909
37910 2008-10-15  Simon Josefsson  <simon@josefsson.org>
37911
37912         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
37913         with code.
37914
37915 2008-10-13  Bruno Haible  <bruno@clisp.org>
37916
37917         * lib/glthread/cond.c (glthread_cond_wait_func,
37918         glthread_cond_timedwait_func): Add a comment.
37919
37920 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37921
37922         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
37923         * tests/test-select.c: Likewise,
37924
37925 2008-10-13  Bruno Haible  <bruno@clisp.org>
37926
37927         * lib/glthread/cond.c (glthread_cond_wait_func,
37928         glthread_cond_timedwait_func): Fix variable name.
37929         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37930
37931 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
37932
37933         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
37934         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
37935         struct sockaddr.sa_len.
37936         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
37937
37938 2008-10-13  Simon Josefsson  <simon@josefsson.org>
37939
37940         * build-aux/pmccabe2html: Add css and css_url parameters.
37941
37942 2008-10-12  Bruno Haible  <bruno@clisp.org>
37943
37944         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
37945         calling aclx_get.
37946         Reported by Rainer Tammer <tammer@tammer.net>.
37947
37948 2008-10-12  Bruno Haible  <bruno@clisp.org>
37949
37950         Use msvcrt aware primitives for creation/termination of Win32 threads.
37951         * lib/glthread/thread.c: Include <process.h>.
37952         (glthread_create_func): Use _beginthreadex instead of CreateThread.
37953         (wrapper_func): Update signature.
37954         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
37955
37956 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37957             Bruno Haible  <bruno@clisp.org>
37958
37959         Provide a Win32 implementation of the 'cond' module.
37960         * lib/glthread/cond.h [USE_WIN32]: New implementation.
37961         * lib/glthread/cond.c (glthread_cond_init_func,
37962         glthread_cond_wait_func, glthread_cond_timedwait_func,
37963         glthread_cond_signal_func, glthread_cond_broadcast_func,
37964         glthread_cond_destroy_func) [USE_WIN32]: New functions.
37965         * modules/cond (Dependencies): Add gettimeofday.
37966
37967 2008-10-11  Bruno Haible  <bruno@clisp.org>
37968
37969         Make sleep work on older versions of mingw.
37970         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
37971         only whether it exists.
37972         * doc/posix-functions/sleep.texi: Mention the problem with older
37973         versions of mingw.
37974
37975 2008-10-11  Bruno Haible  <bruno@clisp.org>
37976
37977         New module 'shutdown'.
37978         * modules/shutdown: New file.
37979         * lib/sys_socket.in.h (shutdown): New declaration.
37980         * lib/winsock.c (shutdown): New function.
37981         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37982         GNULIB_SHUTDOWN.
37983         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
37984         * doc/posix-functions/shutdown.texi: Document the new module.
37985
37986 2008-10-11  Jim Meyering  <meyering@redhat.com>
37987
37988         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
37989
37990 2008-10-11  Bruno Haible  <bruno@clisp.org>
37991
37992         New module 'fclose'.
37993         * modules/fclose: New file.
37994         * lib/stdio.in.h (fclose): New declaration.
37995         * lib/fclose.c: New file.
37996         * m4/fclose.m4: New file.
37997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
37998         REPLACE_FCLOSE.
37999         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
38000         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
38001         REPLACE_FCLOSE.
38002         * modules/close (Depends-on): fclose.
38003         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
38004
38005 2008-10-11  Bruno Haible  <bruno@clisp.org>
38006
38007         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
38008         set errno and don't call _close.
38009
38010 2008-10-10  Bruno Haible  <bruno@clisp.org>
38011
38012         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
38013         ACL, not afterwards. Fixes test failure on Cygwin.
38014
38015 2008-10-09  Ben Pfaff  <blp@gnu.org>
38016
38017         * build-aux/announce-gen: Fix gnulib version related part of usage
38018         message.  Die with a useful error message if no tarballs are
38019         found.
38020
38021 2008-10-10  Jim Meyering  <meyering@redhat.com>
38022
38023         bootstrap: use git's --depth=N option only if it's supported
38024         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
38025         recognize the --depth option.  Reported by Pádraig Brady.
38026
38027 2008-10-09  Bruno Haible  <bruno@clisp.org>
38028
38029         New module 'ioctl'.
38030         * modules/ioctl: New file.
38031         * lib/sys_socket.in.h (ioctl): Remove declaration.
38032         * lib/winsock.c: Include <sys/ioctl.h>.
38033         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
38034         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
38035         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
38036         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
38037         * doc/posix-functions/ioctl.texi: Mention the new module.
38038
38039 2008-10-09  Bruno Haible  <bruno@clisp.org>
38040
38041         New module 'sys_ioctl'.
38042         * lib/sys_ioctl.in.h: New file.
38043         * m4/sys_ioctl_h.m4: New file.
38044         * modules/sys_ioctl: New file.
38045         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
38046
38047 2008-10-09  Bruno Haible  <bruno@clisp.org>
38048
38049         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
38050         * lib/winsock.c: Include <stdarg.h>.
38051         (rpl_ioctl): Change to second argument 'int' and then varargs.
38052
38053 2008-10-09  Bruno Haible  <bruno@clisp.org>
38054
38055         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
38056         when the sys_socket module is present and the system has <winsock2.h>.
38057
38058 2008-10-09  Bruno Haible  <bruno@clisp.org>
38059
38060         * doc/posix-functions/close.texi: Mention module 'close' instead of
38061         module 'sys_socket'.
38062
38063 2008-10-09  Bruno Haible  <bruno@clisp.org>
38064
38065         * doc/glibc-headers/sys_ioctl.texi: New file.
38066         * doc/gnulib.texi: Include it.
38067
38068 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38069             Bruno Haible  <bruno@clisp.org>
38070
38071         Combine the two replacements of 'close'.
38072         * lib/sys_socket.in.h (close): Define to a reminder to include
38073         <unistd.h>.
38074         (_gl_close_fd_maybe_socket): New declaration.
38075         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
38076         * lib/winsock.c (close): Remove undefinition.
38077         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
38078         needed for the gnulib module 'close'.
38079         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
38080         define to an error symbol or to a warning, if suitable.
38081         * lib/close.c: Include <sys/socket.h>.
38082         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
38083         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
38084         UNISTD_H_HAVE_WINSOCK2_H.
38085         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
38086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38087         UNISTD_H_HAVE_WINSOCK2_H.
38088         * modules/sys_socket (Files): Add m4/unistd_h.m4.
38089         (configure.ac): Set a module indicator.
38090         (Makefile.am): Substitute GNULIB_CLOSE.
38091         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
38092         * modules/poll-tests (Depends-on): Add close.
38093         * modules/select-tests (Depends-on): Likewise.
38094
38095 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38096             Bruno Haible  <bruno@clisp.org>
38097
38098         New module 'close'.
38099         * modules/close: New file.
38100         * lib/unistd.in.h (close): Move declaration out of the
38101         FCHDIR_REPLACEMENT scope.
38102         (_gl_unregister_fd): New declaration.
38103         * lib/close.c: New file.
38104         * lib/fchdir.c (rpl_close): Remove function.
38105         * m4/close.m4: New file.
38106         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38107         close.
38108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
38109         REPLACE_CLOSE.
38110         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
38111         REPLACE_CLOSE.
38112         * modules/fchdir (Depends-on): Add close.
38113
38114 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38115             Bruno Haible  <bruno@clisp.org>
38116
38117         * lib/fcntl.in.h (open): Simplify conditionals.
38118         (_gl_register_fd): New declaration.
38119         * lib/fchdir.c (rpl_open): Remove function.
38120         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
38121         also.
38122         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
38123         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38124         open.
38125
38126 2008-10-09  Jim Meyering  <meyering@redhat.com>
38127
38128         GNUmakefile: use the more name-space-friendly "_version"
38129         * top/GNUmakefile (_dummy): Update.
38130         (_version): Rename from "version".
38131
38132 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38133             Bruno Haible  <bruno@clisp.org>
38134
38135         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
38136         rpl_close.
38137         (_gl_register_fd): New function, extracted from rpl_open.
38138         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
38139         (rpl_open, rpl_opendir): Use _gl_register_fd.
38140
38141 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38142
38143         Fix organization of 'open' replacement.
38144         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
38145         (gl_FUNC_OPEN): Use it.
38146         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
38147
38148 2008-10-08  Bruno Haible  <bruno@clisp.org>
38149
38150         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
38151
38152 2008-10-08  Simon Josefsson  <simon@josefsson.org>
38153
38154         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
38155         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
38156         listen).
38157
38158 2008-10-08  Eric Blake  <ebb9@byu.net>
38159
38160         GNUmakefile: add 'make version' target
38161         * top/GNUmakefile (_curr-ver): Split version update rules...
38162         (version): ...into a target.
38163
38164 2008-10-07  Bruno Haible  <bruno@clisp.org>
38165
38166         Use a more portable replacement expression for -0.0L.
38167         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
38168         instead of -0.0L. Fix m4 quotation.
38169
38170         * tests/test-signbit.c: Include <float.h>.
38171         (minus_zero): New variable.
38172         (test_signbitl): Use minus_zero instead of -zero.
38173         * modules/signbit-tests (Depends-on): Add float.
38174
38175         * tests/test-ceill.c: Include <float.h>.
38176         (zero): Remove variable.
38177         (minus_zero): New variable.
38178         (main): Use minus_zero instead of -zero.
38179         * modules/ceill-tests (Depends-on): Add float.
38180
38181         * tests/test-floorl.c: Include <float.h>.
38182         (zero): Remove variable.
38183         (minus_zero): New variable.
38184         (main): Use minus_zero instead of -zero.
38185         * modules/floorl-tests (Depends-on): Add float.
38186
38187         * tests/test-roundl.c: Include <float.h>.
38188         (zero): Remove variable.
38189         (minus_zero): New variable.
38190         (main): Use minus_zero instead of -zero.
38191         * modules/roundl-tests (Depends-on): Add float.
38192
38193         * tests/test-truncl.c: Include <float.h>.
38194         (zero): Remove variable.
38195         (minus_zero): New variable.
38196         (main): Use minus_zero instead of -zero.
38197         * modules/truncl-tests (Depends-on): Add float.
38198
38199         * tests/test-frexpl.c (zero): Remove variable.
38200         (minus_zero): New variable.
38201         (main): Use minus_zero instead of -zero.
38202         * modules/frexpl-tests (Depends-on): Add float.
38203
38204         * tests/test-isnan.c (zerol): Remove variable.
38205         (minus_zerol): New variable.
38206         (test_long_double): Use minus_zerol instead of -zerol.
38207         * modules/isnan-tests (Depends-on): Add float.
38208
38209         * tests/test-isnanl.h (zero): Remove variable.
38210         (minus_zero): New variable.
38211         (main): Use minus_zero instead of -zero.
38212         * modules/isnanl-nolibm-tests (Depends-on): Add float.
38213         * modules/isnanl-tests (Depends-on): Add float.
38214
38215         * tests/test-ldexpl.c (zero): Remove variable.
38216         (minus_zero): New variable.
38217         (main): Use minus_zero instead of -zero.
38218         * modules/ldexpl-tests (Depends-on): Add float.
38219
38220         * tests/test-snprintf-posix.h (zerol): Remove variable.
38221         (minus_zerol): New variable.
38222         (test_function): Use minus_zerol instead of -zerol.
38223         * modules/snprintf-posix-tests (Depends-on): Add float.
38224         * modules/vsnprintf-posix-tests (Depends-on): Add float.
38225
38226         * tests/test-sprintf-posix.h (zerol): Remove variable.
38227         (minus_zerol): New variable.
38228         (test_function): Use minus_zerol instead of -zerol.
38229         * modules/sprintf-posix-tests (Depends-on): Add float.
38230         * modules/vsprintf-posix-tests (Depends-on): Add float.
38231
38232         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
38233         (minus_zerol): New variable.
38234         (test_function): Use minus_zerol instead of -zerol.
38235         * modules/vasnprintf-posix-tests (Depends-on): Add float.
38236
38237         * tests/test-vasprintf-posix.c (zerol): Remove variable.
38238         (minus_zerol): New variable.
38239         (test_function): Use minus_zerol instead of -zerol.
38240         * modules/vasprintf-posix-tests (Depends-on): Add float.
38241
38242 2008-10-07  Simon Josefsson  <simon@josefsson.org>
38243
38244         * MODULES.html.sh (Support for building documentation): Mention
38245         pmccabe2html.  Sort entries.
38246
38247         Add pmccabe2html module, from gnupdf.
38248         * build-aux/pmccabe.css: New file.
38249         * build-aux/pmccabe2html: New file.
38250         * m4/pmccabe2html.m4: New file.
38251         * modules/pmccabe2html: New file.
38252
38253 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
38254
38255         flock: new module
38256         * MODULES.html.sh: Add to list of modules.
38257         * lib/flock.c: flock implementation for Windows and Unix systems
38258         which have fcntl.
38259         * doc/glibc-functions/flock.texi: Update documentation.
38260         * lib/sys_file.in.h: <sys/file.h> header file.
38261         * m4/flock.m4: M4 macros.
38262         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
38263         * modules/flock: flock module.
38264         * modules/flock-tests: flock tests module.
38265         * modules/sys_file: sys/file.h module.
38266         * tests/test-flock.c: test suite for flock.
38267
38268 2008-10-06  Jim Meyering  <meyering@redhat.com>
38269
38270         bootstrap: check for LT_INIT more portably still ;-)
38271         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
38272         Spotted by Bruno Haible.
38273
38274 2008-10-06  Eric Blake  <ebb9@byu.net>
38275
38276         test-signbit: avoid tripping Irix cc bug on -0.0L
38277         * tests/test-signbit.c (minus_zerol): Delete, and replace with
38278         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
38279         entire testsuite consistent and avoids an Irix 6.2 bug.
38280
38281 2008-10-05  Bruno Haible  <bruno@clisp.org>
38282             Jim Meyering  <jim@meyering.net>
38283
38284         Add an option for ignoring EPIPE during close_stdout.
38285         * lib/closeout.h: Include <stdbool.h>.
38286         (close_stdout_set_ignore_EPIPE): New declaration.
38287         * lib/closeout.c: Include <stdbool.h>.
38288         (ignore_EPIPE): New variable.
38289         (close_stdout_set_ignore_EPIPE): New function.
38290         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
38291         * lib/close-stream.c (close_stream): Mention the possible EPIPE
38292         failure.
38293         * modules/closeout (Depends-on): Add stdbool.
38294
38295 2008-10-05  Bruno Haible  <bruno@clisp.org>
38296
38297         * modules/accept: New file.
38298         * modules/bind: New file.
38299         * modules/connect: New file.
38300         * modules/getpeername: New file.
38301         * modules/getsockname: New file.
38302         * modules/getsockopt: New file.
38303         * modules/listen: New file.
38304         * modules/recv: New file.
38305         * modules/recvfrom: New file.
38306         * modules/send: New file.
38307         * modules/sendto: New file.
38308         * modules/setsockopt: New file.
38309         * modules/socket: New file.
38310         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
38311         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
38312         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
38313         the particular module is requested. Add a link warning when the
38314         particular module is not requested.
38315         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
38316         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
38317         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
38318         the particular module is requested.
38319         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
38320         gl_SYS_SOCKET_H_DEFAULTS): New macros.
38321         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
38322         * modules/sys_socket (Depends-on): Add link-warning.
38323         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
38324         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
38325         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
38326         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
38327         GL_LINK_WARNING.
38328         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
38329         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
38330         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
38331         * doc/posix-functions/getpeername.texi: Mention the new module
38332         'getpeername'.
38333         * doc/posix-functions/getsockname.texi: Mention the new module
38334         'getsockname'.
38335         * doc/posix-functions/getsockopt.texi: Mention the new module
38336         'getsockopt'.
38337         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
38338         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
38339         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
38340         * doc/posix-functions/send.texi: Mention the new module 'send'.
38341         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
38342         * doc/posix-functions/setsockopt.texi: Mention the new module
38343         'setsockopt'.
38344         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
38345         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
38346         listen, connect, accept.
38347         * modules/select-tests (Depends-on): Likewise.
38348
38349 2008-10-05  Bruno Haible  <bruno@clisp.org>
38350
38351         * lib/winsock.c (strerror): Remove unused #undef.
38352         (rpl_close): Remove unused local variable.
38353
38354         * modules/sys_socket (Depends-on); Add errno.
38355
38356 2008-10-05  Bruno Haible  <bruno@clisp.org>
38357
38358         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
38359         (select): Add a link warning when the 'select' module is not used.
38360         * modules/sys_select (Depends-on): Add link-warning.
38361         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
38362         Suggested by Paolo Bonzini.
38363
38364 2008-10-05  Jim Meyering  <meyering@redhat.com>
38365
38366         bootstrap: check for LT_INIT more portably
38367         * build-aux/bootstrap: Avoid using grep -E, since it's not
38368         portable enough.  Suggestion from Bruno Haible.
38369
38370 2008-10-05  Bruno Haible  <bruno@clisp.org>
38371
38372         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
38373         as being fixed by gnulib.
38374
38375 2008-10-05  Bruno Haible  <bruno@clisp.org>
38376
38377         * modules/select-tests: New file, mostly copied from
38378         modules/sys_select-tests.
38379         * tests/test-select.c: New file, mostly copied from
38380         tests/test-sys_select.c.
38381         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
38382         * modules/sys_select-tests (Depends-on): Remove all dependencies.
38383         (Makefile.am): Remove test_sys_select_LDADD.
38384
38385         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
38386         to an undefined symbol, for an error message.
38387         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
38388         (gl_SYS_SELECT_H_DEFAULTS): New macro.
38389         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
38390         winsock-select.c here.
38391         * modules/sys_select (Files): Remove lib/winsock-select.c.
38392         (Depends-on): Remove alloca.
38393         (Makefile.am): Substitute GNULIB_SELECT.
38394         * modules/select: New file.
38395         * doc/posix-functions/select.texi: Update.
38396
38397 2008-10-05  Bruno Haible  <bruno@clisp.org>
38398
38399         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
38400         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
38401         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
38402         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
38403         getdtablesize.
38404         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
38405         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
38406
38407 2008-10-05  Bruno Haible  <bruno@clisp.org>
38408
38409         * modules/getdtablesize-tests: New file.
38410         * tests/test-getdtablesize.c: New file.
38411
38412         New module 'getdtablesize'.
38413         * lib/unistd.in.h (getdtablesize): New declaration.
38414         * lib/getdtablesize.c: New file.
38415         * m4/getdtablesize.m4: New file.
38416         * modules/getdtablesize: New file.
38417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38418         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
38419         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
38420         HAVE_GETDTABLESIZE.
38421         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
38422
38423 2008-10-05  Bruno Haible  <bruno@clisp.org>
38424
38425         * modules/sched (Makefile.am): Fix typo.
38426         Reported by Simon Josefsson.
38427
38428 2008-10-05  Jim Meyering  <meyering@redhat.com>
38429
38430         bootstrap: check for LT_INIT, too
38431         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
38432         are deprecated.  Suggestion from Ralf Wildenhues.
38433
38434 2008-10-05  Bruno Haible  <bruno@clisp.org>
38435
38436         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
38437         overriding them by ours.
38438         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
38439
38440 2008-10-05  Jim Meyering  <meyering@redhat.com>
38441
38442         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
38443         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
38444         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
38445
38446 2008-10-04  Bruno Haible  <bruno@clisp.org>
38447
38448         * modules/dup2 (License): Change to LGPLv2+.
38449         * modules/sleep (License): Likewise.
38450         * modules/perror (License): Likewise.
38451         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
38452         Blake.
38453         * modules/signal (License): Likewise.
38454         * modules/sigprocmask (License): Likewise.
38455         * modules/raise (License): Change to LGPLv2+, with approval by Jim
38456         Meyering.
38457
38458 2008-10-04  Bruno Haible  <bruno@clisp.org>
38459
38460         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
38461         Reported by Rainer Tammer <tammer@tammer.net>.
38462
38463 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
38464             Bruno Haible  <bruno@clisp.org>
38465
38466         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
38467         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
38468         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
38469
38470 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
38471
38472         filevercmp: new module
38473         * lib/filevercmp.h: New function filevercmp comparing version strings.
38474         * lib/filevercmp.c: Implementation of filevercmp function.
38475         * modules/filevercmp: Module metadata.
38476         * tests/test-filevercmp.c: Unit test for new module.
38477         * modules/filevercmp-tests: Unit test metadata.
38478         * MODULES.html.sh: Add filevercmp module.
38479
38480 2008-10-03  Bruno Haible  <bruno@clisp.org>
38481
38482         * lib/c-ctype.h: Add comment.
38483         Reported by Jim Meyering.
38484
38485 2008-10-02  Bruno Haible  <bruno@clisp.org>
38486
38487         * modules/posix_spawn-internal (Depends-on): Add 'open'.
38488
38489 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38490
38491         * build-aux/bootstrap: Allow renaming bootstrap, and change the
38492         name of bootstrap.conf accordingly.
38493
38494 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38495
38496         * build-aux/bootstrap: Install git-merge-changelog configuration
38497         items into .gitconfig if needed.
38498
38499 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38500
38501         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
38502         git repository, and initialize/update it accordingly.
38503
38504 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
38505
38506         * modules/fsync-tests: New file.
38507         * tests/test-fsync.c: New file.
38508
38509         New module 'fsync'.
38510         * lib/fsync.c: New file.
38511         * m4/fsync.m4: New file.
38512         * modules/fsync: New file.
38513         * lib/unistd.in.h (fsync): New declaration.
38514         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
38515         GNULIB_FSYNC and HAVE_FSYNC.
38516         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
38517         * MODULES.html.sh (posix_functions): Add fsync.
38518         * doc/posix-functions/fsync.texi: Mention the new module.
38519
38520 2008-10-02  Jim Meyering  <meyering@redhat.com>
38521
38522         fts.c: sync with similar code from coreutils' remove.c
38523         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
38524         Guard also with "#if defined __linux__", since for now at least,
38525         this code is Linux-kernel-specific.
38526
38527 2008-10-02  Jim Meyering  <meyering@redhat.com>
38528
38529         fts: bug fixes
38530         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
38531         Include <sys/vfs.h>, not <sys/statfs.h>.
38532
38533         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
38534         Include <sys/vfs.h>, not <sys/statfs.h>.
38535
38536 2008-10-01  Bruno Haible  <bruno@clisp.org>
38537
38538         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
38539         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
38540         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
38541         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
38542         * doc/posix-functions/posix_spawnp.texi: Likewise.
38543         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
38544         whether posix_spawn actually works.
38545         * m4/pipe.m4 (gl_PIPE): Likewise.
38546         * modules/execute (Files): Add m4/posix_spawn.m4.
38547         * modules/pipe (Files): Add m4/posix_spawn.m4.
38548         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
38549
38550 2008-10-01  Jim Meyering  <meyering@redhat.com>
38551
38552         remove trailing spaces
38553         * NEWS: Likewise.
38554         * lib/poll.c (poll): Likewise.
38555         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
38556         * lib/winsock.c (rpl_close): Likewise.
38557         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
38558         * modules/yield: Likewise.
38559         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
38560         * tests/test-sys_select.c (connect_to_socket): Likewise.
38561
38562         fts.c: adjust a new interface to be more generally useful
38563         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
38564         (fts_build): Adjust caller.
38565
38566 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38567
38568         * modules/cond-tests: New file.
38569         * tests/test-cond.c: New file.
38570
38571 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38572             Bruno Haible  <bruno@clisp.org>
38573
38574         * modules/cond (Dependencies): Add errno, time.
38575         * lib/glthread/cond.h: Include <time.h>.
38576         (gl_cond_define, gl_cond_define_initialized): Use the same definition
38577         across platforms.
38578
38579 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38580             Bruno Haible  <bruno@clisp.org>
38581
38582         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
38583
38584 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38585             Bruno Haible  <bruno@clisp.org>
38586
38587         * modules/tls-tests (Depends-on): Add thread, yield.
38588         (configure.ac): Remove all checks.
38589         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
38590         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
38591         gl_thread_self): Remove definitions. Include glthread/thread.h and
38592         glthread/yield.h instead.
38593         (test_tls): Pass an additional NULL argument to gl_thread_join.
38594
38595 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38596             Bruno Haible  <bruno@clisp.org>
38597
38598         * modules/lock-tests (Depends-on): Add thread, yield.
38599         (configure.ac): Remove all checks.
38600         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
38601         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
38602         gl_thread_self): Remove definitions. Include glthread/thread.h and
38603         glthread/yield.h instead.
38604         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
38605         additional NULL argument to gl_thread_join.
38606
38607 2008-09-30  Bruno Haible  <bruno@clisp.org>
38608
38609         Fix the Win32 implementation of the 'thread' module.
38610         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
38611         pointer type.
38612         (gl_thread_self): Invoke gl_thread_self_func.
38613         (gl_thread_self_func): New declaration.
38614         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
38615         (do_init_self_key, init_self_key): New functions.
38616         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
38617         Remove some fields.
38618         (running_threads, running_lock): Remove variables.
38619         (get_current_thread_handle): New function.
38620         (gl_thread_self_func, wrapper_func, glthread_create_func,
38621         glthread_join_func, gl_thread_exit_func): Largely rewritten and
38622         simplified.
38623
38624 2008-09-30  Bruno Haible  <bruno@clisp.org>
38625
38626         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
38627         files.
38628
38629 2008-09-30  Jim Meyering  <meyering@redhat.com>
38630
38631         fts.m4: correct the test for statfs.f_type
38632         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
38633         when checking for statfs.f_type.
38634
38635 2008-09-15  Simon Josefsson  <simon@josefsson.org>
38636
38637         tests: avoid some compiler warnings
38638         * tests/test-memchr.c (main): Pass NULL indirectly.
38639         * tests/test-getdate.c (main): Remove unused variable 'ret'.
38640
38641 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
38642
38643         getdate.y: disallow countable dayshifts like "4 yesterday ago"
38644         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
38645         exactly specified dayshifts.
38646         (dayshift): New rule.
38647         (rel): Add dayshift.
38648         (relative_time_table) [tomorrow, yesterday, today, now]:
38649         Use tDAY_SHIFT in place of tDAY_UNIT.
38650         * tests/test-getdate.c: Add tests for now-disallowed countable
38651         dayshifts, e.g., "4 yesterday ago".
38652
38653 2008-09-29  Bruno Haible  <bruno@clisp.org>
38654
38655         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
38656         * tests/test-posix_spawn1.in.sh: Renamed from
38657         tests/test-posix_spawn.in.sh.
38658         * tests/test-posix_spawn2.c: New file.
38659         * tests/test-posix_spawn2.in.sh: New file.
38660         * modules/posix_spawnp-tests (Files): Update.
38661         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
38662
38663 2008-09-29  Bruno Haible  <bruno@clisp.org>
38664
38665         Propagate effects of putenv/setenv/unsetenv to child processes.
38666         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
38667         * lib/pipe.c (create_pipe): Likewise.
38668
38669 2008-09-29  Bruno Haible  <bruno@clisp.org>
38670
38671         Enable use of shell scripts as executables in mingw.
38672         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
38673         run the program as a shell script.
38674         * lib/pipe.c (create_pipe): Likewise.
38675         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
38676         resulting array.
38677
38678 2008-09-29  Eric Blake  <ebb9@byu.net>
38679
38680         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
38681
38682 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
38683
38684         * doc/posix-functions/accept.texi: Update mingw problems.
38685         * doc/posix-functions/bind.texi: Update mingw problems.
38686         * doc/posix-functions/close.texi: Update mingw problems.
38687         * doc/posix-functions/connect.texi: Update mingw problems.
38688         * doc/posix-functions/getpeername.texi: Update mingw problems.
38689         * doc/posix-functions/getsockname.texi: Update mingw problems.
38690         * doc/posix-functions/getsockopt.texi: Update mingw problems.
38691         * doc/posix-functions/ioctl.texi: Update mingw problems.
38692         * doc/posix-functions/listen.texi: Update mingw problems.
38693         * doc/posix-functions/recv.texi: Update mingw problems.
38694         * doc/posix-functions/recvfrom.texi: Update mingw problems.
38695         * doc/posix-functions/select.texi: Update mingw problems.
38696         * doc/posix-functions/send.texi: Update mingw problems.
38697         * doc/posix-functions/sendto.texi: Update mingw problems.
38698         * doc/posix-functions/setsockopt.texi: Update mingw problems.
38699         * doc/posix-functions/socket.texi: Update mingw problems.
38700
38701 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
38702             Bruno Haible  <bruno@clisp.org>
38703
38704         * lib/sys_select.in.h: Include sys/time.h.
38705         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
38706         * modules/sys_select: Depend on sys_time.
38707         * tests/test-sys_select.c: Test that sys/select.h defines struct
38708         timeval fully.
38709
38710 2008-09-29  Bruno Haible  <bruno@clisp.org>
38711
38712         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
38713         * lib/sys_select.in.h: Likewise.
38714
38715 2008-09-29  Bruno Haible  <bruno@clisp.org>
38716
38717         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
38718
38719 2008-09-29  Bruno Haible  <bruno@clisp.org>
38720
38721         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
38722         Set LIBSOCKET instead of augmenting LIBS.
38723         * modules/sockets (Link): New section.
38724         * modules/sockets-tests (test_sockets_LDADD): New variable.
38725         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
38726         * modules/poll-tests (test_poll_LDADD): New variable.
38727         * NEWS: Document the change.
38728
38729 2008-09-29  Bruno Haible  <bruno@clisp.org>
38730
38731         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
38732         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
38733         ARPA_INET_H directly.
38734         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38735
38736 2008-09-28  Bruno Haible  <bruno@clisp.org>
38737
38738         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
38739         from gl_HEADER_SYS_SOCKET.
38740         (gl_HEADER_SYS_SOCKET): Invoke it.
38741         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38742
38743 2008-09-28  Bruno Haible  <bruno@clisp.org>
38744
38745         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
38746         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
38747         Needed on OSF/1 4.0.
38748
38749 2008-09-28  Bruno Haible  <bruno@clisp.org>
38750
38751         Override open more carefully.
38752         * lib/open.c (orig_open): New function.
38753         (rpl_open): Use orig_open instead of open.
38754         * lib/fcntl.in.h: Add special invocation convention.
38755         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
38756         (gl_FUNC_OPEN): Invoke it.
38757
38758         Override freopen more carefully.
38759         * lib/freopen.c (orig_freopen): New function.
38760         (rpl_freopen): Use orig_freopen instead of freopen.
38761         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
38762         (gl_FUNC_FREOPEN): Invoke it.
38763
38764         Override fopen more carefully.
38765         * lib/fopen.c (orig_fopen): New function.
38766         (rpl_fopen): Use orig_fopen instead of fopen.
38767         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
38768         (gl_FUNC_FOPEN): Invoke it.
38769         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
38770
38771 2008-09-28  Bruno Haible  <bruno@clisp.org>
38772
38773         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
38774         SIGPIPE.
38775
38776 2008-09-28  Bruno Haible  <bruno@clisp.org>
38777
38778         * tests/test-sigaction.c (handler, main): Disable the check whether
38779         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
38780         glibc systems with LinuxThreads.
38781
38782 2008-09-28  Bruno Haible  <bruno@clisp.org>
38783
38784         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
38785
38786         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
38787         with AIX xlc.
38788         * lib/fcntl.in.h (open): Likewise.
38789         Reported by Rainer Tammer <tammer@tammer.net>.
38790
38791 2008-09-28  Bruno Haible  <bruno@clisp.org>
38792
38793         * modules/posix_spawnp-tests: New file.
38794         * tests/test-posix_spawn.c: New file.
38795         * tests/test-posix_spawn.in.sh: New file.
38796
38797         New module 'posix_spawnp'.
38798         * modules/posix_spawnp: New file.
38799         * lib/spawnp.c: New file, from GNU libc with modifications.
38800         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
38801
38802         New module 'posix_spawn'.
38803         * modules/posix_spawn: New file.
38804         * lib/spawn.c: New file, from GNU libc with modifications.
38805         * doc/posix-functions/posix_spawn.texi: Mention the new module.
38806
38807         New module 'posix_spawnattr_destroy'.
38808         * modules/posix_spawnattr_destroy: New file.
38809         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
38810         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
38811         module.
38812
38813         New module 'posix_spawnattr_setsigmask'.
38814         * modules/posix_spawnattr_setsigmask: New file.
38815         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
38816         modifications.
38817         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
38818         new module.
38819
38820         New module 'posix_spawnattr_getsigmask'.
38821         * modules/posix_spawnattr_getsigmask: New file.
38822         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
38823         modifications.
38824         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
38825         new module.
38826
38827         New module 'posix_spawnattr_setsigdefault'.
38828         * modules/posix_spawnattr_setsigdefault: New file.
38829         * lib/spawnattr_setdefault.c: New file, from GNU libc with
38830         modifications.
38831         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
38832         new module.
38833
38834         New module 'posix_spawnattr_getsigdefault'.
38835         * modules/posix_spawnattr_getsigdefault: New file.
38836         * lib/spawnattr_getdefault.c: New file, from GNU libc with
38837         modifications.
38838         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
38839         new module.
38840
38841         New module 'posix_spawnattr_setschedpolicy'.
38842         * modules/posix_spawnattr_setschedpolicy: New file.
38843         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
38844         modifications.
38845         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
38846         new module.
38847
38848         New module 'posix_spawnattr_getschedpolicy'.
38849         * modules/posix_spawnattr_getschedpolicy: New file.
38850         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
38851         modifications.
38852         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
38853         new module.
38854
38855         New module 'posix_spawnattr_setschedparam'.
38856         * modules/posix_spawnattr_setschedparam: New file.
38857         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
38858         modifications.
38859         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
38860         new module.
38861
38862         New module 'posix_spawnattr_getschedparam'.
38863         * modules/posix_spawnattr_getschedparam: New file.
38864         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
38865         modifications.
38866         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
38867         new module.
38868
38869         New module 'posix_spawnattr_setpgroup'.
38870         * modules/posix_spawnattr_setpgroup: New file.
38871         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
38872         modifications.
38873         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
38874         module.
38875
38876         New module 'posix_spawnattr_getpgroup'.
38877         * modules/posix_spawnattr_getpgroup: New file.
38878         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
38879         modifications.
38880         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
38881         module.
38882
38883         New module 'posix_spawnattr_setflags'.
38884         * modules/posix_spawnattr_setflags: New file.
38885         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
38886         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
38887         module.
38888
38889         New module 'posix_spawnattr_getflags'.
38890         * modules/posix_spawnattr_getflags: New file.
38891         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
38892         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
38893         module.
38894
38895         New module 'posix_spawnattr_init'.
38896         * modules/posix_spawnattr_init: New file.
38897         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
38898         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
38899         module.
38900
38901         New module 'posix_spawn_file_actions_destroy'.
38902         * modules/posix_spawn_file_actions_destroy: New file.
38903         * lib/spawn_faction_destroy.c: New file, from GNU libc with
38904         modifications.
38905         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
38906         the new module.
38907
38908         New module 'posix_spawn_file_actions_addopen'.
38909         * modules/posix_spawn_file_actions_addopen: New file.
38910         * lib/spawn_faction_addopen.c: New file, from GNU libc with
38911         modifications.
38912         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
38913         the new module.
38914
38915         New module 'posix_spawn_file_actions_adddup2'.
38916         * modules/posix_spawn_file_actions_adddup2: New file.
38917         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
38918         modifications.
38919         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
38920         the new module.
38921
38922         New module 'posix_spawn_file_actions_addclose'.
38923         * modules/posix_spawn_file_actions_addclose: New file.
38924         * lib/spawn_faction_addclose.c: New file, from GNU libc with
38925         modifications.
38926         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
38927         the new module.
38928
38929         New module 'posix_spawn_file_actions_init'.
38930         * modules/posix_spawn_file_actions_init: New file.
38931         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
38932         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
38933         new module.
38934
38935         New module 'posix_spawn-internal'.
38936         * modules/posix_spawn-internal: New file.
38937         * lib/spawn_int.h: New file, from GNU libc with modifications.
38938         * lib/spawni.c: New file, from GNU libc with modifications.
38939         * m4/posix_spawn.m4: New file.
38940
38941         New module 'spawn'.
38942         * modules/spawn: New file.
38943         * lib/spawn.in.h: New file, from GNU libc with modifications.
38944         * m4/spawn_h.m4: New file.
38945         * doc/posix-headers/spawn.texi: Mention the new module.
38946
38947 2008-09-28  Bruno Haible  <bruno@clisp.org>
38948
38949         * modules/sched-tests: New file.
38950         * tests/test-sched.c: New file.
38951
38952         New module 'sched'.
38953         * modules/sched: New file.
38954         * lib/sched.in.h: New file.
38955         * m4/sched_h.m4: New file.
38956         * doc/posix-headers/sched.texi: Mention the new module.
38957
38958 2008-09-27  Eric Blake  <ebb9@byu.net>
38959
38960         Fix previous patch, and tweak references to $0.
38961         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
38962         (func_version, func_gnulib_dir): Don't call this program
38963         gnulib-tool.
38964         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
38965         with using $0 in function.
38966         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
38967         (func_fatal_error): Reuse the name the user invoked us with.
38968
38969 2008-09-27  Bruno Haible  <bruno@clisp.org>
38970
38971         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
38972         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
38973         (gl_ICONV_H): Not here.
38974         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
38975         instead of assigning ICONV_H directly.
38976
38977         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
38978         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
38979         WCHAR_H directly.
38980
38981 2008-09-27  Bruno Haible  <bruno@clisp.org>
38982
38983         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
38984         * modules/arpa_inet (Depends-on): Add link-warning.
38985         (Makefile.am): Insert the definition of GL_LINK-WARNING.
38986         * modules/unistd (Makefile.am): Likewise.
38987
38988 2008-09-26  Bruno Haible  <bruno@clisp.org>
38989
38990         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
38991         variables.
38992         (func_version): Essentially copied from gnulib-tool.
38993         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
38994         func_readlink): Copied from gnulib-tool.
38995
38996 2008-09-26  Bruno Haible  <bruno@clisp.org>
38997
38998         * gnulib-tool (func_version): Change directory to $gnulib_dir before
38999         invoking git-version-gen.
39000
39001 2008-09-26  Bruno Haible  <bruno@clisp.org>
39002
39003         * posix-modules: Update to directory names changed on 2008-01-19.
39004         Remove commas in output before splitting into words. No more need to
39005         avoid 'ftruncate' since 2007-02-19.
39006
39007 2008-09-26  Bruno Haible  <bruno@clisp.org>
39008
39009         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
39010
39011 2008-09-26  Bruno Haible  <bruno@clisp.org>
39012
39013         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
39014         * modules/fwriteerror (Depends-on): Add errno.
39015
39016 2008-09-26  Bruno Haible  <bruno@clisp.org>
39017
39018         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
39019         * tests/test-vc-list-files-cvs.sh: Likewise.
39020
39021 2008-09-26  Bruno Haible  <bruno@clisp.org>
39022
39023         * doc/posix-headers/sys_resource.texi: Reorder items.
39024
39025 2008-09-26  Jim Meyering  <meyering@redhat.com>
39026
39027         fts: tweak inode comparison function
39028         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
39029         inode numbers, as documented.
39030
39031         fts: sort dirent entries on inode number before traversing
39032         This avoids a quadratic, seek-related performance penalty when
39033         operating on a directory containing many entries (measurable at 10k;
39034         3.5 hours at 2 million entries with a cold cache) on certain types
39035         of file systems, including ext3 and ext4, but not tmpfs.
39036         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
39037         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
39038         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
39039         (fs_handles_readdir_ordered_dirents_efficiently): New function.
39040         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
39041         (fts_build): Set the stat.st_ino member from D_INO.
39042         If it is likely to be useful, sort dirent entries on inode number.
39043
39044         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
39045         and the struct statfs.f_type member.
39046         * modules/fts (Depends-on): Add d-ino.
39047
39048 2008-09-26  Bruno Haible  <bruno@clisp.org>
39049
39050         * modules/sigpipe-die (Depends-on): Add sigpipe.
39051
39052         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
39053         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
39054         and GNULIB_STDIO_H_SIGPIPE are set.
39055         * lib/stdio-write.c: New file.
39056         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
39057         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39058         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39059         REPLACE_STDIO_WRITE_FUNCS.
39060         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
39061         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39062         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39063         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39064         * modules/stdio (Files): Add lib/stdio-write.c.
39065         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
39066         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39067         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39068         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39069         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
39070         REPLACE_FPRINTF_POSIX.
39071         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
39072         REPLACE_PRINTF_POSIX.
39073         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
39074         REPLACE_VFPRINTF_POSIX.
39075         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
39076         REPLACE_VPRINTF_POSIX.
39077         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
39078         SIGPIPE issue.
39079         * doc/posix-functions/fputc.texi: Likewise.
39080         * doc/posix-functions/fputs.texi: Likewise.
39081         * doc/posix-functions/fwrite.texi: Likewise.
39082         * doc/posix-functions/printf.texi: Likewise.
39083         * doc/posix-functions/putc.texi: Likewise.
39084         * doc/posix-functions/putchar.texi: Likewise.
39085         * doc/posix-functions/puts.texi: Likewise.
39086         * doc/posix-functions/vfprintf.texi: Likewise.
39087         * doc/posix-functions/vprintf.texi: Likewise.
39088
39089         * modules/safe-write (Depends-on): Add write.
39090
39091         * modules/sigpipe-tests: New file.
39092         * tests/test-sigpipe.c: New file.
39093         * tests/test-sigpipe.sh: New file.
39094
39095         * modules/write: New file.
39096         * lib/unistd.in.h: Include <sys/types.h>.
39097         (write): New declaration.
39098         * lib/write.c: New file.
39099         * m4/write.m4: New file.
39100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39101         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
39102         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
39103         GNULIB_WRITE, REPLACE_WRITE.
39104         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
39105         and the SIGPIPE issue.
39106
39107         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
39108         (raise): New declaration.
39109         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
39110         (ext_signal): New function.
39111         (rpl_raise): New function.
39112         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
39113         GNULIB_SIGNAL_H_SIGPIPE.
39114         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
39115         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
39116
39117         * modules/sigpipe: New file.
39118         * m4/sigpipe.m4: New file.
39119
39120 2008-09-25  Derek Price  <derek@ximbiot.com>
39121             Bruno Haible  <bruno@clisp.org>
39122
39123         * gnulib-tool (func_import): Report all license incompatibilities, not
39124         just the first one.
39125
39126 2008-09-25  Bruno Haible  <bruno@clisp.org>
39127
39128         * gnulib-tool (func_import): When computing the edits, consider not
39129         only the Makefile.ams that exist but also those that will be generated.
39130
39131 2008-09-25  Simon Josefsson  <simon@josefsson.org>
39132
39133         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
39134         fixes gnulib-tool --test warning about duplicate dependency.
39135
39136 2008-09-25  Bruno Haible  <bruno@clisp.org>
39137
39138         * gnulib-tool: Don't ask the user to perform edits in the generated
39139         Makefile.ams.
39140         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
39141         apply to the Makefile.am being generated.
39142         (func_emit_tests_Makefile_am): Execute edits that apply to the
39143         Makefile.am being generated.
39144         (func_import): Setup list of Makefile.am edits before emitting the
39145         Makefile.ams, not at the end.
39146         (func_create_testdir): Update.
39147         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39148
39149 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39150
39151         * gnulib-tool (func_import): Store the --tests-base option in the
39152         comment in gnulib-cache.m4.
39153
39154 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
39155
39156         * NEWS: Document increased portability that sys_select now provides.
39157
39158         * lib/sys_select.in.h: Install select wrapper.
39159         * lib/sys_socket.in.h: Use more descriptive name when there is no
39160         select wrapper.
39161         * lib/winsock-select.c: New.
39162         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
39163         Require gl_HEADER_SYS_SOCKET.
39164         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
39165         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
39166         * tests/test-sys_select.c: Add functional tests.
39167
39168 2008-09-24  Eric Blake  <ebb9@byu.net>
39169
39170         open, fopen: close fd leak in last patch
39171         * lib/open.c (rpl_open): Close fd before returning error.
39172         * lib/fopen.c (rpl_fopen): Close fd before returning error.
39173         * doc/posix-functions/open.texi (open): Document that Irix also
39174         has the bug.
39175         * doc/posix-functions/fopen.texi (fopen): Likewise.
39176         Reported by Paolo Bonzini.
39177
39178 2008-09-24  Bruno Haible  <bruno@clisp.org>
39179
39180         Ensure that a filename ending in a slash cannot be used to access a
39181         non-directory.
39182         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
39183         to check whether it's really a directory.
39184         * lib/fopen.c: Include fcntl.h, unistd.h.
39185         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
39186         and fdopen().
39187         * modules/fopen (Depends-on): Add unistd.
39188         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
39189         * tests/test-fopen.c (main): Likewise.
39190         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
39191         * doc/posix-functions/fopen.texi: Likewise.
39192         Reported by Eric Blake.
39193
39194 2008-09-23  Eric Blake  <ebb9@byu.net>
39195
39196         c-stack: avoid compiler optimizations when provoking overflow
39197         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
39198         recursion harder to optimize, to ensure a stack overflow occurs.
39199         * tests/test-c-stack.c (recurse): Likewise.
39200         Borrowed from libsigsegv.
39201
39202         c-stack: work around Irix sigaltstack bug
39203         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
39204         whether sigaltstack uses wrong end of stack_t (copied in part from
39205         libsigsegv).
39206         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
39207         Irix bug, without requiring an over-allocation.
39208         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
39209         bug.
39210
39211         fopen: document mingw bug on directories
39212         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
39213         not allowing a stream visiting a directory, even though reading
39214         from such a stream is not portable.
39215
39216 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39217
39218         * lib/poll.c: Rewrite.
39219         * modules/poll: Depend on alloca.
39220
39221 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39222
39223         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
39224         instead define prototypes for a full set of wrappers.  Ensure
39225         that Cygwin does not use the compatibility code, which is only
39226         for MinGW.
39227         * lib/winsock.c: New.
39228         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
39229         * modules/sys_socket: Add lib/winsock.c.
39230
39231         * modules/poll-tests: Add errno and perror.
39232         * tests/test-poll.c: Use ioctl, not ioctlsocket.
39233
39234 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39235
39236         * tests/test-poll.c: Downgrade minimum needed Winsock version.
39237
39238 2008-09-23  Bruno Haible  <bruno@clisp.org>
39239
39240         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
39241         * doc/glibc-functions/*: Likewise.
39242
39243 2008-09-23  Simon Josefsson  <simon@josefsson.org>
39244
39245         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
39246         success.
39247
39248 2008-09-22  Eric Blake  <ebb9@byu.net>
39249             Bruno Haible  <bruno@clisp.org>
39250
39251         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
39252         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
39253         supply %A but mishandle pseudo-NaN.
39254         Reported by Simon Josefsson.
39255
39256 2008-09-21  Bruno Haible  <bruno@clisp.org>
39257
39258         * tests/test-lock.c (main): Tweak skip message.
39259         * tests/test-tls.c (main): Likewise.
39260
39261 2008-09-21  Bruno Haible  <bruno@clisp.org>
39262
39263         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
39264         whether 'struct sigaction' has sa_sigaction here...
39265         (gl_PREREQ_SIG_HANDLER_H): ... not here.
39266         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
39267
39268 2008-09-21  Bruno Haible  <bruno@clisp.org>
39269
39270         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
39271         section.
39272         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
39273         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
39274         the new section.
39275         (Support for obsolete systems lacking POSIX:2001): New section.
39276         (String handling <string.h>): Move strdup to the new section.
39277         Suggested by Simon Josefsson and Paolo Bonzini.
39278
39279 2008-09-21  Bruno Haible  <bruno@clisp.org>
39280
39281         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
39282         exponents in %e and %g results on 'long double'. Needed for mingw's
39283         improved *printf functions.
39284         * tests/test-vasprintf-posix.c (test_function): Likewise.
39285         * tests/test-snprintf-posix.h (test_function): Likewise.
39286         * tests/test-sprintf-posix.h (test_function): Likewise.
39287         Reported by Eric Blake.
39288
39289 2008-09-21  Bruno Haible  <bruno@clisp.org>
39290
39291         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
39292         * tests/test-sprintf-posix.h (test_function): Likewise.
39293
39294 2008-09-21  Bruno Haible  <bruno@clisp.org>
39295
39296         * modules/getpass (Depends-on): Add strdup-posix.
39297
39298         New module 'strdup-posix'.
39299         * modules/strdup-posix: New file.
39300         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
39301         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
39302         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39303         REPLACE_STRDUP.
39304         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
39305         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
39306         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39307         strdup-posix.
39308
39309         * modules/strdup (Depends-on): Remove malloc-posix.
39310
39311 2008-09-20  Bruno Haible  <bruno@clisp.org>
39312
39313         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
39314         Wildenhues.
39315
39316 2008-09-20  Bruno Haible  <bruno@clisp.org>
39317
39318         Ensure that wint_t gets defined on IRIX 5.3.
39319         * lib/wchar.in.h (wint_t): Define if not defined by the system.
39320         * lib/wctype.in.h (wint_t): Likewise.
39321         (__wctype_wint_t): Remove type.
39322         (isw*): Use wint_t instead of __wctype_wint_t.
39323         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
39324         * modules/wchar (Files): Add m4/wint_t.m4.
39325         (Makefile.am): Substitute HAVE_WINT_T.
39326         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
39327         * tests/test-wctype.c: Check that wint_t is defined.
39328         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
39329         * doc/posix-headers/wctype.texi: Likewise.
39330         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39331
39332 2008-09-18  Bruno Haible  <bruno@clisp.org>
39333
39334         * gnulib-tool (func_exit): Update comment.
39335
39336 2008-09-18  Simon Josefsson  <simon@josefsson.org>
39337
39338         * modules/getaddrinfo (Depends-on): Remove strdup, this module
39339         assumes strdup exists and does not depend on strdup to return
39340         ENOMEM on out of memory conditions.
39341
39342 2008-09-18  Bruno Haible  <bruno@clisp.org>
39343
39344         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
39345         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
39346         digits for the exponent.
39347
39348 2008-09-18  Jim Meyering  <meyering@redhat.com>
39349             Bruno Haible  <bruno@clisp.org>
39350
39351         * lib/vasnprintf.c (decimal_point_char): Define also if
39352         NEED_PRINTF_INFINITE_LONG_DOUBLE.
39353
39354 2008-09-16  Bruno Haible  <bruno@clisp.org>
39355         and Eric Blake  <ebb9@byu.net>
39356
39357         vasnprintf: support Irix 5.3
39358         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
39359         that mishandle long double infinity.
39360         Reported by Tom G. Christensen.
39361
39362 2008-09-16  Bruno Haible  <bruno@clisp.org>
39363
39364         * doc/glibc-functions/scandir.texi: Mention the function is missing on
39365         Solaris 9.
39366         * doc/glibc-functions/alphasort.texi: Likewise.
39367         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
39368
39369 2008-09-16  Jim Meyering  <meyering@redhat.com>
39370
39371         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
39372         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
39373         a umask modification leak out of a subshell.  Otherwise, the
39374         opensolaris /bin/sh would be accepted and thus cause unwarranted
39375         failures in the coreutils test suite.
39376
39377 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
39378
39379         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
39380         to succeed.
39381
39382 2008-09-16  Jim Meyering  <meyering@redhat.com>
39383
39384         avoid spurious test failure when library is built without ACL support
39385         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
39386         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
39387         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
39388         * tests/test-copy-acl.sh: Likewise.
39389
39390 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39391
39392         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
39393         based on character occurrence counts.
39394
39395 2008-09-15  Eric Blake  <ebb9@byu.net>
39396
39397         tests: avoid some compiler warnings
39398         * tests/test-memchr.c (main): Pass NULL indirectly.
39399         * tests/test-closein.c (main): Avoid unused variable.
39400
39401 2008-09-15  Bruno Haible  <bruno@clisp.org>
39402
39403         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
39404         are missing on OpenBSD 4.0 individually.
39405         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39406
39407 2008-09-15  Bruno Haible  <bruno@clisp.org>
39408
39409         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
39410         * doc/posix-functions/strerror.texi: Mention also Cygwin.
39411         * doc/posix-functions/perror.texi: Likewise.
39412         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
39413         is missing.
39414         Reported by Eric Blake.
39415
39416         * lib/errno.in.h: Use replacement values >= 2000.
39417         Reported by Eric Blake.
39418
39419 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39420
39421         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
39422         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
39423         limit.
39424         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
39425         compareseq was aborted.
39426
39427 2008-09-14  Bruno Haible  <bruno@clisp.org>
39428
39429         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
39430         yvec_edit_count.
39431         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
39432         (fstrcmp_bounded): Simplify result computation accordingly.
39433
39434 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39435
39436         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
39437         (fstrcmp): Define in terms of fstrcmp_bounded.
39438         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
39439         lower_bound argument.
39440         Return quickly if the result is certainly < lower_bound.
39441         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
39442
39443 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39444
39445         * lib/diffseq.h (EARLY_ABORT): New macro.
39446         (compareseq): Change return type to bool. Return true when EARLY_ABORT
39447         evaluates to true.
39448
39449 2008-09-14  Bruno Haible  <bruno@clisp.org>
39450
39451         * modules/perror-tests: New file.
39452         * tests/test-perror.sh: New file.
39453         * tests/test-perror.c: New file.
39454
39455         New module 'perror'.
39456         * lib/stdio.in.h (perror): New declaration.
39457         * lib/perror.c: New file.
39458         * m4/perror.m4: New file.
39459         * modules/perror: New file.
39460         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
39461         * doc/posix-functions/perror.texi: Mention the perror module.
39462         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
39463         REPLACE_PERROR.
39464         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
39465         REPLACE_PERROR.
39466
39467 2008-09-14  Bruno Haible  <bruno@clisp.org>
39468
39469         * modules/stdio (Makefile.am): Reorder to match the order in
39470         lib/stdio.in.h.
39471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39472
39473 2008-09-13  Bruno Haible  <bruno@clisp.org>
39474
39475         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
39476
39477 2008-09-13  Bruno Haible  <bruno@clisp.org>
39478
39479         Extend strerror to cover the added errno values.
39480         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
39481         (rpl_strerror): Provide error messages for the added errno values and
39482         for the WSA* values.
39483         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
39484         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
39485         strerror.
39486         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
39487         * modules/strerror (Depends-on): Add errno.
39488         * doc/posix-functions/strerror.texi: Document the change.
39489         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
39490         and EOVERFLOW.
39491
39492 2008-09-13  Bruno Haible  <bruno@clisp.org>
39493
39494         * modules/EOVERFLOW: Remove file.
39495         * m4/eoverflow.m4: Remove file.
39496         * modules/EOVERFLOW-tests: Remove file.
39497         * tests/test-EOVERFLOW.c: Remove file.
39498         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
39499         * modules/ftell (Depends-on): Likewise.
39500         * modules/getdelim (Depends-on): Likewise.
39501         * modules/getugroups (Depends-on): Likewise.
39502         * modules/poll (Depends-on): Likewise.
39503         * modules/snprintf (Depends-on): Likewise.
39504         * modules/sprintf-posix (Depends-on): Likewise.
39505         * modules/vasnprintf (Depends-on): Likewise.
39506         * modules/vasprintf (Depends-on): Likewise.
39507         * modules/vfprintf-posix (Depends-on): Likewise.
39508         * modules/vsnprintf (Depends-on): Likewise.
39509         * modules/vsprintf-posix (Depends-on): Likewise.
39510         * modules/xvasprintf (Depends-on): Likewise.
39511         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39512         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
39513         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
39514         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
39515         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39516         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
39517         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
39518         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
39519         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39520         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
39521         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
39522         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
39523         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39524         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
39525         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
39526         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
39527         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39528         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
39529         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
39530         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
39531         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39532         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
39533         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
39534         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
39535         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
39536         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39537         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
39538         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
39539         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
39540         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
39541         * MODULES.html.sh: Remove EOVERFLOW.
39542         * NEWS: Mention the change.
39543
39544 2008-09-13  Bruno Haible  <bruno@clisp.org>
39545
39546         * modules/errno-tests: New file.
39547         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
39548
39549         * lib/errno.in.h: New file.
39550         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
39551         * modules/errno: New file.
39552         * doc/posix-headers/errno.texi: Update documentation.
39553         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
39554
39555 2008-09-13  Bruno Haible  <bruno@clisp.org>
39556
39557         * tests/test-poll.c: Use #if for native Windows, rather than testing
39558         __MSVCRT__.
39559
39560 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39561             Bruno Haible  <bruno@clisp.org>
39562
39563         * lib/glob.c: Don't include <pwd.h> on native Windows.
39564         (WINDOWS32): New macro.
39565         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
39566
39567 2008-09-13  Bruno Haible  <bruno@clisp.org>
39568
39569         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
39570         (ETIMEDOUT): Remove macro.
39571         (glthread_cond_timedwait_multithreaded): New declaration.
39572         (glthread_cond_timedwait): Use it.
39573         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
39574         (glthread_cond_timedwait_multithreaded): New function.
39575
39576 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39577
39578         * modules/poll-tests: Do not check for io.h.
39579         * tests/test-poll.c: Check for __MSVCRT__ instead.
39580
39581 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39582
39583         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
39584         * modules/poll-tests: Add inet_pton, stdbool, sockets.
39585         * tests/test-poll.c: Use them.  Use _pipe on Windows.
39586
39587 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39588
39589         * modules/poll-tests: New.
39590         * tests/test-poll.c: New.
39591
39592 2008-09-12  Eric Blake  <ebb9@byu.net>
39593
39594         frexp: test for NetBSD failure on -0.0
39595         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
39596         not all, bugs from NetBSD 3.0 have been fixed.
39597         * doc/posix-functions/frexp.texi (frexp): Document bug.
39598         Reported by Thomas Klausner.
39599
39600         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
39601         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
39602         literal -0.0.
39603         Reported by Jonathan C. Patschke <jp@centtech.com>.
39604
39605 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39606
39607         * lib/glthread/cond.h: Use dummy implementation also if
39608         USE_WIN32_THREADS.
39609
39610 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39611
39612         * modules/fnmatch-posix (License): Change to LGPLv2+.
39613         * modules/fnmatch-gnu (License): Likewise.
39614
39615 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39616
39617         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
39618
39619 2008-09-11  Jim Meyering  <meyering@redhat.com>
39620
39621         * users.txt: Add gtk-vnc.
39622
39623 2008-09-08  Simon Josefsson  <simon@josefsson.org>
39624
39625         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
39626         rotate amounts.
39627
39628         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
39629         required for 16-bit and 8-bit rotates.
39630         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
39631         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
39632         UINT8_MAX instead of hard-coded constants.
39633         Suggested by Paul Eggert.
39634
39635 2008-09-07  Bruno Haible  <bruno@clisp.org>
39636
39637         * tests/test-striconveh.c (main): Check behaviour when converting from
39638         UTF-7.
39639
39640         Make striconveh work better with stateful encodings.
39641         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
39642         that iconv does not increment the inptr when returning -1/EINVAL.
39643
39644 2008-09-07  Bruno Haible  <bruno@clisp.org>
39645
39646         * build-aux/config.rpath: Update according to libtool-2.2.6.
39647         * build-aux/config.libpath: Likewise.
39648
39649 2008-09-06  Bruno Haible  <bruno@clisp.org>
39650
39651         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
39652         * lib/freadptr.c (freadptr): Likewise.
39653         * lib/freadseek.c (freadptrinc): Likewise.
39654         Reported by Simon Josefsson.
39655
39656 2008-09-06  Bruno Haible  <bruno@clisp.org>
39657
39658         * modules/freadptr (License): Change to LGPLv2+.
39659         * modules/freadseek (License): Likewise.
39660         Suggested by Eric Blake.
39661
39662         * modules/memchr2 (License): Change to LGPLv2+.
39663         Approved by Eric Blake.
39664
39665 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39666             Bruno Haible  <bruno@clisp.org>
39667
39668         Make gnulib-tool work with native 'sed' on AIX.
39669         * gnulib-tool (sed_noop): New variable.
39670         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
39671         func_add_or_update, func_create_testdir): Use it to initialize sed
39672         script variables.
39673         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39674
39675 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
39676             Bruno Haible  <bruno@clisp.org>
39677
39678         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
39679         also works after #include directives.
39680
39681 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
39682
39683         getdate.y: reject an out-of-range timezone value
39684         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
39685         the range [-24...+24].  When specified with only one or two digits,
39686         * tests/test-getdate.c: Tests for the fix.
39687         * doc/getdate.texi: Document this change.
39688
39689 2008-09-03  Bruno Haible  <bruno@clisp.org>
39690
39691         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
39692
39693 2008-09-02  Simon Josefsson  <simon@josefsson.org>
39694
39695         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
39696         <bruce.korb@gmail.com> with ideas from Ben Pfaff
39697         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
39698         Blake <ebb9@byu.net>.
39699
39700         * tests/test-bitrotate.c: Add more test vectors.
39701
39702 2008-09-02  Eric Blake  <ebb9@byu.net>
39703
39704         vasnprintf-posix: handle large precision via %.*d
39705         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
39706         when handling it ourselves.
39707         * tests/test-vasnprintf-posix.c (test_function): Add test.
39708         * tests/test-snprintf-posix.h (test_function): Likewise.
39709         * tests/test-sprintf-posix.h (test_function): Likewise.
39710         * tests/test-vasprintf-posix.c (test_function): Likewise.
39711         Reported by Alain Guibert.
39712
39713 2008-09-01  Eric Blake  <ebb9@byu.net>
39714
39715         c-stack: make configure-time check more robust
39716         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
39717         successful sigaction call.
39718         Reported by Tom G. Christensen.
39719
39720 2008-09-01  Bruno Haible  <bruno@clisp.org>
39721
39722         New module 'findprog-lgpl'.
39723         * modules/findprog-lgpl: New file.
39724         * lib/findprog-lgpl.c: New file.
39725         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
39726         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
39727         to decide whether to use strdup or xstrdup, concatenated_filename or
39728         xconcatenated_filename.
39729
39730 2008-09-01  Bruno Haible  <bruno@clisp.org>
39731
39732         Split module 'concat-filename' into 'concat-filename' (LGPL) and
39733         'xconcat-filename' (GPL).
39734         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
39735         (License): Change to LGPLv2+.
39736         * modules/xconcat-filename: New file.
39737         * lib/concat-filename.h (concatenated_filename): Change specification.
39738         (xconcatenated_filename): New declaration.
39739         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
39740         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
39741         memory situations.
39742         * lib/xconcat-filename.c: New file.
39743         * NEWS: Mention the change.
39744         * lib/findprog.c: Include concat-filename.h, not filename.h.
39745         (find_in_path): Use xconcatenated_filename instead of
39746         concatenated_filename.
39747         * lib/javacomp.c: Include concat-filename.h, not filename.h.
39748         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
39749         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
39750         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
39751         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
39752         instead of concatenated_filename.
39753         * lib/javaexec.c: Include concat-filename.h, not filename.h.
39754         (execute_java_class): Use xconcatenated_filename instead of
39755         concatenated_filename.
39756         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
39757         * modules/javacomp (Depends-on): Likewise.
39758         * modules/javaexec (Depends-on): Likewise.
39759
39760 2008-09-01  Bruno Haible  <bruno@clisp.org>
39761
39762         Split module 'filename' into 'filename' and 'concat-filename'.
39763         * modules/filename: Keep only lib/filename.h.
39764         (License): Change to LGPLv2+.
39765         * modules/concat-filename: New file, extracted from modules/filename.
39766         * lib/filename.h (concatenated_filename): Remove declaration.
39767         * lib/concat-filename.h: New file, extracted from lib/filename.h.
39768         * lib/concat-filename.c: Include concat-filename.h.
39769         * NEWS: Mention the change.
39770
39771 2008-09-01  Simon Josefsson  <simon@josefsson.org>
39772
39773         * lib/bitrotate.h (rotl8, rotr8): Add.
39774
39775         * modules/bitrotate (configure.ac): Need
39776         AC_REQUIRE([AC_C_INLINE]).
39777         (Description): Mention stdint.h.  Reported by Bruno Haible
39778         <bruno@clisp.org>.
39779
39780         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
39781         Paolo Bonzini <bonzini@gnu.org>.
39782
39783 2008-08-31  Bruno Haible  <bruno@clisp.org>
39784
39785         Assume Solaris specific bi-arch conventions on Solaris systems.
39786         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
39787         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
39788         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
39789         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
39790         like acl_libdirstem.
39791         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
39792         acl_libdirstem.
39793         * NEWS: Mention the change.
39794         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
39795
39796 2008-08-31  Jim Meyering  <meyering@redhat.com>
39797
39798         * lib/strftime.h: Add comments describing the two added arguments.
39799
39800         remove duplicate #include directives
39801         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
39802         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
39803
39804 2008-08-31  Bruno Haible  <bruno@clisp.org>
39805
39806         New module 'sigpipe-die'.
39807         * modules/sigpipe-die: New file.
39808         * lib/sigpipe-die.h: New file.
39809         * lib/sigpipe-die.c: New file.
39810         * MODULES.html.sh (Signal handling): Add sigpipe-die.
39811
39812 2008-08-31  Bruno Haible  <bruno@clisp.org>
39813
39814         Don't override previously installed signal handlers.
39815         * lib/fatal-signal.c (saved_sigactions): New variable.
39816         (uninstall_handlers): Reset the signal to the saved handler, not
39817         to SIG_DFL (except when ignored).
39818         (install_handlers): Save the previous handlers.
39819
39820 2008-08-30  Bruno Haible  <bruno@clisp.org>
39821
39822         * gnulib-tool (func_reset_sigpipe): New function.
39823         (func_get_automake_snippet, func_modules_transitive_closure,
39824         func_import): Invoke it before a join command that reads from stdin,
39825         to avoid "echo: write error: Broken pipe" error messages on stderr.
39826         Reported by Sam Steingold <sds@gnu.org>.
39827
39828 2008-08-30  Bruno Haible  <bruno@clisp.org>
39829
39830         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
39831         Code copied from m4/open.m4.
39832         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
39833         access and the filename ends in a slash. Code copied from lib/open.c.
39834         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
39835         * tests/test-fopen.c (main): Check against bug with trailing slash.
39836
39837 2008-08-29  Bruno Haible  <bruno@clisp.org>
39838
39839         Avoid some "gcc -pedantic" warnings.
39840         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
39841         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
39842         * lib/dirent.in.h: Likewise.
39843         * lib/fcntl.in.h: Likewise.
39844         * lib/float.in.h: Likewise.
39845         * lib/iconv.in.h: Likewise.
39846         * lib/inttypes.in.h: Likewise.
39847         * lib/locale.in.h: Likewise.
39848         * lib/math.in.h: Likewise.
39849         * lib/netinet_in.in.h: Likewise.
39850         * lib/search.in.h: Likewise.
39851         * lib/signal.in.h: Likewise.
39852         * lib/stdarg.in.h: Likewise.
39853         * lib/stdint.in.h: Likewise.
39854         * lib/stdio.in.h: Likewise.
39855         * lib/stdlib.in.h: Likewise.
39856         * lib/string.in.h: Likewise.
39857         * lib/strings.in.h: Likewise.
39858         * lib/sys_select.in.h: Likewise.
39859         * lib/sys_socket.in.h: Likewise.
39860         * lib/sys_stat.in.h: Likewise.
39861         * lib/sys_time.in.h: Likewise.
39862         * lib/sysexits.in.h: Likewise.
39863         * lib/time.in.h: Likewise.
39864         * lib/unistd.in.h: Likewise.
39865         * lib/wchar.in.h: Likewise.
39866         * lib/wctype.in.h: Likewise.
39867         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
39868         * modules/fchdir (Makefile.am): Likewise.
39869         * modules/fcntl (Makefile.am): Likewise.
39870         * modules/float (Makefile.am): Likewise.
39871         * modules/iconv_open (Makefile.am): Likewise.
39872         * modules/inttypes (Makefile.am): Likewise.
39873         * modules/locale (Makefile.am): Likewise.
39874         * modules/math (Makefile.am): Likewise.
39875         * modules/netinet_in (Makefile.am): Likewise.
39876         * modules/search (Makefile.am): Likewise.
39877         * modules/signal (Makefile.am): Likewise.
39878         * modules/stdarg (Makefile.am): Likewise.
39879         * modules/stdint (Makefile.am): Likewise.
39880         * modules/stdio (Makefile.am): Likewise.
39881         * modules/stdlib (Makefile.am): Likewise.
39882         * modules/string (Makefile.am): Likewise.
39883         * modules/strings (Makefile.am): Likewise.
39884         * modules/sys_select (Makefile.am): Likewise.
39885         * modules/sys_socket (Makefile.am): Likewise.
39886         * modules/sys_stat (Makefile.am): Likewise.
39887         * modules/sys_time (Makefile.am): Likewise.
39888         * modules/sysexits (Makefile.am): Likewise.
39889         * modules/time (Makefile.am): Likewise.
39890         * modules/unistd (Makefile.am): Likewise.
39891         * modules/wchar (Makefile.am): Likewise.
39892         * modules/wctype (Makefile.am): Likewise.
39893         Reported by Reuben Thomas <rrt@sc3d.org>.
39894
39895 2008-08-29  Bruno Haible  <bruno@clisp.org>
39896
39897         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
39898         any more.
39899
39900 2008-08-29  Simon Josefsson  <simon@josefsson.org>
39901
39902         * MODULES.html.sh (Misc): Add bitrotate.
39903
39904         * modules/bitrotate: New file.
39905
39906         * lib/bitrotate.h: New file.
39907
39908         * modules/bitrotate-tests: New file.
39909
39910         * tests/test-bitrotate.c: New file.
39911
39912         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
39913         on the bitrotate module.
39914
39915         * lib/arctwo.c: Use new bitrotate module.
39916
39917 2008-08-29  Jim Meyering  <meyering@redhat.com>
39918
39919         bootstrap: merge changes from coreutils
39920         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
39921         of copied files.  Remove a kludge, now that this is fixed.
39922         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
39923         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
39924         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
39925
39926 2008-08-29  Bruno Haible  <bruno@clisp.org>
39927
39928         * MODULES.html.sh: Remove --cvs-urls option.
39929
39930 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
39931
39932         maint.mk: adjust to file name change
39933         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
39934
39935 2008-08-28  Jim Meyering  <meyering@redhat.com>
39936
39937         * modules/getndelim2 (License): Relicense to LGPLv2+.
39938         Approved by Richard Stallman for the version of 1995, and by
39939         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
39940
39941 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
39942
39943         * lib/getdelim.c (flockfile, funlockfile): Make all of them
39944         dummy if one is not available.  Do not touch them if
39945         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
39946         (getc_maybe_unlocked): New.
39947         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
39948
39949 2008-08-26  Eric Blake  <ebb9@byu.net>
39950
39951         doc/INSTALL: resync from autoconf
39952         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
39953         (INSTALL_PRELUDE): Delete; this is done more efficiently by
39954         moving...
39955         * install.texi [!autoconf]: ...here.  Resync from autoconf.
39956         * INSTALL: Regenerate.
39957         * INSTALL.ISO: New file.
39958         * INSTALL.UTF-8: Likewise.
39959
39960 2008-08-26  Jim Meyering  <meyering@redhat.com>
39961
39962         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
39963         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
39964         these definitions conditional, so that they may be overridden, too.
39965
39966 2008-08-26  Bruno Haible  <bruno@clisp.org>
39967
39968         Generate INSTALL file variants with prettier quotes.
39969         * doc/Makefile (INSTALL_PRELUDE): New macro.
39970         (INSTALL): Use it.
39971         (INSTALL.ISO, INSTALL.UTF-8): New rules.
39972
39973 2008-08-26  Bruno Haible  <bruno@clisp.org>
39974
39975         Run makeinfo in an English locale.
39976         * doc/Makefile (MAKEINFO): New variable.
39977
39978 2008-08-26  Bruno Haible  <bruno@clisp.org>
39979
39980         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
39981         Suggested by Eric Blake.
39982
39983 2008-08-25  Bruno Haible  <bruno@clisp.org>
39984
39985         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
39986
39987 2008-08-25  Eric Blake  <ebb9@byu.net>
39988
39989         c-stack: test that stack overflow can be caught
39990         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
39991         that platform allows handling stack overflow; at least OS/2 EMX
39992         has sigaltstack, but crashes before transferring control to
39993         handler on stack overflow.
39994         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
39995         check for HAVE_STACK_OVERFLOW_HANDLING.
39996         Reported by Elbert Pol.
39997
39998 2008-08-25  Bruno Haible  <bruno@clisp.org>
39999
40000         * doc/posix-functions/strftime.texi: Fix description of strftime
40001         module.
40002
40003 2008-08-24  Bruno Haible  <bruno@clisp.org>
40004
40005         * tests/uniwidth/test-uc_width2.c: New file.
40006         * tests/uniwidth/test-uc_width2.sh: New file.
40007         * modules/uniwidth/width-tests (Files): Add the new files.
40008         (TESTS): Add uniwidth/test-uc_width2.sh.
40009         (TESTS_ENVIRONMENT): New variable.
40010         (check_PROGRAMS): Add test-uc_width2.
40011         (test_uc_width2_SOURCES): New variable.
40012
40013         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
40014         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
40015         not 0x00AB.
40016         Reported by Alexander V. Lukyanov <lav@netis.ru>.
40017
40018 2008-08-22  Eric Blake  <ebb9@byu.net>
40019
40020         test-lock, test-tls: mention why a test is skipped
40021         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
40022         skipped.
40023         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
40024
40025         count-one-bits: relax license
40026         * modules/count-one-bits (License): Relicense to LGPLv2+.
40027         Suggested by Ludovic Courtès, approved by Ben Pfaff.
40028
40029 2008-08-22  Andreas Schwab  <schwab@suse.de>
40030
40031         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
40032         Remove spurious space in assignment.
40033
40034 2008-08-21  Simon Josefsson  <simon@josefsson.org>
40035
40036         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
40037         Paul Eggert <eggert@CS.UCLA.EDU>.
40038
40039 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
40040
40041         * modules/gettext: Add m4/threadlib.m4.
40042
40043 2008-08-19  Eric Blake  <ebb9@byu.net>
40044
40045         test-c-stack: fix compilation failure on FreeBSD 5.0
40046         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
40047         headers before <sys/resource.h>.
40048         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
40049         the bug.
40050         Reported by Nelson H. F. Beebe.
40051
40052         strverscmp: migrate from "strverscmp.h" to <string.h>
40053         * modules/string (Makefile.am): Add new hooks.
40054         * modules/strverscmp (Files): Remove strverscmp.h.
40055         (Depends-on): Add string.
40056         (configure.ac): Add indicator.
40057         (Include): Mention new header.
40058         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
40059         defaults.
40060         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
40061         results.
40062         * lib/strverscmp.h: Delete.
40063         * lib/string.in.h (strverscmp): Provide declaration, when needed.
40064         * tests/test-strverscmp.c (includes): Adjust client.
40065         * lib/check-version.c (includes): Likewise.
40066         * NEWS: Document the change.
40067
40068         strverscmp: add unit test
40069         * modules/strverscmp-tests: New file.
40070         * tests/test-strverscmp.c: Likewise.
40071
40072 2008-08-19  Simon Josefsson  <simon@josefsson.org>
40073
40074         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
40075         regarding Windows crypto stuff, from Mono.
40076
40077 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
40078
40079         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
40080         if present, for intel RND.  Return error on failures.
40081
40082 2008-08-18  Ben Pfaff  <blp@gnu.org>
40083
40084         gitlog-to-changelog: give better diagnostic for failed pipe-open
40085         * build-aux/gitlog-to-changelog: Improve error message: suggest
40086         that the version of Git may be too old.
40087
40088 2008-08-18  Simon Josefsson  <simon@josefsson.org>
40089
40090         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
40091         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
40092
40093 2008-08-18  Bruno Haible  <bruno@clisp.org>
40094
40095         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
40096         pthread_in_use().
40097
40098 2008-08-18  Bruno Haible  <bruno@clisp.org>
40099
40100         * lib/glthread/threadlib.c: Include <pthread.h>.
40101
40102 2008-08-18  Bruno Haible  <bruno@clisp.org>
40103
40104         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
40105         glthread_recursive_lock_* macros.
40106         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
40107         Fix syntax error.
40108
40109 2008-08-18  Bruno Haible  <bruno@clisp.org>
40110
40111         * lib/glthread/thread.c: Avoid forcing a context switch right after
40112         thread creation.
40113
40114 2008-08-17  Bruno Haible  <bruno@clisp.org>
40115
40116         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
40117         * lib/glthread/thread.h: Provide Win32 specific implementation.
40118         * modules/thread (Files): Add lib/glthread/thread.c.
40119         (Depends-on): Add lock.
40120         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
40121
40122 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40123
40124         New module 'yield'.
40125         * modules/yield: New file.
40126         * lib/glthread/yield.h: New file.
40127         * m4/yield.m4: New file.
40128         * MODULES.html.sh (Multithreading): Add yield.
40129
40130 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40131
40132         New module 'thread'.
40133         * modules/thread: New file.
40134         * lib/glthread/thread.h: New file.
40135         * m4/thread.m4: New file.
40136         * MODULES.html.sh (Multithreading): Add thread.
40137
40138 2008-08-17  Bruno Haible  <bruno@clisp.org>
40139
40140         * lib/glthread/lock.h: Include <stdlib.h> always.
40141         * lib/glthread/tls.h: Likewise.
40142         * lib/glthread/cond.h: Likewise.
40143
40144 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40145
40146         New module 'cond'.
40147         * modules/cond: New file.
40148         * lib/glthread/cond.h: New file.
40149         * lib/glthread/cond.c: New file.
40150         * m4/cond.m4: New file.
40151         * MODULES.html.sh (Multithreading): Add cond.
40152
40153 2008-08-16  Eric Blake  <ebb9@byu.net>
40154
40155         c-stack: fix regression on Irix 5.3 from 2008-06-21
40156         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
40157         sa_sigaction...
40158         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
40159         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
40160         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
40161         * modules/signal (Makefile.am): Use the value.
40162         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
40163         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
40164         * doc/posix-headers/signal.texi (signal.h): Document this
40165         portability issue.
40166         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
40167         Reported by Tom G. Christensen.
40168
40169 2008-08-17  Bruno Haible  <bruno@clisp.org>
40170
40171         New module 'threadlib'.
40172         * modules/threadlib: New file.
40173         * lib/glthread/threadlib.c: New file, extracted from
40174         lib/glthread/lock.c.
40175         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
40176         functions.
40177         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
40178         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
40179         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
40180         macros.
40181         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
40182         (gl_DISABLE_THREADS): Remove macro.
40183         * modules/lock (Files): Remove build-aux/config.rpath.
40184         (Depends-on): Remove havelib. Add threadlib.
40185         (configure.ac-early): Remove section.
40186         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
40187         * modules/tls (Depends-on): Remove lock. Add threadlib.
40188         (Link): New section, copied from threadlib.
40189         * MODULES.html.sh (Multithreading): Add threadlib.
40190
40191 2008-08-14  Bruno Haible  <bruno@clisp.org>
40192
40193         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
40194         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
40195         glthread_rwlock_unlock, glthread_rwlock_destroy,
40196         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
40197         glthread_recursive_lock_destroy): Define as macros always.
40198         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
40199         glthread_lock_lock.
40200         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
40201         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
40202         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
40203         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
40204         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
40205         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
40206         (glthread_recursive_lock_lock_func): Renamed from
40207         glthread_recursive_lock_lock.
40208         (glthread_recursive_lock_unlock_func): Renamed from
40209         glthread_recursive_lock_unlock.
40210         (glthread_recursive_lock_destroy_func): Renamed from
40211         glthread_recursive_lock_destroy.
40212
40213 2008-08-14  Bruno Haible  <bruno@clisp.org>
40214
40215         * lib/glthread/lock.h: Renamed from lib/lock.h.
40216         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
40217         * lib/glthread/tls.h: Renamed from lib/tls.h.
40218         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
40219         * lib/fstrcmp.c: Update includes.
40220         * lib/strsignal.c: Update includes.
40221         * modules/lock (Files, Makefile.am): Update.
40222         (Include): Change to "glthread/lock.h".
40223         * modules/tls (Files, Makefile.am): Update.
40224         (Include): Change to "glthread/tls.h".
40225         * tests/test-lock.c: Update includes.
40226         * tests/test-tls.c: Update includes.
40227         * NEWS: Mention the renamed header files.
40228
40229 2008-08-11  Jim Meyering  <meyering@redhat.com>
40230
40231         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
40232
40233 2008-08-11  Eric Blake  <ebb9@byu.net>
40234
40235         test-c-stack: avoid C99-ism
40236         * tests/test-c-stack.c (main): Fix whitespace, move declaration
40237         before statement.
40238         Reported by Alain Guibert.
40239
40240 2008-08-10  Jim Meyering  <meyering@redhat.com>
40241
40242         ensure that return value of uinttostr et al are not ignored
40243         * lib/inttostr.h (__GNUC_PREREQ): Define.
40244         (__attribute_warn_unused_result__): Define.
40245         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
40246
40247 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
40248
40249         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
40250         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
40251
40252 2008-08-07  Jim Meyering  <meyering@redhat.com>
40253
40254         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
40255
40256         * modules/mkstemp (License): Relicense under LGPLv2+.
40257         * modules/tempname (License): Likewise.
40258
40259 2008-08-06  Bruno Haible  <bruno@clisp.org>
40260
40261         * lib/poll.c (poll): Further micro-optimization.
40262
40263 2008-08-06  Jim Meyering  <meyering@redhat.com>
40264
40265         inet_pton.c: use locale-independent tolower
40266         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
40267         (inet_pton6): Use c_tolower rather than tolower.
40268         * modules/inet_pton (Depends-on): Add c-ctype.
40269
40270 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
40271
40272         * lib/poll.c (poll): Avoid division when timeout is 0, cache
40273         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
40274
40275 2008-08-06  Jim Meyering  <meyering@redhat.com>
40276
40277         * modules/inet_pton (License): Relicense under LGPLv2+.
40278
40279 2008-08-03  Bruno Haible  <bruno@clisp.org>
40280
40281         Additional non-aborting API for lock and tls.
40282         * lib/lock.h: Include <errno.h>.
40283         (glthread_lock_init): New macro/function.
40284         (gl_lock_init): Define as wrapper around glthread_lock_init.
40285         (glthread_lock_lock): New macro/function.
40286         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
40287         (glthread_lock_unlock): New macro/function.
40288         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
40289         (glthread_lock_destroy): New macro/function.
40290         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
40291         (glthread_rwlock_init): New macro/function.
40292         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
40293         (glthread_rwlock_rdlock): New macro/function.
40294         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
40295         (glthread_rwlock_wrlock): New macro/function.
40296         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
40297         (glthread_rwlock_unlock): New macro/function.
40298         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
40299         (glthread_rwlock_destroy): New macro/function.
40300         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
40301         (glthread_recursive_lock_init): New macro/function.
40302         (gl_recursive_lock_init): Define as wrapper around
40303         glthread_recursive_lock_init.
40304         (glthread_recursive_lock_lock): New macro/function.
40305         (gl_recursive_lock_lock): Define as wrapper around
40306         glthread_recursive_lock_lock.
40307         (glthread_recursive_lock_unlock): New macro/function.
40308         (gl_recursive_lock_unlock): Define as wrapper around
40309         glthread_recursive_lock_unlock.
40310         (glthread_recursive_lock_destroy): New macro/function.
40311         (gl_recursive_lock_destroy): Define as wrapper around
40312         glthread_recursive_lock_destroy.
40313         (glthread_once): New macro/function.
40314         (gl_once): Define as wrapper around glthread_once.
40315         Update function declarations.
40316         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
40317         glthread_rwlock_init. Return error code.
40318         (glthread_rwlock_rdlock_multithreaded): Renamed from
40319         glthread_rwlock_rdlock. Return error code.
40320         (glthread_rwlock_wrlock_multithreaded): Renamed from
40321         glthread_rwlock_wrlock. Return error code.
40322         (glthread_rwlock_unlock_multithreaded): Renamed from
40323         glthread_rwlock_unlock. Return error code.
40324         (glthread_rwlock_destroy_multithreaded): Renamed from
40325         glthread_rwlock_destroy. Return error code.
40326         (glthread_recursive_lock_init_multithreaded): Renamed from
40327         glthread_recursive_lock_init. Return error code.
40328         (glthread_recursive_lock_lock_multithreaded): Renamed from
40329         glthread_recursive_lock_lock. Return error code.
40330         (glthread_recursive_lock_unlock_multithreaded): Renamed from
40331         glthread_recursive_lock_unlock. Return error code.
40332         (glthread_recursive_lock_destroy_multithreaded): Renamed from
40333         glthread_recursive_lock_destroy. Return error code.
40334         (glthread_once_call): Make static.
40335         (glthread_once_multithreaded): Renamed from glthread_once.
40336         * lib/tls.h: Include <errno.h>.
40337         (glthread_tls_key_init): New macro/function.
40338         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
40339         (glthread_tls_set): New macro/function.
40340         (gl_tls_set): Define as wrapper around glthread_tls_set.
40341         (glthread_tls_key_destroy): New macro/function.
40342         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
40343         Update function declarations.
40344         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
40345         glthread_tls_get.
40346         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40347
40348 2008-08-04  Eric Blake  <ebb9@byu.net>
40349
40350         gnumakefile: use space, not TAB, outside of targets
40351         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
40352
40353 2008-08-02  Jim Meyering  <meyering@redhat.com>
40354
40355         getdate.y: avoid locale-dependent date parsing failure
40356         In Turkish locales, getdate would fail to recognize keywords
40357         containing a lowercase "i".  The solution is not to rely on
40358         locale-sensitive case-conversion.
40359         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
40360         (lookup_word): Use c_toupper in place of toupper.
40361         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
40362         Reported by Vefa Bicakci <bicave@superonline.com> in
40363         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
40364         * modules/getdate (Depends-on): Add c-ctype.
40365
40366 2008-08-02  Bruno Haible  <bruno@clisp.org>
40367
40368         * gnulib-tool (func_import): When updating or creating a .gitignore
40369         file, prepend each added line with a slash, and ignore leading slashes
40370         from the existing lines.
40371         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
40372
40373 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40374
40375         Portability fix for GNU make 3.79.1.
40376         * top/GNUmakefile: Avoid 'else COND', which older GNU make
40377         versions do not understand.
40378
40379 2008-08-01  Bruno Haible  <bruno@clisp.org>
40380
40381         Work around bug of HP-UX 10.20 cc with -0.0 literal.
40382         * tests/test-isnanf.h (zero): New variable.
40383         (main): Avoid literal -0.0f.
40384         * tests/test-isnand.h (zero): New variable.
40385         (main): Avoid literal -0.0.
40386         * tests/test-isnanl.h (zero): New variable.
40387         (main): Avoid literal -0.0L.
40388         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
40389         (test_float, test_double, test_long_double): Avoid literals -0.0f,
40390         -0.0, -0.0L.
40391         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
40392         (test_signbitd): Avoid literal -0.0.
40393         (test_signbitl): Avoid literal -0.0L.
40394         * tests/test-ceilf1.c (zero): New variable.
40395         (main): Avoid literal -0.0f.
40396         * tests/test-ceill.c (zero): New variable.
40397         (main): Avoid literal -0.0L.
40398         * tests/test-floorf1.c (zero): New variable.
40399         (main): Avoid literal -0.0f.
40400         * tests/test-floorl.c (zero): New variable.
40401         (main): Avoid literal -0.0L.
40402         * tests/test-roundf1.c (zero): New variable.
40403         (main): Avoid literal -0.0f.
40404         * tests/test-round1.c (zero): New variable.
40405         (main): Avoid literal -0.0.
40406         * tests/test-roundl.c (zero): New variable.
40407         (main): Avoid literal -0.0L.
40408         * tests/test-truncf1.c (zero): New variable.
40409         (main): Avoid literal -0.0f.
40410         * tests/test-trunc1.c (zero): New variable.
40411         (main): Avoid literal -0.0.
40412         * tests/test-truncl.c (zero): New variable.
40413         (main): Avoid literal -0.0L.
40414         * tests/test-frexp.c (zero): New variable.
40415         (main): Avoid literal -0.0.
40416         * tests/test-frexpl.c (zero): New variable.
40417         (main): Avoid literal -0.0L.
40418         * tests/test-ldexpl.c (zero): New variable.
40419         (main): Avoid literal -0.0L.
40420         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40421         (zerod, zerol): New variables.
40422         (test_function): Avoid literals -0.0, -0.0L.
40423         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40424         (zerod, zerol): New variables.
40425         (test_function): Avoid literals -0.0, -0.0L.
40426         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40427         (zerod, zerol): New variables.
40428         (test_function): Avoid literals -0.0, -0.0L.
40429         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40430         (zerod, zerol): New variables.
40431         (test_function): Avoid literals -0.0, -0.0L.
40432         * tests/test-strtod.c (zero): New variable.
40433         (main): Avoid literal -0.0.
40434         Reported by Jonathan C. Patschke <jp@centtech.com>.
40435
40436 2008-07-31  Jim Meyering  <meyering@redhat.com>
40437
40438         sha256.h: correct definition of SHA224_DIGEST_SIZE
40439         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
40440         Reported by Paulie Pena IV <paulie4@gmail.com>.
40441         Define as 224 / 8, rather than as a literal.
40442         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
40443         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
40444         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
40445
40446 2008-07-31  Bruno Haible  <bruno@clisp.org>
40447
40448         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
40449         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
40450         Reported by Jonathan Patschke <jp@centtech.com>.
40451
40452 2008-07-31  Bruno Haible  <bruno@clisp.org>
40453
40454         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
40455         Reported by Paolo Bonzini <bonzini@gnu.org>.
40456
40457 2008-07-30  Eric Blake  <ebb9@byu.net>
40458
40459         test-strtod: allow compilation without -lm
40460         * tests/test-strtod.c (main): Avoid link dependence on fabs.
40461         Reported by Dennis Clarke <blastwave@gmail.com>.
40462
40463 2008-07-28  Jim Meyering  <meyering@redhat.com>
40464
40465         bootstrap: work also when there are no .po files in po/
40466         * build-aux/bootstrap (update_po_files): Complete the change
40467         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
40468
40469 2008-07-27  Jim Meyering  <meyering@redhat.com>
40470
40471         * users.txt: Add zile.
40472
40473 2008-07-26  Ben Pfaff  <blp@gnu.org>
40474
40475         Add missing dependencies on new m4/exponent[fdl].m4 files.
40476         * modules/isnanf-nolibm: Add m4/exponentf.m4.
40477         * modules/isnand-nolibm: Add m4/exponentd.m4.
40478         * modules/isnanl-nolibm: Add m4/exponentl.m4.
40479         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
40480         m4/isnan[fdl].m4, because the macros actually used moved.
40481         Reported by Jim Meyering.
40482
40483 2008-07-14  Ben Pfaff  <blp@gnu.org>
40484
40485         Add isinf module.
40486         * lib/isinf.c: New file.
40487         * lib/math.in.h: Define isinf macro if we have decided to replace
40488         it.
40489         * m4/isinf.m4: New file.
40490         * m4/math_h.m4: Initialize and substitute variables for isinf
40491         module.
40492         * modules/isinf: New file.
40493         * modules/isinf-tests: New file.
40494         * modules/math: Add substitutions for new module.
40495         * tests/test-isinf.c: New file.
40496         * doc/posix-functions/isinf.texi: Mention new module.
40497         * MODULES.html.sh: Mention new module.
40498
40499 2008-07-14  Ben Pfaff  <blp@gnu.org>
40500
40501         Factor out some macros for use by additional modules.
40502         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
40503         exponentf.m4.
40504         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
40505         exponentd.m4.
40506         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
40507         file exponentl.m4.
40508         * m4/exponentf.m4: New file.
40509         * m4/exponentd.m4: New file.
40510         * m4/exponentl.m4: New file.
40511         * modules/isnanf: Use new file m4/exponentf.m4.
40512         * modules/isnand: Use new file m4/exponentd.m4.
40513         * modules/isnanl: Use new file m4/exponentl.m4.
40514
40515 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
40516
40517         mktime.c: normalize tp->tm_isdst value to -1/0/1.
40518         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
40519         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
40520         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
40521
40522         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
40523         readlink on platforms without PATH_MAX.
40524
40525 2008-07-21  Eric Blake  <ebb9@byu.net>
40526
40527         Warn, not fail, on stale version.
40528         * top/GNUmakefile (_curr-ver): Tone down previous patch.
40529
40530         Don't allow installation with stale devel version number.
40531         * top/GNUmakefile (_is-install-target): New macro.
40532         (_curr-ver): Forbid installation with stale version number.
40533
40534 2008-07-20  Bruno Haible  <bruno@clisp.org>
40535
40536         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
40537         TESTS_ENVIRONMENT.
40538         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
40539
40540 2008-07-20  Bruno Haible  <bruno@clisp.org>
40541
40542         * lib/c-stack.h (c_stack_action): Add documentation.
40543         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
40544
40545 2008-07-20  Bruno Haible  <bruno@clisp.org>
40546
40547         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
40548         * modules/readlink (License): Likewise.
40549
40550 2008-07-17  Eric Blake  <ebb9@byu.net>
40551
40552         * modules/c-stack (Link): Fix typo.
40553
40554         Make c-stack use libsigsegv, when available.
40555         * modules/c-stack (Depends-on): Add libsigsegv.
40556         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
40557         needed.
40558         * lib/c-stack.c (SIGSTKSZ): Define fallback.
40559         (segv_handler, overflow_handler, c_stack_action)
40560         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
40561         implementation when libsigsegv is available, but only when using
40562         the library is necessary.
40563         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
40564         comment, explaining why XSI check fails on Linux.
40565         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
40566         * tests/test-c-stack2.sh: Tweak skip message.
40567         * NEWS: Document new link-time requirements.
40568
40569 2008-07-16  Eric Blake  <ebb9@byu.net>
40570
40571         c-stack: Expose false positives when not using libsigsegv.
40572         * modules/c-stack-tests (Files): Expand test.
40573         * tests/test-c-stack.c (main): Add means to conditionally trigger
40574         non-overflow SIGSEGV.
40575         * tests/test-c-stack2.sh: New file.
40576
40577 2008-07-14  Bruno Haible  <bruno@clisp.org>
40578
40579         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
40580         Reported by Eric Blake.
40581
40582 2008-07-14  Sam Steingold  <sds@gnu.org>
40583             Bruno Haible  <bruno@clisp.org>
40584
40585         New module libsigsegv.
40586         * modules/libsigsegv: New file.
40587         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
40588         modifications.
40589         * MODULES.html.sh (Signal handling): New section.
40590
40591 2008-07-14  Bruno Haible  <bruno@clisp.org>
40592
40593         * modules/unictype/ctype-* (Description): Add the word "function".
40594         Improves the resulting doc in MODULES.html.
40595
40596 2008-07-12  Ben Pfaff  <blp@gnu.org>
40597
40598         Add longlong module.
40599         * modules/longlong: New file.
40600
40601 2008-07-12  Bruno Haible  <bruno@clisp.org>
40602
40603         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
40604         to empty.
40605
40606 2008-07-10  Ben Pfaff  <blp@gnu.org>
40607
40608         Add isnan module.
40609         * doc/posix-functions/isnan.texi: Mention new module.
40610         * lib/math.in.h: Define isnan macro if we have decided to replace
40611         it.
40612         * m4/isnan.m4: New file.
40613         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
40614         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
40615         also.
40616         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
40617         redundancy.
40618         * m4/math_h.m4: Initialize and substitute variables for isnan
40619         module.
40620         * modules/isnan: New file.
40621         * modules/isnan-tests: New file.
40622         * modules/math: Add substitutions for new module.
40623         * tests/test-isnan.c: New file.
40624         * MODULES.html.sh: Mention new module.
40625
40626 2008-07-10  Ben Pfaff  <blp@gnu.org>
40627
40628         Add isnanf module.
40629         * lib/isnanf.m4: New file.
40630         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
40631         (gl_HAVE_ISNANF_IN_LIBM): New macro.
40632         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
40633         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
40634         * modules/isnanf: New file.
40635         * modules/isnanf-tests: New file.
40636         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
40637         files.
40638         * tests/test-isnanf-nolibm.c: factored most of its contents into
40639         new file tests/test-isnanf.h.
40640         * tests/test-isnanf.h: New file.
40641         * tests/test-isnanf.c: New file.
40642         * MODULES.html.sh: Mention new module.
40643         * doc/glibc-functions/isnanf.texi: Mention new module.
40644
40645 2008-07-10  Ben Pfaff  <blp@gnu.org>
40646
40647         Add isnand module.
40648         * lib/isnand.h: New file.
40649         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
40650         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
40651         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
40652         functionality also.
40653         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
40654         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
40655         (gl_HAVE_ISNAND_IN_LIBM): New macro.
40656         * modules/isnand: New file.
40657         * modules/isnand-tests: New file.
40658         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
40659         files.
40660         * tests/test-isnand-nolibm.c: factored most of its contents into
40661         new file tests/test-isnand.h.
40662         * tests/test-isnand.h: New file.
40663         * tests/test-isnand.c: New file.
40664         * MODULES.html.sh: Mention new module.
40665
40666 2008-07-10  Ben Pfaff  <blp@gnu.org>
40667
40668         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
40669         * lib/isnand.h: Rename lib/isnand-nolibm.h.
40670         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
40671         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
40672         * modules/isnanf-nolibm: Update references to renamed files.
40673         * modules/isnand-nolibm: Likewise.
40674         * modules/isnanf-nolibm-tests: Likewise.
40675         * modules/isnand-nolibm-tests: Likewise.
40676         * lib/frexp.c: Likewise.
40677         * lib/isfinite.c: Likewise.
40678         * lib/signbitd.c: Likewise.
40679         * lib/signbitf.c: Likewise.
40680         * lib/vasnprintf.c: Likewise.
40681         * tests/test-ceilf1.c: Likewise.
40682         * tests/test-ceilf2.c: Likewise.
40683         * tests/test-floorf1.c: Likewise.
40684         * tests/test-floorf2.c: Likewise.
40685         * tests/test-frexp.c: Likewise.
40686         * tests/test-round1.c: Likewise.
40687         * tests/test-round2.c: Likewise.
40688         * tests/test-roundf1.c: Likewise.
40689         * tests/test-strtod.c: Likewise.
40690         * tests/test-trunc1.c: Likewise.
40691         * tests/test-trunc2.c: Likewise.
40692         * tests/test-truncf1.c: Likewise.
40693         * tests/test-truncf2.c: Likewise.
40694         * NEWS: Mention the renamed header files.
40695
40696 2008-07-11  Jim Meyering  <meyering@redhat.com>
40697
40698         vc-list-files: make the last-resort awk code more portable
40699         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
40700         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
40701         does not support it.
40702
40703 2008-07-10  Eric Blake  <ebb9@byu.net>
40704
40705         Work with tar's bootstrap.
40706         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
40707         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
40708         an m4 comment.
40709
40710 2008-07-09  Jim Meyering  <meyering@redhat.com>
40711
40712         posix-shell.m4: fix typo that made this test malfunction
40713         * m4/posix-shell.m4: Remove capitalization in variable name.
40714
40715 2008-07-08  Bruno Haible  <bruno@clisp.org>
40716
40717         * m4/onceonly.m4: Update comments.
40718         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40719
40720 2008-07-04  Jim Meyering  <meyering@redhat.com>
40721
40722         * users.txt: Add vc-dwim.
40723         (bison, coreutils): Use the gitweb URL.
40724
40725 2008-07-03  Jim Meyering  <meyering@redhat.com>
40726
40727         * users.txt: Add libffcall.  From Sam Steingold.
40728
40729 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
40730
40731         getdate.y: do not ignore TZ with relative day, month or year offset
40732         * lib/getdate.y (get_date): Move the tz-handling block to follow the
40733         relative-date-handling, since otherwise, the latter would clobber the
40734         sole output (an updated Start value) of the tz-handling block.
40735         * tests/test-getdate.c: Tests for the fix
40736
40737 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40738
40739         Recognize 'foo_LIBRARIES += libgnu.a'.
40740         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
40741         makefile snippet has already specified an installation location,
40742         also using '+='.
40743
40744 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
40745
40746         getdate.y: factor out common actions
40747         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
40748         Use them in place of open-coded actions.
40749
40750 2008-07-01  Simon Josefsson  <simon@josefsson.org>
40751
40752         Add self-test for getdate module.
40753         * modules/getdate-tests: New file.
40754         * tests/test-getdate.c: New file.
40755
40756 2008-06-29  Bruno Haible  <bruno@clisp.org>
40757
40758         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
40759         .gitignore.
40760         Reported by Sylvain Beucler <beuc@beuc.net>.
40761
40762 2008-06-29  Bruno Haible  <bruno@clisp.org>
40763
40764         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
40765         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
40766
40767 2008-06-29  Bruno Haible  <bruno@clisp.org>
40768
40769         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
40770         EXTRA_DIST.
40771         Reported by Sylvain Beucler <beuc@beuc.net>.
40772
40773 2008-06-26  Jim Meyering  <meyering@redhat.com>
40774
40775         make several modules depend on the "open" module
40776         This provides slightly increased consistency when opening-for-write
40777         the name of a non-directory spelled with a trailing slash.
40778         * modules/chdir-safer: Likewise.
40779         * modules/chown: Likewise.
40780         * modules/clean-temp: Likewise.
40781         * modules/copy-file: Likewise.
40782         * modules/fchdir: Likewise.
40783         * modules/fcntl-safer: Likewise.
40784         * modules/pipe: Likewise.
40785         * modules/utime: Likewise.
40786         Prompted by Eric Blake and Bruno Haible.
40787
40788 2008-06-24  Andreas Schwab  <schwab@suse.de>
40789
40790         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
40791         literals can be used as initializers for global variables.
40792
40793 2008-06-23  Eric Blake  <ebb9@byu.net>
40794
40795         Make gnulib-cache.m4 easier to diff.
40796         * gnulib-tool (func_import): Allow newlines when reading cached
40797         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
40798
40799 2008-06-23  Bruno Haible  <bruno@clisp.org>
40800
40801         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
40802         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
40803         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
40804         m4/signalblocking.m4.
40805         (gl_PREREQ_SIGACTION): Don't invoke it.
40806         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
40807         gl_PREREQ_SIG_HANDLER_H.
40808         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40809         Don't check for sigaction here.
40810
40811 2008-06-23  Bruno Haible  <bruno@clisp.org>
40812
40813         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
40814         (install_handlers): Don't set the SA_RESETHAND flag.
40815
40816 2008-06-23  Bruno Haible  <bruno@clisp.org>
40817
40818         * m4/sigaction.m4: Comment fixes.
40819         * lib/signal.in.h: Likewise.
40820
40821 2008-06-23  Eric Blake  <ebb9@byu.net>
40822
40823         Fix typo.
40824         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
40825
40826         Avoid SA_ namespace.
40827         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
40828         Reported by Ralf Wildenhues.
40829
40830         Avoid test failure due to SA_RESTORER.
40831         * tests/test-sigaction.c (SA_MASK): New macro.
40832         (main): Avoid failing due to extension flags being set.
40833         Reported by Jim Meyering.
40834
40835         Revert use of sig-handler.h in sigprocmask.c.
40836         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
40837         it requires the existence of struct sigaction.
40838         * lib/sigprocmask.c (handler_t): Restore typedef.
40839         (rpl_signal, old_handlers): Use local type.
40840
40841 2008-06-22  Bruno Haible  <bruno@clisp.org>
40842
40843         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
40844         conditionally.
40845         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40846
40847 2008-06-22  Bruno Haible  <bruno@clisp.org>
40848
40849         * doc/posix-functions/siginterrupt.texi: Move note.
40850
40851         * lib/signal.in.h (SA_RESTART): New macro.
40852         * lib/sigaction.c: Update comment.
40853
40854         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
40855
40856         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
40857         (gl_PREREQ_SIGPROCMASK): Invoke it.
40858         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
40859
40860         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
40861
40862         * lib/sigprocmask.c: Update a comment.
40863
40864 2008-06-21  Eric Blake  <ebb9@byu.net>
40865
40866         Use sigaction module rather than signal().
40867         * modules/c-stack (Depends-on): Add sigaction.
40868         * modules/fatal-signal (Depends-on): Likewise.
40869         * modules/nanosleep (Depends-on): Likewise.
40870         * modules/sigprocmask (Files): Add sig-handler.h.
40871         * modules/sigaction (Files): Likewise.
40872         * lib/sig-handler.h (get_handler): New file, suggested by Paul
40873         Eggert.
40874         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
40875         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
40876         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
40877         (init_fatal_signals): Likewise.
40878         * lib/nanosleep.c (rpl_nanosleep): Likewise.
40879         (siginterrupt): Delete fallback.
40880         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
40881         instead.
40882         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
40883         siginterrupt.
40884
40885         New module sigaction, for mingw.
40886         * modules/sigaction: New module...
40887         * modules/sigaction-tests: ...and its test.
40888         * m4/sigaction.m4: New file.
40889         * lib/sigaction.c: Likewise.
40890         * tests/test-sigaction.c: Likewise.
40891         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
40892         * modules/signal (Makefile.am): Likewise.
40893         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
40894         needed.
40895         * doc/posix-headers/signal.texi (signal.h): Mention provided
40896         types.
40897         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
40898         that sigaction is preferable.
40899         * doc/posix-functions/sigaction.texi (sigaction): Mention new
40900         module.
40901         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40902         sigaction.
40903
40904         Improve robustness of sigprocmask by overriding signal.
40905         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
40906         is in use.
40907         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
40908         (SIGKILL, SIGSTOP): Provide fallbacks.
40909         (rpl_signal): Implement.
40910         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
40911         signal can be called inside handlers.
40912
40913         Fix nanosleep module on mingw.
40914         * modules/nanosleep (Depends-on): Add sys_select.
40915         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
40916
40917         Fix licensing of sigprocmask.
40918         * modules/raise (License): Relicense as LGPL.
40919
40920 2008-06-21  Bruno Haible  <bruno@clisp.org>
40921
40922         * lib/propername.c (proper_name_utf8): Don't use the transliterated
40923         result if it contains question marks.
40924         Reported by Michael Geng <linux@michaelgeng.de>.
40925
40926 2008-06-19  Bruno Haible  <bruno@clisp.org>
40927
40928         Fix CVS-ism.
40929         * doc/gnulib.texi: Include updated-stamp.texi.
40930         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
40931         (updated-stamp.texi): New rule.
40932         (gnulib.info): Depend on it.
40933         * doc/.gitignore: Add updated-stamp.texi.
40934         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
40935
40936 2008-06-19  Bruno Haible  <bruno@clisp.org>
40937
40938         * doc/Makefile (gnulib.info): Update and simplify dependencies.
40939         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40940
40941 2008-06-19  Eric Blake  <ebb9@byu.net>
40942
40943         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
40944         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
40945         Reported by Stepan Kasal.
40946
40947 2008-06-18  Bruno Haible  <bruno@clisp.org>
40948
40949         * lib/fatal-signal.c (init_fatal_signals): Add comment.
40950         Reported by Eric Blake.
40951
40952 2008-06-18  Eric Blake  <ebb9@byu.net>
40953
40954         Work around cygwin 1.5.25 strsignal bug.
40955         * tests/test-strsignal.c: Allow for const char *.
40956         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
40957
40958 2008-06-18  Simon Josefsson  <simon@josefsson.org>
40959
40960         * users.txt: Update URL to article and add author/date
40961         information.
40962
40963 2008-06-17  Bruno Haible  <bruno@clisp.org>
40964
40965         New macro gl_DISABLE_THREADS.
40966         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
40967         if the user did not pass --enable-threads or --disable-threads option.
40968         (gl_DISABLE_THREADS): New macro.
40969         Reported by Eric Blake <ebb9@byu.net>.
40970
40971 2008-06-17  Bruno Haible  <bruno@clisp.org>
40972
40973         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
40974         when the macro ignores it.
40975         Based on a patch by Eric Blake <ebb9@byu.net>.
40976
40977 2008-06-17  Bruno Haible  <bruno@clisp.org>
40978
40979         * modules/tls (License): Change to LGPLv2+.
40980         Reported by Eric Blake.
40981
40982 2008-06-17  Eric Blake  <ebb9@byu.net>
40983
40984         Simplify c-stack prerequisites.
40985         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
40986         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
40987         no longer requires <ucontext.h> to exist.  Optimize setrlimit
40988         check.
40989         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
40990         <sys/resource.h>.
40991
40992         Move c-stack test into testsuite.
40993         * modules/c-stack-tests: New file.
40994         * lib/c-stack.c [DEBUG]: Move test program...
40995         * tests/test-c-stack.c: ...into this new file.  Skip rather than
40996         fail test if sigaltstack is lacking.
40997         * tests/test-c-stack.sh: New driver file.
40998
40999 2008-06-16  Eric Blake  <ebb9@byu.net>
41000
41001         Use raise module consistently.
41002         * modules/fatal-signal (Depends-on): Add raise.
41003         * modules/sigprocmask (Depends-on): Likewise.
41004         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
41005         * lib/sigprocmask.c (sigprocmask): Likewise.
41006         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41007         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
41008
41009         Fix compliance bug in sigpending.
41010         * lib/sigprocmask.c (sigpending): Return pending array via
41011         parameter, not return value.
41012
41013 2008-06-14  Eric Blake  <ebb9@byu.net>
41014
41015         Improve obstack-printf test code.
41016         * tests/test-obstack-printf.c (test_function): Fix comment, and
41017         simplify usage of obstack_* in macros.  Add a test for coverage.
41018         Reported by Bruno Haible.
41019
41020 2008-06-14  Bruno Haible  <bruno@clisp.org>
41021
41022         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
41023         array size as a constant, not as a const variable.
41024         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
41025         AC_USE_SYSTEM_EXTENSIONS.
41026         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41027         Test whether the obstack_printf function actually exists.
41028         * modules/obstack-printf (Depends-on): Add extensions.
41029         (Include): Remove obstack.h.
41030         * modules/obstack-printf-posix (Depends-on): Add extensions.
41031         (Include): Remove obstack.h.
41032
41033 2008-06-13  Eric Blake  <ebb9@byu.net>
41034
41035         Add obstack-printf and obstack-printf-posix modules.
41036         * modules/obstack-printf: New file.
41037         * modules/obstack-printf-posix: Likewise.
41038         * MODULES.html.sh (Misc): Mention them.
41039         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41040         Likewise.
41041         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41042         Likewise.
41043         * modules/stdio (Makefile.am): Accomodate new modules.
41044         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41045         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
41046         Declare.
41047         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
41048         functions.
41049         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
41050         (gl_REPLACE_OBSTACK_PRINTF): New macros
41051         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
41052         * tests/test-obstack-printf.c: New file.
41053         * modules/obstack-printf-tests: Likewise.
41054         * modules/obstack-printf-posix-tests: Likewise.
41055
41056 2008-06-11  Bruno Haible  <bruno@clisp.org>
41057
41058         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
41059         * lib/open.c: Include errno.h.
41060         (open): Fail when attempting to write to a file that has a trailing
41061         slash.
41062         * tests/test-open.c (main): Test against trailing slash bug.
41063         * doc/posix-functions/open.texi: Mention the trailing slash bug.
41064
41065 2008-06-10  Bruno Haible  <bruno@clisp.org>
41066
41067         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
41068         for $? to work inside the trap command, with various /bin/sh-s.
41069         * tests/test-vc-list-files-cvs.sh: Likewise.
41070
41071 2008-06-10  Bruno Haible  <bruno@clisp.org>
41072
41073         * lib/acl-internal.h: Don't include gettext.h here.
41074         * lib/set-mode-acl.c: Include gettext.h here.
41075         * lib/copy-acl.c: Likewise.
41076
41077 2008-06-10  Bruno Haible  <bruno@clisp.org>
41078
41079         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
41080         * lib/wait-process.c (wait_subprocess): Likewise.
41081         * lib/execute.h (execute): Add termsigp argument.
41082         * lib/execute.c (execute): Likewise.
41083         * lib/csharpcomp.c (compile_csharp_using_pnet,
41084         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
41085         * lib/csharpexec.c (execute_csharp_using_pnet,
41086         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
41087         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
41088         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
41089         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
41090         is_jikes_present): Update.
41091         * lib/javaexec.c (execute_java_class): Update.
41092         * lib/javaversion.c (execute_and_read_line): Update.
41093         * NEWS: Document the changes.
41094         Reported by Eric Blake.
41095
41096 2008-06-10  Eric Blake  <ebb9@byu.net>
41097
41098         Add missing include.
41099         * tests/test-strstr.c (includes): Add <signal.h>.
41100         * tests/test-strcasestr.c (includes): Likewise.
41101         * tests/test-memmem.c (includes): Likewise.
41102
41103 2008-06-10  Bruno Haible  <bruno@clisp.org>
41104
41105         * lib/wait-process.c (wait_subprocess): Add an assertion.
41106
41107 2008-06-10  Bruno Haible  <bruno@clisp.org>
41108
41109         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
41110
41111 2008-06-10  Bruno Haible  <bruno@clisp.org>
41112
41113         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
41114         using alarm().
41115         * tests/test-strcasestr.c (main): Likewise.
41116         * tests/test-strstr.c (main): Likewise.
41117
41118 2008-06-09  Bruno Haible  <bruno@clisp.org>
41119
41120         Work around the Solaris 10 ACE ACLs ABI change.
41121         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
41122         declare if ACL_NO_TRIVIAL is present.
41123         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
41124         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
41125         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
41126         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
41127         define if ACL_NO_TRIVIAL is present.
41128         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
41129         and use the current ABI.
41130         (file_has_acl): Use same #if condition as elsewhere.
41131         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
41132         in use, and use the current ABI.
41133         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
41134         Reported by Jim Meyering.
41135
41136 2008-06-09  Eric Blake  <ebb9@byu.net>
41137
41138         Work around environments that (stupidly) ignore SIGALRM.
41139         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
41140         before using alarm().
41141         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41142         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41143         Reported by Ian Beckwith <ianb@erislabs.net>.
41144
41145         Produce autobuild blurb earlier in log.
41146         * modules/autobuild (configure.ac-early): Move AB_INIT here.
41147
41148 2008-06-09  Jim Meyering  <meyering@redhat.com>
41149         and OndÅ™ej Vašík  <ovasik@redhat.com>
41150
41151         utimens.c: correct kernel bug work-around
41152         OndÅ™ej Vašík found that the invalid return value of 280 indicates
41153         failure, not success, and the kernel bug we're trying to work
41154         around affects not just the utimensat call, but also the fallback
41155         futimens call.
41156         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
41157         not success.
41158         [HAVE_FUTIMENS]: Use the same work-around, here.
41159
41160 2008-06-09  Jim Meyering  <meyering@redhat.com>
41161
41162         add more guards around definition of ACE_-related code
41163         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
41164         ALLOW and ACE_OWNER are also defined.
41165
41166 2008-06-08  Bruno Haible  <bruno@clisp.org>
41167
41168         * lib/acl-internal.h: Add me as co-author.
41169         * lib/file-has-acl.c: Likewise.
41170         * lib/set-mode-acl.c: Likewise.
41171         * lib/copy-acl.c: Likewise.
41172
41173 2008-06-08  Bruno Haible  <bruno@clisp.org>
41174
41175         Add support for AIX ACLs.
41176         * lib/acl-internal.h (acl_nontrivial): New declaration.
41177         * lib/file-has-acl.c (acl_nontrivial): New function.
41178         (file_has_acl): Add implementation using AIX 4 ACL API.
41179         * lib/set-mode-acl.c (qset_acl): Likewise.
41180         * lib/copy-acl.c (qcopy_acl): Likewise.
41181
41182 2008-06-08  Bruno Haible  <bruno@clisp.org>
41183
41184         Add support for HP-UX ACLs.
41185         * lib/acl-internal.h (acl_nontrivial): New declaration.
41186         * lib/file-has-acl.c (acl_nontrivial): New function.
41187         (file_has_acl): Add implementation using HP-UX 11 ACL API.
41188         * lib/set-mode-acl.c (qset_acl): Likewise.
41189         * lib/copy-acl.c (qcopy_acl): Likewise.
41190
41191 2008-06-08  Bruno Haible  <bruno@clisp.org>
41192
41193         Add support for Cygwin ACLs.
41194         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
41195         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
41196         the chmod_or_fchmod call.
41197         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
41198
41199 2008-06-08  Bruno Haible  <bruno@clisp.org>
41200
41201         Fix bug with setuid modes in Solaris 10+ code.
41202         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
41203         succeeded, when the mode contains some special bits.
41204
41205 2008-06-08  Bruno Haible  <bruno@clisp.org>
41206
41207         Add support for Solaris 7..10 ACLs.
41208         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
41209         declarations.
41210         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
41211         functions.
41212         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
41213         * lib/set-mode-acl.c (qset_acl): Likewise.
41214         * lib/copy-acl.c (qcopy_acl): Likewise.
41215
41216 2008-06-08  Bruno Haible  <bruno@clisp.org>
41217
41218         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
41219         declaration.
41220         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
41221         (acl_access_nontrivial): Remove MacOS X case.
41222         (file_has_acl): Use acl_extended_nontrivial.
41223         * lib/copy-acl.c (qcopy_acl): Likewise.
41224
41225 2008-06-08  Bruno Haible  <bruno@clisp.org>
41226
41227         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
41228
41229 2008-06-08  Jim Meyering  <meyering@redhat.com>
41230
41231         * modules/acl (Maintainer): Add Bruno Haible.
41232
41233 2008-06-07  Bruno Haible  <bruno@clisp.org>
41234
41235         Improve support for Tru64 ACLs.
41236         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
41237         ACL on OSF/1.
41238
41239 2008-06-07  Bruno Haible  <bruno@clisp.org>
41240
41241         Add support for MacOS X ACLs.
41242         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
41243         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
41244         * lib/set-mode-acl.c (qset_acl): Likewise.
41245         * lib/copy-acl.c (qcopy_acl): Likewise.
41246
41247 2008-06-07  Bruno Haible  <bruno@clisp.org>
41248
41249         Fix memory leak introduced on 2008-05-22.
41250         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
41251         use.
41252
41253 2008-06-07  Bruno Haible  <bruno@clisp.org>
41254
41255         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
41256         to construct an empty ACL.
41257
41258 2008-06-07  Bruno Haible  <bruno@clisp.org>
41259
41260         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
41261         precisely.
41262         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
41263
41264 2008-06-07  Bruno Haible  <bruno@clisp.org>
41265
41266         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
41267         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
41268
41269 2008-06-07  Bruno Haible  <bruno@clisp.org>
41270
41271         * doc/posix-functions/_setjmp.texi: Explain the use of this function
41272         regardless of POSIX.
41273         * doc/posix-functions/_longjmp.texi: Likewise.
41274         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
41275         SystemV platform in this case.
41276
41277 2008-06-06  Eric Blake  <ebb9@byu.net>
41278
41279         Document abort() bugs.
41280         * doc/posix-functions/abort.texi (abort): Mention anomalies.
41281
41282         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
41283         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
41284         sigsetjmp.
41285         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
41286         siglongjmp, but only as a macro.
41287         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
41288         is obsolete.
41289         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
41290
41291         Tweak documentation to cover cygwin argz bugs.
41292         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
41293         argz bug fix; no code change needed since no cygwin releases
41294         occurred between the last fix and the bug being tested.
41295         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
41296         module and recently fixed cygwin bugs.
41297         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
41298         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
41299         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
41300         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
41301         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
41302         Likewise.
41303         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
41304         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
41305         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
41306         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
41307         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
41308         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
41309         Likewise.
41310
41311         Avoid gcc warning on cygwin.
41312         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
41313         !ACL_NO_TRIVIAL]: Avoid unused variable.
41314
41315 2008-06-05  Eric Blake  <ebb9@byu.net>
41316
41317         Be tolerant of UNKNOWN version in gnulib-tool test dir.
41318         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
41319         git-version-gen fails to come up with a version.
41320         Reported by Simon Josefsson.
41321
41322 2008-06-05  Jim Meyering  <meyering@redhat.com>
41323             Paul Eggert  <eggert@cs.ucla.edu>
41324
41325         utimens.c: work around a probable Linux kernel bug
41326         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
41327         appears to be a kernel bug that causes utimensat to return 280
41328         instead of 0, indicating success.
41329
41330 2008-06-04  Bruno Haible  <bruno@clisp.org>
41331
41332         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
41333         2008-06-01 commit.
41334
41335 2008-06-04  Bruno Haible  <bruno@clisp.org>
41336
41337         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
41338         * lib/file-has-acl.c (acl_access_nontrivial): New function.
41339         (file_has_acl): Use it. Save errno afterwards.
41340         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
41341
41342 2008-06-03  Bruno Haible  <bruno@clisp.org>
41343
41344         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
41345         draft code. Simplify #ifs.
41346         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
41347         Put Solaris code after POSIX-draft code. Fix comments regarding
41348         Solaris 10, HP-UX. Mention Cygwin.
41349         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
41350
41351 2008-06-03  Eric Blake  <ebb9@byu.net>
41352
41353         Provide fallback for older kernels.
41354         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
41355         Provide runtime fallback if kernel lacks support.
41356         Reported by Mike Frysinger.
41357
41358 2008-06-02  Bruno Haible  <bruno@clisp.org>
41359
41360         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
41361         it exists.
41362
41363 2008-06-02  Bruno Haible  <bruno@clisp.org>
41364
41365         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
41366         * lib/copy-acl.c (qcopy_acl): Update comment.
41367
41368 2008-06-02  Bruno Haible  <bruno@clisp.org>
41369
41370         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
41371         like ACL APIs.
41372
41373 2008-06-02  Bruno Haible  <bruno@clisp.org>
41374
41375         * tests/test-file-has-acl.sh: Use different code for Cygwin.
41376         * tests/test-set-mode-acl.sh: Likewise.
41377         * tests/test-copy-acl.sh: Likewise.
41378         * tests/test-copy-file.sh: Likewise.
41379
41380 2008-06-02  Bruno Haible  <bruno@clisp.org>
41381
41382         * tests/test-file-has-acl.sh: Remove unused code.
41383
41384 2008-06-01  Bruno Haible  <bruno@clisp.org>
41385
41386         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
41387         (copy_acl): Just a wrapper around qcopy_acl that emits the error
41388         messages.
41389         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
41390
41391 2008-06-01  Bruno Haible  <bruno@clisp.org>
41392
41393         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
41394         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
41395         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
41396         APIs.
41397         * modules/acl-tests (configure.ac): Remove tests now contained in
41398         m4/acl.m4.
41399
41400 2008-06-02  Jim Meyering  <meyering@redhat.com>
41401
41402         announce-gen: use a better key-server host name
41403         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
41404         it may be more consistently reliable.  Suggested by Werner Koch
41405         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
41406
41407 2008-06-01  Bruno Haible  <bruno@clisp.org>
41408
41409         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
41410         Reported by Voroskoi Andras <voroskoi@gmail.com>.
41411
41412 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
41413
41414         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
41415
41416 2008-06-01  Bruno Haible  <bruno@clisp.org>
41417
41418         New ACL tests.
41419         * tests/test-file-has-acl.sh: New file.
41420         * tests/test-file-has-acl.c: New file.
41421         * tests/test-set-mode-acl.sh: New file.
41422         * tests/test-set-mode-acl.c: New file.
41423         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
41424         * tests/test-copy-acl.c: New file.
41425         * modules/acl-tests: New file, based on modules/copy-file-tests.
41426         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
41427         (Depends-on): Add acl-tests.
41428         (configure.ac): Remove checks.
41429         (Makefile.am): Don't create test-sameacls program here any more.
41430
41431 2008-06-01  Bruno Haible  <bruno@clisp.org>
41432
41433         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
41434         * tests/test-sameacls.c: Include progname.h.
41435         (main): Invoke set_program_name. Portability fixes for MacOS X,
41436         Solaris, HP-UX.
41437
41438 2008-06-01  Bruno Haible  <bruno@clisp.org>
41439
41440         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
41441         function.
41442         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
41443
41444 2008-06-01  Bruno Haible  <bruno@clisp.org>
41445
41446         * modules/rpmatch (Depends-on): Add strdup.
41447
41448 2008-06-01  Bruno Haible  <bruno@clisp.org>
41449
41450         * lib/pipe.c: Include unistd-safer.h.
41451         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
41452         * modules/pipe (Depends-on): Add unistd-safer.
41453
41454 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41455
41456         * modules/autobuild (configure.ac): Call AB_INIT.
41457
41458 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41459
41460         * tests/test-getaddrinfo.c: Don't print debug messages by default.
41461         Suggested by Bruno Haible <bruno@clisp.org>.
41462
41463 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41464
41465         * tests/test-base64.c: Cast size_t to unsigned long when invoking
41466         printf.  Use %lu instead of %d.  Reported by Bruno Haible
41467         <bruno@clisp.org>.
41468
41469 2008-05-29  Eric Blake  <ebb9@byu.net>
41470
41471         Prefer new POSIX 200x interfaces over futimesat.
41472         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
41473         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
41474         when available.
41475         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
41476
41477 2008-05-28  Bruno Haible  <bruno@clisp.org>
41478
41479         * modules/stpcpy (License): Change to LGPLv2+.
41480         Requested by David Lutterkort <dlutter@redhat.com>.
41481
41482 2008-05-27  Bruno Haible  <bruno@clisp.org>
41483
41484         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
41485         current mingw.
41486         Reported by Jose E. Marchesi <jemarch@gnu.org>.
41487
41488 2008-05-27  Bruno Haible  <bruno@clisp.org>
41489
41490         * modules/iconv_open (Link): New section, from module 'iconv'.
41491         * modules/striconv (Link): Likewise.
41492         * modules/striconveh (Link): Likewise.
41493         * modules/xstriconv (Link): Likewise.
41494         * modules/unicodeio (Link): Likewise.
41495         * modules/propername (Link): Likewise.
41496         Reported by Jim Meyering.
41497
41498 2008-05-26  Jim Meyering  <meyering@redhat.com>
41499
41500         sha256: do not artificially restrict buffer length to be < 2^32
41501         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
41502         uint32_t to size_t.
41503         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
41504         to match.
41505
41506         avoid unaligned access errors, e.g., on sparc
41507         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
41508         direct access through a possibly-unaligned uint64* pointer.
41509         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
41510         direct access through a possibly-unaligned uint32* pointer.
41511         Prompted by this patch from Tom "spot" Callaway:
41512         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
41513
41514         sha512.c: fix typo in comment
41515         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
41516
41517 2008-05-25  Bruno Haible  <bruno@clisp.org>
41518
41519         * lib/set-mode-acl.c: Renamed from lib/acl.c.
41520         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
41521         (Makefile.am): Update lib_SOURCES.
41522
41523 2008-05-25  Bruno Haible  <bruno@clisp.org>
41524
41525         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
41526
41527 2008-05-25  Jim Meyering  <meyering@redhat.com>
41528
41529         useless-if-before-free: freed expr may have white-space differences
41530         * build-aux/useless-if-before-free: Recognize cases in which the
41531         freed expression differs from the tested one in embedded white
41532         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
41533         $1 was used, so we can't make any regexp shy.  Improved tests now
41534         detect this.
41535
41536         useless-if-before-free: accept white space in the expression.
41537         * build-aux/useless-if-before-free: For now, any white space
41538         in the expression must be identical in the free argument.
41539
41540         useless-if-before-free: efficiency tweak
41541         * build-aux/useless-if-before-free: Make the expression-matching
41542         regexp "shy".
41543         Make the *outer* regexp shy, not the expr-matching one.
41544
41545         update code-in-comment to accept cast of free arg
41546         * build-aux/useless-if-before-free: Update regexp.
41547
41548 2008-05-25  Bruno Haible  <bruno@clisp.org>
41549
41550         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
41551         * modules/copy-file-tests (Files, Makefile.am): Update.
41552         * tests/test-copy-file.c (func_test_copy): Update.
41553
41554 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
41555
41556         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
41557
41558 2008-05-23  Bruno Haible  <bruno@clisp.org>
41559
41560         Improve support for ACLs on OSF/1.
41561         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
41562         Remove fallback for unknown flavors of ACLs.
41563
41564 2008-05-22  Bruno Haible  <bruno@clisp.org>
41565
41566         Add support for ACLs on OSF/1.
41567         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
41568         replacements.
41569         (acl_free_text): New macro fallback.
41570         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
41571         acl_free.
41572         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
41573         acl_free_text function. Require AC_C_INLINE.
41574
41575 2008-05-22  Bruno Haible  <bruno@clisp.org>
41576
41577         Make copy_acl work on MacOS X 10.5.
41578         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
41579         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
41580         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
41581         If MODE_INSIDE_ACL, don't assume that every system has the same text
41582         representation for ACLs as FreeBSD.
41583         * lib/copy-acl.c (copy_acl): Add support for platforms with
41584         !MODE_INSIDE_ACL.
41585         * lib/file-has-acl.c (file_has_acl): Likewise.
41586         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
41587         FreeBSD, MacOS X, or IRIX, respectively.
41588
41589 2008-05-22  Bruno Haible  <bruno@clisp.org>
41590
41591         * lib/acl.h: Don't include <sys/acl.h>.
41592         (GETACLCNT): Move fallback to lib/acl-internal.h.
41593         * lib/acl-internal.h: Include <sys/acl.h> here.
41594         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
41595
41596 2008-05-22  Bruno Haible  <bruno@clisp.org>
41597
41598         Split off copy_acl function to separate file.
41599         * lib/copy-acl.c: New file, extracted from lib/acl.c.
41600         * lib/acl.c (copy_acl): Moved function to separate file.
41601         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
41602         * modules/acl (Files): Add lib/copy-acl.c.
41603         (Makefiles.am): Augment lib_SOURCES.
41604
41605 2008-05-22  Bruno Haible  <bruno@clisp.org>
41606
41607         * modules/copy-file-tests: New file.
41608         * tests/test-copy-file.sh: New file.
41609         * tests/test-copy-file.c: New file.
41610         * tests/test-copy-file-sameacls.c: New file.
41611
41612 2008-05-22  Eric Blake  <ebb9@byu.net>
41613
41614         Avoid gcc warning.
41615         * tests/test-memcmp.c (main): Pass NULL indirectly.
41616
41617 2008-05-21  Bruno Haible  <bruno@clisp.org>
41618
41619         Add reference doc about ACLs.
41620         * doc/acl-resources.txt: New file.
41621         * doc/acl-cygwin.txt: New file.
41622
41623 2008-05-21  Bruno Haible  <bruno@clisp.org>
41624
41625         Avoid one more warning from gcc.
41626         * lib/vasnprintf.c (IF_LINT): Update comments.
41627         (VASNPRINTF): Use it also for the 'prefix' array initializer.
41628
41629 2008-05-21  Jim Meyering  <meyering@redhat.com>
41630
41631         avoid a warning from gcc
41632         * lib/vasnprintf.c (IF_LINT): Define.
41633         (scale10_round_decimal_long_double):
41634         Use it to avoid a "may be used uninitialized" warning.
41635         (scale10_round_decimal_double): Likewise.
41636
41637 2008-05-21  Simon Josefsson  <simon@josefsson.org>
41638
41639         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
41640         declared.
41641
41642 2008-05-20  Bruno Haible  <bruno@clisp.org>
41643
41644         * tests/test-memcmp.c (main): Test also the sign of the result. Test
41645         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
41646
41647 2008-05-20  Simon Josefsson  <simon@josefsson.org>
41648
41649         * modules/memcmp-tests: New file.
41650         * tests/test-memcmp.c: New file.
41651
41652 2008-05-19  Bruno Haible  <bruno@clisp.org>
41653
41654         * modules/propername (Notice, configure.ac): Put quoted "..." into
41655         --keyword option.
41656         * lib/propername.h: Update comments accordingly.
41657         Reported by Eric Blake.
41658
41659 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
41660
41661         * modules/getpass-gnu (Depends-on): Add fseeko.
41662
41663 2008-05-19  Simon Josefsson  <simon@josefsson.org>
41664
41665         * modules/base64-tests: New file.
41666
41667 2008-05-19  Bo Borgerson <gigabo@gmail.com>
41668
41669         * lib/base64.c (base64_decode_ctx): If a decode context structure
41670         was passed in use it to ignore newlines.  If a context structure
41671         was _not_ passed in, continue to treat newlines as garbage (this
41672         is the historical behavior).  Formerly base64_decode.
41673         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
41674         takes a decode context structure.
41675         * lib/base64.h (base64_decode): Macro for four-argument calls.
41676         (base64_decode_alloc): Likewise.
41677         * lib/base64.c (base64_decode_ctx): If a decode context structure
41678         was passed in use it to ignore newlines.  If a context structure
41679         was _not_ passed in, continue to treat newlines as garbage (this
41680         is the historical behavior).  Formerly base64_decode.
41681         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
41682         takes a decode context structure.
41683         * lib/base64.h (base64_decode): Macro for four-argument calls.
41684         (base64_decode_alloc): Likewise.
41685
41686 2008-05-19  Jim Meyering  <meyering@redhat.com>
41687
41688         avoid a warning from gcc
41689         * lib/trim.c (IF_LINT): Define.
41690         (trim2): Use it to avoid a "may be used uninitialized" warning.
41691
41692         Fix doc typo.
41693         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
41694
41695 2008-05-19  Bruno Haible  <bruno@clisp.org>
41696
41697         * doc/glibc-functions/getpass.texi: Document limits of other
41698         implementations.
41699
41700 2008-05-19  Simon Josefsson  <simon@josefsson.org>
41701             Bruno Haible <bruno@clisp.org>
41702
41703         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
41704
41705 2008-05-18  Bruno Haible  <bruno@clisp.org>
41706
41707         * modules/propername: New file, from GNU gettext.
41708         * lib/propername.h: New file, from GNU gettext.
41709         * lib/propername.c: New file, from GNU gettext.
41710         * MODULES.html.sh (Internationalization functions): Add propername.
41711
41712 2008-05-16  Jim Meyering  <meyering@redhat.com>
41713             Bruno Haible  <bruno@clisp.org>
41714
41715         Avoid some warnings from "gcc -Wshadow".
41716         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
41717
41718 2008-05-15  Eric Blake  <ebb9@byu.net>
41719
41720         Extend previous patch to cygwin 1.7.0.
41721         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
41722         fast implementation in cygwin >= 1.7.0.
41723         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41724         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41725
41726 2008-05-15  Bruno Haible  <bruno@clisp.org>
41727
41728         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
41729         implementation in glibc >= 2.9.
41730         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41731         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41732
41733 2008-05-15  Bruno Haible  <bruno@clisp.org>
41734
41735         * MODULES.html.sh (Internationalization functions): Remove linebreak.
41736         (Unicode string functions): Add unilbrk/*.
41737         Reported by Karl Berry.
41738
41739 2008-05-15  Eric Blake  <ebb9@byu.net>
41740
41741         Fix violation of <stdbool.h> replacement in regex.
41742         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
41743         * lib/regexec.c (re_search_internal): Likewise.
41744         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
41745
41746 2008-05-15  Jim Meyering  <meyering@redhat.com>
41747
41748         avoid distracting test output when git or cvs is not found
41749         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
41750         * tests/test-vc-list-files-git.sh: Likewise.
41751
41752 2008-05-15  Eric Blake  <ebb9@byu.net>
41753
41754         Glibc finally accepted the memmem speedup code, bugzilla #5514.
41755         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
41756         glibc version.
41757         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
41758         * doc/posix-functions/strstr.texi (strstr): Likewise.
41759         * lib/str-two-way.h (MAX): Sychronize with glibc.
41760
41761 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
41762
41763         * lib/regcomp.c (optimize_utf8): Add a note on why we test
41764         opr.ctx_type.
41765         (calc_first): Initialize constraint field.
41766         (duplicate_node_closure): Use it instead of special casing ANCHORS.
41767         Fix grammar.
41768         (duplicate_node): Merge constraint field for all node types.
41769         (calc_eclosure_iter): Look at constraint field for all node types.
41770         * lib/regex_internal.c (create_cd_newstate): Don't look at
41771         opr.ctx_type.
41772
41773 2008-05-14  Bruno Haible  <bruno@clisp.org>
41774
41775         Help GCC to do better code generation.
41776         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
41777         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
41778         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
41779         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
41780         Declare with attribute 'malloc' if supported.
41781
41782 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
41783
41784         use "echo STR|wc -c" rather than unportable "expr length STR"
41785         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
41786         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
41787
41788 2008-05-14  Jim Meyering  <meyering@redhat.com>
41789
41790         use dd ibs=$n count=1 ... rather than less-portable head -c$n
41791         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
41792         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
41793         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
41794         via Collin Lasse.
41795
41796 2008-05-14  Eric Blake  <ebb9@byu.net>
41797
41798         Avoid quadratic growth in gl_LIBSOURCES.
41799         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
41800         Suggested by Bruno Haible.
41801
41802         Test xmemdup0.
41803         * modules/xmemdup0-tests: New file.
41804         * tests/test-xmemdup0.c: Likewise.
41805
41806 2008-05-13  Eric Blake  <ebb9@byu.net>
41807
41808         Split xmemdup0 into its own module.
41809         * modules/xmemdup0: New file.
41810         * lib/xmemdup0.h: Likewise.
41811         * lib/xmemdup0.c: Likewise.
41812         * MODULES.html.sh (Memory management functions): Add xmemdup0.
41813         * lib/xalloc.h (xmemdup0): Remove.
41814         * lib/xmalloc.c (xmemdup0): Likewise.
41815
41816 2008-05-13  Eric Blake  <ebb9@byu.net>
41817             Bruno Haible  <bruno@clisp.org>
41818
41819         Reduce number of forks required during autoconf.
41820         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
41821         and gl_LIBSOURCES_DIR.
41822         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
41823         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
41824         m4_syscmd per file.
41825         <m4_foreach_w>: Move...
41826         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
41827
41828 2008-05-13  Eric Blake  <ebb9@byu.net>
41829
41830         * gnulib-tool: Fix various comment typos.
41831
41832 2008-05-12  Bruno Haible  <bruno@clisp.org>
41833
41834         Tailor the linebreaking algorithm.
41835         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
41836
41837 2008-05-12  Bruno Haible  <bruno@clisp.org>
41838
41839         Update to Unicode 5.0.0.
41840         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
41841         LBP_JV, LBP_JT. Redistribute values.
41842         (unilbrk_table): Change size.
41843         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
41844         Unicode TR#14 rev. 22.
41845         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
41846         LBP_JV, LBP_JT. Redistribute values.
41847         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
41848         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
41849         Update.
41850         * lib/unilbrk/lbrkprop1.h: Regenerated.
41851         * lib/unilbrk/lbrkprop2.h: Regenerated.
41852         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
41853         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
41854         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
41855         Likewise.
41856         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
41857         Likewise.
41858         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
41859         result.
41860         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
41861         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
41862         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
41863         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
41864         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
41865         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
41866
41867 2008-05-11  Bruno Haible  <bruno@clisp.org>
41868
41869         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
41870
41871 2008-05-11  Bruno Haible  <bruno@clisp.org>
41872
41873         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
41874         * modules/unilbrk/gen-lbrk: New file.
41875
41876 2008-05-11  Bruno Haible  <bruno@clisp.org>
41877
41878         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
41879         * m4/sha512.m4 (gl_SHA512): Likewise.
41880
41881 2008-05-11  Jim Meyering  <meyering@redhat.com>
41882
41883         New modules: crypto/sha256, crypto/sha512 (from coreutils)
41884         * modules/crypto/sha256: New file.
41885         * modules/crypto/sha512: Likewise.
41886         * lib/sha256.c: Likewise.
41887         * lib/sha256.h: Likewise.
41888         * lib/sha512.c: Likewise.
41889         * lib/sha512.h: Likewise.
41890         * lib/u64.h: Likewise.
41891         * m4/sha256.m4: Likewise.
41892         * m4/sha512.m4: Likewise.
41893         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
41894
41895 2008-05-10  Bruno Haible  <bruno@clisp.org>
41896
41897         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
41898         (Input/Output <stdio.h>): Add xprintf.
41899         (Signal handling <signal.h>): Add strsignal.
41900         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
41901         (Core language properties): Add func.
41902         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
41903         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
41904         strings.
41905         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
41906         (Input/output): New section.
41907         (File system functions): Add openat-die, stat-macros.
41908         (Networking functions): Add sockets.
41909         (Unicode string functions): Add unictype/*.
41910         (Support for building libraries and executables): Add gperf.
41911         (Support for building documentation): Add agpl-3.0.
41912         (Misc): Add nocrash.
41913
41914 2008-05-10  Bruno Haible  <bruno@clisp.org>
41915
41916         * modules/unictype/gen-ctype: New file.
41917
41918 2008-05-10  Jim Meyering  <meyering@redhat.com>
41919
41920         Make chdir-safer.c more efficient on a system with no symlinks.
41921         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
41922         also if ELOOP is zero.  Suggested by Bruno Haible.
41923
41924         Make chdir-safer.c slightly safer.
41925         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
41926         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
41927
41928         Avoid compile failure on systems without ELOOP (like mingw).
41929         * lib/chdir-safer.c (ELOOP): Define if not already defined.
41930         Reported by Bruno Haible.
41931
41932 2008-05-10  Bruno Haible  <bruno@clisp.org>
41933
41934         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
41935         (is_utf8_encoding): Use a case-insensitive comparison.
41936         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
41937         streq.
41938
41939 2008-05-10  Bruno Haible  <bruno@clisp.org>
41940
41941         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
41942         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
41943         * lib/unilbrk/ulc-common.h (iconv_string_length,
41944         iconv_string_keeping_offsets): Remove declarations.
41945         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
41946         Don't include <iconv.h>, streq.h, xsize.h.
41947         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
41948         conversion.
41949         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
41950         <iconv.h>, streq.h, xsize.h.
41951         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
41952         conversion.
41953         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
41954         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
41955         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
41956         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
41957
41958 2008-05-10  Bruno Haible  <bruno@clisp.org>
41959
41960         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
41961         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
41962
41963         * modules/unilbrk/u32-width-linebreaks-tests: New file.
41964         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
41965
41966         * modules/unilbrk/u16-width-linebreaks-tests: New file.
41967         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
41968
41969         * modules/unilbrk/u8-width-linebreaks-tests: New file.
41970         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
41971
41972         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
41973         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
41974
41975         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
41976         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
41977
41978         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
41979         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
41980
41981         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
41982         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
41983
41984 2008-05-10  Bruno Haible  <bruno@clisp.org>
41985
41986         Split up 'linebreak' module.
41987         * lib/unilbrk.h: New file, based on lib/linebreak.h.
41988         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
41989         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
41990         modifications.
41991         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
41992         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
41993         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
41994         lib/linebreak.c.
41995         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
41996         lib/linebreak.c.
41997         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
41998         lib/linebreak.c.
41999         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
42000         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
42001         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
42002         lib/linebreak.c.
42003         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
42004         lib/linebreak.c.
42005         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
42006         lib/linebreak.c.
42007         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
42008         lib/linebreak.c.
42009         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
42010         lib/linebreak.c.
42011         * modules/unilbrk/base: New file.
42012         * modules/unilbrk/tables: New file.
42013         * modules/unilbrk/u8-possible-linebreaks: New file.
42014         * modules/unilbrk/u16-possible-linebreaks: New file.
42015         * modules/unilbrk/u32-possible-linebreaks: New file.
42016         * modules/unilbrk/ulc-common: New file.
42017         * modules/unilbrk/ulc-possible-linebreaks: New file.
42018         * modules/unilbrk/u8-width-linebreaks: New file.
42019         * modules/unilbrk/u16-width-linebreaks: New file.
42020         * modules/unilbrk/u32-width-linebreaks: New file.
42021         * modules/unilbrk/ulc-width-linebreaks: New file.
42022         * lib/linebreak.h: Remove file.
42023         * lib/linebreak.c: Remove file.
42024         * m4/linebreak.m4: Remove file.
42025         * modules/linebreak: Remove file.
42026         * NEWS: Mention the changes.
42027
42028 2008-05-09  Eric Blake  <ebb9@byu.net>
42029
42030         Add xmemdup0.
42031         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
42032         implementation.
42033         * lib/xmalloc.c (xmemdup0): New C implementation.
42034
42035 2008-05-08  Bruno Haible  <bruno@clisp.org>
42036
42037         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
42038
42039 2008-05-07  Eric Blake  <ebb9@byu.net>
42040
42041         Support cross-compilation of <wctype.h>.
42042         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
42043         AC_CACHE_CHECK.
42044
42045 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
42046
42047         * build-aux/vc-list-files: Add support for bzr.
42048
42049 2008-05-03  Jim Meyering  <meyering@redhat.com>
42050
42051         avoid failed assertion with tight malloc
42052         * tests/test-getndelim2.c: Correct an off-by-one assertion.
42053
42054 2008-05-03  Simon Josefsson  <simon@josefsson.org>
42055
42056         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
42057         are needed from arpa/inet.h.
42058         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
42059         Reported by Bruno Haible.
42060
42061 2008-05-02  Jim Meyering  <meyering@redhat.com>
42062
42063         avoid compilation error on FreeBSD 6
42064         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
42065
42066 2008-05-01  Jim Meyering  <meyering@redhat.com>
42067
42068         useless-if-before-free: correct --help's exit status description
42069         * build-aux/useless-if-before-free (usage): Like grep, exit 0
42070         for one or more matches, etc.  Reported by Bruno Haible.
42071
42072         vc-list-files: make the stand-alone gnulib test work
42073         * modules/vc-list-files-tests (configure.ac):
42074         Define and AC_SUBST abs_aux_dir.
42075         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
42076         $(abs_top_srcdir) to each script and having each of them
42077         duplicate the work of setting PATH, set PATH here, using
42078         the new variable, abs_aux_dir instead.
42079         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
42080         * tests/test-vc-list-files-git.sh: Likewise.
42081         Reported by Bruno Haible.
42082
42083 2008-05-01  Bruno Haible  <bruno@clisp.org>
42084
42085         * lib/getndelim2.c (getndelim2): Fix newsize computation during
42086         reallocation. Rename 'done' to 'found_delimiter'.
42087
42088 2008-05-01  Jim Meyering  <meyering@redhat.com>
42089
42090         vc-list-files: accommodate /bin/sh like the one from Solaris 10
42091         * build-aux/vc-list-files: Use `...`, not $(...).
42092
42093 2008-04-30  Jim Meyering  <meyering@redhat.com>
42094
42095         add tests for vc-list-files
42096         * modules/vc-list-files-tests: New module.
42097         * tests/test-vc-list-files-cvs.sh: New file.
42098         * tests/test-vc-list-files-git.sh: New file.
42099
42100         avoid a warning from gcc
42101         * lib/getndelim2.c (IF_LINT): Define.
42102         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
42103
42104         vc-list-files: work properly with build-aux/cvsu, too
42105         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
42106         to all cvs-based clauses.
42107
42108         vc-list-files: work properly in the CVS+awk case, too
42109         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
42110
42111         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
42112         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
42113         take more than one file argument, so .  Add quotes, just in case $dir
42114         ever contains a shell meta-character.  Prompted by Soren Hansen in
42115         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
42116
42117 2008-04-29  Eric Blake  <ebb9@byu.net>
42118
42119         Optimize getndelim2 to use block operations when possible.
42120         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
42121         freadseek, and memchr2.
42122         * lib/getndelim2.c (getndelim2): Use them for block reads.
42123
42124 2008-04-29  Bruno Haible  <bruno@clisp.org>
42125
42126         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
42127         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42128         * modules/inet_ntop (Depends-on): Add extensions.
42129         * modules/inet_pton (Depends-on): Likewise.
42130         Reported by Simon Josefsson.
42131
42132 2008-04-29  Jim Meyering  <meyering@redhat.com>
42133
42134         When the is more than one match in a block, match all of them.
42135         * build-aux/useless-if-before-free: Iterate through each block
42136         until there are no more matches.
42137
42138         Fix broken useless-if-before-free script.
42139         * build-aux/useless-if-before-free: Fix typo: missing "?" after
42140         the expression to match cast of argument to free-like function.
42141
42142 2008-04-29  Eric Blake  <ebb9@byu.net>
42143
42144         Use new header.
42145         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
42146
42147 2008-04-29  Jim Meyering  <meyering@redhat.com>
42148
42149         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
42150         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
42151         by gnulib to exist and to declare e.g., inet_ntop.
42152         Don't include "inet_ntop.h", now removed.
42153
42154         * m4/arpa_inet_h.m4: Remove trailing blanks.
42155
42156 2008-04-29  Eric Blake  <ebb9@byu.net>
42157
42158         Silence valgrind on safe reads beyond potential array bounds.
42159         * lib/rawmemchr.valgrind: New file.
42160         * lib/strchrnul.valgrind: Likewise.
42161         * modules/rawmemchr (Files): Distribute new file.
42162         * modules/strchrnul (Files): Likewise.
42163         Suggested by Bruno Haible.
42164
42165 2008-04-29  Bruno Haible  <bruno@clisp.org>
42166
42167         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
42168         (inet_ntop, inet_pton): Change portability warning's wording.
42169         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
42170         Invoke gl_CHECK_NEXT_HEADERS.
42171         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
42172         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
42173         set ARPA_INET_H.
42174         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42175         * modules/arpa_inet (Description): No longer only for systems that
42176         lack it.
42177         (Depends-on): Add include_next.
42178         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
42179         HAVE_ARPA_INET_H.
42180
42181 2008-04-29  Jim Meyering  <meyering@redhat.com>
42182
42183         * modules/mkdir (License): Re-license as LGPLv2+.
42184
42185 2008-04-29  Bruno Haible  <bruno@clisp.org>
42186
42187         * modules/rawmemchr (Maintainer): Set to Eric.
42188         * modules/strchrnul (Maintainer): Likewise.
42189
42190 2008-04-29  Simon Josefsson  <simon@josefsson.org>
42191
42192         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
42193         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
42194
42195         * modules/arpa_inet (arpa/inet.h): Use them.
42196
42197 2008-04-28  Eric Blake  <ebb9@byu.net>
42198
42199         Test getndelim2.
42200         * modules/getndelim2-tests: New file.
42201         * tests/test-getndelim2.c: Likewise.
42202         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
42203         stream.
42204         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
42205
42206         * MODULES.html.sh: Document new module.
42207
42208 2008-04-20  Bruno Haible  <bruno@clisp.org>
42209
42210         * lib/c-stack.c (die): Use raise.
42211         * modules/c-stack (Depends-on): Add raise.
42212
42213 2008-04-28  Bruno Haible  <bruno@clisp.org>
42214
42215         Expect rpmatch to be declared.
42216         * lib/yesno.c (rpmatch): Remove declaration.
42217
42218         Declare rpmatch.
42219         * lib/stdlib.in.h (rpmatch): New declaration.
42220         * lib/rpmatch.c: Include <stdlib.h> first.
42221         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
42222         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
42223         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
42224         HAVE_RPMATCH.
42225         * modules/rpmatch (Depends-on): Add stdlib, extensions.
42226         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42227         (Include): Set to <stdlib.h>.
42228         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
42229         HAVE_RPMATCH.
42230         * NEWS: Document the change.
42231
42232 2008-04-28  Bruno Haible  <bruno@clisp.org>
42233
42234         Change rpmatch to use nl_langinfo when appropriate.
42235         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
42236         (N_): New macro.
42237         (localized_pattern): New function/macro.
42238         (try): Remove match, nomatch arguments. Copy the pattern into safe
42239         memory before caching it.
42240         (rpmatch): Use localized_pattern. Add translator comments.
42241         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
42242         Suggested by Eric Blake.
42243         * modules/rpmatch (Depends-on): Add stdbool.
42244
42245 2008-04-28  Eric Blake  <ebb9@byu.net>
42246
42247         Add rawmemchr module, matching glibc.
42248         * modules/string (Makefile.am): New indicator.
42249         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
42250         * lib/string.in.h (rawmemchr): Declare when appropriate.
42251         * modules/rawmemchr: New file.
42252         * m4/rawmemchr.m4: Likewise.
42253         * lib/rawmemchr.c: Likewise.
42254         * modules/rawmemchr-tests: Likewise.
42255         * tests/test-rawmemchr.c: Likewise.
42256         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
42257         module.
42258         * modules/strchrnul (Depends-on): Add rawmemchr.
42259         * lib/strchrnul.c (strchrnul): Optimize a corner case.
42260
42261         Whitespace cleanup.
42262         * tests/test-strchrnul.c: Reindent.
42263         * lib/strchrnul.c: Likewise.
42264
42265         Optimize and test strchrnul.
42266         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
42267         * modules/strchrnul-tests: New file.
42268         * tests/test-strchrnul.c: Likewise.
42269
42270         Remove intprops dependency.
42271         * modules/memchr (Depends-on): Remove intprops.
42272         * modules/memrchr (Depends-on): Likewise.
42273         * modules/memchr2 (Depends-on): Likewise.
42274         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
42275         * lib/memrchr.c (__memrchr): Likewise.
42276         * lib/memrchr2.c (memchr2): Likewise.
42277         Reported by Simon Josefsson.
42278
42279 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42280
42281         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
42282         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42283
42284 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42285
42286         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
42287
42288         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
42289
42290         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
42291
42292         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
42293         declarations.
42294         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
42295
42296         * m4/inet_pton.m4: Don't check for header files.
42297
42298         * m4/inet_ntop.m4: Don't check for header files.
42299
42300 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42301
42302         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
42303         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
42304         trigger for cygwin).
42305         Reported by Bruno Haible  <bruno@clisp.org>.
42306
42307 2008-04-28  Bruno Haible  <bruno@clisp.org>
42308
42309         * doc/posix-functions/strdup.texi: Mention mingw problem.
42310
42311 2008-04-27  Bruno Haible  <bruno@clisp.org>
42312
42313         * modules/stat-time-tests (Depends-on): Add sleep.
42314         * tests/test-stat-time.c (force_unlink): New function.
42315         (cleanup): Use it.
42316         (test_mtime): Remove the ctime related tests.
42317         (test_ctime): New function, containing the ctime related tests.
42318         (main): Call test_ctime, except on native Windows platforms.
42319
42320 2008-04-27  Bruno Haible  <bruno@clisp.org>
42321
42322         * lib/rpmatch.c (rpmatch): Add some comments.
42323         Reported by James Youngman <jay@gnu.org>.
42324
42325 2008-04-27  Bruno Haible  <bruno@clisp.org>
42326
42327         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
42328         quiet NaNs.
42329
42330 2008-04-27  Bruno Haible  <bruno@clisp.org>
42331
42332         Make test-yesno.sh work on mingw.
42333         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
42334         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
42335         (main): Set stdin to binary mode.
42336         * modules/yesno-tests (Depends-on): Add binary-io.
42337
42338 2008-04-27  Bruno Haible  <bruno@clisp.org>
42339
42340         Fix 'isfinite' on x86, x86_64, ia64 platforms.
42341         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
42342         argument that lie outside the IEEE 854 domain.
42343         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
42344         (gl_ISFINITE): Use it.
42345         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
42346
42347 2008-04-27  Bruno Haible  <bruno@clisp.org>
42348
42349         Allow local renaming in config.h.
42350         * lib/memrchr.c (memrchr): Don't undefine outside libc.
42351
42352 2008-04-27  Bruno Haible  <bruno@clisp.org>
42353
42354         * lib/memchr.c (__memchr): Change type of 'i'.
42355         * lib/memchr2.c (memchr2): Likewise.
42356
42357 2008-04-26  Eric Blake  <ebb9@byu.net>
42358         and Bruno Haible  <bruno@clisp.org>
42359
42360         Optimize and test memrchr.
42361         * modules/memrchr (Depends-on): Add intprops.
42362         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
42363         * modules/memrchr-tests: New file.
42364         * tests/test-memrchr.c: New file.
42365
42366 2008-04-26  Bruno Haible  <bruno@clisp.org>
42367
42368         Add tentative support for DragonFly BSD.
42369         * lib/stdio-impl.h: Add macros for DragonFly BSD.
42370         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
42371         fp.
42372         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42373         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
42374         * lib/fpurge.c (fpurge): Likewise.
42375         * lib/freadable.c (freaadable): Likewise.
42376         * lib/freadahead.c (freadahead): Likewise.
42377         * lib/freading.c (freading): Likewise.
42378         * lib/freadptr.c (freadptr): Likewise.
42379         * lib/freadseek.c (freadptrinc): Likewise.
42380         * lib/fseeko.c (fseeko): Likewise.
42381         * lib/fseterr.c (fseterr): Likewise.
42382         * lib/fwritable.c (fwritable): Likewise.
42383         * lib/fwriting.c (fwriting): Likewise.
42384
42385 2008-04-26  Bruno Haible  <bruno@clisp.org>
42386
42387         * lib/stdio-impl.h: New file.
42388         * lib/fbufmode.c: Include stdio-impl.h.
42389         (fbufmode): Use fp_, remove redundant #defines.
42390         * lib/fflush.c: Include stdio-impl.h.
42391         (clear_ungetc_buffer): Remove redundant #defines.
42392         * lib/fpurge.c: Include stdio-impl.h.
42393         (fpurge): Remove redundant #defines.
42394         * lib/freadable.c: Include stdio-impl.h.
42395         (freadable): Remove redundant #defines.
42396         * lib/freadahead.c: Include stdio-impl.h.
42397         (freadahead): Remove redundant #defines.
42398         * lib/freading.c: Include stdio-impl.h.
42399         (freading): Remove redundant #defines.
42400         * lib/freadptr.c: Include stdio-impl.h.
42401         (freadptr): Remove redundant #defines.
42402         * lib/freadseek.c: Include stdio-impl.h.
42403         (freadptrinc): Remove redundant #defines.
42404         * lib/fseeko.c: Include stdio-impl.h.
42405         (rpl_fseeko): Remove redundant #defines.
42406         * lib/fseterr.c: Include stdio-impl.h.
42407         (fseterr): Remove redundant #defines.
42408         * lib/fwritable.c: Include stdio-impl.h.
42409         (fwritable: Remove redundant #defines.
42410         * lib/fwriting.c: Include stdio-impl.h.
42411         (fwriting): Remove redundant #defines.
42412         * modules/fbufmode (Files): Add lib/stdio-impl.h.
42413         * modules/fflush (Files): Likewise.
42414         * modules/fpurge (Files): Likewise.
42415         * modules/freadable (Files): Likewise.
42416         * modules/freadahead (Files): Likewise.
42417         * modules/freading (Files): Likewise.
42418         * modules/freadptr (Files): Likewise.
42419         * modules/freadseek (Files): Likewise.
42420         * modules/fseeko (Files): Likewise.
42421         * modules/fseterr (Files): Likewise.
42422         * modules/fwritable (Files): Likewise.
42423         * modules/fwriting (Files): Likewise.
42424
42425 2008-04-26  Bruno Haible  <bruno@clisp.org>
42426
42427         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42428         restore_seek_optimization, update_fpos_cache): New functions, extracted
42429         from rpl_fflush.
42430         (rpl_fflush): Use them.
42431         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
42432         (gl_REPLACE_FFLUSH): Use it.
42433
42434 2008-04-26  Bruno Haible  <bruno@clisp.org>
42435
42436         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
42437         on Solaris.
42438         * tests/test-xstrtoimax.sh: Likewise.
42439         * tests/test-xstrtoumax.sh: Likewise.
42440         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42441
42442 2008-04-26  Bruno Haible  <bruno@clisp.org>
42443
42444         * modules/memchr-tests: New file.
42445         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
42446
42447 2008-04-26  Eric Blake  <ebb9@byu.net>
42448             Bruno Haible  <bruno@clisp.org>
42449
42450         * lib/memchr.c: Include intprops.h.
42451         (__memchr): Optimize parallel detection of matching bytes. Rename local
42452         variables. Add explanatory comments.
42453
42454 2008-04-26  Bruno Haible  <bruno@clisp.org>
42455
42456         Fix module 'memchr', broken since 2000-10-28.
42457         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
42458
42459 2008-04-26  Bruno Haible  <bruno@clisp.org>
42460
42461         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
42462         comments.
42463
42464 2008-04-25  Eric Blake  <ebb9@byu.net>
42465
42466         Use native fstatat on cygwin 1.7.0.
42467         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
42468         first.
42469
42470 2008-04-23  Eric Blake  <ebb9@byu.net>
42471
42472         Improve memchr2 performance.
42473         * lib/memchr2.c (memchr2): Further optimize parallel detection of
42474         NUL bytes.
42475         * modules/memchr2 (Depends-on): Use intprops.h.
42476
42477 2008-04-23  Simon Josefsson  <simon@josefsson.org>
42478
42479         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
42480         an inline function instead of a CPP macro.  Patch by Ben Pfaff
42481         <blp@cs.stanford.edu>.
42482
42483 2008-04-23  Simon Josefsson  <simon@josefsson.org>
42484
42485         * lib/arpa_inet.in.h: New file.
42486
42487         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
42488         (Makefile.am): Sed in substitute header file.
42489
42490         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
42491         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
42492
42493         * modules/inet_ntop (configure.ac): Use
42494         gl_ARPA_INET_MODULE_INDICATOR.
42495
42496         * modules/inet_pton (configure.ac): Use
42497         gl_ARPA_INET_MODULE_INDICATOR.
42498
42499 2008-04-22  Jim Meyering  <meyering@redhat.com>
42500
42501         * modules/verify (License): Re-license as LGPLv2+.
42502
42503 2008-04-22  Simon Josefsson  <simon@josefsson.org>
42504
42505         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
42506         parameter to void* as per POSIX standard (MinGW uses char*).
42507
42508 2008-04-21  Bruno Haible  <bruno@clisp.org>
42509
42510         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
42511         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
42512         Define to replacements if REPLACE_ISWCNTRL is 1.
42513         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
42514         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
42515         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
42516         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
42517         what it fixes.
42518         * doc/posix-functions/iswalpha.texi: Likewise.
42519         * doc/posix-functions/iswblank.texi: Likewise.
42520         * doc/posix-functions/iswcntrl.texi: Likewise.
42521         * doc/posix-functions/iswdigit.texi: Likewise.
42522         * doc/posix-functions/iswgraph.texi: Likewise.
42523         * doc/posix-functions/iswlower.texi: Likewise.
42524         * doc/posix-functions/iswprint.texi: Likewise.
42525         * doc/posix-functions/iswpunct.texi: Likewise.
42526         * doc/posix-functions/iswspace.texi: Likewise.
42527         * doc/posix-functions/iswupper.texi: Likewise.
42528         * doc/posix-functions/iswxdigit.texi: Likewise.
42529         Reported by Alain Guibert.
42530
42531 2008-04-21  Bruno Haible  <bruno@clisp.org>
42532
42533         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
42534         Patch by Alain Guibert.
42535
42536 2008-04-21  Bruno Haible  <bruno@clisp.org>
42537
42538         Fix test failures on mingw.
42539         * tests/test-xstrtol.c (print_no_progname): New function.
42540         (main): Install it in error_print_progname hook.
42541         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
42542         * tests/test-xstrtoimax.sh: Likewise.
42543         * tests/test-xstrtoumax.sh: Likewise.
42544
42545 2008-04-21  Bruno Haible  <bruno@clisp.org>
42546
42547         Fix test failure on mingw.
42548         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
42549
42550 2008-04-21  Bruno Haible  <bruno@clisp.org>
42551
42552         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
42553         Actually assign a value.
42554
42555 2008-04-20  Bruno Haible  <bruno@clisp.org>
42556
42557         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
42558         take 2.
42559         * lib/canonicalize.c (canonicalize_file_name): Elide if the
42560         'canonicalize-lgpl' module is also used.
42561         * lib/canonicalize-lgpl.c: Undo last change.
42562         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
42563
42564 2008-04-20  Bruno Haible  <bruno@clisp.org>
42565
42566         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
42567         config.h. Provide _mkdir based fallback for mingw.
42568         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
42569         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
42570         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
42571         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
42572         rather than defining mkdir in config.h.
42573         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
42574         (gl_SYS_STAT_H_DEFAULTS): New macro.
42575         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
42576         HAVE_IO_H any more.
42577         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
42578         HAVE_DECL_MKDIR and HAVE_IO_H.
42579
42580 2008-04-20  Bruno Haible  <bruno@clisp.org>
42581
42582         * lib/isapipe.c: Port to native Windows platforms.
42583
42584 2008-04-20  Bruno Haible  <bruno@clisp.org>
42585
42586         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
42587
42588 2008-04-21  Eric Blake  <ebb9@byu.net>
42589
42590         Work around preprocessors that don't handle UINTMAX_MAX.
42591         * lib/memchr2.c (memchr2): Avoid embedded #if.
42592         Reported by Alain Guibert, fix suggested by Bruno Haible.
42593
42594 2008-04-21  Simon Josefsson  <simon@josefsson.org>
42595
42596         * doc/posix-functions/strftime.texi (strftime): Explain better
42597         Windows incompatibility.  Suggested by Micah Cowan
42598         <micah@cowan.name>.
42599
42600 2008-04-20  Bruno Haible  <bruno@clisp.org>
42601
42602         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
42603         unistr/u8-mblen.
42604
42605 2008-04-20  Bruno Haible  <bruno@clisp.org>
42606
42607         Fix test failure on platforms with non-GNU iconv.
42608         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
42609         (U_TO_U8): Use it, rather than u16_to_u8.
42610         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
42611         units at the end of the input string.
42612         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
42613
42614 2008-04-20  Bruno Haible  <bruno@clisp.org>
42615
42616         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
42617         when the resulting length is 0.
42618         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
42619
42620 2008-04-20  Bruno Haible  <bruno@clisp.org>
42621
42622         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
42623         works.
42624         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
42625
42626 2008-04-20  Bruno Haible  <bruno@clisp.org>
42627
42628         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
42629         * modules/tsearch-tests (configure.ac): Test for initstate function.
42630
42631 2008-04-20  Bruno Haible  <bruno@clisp.org>
42632
42633         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
42634         for nlink_t if missing.
42635         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
42636
42637 2008-04-19  Bruno Haible  <bruno@clisp.org>
42638
42639         Work around snprintf bug on Linux libc5.
42640         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
42641         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42642         gl_SNPRINTF_SIZE1.
42643         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42644         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
42645         that test failed.
42646         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
42647         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
42648         * modules/snprintf (Files): Add m4/printf.m4.
42649         * modules/vsnprintf (Files): Likewise.
42650         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
42651         * doc/posix-functions/vsnprintf.texi: Likewise.
42652
42653 2008-04-19  Bruno Haible  <bruno@clisp.org>
42654
42655         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
42656         from 0.0058 to less than 10^-7.
42657
42658 2008-04-19  Bruno Haible  <bruno@clisp.org>
42659
42660         Fix rounding when a precision is given.
42661         * lib/vasnprintf.c (is_borderline): New function.
42662         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
42663         9...9x.
42664         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
42665         %e, %g.
42666         * tests/test-vasprintf-posix.c (test_function): Likewise.
42667         * tests/test-snprintf-posix.h (test_function): Likewise.
42668         * tests/test-sprintf-posix.h (test_function): Likewise.
42669         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
42670         * tests/test-printf-posix.h (test_function): Likewise.
42671         * tests/test-printf-posix.output: Update.
42672         Reported by John Darrington <john@darrington.wattle.id.au> via
42673         Ben Pfaff <blp@cs.stanford.edu>.
42674
42675 2008-04-18  Simon Josefsson  <simon@josefsson.org>
42676
42677         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
42678         Suggested by Bruno Haible <bruno@clisp.org>.
42679
42680 2008-04-17  Bruno Haible  <bruno@clisp.org>
42681
42682         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
42683         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
42684         implementation.
42685         Patch by Bruce Merry <bmerry@gmail.com>.
42686
42687 2008-04-17  Simon Josefsson  <simon@josefsson.org>
42688
42689         * doc/posix-functions/strftime.texi (strftime): Mention that %e
42690         doesn't work under Windows.
42691
42692 2008-04-16  Bruno Haible  <bruno@clisp.org>
42693
42694         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
42695         New macros.
42696         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
42697         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
42698         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
42699         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
42700         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
42701         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
42702         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
42703         macros.
42704         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
42705         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
42706         Northern Sotho, Uighur.
42707
42708 2008-04-16  Bruno Haible  <bruno@clisp.org>
42709
42710         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
42711         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
42712         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
42713         Reported by Daniel Bergström <daniel@octocode.com>.
42714
42715 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
42716             Bruno Haible  <bruno@clisp.org>
42717
42718         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
42719         function.
42720         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
42721         New functions, mostly extracted from gl_locale_name_default.
42722         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
42723
42724 2008-04-16  Eric Blake  <ebb9@byu.net>
42725
42726         Adjust strtod detection to catch glibc 2.7 bug.
42727         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
42728         Reported by John Gatewood Ham.
42729
42730 2008-04-16  Bruno Haible  <bruno@clisp.org>
42731
42732         Add tentative support for Linux libc5.
42733         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
42734         * lib/fpurge.c (fpurge): Likewise.
42735         * lib/freadable.c (freadable): Likewise.
42736         * lib/freadahead.c (freadahead): Likewise.
42737         * lib/freading.c (freading): Likewise.
42738         * lib/freadptr.c (freadptr): Likewise.
42739         * lib/freadseek.c (freadptrinc): Likewise.
42740         * lib/fseeko.c (rpl_fseeko): Likewise.
42741         * lib/fseterr.c (fseterr): Likewise.
42742         * lib/fwritable.c (fwritable): Likewise.
42743         * lib/fwriting.c (fwriting): Likewise.
42744         Reported by Alain Guibert <alguibert+bts@free.fr>.
42745
42746 2008-04-15  Bruno Haible  <bruno@clisp.org>
42747
42748         * modules/mathl (configure.ac): Define module indicator.
42749
42750 2008-04-15  Bruno Haible  <bruno@clisp.org>
42751
42752         * lib/logl.c (logl): Remove unused variables.
42753
42754 2008-04-15  Bruno Haible  <bruno@clisp.org>
42755
42756         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
42757         fails.
42758
42759 2008-04-15  Bruno Haible  <bruno@clisp.org>
42760
42761         * lib/trim.c (trim2): Fix argument of isspace() macro.
42762
42763 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
42764
42765         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
42766         to 0.
42767         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
42768
42769 2008-04-14  Bruno Haible  <bruno@clisp.org>
42770
42771         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
42772         AC_LANG_PROGRAM argument.
42773         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
42774         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
42775         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42776         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
42777         * m4/math_h.m4 (gl_MATH_H): Likewise.
42778         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
42779         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42780         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
42781         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
42782         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
42783         * m4/regex.m4 (gl_REGEX): Likewise.
42784         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
42785         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
42786         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42787         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
42788         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42789         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42790         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42791         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
42792
42793 2008-04-14  Jim Meyering  <meyering@redhat.com>
42794
42795         test-strtod: fix typos: s/abs/fabs/
42796         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
42797
42798 2008-04-13  Bruno Haible  <bruno@clisp.org>
42799
42800         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
42801         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
42802         module is also used and while not building the reloc-wrapper.
42803
42804 2008-04-13  Bruno Haible  <bruno@clisp.org>
42805
42806         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
42807
42808 2008-04-13  Bruno Haible  <bruno@clisp.org>
42809
42810         Fix AIX compilation failure introduced on 2008-04-02.
42811         * tests/test-frexp.c (exp): Undefine before redefining.
42812         * tests/test-frexpl.c (exp): Likewise.
42813
42814 2008-04-13  Bruno Haible  <bruno@clisp.org>
42815
42816         Work around a HP-UX stdio bug.
42817         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
42818         * tests/test-ftello.c (main): Likewise.
42819         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
42820         * doc/posix-functions/ftello.texi: Likewise.
42821
42822 2008-04-13  Bruno Haible  <bruno@clisp.org>
42823
42824         Make test-signbit pass on HP-UX/hppa.
42825         * tests/test-signbit.c (minus_zerol): New variable.
42826         (test_signbitl): Use it.
42827
42828 2008-04-13  Bruno Haible  <bruno@clisp.org>
42829
42830         Make truncl work on OSF/1 4.0.
42831         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
42832         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
42833         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
42834         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
42835         HAVE_DECL_TRUNCL.
42836         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
42837         HAVE_DECL_TRUNCL.
42838         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
42839
42840 2008-04-13  Bruno Haible  <bruno@clisp.org>
42841
42842         * lib/unictype.h: Remove trailing comma from enumeration definitions.
42843
42844 2008-04-13  Bruno Haible  <bruno@clisp.org>
42845
42846         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
42847         expression, so as to avoid HP-UX 11 cc compiler bug.
42848
42849 2008-04-13  Bruno Haible  <bruno@clisp.org>
42850
42851         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
42852
42853 2008-04-13  Bruno Haible  <bruno@clisp.org>
42854
42855         * lib/git-merge-changelog.c: Remove empty declaration outside of
42856         functions.
42857
42858 2008-04-13  Bruno Haible  <bruno@clisp.org>
42859
42860         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
42861
42862 2008-04-13  Bruno Haible  <bruno@clisp.org>
42863
42864         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
42865         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
42866         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
42867         also if it exists but lacks definitions of the SHUT_* macros.
42868         * modules/sys_socket (Description): Update.
42869         Reported by Elbert Pol <e.pol@chello.nl>.
42870
42871 2008-04-13  Bruno Haible  <bruno@clisp.org>
42872
42873         * lib/localcharset.c (OS2): Don't redefine if already defined.
42874         Reported by Elbert Pol <e.pol@chello.nl>.
42875
42876 2008-04-13  Bruno Haible  <bruno@clisp.org>
42877
42878         * lib/binary-io.h [__EMX__]: Include <io.h>.
42879         Reported by Elbert Pol <e.pol@chello.nl>.
42880
42881 2008-04-12  Bruno Haible  <bruno@clisp.org>
42882
42883         * lib/fpucw.h: Enable the definitions also for x86_64.
42884         Needed for NetBSD/x86_64.
42885         Reported by Thomas Klausner <tk@giga.or.at>.
42886
42887 2008-04-12  Bruno Haible  <bruno@clisp.org>
42888
42889         * tests/test-strtod.c: Include isnand.h.
42890         (main): Use isnand instead of isnan.
42891         Reported by Jim Meyering.
42892
42893 2008-04-12  Bruno Haible  <bruno@clisp.org>
42894
42895         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
42896         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
42897
42898 2008-04-12  Jim Meyering  <meyering@redhat.com>
42899
42900         * m4/math_h.m4 (gl_MATH_H): Fix typos.
42901
42902 2008-04-12  Bruno Haible  <bruno@clisp.org>
42903
42904         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
42905         Reported by Elbert Pol <e.pol@chello.nl>.
42906
42907 2008-04-12  Eric Blake  <ebb9@byu.net>
42908
42909         Work around Solaris 10 math.h bug.
42910         * m4/math_h.m4 (gl_MATH_H): Check for bug.
42911         (gl_MATH_H_DEFAULTS): Set up default.
42912         * modules/math (Makefile.am): Replace new indicators.
42913         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
42914         * tests/test-math.c (main): Test this.
42915         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
42916         * doc/posix-headers/math.texi (math.h): Mention bug.
42917         Reported by Nelson H. F. Beebe and Jim Meyering.
42918
42919 2008-04-11  Bruno Haible  <bruno@clisp.org>
42920
42921         Adapt to future versions of Apple GCC.
42922         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
42923         Reported by Peter O'Gorman <peter@pogma.com>.
42924
42925 2008-04-11  Bruno Haible  <bruno@clisp.org>
42926
42927         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
42928
42929 2008-04-11  Bruno Haible  <bruno@clisp.org>
42930
42931         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
42932
42933         * modules/getaddrinfo-tests (Makefile.am): Define
42934         test_getaddrinfo_LDADD.
42935
42936 2008-04-11  Bruno Haible  <bruno@clisp.org>
42937
42938         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
42939         (init): Fix syntax error.
42940         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
42941         is declared.
42942
42943 2008-04-11  Bruno Haible  <bruno@clisp.org>
42944
42945         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
42946         * modules/glob (Depends-on): Add stdbool.
42947
42948 2008-04-11  Bruno Haible  <bruno@clisp.org>
42949
42950         * lib/trim.c: Include <string.h>.
42951
42952 2008-04-11  Eric Blake  <ebb9@byu.net>
42953
42954         Avoid compile failure on OS/2.
42955         * lib/regex_internal.h (internal_function): Disable optimization
42956         on OS/2 (__EMX__), where it caused compiler error.
42957         Reported by Elbert Pol.
42958
42959 2008-04-11  Bruno Haible  <bruno@clisp.org>
42960
42961         Flush the standard error stream before aborting. Needed on mingw.
42962         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
42963         * tests/test-array_list.c (ASSERT): Likewise.
42964         * tests/test-array_oset.c (ASSERT): Likewise.
42965         * tests/test-avltree_list.c (ASSERT): Likewise.
42966         * tests/test-avltree_oset.c (ASSERT): Likewise.
42967         * tests/test-avltreehash_list.c (ASSERT): Likewise.
42968         * tests/test-binary-io.c (ASSERT): Likewise.
42969         * tests/test-byteswap.c (ASSERT): Likewise.
42970         * tests/test-c-ctype.c (ASSERT): Likewise.
42971         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
42972         * tests/test-c-strcasestr.c (ASSERT): Likewise.
42973         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
42974         * tests/test-c-strstr.c (ASSERT): Likewise.
42975         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
42976         * tests/test-canonicalize.c (ASSERT): Likewise.
42977         * tests/test-carray_list.c (ASSERT): Likewise.
42978         * tests/test-ceilf1.c (ASSERT): Likewise.
42979         * tests/test-ceilf2.c (ASSERT): Likewise.
42980         * tests/test-ceill.c (ASSERT): Likewise.
42981         * tests/test-count-one-bits.c (ASSERT): Likewise.
42982         * tests/test-fbufmode.c (ASSERT): Likewise.
42983         * tests/test-fflush2.c (ASSERT): Likewise.
42984         * tests/test-floorf1.c (ASSERT): Likewise.
42985         * tests/test-floorf2.c (ASSERT): Likewise.
42986         * tests/test-floorl.c (ASSERT): Likewise.
42987         * tests/test-fopen.c (ASSERT): Likewise.
42988         * tests/test-fpending.c (ASSERT): Likewise.
42989         * tests/test-fprintf-posix.c (ASSERT): Likewise.
42990         * tests/test-fpurge.c (ASSERT): Likewise.
42991         * tests/test-freadable.c (ASSERT): Likewise.
42992         * tests/test-freadahead.c (ASSERT): Likewise.
42993         * tests/test-freading.c (ASSERT): Likewise.
42994         * tests/test-freadptr.c (ASSERT): Likewise.
42995         * tests/test-freadptr2.c (ASSERT): Likewise.
42996         * tests/test-freadseek.c (ASSERT): Likewise.
42997         * tests/test-freopen.c (ASSERT): Likewise.
42998         * tests/test-frexp.c (ASSERT): Likewise.
42999         * tests/test-frexpl.c (ASSERT): Likewise.
43000         * tests/test-fseek.c (ASSERT): Likewise.
43001         * tests/test-fseeko.c (ASSERT): Likewise.
43002         * tests/test-fstrcmp.c (ASSERT): Likewise.
43003         * tests/test-ftell.c (ASSERT): Likewise.
43004         * tests/test-ftello.c (ASSERT): Likewise.
43005         * tests/test-func.c (ASSERT): Likewise.
43006         * tests/test-fwritable.c (ASSERT): Likewise.
43007         * tests/test-fwriting.c (ASSERT): Likewise.
43008         * tests/test-getdelim.c (ASSERT): Likewise.
43009         * tests/test-getline.c (ASSERT): Likewise.
43010         * tests/test-i-ring.c (ASSERT): Likewise.
43011         * tests/test-iconv-utf.c (ASSERT): Likewise.
43012         * tests/test-iconv.c (ASSERT): Likewise.
43013         * tests/test-isfinite.c (ASSERT): Likewise.
43014         * tests/test-isnand.c (ASSERT): Likewise.
43015         * tests/test-isnanf.c (ASSERT): Likewise.
43016         * tests/test-isnanl.h (ASSERT): Likewise.
43017         * tests/test-ldexpl.c (ASSERT): Likewise.
43018         * tests/test-linked_list.c (ASSERT): Likewise.
43019         * tests/test-linkedhash_list.c (ASSERT): Likewise.
43020         * tests/test-localename.c (ASSERT): Likewise.
43021         * tests/test-lseek.c (ASSERT): Likewise.
43022         * tests/test-mbscasecmp.c (ASSERT): Likewise.
43023         * tests/test-mbscasestr1.c (ASSERT): Likewise.
43024         * tests/test-mbscasestr2.c (ASSERT): Likewise.
43025         * tests/test-mbscasestr3.c (ASSERT): Likewise.
43026         * tests/test-mbscasestr4.c (ASSERT): Likewise.
43027         * tests/test-mbschr.c (ASSERT): Likewise.
43028         * tests/test-mbscspn.c (ASSERT): Likewise.
43029         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
43030         * tests/test-mbspbrk.c (ASSERT): Likewise.
43031         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
43032         * tests/test-mbsrchr.c (ASSERT): Likewise.
43033         * tests/test-mbsspn.c (ASSERT): Likewise.
43034         * tests/test-mbsstr1.c (ASSERT): Likewise.
43035         * tests/test-mbsstr2.c (ASSERT): Likewise.
43036         * tests/test-mbsstr3.c (ASSERT): Likewise.
43037         * tests/test-memchr2.c (ASSERT): Likewise.
43038         * tests/test-memmem.c (ASSERT): Likewise.
43039         * tests/test-open.c (ASSERT): Likewise.
43040         * tests/test-printf-frexp.c (ASSERT): Likewise.
43041         * tests/test-printf-frexpl.c (ASSERT): Likewise.
43042         * tests/test-printf-posix.c (ASSERT): Likewise.
43043         * tests/test-quotearg.c (ASSERT): Likewise.
43044         * tests/test-rbtree_list.c (ASSERT): Likewise.
43045         * tests/test-rbtree_oset.c (ASSERT): Likewise.
43046         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
43047         * tests/test-round1.c (ASSERT): Likewise.
43048         * tests/test-roundf1.c (ASSERT): Likewise.
43049         * tests/test-roundl.c (ASSERT): Likewise.
43050         * tests/test-signbit.c (ASSERT): Likewise.
43051         * tests/test-sleep.c (ASSERT): Likewise.
43052         * tests/test-snprintf-posix.c (ASSERT): Likewise.
43053         * tests/test-snprintf.c (ASSERT): Likewise.
43054         * tests/test-sprintf-posix.c (ASSERT): Likewise.
43055         * tests/test-stat-time.c (ASSERT): Likewise.
43056         * tests/test-strcasestr.c (ASSERT): Likewise.
43057         * tests/test-strerror.c (ASSERT): Likewise.
43058         * tests/test-striconv.c (ASSERT): Likewise.
43059         * tests/test-striconveh.c (ASSERT): Likewise.
43060         * tests/test-striconveha.c (ASSERT): Likewise.
43061         * tests/test-strsignal.c (ASSERT): Likewise.
43062         * tests/test-strstr.c (ASSERT): Likewise.
43063         * tests/test-strtod.c (ASSERT): Likewise.
43064         * tests/test-trunc1.c (ASSERT): Likewise.
43065         * tests/test-trunc2.c (ASSERT): Likewise.
43066         * tests/test-truncf1.c (ASSERT): Likewise.
43067         * tests/test-truncf2.c (ASSERT): Likewise.
43068         * tests/test-truncl.c (ASSERT): Likewise.
43069         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
43070         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
43071         * tests/test-vasnprintf.c (ASSERT): Likewise.
43072         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
43073         * tests/test-vasprintf.c (ASSERT): Likewise.
43074         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
43075         * tests/test-vprintf-posix.c (ASSERT): Likewise.
43076         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
43077         * tests/test-vsnprintf.c (ASSERT): Likewise.
43078         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
43079         * tests/test-wcwidth.c (ASSERT): Likewise.
43080         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
43081         * tests/test-xprintf-posix.c (ASSERT): Likewise.
43082         * tests/test-xvasprintf.c (ASSERT): Likewise.
43083         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
43084         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
43085         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
43086         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
43087         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
43088         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
43089         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
43090         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
43091         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
43092         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
43093         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
43094         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
43095         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
43096         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
43097         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
43098         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
43099         * tests/unictype/test-block_list.c (ASSERT): Likewise.
43100         * tests/unictype/test-block_of.c (ASSERT): Likewise.
43101         * tests/unictype/test-block_test.c (ASSERT): Likewise.
43102         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
43103         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
43104         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
43105         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
43106         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
43107         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
43108         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
43109         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
43110         * tests/unictype/test-combining.c (ASSERT): Likewise.
43111         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
43112         * tests/unictype/test-digit.c (ASSERT): Likewise.
43113         * tests/unictype/test-mirror.c (ASSERT): Likewise.
43114         * tests/unictype/test-numeric.c (ASSERT): Likewise.
43115         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
43116         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
43117         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
43118         * tests/unictype/test-scripts.c (ASSERT): Likewise.
43119         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
43120         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
43121         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
43122         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
43123         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
43124         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
43125         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
43126         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
43127         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
43128         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
43129         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
43130         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
43131         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
43132         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
43133         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
43134         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
43135         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
43136         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
43137         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
43138         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
43139         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
43140         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
43141         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
43142         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
43143         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
43144         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
43145         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
43146         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
43147         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
43148         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
43149         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
43150         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
43151         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
43152         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
43153         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
43154         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
43155         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
43156         Reported by Eric Blake.
43157
43158 2008-04-11  Bruno Haible  <bruno@clisp.org>
43159
43160         * lib/wchar.in.h: Tweak comment.
43161
43162 2008-04-11  Bruno Haible  <bruno@clisp.org>
43163
43164         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
43165         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
43166         gl_COMMON.
43167         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
43168
43169 2008-04-11  Bruno Haible  <bruno@clisp.org>
43170
43171         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
43172
43173 2008-04-11  Simon Josefsson  <simon@josefsson.org>
43174
43175         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
43176         of attempting to use non-existing /dev/*random.  Based on patch
43177         from Adam Strzelecki <ono@java.pl> in
43178         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
43179
43180 2008-04-08  Bruno Haible  <bruno@clisp.org>
43181
43182         Add tentative support for emx+gcc.
43183         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
43184         * lib/fpurge.c (fpurge): Likewise.
43185         * lib/freadable.c (freadable): Likewise.
43186         * lib/freadahead.c (freadahead): Likewise.
43187         * lib/freading.c (freading): Likewise.
43188         * lib/freadptr.c (freadptr): Likewise.
43189         * lib/freadseek.c (freadptrinc): Likewise.
43190         * lib/fseeko.c (rpl_fseeko): Likewise.
43191         * lib/fseterr.c (fseterr): Likewise.
43192         * lib/fwritable.c (fwritable): Likewise.
43193         * lib/fwriting.c (fwriting): Likewise.
43194         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
43195
43196 2008-04-09  Eric Blake  <ebb9@byu.net>
43197
43198         Avoid some autoconf warnings.
43199         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
43200         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
43201         * m4/afs.m4 (gl_AFS): Likewise.
43202         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
43203         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
43204         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43205         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
43206         (gl_INTEGER_TYPE_SUFFIX): Likewise.
43207         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
43208         (AC_CHECK_DECLS_ONCE): Likewise.
43209         Rename file...
43210         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
43211         gnulib-tool requires autoconf 2.59 or better.
43212         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
43213
43214 2008-04-08  Eric Blake  <ebb9@byu.net>
43215
43216         Use 'git describe --match' if present (added in git 1.5.5).
43217         * build-aux/git-version-gen: Limit result to tags that match 'v*'
43218         if possible.
43219
43220 2008-04-08  Bruno Haible  <bruno@clisp.org>
43221
43222         Add tentative support for OpenServer.
43223         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
43224         _ptr, _cnt.
43225         * lib/fpurge.c (fpurge): Likewise.
43226         * lib/freadable.c (freadable): Likewise.
43227         * lib/freadahead.c (freadahead): Likewise.
43228         * lib/freading.c (freading): Likewise.
43229         * lib/freadptr.c (freadptr): Likewise.
43230         * lib/freadseek.c (freadptrinc): Likewise.
43231         * lib/fseeko.c (rpl_fseeko): Likewise.
43232         * lib/fseterr.c (fseterr): Likewise.
43233         * lib/fwritable.c (fwritable): Likewise.
43234         * lib/fwriting.c (fwriting): Likewise.
43235         Reported by Roger Cornelius <rac@tenzing.org> and
43236         Brian K. White <brian@aljex.com>.
43237
43238 2008-04-06  Jim Meyering  <meyering@redhat.com>
43239
43240         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
43241
43242 2008-04-06  Bruno Haible  <bruno@clisp.org>
43243
43244         Avoid possible error with non-ASCII bytes in UTF-8 locales.
43245         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
43246         * tests/test-printf-posix.sh: Likewise.
43247         * tests/test-vfprintf-posix.sh: Likewise.
43248         * tests/test-vprintf-posix.sh: Likewise.
43249         * tests/test-xprintf-posix.sh: Likewise.
43250
43251 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43252
43253         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
43254         hide error from 'ls', needed on OS/2.
43255         Report by Elbert Pol <elbert.pol@gmail.com>.
43256
43257 2008-04-04  Eric Blake  <ebb9@byu.net>
43258
43259         Make test-fseeko.c failures meaningful.
43260         * tests/test-fseeko.c: Print line number on failure.
43261         * tests/test-fseek.c: Likewise.
43262         Reported by Nelson H. F. Beebe.
43263
43264         Improve strtod bug detection check.
43265         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
43266         required for Solaris 10.
43267         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
43268
43269 2008-04-04  Bruno Haible  <bruno@clisp.org>
43270
43271         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
43272         by m4/setenv.m4.
43273
43274 2008-04-03  Eric Blake  <ebb9@byu.net>
43275
43276         Ensure sane .version contents.
43277         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
43278         version string.
43279         * build-aux/git-version-gen: Improve documentation.
43280
43281         Make GNU make output nicer.
43282         * top/GNUmakefile [!_have-Makefile]: Add dependency on
43283         MAKECMDGOALS to enforce message for all command line targets.  Set
43284         srcdir for use in maint.mk.
43285
43286         Another maintainer tweak.
43287         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
43288         a target that regenerates version.
43289
43290 2008-04-03  Jim Meyering  <meyering@redhat.com>
43291
43292         vc-list-files: don't cause coreutils "make po-check" failure
43293         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
43294
43295 2008-04-03  Eric Blake  <ebb9@byu.net>
43296
43297         Allow VPATH usage of vc-list-files.
43298         * build-aux/vc-list-files (scriptversion): Add timestamp.
43299         (options): Add --help, --version, -C.
43300         (CVS): Support installed cvsu.
43301
43302 2008-04-02  Bruno Haible  <bruno@clisp.org>
43303
43304         Avoid some "statement with no effect" warnings from gcc.
43305         * tests/test-wctype.c (main): Explicitly ignore unused values.
43306         Reported by Jim Meyering.
43307
43308 2008-04-02  Jim Meyering  <meyering@redhat.com>
43309
43310         Avoid some warnings from "gcc -Wshadow".
43311         * tests/test-frexp.c (exp): Define to a different identifier.
43312         * tests/test-frexpl.c (exp): Likewise.
43313
43314 2008-04-03  Jim Meyering  <meyering@redhat.com>
43315
43316         bootstrap: remove dangling *.[ch] symlinks from lib
43317         * build-aux/bootstrap [dangling symlink removal]: Move find's
43318         -depth option to precede all others, to avoid a warning.
43319         Remove *.[ch] files too, and from "$source_base" (usually lib/).
43320
43321 2008-04-02  Bruno Haible  <bruno@clisp.org>
43322
43323         Avoid some warnings from "gcc -Wshadow".
43324         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
43325         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
43326         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
43327         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
43328         Reported by Jim Meyering.
43329
43330 2008-04-01  Bruno Haible  <bruno@clisp.org>
43331
43332         Fix test to work on IRIX 6.5 with cc.
43333         * tests/test-math.c (numeric_equal): New function.
43334         (main): Use it.
43335
43336 2008-04-01  Bruno Haible  <bruno@clisp.org>
43337
43338         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
43339
43340 2008-04-01  Bruno Haible  <bruno@clisp.org>
43341
43342         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
43343         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43344         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
43345         (Depends-on): Remove math.
43346
43347         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
43348         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43349         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
43350         (Depends-on): Remove math.
43351
43352         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
43353         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43354         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
43355         (Depends-on): Remove math.
43356         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
43357         (Depends-on): Remove math.
43358
43359         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
43360         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43361         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
43362         (Depends-on): Remove math.
43363         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
43364         (Depends-on): Remove math.
43365
43366         * tests/test-round1.c: Include nan.h.
43367         (main): Use NaNd instead of NAN.
43368         * modules/round-tests (Files): Add tests/nan.h.
43369
43370         * tests/test-trunc1.c: Include nan.h.
43371         (main): Use NaNd instead of NAN.
43372         * modules/trunc-tests (Files): Add tests/nan.h.
43373
43374         * tests/test-roundf1.c: Include nan.h.
43375         (main): Use NaNf instead of NAN.
43376         * modules/roundf-tests (Files): Add tests/nan.h.
43377
43378         * tests/test-truncf1.c: Include nan.h.
43379         (main): Use NaNf instead of NAN.
43380         * modules/truncf-tests (Files): Add tests/nan.h.
43381
43382         * tests/test-ceilf1.c: Include nan.h.
43383         (main): Use NaNf instead of NAN.
43384         * modules/ceilf-tests (Files): Add tests/nan.h.
43385
43386         * tests/test-floorf1.c: Include nan.h.
43387         (main): Use NaNf instead of NAN.
43388         * modules/floorf-tests (Files): Add tests/nan.h.
43389
43390         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
43391         (main): Use NaNf instead of NAN.
43392         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
43393
43394         * tests/test-isnand.c: Include nan.h instead of <math.h>.
43395         (main): Use NaNd instead of NAN.
43396         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
43397
43398         * tests/test-frexp.c: Include nan.h.
43399         (main): Use NaNd instead of NAN.
43400         * modules/frexp-tests (Files): Add tests/nan.h.
43401
43402         * lib/isnan.c: Don't include <math.h>.
43403         (FUNC): Don't use NAN macro.
43404         * modules/isnand-nolibm (Depends-on): Remove math.
43405         * modules/isnanf-nolibm (Depends-on): Remove math.
43406         * modules/isnanl (Depends-on): Remove math.
43407         * modules/isnanl-nolibm (Depends-on): Remove math.
43408
43409         * tests/nan.h: New file.
43410
43411 2008-04-01  Eric Blake  <ebb9@byu.net>
43412
43413         Fix typos.
43414         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
43415         values to be the right type.
43416
43417         For now, cater to gnulib strtod inaccuracies.
43418         * tests/test-strtod.c (main): Allow 1-ulp error on expected
43419         fractional results.  While not as nice from a QoI perspective, it
43420         is a quicker patch than correctly implementing decimal to binary
43421         rounding.
43422
43423 2008-03-31  Eric Blake  <ebb9@byu.net>
43424
43425         Guarantee a definition of NAN.
43426         * lib/math.in.h (NAN): Define if missing.
43427         * tests/test-math.c (main): Test it.
43428         * doc/posix-headers/math.texi (math.h): Document this.
43429         * lib/isnan.c (rpl_isnand): Use it.
43430         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
43431         * tests/test-floorf1.c (NaN): Likewise.
43432         * tests/test-frexp.c (NaN): Likewise.
43433         * tests/test-isnand.c (NaN): Likewise.
43434         * tests/test-isnanf.c (NaN): Likewise.
43435         * tests/test-round1.c (NaN): Likewise.
43436         * tests/test-roundf1.c (NaN): Likewise.
43437         * tests/test-snprintf-posix.h (NaN): Likewise.
43438         * tests/test-sprintf-posix.h (NaN): Likewise.
43439         * tests/test-trunc1.c (NaN): Likewise.
43440         * tests/test-truncf1.c (NaN): Likewise.
43441         * tests/test-vasnprintf-posix.c (NaN): Likewise.
43442         * tests/test-vasprintf-posix.c (NaN): Likewise.
43443         * modules/isnand-nolibm (Depends-on): Add math.
43444         * modules/isnanf-nolibm (Depends-on): Likewise.
43445         * modules/isnanl (Depends-on): Likewise.
43446         * modules/isnanl-nolibm (Depends-on): Likewise.
43447         * modules/snprintf-posix-tests (Depends-on): Likewise.
43448         * modules/sprintf-posix-tests (Depends-on): Likewise.
43449         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
43450         * modules/vsprintf-posix-tests (Depends-on): Likewise.
43451         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
43452         * modules/vasprintf-posix-tests (Depends-on): Likewise.
43453
43454 2008-03-31  Bruno Haible  <bruno@clisp.org>
43455
43456         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
43457         * doc/posix-functions/strtod.texi: Likewise.
43458
43459 2008-03-31  Bruno Haible  <bruno@clisp.org>
43460
43461         * tests/test-strtod.c (main): Don't use C99 syntax.
43462
43463 2008-03-31  Bruno Haible  <bruno@clisp.org>
43464
43465         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
43466         Reported by Eric Blake.
43467
43468 2008-03-31  Jim Meyering  <meyering@redhat.com>
43469
43470         Don't compare actual signbit return values.
43471         * tests/test-strtod.c (main): Rather, compare only their
43472         zero/non-zero nature.
43473
43474 2008-03-31  Eric Blake  <ebb9@byu.net>
43475
43476         More strtod documentation.
43477         * doc/posix-functions/strtod.texi (strtod): Interpret more test
43478         failures as distinct bugs.
43479
43480 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
43481
43482         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
43483         Problem reported by Erik Benada in
43484         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
43485
43486 2008-03-30  Bruno Haible  <bruno@clisp.org>
43487
43488         * tests/test-strtod.c: Add comments about which assertion fails on which
43489         platform.
43490         * doc/posix-functions/strtod.texi: Add info about many more platforms.
43491
43492 2008-03-30  Eric Blake  <ebb9@byu.net>
43493
43494         Test signbit behavior on zeros.
43495         * tests/test-signbit.c (test_signbitf): Add tests for zero.
43496         (test_signbitd, test_signbitl): Likewise.
43497
43498         More strtod touchups.
43499         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
43500         sign of negative underflow, for now.  Use .5, not .1.
43501         * doc/posix-functions/strtod.texi (strtod): Mention these
43502         limitations.
43503         Reported by Jim Meyering.
43504
43505 2008-03-30  Bruno Haible  <bruno@clisp.org>
43506
43507         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
43508         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
43509
43510 2008-03-30  Bruno Haible  <bruno@clisp.org>
43511
43512         Avoid failure when attempting to return empty iconv results on some
43513         platforms.
43514         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
43515         allocation, don't report ENOMEM when the resulting string is empty.
43516
43517 2008-03-30  Bruno Haible  <bruno@clisp.org>
43518
43519         Fix buffer overrun.
43520         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
43521         Don't consider the width for tmp_length. Check count against tmp_length
43522         before doing the padding. Ensure enough allocation during padding.
43523
43524 2008-03-30  Eric Blake  <ebb9@byu.net>
43525
43526         strtod touchups.
43527         * lib/strtod.c (strtod): Avoid compiler warnings.
43528         Reported by Jim Meyering.
43529
43530 2008-03-30  Bruno Haible  <bruno@clisp.org>
43531
43532         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
43533         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
43534         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
43535         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
43536         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
43537         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
43538         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
43539         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
43540
43541         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
43542         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
43543         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
43544         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
43545         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
43546         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
43547         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
43548         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
43549
43550         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
43551         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
43552         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
43553         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
43554         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
43555         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
43556         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
43557         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
43558
43559         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
43560         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
43561
43562         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
43563         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
43564
43565         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
43566         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
43567
43568         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
43569         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
43570         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
43571
43572         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
43573         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
43574         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
43575
43576         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
43577         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
43578         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
43579
43580         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
43581         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
43582         * modules/vasprintf (Depends-on): Add EOVERFLOW.
43583
43584         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
43585         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
43586         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
43587         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
43588         (Depends-on): Add EOVERFLOW.
43589         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
43590         (Depends-on): Add EOVERFLOW.
43591         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
43592         (Depends-on): Add EOVERFLOW.
43593         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
43594         (Depends-on): Add EOVERFLOW.
43595         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
43596         (Depends-on): Add EOVERFLOW.
43597         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
43598         (Depends-on): Add EOVERFLOW.
43599         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
43600         (Depends-on): Add EOVERFLOW.
43601         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
43602         (Depends-on): Add EOVERFLOW.
43603
43604         * lib/sprintf.c (EOVERFLOW): Remove fallback.
43605         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
43606         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
43607
43608         * lib/snprintf.c (EOVERFLOW): Remove fallback.
43609         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
43610         * modules/snprintf (Depends-on): Add EOVERFLOW.
43611
43612         * lib/poll.c (EOVERFLOW): Remove fallback.
43613         * modules/poll (Depends-on): Add EOVERFLOW.
43614
43615         * lib/getugroups.c (EOVERFLOW): Remove fallback.
43616         * modules/getugroups (Depends-on): Add EOVERFLOW.
43617
43618         * lib/getdelim.c (EOVERFLOW): Remove fallback.
43619         * modules/getdelim (Depends-on): Add EOVERFLOW.
43620
43621         * lib/ftell.c (EOVERFLOW): Remove fallback.
43622         * modules/ftell (Depends-on): Add EOVERFLOW.
43623
43624         * lib/fprintf.c (EOVERFLOW): Remove fallback.
43625         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
43626         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
43627
43628         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
43629
43630         * modules/EOVERFLOW-tests: New file.
43631         * tests/test-EOVERFLOW.c: New file.
43632
43633         * modules/EOVERFLOW: New file.
43634         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
43635
43636 2008-03-30  Bruno Haible  <bruno@clisp.org>
43637
43638         Fix bug introduced on 2007-06-10.
43639         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
43640         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
43641
43642 2008-03-30  Bruno Haible  <bruno@clisp.org>
43643
43644         Improve freadseek's efficiency after ungetc.
43645         * lib/freadseek.c: Include freadahead.h.
43646         (freadptrinc): New function, extracted from freadseek.
43647         (freadseek): Use it in a loop. Use freadahead to determine the number
43648         of loop iterations.
43649         * modules/freadseek (Depends-on): Add freadahead.
43650         (configure.ac): Require AC_C_INLINE.
43651
43652 2008-03-30  Bruno Haible  <bruno@clisp.org>
43653
43654         * lib/freadseek.c (freadseek): Don't ignore the return value of
43655         freadptr.
43656
43657 2008-03-29  Eric Blake  <ebb9@byu.net>
43658
43659         Add hex float support.
43660         * modules/strtod (Depends-on): Add c-ctype.
43661         (Link): Mention POW_LIB.
43662         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
43663         whitespace between 'e' and exponent.
43664         * tests/test-strtod.c (main): Enable hex float tests.
43665         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
43666         now provides.
43667
43668         Document various strtod bugs, with some fixes.
43669         * doc/posix-functions/strtod.texi (strtod): Document bugs with
43670         "-0x", "inf", "nan", and hex constants.
43671         * doc/posix-functions/atof.texi (atof): Likewise.
43672         * modules/stdlib (Makefile.am): Support strtod.
43673         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
43674         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
43675         detect additional strtod bugs.
43676         * lib/stdlib.in.h (rpl_strtod): Add declarations.
43677         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
43678         bool where appropriate.  Parse 'inf' and 'nan'.
43679         * tests/test-strtod.c: New file.
43680         * modules/strtod (Depends-on): Add stdbool, stdlib.
43681         (configure.ac): Turn on module indicator.
43682         * modules/strtod-tests: New module.
43683
43684 2008-03-29  Eric Blake  <ebb9@byu.net>
43685
43686         Fix ftell on mingw.
43687         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
43688         * modules/ftell-tests (Depends-on): Add binary-io.
43689         * modules/ftello-tests (Depends-on): Likewise.
43690         * tests/test-ftell.c (main): Enhance test to cover behavior after
43691         ungetc.  Enforce binary mode.
43692         * tests/test-ftello.c (main): Likewise.
43693
43694         Pass test-freadseek on cygwin.
43695         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
43696         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
43697         ungetc buffer.
43698
43699         * tests/test-fflush2.c (main): Fix typo.
43700
43701 2008-03-29  Bruno Haible  <bruno@clisp.org>
43702
43703         * tests/test-fflush2.c (main): Temporarily disable the contents of
43704         this test.
43705         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
43706         Reported by Eric Blake.
43707
43708 2008-03-28  Simon Josefsson  <simon@josefsson.org>
43709
43710         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
43711         (GC_SHA224_DIGEST_SIZE): Add.
43712
43713         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
43714         (gc_hash_digest_length): Likewise.
43715         (gc_hash_buffer): Likewise.
43716
43717 2008-03-25  Bruno Haible  <bruno@clisp.org>
43718
43719         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
43720         detail which gettext release to use.
43721         Reported by Simon Josefsson.
43722
43723 2008-03-26  Jim Meyering  <meyering@redhat.com>
43724
43725         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
43726         * modules/gnumakefile (clean-GNUmakefile): Also, use
43727         test ... && ... || : syntax rather than if-then ... fi.
43728
43729         gnumakefile: Don't double-quote-expand $(VPATH) value.
43730         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
43731
43732 2008-03-24  Eric Blake  <ebb9@byu.net>
43733
43734         Alter GNUmakefile to install into top directory.
43735         * modules/maintainer-makefile: Split, and add dependency...
43736         * modules/gnumakefile: to this new module.
43737         * build-aux/GNUmakefile: Move...
43738         * top/GNUmakefile: ...here.
43739         * build-aux/maint.mk: Move...
43740         * top/maint.mk: ...here.
43741         * MODULES.html.sh (Support for maintaining...): Document new
43742         module.
43743
43744 2008-03-23  Bruno Haible  <bruno@clisp.org>
43745
43746         * gnulib-tool: New options --vc-files, --no-vc-files.
43747         (func_usage): Document them.
43748         (vc_files): New variable.
43749         (func_import): Consider vc_files.
43750         (func_create_testdir): Set vc_files to empty.
43751         Suggested by Jim Meyering and Karl Berry.
43752
43753 2008-03-23  Bruno Haible  <bruno@clisp.org>
43754
43755         Fix regex compilation error on HP-UX 11.
43756         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
43757         * modules/regex (Files): Add m4/mbstate_t.m4.
43758         Reported by Ton Voon <ton.voon@altinity.com>.
43759
43760 2008-03-23  Bruno Haible  <bruno@clisp.org>
43761
43762         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
43763
43764 2008-03-23  Eric Blake  <ebb9@byu.net>
43765             Bruno Haible  <bruno@clisp.org>
43766
43767         Install files from top/ in the destination directory.
43768         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
43769         augmentation also for the files from top/.
43770         (func_import, func_create_testdir): Rewrite file names:
43771         top/filename -> filename.
43772
43773 2008-03-23  Bruno Haible  <bruno@clisp.org>
43774
43775         Tweak "gnulib --version" output.
43776         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
43777
43778 2008-03-23  Bruno Haible  <bruno@clisp.org>
43779
43780         Tweak "gnulib --version" output.
43781         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
43782         rather than contents of ChangeLog, when possible.
43783
43784 2008-03-21  Eric Blake  <ebb9@byu.net>
43785
43786         More --version tweaks.
43787         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
43788         date of last ChangeLog entry.
43789
43790 2008-03-21  Jim Meyering  <meyering@redhat.com>
43791
43792         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
43793
43794 2008-03-20  Eric Blake  <ebb9@byu.net>
43795
43796         VPATH fix.
43797         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
43798
43799 2008-03-20  Simon Josefsson  <simon@josefsson.org>
43800
43801         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
43802         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
43803
43804 2008-03-20  Eric Blake  <ebb9@byu.net>
43805
43806         Sync GNUmakefile with coreutils.
43807         * build-aux/GNUmakefile (have-Makefile): Rename...
43808         (_have-Makefile): ...to this, for namespace consideration.
43809         (GNUmakefile.cfg): Include, if present.
43810         (_autoreconf): Define a default.
43811         (_is-dist-target): New rule for rebuilds to pick up intra-release
43812         version.
43813         (maint-cfg.mk): Rename...
43814         (cfg.mk): ...to this.
43815
43816 2008-03-18  Jim Meyering  <meyering@redhat.com>
43817
43818         New script and module: mktempd
43819         * MODULES.html.sh (maint+release support): Add mktempd.
43820         * build-aux/mktempd: New file.
43821         * modules/mktempd: New file.
43822
43823 2008-03-15  Jim Meyering  <meyering@redhat.com>
43824
43825         Undo last change.
43826         * lib/sha1.c, lib/md5.c: 63 != ~63.
43827         Reported by Andreas Schwab.
43828
43829         sha1.c, md5.c: Hoist a redundant expression.
43830         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
43831         "ctx->buflen" only once, before calling *_process_block.
43832         * lib/md5.c (md5_process_bytes): Likewise.
43833
43834 2008-03-14  Eric Blake  <ebb9@byu.net>
43835
43836         Bump copyright year in files generated by gnulib-tool.
43837         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
43838         gnulib-tool, rather than hard-coding it.
43839
43840         Fix 'gnulib-tool --version' output to work with git.
43841         * gnulib-tool (func_gnulib_dir): New function, extracted from...
43842         (startup): ...here.
43843         (func_version): Use it to invoke git-version-gen, rather than
43844         relying on CVS keyword expansion.  Modernize wording.
43845         (cvsdatestamp, last_checkin_date, version): Kill unused
43846         variables.
43847
43848 2008-03-12  Jim Meyering  <meyering@redhat.com>
43849
43850         Recognize optional cast of the argument to free.
43851         * build-aux/useless-if-before-free: Update regexps.
43852
43853         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
43854
43855 2008-03-11  Bruno Haible  <bruno@clisp.org>
43856
43857         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
43858         by a single package.
43859         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
43860         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
43861         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
43862         Reported by Sam Steingold <sds@gnu.org>.
43863
43864 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43865
43866         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
43867         repositories.
43868
43869 2008-03-11  Bruno Haible  <bruno@clisp.org>
43870
43871         Avoid conflicts between local macro definitions.
43872         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
43873         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
43874
43875 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
43876             Bruno Haible  <bruno@clisp.org>
43877
43878         Make va_copy work with some version of xlc on AIX 5.1.
43879         * lib/stdarg.in.h: New file.
43880         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
43881         On AIX, use a <stdarg.h> file substitute.
43882         * modules/stdarg (Files): Add lib/stdarg.in.h.
43883         (Depends-on): Add include_next.
43884         (Makefile.am): Build a stdarg.h substitute if requested.
43885         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
43886
43887 2008-03-10  Bruno Haible  <bruno@clisp.org>
43888
43889         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
43890         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43891         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
43892
43893 2008-03-10  Bruno Haible  <bruno@clisp.org>
43894
43895         * modules/stdlib (Depends-on): Add include_next, remove
43896         absolute-header.
43897
43898 2008-03-09  Bruno Haible  <bruno@clisp.org>
43899
43900         * lib/freadahead.h (freadahead): Document more precisely.
43901         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
43902         the sum of both buffer sizes.
43903         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
43904         * NEWS: Document the change.
43905
43906 2008-03-09  Bruno Haible  <bruno@clisp.org>
43907
43908         Extend freadptr to return also the buffer size.
43909         * lib/freadptr.h (freadptr): Add sizep argument.
43910         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
43911         (freadptr): Add sizep argument. Determine buffer size like freadahead
43912         does.
43913         * tests/test-freadptr.c: Don't include freadahead.h.
43914         (main): Adapt for new calling convention of freadptr.
43915         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
43916         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
43917         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
43918         tests/test-freadptr2.sh.
43919         (Depends): Remove freadahead.
43920         (TESTS): Add test-freadptr2.sh.
43921         (check_PROGRAMS): Add test-freadptr2.
43922
43923 2008-03-09  Bruno Haible  <bruno@clisp.org>
43924
43925         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
43926         Report and solution by Simon Josefsson.
43927
43928 2008-03-06  Bruno Haible  <bruno@clisp.org>
43929
43930         Make fflush after ungetc work on BSD platforms.
43931         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
43932         * tests/test-fflush2.c: New file.
43933         * tests/test-fflush2.sh: New file.
43934         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
43935         tests/test-fflush2.c.
43936         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
43937         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
43938
43939 2008-03-06  Eric Blake  <ebb9@byu.net>
43940
43941         Likewise for ftello.
43942         * modules/ftello (Dependencies): Add extensions.
43943         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
43944
43945 2008-03-06  Bruno Haible  <bruno@clisp.org>
43946
43947         * modules/fseeko (Dependencies): Add extensions.
43948         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
43949         Needed on glibc systems.
43950
43951 2008-03-06  Bruno Haible  <bruno@clisp.org>
43952
43953         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
43954         email address.
43955         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43956
43957 2008-03-06  Bruno Haible  <bruno@clisp.org>
43958
43959         * users.txt: Add libgnupdf.
43960
43961 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
43962
43963         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
43964         (Header File Substitutes, Function Substitutes,
43965         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
43966         (Build robot for gnulib): Fix typo.
43967
43968 2008-03-06  Bruno Haible  <bruno@clisp.org>
43969
43970         * doc/gnulib-tool.texi (VCS Issues): Small updates.
43971         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43972
43973 2008-03-06  Bruno Haible  <bruno@clisp.org>
43974
43975         * doc/func.texi: New file, extracted from doc/gnulib.texi.
43976         * doc/gnulib.texi: Include it.
43977
43978 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43979
43980         * modules/func (License): Change license to unlimited; there was
43981         no LGPL parts in the module anyway.
43982
43983 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43984
43985         * modules/__func__: Renamed to modules/func.
43986         * modules/__func__-tests: Renamed to modules/func-tests.
43987         * tests/test-__func__.c: Renamed to tests/test-func.c.
43988         * m4/__func__.m4: Renamed to m4/func.m4.
43989         * doc/gnulib.texi (__func__): Section renamed to func.
43990         Suggested by Eric Blake <ebb9@byu.net>.
43991
43992 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43993
43994         * doc/gnulib.texi (__func__): Use C99 terminology when talking
43995         about __func__.  Make example self-contained.  Suggested by Eric
43996         Blake <ebb9@byu.net>.
43997
43998         * tests/test-__func__.c (main): Avoid extraneous () around __func.
43999         Suggested by Eric Blake <ebb9@byu.net>.
44000
44001 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44002
44003         * modules/__func__: New file.
44004         * modules/__func__-tests: New file.
44005         * tests/test-__func__.c: New file.
44006         * m4/__func__.m4: New file.
44007         * doc/gnulib.texi (__func__): Document __func__ module.
44008
44009 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44010
44011         * modules/byteswap (License): Re-license as LGPLv2+.
44012
44013 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44014
44015         * doc/Makefile: Add pdf target.
44016
44017 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44018
44019         * modules/inline (License): Use 'unlimited', since there are only
44020         *.m4 files in this module.
44021
44022 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44023             Bruno Haible  <bruno@clisp.org>
44024
44025         Add support for HP C 7.1 on OpenVMS 8.3.
44026         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
44027
44028 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44029
44030         Update VMS specifics.
44031         * lib/getopt.c [VMS]: Remove include of unixlib.h.
44032
44033 2008-03-02  Jim Meyering  <meyering@redhat.com>
44034
44035         Remove the last dependency on the "free" module.
44036         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
44037         Reported by Bob Proulx.
44038
44039         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
44040
44041         Remove useless "if" tests before free.  Deprecate "free" module.
44042         * doc/posix-functions/free.texi: Mention that this
44043         module is no longer useful.
44044         * modules/free (Notice): Say this module is obsolete.
44045         * modules/readutmp (Depends-on): Remove free.
44046         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
44047         * lib/putenv.c (putenv): Likewise.
44048         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
44049         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
44050         * tests/test-c-strcasestr.c (main): Likewise.
44051         * tests/test-c-strstr.c (main): Likewise.
44052         * tests/test-mbscasestr1.c (main): Likewise.
44053         * tests/test-mbscasestr2.c (main): Likewise.
44054         * tests/test-mbsstr1.c (main): Likewise.
44055         * tests/test-mbsstr2.c (main): Likewise.
44056         * tests/test-memmem.c (main): Likewise.
44057         * tests/test-strcasestr.c (main): Likewise.
44058         * tests/test-striconv.c (main): Likewise.
44059         * tests/test-striconveh.c (main): Likewise.
44060         * tests/test-striconveha.c (main): Likewise.
44061         * tests/test-strstr.c (main): Likewise.
44062
44063         * build-aux/git-version-gen: Adjust a comment and the Usage string.
44064
44065         bootstrap: sync from coreutils again
44066         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
44067
44068 2008-03-01  Jim Meyering  <meyering@redhat.com>
44069
44070         bootstrap: sync from coreutils
44071         * build-aux/bootstrap (update_po_files): Copy a .po file into place
44072         also when the target doesn't exist.
44073
44074 2008-03-01  Eric Blake  <ebb9@byu.net>
44075
44076         Fix bugs in last patch.
44077         * lib/memchr2.c (memchr2): Fix typo.
44078         * tests/test-memchr2.c: Test previous bug, and don't use GNU
44079         extension.
44080         Reported by Bruce Korb.
44081
44082         New module 'memchr2'.
44083         * modules/memchr2: New file.
44084         * modules/memchr2-tests: Likewise.
44085         * lib/memchr2.h: Likewise.
44086         * lib/memchr2.c: Likewise, based on memchr.c.
44087         * tests/test-memchr2.c: New test.
44088         * MODULES.html.sh (String handling): Add memchr2.
44089
44090 2008-02-29  Bruno Haible  <bruno@clisp.org>
44091
44092         * modules/freadseek-tests: New file.
44093         * tests/test-freadseek.sh: New file.
44094         * tests/test-freadseek.c: New file.
44095
44096         New module 'freadseek'.
44097         * modules/freadseek: New file.
44098         * lib/freadseek.h: New file.
44099         * lib/freadseek.c: New file.
44100         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
44101
44102 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
44103
44104         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
44105         wydawca.
44106
44107         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
44108         program_invocation_name and program_invocation_short_name are
44109         present.
44110
44111 2008-02-28  Bruno Haible  <bruno@clisp.org>
44112
44113         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
44114         * tests/test-freadptr.sh: Also test non-seekable stdin.
44115
44116 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
44117
44118         * build-aux/bootstrap (source_base, m4_base)
44119         (doc_base, tests_base): New variables.
44120         (gnulib_tool_options): Do not hardcode base directories, use
44121         the above variables instead.
44122
44123 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
44124
44125         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
44126
44127 2008-02-28  Bruno Haible  <bruno@clisp.org>
44128
44129         * modules/freadptr-tests: New file.
44130         * tests/test-freadptr.sh: New file.
44131         * tests/test-freadptr.c: New file.
44132
44133         New module 'freadptr'.
44134         * modules/freadptr: New file.
44135         * lib/freadptr.h: New file.
44136         * lib/freadptr.c: New file.
44137         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
44138
44139 2008-02-26  Karl Berry  <karl@freefriends.org>
44140
44141         Sync from Libtool:
44142         * libltdl/argz.c (argz_add, argz_count): New functions.
44143         * libltdl/argz.in.h: Declare them.
44144         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
44145
44146 2008-02-22  Bruno Haible  <bruno@clisp.org>
44147
44148         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
44149         is a pointer type.  Needed for HP-UX 10.
44150         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
44151         * doc/posix-functions/gmtime_r.texi: Likewise.
44152         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44153
44154 2008-02-24  Bruno Haible  <bruno@clisp.org>
44155
44156         * modules/environ-tests: New file.
44157         * tests/test-environ.c: New file.
44158
44159         New module 'environ'.
44160         * modules/environ: New file.
44161         * lib/unistd.in.h (environ): New declaration.
44162         * m4/environ.m4: New file.
44163         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
44164         after use.
44165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
44166         HAVE_DECL_ENVIRON.
44167         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
44168         HAVE_DECL_ENVIRON.
44169         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
44170         wrong claim that 'environ' is missing on some systems.
44171         * modules/execute (Depends-on): Add environ.
44172         * lib/execute.c (environ): Remove fallback declaration.
44173         * modules/pipe (Depends-on): Add environ.
44174         * lib/pipe.c (environ): Remove fallback declaration.
44175         * modules/setenv (Depends-on): Add environ.
44176         * lib/setenv.c (environ): Remove fallback declaration.
44177         * modules/unsetenv (Depends-on): Add environ.
44178         * lib/unsetenv.c (environ): Remove fallback declaration.
44179         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
44180         m4/environ.m4.
44181         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
44182         (gl_PREREQ_UNSETENV): Likewise.
44183
44184 2008-02-24  Bruno Haible  <bruno@clisp.org>
44185
44186         * doc/posix-functions/environ.texi: Document the MacOS X problem.
44187
44188 2008-02-20  Bob Proulx  <bob@proulx.com>
44189
44190         Enable use of older two part flavor 'git describe'.
44191         * build-aux/git-version-gen: If using the older two part flavor of
44192         git version then recreate the third part now present in the
44193         newer three part flavor of git describe.
44194
44195 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
44196
44197         * lib/fts.c (fts_build): Typo correction to comment.
44198
44199 2008-02-17  Bruno Haible  <bruno@clisp.org>
44200
44201         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
44202         generating no-op conflicts.
44203
44204 2008-02-17  Bruno Haible  <bruno@clisp.org>
44205
44206         Speed up by 10%.
44207         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
44208         result_entries, rather than an index-based loop.
44209
44210 2008-02-17  Bruno Haible  <bruno@clisp.org>
44211
44212         Speed up by 25%.
44213         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
44214         'hashcode_cached'.
44215         (entry_create): New function.
44216         (entry_hashcode): Use the cached hashcode if possible.
44217         (read_changelog_file, try_split_merged_entry): Use entry_create.
44218
44219 2008-02-17  Bruno Haible  <bruno@clisp.org>
44220
44221         Speed up from O(n^2) to O(n) for long ChangeLog files.
44222         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
44223         (read_changelog_file): Change implementation of entries_reversed list
44224         to rbtreehash.
44225         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
44226
44227 2008-02-17  Bruno Haible  <bruno@clisp.org>
44228
44229         New option --split-merged-entry.
44230         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
44231         (find_paragraph_end, try_split_merged_entry): New functions.
44232         (long_options): Add option --split-merged-entry.
44233         (usage): Document option --split-merged-entry.
44234         (main): Implement option --split-merged-entry.
44235         Reported by Eric Blake.
44236
44237 2008-02-17  Bruno Haible  <bruno@clisp.org>
44238
44239         * lib/git-merge-changelog.c: Include c-strstr.h.
44240         (main): Support the "git pull --rebase" situation.
44241         * modules/git-merge-changelog (Depends-on): Add c-strstr.
44242         Reported by Eric Blake.
44243
44244 2008-02-16  Eric Blake  <ebb9@byu.net>
44245
44246         Avoid doubling \ in common case of "c-maybe" quoting style.
44247         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
44248         eliding outer quotes.
44249         * lib/quotearg.h: Document this.
44250         * tests/test-quotearg.c (result_strings, inputs, results_g)
44251         (flag_results, locale_results): Test it by adding a new string to
44252         each test group.
44253         (compare_strings): Test new string.
44254
44255 2008-02-13  Eric Blake  <ebb9@byu.net>
44256
44257         Avoid trigraph quoting in default output.
44258         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
44259         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
44260         unless explicitly requested.
44261         * tests/test-quotearg.c (flag_results, main): Add additional tests.
44262
44263 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
44264
44265         Don't rely on signed integer overflowing to negative value.
44266         * lib/getugroups.c (getugroups): Include <limits.h>.
44267         Instead, compare against INT_MAX, and increment only if the test passes.
44268
44269 2008-02-13  Jim Meyering  <meyering@redhat.com>
44270         and Eric Blake  <ebb9@byu.net>
44271
44272         Avoid shadowing warning and compile errors on Linux.
44273         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
44274         forwarding macros on Linux.
44275         (dcgettext): Define a stub, for Linux.
44276         (results_g, main): Avoid warnings.
44277
44278 2008-02-12  Eric Blake  <ebb9@byu.net>
44279
44280         Silence warning in last patch.
44281         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
44282
44283         Quotearg part 4: add tests, fix c-maybe colon quoting.
44284         * lib/quotearg.h: Improve documentation.
44285         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
44286         escapes when adding outer quotes.  When quoting trigraphs, use
44287         valid C notation.  When quoting NUL, omit extra characters if next
44288         character is not digit.  Alter prototype.
44289         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
44290         callers.
44291         * modules/quotearg-tests: New module.
44292         * tests/test-quotearg.c: New test.
44293
44294 2008-02-07  Eric Blake  <ebb9@byu.net>
44295
44296         Quotearg part 3: add flag to control outer quote elision.
44297         * lib/quotearg.h (c_maybe_quoting_style): New style.
44298         (enum quoting_flags): Better documentation of flags.
44299         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
44300         c-maybe style.
44301         (quotearg_buffer_restyled): Handle new flag to elide outer
44302         quotes.
44303
44304         Quotearg part 2: add flag that can control NUL elision.
44305         * lib/quotearg.h (set_quoting_flags): New prototype.
44306         * lib/quotearg.c (struct quoting_options): Add flag field.
44307         (set_quoting_flags): New function.
44308         (quotearg_buffer_restyled): Add flags parameter.
44309         (quotearg_alloc_mem): Set the flag if length cannot be returned.
44310         (quotearg_n_options): Set the flag, since length cannot be
44311         returned.
44312         (quoting_options_from_style): Default flags correctly.
44313
44314         Quotearg part 1: more wrappers, restore quotearg_char state.
44315         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
44316         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
44317         (quotearg_colon_mem): New wrappers.
44318         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
44319         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
44320         functions.
44321         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
44322         (quotearg_colon_mem): New functions.
44323
44324 2008-02-11  Bruno Haible  <bruno@clisp.org>
44325
44326         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
44327         library in the current directory: it does not work with parallel make.
44328         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44329
44330 2008-02-11  Bruno Haible  <bruno@clisp.org>
44331
44332         * .gitattributes: New file.
44333
44334 2008-02-11  Jim Meyering  <meyering@redhat.com>
44335
44336         useless-if-before-free: Fix reversed exit values.
44337         * build-aux/useless-if-before-free: Use correct values
44338         for EXIT_MATCH and EXIT_NO_MATCH.
44339
44340         * build-aux/useless-if-before-free: Close stdout carefully.
44341
44342 2008-02-10  Bruno Haible  <bruno@clisp.org>
44343
44344         New module 'git-merge-changelog'.
44345         * modules/git-merge-changelog: New file.
44346         * lib/git-merge-changelog.c: New file.
44347
44348 2008-02-10  Jim Meyering  <meyering@redhat.com>
44349
44350         useless-if-before-free: New option: --list (-l).
44351
44352         useless-if-before-free: Don't exit immediately upon open failure.
44353         * build-aux/useless-if-before-free: Exit 2 for errors.
44354         Upon failure to open a file, don't exit immediately.
44355         Rather, just warn and continue with any remaining files.
44356
44357 2008-02-10  Bruno Haible  <bruno@clisp.org>
44358
44359         New abstract list operation 'node_set_value'.
44360         * lib/gl_list.h (gl_list_node_set_value): New function.
44361         (struct gl_list_implementation): New field node_set_value.
44362         * lib/gl_list.c (gl_list_node_set_value): New function.
44363         * lib/gl_array_list.c (gl_array_node_set_value): New function.
44364         (gl_array_list_implementation): Update.
44365         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
44366         (gl_carray_list_implementation): Update.
44367         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
44368         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
44369         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
44370         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
44371         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
44372         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
44373         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
44374         Update.
44375         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
44376         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
44377         (gl_sublist_list_implementation): Update.
44378
44379 2008-02-10  Bruno Haible  <bruno@clisp.org>
44380
44381         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
44382         Needed when ELEMENT is #defined to 'some_type *'.
44383
44384 2008-02-10  Jim Meyering  <meyering@redhat.com>
44385
44386         New script and module: useless-if-before-free
44387         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
44388         * build-aux/useless-if-before-free: New file.
44389         * modules/useless-if-before-free: New file.
44390
44391         * build-aux/gitlog-to-changelog: Use committer date, not author date.
44392
44393         xstrtol_error: Fix typo.
44394         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
44395         s/exit_failure/exit_status/.
44396
44397 2008-02-09  Jim Meyering  <meyering@redhat.com>
44398
44399         New script and module: gitlog-to-changelog
44400         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
44401         * modules/gitlog-to-changelog: New file.
44402         * build-aux/gitlog-to-changelog: New file.
44403
44404 2008-02-08  Jim Meyering  <meyering@redhat.com>
44405
44406         Avoid two "parameter unused" warnings.
44407         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
44408         Mark "st" as used.
44409
44410         Use "git COMMAND", not "git-COMMAND".
44411         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
44412         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
44413         * build-aux/git-version-gen: Use "git status", not "git-status".
44414
44415 2008-02-07  Bruno Haible  <bruno@clisp.org>
44416
44417         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
44418         Avoids a crash on Windows Vista.
44419         Reported by Adam Strzelecki <ono@java.pl> via
44420         Simon Josefsson <simon@josefsson.org>.
44421
44422 2008-02-06  Bruno Haible  <bruno@clisp.org>
44423
44424         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
44425         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
44426         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
44427         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
44428         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44429         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44430         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
44431         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
44432         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44433         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44434         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44435         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44436         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44437         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44438         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44439         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
44440         left-adjust flag.
44441         * tests/test-snprintf-posix.h (test_function): Likewise.
44442         * tests/test-sprintf-posix.h (test_function): Likewise.
44443         * tests/test-vasprintf-posix.c (test_function): Likewise.
44444         * doc/posix-functions/fprintf.texi: Update.
44445         * doc/posix-functions/printf.texi: Update.
44446         * doc/posix-functions/snprintf.texi: Update.
44447         * doc/posix-functions/sprintf.texi: Update.
44448         * doc/posix-functions/vfprintf.texi: Update.
44449         * doc/posix-functions/vprintf.texi: Update.
44450         * doc/posix-functions/vsnprintf.texi: Update.
44451         * doc/posix-functions/vsprintf.texi: Update.
44452         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44453
44454 2008-02-06  Bruno Haible  <bruno@clisp.org>
44455
44456         Fix bug introduced on 2008-01-26.
44457         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
44458
44459 2008-02-06  Bruno Haible  <bruno@clisp.org>
44460
44461         Fix bug introduced on 2007-06-10.
44462         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
44463         !NEED_PRINTF_FLAG_ZERO.
44464
44465 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
44466
44467         getloadavg: use libperfstat on AIX5
44468         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
44469
44470 2008-02-03  Bruno Haible  <bruno@clisp.org>
44471
44472         * lib/diffseq.h: Add comments about required #includes.
44473         Reported by Michael Biggs <gnulib@doubleplum.net>.
44474
44475 2008-02-01  Bruno Haible  <bruno@clisp.org>
44476
44477         * users.txt: Add gnuit.
44478
44479 2008-01-31  Bruno Haible  <bruno@clisp.org>
44480
44481         * lib/md4.c (set_uint32): Mark as inline.
44482         * lib/md5.c (set_uint32): Likewise.
44483         * lib/sha1.c (set_uint32): Likewise.
44484         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
44485         * m4/md5.m4 (gl_MD5): Likewise.
44486         * m4/sha1.m4 (gl_SHA1): Likewise.
44487
44488 2008-01-31  Jim Meyering  <meyering@redhat.com>
44489
44490         Use "sizeof VAR", rather than a literal "4".
44491         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
44492         * lib/md4.c (md4_read_ctx): Likewise.
44493         * lib/sha1.c (sha1_read_ctx): Likewise.
44494
44495 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44496
44497         * tests/test-sha1.c: New file, based on test-md5.c.
44498
44499         * modules/crypto/sha1-tests: New file.
44500
44501 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44502
44503         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
44504
44505 2008-01-31  Jim Meyering  <meyering@redhat.com>
44506
44507         Prefer "sizeof v" over the equivalent "4".
44508         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
44509         * lib/md5.c (set_uint32): Likewise.
44510         * lib/sha1.c (set_uint32): Likewise.
44511
44512 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44513
44514         * lib/sha1.c (set_uint32): Mark function as static.
44515
44516 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44517
44518         md2: clarify comments to say that alignment is not required.
44519         * lib/md2.h: Remove warning about alignment in comment.
44520         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
44521         never been required.
44522
44523 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44524
44525         md4: adapt alignment constraint fix from sha1.
44526         * lib/md4.c (set_uint32): New function, from sha1.c
44527         (md4_read_ctx): Use it.
44528         (md4_finish_ctx): Doc fix.
44529         * lib/md4.h: Doc fix.
44530
44531 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44532
44533         md5: adapt alignment constraint fix from sha1.
44534         * lib/md5.c (set_uint32): New function, from sha1.c
44535         (md5_read_ctx): Use it.
44536         (md5_finish_ctx): Doc fix.
44537         * lib/md5.h: Doc fix.
44538
44539 2008-01-30  Peter Palfrader  <weasel@debian.org>
44540
44541         sha1: remove the result buffer alignment constraint
44542         * lib/sha1.c (set_uint32): New function.
44543         (sha1_read_ctx): Rewrite to remove the result buffer alignment
44544         constraint.
44545         (sha1_finish_ctx): Remove comment warning about alignment constraint.
44546         * lib/sha1.h: Likewise.
44547
44548 2008-01-30  Andreas Schwab  <schwab@suse.de>
44549             Bruno Haible  <bruno@clisp.org>
44550
44551         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
44552         correct definition of LDBL_MIN_EXP.
44553
44554 2008-01-30  Karl Berry  <karl@gnu.org>
44555
44556         * config/srclist-update: try to preserve x bit on updates.
44557         * config/srclistvars.sh: update for karl.
44558
44559 2008-01-29  Jim Meyering  <meyering@redhat.com>
44560
44561         vasnprintf.c: Avoid warning about unused label
44562         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
44563         "overflow" label definition and associated code with the
44564         same cpp condition that guards the sole use of that label.
44565
44566 2008-01-26  Bruno Haible  <bruno@clisp.org>
44567
44568         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
44569         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
44570         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
44571         * lib/isnanl-nolibm.h (isnanl): Likewise.
44572         Reported by Paul Eggert <eggert@cs.ucla.edu>.
44573
44574 2008-01-26  Bruno Haible  <bruno@clisp.org>
44575
44576         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
44577         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
44578
44579 2008-01-26  Bruno Haible  <bruno@clisp.org>
44580
44581         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
44582         GCC >= 4.0 built-in.
44583         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
44584
44585 2008-01-26  Bruno Haible  <bruno@clisp.org>
44586
44587         Rename isnan, applicable to 'double' only, to isnand.
44588         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
44589         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
44590         (configure.ac): Update.
44591         (Include): Replace "isnan.h" with "isnand.h".
44592         * m4/isnand.m4: Renamed from m4/isnan.m4.
44593         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
44594         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
44595         instead of isnan.c.
44596         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
44597         instead of HAVE_ISNAN_IN_LIBC.
44598         (isnand): Renamed from isnan.
44599         * lib/isnand.c: New file.
44600         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
44601         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
44602         (Makefile.am): Update.
44603         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
44604         Include isnand.h instead of isnan.h.
44605         (main): Test isnand instead of isnan.
44606         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
44607         isnan-nolibm.
44608         * modules/frexp (Depends-on): Likewise.
44609         * modules/frexp-tests (Depends-on): Likewise.
44610         * modules/frexp-nolibm (Depends-on): Likewise.
44611         * modules/frexp-nolibm-tests (Depends-on): Likewise.
44612         * modules/isfinite (Depends-on): Likewise.
44613         * modules/round-tests (Depends-on): Likewise.
44614         * modules/signbit (Depends-on): Likewise.
44615         * modules/signbit-tests (Depends-on): Likewise.
44616         * modules/snprintf-posix (Depends-on): Likewise.
44617         * modules/sprintf-posix (Depends-on): Likewise.
44618         * modules/trunc-tests (Depends-on): Likewise.
44619         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44620         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44621         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44622         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44623         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44624         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44625         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44626         * modules/vasnprintf-posix (Depends-on): Likewise.
44627         * modules/vasprintf-posix (Depends-on): Likewise.
44628         * modules/vfprintf-posix (Depends-on): Likewise.
44629         * modules/vsnprintf-posix (Depends-on): Likewise.
44630         * modules/vsprintf-posix (Depends-on): Likewise.
44631         * lib/frexp.c: Include isnand.h instead of isnan.h.
44632         (ISNAN): Set to isnand instead of isnan.
44633         * lib/isfinite.c: Include isnand.h instead of isnan.h.
44634         (gl_isfinited): Use isnand instead of isnan.
44635         * lib/signbitd.c: Include isnand.h instead of isnan.h.
44636         (gl_signbitd): Use isnand instead of isnan.
44637         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
44638         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
44639         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
44640         (main): Use isnand instead of isnan.
44641         * tests/test-round1.c: Include isnand.h.
44642         (main): Use isnand instead of isnan.
44643         * tests/test-round2.c: Include isnand.h instead of isnan.h.
44644         (ISNAN): Set to isnand instead of isnan.
44645         * tests/test-trunc1.c: Include isnand.h.
44646         (main): Use isnand instead of isnan.
44647         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
44648         (equal): Use isnand instead of isnan.
44649         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
44650         isnand-nolibm.
44651         * NEWS: Mention the change.
44652
44653 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
44654             Bruno Haible  <bruno@clisp.org>
44655
44656         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
44657         the GCC builtins for signbits are present and set
44658         REPLACE_SIGNBIT_USING_GCC if so.
44659         * lib/math.in.h (signbit): Define using GCC builtins if
44660         REPLACE_SIGNBIT_USING_GCC is set.
44661         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
44662         REPLACE_SIGNBIT_USING_GCC.
44663         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
44664
44665 2008-01-25  Jim Meyering  <meyering@redhat.com>
44666
44667         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
44668         * lib/poll.c: Include <config.h>, not "config.h".
44669         * tests/test-getaddrinfo.c: Likewise.
44670
44671 2008-01-25  Simon Josefsson  <simon@josefsson.org>
44672
44673         * modules/sockets-tests: New file.
44674
44675 2008-01-24  Simon Josefsson  <simon@josefsson.org>
44676
44677         * modules/sockets: New module, can be used to call WSA_Startup and
44678         WSA_Cleanup when needed.
44679
44680         * lib/sockets.h, lib/sockets.c: New files.
44681
44682         * m4/sockets.m4: New file.
44683
44684         * tests/test-sockets.c: New file.
44685
44686 2008-01-19  Bruno Haible  <bruno@clisp.org>
44687
44688         * doc/posix-headers: Renamed from doc/headers.
44689         * doc/posix-functions: Renamed from doc/functions.
44690         * doc/gnulib.texi: Update.
44691
44692 2008-01-19  Bruno Haible  <bruno@clisp.org>
44693
44694         * doc/glibc-functions/strcasestr.texi: Include contents of
44695         doc/functions/strcasestr.texi, fixing the list of platforms.
44696         * doc/functions/strcasestr.texi: Remove file.
44697
44698 2008-01-19  Bruno Haible  <bruno@clisp.org>
44699
44700         * doc/glibc-functions/memmem.texi: Include contents of
44701         doc/functions/memmem.texi.
44702         * doc/functions/memmem.texi: Remove file.
44703
44704 2008-01-18  Bruno Haible  <bruno@clisp.org>
44705
44706         * doc/glibc-functions/*.texi: New files.
44707         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
44708         to use the new files.
44709
44710 2008-01-17  Bruno Haible  <bruno@clisp.org>
44711
44712         * tests/test-gethostname.c (main): Fix printf statement.
44713
44714 2008-01-17  Simon Josefsson  <simon@josefsson.org>
44715
44716         * modules/gethostname-tests: New file.
44717
44718         * tests/test-gethostname.c: New file.
44719
44720 2008-01-17  Simon Josefsson  <simon@josefsson.org>
44721
44722         * lib/gethostname.c: Include string.h unconditionally, strncpy is
44723         used by the UNAME case.  Reported by Bruno Haible
44724         <bruno@clisp.org>.
44725
44726 2008-01-17  Eric Blake  <ebb9@byu.net>
44727
44728         Convert c-strcasestr to be more efficient.
44729         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
44730         (Depends-on): Add c-strcase, remove malloca, strnlen.
44731         * tests/test-c-strcasestr.c (main): Enhance test.
44732         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
44733
44734 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44735
44736         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
44737         Use it in creating po/Makevars.
44738
44739 2008-01-15  Simon Josefsson  <simon@josefsson.org>
44740
44741         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
44742         Applications that requires it should initialize libgcrypt
44743         manually.
44744
44745 2008-01-16  Simon Josefsson  <simon@josefsson.org>
44746
44747         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
44748
44749 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
44750
44751         Fix problem with getdate on mingw32 reported by Simon Josefsson
44752         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
44753         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
44754         tzname", when deciding whether to declare tzname.
44755         * lib/strftime.c (tzname): Likewise.
44756
44757 2008-01-15  Bruno Haible  <bruno@clisp.org>
44758
44759         Work around a MacOS X 10.5 bug in frexpl().
44760         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
44761         * doc/functions/frexpl.texi: Document the bug.
44762         Reported by Elias Pipping <pipping@gentoo.org>.
44763
44764 2008-01-14  Eric Blake  <ebb9@byu.net>
44765
44766         Touch up previous patch.
44767         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
44768         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
44769
44770         Convert strcasestr module to use Two-Way algorithm.
44771         * modules/strcasestr-simple: New module, based on the old
44772         strcasestr, but with Two-Way rather than KMP.
44773         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
44774         * lib/string.in.h (rpl_strcasestr): Declare.
44775         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
44776         performance.
44777         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
44778         * modules/string (Makefile.am): Support strcasestr.
44779         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44780         * modules/strcasestr-tests (Depends-on): Check for alarm.
44781         * tests/test-strcasestr.c: Augment test.
44782         * lib/str-two-way.h: Clean up stray macro.
44783         * NEWS: Document new module.
44784         * MODULES.html.sh (string handling): Likewise.
44785         * doc/functions/strcasestr.texi: New file.
44786         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
44787         here, since it is not a POSIX function.
44788
44789 2008-01-14  Colin Watson  <cjwatson@debian.org>
44790             Bruno Haible  <bruno@clisp.org>
44791
44792         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
44793         works fine; if not, set REPLACE_STRSIGNAL.
44794         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
44795         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44796         REPLACE_STRSIGNAL.
44797         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
44798         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
44799         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
44800
44801 2008-01-14  Bruno Haible  <bruno@clisp.org>
44802
44803         * modules/strsignal (Include): Change to <string.h>.
44804
44805 2008-01-14  Colin Watson  <cjwatson@debian.org>
44806
44807         * modules/argp (Notice): Add a notice recommending to change
44808         XGETTEXT_OPTIONS.
44809         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
44810
44811 2008-01-13  Colin Watson  <cjwatson@debian.org>
44812
44813         * modules/strsignal-tests: New file.
44814         * tests/test-strsignal.c: New file.
44815
44816         * lib/strsignal.c: New file, from glibc with modifications.
44817         * lib/siglist.h: New file, from glibc with modifications.
44818         * lib/string.in.h (strsignal): New declaration.
44819         * m4/strsignal.m4: New file.
44820         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44821         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
44822         * modules/strsignal: New file.
44823         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
44824         HAVE_DECL_STRSIGNAL.
44825
44826 2008-01-13  Bruno Haible  <bruno@clisp.org>
44827
44828         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
44829         locale encoding is not ASCII. Needed for OpenBSD 4.0.
44830         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44831         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44832
44833 2008-01-13  Bruno Haible  <bruno@clisp.org>
44834
44835         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
44836         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
44837         * lib/argp.h (__attribute__): Likewise.
44838         * lib/c-stack.c (__attribute__): Likewise.
44839         * lib/error.h (__attribute__): Likewise.
44840         * lib/fts.c (__attribute__): Likewise.
44841         * lib/openat.h (__attribute__): Likewise.
44842         * lib/stdio.in.h (__attribute__): Likewise.
44843         * lib/string.in.h (__attribute__): Likewise.
44844         * lib/utimens.c (__attribute__): Likewise.
44845         * lib/vasnprintf.h (__attribute__): Likewise.
44846         * lib/xalloc.h (__attribute__): Likewise.
44847         * lib/xprintf.h (__attribute__): Likewise.
44848         * lib/xstrtol.h (__attribute__): Likewise.
44849         * lib/xvasprintf.h (__attribute__): Likewise.
44850
44851 2008-01-12  Bruno Haible  <bruno@clisp.org>
44852
44853         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
44854         * doc/glibc-headers/a.out.texi: New file.
44855         * doc/glibc-headers/aliases.texi: New file.
44856         * doc/glibc-headers/alloca.texi: New file.
44857         * doc/glibc-headers/ar.texi: New file.
44858         * doc/glibc-headers/argp.texi: New file.
44859         * doc/glibc-headers/argz.texi: New file.
44860         * doc/glibc-headers/byteswap.texi: New file.
44861         * doc/glibc-headers/crypt.texi: New file.
44862         * doc/glibc-headers/endian.texi: New file.
44863         * doc/glibc-headers/envz.texi: New file.
44864         * doc/glibc-headers/err.texi: New file.
44865         * doc/glibc-headers/error.texi: New file.
44866         * doc/glibc-headers/execinfo.texi: New file.
44867         * doc/glibc-headers/fpu_control.texi: New file.
44868         * doc/glibc-headers/fstab.texi: New file.
44869         * doc/glibc-headers/fts.texi: New file.
44870         * doc/glibc-headers/getopt.texi: New file.
44871         * doc/glibc-headers/ieee754.texi: New file.
44872         * doc/glibc-headers/ifaddrs.texi: New file.
44873         * doc/glibc-headers/libintl.texi: New file.
44874         * doc/glibc-headers/mcheck.texi: New file.
44875         * doc/glibc-headers/mntent.texi: New file.
44876         * doc/glibc-headers/obstack.texi: New file.
44877         * doc/glibc-headers/paths.texi: New file.
44878         * doc/glibc-headers/printf.texi: New file.
44879         * doc/glibc-headers/pty.texi: New file.
44880         * doc/glibc-headers/resolv.texi: New file.
44881         * doc/glibc-headers/shadow.texi: New file.
44882         * doc/glibc-headers/sysexits.texi: New file.
44883         * doc/glibc-headers/ttyent.texi: New file.
44884
44885 2008-01-12  Jim Meyering  <meyering@redhat.com>
44886
44887         announce-gen: emit Gnulib's git-based version string.
44888         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
44889         New option --gnulib-version=V, where V is expected to be
44890         the output of running git describe in the gnulib directory.
44891         (get_tool_versions): Request feedback on xdelta.  I suspect it's
44892         not useful, and plan to stop publishing an xdelta file with each
44893         coreutils release.
44894
44895         * build-aux/announce-gen: Also check for lzma-compressed files.
44896
44897 2008-01-11  Bruno Haible  <bruno@clisp.org>
44898
44899         * tests/test-memmem.c (main): Increase maximum allowed time.
44900         * tests/test-strstr.c (main): Likewise.
44901
44902 2008-01-11  Bruno Haible  <bruno@clisp.org>
44903
44904         * doc/functions/memmem.texi: Add more precisions about platforms.
44905         * doc/functions/strstr.texi: Likewise.
44906
44907 2008-01-10  Eric Blake  <ebb9@byu.net>
44908
44909         * m4/strstr.m4: Delete cruft from copy-n-paste.
44910         Reported by Bruno Haible.
44911
44912 2008-01-10  Bruno Haible  <bruno@clisp.org>
44913
44914         Make c-strstr rely on strstr.
44915         * lib/c-strstr.c: Don't include str-kmp.h.
44916         (c_strstr): Define in terms of strstr.
44917         * modules/c-strstr (Files): Remove lib/str-kmp.h.
44918         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
44919
44920 2008-01-10  Bruno Haible  <bruno@clisp.org>
44921
44922         * doc/gnulib.texi (String Functions in C Locale): New section.
44923         * doc/c-ctype.texi: New file.
44924         * doc/c-strcase.texi: New file.
44925         * doc/c-strcaseeq.texi: New file.
44926         * doc/c-strcasestr.texi: New file.
44927         * doc/c-strstr.texi: New file.
44928         * doc/c-strtod.texi: New file.
44929         * doc/c-strtold.texi: New file.
44930
44931 2008-01-10  Eric Blake  <ebb9@byu.net>
44932
44933         * lib/relocatable.h: Fix a comment.
44934
44935 2008-01-10  Eric Blake  <ebb9@byu.net>
44936
44937         Share two-way algorithm.
44938         * lib/str-two-way.h: New file, merged from...
44939         * lib/memmem.c: ...here...
44940         * lib/strstr.c: ...and here.
44941         * modules/memmem (Files): Use it.
44942         * modules/strstr (Files): Likewise.
44943
44944         Avoid quadratic strstr implementations.
44945         * lib/strstr.c: New file.
44946         * m4/strstr.m4: Likewise.
44947         * modules/strstr: Likewise.
44948         * modules/strstr-tests: Likewise.
44949         * tests/test-strstr.c: Likewise.
44950         * lib/string.in.h (rpl_strstr): Declare.
44951         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
44952         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
44953         * modules/string (Makefile.am): Likewise.
44954         * MODULES.html.sh (string handling): Mention new module.
44955         * doc/functions/strstr.texi (strstr): Document the bug.
44956
44957 2008-01-10  Bruno Haible  <bruno@clisp.org>
44958
44959         * lib/relocatable.h (relocate): State whether result is freshly
44960         allocated or not.
44961         * lib/relocatable.c (relocate): Return a freshly allocated string
44962         instead of a pointer to a privately held string.
44963         Reported by Sylvain Beucler <beuc@gnu.org>.
44964
44965 2008-01-10  Colin Watson  <cjwatson@debian.org>
44966
44967         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
44968         s/S_ISNLK/S_ISLNK/.
44969
44970 2008-01-09  Bruno Haible  <bruno@clisp.org>
44971
44972         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
44973         and other files.
44974         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
44975         if it's only a guess.
44976         * modules/memmem: Simplify by depending on memmem-simple.
44977
44978 2008-01-09  Bruno Haible  <bruno@clisp.org>
44979
44980         Work around OpenBSD 4.0 tdelete() bug.
44981         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
44982         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
44983         macros and don't redefine the enum values.
44984         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
44985         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
44986         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
44987
44988 2008-01-09  Bruno Haible  <bruno@clisp.org>
44989
44990         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
44991         (main): Don't perform the tests if setlocale did not install a UTF-8
44992         locale. Needed on OpenBSD 4.0.
44993         * modules/wcwidth-tests (Depends-on): Add localcharset.
44994
44995 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44996
44997         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
44998         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
44999         * NEWS: announce this.
45000         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
45001
45002 2008-01-09  Simon Josefsson  <simon@josefsson.org>
45003         and Eric Blake  <ebb9@byu.net>
45004
45005         Add memmem-simple module.
45006         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
45007         (gl_FUNC_MEMMEM): Separate performance from presence checks.
45008         * modules/memmem-simple: New file.
45009         * modules/memmem (Description): Tweak.
45010         * MODULES.html.sh (string handling): Mention new module.
45011         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
45012         addressed by memmem-simple.
45013         * NEWS: Document the difference.
45014
45015 2008-01-09  Eric Blake  <ebb9@byu.net>
45016
45017         Give gcc some memmem optimization hints.
45018         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
45019         (strcasestr): Declare as pure.
45020         * modules/memmem (Maintainer): Claim my implementation.
45021
45022 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45023
45024         Support AIX 6.1 and higher.
45025         * build-aux/config.libpath: Likewise.
45026         * build-aux/config.rpath: Likewise.
45027
45028 2008-01-08  Jim Meyering  <meyering@redhat.com>
45029             Bruno Haible  <bruno@clisp.org>
45030
45031         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
45032         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
45033         Reported by Peter Fales in
45034         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
45035
45036 2008-01-08  Bruno Haible  <bruno@clisp.org>
45037
45038         * modules/unictype/category-of (Depends-on): Add
45039         unictype/category-none.
45040         * modules/unictype/category-and-tests (Depends-on): Add
45041         unictype/category-{L,N,Lu,Nd}.
45042         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
45043         * modules/unictype/category-or-tests (Depends-on): Add
45044         unictype/category-{L,N}.
45045         * modules/unictype/category-name-tests (Depends-on): Add
45046         unictype/category-{Z,Nl}.
45047         Reported by Simon Josefsson.
45048
45049 2008-01-08  Bruno Haible  <bruno@clisp.org>
45050
45051         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
45052         convention better.
45053         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
45054         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
45055         Reported by Peter Miller <millerp@canb.auug.org.au>.
45056
45057 2008-01-08  Eric Blake  <ebb9@byu.net>
45058
45059         Rewrite memmem to guarantee linear complexity without malloc.
45060         * lib/memmem.c (memmem): Use Two-Way rather than
45061         Knuth-Morris-Pratt, to allow O(1) space usage.
45062         (critical_factorization, two_way_short_needle)
45063         (two_way_long_needle): New functions.
45064         (knuth_morris_pratt): Delete.
45065         * modules/memmem (Depends-on): No longer need malloca or stdbool.
45066         Add stdint.
45067         * tests/test-memmem.c (main): Add tests for periodic needle and
45068         sublinear performance.
45069         * doc/functions/memmem.texi (memmem): Document other deficiencies
45070         in cygwin and older glibc.
45071
45072 2008-01-08  Bruno Haible  <bruno@clisp.org>
45073
45074         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
45075         augmentation.
45076
45077 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
45078
45079         Add a configure time option: --disable-acl.
45080         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
45081         AC_ARG_ENABLE(acl).
45082
45083 2008-01-06  Simon Josefsson  <simon@josefsson.org>
45084
45085         * tests/test-localename.c: Don't include obsolete "setenv.h".
45086
45087         * modules/localename-tests (Depends-on): Need unsetenv.
45088
45089 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45090
45091         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
45092
45093 2008-01-06  Colin Watson  <cjwatson@debian.org>
45094
45095         * users.txt: Add man-db.
45096
45097 2008-01-07  Bruno Haible  <bruno@clisp.org>
45098
45099         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
45100         previous section name.
45101
45102 2008-01-07  Bruno Haible  <bruno@clisp.org>
45103
45104         * lib/progname.c (set_program_name): Don't strip off a leading
45105         "lt-" prefix outside a .libs directory.
45106         Suggested by Paul Eggert.
45107
45108 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
45109             Bruno Haible  <bruno@clisp.org>
45110
45111         Improve memory cleanup in 'relocatable' module.
45112         * lib/relocatable.h (compute_curr_prefix): Change return type to
45113         'char *'.
45114         * lib/relocatable.c (compute_curr_prefix): Change return type to
45115         'char *'. Free curr_installdir after use.
45116         (relocate): Free curr_prefix_better after use.
45117         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
45118
45119 2008-01-01  Bruno Haible  <bruno@clisp.org>
45120
45121         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
45122         failure on older glibc systems.
45123         Reported by Peter Fales <psfales@alcatel-lucent.com>.
45124
45125 2008-01-05  Eric Blake  <ebb9@byu.net>
45126
45127         Avoid quadratic system memmem.
45128         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
45129         Reported by Ralf Wildenhues.
45130
45131         Fix memmem test for mingw.
45132         * modules/memmem-tests (configure.ac): Check for alarm.
45133         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
45134         it.
45135         * doc/functions/memmem.texi: New file.
45136         * doc/gnulib.texi (Function Substitutes): Add memmem.
45137         Reported by Bruno Haible.
45138
45139 2008-01-04  Bruno Haible  <bruno@clisp.org>
45140
45141         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
45142         Require gl_HEADER_STRINGS_H_DEFAULTS, not
45143         gl_HEADER_STRING_H_DEFAULTS.
45144
45145 2008-01-04  Eric Blake  <ebb9@byu.net>
45146
45147         Shorten duration of memmem test.
45148         * tests/test-memmem.c (main): Use alarm to declare failure if test
45149         is taking too long.
45150         Reported by Ralf Wildenhues.
45151
45152 2007-12-21  Simon Josefsson  <simon@josefsson.org>
45153
45154         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
45155         string, needed by strerror.
45156
45157 2008-01-03  Colin Watson  <cjwatson@debian.org>
45158             Bruno Haible  <bruno@clisp.org>
45159
45160         * doc/gnulib-tool.texi (Localization): New section.
45161
45162 2008-01-02  Bruno Haible  <bruno@clisp.org>
45163
45164         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
45165         variables to 'unsigned char *' type.
45166         Reported by Paul Eggert.
45167
45168 2008-01-02  Jim Meyering  <jim@meyering.net>
45169
45170         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
45171
45172 2007-12-31  Jim Meyering  <jim@meyering.net>
45173
45174         Avoid use of private FTS type name.
45175         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
45176
45177 2007-12-30  Karl Berry  <karl@gnu.org>
45178
45179         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
45180         work around defect in Texinfo and/or the standalone Info browser.
45181
45182 2007-12-30  Bruno Haible  <bruno@clisp.org>
45183
45184         Unify 5 copies of the KMP code.
45185         * lib/str-kmp.h: New file.
45186         * lib/c-strcasestr.c: Include str-kmp.h.
45187         (knuth_morris_pratt): Remove function.
45188         (c_strcasestr): Update.
45189         * lib/c-strstr.c: Include str-kmp.h.
45190         (knuth_morris_pratt): Remove function.
45191         (c_strcasestr): Update.
45192         * lib/mbscasestr.c: Include str-kmp.h.
45193         (knuth_morris_pratt_unibyte): Remove function.
45194         * lib/mbsstr.c: Include str-kmp.h.
45195         (knuth_morris_pratt_unibyte): Remove function.
45196         * lib/strcasestr.c: Include str-kmp.h.
45197         (knuth_morris_pratt): Remove function.
45198         (strcasestr): Update.
45199         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
45200         * modules/c-strstr (Files): Likewise.
45201         * modules/mbscasestr (Files): Likewise.
45202         * modules/mbsstr (Files): Likewise.
45203         * modules/strcasestr (Files): Likewise.
45204         Suggested by Paul Eggert.
45205
45206 2007-12-30  Bruno Haible  <bruno@clisp.org>
45207
45208         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
45209         defined.
45210
45211 2007-12-30  Bruno Haible  <bruno@clisp.org>
45212
45213         * lib/xmalloca.h: Include xalloc.h.
45214         (xnmalloca): New macro.
45215
45216 2007-12-30  Bruno Haible  <bruno@clisp.org>
45217
45218         * lib/malloca.h (nmalloca): New macro.
45219         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
45220         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
45221         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
45222         knuth_morris_pratt_multibyte): Likewise.
45223         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
45224         knuth_morris_pratt_multibyte): Likewise.
45225         * lib/memmem.c (knuth_morris_pratt): Likewise.
45226         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
45227
45228 2007-12-25  Bruno Haible  <bruno@clisp.org>
45229
45230         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
45231         * lib/glob.c: Don't include openat.h.
45232         (link_exists2_p): Add back the code that deals with the
45233         !GLOB_ALTDIRFUNC case.
45234         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
45235         let it do the filename concatenation.
45236         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
45237         * modules/glob (Depends-on): Remove openat.
45238
45239 2007-12-31  Bruno Haible  <bruno@clisp.org>
45240
45241         * modules/dirfd (License): Change to LGPLv2+.
45242         Approved by Jim Meyering.
45243
45244 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45245
45246         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
45247         when multiplying M by sizeof (size_t).
45248
45249 2007-12-10  Martin Lambers  <marlam@marlam.de>
45250
45251         Override getpagesize on mingw.
45252         * lib/getpagesize.c: New file.
45253         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
45254         * modules/getpagesize (Files): Add lib/getpagesize.c.
45255         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
45256         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45257         REPLACE_GETPAGESIZE.
45258         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
45259
45260 2007-12-25  Bruno Haible  <bruno@clisp.org>
45261
45262         * modules/localcharset (Notice): New field.
45263         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
45264         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
45265
45266 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45267             Bruno Haible  <bruno@clisp.org>
45268
45269         Avoid using the syntax symbol() in formatted documentation.
45270         * MODULES.html.sh (func_module): When replacing symbol() with a
45271         hyperlink, remove the parentheses. Show an error if some remain.
45272         Recognize and render the '...' syntax.
45273         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
45274         Rework. Add paragraph about GCC's inlining.
45275         * doc/alloca.texi: Likewise.
45276         * doc/error.texi: Remove parentheses from symbol reference.
45277         * doc/gnulib-intro.texi: Likewise.
45278         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
45279         * modules/fnmatch (Description): Reword to say "the ... function".
45280         * modules/full-read (Description): Likewise.
45281         * modules/full-write (Description): Likewise.
45282         * modules/safe-read (Description): Likewise.
45283         * modules/safe-write (Description): Likewise.
45284         * modules/strchrnul (Description): Likewise.
45285         * modules/trim (Description): Likewise.
45286         * modules/error (Description): Remove parentheses from symbol
45287         references.
45288         * modules/verror (Description): Likewise.
45289         Reported by Karl Berry.
45290
45291 2007-12-25  Bruno Haible  <bruno@clisp.org>
45292
45293         Fixup after 2007-10-16 commit.
45294         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
45295
45296 2007-12-24  Bruno Haible  <bruno@clisp.org>
45297
45298         Make --enable-relocatable work with DESTDIR.
45299         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
45300         to compute installdir from destprog.
45301         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
45302         also set the RELOC_DESTDIR variable.
45303         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45304
45305 2007-12-24  Bruno Haible  <bruno@clisp.org>
45306
45307         Fix link error due to xalloc_die().
45308         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
45309         of xreadlink.
45310         * lib/relocwrapper.c: Update comments.
45311         * build-aux/install-reloc: Remove xreadlink.c from file list.
45312         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
45313         xreadlink.c.
45314         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45315
45316 2007-12-24  Bruno Haible  <bruno@clisp.org>
45317
45318         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
45319         * lib/setenv.h: Remove file.
45320         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
45321         lib/setenv.h.
45322         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
45323         (Depends-on): Add stdlib.
45324         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
45325         gl_FUNC_UNSETENV.
45326         (Include): Replace setenv.h with <stdlib.h>.
45327         * modules/unsetenv: New file.
45328         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
45329         * lib/unsetenv.c: Include <stdlib.h> first.
45330         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
45331         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
45332         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
45333         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
45334         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
45335         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45336         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
45337         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45338         * doc/functions/unsetenv.texi: Update.
45339         * modules/xsetenv (Depends-on): Add unsetenv.
45340         * modules/getdate (Depends-on): Likewise.
45341         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
45342         * lib/xsetenv.c: Don't include setenv.h.
45343         * lib/getdate.y: Likewise.
45344         * lib/relocwrapper.c: Likewise.
45345         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
45346         (Depends-on): Add stdlib.
45347         * NEWS: Mention the changes.
45348         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45349
45350 2007-12-23  Bruno Haible  <bruno@clisp.org>
45351
45352         * lib/memmem.c (memmem): Use lowercase variable names. Tab
45353         indentation.
45354
45355 2007-12-23  Bruno Haible  <bruno@clisp.org>
45356
45357         * lib/c-strcasestr.c: Add more comments.
45358         * lib/c-strstr.c: Likewise.
45359         * lib/mbscasestr.c: Likewise.
45360         * lib/mbsstr.c: Likewise.
45361         * lib/strcasestr.c: Likewise.
45362         * lib/memmem.c: Likewise.
45363
45364 2007-12-23  Bruno Haible  <bruno@clisp.org>
45365
45366         * tests/test-memmem.c: Include <string.h> first.
45367
45368 2007-12-22  Bruno Haible  <bruno@clisp.org>
45369
45370         * gnulib-tool (func_create_testdir): Change $auxdir while generating
45371         the contents of $testsbase.
45372         Reported by Ralf Wildenhues.
45373
45374 2007-12-22  Bruno Haible  <bruno@clisp.org>
45375
45376         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
45377         two variables local_ldadd_before, local_ldadd_last.
45378
45379 2007-12-20  Eric Blake  <ebb9@byu.net>
45380
45381         Work around circular library issue when cross-compiling.
45382         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
45383         that progname.o does not need to pull in rpl_memcmp.
45384
45385 2007-12-19  Eric Blake  <ebb9@byu.net>
45386
45387         Fix memmem to avoid O(n^2) worst-case complexity.
45388         * lib/memmem.c (knuth_morris_pratt): New function.
45389         (memmem): Use it if first few naive iterations fail.
45390         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
45391         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
45392         * modules/memchr (License): Likewise.
45393         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
45394         malloca.
45395         * tests/test-memmem.c: Rewrite, borrowing ideas from
45396         test-mbsstr1.c; the old version wouldn't even compile!
45397         * modules/memmem-tests: New file.
45398         * lib/string.in.h (rpl_memmem): Add declaration.
45399         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
45400         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
45401         REPLACE_MEMMEM.
45402
45403 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45404
45405         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
45406         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
45407         before any system include files, and undef after them all.  This
45408         should fix a problem on VMS reported by John E. Malmberg in
45409         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
45410
45411 2007-12-17  Eric Blake  <ebb9@byu.net>
45412
45413         Revert addition of verify, for BSD/OS.
45414         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
45415         can't handle large files, for the sake of obsolete platforms.
45416         * modules/fseeko (Depends-on): Remove verify.
45417         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
45418         * doc/functions/ftello.texi (ftello): Likewise.
45419         * doc/functions/fgetpos.texi (fgetpos): Likewise.
45420         Reported by Larry Jones.
45421
45422 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
45423
45424         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
45425         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
45426
45427 2007-12-17  Jim Meyering  <meyering@redhat.com>
45428
45429         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
45430         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
45431         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
45432         * modules/getcwd (Depends-on): Add openat.
45433         Reported by Petr Salinger.
45434
45435 2007-12-17  Bruno Haible  <bruno@clisp.org>
45436
45437         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
45438         avoid a segmentation fault of the configure test on x86_64 systems.
45439
45440 2007-12-15  Jim Meyering  <meyering@redhat.com>
45441
45442         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
45443
45444 2007-12-13  Eric Blake  <ebb9@byu.net>
45445
45446         Another fseek test.
45447         * tests/test-fseek.c (main): Also test ungetc handling.
45448         * tests/test-fseeko.c (main): Likewise.
45449         * modules/fseeko (Depends-on): Add verify.
45450         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
45451         large.
45452         Reported by Larry Jones.
45453
45454         Fix fseeko on mingw.
45455         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
45456         seek.
45457
45458         Beef up fseek tests.
45459         * tests/test-fseek.c (main): Also test eof handling.
45460         * tests/test-fseeko.c (main): Likewise.
45461         Reported by Larry Jones.
45462
45463 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
45464
45465         Fix fseeko on BSD-based platforms.
45466         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
45467         successful seek.
45468
45469 2007-12-12  Eric Blake  <ebb9@byu.net>
45470
45471         Allow circular dependency of separate libtests.a
45472         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
45473         when use_libtests.
45474
45475 2007-12-11  Eric Blake  <ebb9@byu.net>
45476
45477         Fix bug with -0.0L in previous patch.
45478         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
45479         * tests/test-isnan.c (main): Also test on zeroes.
45480         * tests/test-isnanf.c (main): Likewise.
45481         * tests/test-isnanl.h (main): Likewise.
45482
45483         Detect pseudo-denormals on x86 even when cross-compiling.
45484         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
45485         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
45486         invalid bit patterns that happen to satisfy ==.
45487
45488         Avoid link failures with separate libtests.a.
45489         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
45490         last, to satisfy circular dependencies.
45491
45492 2007-12-11  Eric Blake  <ebb9@byu.net>
45493         and Bruno Haible  <bruno@clisp.org>
45494
45495         Fix OpenBSD 4.0 <float.h> handling of long double.
45496         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
45497         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
45498         * doc/headers/float.texi (float.h): Document OpenBSD bug.
45499
45500 2007-12-11  Jim Meyering  <meyering@redhat.com>
45501
45502         * users.txt: Add libvirt.
45503
45504         Support versions of autoconf prior to 2.59c.
45505         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
45506         if it is not already defined.
45507
45508 2007-12-09  Bruno Haible  <bruno@clisp.org>
45509
45510         Let 'gnulib-tool --import' collect sources needed for the tests in
45511         tests/ rather than in lib/.
45512         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
45513         argument. If true, add rules to generate libtests.a, and put libtests.a
45514         into $(LDADD). Consider source files in subdirectories and set
45515         uses_subdirs.
45516         (func_emit_initmacro_start, func_emit_initmacro_end,
45517         func_emit_initmacro_done): Pass all arguments explicitly.
45518         (func_import): Determine two module lists main_modules,
45519         testsrelated_modules. Determine use_libtests. Determine two variables
45520         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
45521         instead of just sed_transform_lib_file. Determine two variables
45522         main_files and testsrelated_files. Compute 'files' as the union of
45523         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
45524         func_add_or_update. In the generated gnulib-comp.m4, collect the
45525         object files for tests/ in different variables than those for lib/.
45526         Substitute LIBTESTS_LIBDEPS.
45527         (func_create_testdir): Combine the uses_subdirs results from
45528         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
45529
45530 2007-12-09  Bruno Haible  <bruno@clisp.org>
45531
45532         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
45533         the build-aux directory.
45534
45535 2007-12-09  Bruno Haible  <bruno@clisp.org>
45536
45537         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
45538         introduced on 2006-09-09.
45539
45540 2007-12-07  Jim Meyering  <meyering@redhat.com>
45541
45542         Let these macros work also with autoconf-2.59.
45543         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
45544         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
45545         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45546
45547 2007-12-06  Jim Meyering  <meyering@redhat.com>
45548
45549         Avoid a configure-time syntax error in gl_FUNC_ACL.
45550         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
45551         function in each branch, before testing the cache variable.
45552
45553 2007-12-04  Eric Blake  <ebb9@byu.net>
45554
45555         Make scripts executable.
45556         * build-aux/config.guess: Add execute permissions.
45557         * build-aux/config.sub: Likewise.
45558         * build-aux/gendocs.sh: Likewise.
45559
45560         Fix frexp on mingw.
45561         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
45562         cross-compiling.
45563         * doc/functions/frexp.texi (frexp): Document the bug.
45564
45565         Make cygwin fseeko check more reliable.
45566         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
45567         version numbers, rather than unrelated feature check.
45568         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
45569         * doc/functions/ftello.texi (ftello): Likewise.
45570         Reported by Bruno Haible.
45571
45572         * m4/strerror.m4: Bump version number.
45573
45574 2007-12-03  Bruno Haible  <bruno@clisp.org>
45575
45576         * doc/functions/mprotect.texi: Mention the mingw problem.
45577
45578 2007-12-03  Eric Blake  <ebb9@byu.net>
45579
45580         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
45581         REPLACE_STRERROR is initialized before this macro.
45582
45583 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45584
45585         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
45586         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
45587         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
45588         put -lsec in even for programs other than 'ls'.  This fixes a problem
45589         for gettext reported by Bruno Haible in
45590         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
45591         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
45592         Add support for Solaris 10.  This isn't efficient, but should get the
45593         job done for now.
45594
45595 2007-12-03  James Youngman  <jay@gnu.org>
45596
45597         * doc/regexprops-generic.texi: change "an close-group" to "a
45598         close-group" and "illegal" to "not allowed".
45599
45600 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45601
45602         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
45603         pr_byname.h. Needed for the rare case when the maintainer has done
45604         "make maintainer-clean" in the source directory and then attempts a
45605         build outside the source directory.
45606         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
45607         scripts_byname.h.
45608
45609 2007-12-02  Martin Lambers <marlam@marlam.de>
45610             Bruno Haible  <bruno@clisp.org>
45611
45612         * lib/getpagesize.h: Remove file.
45613         * lib/unistd.in.h: Include declaration of getpagesize here.
45614         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
45615         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
45616         HAVE_SYS_PARAM_H.
45617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
45618         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
45619         * modules/getpagesize (Files): Remove lib/getpagesize.h.
45620         (Depends-on): Add unistd.
45621         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45622         (Include): Use <unistd.h> instead of getpagesize.h.
45623         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
45624         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
45625         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
45626         gl_GETPAGESIZE invocation, already handled by module dependency.
45627         * lib/pagealign_alloc.c: Don't include getpagesize.h.
45628
45629 2007-12-02  Bruno Haible  <bruno@clisp.org>
45630
45631         * modules/strings-tests: New file.
45632         * tests/test-strings.c: New file.
45633
45634         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
45635         * lib/strings.in.h: New file.
45636         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
45637         * m4/strings_h.m4: New file.
45638         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
45639         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
45640         * modules/strings: New file.
45641         * modules/string (Makefile.am): Update.
45642         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
45643         Reported by Karl Berry.
45644
45645 2007-12-01  Eric Blake  <ebb9@byu.net>
45646
45647         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
45648         accomodate fix in cygwin 1.5.25.
45649
45650 2007-12-01  Jim Meyering  <meyering@redhat.com>
45651
45652         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
45653         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
45654         that would inhibit utf8-optimization of a regexp containing line-
45655         or buffer-anchors, e.g., `^', `$'.
45656
45657 2007-11-30  Bruno Haible  <bruno@clisp.org>
45658
45659         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
45660         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
45661         glthread_recursive_lock_init.
45662         * lib/lock.c (glthread_recursive_lock_init)
45663         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
45664         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45665
45666 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
45667
45668         New function qset_acl, like set_acl but with syscall semantics.
45669         * lib/acl.h (qset_acl): New decl.
45670         * lib/acl.c (qset_acl): New function.
45671         (set_acl): Use new function.  Use more-consistent diagnostics.
45672
45673 2007-11-28  Jim Meyering  <meyering@redhat.com>
45674
45675         * modules/physmem (License): Change from GPL to LGPLv2+.
45676
45677 2007-11-26  Bruno Haible  <bruno@clisp.org>
45678
45679         * lib/vasnprintf.c (decode_long_double): Don't abort if the
45680         'long double' type has excess precision.
45681         Reported by Jim Meyering in
45682         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
45683
45684 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45685
45686         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
45687         Sync from <http://gnu.org/licenses>.
45688         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
45689         with license text from same location.
45690         * doc/maintain.texi, doc/standards.texi:  Sync from
45691         <http://savannah.gnu.org/projects/gnustandards>.
45692
45693 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
45694         and Jim Meyering  <meyering@redhat.com>
45695
45696         Adjust getdate' grammar to accept a slightly more regular language.
45697         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
45698         Before, the former was rejected.
45699         * lib/getdate.y (digits_to_date_time): New function, factored
45700         out of ...
45701         (number): ...here.  Just call digits_to_date_time.
45702         (hybrid): New non-terminal to handle an <unsigned number,
45703         signed relative offset> sequence consistently.
45704
45705 2007-11-18  Jim Meyering  <meyering@redhat.com>
45706
45707         Pull my changes from coreutils:
45708         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
45709         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
45710         use of $gnulib_tool_option_extras, so that it's separated from the
45711         preceding argument.
45712
45713         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
45714         * build-aux/bootstrap (cp_mark_as_generated): Create any required
45715         parent destination directories before copying a file into place.
45716
45717 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
45718
45719         bootstrap: work also with 4-argument variant of AC_INIT
45720         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
45721
45722 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45723
45724         Port test-getaddrinfo to Solaris.
45725         Problem reported by Bruno Haible in
45726         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
45727         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
45728         explanation of setting 'hints'.
45729         Don't reject an implementation merely because it returns EAI_SERVICE.
45730         (EAI_SERVICE): Define to 0 if not defined.
45731
45732 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
45733
45734         The license of gnu-make and posix-shell is now "GPLed build tool".
45735         * modules/gnu-make (License): Likewise.
45736         * modules/posix-shell (License): Likewise.
45737
45738         New module posix-shell, for determining a POSIX shell
45739         or perhaps something that is close enough to a POSIX shell.
45740         * m4/posix-shell.m4: New file.
45741         * modules/posix-shell: New file.
45742
45743         * MODULES.html.sh: Mention new module.
45744
45745         New module gnu-make, for determining whether we're using GNU Make.
45746         * m4/gnu-make.m4: New file.
45747         * modules/gnu-make: New file.
45748         * MODULES.html.sh: Mention new module.
45749
45750 2007-11-14  Jim Meyering  <meyering@redhat.com>
45751
45752         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
45753         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
45754         use this macro to create a function _definition_.
45755         Remove useless "#undef ARGMATCH_DIE".
45756
45757 2007-11-14  Bruno Haible  <bruno@clisp.org>
45758
45759         * lib/config.charset: Update for OpenBSD 4.1.
45760         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
45761
45762 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
45763
45764         Document 64-bit #if problems in stdint.texi.
45765         * doc/headers/stdint.texi (stdint.h): Mention problems with
45766         64-bit-#if, and how to work around them.
45767
45768         Don't insist on 'long long int' support in the preprocessor.  It
45769         breaks too many things.  For example, PRIdMAX still uses a 'long
45770         long int' format with the latest Sun compiler, even though
45771         HAVE_LONG_LONG_INT isn't defined due to that compiler's
45772         preprocessor problem.  This causes the latest coreutils to dump
45773         core on Solaris 10 sparc with the Sun C compiler.
45774         Instead, fix the 2007-10-16 problem in a different way, by evaluating
45775         the troublesome expressions at configure-time, not at #if-time.
45776         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
45777         preprocessor.
45778         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
45779         compile-time C checks, done at 'configure'-time.
45780         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
45781         * modules/inttypes (Makefile): Substitute the new symbols that
45782         gl_INTTYPES_H now generates.
45783         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
45784
45785 2007-11-12  Bruno Haible  <bruno@clisp.org>
45786
45787         Tests for Unicode character classification functions.
45788
45789         * modules/unictype/bidicategory-byname-tests: New file.
45790         * modules/unictype/bidicategory-name-tests: New file.
45791         * modules/unictype/bidicategory-of-tests: New file.
45792         * modules/unictype/bidicategory-test-tests: New file.
45793         * modules/unictype/block-list-tests: New file.
45794         * modules/unictype/block-of-tests: New file.
45795         * modules/unictype/block-test-tests: New file.
45796         * modules/unictype/category-C-tests: New file.
45797         * modules/unictype/category-Cc-tests: New file.
45798         * modules/unictype/category-Cf-tests: New file.
45799         * modules/unictype/category-Cn-tests: New file.
45800         * modules/unictype/category-Co-tests: New file.
45801         * modules/unictype/category-Cs-tests: New file.
45802         * modules/unictype/category-L-tests: New file.
45803         * modules/unictype/category-Ll-tests: New file.
45804         * modules/unictype/category-Lm-tests: New file.
45805         * modules/unictype/category-Lo-tests: New file.
45806         * modules/unictype/category-Lt-tests: New file.
45807         * modules/unictype/category-Lu-tests: New file.
45808         * modules/unictype/category-M-tests: New file.
45809         * modules/unictype/category-Mc-tests: New file.
45810         * modules/unictype/category-Me-tests: New file.
45811         * modules/unictype/category-Mn-tests: New file.
45812         * modules/unictype/category-N-tests: New file.
45813         * modules/unictype/category-Nd-tests: New file.
45814         * modules/unictype/category-Nl-tests: New file.
45815         * modules/unictype/category-No-tests: New file.
45816         * modules/unictype/category-P-tests: New file.
45817         * modules/unictype/category-Pc-tests: New file.
45818         * modules/unictype/category-Pd-tests: New file.
45819         * modules/unictype/category-Pe-tests: New file.
45820         * modules/unictype/category-Pf-tests: New file.
45821         * modules/unictype/category-Pi-tests: New file.
45822         * modules/unictype/category-Po-tests: New file.
45823         * modules/unictype/category-Ps-tests: New file.
45824         * modules/unictype/category-S-tests: New file.
45825         * modules/unictype/category-Sc-tests: New file.
45826         * modules/unictype/category-Sk-tests: New file.
45827         * modules/unictype/category-Sm-tests: New file.
45828         * modules/unictype/category-So-tests: New file.
45829         * modules/unictype/category-Z-tests: New file.
45830         * modules/unictype/category-Zl-tests: New file.
45831         * modules/unictype/category-Zp-tests: New file.
45832         * modules/unictype/category-Zs-tests: New file.
45833         * modules/unictype/category-and-not-tests: New file.
45834         * modules/unictype/category-and-tests: New file.
45835         * modules/unictype/category-byname-tests: New file.
45836         * modules/unictype/category-name-tests: New file.
45837         * modules/unictype/category-none-tests: New file.
45838         * modules/unictype/category-of-tests: New file.
45839         * modules/unictype/category-or-tests: New file.
45840         * modules/unictype/category-test-withtable-tests: New file.
45841         * modules/unictype/combining-class-tests: New file.
45842         * modules/unictype/ctype-alnum-tests: New file.
45843         * modules/unictype/ctype-alpha-tests: New file.
45844         * modules/unictype/ctype-blank-tests: New file.
45845         * modules/unictype/ctype-cntrl-tests: New file.
45846         * modules/unictype/ctype-digit-tests: New file.
45847         * modules/unictype/ctype-graph-tests: New file.
45848         * modules/unictype/ctype-lower-tests: New file.
45849         * modules/unictype/ctype-print-tests: New file.
45850         * modules/unictype/ctype-punct-tests: New file.
45851         * modules/unictype/ctype-space-tests: New file.
45852         * modules/unictype/ctype-upper-tests: New file.
45853         * modules/unictype/ctype-xdigit-tests: New file.
45854         * modules/unictype/decimal-digit-tests: New file.
45855         * modules/unictype/digit-tests: New file.
45856         * modules/unictype/mirror-tests: New file.
45857         * modules/unictype/numeric-tests: New file.
45858         * modules/unictype/property-alphabetic-tests: New file.
45859         * modules/unictype/property-ascii-hex-digit-tests: New file.
45860         * modules/unictype/property-bidi-arabic-digit-tests: New file.
45861         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
45862         * modules/unictype/property-bidi-block-separator-tests: New file.
45863         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
45864         * modules/unictype/property-bidi-common-separator-tests: New file.
45865         * modules/unictype/property-bidi-control-tests: New file.
45866         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
45867         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
45868         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
45869         * modules/unictype/property-bidi-european-digit-tests: New file.
45870         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
45871         * modules/unictype/property-bidi-left-to-right-tests: New file.
45872         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
45873         * modules/unictype/property-bidi-other-neutral-tests: New file.
45874         * modules/unictype/property-bidi-pdf-tests: New file.
45875         * modules/unictype/property-bidi-segment-separator-tests: New file.
45876         * modules/unictype/property-bidi-whitespace-tests: New file.
45877         * modules/unictype/property-byname-tests: New file.
45878         * modules/unictype/property-combining-tests: New file.
45879         * modules/unictype/property-composite-tests: New file.
45880         * modules/unictype/property-currency-symbol-tests: New file.
45881         * modules/unictype/property-dash-tests: New file.
45882         * modules/unictype/property-decimal-digit-tests: New file.
45883         * modules/unictype/property-default-ignorable-code-point-tests: New file.
45884         * modules/unictype/property-deprecated-tests: New file.
45885         * modules/unictype/property-diacritic-tests: New file.
45886         * modules/unictype/property-extender-tests: New file.
45887         * modules/unictype/property-format-control-tests: New file.
45888         * modules/unictype/property-grapheme-base-tests: New file.
45889         * modules/unictype/property-grapheme-extend-tests: New file.
45890         * modules/unictype/property-grapheme-link-tests: New file.
45891         * modules/unictype/property-hex-digit-tests: New file.
45892         * modules/unictype/property-hyphen-tests: New file.
45893         * modules/unictype/property-id-continue-tests: New file.
45894         * modules/unictype/property-id-start-tests: New file.
45895         * modules/unictype/property-ideographic-tests: New file.
45896         * modules/unictype/property-ids-binary-operator-tests: New file.
45897         * modules/unictype/property-ids-trinary-operator-tests: New file.
45898         * modules/unictype/property-ignorable-control-tests: New file.
45899         * modules/unictype/property-iso-control-tests: New file.
45900         * modules/unictype/property-join-control-tests: New file.
45901         * modules/unictype/property-left-of-pair-tests: New file.
45902         * modules/unictype/property-line-separator-tests: New file.
45903         * modules/unictype/property-logical-order-exception-tests: New file.
45904         * modules/unictype/property-lowercase-tests: New file.
45905         * modules/unictype/property-math-tests: New file.
45906         * modules/unictype/property-non-break-tests: New file.
45907         * modules/unictype/property-not-a-character-tests: New file.
45908         * modules/unictype/property-numeric-tests: New file.
45909         * modules/unictype/property-other-alphabetic-tests: New file.
45910         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
45911         * modules/unictype/property-other-grapheme-extend-tests: New file.
45912         * modules/unictype/property-other-id-continue-tests: New file.
45913         * modules/unictype/property-other-id-start-tests: New file.
45914         * modules/unictype/property-other-lowercase-tests: New file.
45915         * modules/unictype/property-other-math-tests: New file.
45916         * modules/unictype/property-other-uppercase-tests: New file.
45917         * modules/unictype/property-paired-punctuation-tests: New file.
45918         * modules/unictype/property-paragraph-separator-tests: New file.
45919         * modules/unictype/property-pattern-syntax-tests: New file.
45920         * modules/unictype/property-pattern-white-space-tests: New file.
45921         * modules/unictype/property-private-use-tests: New file.
45922         * modules/unictype/property-punctuation-tests: New file.
45923         * modules/unictype/property-quotation-mark-tests: New file.
45924         * modules/unictype/property-radical-tests: New file.
45925         * modules/unictype/property-sentence-terminal-tests: New file.
45926         * modules/unictype/property-soft-dotted-tests: New file.
45927         * modules/unictype/property-space-tests: New file.
45928         * modules/unictype/property-terminal-punctuation-tests: New file.
45929         * modules/unictype/property-test-tests: New file.
45930         * modules/unictype/property-titlecase-tests: New file.
45931         * modules/unictype/property-unassigned-code-value-tests: New file.
45932         * modules/unictype/property-unified-ideograph-tests: New file.
45933         * modules/unictype/property-uppercase-tests: New file.
45934         * modules/unictype/property-variation-selector-tests: New file.
45935         * modules/unictype/property-white-space-tests: New file.
45936         * modules/unictype/property-xid-continue-tests: New file.
45937         * modules/unictype/property-xid-start-tests: New file.
45938         * modules/unictype/property-zero-width-tests: New file.
45939         * modules/unictype/scripts-tests: New file.
45940         * modules/unictype/syntax-c-ident-tests: New file.
45941         * modules/unictype/syntax-c-whitespace-tests: New file.
45942         * modules/unictype/syntax-java-ident-tests: New file.
45943         * modules/unictype/syntax-java-whitespace-tests: New file.
45944         * tests/unictype/test-bidi_byname.c: New file.
45945         * tests/unictype/test-bidi_name.c: New file.
45946         * tests/unictype/test-bidi_of.c: New file.
45947         * tests/unictype/test-bidi_test.c: New file.
45948         * tests/unictype/test-block_list.c: New file.
45949         * tests/unictype/test-block_of.c: New file.
45950         * tests/unictype/test-block_test.c: New file.
45951         * tests/unictype/test-categ_and.c: New file.
45952         * tests/unictype/test-categ_and_not.c: New file.
45953         * tests/unictype/test-categ_byname.c: New file.
45954         * tests/unictype/test-categ_name.c: New file.
45955         * tests/unictype/test-categ_none.c: New file.
45956         * tests/unictype/test-categ_of.c: New file.
45957         * tests/unictype/test-categ_or.c: New file.
45958         * tests/unictype/test-categ_test_withtable.c: New file.
45959         * tests/unictype/test-combining.c: New file.
45960         * tests/unictype/test-decdigit.c: New file.
45961         * tests/unictype/test-digit.c: New file.
45962         * tests/unictype/test-mirror.c: New file.
45963         * tests/unictype/test-numeric.c: New file.
45964         * tests/unictype/test-pr_byname.c: New file.
45965         * tests/unictype/test-pr_test.c: New file.
45966         * tests/unictype/test-predicate-part1.h: New file.
45967         * tests/unictype/test-predicate-part2.h: New file.
45968         * tests/unictype/test-scripts.c: New file.
45969         * tests/unictype/test-sy_c_ident.c: New file.
45970         * tests/unictype/test-sy_java_ident.c: New file.
45971
45972         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
45973         for Unicode 5.0.0.
45974         * tests/unictype/test-categ_Cc.c: Likewise.
45975         * tests/unictype/test-categ_Cf.c: Likewise.
45976         * tests/unictype/test-categ_Cn.c: Likewise.
45977         * tests/unictype/test-categ_Co.c: Likewise.
45978         * tests/unictype/test-categ_Cs.c: Likewise.
45979         * tests/unictype/test-categ_L.c: Likewise.
45980         * tests/unictype/test-categ_Ll.c: Likewise.
45981         * tests/unictype/test-categ_Lm.c: Likewise.
45982         * tests/unictype/test-categ_Lo.c: Likewise.
45983         * tests/unictype/test-categ_Lt.c: Likewise.
45984         * tests/unictype/test-categ_Lu.c: Likewise.
45985         * tests/unictype/test-categ_M.c: Likewise.
45986         * tests/unictype/test-categ_Mc.c: Likewise.
45987         * tests/unictype/test-categ_Me.c: Likewise.
45988         * tests/unictype/test-categ_Mn.c: Likewise.
45989         * tests/unictype/test-categ_N.c: Likewise.
45990         * tests/unictype/test-categ_Nd.c: Likewise.
45991         * tests/unictype/test-categ_Nl.c: Likewise.
45992         * tests/unictype/test-categ_No.c: Likewise.
45993         * tests/unictype/test-categ_P.c: Likewise.
45994         * tests/unictype/test-categ_Pc.c: Likewise.
45995         * tests/unictype/test-categ_Pd.c: Likewise.
45996         * tests/unictype/test-categ_Pe.c: Likewise.
45997         * tests/unictype/test-categ_Pf.c: Likewise.
45998         * tests/unictype/test-categ_Pi.c: Likewise.
45999         * tests/unictype/test-categ_Po.c: Likewise.
46000         * tests/unictype/test-categ_Ps.c: Likewise.
46001         * tests/unictype/test-categ_S.c: Likewise.
46002         * tests/unictype/test-categ_Sc.c: Likewise.
46003         * tests/unictype/test-categ_Sk.c: Likewise.
46004         * tests/unictype/test-categ_Sm.c: Likewise.
46005         * tests/unictype/test-categ_So.c: Likewise.
46006         * tests/unictype/test-categ_Z.c: Likewise.
46007         * tests/unictype/test-categ_Zl.c: Likewise.
46008         * tests/unictype/test-categ_Zp.c: Likewise.
46009         * tests/unictype/test-categ_Zs.c: Likewise.
46010         * tests/unictype/test-ctype_alnum.c: Likewise.
46011         * tests/unictype/test-ctype_alpha.c: Likewise.
46012         * tests/unictype/test-ctype_blank.c: Likewise.
46013         * tests/unictype/test-ctype_cntrl.c: Likewise.
46014         * tests/unictype/test-ctype_digit.c: Likewise.
46015         * tests/unictype/test-ctype_graph.c: Likewise.
46016         * tests/unictype/test-ctype_lower.c: Likewise.
46017         * tests/unictype/test-ctype_print.c: Likewise.
46018         * tests/unictype/test-ctype_punct.c: Likewise.
46019         * tests/unictype/test-ctype_space.c: Likewise.
46020         * tests/unictype/test-ctype_upper.c: Likewise.
46021         * tests/unictype/test-ctype_xdigit.c: Likewise.
46022         * tests/unictype/test-decdigit.h: Likewise.
46023         * tests/unictype/test-digit.h: Likewise.
46024         * tests/unictype/test-numeric.h: Likewise.
46025         * tests/unictype/test-pr_alphabetic.c: Likewise.
46026         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
46027         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
46028         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
46029         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
46030         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
46031         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
46032         * tests/unictype/test-pr_bidi_control.c: Likewise.
46033         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
46034         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
46035         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
46036         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
46037         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
46038         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
46039         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
46040         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
46041         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
46042         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
46043         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
46044         * tests/unictype/test-pr_combining.c: Likewise.
46045         * tests/unictype/test-pr_composite.c: Likewise.
46046         * tests/unictype/test-pr_currency_symbol.c: Likewise.
46047         * tests/unictype/test-pr_dash.c: Likewise.
46048         * tests/unictype/test-pr_decimal_digit.c: Likewise.
46049         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
46050         * tests/unictype/test-pr_deprecated.c: Likewise.
46051         * tests/unictype/test-pr_diacritic.c: Likewise.
46052         * tests/unictype/test-pr_extender.c: Likewise.
46053         * tests/unictype/test-pr_format_control.c: Likewise.
46054         * tests/unictype/test-pr_grapheme_base.c: Likewise.
46055         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
46056         * tests/unictype/test-pr_grapheme_link.c: Likewise.
46057         * tests/unictype/test-pr_hex_digit.c: Likewise.
46058         * tests/unictype/test-pr_hyphen.c: Likewise.
46059         * tests/unictype/test-pr_id_continue.c: Likewise.
46060         * tests/unictype/test-pr_id_start.c: Likewise.
46061         * tests/unictype/test-pr_ideographic.c: Likewise.
46062         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
46063         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
46064         * tests/unictype/test-pr_ignorable_control.c: Likewise.
46065         * tests/unictype/test-pr_iso_control.c: Likewise.
46066         * tests/unictype/test-pr_join_control.c: Likewise.
46067         * tests/unictype/test-pr_left_of_pair.c: Likewise.
46068         * tests/unictype/test-pr_line_separator.c: Likewise.
46069         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
46070         * tests/unictype/test-pr_lowercase.c: Likewise.
46071         * tests/unictype/test-pr_math.c: Likewise.
46072         * tests/unictype/test-pr_non_break.c: Likewise.
46073         * tests/unictype/test-pr_not_a_character.c: Likewise.
46074         * tests/unictype/test-pr_numeric.c: Likewise.
46075         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
46076         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
46077         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
46078         * tests/unictype/test-pr_other_id_continue.c: Likewise.
46079         * tests/unictype/test-pr_other_id_start.c: Likewise.
46080         * tests/unictype/test-pr_other_lowercase.c: Likewise.
46081         * tests/unictype/test-pr_other_math.c: Likewise.
46082         * tests/unictype/test-pr_other_uppercase.c: Likewise.
46083         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
46084         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
46085         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
46086         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
46087         * tests/unictype/test-pr_private_use.c: Likewise.
46088         * tests/unictype/test-pr_punctuation.c: Likewise.
46089         * tests/unictype/test-pr_quotation_mark.c: Likewise.
46090         * tests/unictype/test-pr_radical.c: Likewise.
46091         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
46092         * tests/unictype/test-pr_soft_dotted.c: Likewise.
46093         * tests/unictype/test-pr_space.c: Likewise.
46094         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
46095         * tests/unictype/test-pr_titlecase.c: Likewise.
46096         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
46097         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
46098         * tests/unictype/test-pr_uppercase.c: Likewise.
46099         * tests/unictype/test-pr_variation_selector.c: Likewise.
46100         * tests/unictype/test-pr_white_space.c: Likewise.
46101         * tests/unictype/test-pr_xid_continue.c: Likewise.
46102         * tests/unictype/test-pr_xid_start.c: Likewise.
46103         * tests/unictype/test-pr_zero_width.c: Likewise.
46104         * tests/unictype/test-sy_c_whitespace.c: Likewise.
46105         * tests/unictype/test-sy_java_whitespace.c: Likewise.
46106
46107 2007-11-12  Bruno Haible  <bruno@clisp.org>
46108
46109         Unicode character classification functions.
46110         * lib/unictype.h: New file.
46111         * modules/unictype/base: New file.
46112         * modules/unictype/category-L: New file.
46113         * modules/unictype/category-Lu: New file.
46114         * modules/unictype/category-Ll: New file.
46115         * modules/unictype/category-Lt: New file.
46116         * modules/unictype/category-Lm: New file.
46117         * modules/unictype/category-Lo: New file.
46118         * modules/unictype/category-M: New file.
46119         * modules/unictype/category-Mn: New file.
46120         * modules/unictype/category-Mc: New file.
46121         * modules/unictype/category-Me: New file.
46122         * modules/unictype/category-N: New file.
46123         * modules/unictype/category-Nd: New file.
46124         * modules/unictype/category-Nl: New file.
46125         * modules/unictype/category-No: New file.
46126         * modules/unictype/category-P: New file.
46127         * modules/unictype/category-Pc: New file.
46128         * modules/unictype/category-Pd: New file.
46129         * modules/unictype/category-Ps: New file.
46130         * modules/unictype/category-Pe: New file.
46131         * modules/unictype/category-Pi: New file.
46132         * modules/unictype/category-Pf: New file.
46133         * modules/unictype/category-Po: New file.
46134         * modules/unictype/category-S: New file.
46135         * modules/unictype/category-Sm: New file.
46136         * modules/unictype/category-Sc: New file.
46137         * modules/unictype/category-Sk: New file.
46138         * modules/unictype/category-So: New file.
46139         * modules/unictype/category-Z: New file.
46140         * modules/unictype/category-Zs: New file.
46141         * modules/unictype/category-Zl: New file.
46142         * modules/unictype/category-Zp: New file.
46143         * modules/unictype/category-C: New file.
46144         * modules/unictype/category-Cc: New file.
46145         * modules/unictype/category-Cf: New file.
46146         * modules/unictype/category-Cs: New file.
46147         * modules/unictype/category-Co: New file.
46148         * modules/unictype/category-Cn: New file.
46149         * modules/unictype/category-or: New file.
46150         * modules/unictype/category-of: New file.
46151         * modules/unictype/category-test: New file.
46152         * modules/unictype/category-test-withtable: New file.
46153         * modules/unictype/category-byname: New file.
46154         * modules/unictype/category-none: New file.
46155         * modules/unictype/category-and: New file.
46156         * modules/unictype/category-and-not: New file.
46157         * modules/unictype/category-name: New file.
46158         * modules/unictype/combining-class: New file.
46159         * modules/unictype/category-all: New file.
46160         * modules/unictype/bidicategory-all: New file.
46161         * modules/unictype/bidicategory-byname: New file.
46162         * modules/unictype/bidicategory-name: New file.
46163         * modules/unictype/bidicategory-of: New file.
46164         * modules/unictype/bidicategory-test: New file.
46165         * modules/unictype/decimal-digit: New file.
46166         * modules/unictype/digit: New file.
46167         * modules/unictype/numeric: New file.
46168         * modules/unictype/mirror: New file.
46169         * modules/unictype/property-white-space: New file.
46170         * modules/unictype/property-alphabetic: New file.
46171         * modules/unictype/property-other-alphabetic: New file.
46172         * modules/unictype/property-not-a-character: New file.
46173         * modules/unictype/property-default-ignorable-code-point: New file.
46174         * modules/unictype/property-other-default-ignorable-code-point: New
46175         file.
46176         * modules/unictype/property-deprecated: New file.
46177         * modules/unictype/property-logical-order-exception: New file.
46178         * modules/unictype/property-variation-selector: New file.
46179         * modules/unictype/property-private-use: New file.
46180         * modules/unictype/property-unassigned-code-value: New file.
46181         * modules/unictype/property-uppercase: New file.
46182         * modules/unictype/property-other-uppercase: New file.
46183         * modules/unictype/property-lowercase: New file.
46184         * modules/unictype/property-other-lowercase: New file.
46185         * modules/unictype/property-titlecase: New file.
46186         * modules/unictype/property-soft-dotted: New file.
46187         * modules/unictype/property-id-start: New file.
46188         * modules/unictype/property-other-id-start: New file.
46189         * modules/unictype/property-id-continue: New file.
46190         * modules/unictype/property-other-id-continue: New file.
46191         * modules/unictype/property-xid-start: New file.
46192         * modules/unictype/property-xid-continue: New file.
46193         * modules/unictype/property-pattern-white-space: New file.
46194         * modules/unictype/property-pattern-syntax: New file.
46195         * modules/unictype/property-join-control: New file.
46196         * modules/unictype/property-grapheme-base: New file.
46197         * modules/unictype/property-grapheme-extend: New file.
46198         * modules/unictype/property-other-grapheme-extend: New file.
46199         * modules/unictype/property-grapheme-link: New file.
46200         * modules/unictype/property-bidi-control: New file.
46201         * modules/unictype/property-bidi-left-to-right: New file.
46202         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
46203         * modules/unictype/property-bidi-arabic-right-to-left: New file.
46204         * modules/unictype/property-bidi-european-digit: New file.
46205         * modules/unictype/property-bidi-eur-num-separator: New file.
46206         * modules/unictype/property-bidi-eur-num-terminator: New file.
46207         * modules/unictype/property-bidi-arabic-digit: New file.
46208         * modules/unictype/property-bidi-common-separator: New file.
46209         * modules/unictype/property-bidi-block-separator: New file.
46210         * modules/unictype/property-bidi-segment-separator: New file.
46211         * modules/unictype/property-bidi-whitespace: New file.
46212         * modules/unictype/property-bidi-non-spacing-mark: New file.
46213         * modules/unictype/property-bidi-boundary-neutral: New file.
46214         * modules/unictype/property-bidi-pdf: New file.
46215         * modules/unictype/property-bidi-embedding-or-override: New file.
46216         * modules/unictype/property-bidi-other-neutral: New file.
46217         * modules/unictype/property-hex-digit: New file.
46218         * modules/unictype/property-ascii-hex-digit: New file.
46219         * modules/unictype/property-ideographic: New file.
46220         * modules/unictype/property-unified-ideograph: New file.
46221         * modules/unictype/property-radical: New file.
46222         * modules/unictype/property-ids-binary-operator: New file.
46223         * modules/unictype/property-ids-trinary-operator: New file.
46224         * modules/unictype/property-zero-width: New file.
46225         * modules/unictype/property-space: New file.
46226         * modules/unictype/property-non-break: New file.
46227         * modules/unictype/property-iso-control: New file.
46228         * modules/unictype/property-format-control: New file.
46229         * modules/unictype/property-dash: New file.
46230         * modules/unictype/property-hyphen: New file.
46231         * modules/unictype/property-punctuation: New file.
46232         * modules/unictype/property-line-separator: New file.
46233         * modules/unictype/property-paragraph-separator: New file.
46234         * modules/unictype/property-quotation-mark: New file.
46235         * modules/unictype/property-sentence-terminal: New file.
46236         * modules/unictype/property-terminal-punctuation: New file.
46237         * modules/unictype/property-currency-symbol: New file.
46238         * modules/unictype/property-math: New file.
46239         * modules/unictype/property-other-math: New file.
46240         * modules/unictype/property-paired-punctuation: New file.
46241         * modules/unictype/property-left-of-pair: New file.
46242         * modules/unictype/property-combining: New file.
46243         * modules/unictype/property-composite: New file.
46244         * modules/unictype/property-decimal-digit: New file.
46245         * modules/unictype/property-numeric: New file.
46246         * modules/unictype/property-diacritic: New file.
46247         * modules/unictype/property-extender: New file.
46248         * modules/unictype/property-ignorable-control: New file.
46249         * modules/unictype/property-test: New file.
46250         * modules/unictype/property-byname: New file.
46251         * modules/unictype/property-all: New file.
46252         * modules/unictype/scripts: New file.
46253         * modules/unictype/scripts-all: New file.
46254         * modules/unictype/block-of: New file.
46255         * modules/unictype/block-test: New file.
46256         * modules/unictype/block-list: New file.
46257         * modules/unictype/block-all: New file.
46258         * modules/unictype/syntax-c-whitespace: New file.
46259         * modules/unictype/syntax-java-whitespace: New file.
46260         * modules/unictype/syntax-c-ident: New file.
46261         * modules/unictype/syntax-java-ident: New file.
46262         * modules/unictype/ctype-alnum: New file.
46263         * modules/unictype/ctype-alpha: New file.
46264         * modules/unictype/ctype-cntrl: New file.
46265         * modules/unictype/ctype-digit: New file.
46266         * modules/unictype/ctype-graph: New file.
46267         * modules/unictype/ctype-lower: New file.
46268         * modules/unictype/ctype-print: New file.
46269         * modules/unictype/ctype-punct: New file.
46270         * modules/unictype/ctype-space: New file.
46271         * modules/unictype/ctype-upper: New file.
46272         * modules/unictype/ctype-xdigit: New file.
46273         * modules/unictype/ctype-blank: New file.
46274         * lib/unictype/bidi_byname.c: New file.
46275         * lib/unictype/bidi_name.c: New file.
46276         * lib/unictype/bidi_of.c: New file.
46277         * lib/unictype/bidi_test.c: New file.
46278         * lib/unictype/bitmap.h: New file.
46279         * lib/unictype/block_test.c: New file.
46280         * lib/unictype/blocks.c: New file.
46281         * lib/unictype/categ_C.c: New file.
46282         * lib/unictype/categ_Cc.c: New file.
46283         * lib/unictype/categ_Cf.c: New file.
46284         * lib/unictype/categ_Cn.c: New file.
46285         * lib/unictype/categ_Co.c: New file.
46286         * lib/unictype/categ_Cs.c: New file.
46287         * lib/unictype/categ_L.c: New file.
46288         * lib/unictype/categ_Ll.c: New file.
46289         * lib/unictype/categ_Lm.c: New file.
46290         * lib/unictype/categ_Lo.c: New file.
46291         * lib/unictype/categ_Lt.c: New file.
46292         * lib/unictype/categ_Lu.c: New file.
46293         * lib/unictype/categ_M.c: New file.
46294         * lib/unictype/categ_Mc.c: New file.
46295         * lib/unictype/categ_Me.c: New file.
46296         * lib/unictype/categ_Mn.c: New file.
46297         * lib/unictype/categ_N.c: New file.
46298         * lib/unictype/categ_Nd.c: New file.
46299         * lib/unictype/categ_Nl.c: New file.
46300         * lib/unictype/categ_No.c: New file.
46301         * lib/unictype/categ_P.c: New file.
46302         * lib/unictype/categ_Pc.c: New file.
46303         * lib/unictype/categ_Pd.c: New file.
46304         * lib/unictype/categ_Pe.c: New file.
46305         * lib/unictype/categ_Pf.c: New file.
46306         * lib/unictype/categ_Pi.c: New file.
46307         * lib/unictype/categ_Po.c: New file.
46308         * lib/unictype/categ_Ps.c: New file.
46309         * lib/unictype/categ_S.c: New file.
46310         * lib/unictype/categ_Sc.c: New file.
46311         * lib/unictype/categ_Sk.c: New file.
46312         * lib/unictype/categ_Sm.c: New file.
46313         * lib/unictype/categ_So.c: New file.
46314         * lib/unictype/categ_Z.c: New file.
46315         * lib/unictype/categ_Zl.c: New file.
46316         * lib/unictype/categ_Zp.c: New file.
46317         * lib/unictype/categ_Zs.c: New file.
46318         * lib/unictype/categ_and.c: New file.
46319         * lib/unictype/categ_and_not.c: New file.
46320         * lib/unictype/categ_byname.c: New file.
46321         * lib/unictype/categ_name.c: New file.
46322         * lib/unictype/categ_none.c: New file.
46323         * lib/unictype/categ_of.c: New file.
46324         * lib/unictype/categ_or.c: New file.
46325         * lib/unictype/categ_test.c: New file.
46326         * lib/unictype/combining.c: New file.
46327         * lib/unictype/ctype_alnum.c: New file.
46328         * lib/unictype/ctype_alpha.c: New file.
46329         * lib/unictype/ctype_blank.c: New file.
46330         * lib/unictype/ctype_cntrl.c: New file.
46331         * lib/unictype/ctype_digit.c: New file.
46332         * lib/unictype/ctype_graph.c: New file.
46333         * lib/unictype/ctype_lower.c: New file.
46334         * lib/unictype/ctype_print.c: New file.
46335         * lib/unictype/ctype_punct.c: New file.
46336         * lib/unictype/ctype_space.c: New file.
46337         * lib/unictype/ctype_upper.c: New file.
46338         * lib/unictype/ctype_xdigit.c: New file.
46339         * lib/unictype/decdigit.c: New file.
46340         * lib/unictype/digit.c: New file.
46341         * lib/unictype/identsyntaxmap.h: New file.
46342         * lib/unictype/mirror.c: New file.
46343         * lib/unictype/numeric.c: New file.
46344         * lib/unictype/pr_alphabetic.c: New file.
46345         * lib/unictype/pr_ascii_hex_digit.c: New file.
46346         * lib/unictype/pr_bidi_arabic_digit.c: New file.
46347         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
46348         * lib/unictype/pr_bidi_block_separator.c: New file.
46349         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
46350         * lib/unictype/pr_bidi_common_separator.c: New file.
46351         * lib/unictype/pr_bidi_control.c: New file.
46352         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
46353         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
46354         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
46355         * lib/unictype/pr_bidi_european_digit.c: New file.
46356         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
46357         * lib/unictype/pr_bidi_left_to_right.c: New file.
46358         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
46359         * lib/unictype/pr_bidi_other_neutral.c: New file.
46360         * lib/unictype/pr_bidi_pdf.c: New file.
46361         * lib/unictype/pr_bidi_segment_separator.c: New file.
46362         * lib/unictype/pr_bidi_whitespace.c: New file.
46363         * lib/unictype/pr_byname.c: New file.
46364         * lib/unictype/pr_byname.gperf: New file.
46365         * lib/unictype/pr_combining.c: New file.
46366         * lib/unictype/pr_composite.c: New file.
46367         * lib/unictype/pr_currency_symbol.c: New file.
46368         * lib/unictype/pr_dash.c: New file.
46369         * lib/unictype/pr_decimal_digit.c: New file.
46370         * lib/unictype/pr_default_ignorable_code_point.c: New file.
46371         * lib/unictype/pr_deprecated.c: New file.
46372         * lib/unictype/pr_diacritic.c: New file.
46373         * lib/unictype/pr_extender.c: New file.
46374         * lib/unictype/pr_format_control.c: New file.
46375         * lib/unictype/pr_grapheme_base.c: New file.
46376         * lib/unictype/pr_grapheme_extend.c: New file.
46377         * lib/unictype/pr_grapheme_link.c: New file.
46378         * lib/unictype/pr_hex_digit.c: New file.
46379         * lib/unictype/pr_hyphen.c: New file.
46380         * lib/unictype/pr_id_continue.c: New file.
46381         * lib/unictype/pr_id_start.c: New file.
46382         * lib/unictype/pr_ideographic.c: New file.
46383         * lib/unictype/pr_ids_binary_operator.c: New file.
46384         * lib/unictype/pr_ids_trinary_operator.c: New file.
46385         * lib/unictype/pr_ignorable_control.c: New file.
46386         * lib/unictype/pr_iso_control.c: New file.
46387         * lib/unictype/pr_join_control.c: New file.
46388         * lib/unictype/pr_left_of_pair.c: New file.
46389         * lib/unictype/pr_line_separator.c: New file.
46390         * lib/unictype/pr_logical_order_exception.c: New file.
46391         * lib/unictype/pr_lowercase.c: New file.
46392         * lib/unictype/pr_math.c: New file.
46393         * lib/unictype/pr_non_break.c: New file.
46394         * lib/unictype/pr_not_a_character.c: New file.
46395         * lib/unictype/pr_numeric.c: New file.
46396         * lib/unictype/pr_other_alphabetic.c: New file.
46397         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
46398         * lib/unictype/pr_other_grapheme_extend.c: New file.
46399         * lib/unictype/pr_other_id_continue.c: New file.
46400         * lib/unictype/pr_other_id_start.c: New file.
46401         * lib/unictype/pr_other_lowercase.c: New file.
46402         * lib/unictype/pr_other_math.c: New file.
46403         * lib/unictype/pr_other_uppercase.c: New file.
46404         * lib/unictype/pr_paired_punctuation.c: New file.
46405         * lib/unictype/pr_paragraph_separator.c: New file.
46406         * lib/unictype/pr_pattern_syntax.c: New file.
46407         * lib/unictype/pr_pattern_white_space.c: New file.
46408         * lib/unictype/pr_private_use.c: New file.
46409         * lib/unictype/pr_punctuation.c: New file.
46410         * lib/unictype/pr_quotation_mark.c: New file.
46411         * lib/unictype/pr_radical.c: New file.
46412         * lib/unictype/pr_sentence_terminal.c: New file.
46413         * lib/unictype/pr_soft_dotted.c: New file.
46414         * lib/unictype/pr_space.c: New file.
46415         * lib/unictype/pr_terminal_punctuation.c: New file.
46416         * lib/unictype/pr_test.c: New file.
46417         * lib/unictype/pr_titlecase.c: New file.
46418         * lib/unictype/pr_unassigned_code_value.c: New file.
46419         * lib/unictype/pr_unified_ideograph.c: New file.
46420         * lib/unictype/pr_uppercase.c: New file.
46421         * lib/unictype/pr_variation_selector.c: New file.
46422         * lib/unictype/pr_white_space.c: New file.
46423         * lib/unictype/pr_xid_continue.c: New file.
46424         * lib/unictype/pr_xid_start.c: New file.
46425         * lib/unictype/pr_zero_width.c: New file.
46426         * lib/unictype/scripts.c: New file.
46427         * lib/unictype/sy_c_ident.c: New file.
46428         * lib/unictype/sy_c_whitespace.c: New file.
46429         * lib/unictype/sy_java_ident.c: New file.
46430         * lib/unictype/sy_java_whitespace.c: New file.
46431
46432         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
46433         Unicode 5.0.0.
46434         * lib/unictype/blocks.h: Likewise.
46435         * lib/unictype/categ_C.h: Likewise.
46436         * lib/unictype/categ_Cc.h: Likewise.
46437         * lib/unictype/categ_Cf.h: Likewise.
46438         * lib/unictype/categ_Cn.h: Likewise.
46439         * lib/unictype/categ_Co.h: Likewise.
46440         * lib/unictype/categ_Cs.h: Likewise.
46441         * lib/unictype/categ_L.h: Likewise.
46442         * lib/unictype/categ_Ll.h: Likewise.
46443         * lib/unictype/categ_Lm.h: Likewise.
46444         * lib/unictype/categ_Lo.h: Likewise.
46445         * lib/unictype/categ_Lt.h: Likewise.
46446         * lib/unictype/categ_Lu.h: Likewise.
46447         * lib/unictype/categ_M.h: Likewise.
46448         * lib/unictype/categ_Mc.h: Likewise.
46449         * lib/unictype/categ_Me.h: Likewise.
46450         * lib/unictype/categ_Mn.h: Likewise.
46451         * lib/unictype/categ_N.h: Likewise.
46452         * lib/unictype/categ_Nd.h: Likewise.
46453         * lib/unictype/categ_Nl.h: Likewise.
46454         * lib/unictype/categ_No.h: Likewise.
46455         * lib/unictype/categ_P.h: Likewise.
46456         * lib/unictype/categ_Pc.h: Likewise.
46457         * lib/unictype/categ_Pd.h: Likewise.
46458         * lib/unictype/categ_Pe.h: Likewise.
46459         * lib/unictype/categ_Pf.h: Likewise.
46460         * lib/unictype/categ_Pi.h: Likewise.
46461         * lib/unictype/categ_Po.h: Likewise.
46462         * lib/unictype/categ_Ps.h: Likewise.
46463         * lib/unictype/categ_S.h: Likewise.
46464         * lib/unictype/categ_Sc.h: Likewise.
46465         * lib/unictype/categ_Sk.h: Likewise.
46466         * lib/unictype/categ_Sm.h: Likewise.
46467         * lib/unictype/categ_So.h: Likewise.
46468         * lib/unictype/categ_Z.h: Likewise.
46469         * lib/unictype/categ_Zl.h: Likewise.
46470         * lib/unictype/categ_Zp.h: Likewise.
46471         * lib/unictype/categ_Zs.h: Likewise.
46472         * lib/unictype/categ_of.h: Likewise.
46473         * lib/unictype/combining.h: Likewise.
46474         * lib/unictype/ctype_alnum.h: Likewise.
46475         * lib/unictype/ctype_alpha.h: Likewise.
46476         * lib/unictype/ctype_blank.h: Likewise.
46477         * lib/unictype/ctype_cntrl.h: Likewise.
46478         * lib/unictype/ctype_digit.h: Likewise.
46479         * lib/unictype/ctype_graph.h: Likewise.
46480         * lib/unictype/ctype_lower.h: Likewise.
46481         * lib/unictype/ctype_print.h: Likewise.
46482         * lib/unictype/ctype_punct.h: Likewise.
46483         * lib/unictype/ctype_space.h: Likewise.
46484         * lib/unictype/ctype_upper.h: Likewise.
46485         * lib/unictype/ctype_xdigit.h: Likewise.
46486         * lib/unictype/decdigit.h: Likewise.
46487         * lib/unictype/digit.h: Likewise.
46488         * lib/unictype/mirror.h: Likewise.
46489         * lib/unictype/numeric.h: Likewise.
46490         * lib/unictype/pr_alphabetic.h: Likewise.
46491         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
46492         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
46493         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
46494         * lib/unictype/pr_bidi_block_separator.h: Likewise.
46495         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
46496         * lib/unictype/pr_bidi_common_separator.h: Likewise.
46497         * lib/unictype/pr_bidi_control.h: Likewise.
46498         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
46499         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
46500         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
46501         * lib/unictype/pr_bidi_european_digit.h: Likewise.
46502         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
46503         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
46504         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
46505         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
46506         * lib/unictype/pr_bidi_pdf.h: Likewise.
46507         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
46508         * lib/unictype/pr_bidi_whitespace.h: Likewise.
46509         * lib/unictype/pr_combining.h: Likewise.
46510         * lib/unictype/pr_composite.h: Likewise.
46511         * lib/unictype/pr_currency_symbol.h: Likewise.
46512         * lib/unictype/pr_dash.h: Likewise.
46513         * lib/unictype/pr_decimal_digit.h: Likewise.
46514         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
46515         * lib/unictype/pr_deprecated.h: Likewise.
46516         * lib/unictype/pr_diacritic.h: Likewise.
46517         * lib/unictype/pr_extender.h: Likewise.
46518         * lib/unictype/pr_format_control.h: Likewise.
46519         * lib/unictype/pr_grapheme_base.h: Likewise.
46520         * lib/unictype/pr_grapheme_extend.h: Likewise.
46521         * lib/unictype/pr_grapheme_link.h: Likewise.
46522         * lib/unictype/pr_hex_digit.h: Likewise.
46523         * lib/unictype/pr_hyphen.h: Likewise.
46524         * lib/unictype/pr_id_continue.h: Likewise.
46525         * lib/unictype/pr_id_start.h: Likewise.
46526         * lib/unictype/pr_ideographic.h: Likewise.
46527         * lib/unictype/pr_ids_binary_operator.h: Likewise.
46528         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
46529         * lib/unictype/pr_ignorable_control.h: Likewise.
46530         * lib/unictype/pr_iso_control.h: Likewise.
46531         * lib/unictype/pr_join_control.h: Likewise.
46532         * lib/unictype/pr_left_of_pair.h: Likewise.
46533         * lib/unictype/pr_line_separator.h: Likewise.
46534         * lib/unictype/pr_logical_order_exception.h: Likewise.
46535         * lib/unictype/pr_lowercase.h: Likewise.
46536         * lib/unictype/pr_math.h: Likewise.
46537         * lib/unictype/pr_non_break.h: Likewise.
46538         * lib/unictype/pr_not_a_character.h: Likewise.
46539         * lib/unictype/pr_numeric.h: Likewise.
46540         * lib/unictype/pr_other_alphabetic.h: Likewise.
46541         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
46542         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
46543         * lib/unictype/pr_other_id_continue.h: Likewise.
46544         * lib/unictype/pr_other_id_start.h: Likewise.
46545         * lib/unictype/pr_other_lowercase.h: Likewise.
46546         * lib/unictype/pr_other_math.h: Likewise.
46547         * lib/unictype/pr_other_uppercase.h: Likewise.
46548         * lib/unictype/pr_paired_punctuation.h: Likewise.
46549         * lib/unictype/pr_paragraph_separator.h: Likewise.
46550         * lib/unictype/pr_pattern_syntax.h: Likewise.
46551         * lib/unictype/pr_pattern_white_space.h: Likewise.
46552         * lib/unictype/pr_private_use.h: Likewise.
46553         * lib/unictype/pr_punctuation.h: Likewise.
46554         * lib/unictype/pr_quotation_mark.h: Likewise.
46555         * lib/unictype/pr_radical.h: Likewise.
46556         * lib/unictype/pr_sentence_terminal.h: Likewise.
46557         * lib/unictype/pr_soft_dotted.h: Likewise.
46558         * lib/unictype/pr_space.h: Likewise.
46559         * lib/unictype/pr_terminal_punctuation.h: Likewise.
46560         * lib/unictype/pr_titlecase.h: Likewise.
46561         * lib/unictype/pr_unassigned_code_value.h: Likewise.
46562         * lib/unictype/pr_unified_ideograph.h: Likewise.
46563         * lib/unictype/pr_uppercase.h: Likewise.
46564         * lib/unictype/pr_variation_selector.h: Likewise.
46565         * lib/unictype/pr_white_space.h: Likewise.
46566         * lib/unictype/pr_xid_continue.h: Likewise.
46567         * lib/unictype/pr_xid_start.h: Likewise.
46568         * lib/unictype/pr_zero_width.h: Likewise.
46569         * lib/unictype/scripts.h: Likewise.
46570         * lib/unictype/scripts_byname.gperf: Likewise.
46571         * lib/unictype/sy_c_ident.h: Likewise.
46572         * lib/unictype/sy_c_whitespace.h: Likewise.
46573         * lib/unictype/sy_java_ident.h: Likewise.
46574         * lib/unictype/sy_java_whitespace.h: Likewise.
46575
46576         * lib/unictype/Makefile: New file.
46577         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
46578         glibc.
46579         * lib/unictype/3level.h: New file, copied from glibc.
46580         * lib/unictype/3levelbit.h: New file.
46581
46582 2007-11-11  Bruno Haible  <bruno@clisp.org>
46583
46584         * modules/gperf: New file.
46585         * modules/iconv_open (Depends-on): Add it.
46586         (Makefile.am): Remove the GPERF definition.
46587
46588 2007-11-11  Bruno Haible  <bruno@clisp.org>
46589
46590         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
46591         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
46592
46593 2007-11-11  Bruno Haible  <bruno@clisp.org>
46594
46595         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
46596         (usage): Remove function.
46597
46598 2007-11-11  Bruno Haible  <bruno@clisp.org>
46599
46600         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
46601         gl_FUNC_CEILF_LIBS.
46602         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
46603         gl_FUNC_CEIL_LIBS.
46604         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
46605         gl_FUNC_CEILL_LIBS.
46606         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
46607         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
46608         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
46609
46610 2007-11-11  Bruno Haible  <bruno@clisp.org>
46611
46612         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
46613         roundf were declared but do not exist on functions.
46614         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
46615         roundl were declared but do not exist on functions.
46616         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
46617         HAVE_FLOORL_AND_CEILL, respectively.
46618         Needed for Sun C on Solaris 10.
46619
46620 2007-11-11  Bruno Haible  <bruno@clisp.org>
46621
46622         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
46623         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
46624         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
46625         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
46626         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
46627         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
46628         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
46629         HAVE_DECL_ROUNDF.
46630         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
46631         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
46632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
46633         of HAVE_DECL_ROUND*.
46634         * modules/math (Makefile.am): Update.
46635
46636 2007-11-10  Bruno Haible  <bruno@clisp.org>
46637
46638         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
46639         ptrdiff_t as m4/intl.m4.
46640
46641 2007-11-10  Jim Meyering  <meyering@redhat.com>
46642
46643         Avoid link failure for the argmatch test.
46644         * tests/test-argmatch.c (usage): Define function to avoid a link
46645         failure: argmatch_die requires a usage function.
46646
46647 2007-11-09  Bruno Haible  <bruno@clisp.org>
46648
46649         * doc/functions/snprintf.texi: Mention BeOS deficiency.
46650         * doc/functions/vsnprintf.texi: Likewise.
46651         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
46652         with a size argument < 2.
46653
46654 2007-11-09  Bruno Haible  <bruno@clisp.org>
46655
46656         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
46657         buffer. Fixes an inefficiency introduced on 2007-11-03.
46658
46659 2007-11-09  Bruno Haible  <bruno@clisp.org>
46660
46661         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
46662         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
46663
46664 2007-11-08  Jim Meyering  <meyering@redhat.com>
46665
46666         Change cache variable name prefix "jm_" to "gl_" everywhere.
46667         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
46668         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
46669         * m4/uptime.m4: s/gl_/jm_/
46670
46671 2007-11-07  Bruno Haible  <bruno@clisp.org>
46672
46673         Update to GNU gettext 0.17.
46674         * m4/intl.m4: Update to GNU gettext 0.17.
46675         * m4/po.m4: Likewise.
46676         * modules/gettext (Files): Remove m4/ulonglong.m4.
46677         (configure.ac): Require gettext infrastructure from version 0.17.
46678
46679 2007-11-06  Bruno Haible  <bruno@clisp.org>
46680
46681         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
46682         symbolic values are not defined in a public header.
46683         * lib/freadable.c (freadable) [QNX]: Likewise.
46684         * lib/freadahead.c (freadahead) [QNX]: Likewise.
46685         * lib/freading.c (freading) [QNX]: Likewise.
46686         * lib/fseterr.c (fseterr) [QNX]: Likewise.
46687         * lib/fwritable.c (fwritable) [QNX]: Likewise.
46688         * lib/fwriting.c (fwriting) [QNX]: Likewise.
46689         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
46690         Reported by Alain Magloire.
46691
46692         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
46693
46694 2007-11-05  Bruno Haible  <bruno@clisp.org>
46695
46696         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
46697         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
46698         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
46699         Reported by Eric Blake.
46700
46701 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46702             Bruno Haible  <bruno@clisp.org>
46703
46704         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
46705         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
46706         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
46707         (malloc): Undefine also before including <stdlib.h>.
46708         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
46709         Needed on OSF/1 4.0.
46710
46711 2007-11-05  Jim Meyering  <meyering@redhat.com>
46712
46713         git-version-gen: sync from coreutils.
46714         * build-aux/git-version-gen: Add comments.
46715         Change the first '-' to '.' in the snapshot version string,
46716         e.g., 6.9-377-08144 -> 6.9.377-08144
46717         Remove first parameter.
46718         Don't declare a version "-dirty" merely because a time
46719         stamp has changed.
46720
46721 2007-11-04  Bruno Haible  <bruno@clisp.org>
46722
46723         * lib/lock.h: Protect all macro definitions containing an 'if'
46724         statement through a "do { ... } while (0)".
46725         * lib/tls.h: Likewise.
46726
46727 2007-11-04  Bruno Haible  <bruno@clisp.org>
46728
46729         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
46730
46731 2007-11-04  Bruno Haible  <bruno@clisp.org>
46732
46733         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
46734         * modules/fprintf-posix (Depends-on): Add nocrash.
46735         * modules/snprintf-posix (Depends-on): Likewise.
46736         * modules/sprintf-posix (Depends-on): Likewise.
46737         * modules/vasnprintf-posix (Depends-on): Likewise.
46738         * modules/vasprintf-posix (Depends-on): Likewise.
46739         * modules/vfprintf-posix (Depends-on): Likewise.
46740         * modules/vsnprintf-posix (Depends-on): Likewise.
46741         * modules/vsprintf-posix (Depends-on): Likewise.
46742         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46743         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46744         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46745         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46746         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46747         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46748         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46749
46750 2007-11-04  Bruno Haible  <bruno@clisp.org>
46751
46752         * modules/nocrash: New file.
46753         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
46754         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
46755
46756 2007-11-04  Bruno Haible  <bruno@clisp.org>
46757
46758         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
46759         precision handling.
46760         * tests/test-vasprintf-posix.c (test_function): Likewise.
46761         * tests/test-snprintf-posix.h (test_function): Likewise.
46762         * tests/test-sprintf-posix.h (test_function): Likewise.
46763
46764         Fix *printf behaviour for large precisions on mingw and BeOS.
46765         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
46766         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
46767         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
46768         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46769         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46770         gl_PRINTF_PRECISION and test its result. Invoke
46771         gl_PREREQ_VASNPRINTF_PRECISION.
46772         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46773         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46774         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46775         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46776         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46777         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46778         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46779         * doc/functions/fprintf.texi: Update.
46780         * doc/functions/printf.texi: Update.
46781         * doc/functions/snprintf.texi: Update.
46782         * doc/functions/sprintf.texi: Update.
46783         * doc/functions/vfprintf.texi: Update.
46784         * doc/functions/vprintf.texi: Update.
46785         * doc/functions/vsnprintf.texi: Update.
46786         * doc/functions/vsprintf.texi: Update.
46787
46788 2007-11-04  Bruno Haible  <bruno@clisp.org>
46789
46790         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
46791
46792 2007-11-04  Bruno Haible  <bruno@clisp.org>
46793
46794         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
46795         Reported by Sylvain Beucler <beuc@gnu.org>.
46796
46797 2007-11-03  Bruno Haible  <bruno@clisp.org>
46798
46799         * tests/test-fprintf-posix2.sh: New file.
46800         * tests/test-fprintf-posix2.c: New file.
46801         * modules/fprintf-posix-tests (Files): Add them.
46802         (TESTS): Add test-fprintf-posix2.sh.
46803         (configure.ac): Check for getrlimit and setrlimit.
46804         (check_PROGRAMS): Add test-fprintf-posix2.
46805
46806         * tests/test-printf-posix2.sh: New file.
46807         * tests/test-printf-posix2.c: New file.
46808         * modules/printf-posix-tests (Files): Add them.
46809         (TESTS): Add test-printf-posix2.sh.
46810         (configure.ac): Check for getrlimit and setrlimit.
46811         (check_PROGRAMS): Add test-printf-posix2.
46812
46813         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
46814         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
46815         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
46816         (decode_double): New function, copied from decode_long_double.
46817         (scale10_round_decimal_decoded): New function, extracted from
46818         scale10_round_decimal_long_double.
46819         (scale10_round_decimal_long_double): Use it.
46820         (scale10_round_decimal_double): New function.
46821         (floorlog10): New function.
46822         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
46823         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
46824         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46825         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46826         gl_PRINTF_ENOMEM and test its result. Invoke
46827         gl_PREREQ_VASNPRINTF_ENOMEM.
46828         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46829         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46830         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46831         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46832         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46833         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46834         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46835         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
46836         * modules/snprintf-posix (Depends-on): Likewise.
46837         * modules/sprintf-posix (Depends-on): Likewise.
46838         * modules/vasnprintf-posix (Depends-on): Likewise.
46839         * modules/vasprintf-posix (Depends-on): Likewise.
46840         * modules/vfprintf-posix (Depends-on): Likewise.
46841         * modules/vsnprintf-posix (Depends-on): Likewise.
46842         * modules/vsprintf-posix (Depends-on): Likewise.
46843         * doc/functions/fprintf.texi: Update.
46844         * doc/functions/printf.texi: Update.
46845         * doc/functions/snprintf.texi: Update.
46846         * doc/functions/sprintf.texi: Update.
46847         * doc/functions/vfprintf.texi: Update.
46848         * doc/functions/vprintf.texi: Update.
46849         * doc/functions/vsnprintf.texi: Update.
46850         * doc/functions/vsprintf.texi: Update.
46851
46852 2007-11-03  Bruno Haible  <bruno@clisp.org>
46853
46854         * modules/frexp-nolibm-tests: New file.
46855
46856         * modules/frexp-nolibm: New file.
46857         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
46858
46859 2007-11-03  Bruno Haible  <bruno@clisp.org>
46860
46861         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
46862         value is C99 compliant.
46863         Needed for OSF/1 5.1.
46864
46865 2007-11-03  Bruno Haible  <bruno@clisp.org>
46866
46867         Fix out-of-memory handling of vasnprintf.
46868         * lib/printf-parse.c: Include <errno.h>.
46869         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
46870         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
46871         is already set.
46872
46873 2007-11-02  Eric Blake  <ebb9@byu.net>
46874
46875         Fix tests on cygwin.
46876         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
46877
46878 2007-11-01  Bruno Haible  <bruno@clisp.org>
46879
46880         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
46881         warning.
46882         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
46883         needed for POSIX compatibility.
46884
46885 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
46886
46887         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
46888         for compatibility with GNU.
46889
46890 2007-11-01  Bruno Haible  <bruno@clisp.org>
46891
46892         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
46893         (putenv): Renamed from rpl_putenv. Change argument type from
46894         'const char *' to 'char *'.
46895         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
46896         of defining putenv in config.h, just set REPLACE_PUTENV.
46897         * modules/putenv (Depends-on): Add stdlib.
46898         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46899         (Include): Use <stdlib.h>.
46900         * lib/stdlib.in.h (putenv): New declaration.
46901         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
46902         REPLACE_PUTENV.
46903         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
46904         REPLACE_PUTENV.
46905         Needed for MacOS X 10.5.0.
46906         Reported by Peter O'Gorman <peter@pogma.com>.
46907
46908 2007-11-01  Jim Meyering  <meyering@redhat.com>
46909
46910         Treat an empty date string exactly like "0".
46911         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
46912         if the remaining date string (to be parsed) is empty, use "0".
46913         Reported by Mischa Molhoek and discussed in this thread:
46914         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
46915
46916 2007-10-31  Bruno Haible  <bruno@clisp.org>
46917
46918         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
46919         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
46920         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
46921         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
46922         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
46923         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
46924
46925 2007-10-31  Bruno Haible  <bruno@clisp.org>
46926
46927         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
46928         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
46929         (AC_TYPE_LONG_LONG_INT): Use it.
46930         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
46931         it as well.
46932         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
46933         to m4/longlong.m4.
46934         * modules/stdint (Files): Remove m4/ulonglong.m4.
46935         * modules/strtoull (Files): Use m4/longlong.m4 instead of
46936         m4/ulonglong.m4.
46937         * modules/strtoumax (Files): Likewise.
46938
46939 2007-10-30  Bruno Haible  <bruno@clisp.org>
46940
46941         * modules/xvasprintf-posix: New file.
46942         Suggested by Eric Blake.
46943
46944 2007-10-30  Bruno Haible  <bruno@clisp.org>
46945
46946         * modules/xprintf-posix-tests: New file.
46947         * tests/test-xprintf-posix.sh: New file.
46948         * tests/test-xprintf-posix.c: New file.
46949         * tests/test-xfprintf-posix.c: New file.
46950
46951         * modules/xprintf-posix: New file.
46952
46953 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46954
46955         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
46956         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
46957         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
46958
46959 2007-10-29  Bruno Haible  <bruno@clisp.org>
46960
46961         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
46962         contain the special marker '_cv_'.
46963         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46964         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46965         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46966         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
46967         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46968         Reported by Ralf Wildenhues.
46969
46970 2007-10-29  Bruno Haible  <bruno@clisp.org>
46971
46972         * gnulib-tool (func_import): When --lgpl is not specified, set
46973         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
46974         GPLv3.
46975         Reported by Simon Josefsson.
46976
46977 2007-10-28  Bruno Haible  <bruno@clisp.org>
46978
46979         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
46980         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
46981         HAVE_DECL_ISFINITE.
46982         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
46983         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
46984         HAVE_DECL_ISFINITE.
46985
46986 2007-10-28  Bruno Haible  <bruno@clisp.org>
46987
46988         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
46989         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
46990
46991 2007-10-28  Bruno Haible  <bruno@clisp.org>
46992
46993         Fix link errors with Sun C 5.0 on Solaris 10.
46994         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
46995         function is declared but not present in the compiler's libm.
46996         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
46997         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
46998         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
46999         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
47000         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
47001         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
47002         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
47003         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47004         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
47005         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
47006         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
47007         HAVE_DECL_FLOORL.
47008
47009 2007-10-28  Bruno Haible  <bruno@clisp.org>
47010
47011         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
47012         gl_FUNC_FLOORL. Cache the result.
47013         (gl_FUNC_FLOORL): Use it.
47014         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
47015         gl_FUNC_CEILL. Cache the result.
47016         (gl_FUNC_CEILL): Use it.
47017
47018         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
47019         gl_FUNC_FLOOR. Cache the result.
47020         (gl_FUNC_FLOOR): Use it.
47021         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
47022         gl_FUNC_CEIL. Cache the result.
47023         (gl_FUNC_CEIL): Use it.
47024
47025         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
47026         gl_FUNC_FLOORF. Cache the result.
47027         (gl_FUNC_FLOORF): Use it.
47028         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
47029         gl_FUNC_CEILF. Cache the result.
47030         (gl_FUNC_CEILF): Use it.
47031
47032 2007-10-28  Bruno Haible  <bruno@clisp.org>
47033
47034         * gnulib-tool: Allow specifying the LGPL version number through
47035         --lgpl=2 or --lgpl=3.
47036         (func_usage): Document --lgpl with argument.
47037         Handle --lgpl=... arguments.
47038         (func_import): Recognize also gl_LGPL calls with an argument. When
47039         --lgpl=2 is used and the module's license is just LGPL, report an
47040         error. Set sed_transform_lib_file according to the lgpl variable. In
47041         the generated files, use --lgpl or gl_LGPL invocations with argument,
47042         if necessary.
47043         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
47044         an LGPv2+ license.
47045         * doc/gnulib-tool.texi (Modified imports): Update explanation of
47046         gl_LGPL macro.
47047
47048 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47049             Bruno Haible  <bruno@clisp.org>
47050
47051         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
47052         (u16_uctomb_aux): Likewise.
47053         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
47054         !HAVE_INLINE.
47055         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
47056
47057 2007-10-28  Bruno Haible  <bruno@clisp.org>
47058
47059         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
47060         Invoke AM_GETTEXT_OPTION if it exists.
47061         * modules/vasprintf: Likewise.
47062         * modules/verror: Likewise.
47063         * modules/xprintf: Likewise.
47064         * modules/xvasprintf: Likewise.
47065
47066 2007-10-27  Ben Pfaff  <blp@gnu.org>
47067
47068         * lib/math.in.h: Define isfinite macro and prototypes for
47069         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
47070         implementations.
47071         * m4/math_h.m4: New substitutions for isfinite module.
47072         * lib/isfinite.c: New file.
47073         * m4/isfinite.m4: New file.
47074         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
47075         * modules/isfinite: New file.
47076         * modules/isfinite-tests: New file.
47077         * tests/tests-isfinite.c: New file.
47078         * doc/functions/isfinite.texi: Mention isfinite module.
47079         * MODULES.html.sh: Mention new module.
47080
47081 2007-10-27  Ben Pfaff  <blp@gnu.org>
47082
47083         Ralf Wildenhues reported that Tru64 4.0D declares the round
47084         functions but does not have definitions.
47085         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
47086         cannot be found in any library, set the output variable to
47087         "missing" instead of "".
47088         * m4/round.m4: Also use our substitute if we cannot find round in
47089         any library, even if it is declared.
47090         * m4/roundf.m4: Likewise for roundf.
47091         * m4/roundl.m4: Likewise for roundl.
47092         * lib/math.in.h: Undefine roundf, round, roundl before defining
47093         their replacements, to allow for hypothetical systems where these
47094         may be defined as macros but not available in libraries.
47095
47096 2007-10-27  Bruno Haible  <bruno@clisp.org>
47097
47098         * doc/gnulib.texi: Invoke @firstparagraphindent.
47099         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
47100         changes in gnulib.
47101         (Source changes): New section.
47102
47103 2007-10-26  Bruno Haible  <bruno@clisp.org>
47104
47105         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
47106         borrowed from autoconf.
47107
47108 2007-10-26  Bruno Haible  <bruno@clisp.org>
47109
47110         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
47111         strerror returned the empty string. Needed on HP-UX 11.00.
47112
47113 2007-10-24  Micah Cowan  <micah@cowan.name>
47114
47115         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
47116         * build-aux/bootstrap: Remove support for now-unnecessary option,
47117         --cvs-user, and envvars CVS_USER, CVS_RSH.
47118
47119 2007-10-24  Jim Meyering  <meyering@redhat.com>
47120
47121         Avoid diagnostics from sha1sum when there is no cached checksum.
47122         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
47123         if the po.s1 file hasn't been created yet.
47124
47125         * build-aux/bootstrap: Sync from coreutils:
47126         2007-10-24  Jim Meyering  <meyering@redhat.com>
47127         Get gnulib from the git repository, not from an obsolete cvs one.
47128         * build-aux/bootstrap: Suggestion from Micah Cowan.
47129         2007-10-04  Jim Meyering  <jim@meyering.net>
47130         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
47131         (update_po_files): Work also when there are no .po files in po/.
47132
47133 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47134
47135         * README: Append ".git" to git and cg examples.
47136         Problem reported by Benoit Sigoure.
47137
47138 2007-10-23  Micah Cowan  <micah@cowan.name>
47139
47140         * users.txt: Add wget.
47141
47142 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47143
47144         Fix linking of some unistdio tests on FreeBSD.
47145         * modules/unistdio/u16-vsnprintf-tests
47146         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
47147         * modules/unistdio/u16-vsprintf-tests
47148         (test_u16_vsnprintf1_LDADD): Likewise.
47149         * modules/unistdio/u32-vsnprintf-tests
47150         (test_u32_vsnprintf1_LDADD): Likewise.
47151         * modules/unistdio/u32-vsprintf-tests
47152         (test_u32_vsprintf1_LDADD): Likewise.
47153         * modules/unistdio/u8-vsnprintf-tests
47154         (test_u8_vsnprintf1_LDADD): Likewise.
47155         * modules/unistdio/u8-vsprintf-tests
47156         (test_u8_vsprintf1_LDADD): Likewise.
47157         * modules/unistdio/ulc-vsnprintf-tests
47158         (test_ulc_vsnprintf1_LDADD): Likewise.
47159         * modules/unistdio/ulc-vsprintf-tests
47160         (test_ulc_vsprintf1_LDADD): Likewise.
47161
47162         Fix linking of some uniconv tests on FreeBSD.
47163         * modules/uniconv/u16-conv-from-enc-tests
47164         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
47165         * modules/uniconv/u16-conv-to-enc-tests
47166         (test_u16_conv_to_enc_LDADD): Likewise.
47167         * modules/uniconv/u16-strconv-from-enc-tests
47168         (test_u16_strconv_from_enc_LDADD): Likewise.
47169         * modules/uniconv/u16-strconv-to-enc-tests
47170         (test_u16_strconv_to_enc_LDADD): Likewise.
47171         * modules/uniconv/u32-conv-from-enc-tests
47172         (test_u32_conv_from_enc_LDADD): Likewise.
47173         * modules/uniconv/u32-conv-to-enc-tests
47174         (test_u32_conv_to_enc_LDADD): Likewise.
47175         * modules/uniconv/u32-strconv-from-enc-tests
47176         (test_u32_strconv_from_enc_LDADD): Likewise.
47177         * modules/uniconv/u32-strconv-to-enc-tests
47178         (test_u32_strconv_to_enc_LDADD): Likewise.
47179         * modules/uniconv/u8-conv-from-enc-tests
47180         (test_u8_conv_from_enc_LDADD): Likewise.
47181         * modules/uniconv/u8-conv-to-enc-tests
47182         (test_u8_conv_to_enc_LDADD): Likewise.
47183         * modules/uniconv/u8-strconv-from-enc-tests
47184         (test_u8_strconv_from_enc_LDADD): Likewise.
47185         * modules/uniconv/u8-strconv-to-enc-tests
47186         (test_u8_strconv_to_enc_LDADD): Likewise.
47187
47188 2007-10-22  Bruno Haible  <bruno@clisp.org>
47189
47190         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
47191         size.
47192
47193 2007-10-22  Eric Blake  <ebb9@byu.net>
47194
47195         Tweak x*printf documentation.
47196         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
47197         variable name and comments.
47198         Suggested by Bruno Haible.
47199
47200 2007-10-22  Bruno Haible  <bruno@clisp.org>
47201
47202         * lib/acl.c (copy_acl): Fix file name in comment.
47203
47204 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47205
47206         Fix Tru64 problem with stdbool.h.
47207         * lib/stdbool.in.h (false, true):
47208         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
47209         Don't declare as an enum in this situation; it runs afoul of Tru64.
47210         Problem reported by Steven M. Schweda in
47211         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
47212
47213 2007-10-22  Eric Blake  <ebb9@byu.net>
47214
47215         Also wrap vf?printf.
47216         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
47217         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
47218         (xvprintf, xvfprintf): New functions.
47219
47220 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47221
47222         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
47223         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
47224
47225         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
47226         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
47227
47228 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47229
47230         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
47231         by Bruno Haible.
47232
47233 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47234
47235         * lib/getloadavg.c
47236         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
47237         Undef `sys' after including sys/table.h, for Tru64 4.0D.
47238
47239         * tests/test-i-ring.c: Work for C89.
47240
47241 2007-10-22  Bruno Haible  <bruno@clisp.org>
47242
47243         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
47244         -1u, in preprocessor expression, so that we don't test for the bug
47245         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
47246         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
47247
47248 2007-10-22  Eric Blake  <ebb9@byu.net>
47249
47250         * tests/test-yesno.sh: Silence stderr during test.
47251
47252 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47253
47254         * modules/crypto/gc-camellia: New file.
47255
47256         * m4/gc-camellia.m4: New file.
47257
47258         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
47259
47260         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
47261
47262 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47263
47264         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
47265         --help to stdout.  Reported by sms@antinode.org (Steven
47266         M. Schweda).
47267
47268 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47269
47270         * users.txt: Fix link to libksba.
47271
47272 2007-10-21  Ben Pfaff  <blp@gnu.org>
47273
47274         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
47275         round.c roundf implementation that depends on floorf and ceilf to
47276         be tested unconditionally.
47277
47278 2007-10-21  Ben Pfaff  <blp@gnu.org>
47279
47280         * m4/check-libm-func.m4: Removed.
47281         * m4/check-math-lib.m4: New file.
47282         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
47283         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
47284         definition and lack of AC_LIBOBJ([roundf]).
47285         * m4/roundl.m4: Ditto, and similarly for roundl.
47286         * modules/round: Reference new m4 file.
47287         * modules/roundf: Ditto.
47288         * modules/roundl: Ditto.
47289         * tests/test-round2.c (main): Use ROUND instead of round.
47290         Bug report from Bruno Haible.
47291
47292 2007-10-21  Bruno Haible  <bruno@clisp.org>
47293
47294         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
47295         context.
47296
47297 2007-10-21  Bruno Haible  <bruno@clisp.org>
47298
47299         * tests/test-wcwidth.c (main): Allow negative result for some control
47300         characters.
47301
47302         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
47303         Needed on OSF/1 5.1.
47304
47305 2007-10-21  Bruno Haible  <bruno@clisp.org>
47306
47307         * tests/test-floorf1.c: Include isnanf.h.
47308         (main): Use isnanf() instead of isnan().
47309         * tests/test-ceilf1.c: Include isnanf.h.
47310         (main): Use isnanf() instead of isnan().
47311         * tests/test-truncf1.c: Include isnanf.h.
47312         (main): Use isnanf() instead of isnan().
47313         * tests/test-roundf1.c: Include isnanf.h.
47314         (main): Use isnanf() instead of isnan().
47315
47316 2007-10-21  Eric Blake  <ebb9@byu.net>
47317
47318         * users.txt: Update URL for m4.
47319
47320 2007-10-21  Bruno Haible  <bruno@clisp.org>
47321
47322         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
47323
47324 2007-10-21  Bruno Haible  <bruno@clisp.org>
47325
47326         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
47327         Git's management files if the CVS files are not present.
47328
47329 2007-10-20  Bruno Haible  <bruno@clisp.org>
47330
47331         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
47332         gcc-3.4.x.
47333
47334 2007-10-20  Ben Pfaff  <blp@gnu.org>
47335
47336         * lib/math.in.h: Declare round, roundf, roundl if we are providing
47337         implementations.
47338         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
47339         * lib/round.c: New file.
47340         * lib/roundf.c: New file.
47341         * lib/roundl.c: New file.
47342         * m4/round.m4: New file.
47343         * m4/roundf.m4: New file.
47344         * m4/roundl.m4: New file.
47345         * m4/check-libm-func-m4: New file.
47346         * modules/math: Replace round, roundf, roundl related @VARS@ in
47347         math.in.h.
47348         * modules/round: New file.
47349         * modules/round-tests: New file.
47350         * modules/roundf: New file.
47351         * modules/roundf-tests: New file.
47352         * modules/roundl: New file.
47353         * modules/roundl-tests: New file.
47354         * tests/test-round1.c: New file.
47355         * tests/test-round2.c: New file.
47356         * tests/test-roundf1.c: New file.
47357         * tests/test-roundf2.c: New file.
47358         * tests/test-roundl.c: New file.
47359         * doc/functions/round.texi: Mention round module.
47360         * doc/functions/roundf.texi: Mention roundf module.
47361         * doc/functions/roundl.texi: Mention roundl module.
47362         * MODULES.html.sh: Mention new modules.
47363         Thanks to Bruno Haible for suggestions.
47364
47365 2007-10-20  Jim Meyering  <meyering@redhat.com>
47366
47367         * lib/xprintf.c: Include <config.h> unconditionally.
47368
47369         Change xprintf's license to GPL.
47370         * modules/xprintf (License): s/LGPL/GPL/, since this module
47371         depends on modules (exit and exitfail) which are GPL.
47372         Suggestion from Bruno Haible.
47373
47374         xprintf fixes.
47375         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
47376         Use a clearer diagnostic.
47377         Patch from Bruno Haible.
47378
47379 2007-10-20  Bruno Haible  <bruno@clisp.org>
47380
47381         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
47382         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
47383         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47384
47385 2007-10-20  Bruno Haible  <bruno@clisp.org>
47386
47387         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
47388         precision in the comparison result > x - 1 or similar.
47389         * tests/test-ceilf2.c (correct_result_p): Likewise.
47390         * tests/test-truncf2.c (correct_result_p): Likewise.
47391         * tests/test-trunc2.c (correct_result_p): Likewise.
47392         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47393
47394 2007-10-20  Bruno Haible  <bruno@clisp.org>
47395
47396         * modules/ceil: New file.
47397         * m4/ceil.m4: New file.
47398         * doc/functions/ceil.texi: Mention the 'ceil' module.
47399
47400 2007-10-20  Bruno Haible  <bruno@clisp.org>
47401
47402         * modules/floor: New file.
47403         * m4/floor.m4: New file.
47404         * doc/functions/floor.texi: Mention the 'floor' module.
47405
47406 2007-10-20  Bruno Haible  <bruno@clisp.org>
47407
47408         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
47409         of %a.
47410         * modules/floorf-tests (Depends-on): Likewise.
47411         * modules/truncf-tests (Depends-on): Likewise.
47412         * modules/trunc-tests (Depends-on): Likewise.
47413         Reported by Ben Pfaff.
47414
47415 2007-10-19  Jim Meyering  <meyering@redhat.com>
47416
47417         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
47418         Don't bother testing specific errno values.  Just test ferror.
47419
47420         New module: xprintf
47421         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
47422
47423 2007-10-19  Bruno Haible  <bruno@clisp.org>
47424
47425         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
47426         syntax.
47427         * modules/javaexec (Makefile.am): Likewise.
47428         * modules/relocatable-prog (Makefile.am): Likewise.
47429         Suggested by Jim Meyering.
47430
47431 2007-10-18  Bruno Haible  <bruno@clisp.org>
47432
47433         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
47434         Reported by Jim Meyering.
47435
47436 2007-10-18  Eric Blake  <ebb9@byu.net>
47437
47438         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
47439
47440 2007-10-18  Bruno Haible  <bruno@clisp.org>
47441
47442         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
47443         the format string into writable memory. Needed in Fortify conditions.
47444
47445 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
47446             Bruno Haible  <bruno@clisp.org>
47447
47448         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
47449         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
47450         * modules/trim (Depends-on): Add mbchar.
47451         (configure.ac): Add gl_FUNC_MBRTOWC.
47452         (Makefile.am): Augment lib_SOURCES.
47453
47454 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
47455
47456         Modify glob.c to use fstatat and dirfd, to simplify it.
47457         Suggested by Eric Blake.
47458         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
47459         Don't include <stdbool.h>; not used.
47460         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
47461         (link_exists_p): Simplify implementation, since we can now assume
47462         dirfd and fstatat.
47463         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
47464
47465 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47466
47467         * gnulib-tool (func_get_dependencies): Fix sed script to
47468         match only tests.
47469
47470 2007-10-17  Bruno Haible  <bruno@clisp.org>
47471
47472         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
47473         allow locale names without encoding suffix.
47474         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
47475         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47476
47477 2007-10-16  Bruno Haible  <bruno@clisp.org>
47478
47479         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
47480         * lib/getgroups.c (getgroups): Likewise.
47481         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
47482
47483 2007-10-16  Bruno Haible  <bruno@clisp.org>
47484
47485         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
47486         * modules/malloc-posix (License): Likewise.
47487         * modules/realloc-posix (License): Likewise.
47488         * modules/calloc-posix (License): Likewise.
47489         * modules/intprops (License): Change from GPL to LGPL, with
47490         Paul Eggert's approval.
47491
47492 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47493
47494         Merge glibc changes into lib/glob.c.
47495
47496         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
47497         2007-10-15 04:59:03 UTC.  Here are the changes:
47498
47499         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
47500
47501         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
47502
47503         * lib/glob.c: Add some branch prediction throughout.
47504
47505         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
47506
47507         [BZ #5103]
47508         * lib/glob.c (glob): Recognize patterns starting \/.
47509
47510         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
47511
47512         [BZ #3996]
47513         * lib/glob.c (attribute_hidden): Define if not defined.
47514         (glob): Unescape dirname, filename or username when needed and not
47515         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
47516         is NULL.  Handle unescaped [ in pattern without closing ].
47517         Don't pass GLOB_CHECK down to recursive glob for directories.
47518         (__glob_pattern_type): New function.
47519         (__glob_pattern_p): Implement using __glob_pattern_type.
47520         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
47521         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
47522         Remove unreachable code.
47523
47524         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
47525
47526         * lib/glob.c (glob_in_dir): Add some comments and asserts to
47527         explain why there are no leaks.
47528
47529         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
47530
47531         [BZ #3253]
47532         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
47533         time, rather allocate increasingly bigger arrays of pointers, if
47534         possible with alloca, if too large with malloc.
47535
47536 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47537
47538         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
47539         Problem reported by H.Merijn Brand in
47540         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
47541         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
47542         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
47543
47544 2007-10-15  Bruno Haible  <bruno@clisp.org>
47545
47546         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
47547         with explicit rpl_ prefix.
47548         * lib/fopen.c (fopen): Likewise.
47549         * lib/freopen.c (freopen): Likewise.
47550         * lib/iconv.c (iconv): Likewise.
47551         * lib/iconv_close.c (iconv_close): Likewise.
47552
47553 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47554
47555         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
47556
47557 2007-10-15  Bruno Haible  <bruno@clisp.org>
47558
47559         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
47560         <stddef.h> instead of <stdlib.h> since we only need NULL.
47561         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47562
47563 2007-10-15  Bruno Haible  <bruno@clisp.org>
47564
47565         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
47566         Replace paragraph talking about LIBOBJS.
47567         Reported by Colin Watson <cjwatson@debian.org>.
47568
47569 2007-10-15  Bruno Haible  <bruno@clisp.org>
47570
47571         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
47572         <stdlib.h> before using NULL.
47573
47574 2007-10-15  Simon Josefsson  <simon@josefsson.org>
47575
47576         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
47577         Reported by Albert Chin <china@thewrittenword.com>.
47578
47579 2007-10-14  Bruno Haible  <bruno@clisp.org>
47580
47581         * modules/iconv_open-utf-tests: New file.
47582         * tests/test-iconv-utf.c: New file.
47583
47584         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
47585         * modules/iconv_open-utf: New file.
47586         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
47587         (iconv, iconv_close): New declarations.
47588         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
47589         be defined.
47590         (iconv_open): Add special handling of conversion between UTF-8 and
47591         UTF-{16,32}{BE,LE}.
47592         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
47593         * lib/iconv_close.c: New file.
47594         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
47595         gl_FUNC_ICONV_OPEN.
47596         (gl_FUNC_ICONV_OPEN): Use it.
47597         (gl_FUNC_ICONV_OPEN_UTF): New macro.
47598         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
47599         and REPLACE_ICONV_UTF.
47600         * modules/iconv_open (Depends-on): Add c-strcase.
47601         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
47602         ICONV_CONST.
47603         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
47604
47605 2007-10-13  Albert Chin  <china@thewrittenword.com>
47606             Bruno Haible  <bruno@clisp.org>
47607
47608         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
47609         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
47610
47611 2007-10-13  Bruno Haible  <bruno@clisp.org>
47612
47613         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
47614         defined, use the ISO C99 inline semantics.
47615         * lib/argp.h (ARGP_EI): Likewise.
47616
47617 2007-10-13  Bruno Haible  <bruno@clisp.org>
47618
47619         Handle 'inline' change in gcc 4.3.0.
47620         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
47621         argp_fmtstream_write, argp_fmtstream_set_lmargin,
47622         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
47623         argp_fmtstream_point): Disable 'extern' declaration if the function
47624         definition is going to be provided inline.
47625         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
47626         semantics, not the ISO C99 inline semantics.
47627         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
47628         'extern' declaration if the function definition is going to be provided
47629         inline.
47630         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
47631         the GNU C inline semantics, not the ISO C99 inline semantics. With
47632         GCC 4.2, avoid a warning.
47633
47634 2007-10-13  Bruno Haible  <bruno@clisp.org>
47635
47636         * lib/freading.h (freading): Enable the use of __freading for
47637         glibc >= 2.7.
47638         * lib/freading.c (freading): Likewise.
47639
47640 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47641
47642         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
47643         "warning: C99 inline functions are not supported; using GNU89".
47644
47645 2007-10-12  Bruno Haible  <bruno@clisp.org>
47646
47647         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
47648         of 2.
47649         * tests/test-ceilf2.c: New file.
47650         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
47651
47652         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
47653         * modules/ceilf-tests: Update.
47654
47655 2007-10-12  Bruno Haible  <bruno@clisp.org>
47656
47657         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
47658         of 2.
47659         * tests/test-floorf2.c: New file.
47660         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
47661
47662         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
47663         * modules/floorf-tests: Update.
47664
47665 2007-10-12  Bruno Haible  <bruno@clisp.org>
47666
47667         * tests/test-trunc2.c: New file.
47668         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
47669
47670         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
47671         * modules/trunc-tests: Update.
47672
47673 2007-10-12  Bruno Haible  <bruno@clisp.org>
47674
47675         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
47676         of 2.
47677         * tests/test-truncf2.c: New file.
47678         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
47679
47680         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
47681         * modules/truncf-tests: Update.
47682
47683 2007-10-11  Eric Blake  <ebb9@byu.net>
47684
47685         Don't claim strerror is broken on Interix.
47686         * doc/functions/strerror.texi (strerror): Known broken systems are
47687         now Solaris 8, and not Interix.
47688         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
47689         Interix on cross-compile.
47690         Reported by Martin Koeppe in
47691         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
47692
47693 2007-10-11  Bruno Haible  <bruno@clisp.org>
47694
47695         * modules/i-ring-tests: New file.
47696         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
47697         instead of assert.
47698
47699 2007-10-11  Bruno Haible  <bruno@clisp.org>
47700
47701         * modules/filenamecat-tests: New file.
47702         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
47703         * lib/filenamecat.c: Remove test code.
47704
47705 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47706
47707         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
47708
47709         * lib/strerror.c: Include <string.h> always, to test interface,
47710         and to remove the need for the dummy.
47711         Include intprops.h to compute width instead of doing it ourselves
47712         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
47713         (strerror): Define it to return NULL if there's no system strerror.
47714         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
47715         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
47716         ancient pre-strerror Unix systems well any more.  Saying "unknown
47717         system error" is enough.
47718         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
47719         simpler strerror.c implementation.
47720         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
47721         Simplify the tests to reflect the simpler strerror implementation.
47722         * modules/strerror (Depends-on): Add intprops.
47723
47724 2007-10-09  Eric Blake  <ebb9@byu.net>
47725
47726         Silence test-fpending.
47727         * modules/fpending-tests (Files): Add wrapper script.
47728         * tests/test-fpending.sh: New file.
47729
47730 2007-10-09  Bruno Haible  <bruno@clisp.org>
47731
47732         * MODULES.html.sh (func_module): Don't create a hyperlink for
47733         function names like 'printf_frexp'.
47734         (Misc): Add crc, memxor.
47735         (Characteristics of floating types): New section.
47736         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
47737         isnanf-nolibm, signbit, trunc, truncf, truncl.
47738         (Enhancements for ISO C 99 functions): New subsection Input/output.
47739         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
47740         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
47741         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
47742         (Compatibility checks for POSIX:2001 functions): Add clock-time.
47743         (Enhancements for POSIX:2001 functions): Add chdir-long.
47744         (File system functions): Add areadlink, chdir-safer, read-file.
47745         Remove cycle-check.
47746         (File system as inode set): New section.
47747         (Date and time): Add gethrxtime.
47748         (Multithreading): Add openmp.
47749         (Internationalization functions): Add localename.
47750         (Unicode string functions): Add unistr/u*-mbsnlen.
47751         (Support for maintaining and releasing projects): Add git-version-gen.
47752         (Lone files): Remove directories.
47753
47754 2007-10-08  Ben Pfaff  <blp@gnu.org>
47755
47756         * lib/xmalloca.h: Fix typo in comment.
47757
47758 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47759
47760         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
47761         when avoiding problems with integer overflow.  Use a portable test
47762         instead.
47763
47764 2007-10-08  Simon Josefsson  <simon@josefsson.org>
47765
47766         * modules/dummy (License): Change to LGPLv2+.
47767         * modules/float (License): Likewise
47768         * modules/realloc (License): Likewise
47769         * modules/stdlib (License): Likewise
47770
47771 2007-10-07  Bruno Haible  <bruno@clisp.org>
47772
47773         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
47774         * floor.c (TWO_MANT_DIG): Likewise.
47775         * ceil.c (TWO_MANT_DIG): Likewise.
47776         Reported by Ben Pfaff.
47777
47778 2007-10-07  Bruno Haible  <bruno@clisp.org>
47779
47780         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
47781         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
47782         * lib/frexp.c (FUNC): Likewise.
47783         * lib/printf-frexp.h (printf_frexp): Likewise.
47784         * lib/printf-frexpl.h (printf_frexpl): Likewise.
47785         * lib/printf-frexp.c (FUNC): Likewise.
47786         Suggested by Jim Meyering.
47787
47788 2007-10-07  Jim Meyering  <meyering@redhat.com>
47789
47790         Make xnanosleep's integer overflow test more robust.
47791         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
47792         so that gcc-4.3.0 doesn't optimize away this test for overflow.
47793
47794 2007-10-07  Bruno Haible  <bruno@clisp.org>
47795
47796         * NEWS: Mention the license change.
47797
47798         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
47799         abbreviations in the modules files.
47800
47801         Change copyright notice from GPLv2+ to GPLv3+.
47802         * README: Change copyright notice.
47803         * MODULES.html.sh: Likewise.
47804         * build-aux/bootstrap.conf: Likewise.
47805         * build-aux/config.libpath: Likewise.
47806         * build-aux/csharpcomp.sh.in: Likewise.
47807         * build-aux/csharpexec.sh.in: Likewise.
47808         * build-aux/install-reloc: Likewise.
47809         * build-aux/javacomp.sh.in: Likewise.
47810         * build-aux/javaexec.sh.in: Likewise.
47811         * build-aux/ldd.sh.in: Likewise.
47812         * build-aux/reloc-ldflags: Likewise.
47813         * build-aux/relocatable.sh.in: Likewise.
47814         * build-aux/x-to-1.in: Likewise.
47815         * check-module: Likewise.
47816         * config/srclistvars.sh: Likewise.
47817         * gnulib-tool: Likewise.
47818         * lib/acl-internal.h: Likewise.
47819         * lib/acl.c: Likewise.
47820         * lib/acl.h: Likewise.
47821         * lib/acl_entries.c: Likewise.
47822         * lib/areadlink-with-size.c: Likewise.
47823         * lib/areadlink.c: Likewise.
47824         * lib/areadlink.h: Likewise.
47825         * lib/argmatch.c: Likewise.
47826         * lib/argmatch.h: Likewise.
47827         * lib/argp-ba.c: Likewise.
47828         * lib/argp-eexst.c: Likewise.
47829         * lib/argp-fmtstream.c: Likewise.
47830         * lib/argp-fmtstream.h: Likewise.
47831         * lib/argp-fs-xinl.c: Likewise.
47832         * lib/argp-help.c: Likewise.
47833         * lib/argp-namefrob.h: Likewise.
47834         * lib/argp-parse.c: Likewise.
47835         * lib/argp-pin.c: Likewise.
47836         * lib/argp-pv.c: Likewise.
47837         * lib/argp-pvh.c: Likewise.
47838         * lib/argp-xinl.c: Likewise.
47839         * lib/argp.h: Likewise.
47840         * lib/at-func.c: Likewise.
47841         * lib/atanl.c: Likewise.
47842         * lib/backupfile.c: Likewise.
47843         * lib/backupfile.h: Likewise.
47844         * lib/basename.c: Likewise.
47845         * lib/binary-io.h: Likewise.
47846         * lib/byteswap.in.h: Likewise.
47847         * lib/c-stack.c: Likewise.
47848         * lib/c-stack.h: Likewise.
47849         * lib/c-strcasestr.c: Likewise.
47850         * lib/c-strcasestr.h: Likewise.
47851         * lib/c-strstr.c: Likewise.
47852         * lib/c-strstr.h: Likewise.
47853         * lib/c-strtod.c: Likewise.
47854         * lib/calloc.c: Likewise.
47855         * lib/canon-host.c: Likewise.
47856         * lib/canon-host.h: Likewise.
47857         * lib/canonicalize-lgpl.c: Likewise.
47858         * lib/canonicalize.c: Likewise.
47859         * lib/canonicalize.h: Likewise.
47860         * lib/ceil.c: Likewise.
47861         * lib/ceilf.c: Likewise.
47862         * lib/ceill.c: Likewise.
47863         * lib/chdir-long.c: Likewise.
47864         * lib/chdir-long.h: Likewise.
47865         * lib/chdir-safer.c: Likewise.
47866         * lib/chdir-safer.h: Likewise.
47867         * lib/chown.c: Likewise.
47868         * lib/classpath.c: Likewise.
47869         * lib/classpath.h: Likewise.
47870         * lib/clean-temp.c: Likewise.
47871         * lib/clean-temp.h: Likewise.
47872         * lib/cloexec.c: Likewise.
47873         * lib/close-stream.c: Likewise.
47874         * lib/closein.c: Likewise.
47875         * lib/closein.h: Likewise.
47876         * lib/closeout.c: Likewise.
47877         * lib/closeout.h: Likewise.
47878         * lib/concat-filename.c: Likewise.
47879         * lib/copy-file.c: Likewise.
47880         * lib/copy-file.h: Likewise.
47881         * lib/count-one-bits.h: Likewise.
47882         * lib/crc.c: Likewise.
47883         * lib/crc.h: Likewise.
47884         * lib/creat-safer.c: Likewise.
47885         * lib/csharpcomp.c: Likewise.
47886         * lib/csharpcomp.h: Likewise.
47887         * lib/csharpexec.c: Likewise.
47888         * lib/csharpexec.h: Likewise.
47889         * lib/cycle-check.c: Likewise.
47890         * lib/cycle-check.h: Likewise.
47891         * lib/diacrit.c: Likewise.
47892         * lib/diacrit.h: Likewise.
47893         * lib/diffseq.h: Likewise.
47894         * lib/dirchownmod.c: Likewise.
47895         * lib/dirent.in.h: Likewise.
47896         * lib/dirfd.c: Likewise.
47897         * lib/dirfd.h: Likewise.
47898         * lib/dirname.c: Likewise.
47899         * lib/dirname.h: Likewise.
47900         * lib/dummy.c: Likewise.
47901         * lib/dup-safer.c: Likewise.
47902         * lib/dup2.c: Likewise.
47903         * lib/eealloc.h: Likewise.
47904         * lib/error.c: Likewise.
47905         * lib/error.h: Likewise.
47906         * lib/euidaccess.c: Likewise.
47907         * lib/exclude.c: Likewise.
47908         * lib/exclude.h: Likewise.
47909         * lib/execute.c: Likewise.
47910         * lib/execute.h: Likewise.
47911         * lib/exitfail.c: Likewise.
47912         * lib/exitfail.h: Likewise.
47913         * lib/expl.c: Likewise.
47914         * lib/fatal-signal.c: Likewise.
47915         * lib/fatal-signal.h: Likewise.
47916         * lib/fbufmode.c: Likewise.
47917         * lib/fbufmode.h: Likewise.
47918         * lib/fchdir.c: Likewise.
47919         * lib/fchmodat.c: Likewise.
47920         * lib/fchownat.c: Likewise.
47921         * lib/fcntl--.h: Likewise.
47922         * lib/fcntl-safer.h: Likewise.
47923         * lib/fcntl.in.h: Likewise.
47924         * lib/fd-safer.c: Likewise.
47925         * lib/fflush.c: Likewise.
47926         * lib/file-has-acl.c: Likewise.
47927         * lib/file-set.c: Likewise.
47928         * lib/file-type.c: Likewise.
47929         * lib/file-type.h: Likewise.
47930         * lib/fileblocks.c: Likewise.
47931         * lib/filemode.c: Likewise.
47932         * lib/filemode.h: Likewise.
47933         * lib/filename.h: Likewise.
47934         * lib/filenamecat.c: Likewise.
47935         * lib/filenamecat.h: Likewise.
47936         * lib/findprog.c: Likewise.
47937         * lib/findprog.h: Likewise.
47938         * lib/float.in.h: Likewise.
47939         * lib/floor.c: Likewise.
47940         * lib/floorf.c: Likewise.
47941         * lib/floorl.c: Likewise.
47942         * lib/fopen-safer.c: Likewise.
47943         * lib/fopen.c: Likewise.
47944         * lib/fpending.c: Likewise.
47945         * lib/fpending.h: Likewise.
47946         * lib/fprintf.c: Likewise.
47947         * lib/fprintftime.h: Likewise.
47948         * lib/fpucw.h: Likewise.
47949         * lib/fpurge.c: Likewise.
47950         * lib/fpurge.h: Likewise.
47951         * lib/freadable.c: Likewise.
47952         * lib/freadable.h: Likewise.
47953         * lib/freadahead.c: Likewise.
47954         * lib/freadahead.h: Likewise.
47955         * lib/freading.c: Likewise.
47956         * lib/freading.h: Likewise.
47957         * lib/free.c: Likewise.
47958         * lib/freopen.c: Likewise.
47959         * lib/frexp.c: Likewise.
47960         * lib/frexpl.c: Likewise.
47961         * lib/fseek.c: Likewise.
47962         * lib/fseterr.c: Likewise.
47963         * lib/fseterr.h: Likewise.
47964         * lib/fstatat.c: Likewise.
47965         * lib/fstrcmp.c: Likewise.
47966         * lib/fstrcmp.h: Likewise.
47967         * lib/fsusage.c: Likewise.
47968         * lib/fsusage.h: Likewise.
47969         * lib/ftell.c: Likewise.
47970         * lib/ftello.c: Likewise.
47971         * lib/fts-cycle.c: Likewise.
47972         * lib/fts.c: Likewise.
47973         * lib/fts_.h: Likewise.
47974         * lib/full-read.c: Likewise.
47975         * lib/full-read.h: Likewise.
47976         * lib/full-write.c: Likewise.
47977         * lib/full-write.h: Likewise.
47978         * lib/fwritable.c: Likewise.
47979         * lib/fwritable.h: Likewise.
47980         * lib/fwriteerror.c: Likewise.
47981         * lib/fwriteerror.h: Likewise.
47982         * lib/fwriting.c: Likewise.
47983         * lib/fwriting.h: Likewise.
47984         * lib/gcd.c: Likewise.
47985         * lib/gcd.h: Likewise.
47986         * lib/getcwd.c: Likewise.
47987         * lib/getdate.h: Likewise.
47988         * lib/getdate.y: Likewise.
47989         * lib/getdomainname.c: Likewise.
47990         * lib/getdomainname.h: Likewise.
47991         * lib/getgroups.c: Likewise.
47992         * lib/gethostname.c: Likewise.
47993         * lib/gethrxtime.c: Likewise.
47994         * lib/gethrxtime.h: Likewise.
47995         * lib/getloadavg.c: Likewise.
47996         * lib/getndelim2.c: Likewise.
47997         * lib/getndelim2.h: Likewise.
47998         * lib/getnline.c: Likewise.
47999         * lib/getnline.h: Likewise.
48000         * lib/getopt.c: Likewise.
48001         * lib/getopt.in.h: Likewise.
48002         * lib/getopt1.c: Likewise.
48003         * lib/getopt_int.h: Likewise.
48004         * lib/getpagesize.h: Likewise.
48005         * lib/getsubopt.c: Likewise.
48006         * lib/gettime.c: Likewise.
48007         * lib/getugroups.c: Likewise.
48008         * lib/getugroups.h: Likewise.
48009         * lib/getusershell.c: Likewise.
48010         * lib/gl_anyavltree_list1.h: Likewise.
48011         * lib/gl_anyavltree_list2.h: Likewise.
48012         * lib/gl_anyhash_list1.h: Likewise.
48013         * lib/gl_anyhash_list2.h: Likewise.
48014         * lib/gl_anylinked_list1.h: Likewise.
48015         * lib/gl_anylinked_list2.h: Likewise.
48016         * lib/gl_anyrbtree_list1.h: Likewise.
48017         * lib/gl_anyrbtree_list2.h: Likewise.
48018         * lib/gl_anytree_list1.h: Likewise.
48019         * lib/gl_anytree_list2.h: Likewise.
48020         * lib/gl_anytree_oset.h: Likewise.
48021         * lib/gl_anytreehash_list1.h: Likewise.
48022         * lib/gl_anytreehash_list2.h: Likewise.
48023         * lib/gl_array_list.c: Likewise.
48024         * lib/gl_array_list.h: Likewise.
48025         * lib/gl_array_oset.c: Likewise.
48026         * lib/gl_array_oset.h: Likewise.
48027         * lib/gl_avltree_list.c: Likewise.
48028         * lib/gl_avltree_list.h: Likewise.
48029         * lib/gl_avltree_oset.c: Likewise.
48030         * lib/gl_avltree_oset.h: Likewise.
48031         * lib/gl_avltreehash_list.c: Likewise.
48032         * lib/gl_avltreehash_list.h: Likewise.
48033         * lib/gl_carray_list.c: Likewise.
48034         * lib/gl_carray_list.h: Likewise.
48035         * lib/gl_linked_list.c: Likewise.
48036         * lib/gl_linked_list.h: Likewise.
48037         * lib/gl_linkedhash_list.c: Likewise.
48038         * lib/gl_linkedhash_list.h: Likewise.
48039         * lib/gl_list.c: Likewise.
48040         * lib/gl_list.h: Likewise.
48041         * lib/gl_oset.c: Likewise.
48042         * lib/gl_oset.h: Likewise.
48043         * lib/gl_rbtree_list.c: Likewise.
48044         * lib/gl_rbtree_list.h: Likewise.
48045         * lib/gl_rbtree_oset.c: Likewise.
48046         * lib/gl_rbtree_oset.h: Likewise.
48047         * lib/gl_rbtreehash_list.c: Likewise.
48048         * lib/gl_rbtreehash_list.h: Likewise.
48049         * lib/gl_sublist.c: Likewise.
48050         * lib/gl_sublist.h: Likewise.
48051         * lib/group-member.c: Likewise.
48052         * lib/group-member.h: Likewise.
48053         * lib/hard-locale.c: Likewise.
48054         * lib/hard-locale.h: Likewise.
48055         * lib/hash-pjw.c: Likewise.
48056         * lib/hash-pjw.h: Likewise.
48057         * lib/hash-triple.c: Likewise.
48058         * lib/hash.c: Likewise.
48059         * lib/hash.h: Likewise.
48060         * lib/human.c: Likewise.
48061         * lib/human.h: Likewise.
48062         * lib/i-ring.c: Likewise.
48063         * lib/i-ring.h: Likewise.
48064         * lib/idcache.c: Likewise.
48065         * lib/imaxabs.c: Likewise.
48066         * lib/imaxdiv.c: Likewise.
48067         * lib/inet_pton.c: Likewise.
48068         * lib/inet_pton.h: Likewise.
48069         * lib/intprops.h: Likewise.
48070         * lib/inttostr.c: Likewise.
48071         * lib/inttostr.h: Likewise.
48072         * lib/inttypes.in.h: Likewise.
48073         * lib/isapipe.c: Likewise.
48074         * lib/isdir.c: Likewise.
48075         * lib/isnan.c: Likewise.
48076         * lib/isnan.h: Likewise.
48077         * lib/isnanf.c: Likewise.
48078         * lib/isnanf.h: Likewise.
48079         * lib/isnanl-nolibm.h: Likewise.
48080         * lib/isnanl.c: Likewise.
48081         * lib/isnanl.h: Likewise.
48082         * lib/javacomp.c: Likewise.
48083         * lib/javacomp.h: Likewise.
48084         * lib/javaexec.c: Likewise.
48085         * lib/javaexec.h: Likewise.
48086         * lib/javaversion.c: Likewise.
48087         * lib/javaversion.h: Likewise.
48088         * lib/javaversion.java: Likewise.
48089         * lib/lbrkprop.h: Likewise.
48090         * lib/lchmod.h: Likewise.
48091         * lib/lchown.c: Likewise.
48092         * lib/ldexpl.c: Likewise.
48093         * lib/linebreak.c: Likewise.
48094         * lib/linebreak.h: Likewise.
48095         * lib/linebuffer.c: Likewise.
48096         * lib/linebuffer.h: Likewise.
48097         * lib/locale.in.h: Likewise.
48098         * lib/logl.c: Likewise.
48099         * lib/long-options.c: Likewise.
48100         * lib/long-options.h: Likewise.
48101         * lib/lstat.c: Likewise.
48102         * lib/lstat.h: Likewise.
48103         * lib/math.in.h: Likewise.
48104         * lib/mbchar.c: Likewise.
48105         * lib/mbchar.h: Likewise.
48106         * lib/mbfile.h: Likewise.
48107         * lib/mbiter.h: Likewise.
48108         * lib/mbscasecmp.c: Likewise.
48109         * lib/mbscasestr.c: Likewise.
48110         * lib/mbschr.c: Likewise.
48111         * lib/mbscspn.c: Likewise.
48112         * lib/mbslen.c: Likewise.
48113         * lib/mbsncasecmp.c: Likewise.
48114         * lib/mbsnlen.c: Likewise.
48115         * lib/mbspbrk.c: Likewise.
48116         * lib/mbspcasecmp.c: Likewise.
48117         * lib/mbsrchr.c: Likewise.
48118         * lib/mbssep.c: Likewise.
48119         * lib/mbsspn.c: Likewise.
48120         * lib/mbsstr.c: Likewise.
48121         * lib/mbstok_r.c: Likewise.
48122         * lib/mbswidth.c: Likewise.
48123         * lib/mbswidth.h: Likewise.
48124         * lib/mbuiter.h: Likewise.
48125         * lib/memcasecmp.c: Likewise.
48126         * lib/memcasecmp.h: Likewise.
48127         * lib/memchr.c: Likewise.
48128         * lib/memcmp.c: Likewise.
48129         * lib/memcoll.c: Likewise.
48130         * lib/memcoll.h: Likewise.
48131         * lib/memcpy.c: Likewise.
48132         * lib/memrchr.c: Likewise.
48133         * lib/mkancesdirs.c: Likewise.
48134         * lib/mkdir-p.c: Likewise.
48135         * lib/mkdir-p.h: Likewise.
48136         * lib/mkdir.c: Likewise.
48137         * lib/mkdirat.c: Likewise.
48138         * lib/mkdtemp.c: Likewise.
48139         * lib/mkstemp-safer.c: Likewise.
48140         * lib/mkstemp.c: Likewise.
48141         * lib/modechange.c: Likewise.
48142         * lib/modechange.h: Likewise.
48143         * lib/mountlist.c: Likewise.
48144         * lib/mountlist.h: Likewise.
48145         * lib/mpsort.c: Likewise.
48146         * lib/nanosleep.c: Likewise.
48147         * lib/obstack.c: Likewise.
48148         * lib/obstack.h: Likewise.
48149         * lib/open-safer.c: Likewise.
48150         * lib/open.c: Likewise.
48151         * lib/openat-die.c: Likewise.
48152         * lib/openat-priv.h: Likewise.
48153         * lib/openat-proc.c: Likewise.
48154         * lib/openat.c: Likewise.
48155         * lib/openat.h: Likewise.
48156         * lib/pagealign_alloc.c: Likewise.
48157         * lib/pagealign_alloc.h: Likewise.
48158         * lib/physmem.c: Likewise.
48159         * lib/physmem.h: Likewise.
48160         * lib/pipe-safer.c: Likewise.
48161         * lib/pipe.c: Likewise.
48162         * lib/pipe.h: Likewise.
48163         * lib/posixtm.c: Likewise.
48164         * lib/posixtm.h: Likewise.
48165         * lib/posixver.c: Likewise.
48166         * lib/printf-frexp.c: Likewise.
48167         * lib/printf-frexp.h: Likewise.
48168         * lib/printf-frexpl.c: Likewise.
48169         * lib/printf-frexpl.h: Likewise.
48170         * lib/printf.c: Likewise.
48171         * lib/progname.c: Likewise.
48172         * lib/progname.h: Likewise.
48173         * lib/progreloc.c: Likewise.
48174         * lib/putenv.c: Likewise.
48175         * lib/quote.c: Likewise.
48176         * lib/quote.h: Likewise.
48177         * lib/quotearg.c: Likewise.
48178         * lib/quotearg.h: Likewise.
48179         * lib/raise.c: Likewise.
48180         * lib/readline.c: Likewise.
48181         * lib/readline.h: Likewise.
48182         * lib/readlink.c: Likewise.
48183         * lib/readtokens.c: Likewise.
48184         * lib/readtokens.h: Likewise.
48185         * lib/readtokens0.c: Likewise.
48186         * lib/readtokens0.h: Likewise.
48187         * lib/readutmp.c: Likewise.
48188         * lib/readutmp.h: Likewise.
48189         * lib/realloc.c: Likewise.
48190         * lib/relocwrapper.c: Likewise.
48191         * lib/rename-dest-slash.c: Likewise.
48192         * lib/rename.c: Likewise.
48193         * lib/rmdir.c: Likewise.
48194         * lib/rpmatch.c: Likewise.
48195         * lib/safe-read.c: Likewise.
48196         * lib/safe-read.h: Likewise.
48197         * lib/safe-write.c: Likewise.
48198         * lib/safe-write.h: Likewise.
48199         * lib/same-inode.h: Likewise.
48200         * lib/same.c: Likewise.
48201         * lib/same.h: Likewise.
48202         * lib/save-cwd.c: Likewise.
48203         * lib/save-cwd.h: Likewise.
48204         * lib/savedir.c: Likewise.
48205         * lib/savedir.h: Likewise.
48206         * lib/savewd.c: Likewise.
48207         * lib/savewd.h: Likewise.
48208         * lib/search.in.h: Likewise.
48209         * lib/setenv.c: Likewise.
48210         * lib/setenv.h: Likewise.
48211         * lib/settime.c: Likewise.
48212         * lib/sh-quote.c: Likewise.
48213         * lib/sh-quote.h: Likewise.
48214         * lib/sig2str.c: Likewise.
48215         * lib/sig2str.h: Likewise.
48216         * lib/signal.in.h: Likewise.
48217         * lib/signbitd.c: Likewise.
48218         * lib/signbitf.c: Likewise.
48219         * lib/signbitl.c: Likewise.
48220         * lib/sigprocmask.c: Likewise.
48221         * lib/sincosl.c: Likewise.
48222         * lib/sleep.c: Likewise.
48223         * lib/sprintf.c: Likewise.
48224         * lib/sqrtl.c: Likewise.
48225         * lib/stat-time.h: Likewise.
48226         * lib/stdio--.h: Likewise.
48227         * lib/stdio-safer.h: Likewise.
48228         * lib/stdlib--.h: Likewise.
48229         * lib/stdlib-safer.h: Likewise.
48230         * lib/stdlib.in.h: Likewise.
48231         * lib/stpcpy.c: Likewise.
48232         * lib/stpncpy.c: Likewise.
48233         * lib/strchrnul.c: Likewise.
48234         * lib/strcspn.c: Likewise.
48235         * lib/strerror.c: Likewise.
48236         * lib/strftime.c: Likewise.
48237         * lib/strftime.h: Likewise.
48238         * lib/striconveh.c: Likewise.
48239         * lib/striconveh.h: Likewise.
48240         * lib/striconveha.c: Likewise.
48241         * lib/striconveha.h: Likewise.
48242         * lib/stripslash.c: Likewise.
48243         * lib/strnlen1.c: Likewise.
48244         * lib/strnlen1.h: Likewise.
48245         * lib/strtod.c: Likewise.
48246         * lib/strtoimax.c: Likewise.
48247         * lib/strtok_r.c: Likewise.
48248         * lib/strtol.c: Likewise.
48249         * lib/strtoll.c: Likewise.
48250         * lib/strtoul.c: Likewise.
48251         * lib/strtoull.c: Likewise.
48252         * lib/sysexits.in.h: Likewise.
48253         * lib/tempname.c: Likewise.
48254         * lib/tempname.h: Likewise.
48255         * lib/timespec.h: Likewise.
48256         * lib/tls.c: Likewise.
48257         * lib/tls.h: Likewise.
48258         * lib/tmpdir.c: Likewise.
48259         * lib/tmpdir.h: Likewise.
48260         * lib/tmpfile-safer.c: Likewise.
48261         * lib/tmpfile.c: Likewise.
48262         * lib/trigl.c: Likewise.
48263         * lib/trigl.h: Likewise.
48264         * lib/trim.c: Likewise.
48265         * lib/trim.h: Likewise.
48266         * lib/trunc.c: Likewise.
48267         * lib/truncf.c: Likewise.
48268         * lib/truncl.c: Likewise.
48269         * lib/tsearch.c: Likewise.
48270         * lib/unicodeio.c: Likewise.
48271         * lib/unicodeio.h: Likewise.
48272         * lib/unistd--.h: Likewise.
48273         * lib/unistd-safer.h: Likewise.
48274         * lib/unistdio/ulc-fprintf.c: Likewise.
48275         * lib/unistdio/ulc-vfprintf.c: Likewise.
48276         * lib/unlinkdir.c: Likewise.
48277         * lib/unlinkdir.h: Likewise.
48278         * lib/unlocked-io.h: Likewise.
48279         * lib/unsetenv.c: Likewise.
48280         * lib/userspec.c: Likewise.
48281         * lib/utime.c: Likewise.
48282         * lib/utimecmp.c: Likewise.
48283         * lib/utimecmp.h: Likewise.
48284         * lib/utimens.c: Likewise.
48285         * lib/verify.h: Likewise.
48286         * lib/verror.c: Likewise.
48287         * lib/verror.h: Likewise.
48288         * lib/version-etc-fsf.c: Likewise.
48289         * lib/version-etc.c: Likewise.
48290         * lib/version-etc.h: Likewise.
48291         * lib/vfprintf.c: Likewise.
48292         * lib/vprintf.c: Likewise.
48293         * lib/vsprintf.c: Likewise.
48294         * lib/w32spawn.h: Likewise.
48295         * lib/wait-process.c: Likewise.
48296         * lib/wait-process.h: Likewise.
48297         * lib/wcwidth.c: Likewise.
48298         * lib/write-any-file.c: Likewise.
48299         * lib/xalloc-die.c: Likewise.
48300         * lib/xalloc.h: Likewise.
48301         * lib/xasprintf.c: Likewise.
48302         * lib/xgetcwd.c: Likewise.
48303         * lib/xgetcwd.h: Likewise.
48304         * lib/xgetdomainname.c: Likewise.
48305         * lib/xgetdomainname.h: Likewise.
48306         * lib/xgethostname.c: Likewise.
48307         * lib/xmalloc.c: Likewise.
48308         * lib/xmalloca.c: Likewise.
48309         * lib/xmalloca.h: Likewise.
48310         * lib/xmemcoll.c: Likewise.
48311         * lib/xnanosleep.c: Likewise.
48312         * lib/xreadlink.c: Likewise.
48313         * lib/xreadlink.h: Likewise.
48314         * lib/xsetenv.c: Likewise.
48315         * lib/xsetenv.h: Likewise.
48316         * lib/xstriconv.c: Likewise.
48317         * lib/xstriconv.h: Likewise.
48318         * lib/xstrndup.c: Likewise.
48319         * lib/xstrndup.h: Likewise.
48320         * lib/xstrtod.c: Likewise.
48321         * lib/xstrtod.h: Likewise.
48322         * lib/xstrtol-error.c: Likewise.
48323         * lib/xstrtol.c: Likewise.
48324         * lib/xstrtol.h: Likewise.
48325         * lib/xtime.h: Likewise.
48326         * lib/xvasprintf.c: Likewise.
48327         * lib/xvasprintf.h: Likewise.
48328         * lib/yesno.c: Likewise.
48329         * lib/yesno.h: Likewise.
48330         * posix-modules: Likewise.
48331         * tests/test-alloca-opt.c: Likewise.
48332         * tests/test-arcfour.c: Likewise.
48333         * tests/test-arctwo.c: Likewise.
48334         * tests/test-argmatch.c: Likewise.
48335         * tests/test-argp-2.sh: Likewise.
48336         * tests/test-argp.c: Likewise.
48337         * tests/test-arpa_inet.c: Likewise.
48338         * tests/test-array_list.c: Likewise.
48339         * tests/test-array_oset.c: Likewise.
48340         * tests/test-atexit.c: Likewise.
48341         * tests/test-avltree_list.c: Likewise.
48342         * tests/test-avltree_oset.c: Likewise.
48343         * tests/test-avltreehash_list.c: Likewise.
48344         * tests/test-base64.c: Likewise.
48345         * tests/test-binary-io.c: Likewise.
48346         * tests/test-byteswap.c: Likewise.
48347         * tests/test-c-ctype.c: Likewise.
48348         * tests/test-c-strcasecmp.c: Likewise.
48349         * tests/test-c-strcasestr.c: Likewise.
48350         * tests/test-c-strncasecmp.c: Likewise.
48351         * tests/test-c-strstr.c: Likewise.
48352         * tests/test-canonicalize-lgpl.c: Likewise.
48353         * tests/test-canonicalize.c: Likewise.
48354         * tests/test-carray_list.c: Likewise.
48355         * tests/test-ceilf.c: Likewise.
48356         * tests/test-ceill.c: Likewise.
48357         * tests/test-count-one-bits.c: Likewise.
48358         * tests/test-crc.c: Likewise.
48359         * tests/test-dirname.c: Likewise.
48360         * tests/test-fbufmode.c: Likewise.
48361         * tests/test-fcntl.c: Likewise.
48362         * tests/test-fflush.c: Likewise.
48363         * tests/test-floorf.c: Likewise.
48364         * tests/test-floorl.c: Likewise.
48365         * tests/test-fopen.c: Likewise.
48366         * tests/test-fprintf-posix.c: Likewise.
48367         * tests/test-fprintf-posix.h: Likewise.
48368         * tests/test-fpurge.c: Likewise.
48369         * tests/test-freadable.c: Likewise.
48370         * tests/test-freadahead.c: Likewise.
48371         * tests/test-freading.c: Likewise.
48372         * tests/test-freopen.c: Likewise.
48373         * tests/test-frexp.c: Likewise.
48374         * tests/test-frexpl.c: Likewise.
48375         * tests/test-fseek.c: Likewise.
48376         * tests/test-fseeko.c: Likewise.
48377         * tests/test-fseterr.c: Likewise.
48378         * tests/test-fstrcmp.c: Likewise.
48379         * tests/test-ftell.c: Likewise.
48380         * tests/test-ftello.c: Likewise.
48381         * tests/test-fwritable.c: Likewise.
48382         * tests/test-fwriting.c: Likewise.
48383         * tests/test-getaddrinfo.c: Likewise.
48384         * tests/test-getpass.c: Likewise.
48385         * tests/test-gettimeofday.c: Likewise.
48386         * tests/test-hmac-md5.c: Likewise.
48387         * tests/test-hmac-sha1.c: Likewise.
48388         * tests/test-iconv.c: Likewise.
48389         * tests/test-iconvme.c: Likewise.
48390         * tests/test-inttypes.c: Likewise.
48391         * tests/test-isnan.c: Likewise.
48392         * tests/test-isnanf.c: Likewise.
48393         * tests/test-isnanl-nolibm.c: Likewise.
48394         * tests/test-isnanl.c: Likewise.
48395         * tests/test-isnanl.h: Likewise.
48396         * tests/test-ldexpl.c: Likewise.
48397         * tests/test-linked_list.c: Likewise.
48398         * tests/test-linkedhash_list.c: Likewise.
48399         * tests/test-locale.c: Likewise.
48400         * tests/test-localename.c: Likewise.
48401         * tests/test-lock.c: Likewise.
48402         * tests/test-lseek.c: Likewise.
48403         * tests/test-malloca.c: Likewise.
48404         * tests/test-math.c: Likewise.
48405         * tests/test-mbscasecmp.c: Likewise.
48406         * tests/test-mbscasestr1.c: Likewise.
48407         * tests/test-mbscasestr2.c: Likewise.
48408         * tests/test-mbscasestr3.c: Likewise.
48409         * tests/test-mbscasestr4.c: Likewise.
48410         * tests/test-mbschr.c: Likewise.
48411         * tests/test-mbscspn.c: Likewise.
48412         * tests/test-mbsncasecmp.c: Likewise.
48413         * tests/test-mbspbrk.c: Likewise.
48414         * tests/test-mbspcasecmp.c: Likewise.
48415         * tests/test-mbsrchr.c: Likewise.
48416         * tests/test-mbsspn.c: Likewise.
48417         * tests/test-mbsstr1.c: Likewise.
48418         * tests/test-mbsstr2.c: Likewise.
48419         * tests/test-mbsstr3.c: Likewise.
48420         * tests/test-md5.c: Likewise.
48421         * tests/test-memmem.c: Likewise.
48422         * tests/test-netinet_in.c: Likewise.
48423         * tests/test-open.c: Likewise.
48424         * tests/test-printf-frexp.c: Likewise.
48425         * tests/test-printf-frexpl.c: Likewise.
48426         * tests/test-printf-posix.c: Likewise.
48427         * tests/test-printf-posix.h: Likewise.
48428         * tests/test-rbtree_list.c: Likewise.
48429         * tests/test-rbtree_oset.c: Likewise.
48430         * tests/test-rbtreehash_list.c: Likewise.
48431         * tests/test-read-file.c: Likewise.
48432         * tests/test-rijndael.c: Likewise.
48433         * tests/test-search.c: Likewise.
48434         * tests/test-signbit.c: Likewise.
48435         * tests/test-sleep.c: Likewise.
48436         * tests/test-snprintf-posix.c: Likewise.
48437         * tests/test-snprintf-posix.h: Likewise.
48438         * tests/test-snprintf.c: Likewise.
48439         * tests/test-sprintf-posix.c: Likewise.
48440         * tests/test-sprintf-posix.h: Likewise.
48441         * tests/test-stat-time.c: Likewise.
48442         * tests/test-stdbool.c: Likewise.
48443         * tests/test-stdint.c: Likewise.
48444         * tests/test-stdio.c: Likewise.
48445         * tests/test-stdlib.c: Likewise.
48446         * tests/test-stpncpy.c: Likewise.
48447         * tests/test-strcasestr.c: Likewise.
48448         * tests/test-striconv.c: Likewise.
48449         * tests/test-striconveh.c: Likewise.
48450         * tests/test-striconveha.c: Likewise.
48451         * tests/test-string.c: Likewise.
48452         * tests/test-sys_select.c: Likewise.
48453         * tests/test-sys_socket.c: Likewise.
48454         * tests/test-sys_stat.c: Likewise.
48455         * tests/test-sys_time.c: Likewise.
48456         * tests/test-sysexits.c: Likewise.
48457         * tests/test-time.c: Likewise.
48458         * tests/test-tls.c: Likewise.
48459         * tests/test-trunc.c: Likewise.
48460         * tests/test-truncf.c: Likewise.
48461         * tests/test-truncl.c: Likewise.
48462         * tests/test-unistd.c: Likewise.
48463         * tests/test-vasnprintf-posix.c: Likewise.
48464         * tests/test-vasnprintf-posix2.c: Likewise.
48465         * tests/test-vasnprintf.c: Likewise.
48466         * tests/test-vasprintf-posix.c: Likewise.
48467         * tests/test-vasprintf.c: Likewise.
48468         * tests/test-verify.c: Likewise.
48469         * tests/test-vfprintf-posix.c: Likewise.
48470         * tests/test-vprintf-posix.c: Likewise.
48471         * tests/test-vsnprintf-posix.c: Likewise.
48472         * tests/test-vsnprintf.c: Likewise.
48473         * tests/test-vsprintf-posix.c: Likewise.
48474         * tests/test-wchar.c: Likewise.
48475         * tests/test-wctype.c: Likewise.
48476         * tests/test-wcwidth.c: Likewise.
48477         * tests/test-xstrtol.c: Likewise.
48478         * tests/test-xvasprintf.c: Likewise.
48479         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
48480         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
48481         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48482         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48483         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48484         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
48485         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48486         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48487         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48488         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
48489         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48490         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48491         * tests/uniname/test-uninames.c: Likewise.
48492         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
48493         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
48494         * tests/unistdio/test-u16-printf1.h: Likewise.
48495         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
48496         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
48497         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
48498         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
48499         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
48500         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
48501         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
48502         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
48503         * tests/unistdio/test-u32-printf1.h: Likewise.
48504         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
48505         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
48506         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
48507         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
48508         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
48509         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
48510         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
48511         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
48512         * tests/unistdio/test-u8-printf1.h: Likewise.
48513         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
48514         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
48515         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
48516         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
48517         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
48518         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
48519         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
48520         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
48521         * tests/unistdio/test-ulc-printf1.h: Likewise.
48522         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
48523         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
48524         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
48525         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
48526         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
48527         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
48528         * tests/uniwidth/test-u16-strwidth.c: Likewise.
48529         * tests/uniwidth/test-u16-width.c: Likewise.
48530         * tests/uniwidth/test-u32-strwidth.c: Likewise.
48531         * tests/uniwidth/test-u32-width.c: Likewise.
48532         * tests/uniwidth/test-u8-strwidth.c: Likewise.
48533         * tests/uniwidth/test-u8-width.c: Likewise.
48534         * tests/uniwidth/test-uc_width.c: Likewise.
48535         * config/srclist-update: Likewise.
48536         (fixlicense): Update to GPLv3+.
48537
48538         Change copyright notice from LGPLv2.1+ to LGPLv3+.
48539         * tests/test-tsearch.c: Change copyright notice.
48540
48541         Change copyright notice from LGPLv2.0+ to LGPLv3+.
48542         * lib/c-strcaseeq.h: Change copyright notice.
48543         * lib/streq.h: Likewise.
48544         * lib/uniconv.h: Likewise.
48545         * lib/uniconv/u-conv-from-enc.h: Likewise.
48546         * lib/uniconv/u-conv-to-enc.h: Likewise.
48547         * lib/uniconv/u-strconv-from-enc.h: Likewise.
48548         * lib/uniconv/u-strconv-to-enc.h: Likewise.
48549         * lib/uniconv/u16-conv-from-enc.c: Likewise.
48550         * lib/uniconv/u16-conv-to-enc.c: Likewise.
48551         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
48552         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
48553         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
48554         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
48555         * lib/uniconv/u32-conv-from-enc.c: Likewise.
48556         * lib/uniconv/u32-conv-to-enc.c: Likewise.
48557         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
48558         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
48559         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
48560         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
48561         * lib/uniconv/u8-conv-from-enc.c: Likewise.
48562         * lib/uniconv/u8-conv-to-enc.c: Likewise.
48563         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
48564         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
48565         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
48566         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
48567         * lib/uniname.h: Likewise.
48568         * lib/uniname/uniname.c: Likewise.
48569         * lib/unistdio.h: Likewise.
48570         * lib/unistdio/u-asnprintf.h: Likewise.
48571         * lib/unistdio/u-asprintf.h: Likewise.
48572         * lib/unistdio/u-printf-args.c: Likewise.
48573         * lib/unistdio/u-printf-args.h: Likewise.
48574         * lib/unistdio/u-printf-parse.h: Likewise.
48575         * lib/unistdio/u-snprintf.h: Likewise.
48576         * lib/unistdio/u-sprintf.h: Likewise.
48577         * lib/unistdio/u-vasprintf.h: Likewise.
48578         * lib/unistdio/u-vsnprintf.h: Likewise.
48579         * lib/unistdio/u-vsprintf.h: Likewise.
48580         * lib/unistdio/u16-asnprintf.c: Likewise.
48581         * lib/unistdio/u16-asprintf.c: Likewise.
48582         * lib/unistdio/u16-printf-parse.c: Likewise.
48583         * lib/unistdio/u16-snprintf.c: Likewise.
48584         * lib/unistdio/u16-sprintf.c: Likewise.
48585         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
48586         * lib/unistdio/u16-u16-asprintf.c: Likewise.
48587         * lib/unistdio/u16-u16-snprintf.c: Likewise.
48588         * lib/unistdio/u16-u16-sprintf.c: Likewise.
48589         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
48590         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
48591         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
48592         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
48593         * lib/unistdio/u16-vasnprintf.c: Likewise.
48594         * lib/unistdio/u16-vasprintf.c: Likewise.
48595         * lib/unistdio/u16-vsnprintf.c: Likewise.
48596         * lib/unistdio/u16-vsprintf.c: Likewise.
48597         * lib/unistdio/u32-asnprintf.c: Likewise.
48598         * lib/unistdio/u32-asprintf.c: Likewise.
48599         * lib/unistdio/u32-printf-parse.c: Likewise.
48600         * lib/unistdio/u32-snprintf.c: Likewise.
48601         * lib/unistdio/u32-sprintf.c: Likewise.
48602         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
48603         * lib/unistdio/u32-u32-asprintf.c: Likewise.
48604         * lib/unistdio/u32-u32-snprintf.c: Likewise.
48605         * lib/unistdio/u32-u32-sprintf.c: Likewise.
48606         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
48607         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
48608         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
48609         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
48610         * lib/unistdio/u32-vasnprintf.c: Likewise.
48611         * lib/unistdio/u32-vasprintf.c: Likewise.
48612         * lib/unistdio/u32-vsnprintf.c: Likewise.
48613         * lib/unistdio/u32-vsprintf.c: Likewise.
48614         * lib/unistdio/u8-asnprintf.c: Likewise.
48615         * lib/unistdio/u8-asprintf.c: Likewise.
48616         * lib/unistdio/u8-printf-parse.c: Likewise.
48617         * lib/unistdio/u8-snprintf.c: Likewise.
48618         * lib/unistdio/u8-sprintf.c: Likewise.
48619         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
48620         * lib/unistdio/u8-u8-asprintf.c: Likewise.
48621         * lib/unistdio/u8-u8-snprintf.c: Likewise.
48622         * lib/unistdio/u8-u8-sprintf.c: Likewise.
48623         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
48624         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
48625         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
48626         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
48627         * lib/unistdio/u8-vasnprintf.c: Likewise.
48628         * lib/unistdio/u8-vasprintf.c: Likewise.
48629         * lib/unistdio/u8-vsnprintf.c: Likewise.
48630         * lib/unistdio/u8-vsprintf.c: Likewise.
48631         * lib/unistdio/ulc-asnprintf.c: Likewise.
48632         * lib/unistdio/ulc-asprintf.c: Likewise.
48633         * lib/unistdio/ulc-printf-parse.c: Likewise.
48634         * lib/unistdio/ulc-snprintf.c: Likewise.
48635         * lib/unistdio/ulc-sprintf.c: Likewise.
48636         * lib/unistdio/ulc-vasnprintf.c: Likewise.
48637         * lib/unistdio/ulc-vasprintf.c: Likewise.
48638         * lib/unistdio/ulc-vsnprintf.c: Likewise.
48639         * lib/unistdio/ulc-vsprintf.c: Likewise.
48640         * lib/unistr.h: Likewise.
48641         * lib/unistr/u-cpy-alloc.h: Likewise.
48642         * lib/unistr/u-cpy.h: Likewise.
48643         * lib/unistr/u-endswith.h: Likewise.
48644         * lib/unistr/u-move.h: Likewise.
48645         * lib/unistr/u-set.h: Likewise.
48646         * lib/unistr/u-startswith.h: Likewise.
48647         * lib/unistr/u-stpcpy.h: Likewise.
48648         * lib/unistr/u-stpncpy.h: Likewise.
48649         * lib/unistr/u-strcat.h: Likewise.
48650         * lib/unistr/u-strcpy.h: Likewise.
48651         * lib/unistr/u-strcspn.h: Likewise.
48652         * lib/unistr/u-strdup.h: Likewise.
48653         * lib/unistr/u-strlen.h: Likewise.
48654         * lib/unistr/u-strncat.h: Likewise.
48655         * lib/unistr/u-strncpy.h: Likewise.
48656         * lib/unistr/u-strnlen.h: Likewise.
48657         * lib/unistr/u-strpbrk.h: Likewise.
48658         * lib/unistr/u-strspn.h: Likewise.
48659         * lib/unistr/u-strstr.h: Likewise.
48660         * lib/unistr/u-strtok.h: Likewise.
48661         * lib/unistr/u16-check.c: Likewise.
48662         * lib/unistr/u16-chr.c: Likewise.
48663         * lib/unistr/u16-cmp.c: Likewise.
48664         * lib/unistr/u16-cpy-alloc.c: Likewise.
48665         * lib/unistr/u16-cpy.c: Likewise.
48666         * lib/unistr/u16-endswith.c: Likewise.
48667         * lib/unistr/u16-mblen.c: Likewise.
48668         * lib/unistr/u16-mbsnlen.c: Likewise.
48669         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48670         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48671         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48672         * lib/unistr/u16-mbtouc.c: Likewise.
48673         * lib/unistr/u16-mbtoucr.c: Likewise.
48674         * lib/unistr/u16-move.c: Likewise.
48675         * lib/unistr/u16-next.c: Likewise.
48676         * lib/unistr/u16-prev.c: Likewise.
48677         * lib/unistr/u16-set.c: Likewise.
48678         * lib/unistr/u16-startswith.c: Likewise.
48679         * lib/unistr/u16-stpcpy.c: Likewise.
48680         * lib/unistr/u16-stpncpy.c: Likewise.
48681         * lib/unistr/u16-strcat.c: Likewise.
48682         * lib/unistr/u16-strchr.c: Likewise.
48683         * lib/unistr/u16-strcmp.c: Likewise.
48684         * lib/unistr/u16-strcpy.c: Likewise.
48685         * lib/unistr/u16-strcspn.c: Likewise.
48686         * lib/unistr/u16-strdup.c: Likewise.
48687         * lib/unistr/u16-strlen.c: Likewise.
48688         * lib/unistr/u16-strmblen.c: Likewise.
48689         * lib/unistr/u16-strmbtouc.c: Likewise.
48690         * lib/unistr/u16-strncat.c: Likewise.
48691         * lib/unistr/u16-strncmp.c: Likewise.
48692         * lib/unistr/u16-strncpy.c: Likewise.
48693         * lib/unistr/u16-strnlen.c: Likewise.
48694         * lib/unistr/u16-strpbrk.c: Likewise.
48695         * lib/unistr/u16-strrchr.c: Likewise.
48696         * lib/unistr/u16-strspn.c: Likewise.
48697         * lib/unistr/u16-strstr.c: Likewise.
48698         * lib/unistr/u16-strtok.c: Likewise.
48699         * lib/unistr/u16-to-u32.c: Likewise.
48700         * lib/unistr/u16-to-u8.c: Likewise.
48701         * lib/unistr/u16-uctomb-aux.c: Likewise.
48702         * lib/unistr/u16-uctomb.c: Likewise.
48703         * lib/unistr/u32-check.c: Likewise.
48704         * lib/unistr/u32-chr.c: Likewise.
48705         * lib/unistr/u32-cmp.c: Likewise.
48706         * lib/unistr/u32-cpy-alloc.c: Likewise.
48707         * lib/unistr/u32-cpy.c: Likewise.
48708         * lib/unistr/u32-endswith.c: Likewise.
48709         * lib/unistr/u32-mblen.c: Likewise.
48710         * lib/unistr/u32-mbsnlen.c: Likewise.
48711         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48712         * lib/unistr/u32-mbtouc.c: Likewise.
48713         * lib/unistr/u32-mbtoucr.c: Likewise.
48714         * lib/unistr/u32-move.c: Likewise.
48715         * lib/unistr/u32-next.c: Likewise.
48716         * lib/unistr/u32-prev.c: Likewise.
48717         * lib/unistr/u32-set.c: Likewise.
48718         * lib/unistr/u32-startswith.c: Likewise.
48719         * lib/unistr/u32-stpcpy.c: Likewise.
48720         * lib/unistr/u32-stpncpy.c: Likewise.
48721         * lib/unistr/u32-strcat.c: Likewise.
48722         * lib/unistr/u32-strchr.c: Likewise.
48723         * lib/unistr/u32-strcmp.c: Likewise.
48724         * lib/unistr/u32-strcpy.c: Likewise.
48725         * lib/unistr/u32-strcspn.c: Likewise.
48726         * lib/unistr/u32-strdup.c: Likewise.
48727         * lib/unistr/u32-strlen.c: Likewise.
48728         * lib/unistr/u32-strmblen.c: Likewise.
48729         * lib/unistr/u32-strmbtouc.c: Likewise.
48730         * lib/unistr/u32-strncat.c: Likewise.
48731         * lib/unistr/u32-strncmp.c: Likewise.
48732         * lib/unistr/u32-strncpy.c: Likewise.
48733         * lib/unistr/u32-strnlen.c: Likewise.
48734         * lib/unistr/u32-strpbrk.c: Likewise.
48735         * lib/unistr/u32-strrchr.c: Likewise.
48736         * lib/unistr/u32-strspn.c: Likewise.
48737         * lib/unistr/u32-strstr.c: Likewise.
48738         * lib/unistr/u32-strtok.c: Likewise.
48739         * lib/unistr/u32-to-u16.c: Likewise.
48740         * lib/unistr/u32-to-u8.c: Likewise.
48741         * lib/unistr/u32-uctomb.c: Likewise.
48742         * lib/unistr/u8-check.c: Likewise.
48743         * lib/unistr/u8-chr.c: Likewise.
48744         * lib/unistr/u8-cmp.c: Likewise.
48745         * lib/unistr/u8-cpy-alloc.c: Likewise.
48746         * lib/unistr/u8-cpy.c: Likewise.
48747         * lib/unistr/u8-endswith.c: Likewise.
48748         * lib/unistr/u8-mblen.c: Likewise.
48749         * lib/unistr/u8-mbsnlen.c: Likewise.
48750         * lib/unistr/u8-mbtouc-aux.c: Likewise.
48751         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48752         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48753         * lib/unistr/u8-mbtouc.c: Likewise.
48754         * lib/unistr/u8-mbtoucr.c: Likewise.
48755         * lib/unistr/u8-move.c: Likewise.
48756         * lib/unistr/u8-next.c: Likewise.
48757         * lib/unistr/u8-prev.c: Likewise.
48758         * lib/unistr/u8-set.c: Likewise.
48759         * lib/unistr/u8-startswith.c: Likewise.
48760         * lib/unistr/u8-stpcpy.c: Likewise.
48761         * lib/unistr/u8-stpncpy.c: Likewise.
48762         * lib/unistr/u8-strcat.c: Likewise.
48763         * lib/unistr/u8-strchr.c: Likewise.
48764         * lib/unistr/u8-strcmp.c: Likewise.
48765         * lib/unistr/u8-strcpy.c: Likewise.
48766         * lib/unistr/u8-strcspn.c: Likewise.
48767         * lib/unistr/u8-strdup.c: Likewise.
48768         * lib/unistr/u8-strlen.c: Likewise.
48769         * lib/unistr/u8-strmblen.c: Likewise.
48770         * lib/unistr/u8-strmbtouc.c: Likewise.
48771         * lib/unistr/u8-strncat.c: Likewise.
48772         * lib/unistr/u8-strncmp.c: Likewise.
48773         * lib/unistr/u8-strncpy.c: Likewise.
48774         * lib/unistr/u8-strnlen.c: Likewise.
48775         * lib/unistr/u8-strpbrk.c: Likewise.
48776         * lib/unistr/u8-strrchr.c: Likewise.
48777         * lib/unistr/u8-strspn.c: Likewise.
48778         * lib/unistr/u8-strstr.c: Likewise.
48779         * lib/unistr/u8-strtok.c: Likewise.
48780         * lib/unistr/u8-to-u16.c: Likewise.
48781         * lib/unistr/u8-to-u32.c: Likewise.
48782         * lib/unistr/u8-uctomb-aux.c: Likewise.
48783         * lib/unistr/u8-uctomb.c: Likewise.
48784         * lib/unitypes.h: Likewise.
48785         * lib/uniwidth.h: Likewise.
48786         * lib/uniwidth/cjk.h: Likewise.
48787         * lib/uniwidth/u16-strwidth.c: Likewise.
48788         * lib/uniwidth/u16-width.c: Likewise.
48789         * lib/uniwidth/u32-strwidth.c: Likewise.
48790         * lib/uniwidth/u32-width.c: Likewise.
48791         * lib/uniwidth/u8-strwidth.c: Likewise.
48792         * lib/uniwidth/u8-width.c: Likewise.
48793         * lib/uniwidth/width.c: Likewise.
48794
48795 2007-10-07  Bruno Haible  <bruno@clisp.org>
48796
48797         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
48798         The file is still under LGPL (see modules/inttypes).
48799
48800 2007-10-06  Bruno Haible  <bruno@clisp.org>
48801
48802         * modules/trunc (Dependencies): Add 'extensions'.
48803         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
48804         Reported by Ben Pfaff <blp@gnu.org>.
48805
48806 2007-10-06  Bruno Haible  <bruno@clisp.org>
48807
48808         * modules/freopen-tests: New file.
48809         * tests/test-freopen.c: New file.
48810
48811         * modules/fopen-tests: New file.
48812         * tests/test-fopen.c: New file.
48813
48814         * modules/fopen: New file.
48815         * lib/fopen.c: New file.
48816         * m4/fopen.m4: New file.
48817         * modules/freopen: New file.
48818         * lib/freopen.c: New file.
48819         * m4/freopen.m4: New file.
48820         * lib/stdio.in.h (fopen, freopen): New declarations.
48821         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
48822         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
48823         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
48824         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
48825         * doc/functions/fopen.texi: Mention the 'fopen' module.
48826         * doc/functions/freopen.texi: Mention the 'freopen' module.
48827
48828 2007-10-06  Bruno Haible  <bruno@clisp.org>
48829
48830         * modules/open-tests: New file.
48831         * tests/test-open.c: New file.
48832
48833         * modules/open: New file.
48834         * lib/open.c: New file.
48835         * m4/open.m4: New file.
48836         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
48837         lib/open.c does.
48838         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
48839         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
48840         macros.
48841         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
48842         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
48843         REPLACE_OPEN.
48844         * doc/functions/open.texi: Mention the 'open' module.
48845
48846 2007-10-04  Bruno Haible  <bruno@clisp.org>
48847
48848         * modules/ceill-tests: New file.
48849         * tests/test-ceill.c: New file.
48850
48851         * modules/ceill: New file.
48852         * lib/ceill.c: Replace entire file.
48853         * m4/ceill.m4: New file.
48854         * lib/math.in.h (ceill): Replace declaration.
48855         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
48856         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
48857         * doc/functions/ceill.texi: Mention the 'ceill' module.
48858         * modules/mathl (Files): Remove lib/ceill.c.
48859         (Depends-on): Add ceill.
48860
48861 2007-10-04  Bruno Haible  <bruno@clisp.org>
48862
48863         * modules/ceilf-tests: New file.
48864         * tests/test-ceilf.c: New file.
48865
48866         * modules/ceilf: New file.
48867         * lib/ceil.c: New file.
48868         * lib/ceilf.c: New file.
48869         * m4/ceilf.m4: New file.
48870         * lib/math.in.h (ceilf): New declaration.
48871         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
48872         HAVE_DECL_CEILF.
48873         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
48874         HAVE_DECL_CEILF.
48875         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
48876
48877 2007-10-04  Bruno Haible  <bruno@clisp.org>
48878
48879         * modules/floorl-tests: New file.
48880         * tests/test-floorl.c: New file.
48881
48882         * modules/floorl: New file.
48883         * lib/floorl.c: Replace entire file.
48884         * m4/floorl.m4: New file.
48885         * lib/math.in.h (floorl): Replace declaration.
48886         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
48887         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
48888         * doc/functions/floorl.texi: Mention the 'floorl' module.
48889         * modules/mathl (Files): Remove lib/floorl.c.
48890         (Depends-on): Add floorl.
48891
48892 2007-10-04  Bruno Haible  <bruno@clisp.org>
48893
48894         * modules/floorf-tests: New file.
48895         * tests/test-floorf.c: New file.
48896
48897         * modules/floorf: New file.
48898         * lib/floor.c: New file.
48899         * lib/floorf.c: New file.
48900         * m4/floorf.m4: New file.
48901         * lib/math.in.h (floorf): New declaration.
48902         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
48903         HAVE_DECL_FLOORF.
48904         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
48905         HAVE_DECL_FLOORF.
48906         * doc/functions/floorf.texi: Mention the 'floorf' module.
48907
48908 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
48909             Bruno Haible  <bruno@clisp.org>
48910
48911         Advertise for the Git server instead of the CVS server.
48912         * doc/gnulib-intro.texi (Steady Development): Mention the Git
48913         repository instead of the CVS one.
48914         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
48915         about all VCS systems generically.
48916         * doc/gnulib.texi (Introduction): Capitalize `Git'.
48917
48918 2007-10-04  Bruno Haible  <bruno@clisp.org>
48919
48920         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
48921         means.
48922         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
48923
48924 2007-10-04  Bruno Haible  <bruno@clisp.org>
48925
48926         * modules/truncl-tests: New file.
48927         * tests/test-truncl.c: New file.
48928
48929         * modules/truncl: New file.
48930         * lib/truncl.c: New file.
48931         * m4/truncl.m4: New file.
48932         * lib/math.in.h (truncl): New declaration.
48933         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
48934         HAVE_DECL_TRUNCL.
48935         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
48936         HAVE_DECL_TRUNCL.
48937         * doc/functions/truncl.texi: Mention the 'truncl' module.
48938
48939 2007-10-04  Bruno Haible  <bruno@clisp.org>
48940
48941         * modules/truncf-tests: New file.
48942         * tests/test-truncf.c: New file.
48943
48944         * modules/truncf: New file.
48945         * lib/trunc.c: Make paramerizable through USE_* macros.
48946         * lib/truncf.c: New file.
48947         * m4/truncf.m4: New file.
48948         * lib/math.in.h (truncf): New declaration.
48949         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
48950         HAVE_DECL_TRUNCF.
48951         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
48952         HAVE_DECL_TRUNCF.
48953         * doc/functions/truncf.texi: Mention the 'truncf' module.
48954
48955 2007-10-03  Bruno Haible  <bruno@clisp.org>
48956
48957         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
48958         augmentation also for tests modules.
48959         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
48960         * modules/atexit-tests (Makefile.am): Likewise.
48961         * modules/binary-io-tests (Makefile.am): Likewise.
48962         * modules/c-strcase-tests (Makefile.am): Likewise.
48963         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
48964         * modules/canonicalize-tests (Makefile.am): Likewise.
48965         * modules/closein-tests (Makefile.am): Likewise.
48966         * modules/fprintf-posix-tests (Makefile.am): Likewise.
48967         * modules/freadahead-tests (Makefile.am): Likewise.
48968         * modules/fseek-tests (Makefile.am): Likewise.
48969         * modules/fseeko-tests (Makefile.am): Likewise.
48970         * modules/ftell-tests (Makefile.am): Likewise.
48971         * modules/ftello-tests (Makefile.am): Likewise.
48972         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
48973         * modules/isnanl-tests (Makefile.am): Likewise.
48974         * modules/lseek-tests (Makefile.am): Likewise.
48975         * modules/mbscasecmp-tests (Makefile.am): Likewise.
48976         * modules/mbscasestr-tests (Makefile.am): Likewise.
48977         * modules/mbschr-tests (Makefile.am): Likewise.
48978         * modules/mbscspn-tests (Makefile.am): Likewise.
48979         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
48980         * modules/mbspbrk-tests (Makefile.am): Likewise.
48981         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
48982         * modules/mbsrchr-tests (Makefile.am): Likewise.
48983         * modules/mbsspn-tests (Makefile.am): Likewise.
48984         * modules/mbsstr-tests (Makefile.am): Likewise.
48985         * modules/printf-posix-tests (Makefile.am): Likewise.
48986         * modules/snprintf-posix-tests (Makefile.am): Likewise.
48987         * modules/sprintf-posix-tests (Makefile.am): Likewise.
48988         * modules/tsearch-tests (Makefile.am): Likewise.
48989         * modules/uniname/uniname-tests (Makefile.am): Likewise.
48990         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
48991         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
48992         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
48993         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
48994         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
48995         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
48996         * modules/vprintf-posix-tests (Makefile.am): Likewise.
48997         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
48998         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
48999         * modules/xstrtoimax-tests (Makefile.am): Likewise.
49000         * modules/xstrtol-tests (Makefile.am): Likewise.
49001         * modules/xstrtoumax-tests (Makefile.am): Likewise.
49002         * modules/yesno-tests (Makefile.am): Likewise.
49003
49004 2007-10-03  Bruno Haible  <bruno@clisp.org>
49005
49006         * modules/trunc-tests: New file.
49007         * tests/test-trunc.c: New file.
49008
49009         * modules/trunc: New file.
49010         * lib/trunc.c: New file.
49011         * m4/trunc.m4: New file.
49012         * lib/math.in.h (trunc): New declaration.
49013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
49014         HAVE_DECL_TRUNC.
49015         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
49016         HAVE_DECL_TRUNC.
49017         * doc/functions/trunc.texi: Mention the 'trunc' module.
49018
49019 2007-10-03  Bruno Haible  <bruno@clisp.org>
49020
49021         * tests/test-fpending.c: New file, mostly copied
49022         from coreutils/lib/t-fpending.c.
49023         * modules/fpending-tests: New file.
49024
49025 2007-10-03  Bruno Haible  <bruno@clisp.org>
49026
49027         Port the stdio extensions to QNX (untested).
49028         * lib/fseterr.c (fseterr): Add support for QNX.
49029         * lib/fbufmode.c (fbufmode): Likewise.
49030         * lib/freadable.c (freadable): Likewise.
49031         * lib/fwritable.c (fwritable): Likewise.
49032         * lib/freading.c (freading): Likewise.
49033         * lib/fwriting.c (fwriting): Likewise.
49034         * lib/freadahead.c (freadahed): Likewise.
49035         * lib/fpurge.c (fpurge): Likewise.
49036         * lib/fseeko.c (rpl_fseeko): Likewise.
49037
49038 2007-10-03  Bruno Haible  <bruno@clisp.org>
49039             Jim Meyering  <jim@meyering.net>
49040             Eric Blake  <ebb9@byu.net>
49041
49042         * doc/relocatable.texi: Use @command instead of @program.
49043
49044 2007-10-02  Jim Meyering  <jim@meyering.net>
49045
49046         Perform one more "_.h" -> ".in.h" substitution.
49047         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
49048         instead of unistd_.h here, too.
49049
49050 2007-10-01  Bruno Haible  <bruno@clisp.org>
49051
49052         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
49053         Needed for the alloca-opt module.
49054
49055 2007-09-30  Bruno Haible  <bruno@clisp.org>
49056
49057         * lib/alloca.in.h: Renamed from lib/alloca_.h.
49058         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
49059         alloca_.h.
49060         * lib/argz.in.h: Renamed from lib/argz_.h.
49061         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
49062         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
49063         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
49064         byteswap_.h.
49065         * lib/dirent.in.h: Renamed from lib/dirent_.h.
49066         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
49067         dirent_.h.
49068         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
49069         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
49070         fcntl_.h.
49071         * lib/float.in.h: Renamed from lib/float_.h.
49072         * modules/float (Files, Makefile.am): Use float.in.h instead of
49073         float_.h.
49074         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
49075         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
49076         fnmatch_.h.
49077         * lib/getopt.in.h: Renamed from lib/getopt_.h.
49078         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
49079         getopt_.h.
49080         * lib/glob.in.h: Renamed from lib/glob_.h.
49081         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
49082         * lib/iconv.in.h: Renamed from lib/iconv_.h.
49083         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
49084         iconv_.h.
49085         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
49086         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
49087         inttypes_.h.
49088         * lib/locale.in.h: Renamed from lib/locale_.h.
49089         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
49090         locale_.h.
49091         * lib/math.in.h: Renamed from lib/math_.h.
49092         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
49093         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
49094         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
49095         of netinet_in_.h. Add dependency.
49096         * lib/poll.in.h: Renamed from lib/poll_.h.
49097         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
49098         * lib/search.in.h: Renamed from lib/search_.h.
49099         * modules/search (Files, Makefile.am): Use search.in.h instead of
49100         search_.h.
49101         * lib/signal.in.h: Renamed from lib/signal_.h.
49102         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
49103         _signal.h.
49104         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
49105         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
49106         stdbool_.h.
49107         * lib/stdint.in.h: Renamed from lib/stdint_.h.
49108         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
49109         stdint_.h.
49110         * lib/stdio.in.h: Renamed from lib/stdio_.h.
49111         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
49112         stdio_.h.
49113         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
49114         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
49115         stdlib_.h.
49116         * lib/string.in.h: Renamed from lib/string_.h.
49117         * modules/string (Files, Makefile.am): Use string.in.h instead of
49118         string_.h.
49119         * doc/gnulib-tool.texi (Initial import): Update.
49120         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
49121         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
49122         of sys_select_.h. Add dependency.
49123         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
49124         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
49125         of sys_socket_.h.
49126         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
49127         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
49128         sys_stat_.h.
49129         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
49130         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
49131         sys_time_.h.
49132         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
49133         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
49134         sysexits_.h.
49135         * lib/time.in.h: Renamed from lib/time_.h.
49136         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
49137         * lib/unistd.in.h: Renamed from lib/unistd_.h.
49138         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
49139         unistd_.h.
49140         * lib/wchar.in.h: Renamed from lib/wchar_.h.
49141         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
49142         wchar_.h.
49143         * lib/wctype.in.h: Renamed from lib/wctype_.h.
49144         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
49145         wctype_.h.
49146         * build-aux/bootstrap (slurp): Update.
49147         * lib/.cppi-disable: Update.
49148
49149 2007-09-30  Bruno Haible  <bruno@clisp.org>
49150
49151         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
49152         Needed on BeOS.
49153
49154 2007-09-30  Bruno Haible  <bruno@clisp.org>
49155
49156         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
49157
49158 2007-09-29  Bruno Haible  <bruno@clisp.org>
49159
49160         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
49161
49162 2007-09-29  Bruno Haible  <bruno@clisp.org>
49163
49164         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
49165         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
49166         * build-aux/install-reloc: Compile also areadlink.c.
49167         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
49168
49169 2007-09-29  Bruno Haible  <bruno@clisp.org>
49170
49171         * gnulib-tool (func_emit_initmacro_done): Indentation.
49172
49173 2007-09-29  Bruno Haible  <bruno@clisp.org>
49174
49175         * README: Add CVS checkout update instructions.
49176         Info from Bob Proulx <bob@proulx.com>.
49177
49178 2007-09-28  Eric Blake  <ebb9@byu.net>
49179
49180         Provide move-if-change.
49181         * build-aux/move-if-change: New file, based on best practice
49182         rather than any canonical upstream location.
49183
49184 2007-09-28  Jim Meyering  <jim@meyering.net>
49185
49186         Fix canonicalize loop-detection corner case.
49187         Do not attempt to stat the symlink values stored via seen_triple.
49188         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
49189         on linux-2.6.18, (but not 2.6.22).
49190         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
49191         triple_compare.  The former compares dev,ino,filename, while the latter
49192         would actually stat dirname(filename) when dev and ino were equal.
49193         * lib/hash-triple.c: Install <string.h>.
49194         (STREQ): Define.
49195         (triple_compare_ino_str): New function.
49196         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
49197
49198 2007-09-28  Eric Blake  <ebb9@byu.net>
49199
49200         Enforce that AC_REPLACE_FUNCS files exist.
49201         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
49202         override check for typos.
49203
49204         Fix test-closein on Solaris 10.
49205         * tests/test-closein.c (main): Don't assume stdin can be inherited
49206         closed on all systems.
49207         * tests/test-closein.sh: Likewise.
49208         Reported by Piotr Tarnowski.
49209
49210 2007-09-28  Jim Meyering  <jim@meyering.net>
49211
49212         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
49213
49214 2007-09-27  Jim Meyering  <jim@meyering.net>
49215
49216         canonicalize: Avoid a false-positive cycle failure.
49217         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
49218         Sort.  Remove cycle-check.
49219         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
49220         not cycle-check.h.
49221         (seen_triple): New function.
49222         (canonicalize_filename_mode): Use it instead of cycle-check.
49223         * tests/test-canonicalize.c: Add a test for this bug.
49224         * tests/test-canonicalize.sh: Set up and run the test.
49225
49226         New module, file-set, from coreutils.
49227         * modules/file-set: Define it.
49228         * lib/file-set.c, lib/file-set.h: Implement.
49229
49230         New module, hash-triple, from coreutils.
49231         * modules/hash-triple: Define it.
49232         * lib/hash-triple.c, lib/hash-triple.h: Implement.
49233
49234 2007-09-25  Eric Blake  <ebb9@byu.net>
49235
49236         Fix strerror on Interix.
49237         * lib/string_.h (strerror): Declare replacement.
49238         * doc/functions/strerror.texi (strerror): Document the Interix
49239         shortcoming.
49240         * modules/string (Makefile.am): Support new hooks.
49241         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
49242         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
49243         gl_FUNC_STRERROR_SEPARATE.
49244         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
49245         * lib/strerror.c (rpl_strerror): Provide replacement.
49246         * modules/strerror (Depends-on): Add string.
49247         (configure.ac): Detect use of module.
49248         * tests/test-strerror.c: New file.
49249         * modules/strerror-tests: New test module.
49250         * modules/argp (Depends-on): Add strerror.
49251         * modules/error (Depends-on): Likewise.
49252         Reported by Martin Koeppe.
49253
49254 2007-09-24  Bruno Haible  <bruno@clisp.org>
49255
49256         * README: Update git instructions.
49257
49258 2007-09-24  Eric Blake  <ebb9@byu.net>
49259
49260         Revert fpending breakage from 2007-09-08.
49261         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
49262         __fpending.c.
49263
49264 2007-09-24  Jim Meyering  <jim@meyering.net>
49265
49266         filenamecat.c: Add a test.
49267         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
49268         showing how the function works when DIR is the empty string.
49269
49270 2007-09-21  Simon Josefsson  <simon@josefsson.org>
49271
49272         * tests/test-canonicalize.sh: Turn on executable bit.
49273
49274 2007-09-19  Eric Blake  <ebb9@byu.net>
49275
49276         * README: Update CVS instructions.
49277
49278 2007-09-18  Bruno Haible  <bruno@clisp.org>
49279
49280         * modules/areadlink: New file.
49281         * lib/areadlink.h (areadlink): New declaration.
49282         * lib/areadlink.c: New file, based on lib/xreadlink.c.
49283
49284 2007-09-17  Jim Meyering  <jim@meyering.net>
49285
49286         * lib/savewd.c (ESTALE) [!defined]: Define.
49287         Reported to be required on Interix by Martin Koeppe.
49288
49289 2007-09-17  Bruno Haible  <bruno@clisp.org>
49290
49291         * gnulib-tool (func_version): Use $version.
49292
49293 2007-09-16  Bruno Haible  <bruno@clisp.org>
49294
49295         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
49296         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
49297         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
49298         Reported by Greg Schafer <gschafer@zip.com.au>.
49299
49300 2007-09-15  Bruno Haible  <bruno@clisp.org>
49301
49302         * gnulib-tool (sed): Try a little harder to make bash understand the
49303         alias.
49304         Reported by Bruce Korb <bruce.korb@gmail.com>.
49305
49306 2007-09-13  Eric Blake  <ebb9@byu.net>
49307
49308         * ChangeLog: Remove conflict markers.
49309
49310 2007-09-13  Simon Josefsson  <simon@josefsson.org>
49311
49312         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
49313         Reported by Bruno Haible <bruno@clisp.org>.
49314
49315 2007-09-12  Bruno Haible  <bruno@clisp.org>
49316
49317         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
49318         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
49319         is not defined.
49320
49321 2007-09-12  Eric Blake  <ebb9@byu.net>
49322
49323         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
49324         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
49325         Autoconf definition.
49326         * modules/euidaccess (Depends-on): Add extensions, for
49327         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
49328         * modules/fnmatch (Depends-on): Likewise.
49329         * modules/getaddrinfo (Depends-on): Likewise.
49330         * modules/getdelim (Depends-on): Likewise.
49331         * modules/getline (Depends-on): Likewise.
49332         * modules/getsubopt (Depends-on): Likewise.
49333         * modules/gettext (Depends-on): Likewise.
49334         * modules/group-member (Depends-on): Likewise.
49335         * modules/mbchar (Depends-on): Likewise.
49336         * modules/memmem (Depends-on): Likewise.
49337         * modules/mempcpy (Depends-on): Likewise.
49338         * modules/memrchr (Depends-on): Likewise.
49339         * modules/pagealign_alloc (Depends-on): Likewise.
49340         * modules/readutmp (Depends-on): Likewise.
49341         * modules/stpcpy (Depends-on): Likewise.
49342         * modules/stpncpy (Depends-on): Likewise.
49343         * modules/strchrnul (Depends-on): Likewise.
49344         * modules/strndup (Depends-on): Likewise.
49345         * modules/strsep (Depends-on): Likewise.
49346         * modules/strverscmp (Depends-on): Likewise.
49347         * modules/vasprintf (Depends-on): Likewise.
49348         * modules/wcwidth (Depends-on): Likewise.
49349         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
49350         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
49351         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
49352         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
49353         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49354         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49355         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
49356         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49357         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
49358         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
49359         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49360         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
49361         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
49362         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
49363         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
49364         * m4/readutmp.m4 (gl_READUTMP): Likewise.
49365         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49366         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
49367         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49368         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
49369         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49370         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
49371         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
49372         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
49373         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
49374         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49375         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
49376         so that lock.m4 can be used in gettext without extensions module.
49377
49378 2007-09-11  Bruno Haible  <bruno@clisp.org>
49379
49380         * m4/isc-posix.m4: Remove file.
49381         Suggested by Eric Blake.
49382
49383 2007-09-11  Eric Blake  <ebb9@byu.net>
49384
49385         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
49386
49387 2007-09-10  Bruno Haible  <bruno@clisp.org>
49388
49389         * posix-modules: Fix typo in error message.
49390         Reported by Matt <mkraai@beckman.com>.
49391
49392 2007-09-09  Bruno Haible  <bruno@clisp.org>
49393
49394         * doc/functions/getdelim.texi: Update list of platforms lacking the
49395         function.
49396         * doc/functions/getline.texi: Likewise.
49397
49398 2007-09-09  Jim Meyering  <jim@meyering.net>
49399
49400         * lib/hash.c (hash_initialize): Detect calloc failure.
49401         Reported by Bruno Haible.
49402
49403 2007-09-09  Bruno Haible  <bruno@clisp.org>
49404
49405         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
49406         malloc or realloc fails.
49407
49408 2007-09-09  Bruno Haible  <bruno@clisp.org>
49409
49410         * modules/getcwd (Depends-on): Add malloc-posix.
49411         * modules/glob (Depends-on): Likewise.
49412         * modules/putenv (Depends-on): Likewise.
49413         * modules/strdup (Depends-on): Likewise.
49414         * modules/getdelim (Depends-on): Add realloc-posix.
49415         * modules/read-file (Depends-on): Likewise.
49416
49417 2007-09-09  Bruno Haible  <bruno@clisp.org>
49418
49419         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
49420         (gl_FUNC_MALLOC_POSIX): Require it.
49421         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
49422         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
49423         * modules/realloc (Files): Add m4/malloc.m4.
49424         * modules/calloc (Files): Likewise.
49425
49426 2007-09-09  Bruno Haible  <bruno@clisp.org>
49427
49428         * modules/malloc-posix: New file.
49429         * modules/malloc (Depends-on): Add malloc-posix.
49430         * lib/malloc.c: Include errno.h.
49431         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
49432         and a POSIX-compatible malloc into a single function. Set ENOMEM
49433         when returning NULL.
49434         * m4/malloc.m4: New file.
49435         * doc/functions/malloc.texi: Mention the malloc-posix module.
49436         * lib/stdlib_.h (malloc): New declaration.
49437         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49438         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
49439         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
49440         and HAVE_MALLOC_POSIX.
49441
49442 2007-09-09  Bruno Haible  <bruno@clisp.org>
49443
49444         * modules/realloc-posix: New file.
49445         * modules/realloc (Depends-on): Add realloc-posix.
49446         * lib/realloc.c: Include errno.h.
49447         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
49448         and a POSIX-compatible realloc into a single function. Set ENOMEM
49449         when returning NULL.
49450         * m4/realloc.m4: New file.
49451         * doc/functions/realloc.texi: Mention the realloc-posix module.
49452         * lib/stdlib_.h (realloc): New declaration.
49453         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49454         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
49455         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
49456         and HAVE_REALLOC_POSIX.
49457
49458 2007-09-09  Bruno Haible  <bruno@clisp.org>
49459
49460         * modules/calloc-posix: New file.
49461         * modules/calloc (Depends-on): Add calloc-posix.
49462         * lib/calloc.c: Include errno.h.
49463         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
49464         and a POSIX-compatible calloc into a single function. Set ENOMEM
49465         when returning NULL.
49466         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
49467         * doc/functions/calloc.texi: Mention the calloc-posix module.
49468         * lib/stdlib_.h (calloc): New declaration.
49469         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49470         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
49471         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
49472         and HAVE_CALLOC_POSIX.
49473
49474 2007-09-09  Bruno Haible  <bruno@clisp.org>
49475
49476         Allow for modules to show an arbitrary notice.
49477         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
49478         * gnulib-tool: New option --extract-notice.
49479         (func_usage): Document it.
49480         (sed_extract_prog): Update.
49481         (func_get_notice): New function.
49482         (func_modules_notice): New function.
49483         (func_import, func_create_testdir): Invoke it.
49484         Suggested by Jim Meyering.
49485
49486 2007-09-09  Bruno Haible  <bruno@clisp.org>
49487
49488         * gnulib-tool: New options --verbose, --quiet.
49489         (func_usage): Document them.
49490         (verbose): New variable.
49491         (func_execute_command): New function.
49492         (func_import): Don't show the module list and the file list if
49493         $verbose < 0.
49494         (func_create_testdir): Likewise. Use func_execute_command.
49495         (func_create_megatestdir): Use func_execute_command.
49496
49497 2007-09-08  Bruno Haible  <bruno@clisp.org>
49498
49499         * gnulib-tool (func_import): Prefer rsync over wget when available,
49500         for fetching the PO files.
49501
49502 2007-09-08  Bruno Haible  <bruno@clisp.org>
49503
49504         * posix-modules: New file. Portions copied from gnulib-tool.
49505         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
49506
49507 2007-09-08  Jim Meyering  <jim@meyering.net>
49508
49509         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
49510         * lib/fpending.h: Rename from __fpending.h.
49511         * lib/fpending.c: Rename from __fpending.c.
49512         Include "fpending.h", not "__fpending.h".
49513         * lib/__fpending.h, lib/__fpending.c: Remove files.
49514         * modules/fpending (Files): Reflect new file names.
49515         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
49516
49517 2007-09-08  Bruno Haible  <bruno@clisp.org>
49518
49519         * m4/inttypes-h.m4: Remove stub file.
49520
49521 2007-09-07  Simon Josefsson  <simon@josefsson.org>
49522
49523         * doc/headers/stdint.texi: Discuss #include_next issue.
49524
49525 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49526
49527         * build-aux/bootstrap: Remove obsolete comment about wget --help.
49528
49529 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49530
49531         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
49532         in variable name.
49533
49534 2007-09-03  Jim Meyering  <jim@meyering.net>
49535
49536         New module: git-version-gen.
49537         * modules/git-version-gen: New file.
49538
49539         Import changes from coreutils for bootstrap script.
49540
49541         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
49542
49543         bootstrap: uses rsync to download the .po files
49544         * build-aux/bootstrap (po_download_command_format): New global.
49545         (download_po_files): Use rsync.
49546         (update_po_files): Don't remove .po files after download,
49547         so future rsync runs can take advantage of the copies.
49548
49549         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
49550
49551         Solve the unnecessary-.po-file-regeneration problem once and for all.
49552         * build-aux/bootstrap (download_po_files): New function, renamed from
49553         get_translations.  Now, downloads, but doesn't update LINGUAS.
49554         (update_po_files): New function.
49555
49556         bootstrap: Ignore more.
49557         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
49558         uniwidth to e.g., lib/.gitignore.
49559         (slurp): Handle the sys_stat_.h -> sys mapping, too.
49560
49561         * build-aux/bootstrap: New setting: vc_ignore.
49562         (insert_sorted_if_absent): Create $file if absent.
49563         Adapt to new, possibly empty, list: $vc_ignore.
49564
49565         bootstrap: generate more ignorable names
49566         * build-aux/bootstrap (slurp): When generating ignorable names,
49567         also map .sin to .sed, .gperf to .c, and .y to .c.
49568
49569 2007-09-03  Jim Meyering  <jim@meyering.net>
49570
49571         * build-aux/git-version-gen: New file, from coreutils.  For details, see
49572         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
49573
49574 2007-09-02  Bruno Haible  <bruno@clisp.org>
49575
49576         Fix mis-recognition of 'mcs' on QNX 6.
49577         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
49578         output contains the string "Mono".
49579         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
49580         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
49581
49582 2007-09-01  Bruno Haible  <bruno@clisp.org>
49583
49584         Fix collision between uniwidth/* and linebreak modules.
49585         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
49586         u32_width): Remove declarations.
49587         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
49588         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
49589         streq3, streq2, streq1, streq0): Remove functions.
49590         (STREQ): Remove macro.
49591         (is_cjk_encoding): Remove function.
49592         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
49593         (uc_width, u8_width, u16_width, u32_width): Remove functions.
49594         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
49595         * NEWS: Document the change.
49596
49597 2007-09-01  Bruno Haible  <bruno@clisp.org>
49598
49599         * lib/streq.h: Add double-inclusion guard.
49600
49601 2007-09-01  Karl Berry  <karl@gnu.org>
49602
49603         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
49604
49605 2007-08-28  Jim Meyering  <jim@meyering.net>
49606
49607         Rename mreadlink_with_size to areadlink_with_size.
49608         * NEWS: Document the change.
49609         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
49610         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
49611         * lib/mreadlink.h: Rename this to...
49612         * lib/areadlink.h: ...this.
49613         * modules/mreadlink-with-size: Rename this to...
49614         * modules/areadlink-with-size: ...this.
49615         * lib/canonicalize.c: Reflect the renaming.
49616         * modules/canonicalize: Likewise.
49617
49618 2007-08-26  Bruno Haible  <bruno@clisp.org>
49619
49620         * gnulib-tool (func_import): When deciding which files to remove,
49621         consider also dangling symbolic links.
49622         Reported by Eric Blake.
49623
49624 2007-08-26  Bruno Haible  <bruno@clisp.org>
49625
49626         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
49627
49628 2007-08-23  Simon Josefsson  <simon@josefsson.org>
49629
49630         * lib/readline.c: Don't include getline.h, the prototype is now
49631         found in stdio.h.
49632
49633 2007-08-23  Jim Meyering  <jim@meyering.net>
49634
49635         Getdelim touchup.
49636         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
49637         around the funlockfile call, since funlockfile never sets errno.
49638         Don't set errno upon failed realloc.
49639
49640 2007-08-22  Eric Blake  <ebb9@byu.net>
49641
49642         Getline touchups.
49643         * lib/getdelim.c (getdelim): Revert regression that required *n to
49644         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
49645         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
49646         getdelim, rather than whether implementation is missing.
49647         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
49648         * lib/stdio_.h (getline): Also declare if replacement is
49649         required.
49650         * doc/functions/getdelim.texi: New file.
49651         * doc/functions/getline.texi: Likewise.
49652         * doc/gnulib.texi (Function Substitutes): Add new files.
49653         Reported by Bruno Haible.
49654
49655 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
49656
49657         * users.txt: Add Guile.
49658
49659 2007-08-22  Eric Blake  <ebb9@byu.net>
49660
49661         * tests/test-getdelim.c (main): Use remove, not unlink.
49662         * tests/test-getline.c (main): Likewise.
49663
49664         Move getline and getdelim into stdio.h, per POSIX 200x.
49665         * modules/getline (Files): Remove getline.h.
49666         (Depends-on): Add stdio.
49667         (configure.ac): Add module indicator.
49668         * modules/getdelim (Files): Remove getdelim.h.
49669         (Depends-on): Add stdio.
49670         (configure.ac): Add module indicator.
49671         * modules/stdio (Makefile.am): Work with new indicators.
49672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
49673         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
49674         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49675         * lib/getdelim.h: Delete.
49676         * lib/getline.h: Delete.
49677         * lib/stdio_.h (getdelim, getline): Declare.
49678         * modules/getdelim-tests: New module.
49679         * modules/getline-tests: Likewise.
49680         * tests/test-getdelim.c: New file.
49681         * tests/test-getline.c: Likewise.
49682         * NEWS: Document the change.
49683         * lib/getline.c: Update choice of header.
49684         * lib/csharpcomp.c: Likewise.
49685         * lib/getpass.c: Likewise.
49686         * lib/javacomp.c: Likewise.
49687         * lib/javaversion.c: Likewise.
49688         * lib/yesno.c: Likewise.
49689         * lib/getdelim.c: Likewise.
49690         (getdelim): Set errno on failure, and avoid memory leak.
49691
49692 2007-08-19  Bruno Haible  <bruno@clisp.org>
49693
49694         * modules/closein (Depends-on): Add freadahead.
49695         * lib/closein.c: Include freadahead.h.
49696         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
49697         is zero.
49698
49699 2007-08-19  Bruno Haible  <bruno@clisp.org>
49700
49701         * modules/freadahead-tests: New file.
49702         * tests/test-freadahead.sh: New file.
49703         * tests/test-freadahead.c: New file.
49704
49705         * modules/freadahead: New file.
49706         * lib/freadahead.h: New file.
49707         * lib/freadahead.c: New file.
49708         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
49709         fbufmode, fpurge, freadable, fwritable.
49710
49711 2007-08-19  Eric Blake  <ebb9@byu.net>
49712
49713         Test yesno in combination with closein.
49714         * lib/yesno.c (yesno): Document use of stdin.
49715         * modules/yesno-tests (Files): New module.
49716         * tests/test-yesno.c (main): New file.
49717         * tests/test-yesno.sh: Likewise.
49718
49719 2007-08-19  Bruno Haible  <bruno@clisp.org>
49720
49721         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
49722         * lib/fseeko.c (rpl_fseeko): Likewise.
49723         * lib/fseterr.c (fseterr): Likewise.
49724
49725 2007-08-19  Bruno Haible  <bruno@clisp.org>
49726
49727         * tests/test-lseek.c (main): Disable a test for BeOS.
49728         * doc/functions/lseek.texi: Document the BeOS bug.
49729
49730 2007-08-19  Bruno Haible  <bruno@clisp.org>
49731             Eric Blake  <ebb9@byu.net>
49732
49733         * lib/lseek.c: Include <sys/stat.h>.
49734         (rpl_lseek): Add workaround code also for Unix platforms.
49735         Needed for BeOS.
49736         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
49737         * doc/functions/lseek.texi: Document BeOS definiency.
49738
49739 2007-08-18  Bruno Haible  <bruno@clisp.org>
49740
49741         * modules/fstrcmp-tests: New file.
49742         * tests/test-fstrcmp.c: New file.
49743
49744 2007-08-18  Bruno Haible  <bruno@clisp.org>
49745
49746         * modules/fstrcmp: New file, from GNU gettext with modifications.
49747         * lib/fstrcmp.h: New file, from GNU gettext.
49748         * lib/fstrcmp.c: New file, from GNU gettext.
49749         * MODULES.html.sh (String handling): Add fstrcmp.
49750
49751 2007-08-18  Bruno Haible  <bruno@clisp.org>
49752
49753         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
49754         'bool'.
49755         (diag, compareseq): Remove const from the ctxt argument.
49756         (USE_HEURISTIC): Undefine at the end.
49757
49758 2007-08-18  Jim Meyering  <jim@meyering.net>
49759
49760         New file: lib/idcache.h
49761         * NEWS: Mention the addition.
49762         * modules/idcache (Files): Add lib/idcache.h
49763         * lib/idcache.c: Include "idcache.h".
49764         Don't include <sys/types.h>.
49765         Add a FIXME comment.
49766         Move file-scoped "static" declarations to the top.
49767         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
49768
49769 2007-08-17  Bruno Haible  <bruno@clisp.org>
49770         and Paul Eggert  <eggert@cs.ucla.edu>
49771
49772         * MODULES.html.sh: Add diffseq.
49773         * modules/diffseq: New file.
49774         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
49775         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
49776
49777 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49778
49779         Import changes from coreutils for bootstrap script.
49780
49781         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
49782
49783         * build-aux/bootstrap (slurp): Work even in environments where
49784         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
49785         current code does not slurp files whose names start with ".", and
49786         this looks like it might be a troublesome area.
49787
49788         2007-07-11  Jim Meyering  <jim@meyering.net>
49789
49790         If there's a GPL vN copyright comment, require that N == 3.
49791
49792         2007-07-08  Jim Meyering  <jim@meyering.net>
49793
49794         Run the coreutils-specific code only if tests/Makefile.am.in exists.
49795         * build-aux/bootstrap (mam_template): Move definition out of loop.
49796
49797         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
49798
49799         * build-aux/bootstrap (symlink_to_dir): Rename function from
49800         symlink_to_gnulib.  Add a directory parameter.  Update all
49801         callers.
49802         (cp_mark_as_generated): Also check for -- and link to -- files in
49803         gl/.
49804
49805         2007-07-08  Jim Meyering  <jim@meyering.net>
49806
49807         Adapt to deeper hierarchy in gnulib.
49808         * build-aux/bootstrap (symlink_to_dir): If the destination
49809         directory doesn't exist, create it. This is required at least for
49810         "lib/uniwidth/cjk.h".
49811
49812         2007-05-15  Jim Meyering  <jim@meyering.net>
49813
49814         * build-aux/bootstrap: Now that generated Makefile.am files
49815         are no longer under version control, they must be created at
49816         bootstrap time.
49817
49818 2007-08-14  Ben Pfaff  <blp@gnu.org>
49819
49820         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
49821
49822 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49823
49824         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
49825         given the changes below.
49826         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
49827         even on hosts that have padding bits beyond the supported 64.
49828
49829 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49830
49831         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
49832         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
49833         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
49834         depends on it.
49835         (xstrtol_error): Remove.
49836         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
49837         but with a different signature.
49838         (ATTRIBUTE_NORETURN, __attribute__): New macros.
49839         * lib/xstrtol-error.c: Include exitfail.h.
49840         (xstrtol_fatal): New function, with a different signature from the
49841         old xstrtol_error, so that the caller need not worry about passing
49842         in an exit status, or about storage management of the option argument.
49843         (xstrtol_error): Now a static function.  Redo signature to
49844         implement xstrtol_fatal.  Output the correct number of hyphens in
49845         front of the option so that the caller need not worry about
49846         storage management.
49847         (N_): New macro.
49848         (_): Remove; not used now.
49849         * modules/xstrtol: Depend on getopt.
49850         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
49851         of old STRTOL_FATAL_ERROR macro.
49852         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
49853         of test program.
49854         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
49855         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
49856
49857 2007-08-08  Eric Blake  <ebb9@byu.net>
49858
49859         * lib/xstrtol-error.c: Add missing include.
49860
49861         Move xstrtol messages into gnulib domain, when --pobase is used.
49862         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
49863         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
49864         * modules/xstrtol (Files): Distribute new file.
49865         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
49866         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
49867         * tests/test-xstrtol.c: ...into new file.
49868         * tests/test-xstrtoul.c: Also test xstrtoul.
49869         * tests/test-xstrtoimax.c: Also test xstrtoimax.
49870         * tests/test-xstrtoumax.c: Also test xstrtoumax.
49871         * tests/test-xstrtol.sh: Drive the tests.
49872         * tests/test-xstrtoimax.sh: Likewise.
49873         * tests/test-xstrtoumax.sh: Likewise.
49874         * modules/xstrtol-tests: New module.
49875         * modules/xstrtoimax-tests: Likewise.
49876         * modules/xstrtoumax-tests: Likewise.
49877
49878 2007-08-08  Jim Meyering  <jim@meyering.net>
49879
49880         New function: mfile_name_concat.
49881         * lib/filenamecat.c (mfile_name_concat): New function, just like
49882         file_name_concat, but return NULL upon failure rather than exiting
49883         with a diagnostic.
49884         * lib/filenamecat.h: Declare it.
49885
49886 2007-08-07  Bruno Haible  <bruno@clisp.org>
49887
49888         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
49889         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
49890         warning from gcc.
49891         Reported by Eric Blake.
49892
49893 2007-08-07  Simon Josefsson  <simon@josefsson.org>
49894
49895         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
49896         * modules/crypto/arcfour (License): Likewise.
49897         * modules/crypto/des-tests (License): Likewise.
49898         * modules/crypto/gc-arctwo-tests (License): Likewise.
49899         * modules/crypto/gc-des-tests (License): Likewise.
49900         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
49901         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
49902         * modules/crypto/gc-md2-tests (License): Likewise.
49903         * modules/crypto/gc-md4-tests (License): Likewise.
49904         * modules/crypto/gc-md5-tests (License): Likewise.
49905         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
49906         * modules/crypto/gc-rijndael-tests (License): Likewise.
49907         * modules/crypto/gc-sha1-tests (License): Likewise.
49908         * modules/crypto/gc-tests (License): Likewise.
49909         * modules/crypto/hmac-md5 (License): Likewise.
49910         * modules/crypto/hmac-sha1 (License): Likewise.
49911         * modules/crypto/md2-tests (License): Likewise.
49912         * modules/crypto/md4-tests (License): Likewise.
49913         * modules/crypto/md5 (License): Likewise.
49914         * modules/crypto/rijndael (License): Likewise.
49915         * modules/crypto/sha1 (License): Likewise.
49916         * modules/memxor (License): Likewise.
49917
49918 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
49919         and Bruno Haible  <bruno@clisp.org>
49920
49921         * NEWS: Describe interface changes to human, xstrtol.
49922         * lib/human.h: Include <xstrtol.h>.
49923         (human_options): Return enum strtol_error, not int.  Remove
49924         bool arg; take int * instead.
49925         * lib/human.c: Don't include "gettext.h".
49926         (_): Remove; no longer used.
49927         Don't include <xstrtol.h>, since human.h does it.
49928         (human_options): Adjust to abovementioned interface changes.
49929         Do not report error to stderr; that's now the caller's
49930         responsibility.
49931         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
49932         interface change.
49933         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
49934         Str, Argument_type_string.  All uses changed.  Put " argument"
49935         in diagnostics to make them clearer.  Change wording of suffix
49936         message for clarity.
49937         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
49938         Argument_type_string.
49939         (STRTOL_FATAL_WARN): Remove; no longer used.
49940         * modules/human (Depends-on): Remove gettext-h.
49941
49942 2007-08-06  Simon Josefsson  <simon@josefsson.org>
49943
49944         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
49945
49946 2007-07-31  Bruno Haible  <bruno@clisp.org>
49947
49948         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
49949         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
49950         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
49951
49952 2007-07-31  Bruno Haible  <bruno@clisp.org>
49953
49954         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
49955         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
49956
49957 2007-07-30  Bruno Haible  <bruno@clisp.org>
49958
49959         * modules/base64 (License): Use the synonymous term "LGPLv2+".
49960         * modules/c-ctype (License): Likewise.
49961         * modules/c-strcase (License): Likewise.
49962         * modules/check-version (License): Likewise.
49963         * modules/iconv (License): Likewise.
49964         * modules/iconv_open (License): Likewise.
49965         * modules/read-file (License): Likewise.
49966         * modules/striconv (License): Likewise.
49967         * modules/strverscmp (License): Likewise.
49968         * modules/vasprintf (License): Likewise.
49969         * modules/crypto/des (License): Likewise.
49970         * modules/crypto/gc (License): Likewise.
49971         * modules/crypto/gc-arcfour (License): Likewise.
49972         * modules/crypto/gc-arctwo (License): Likewise.
49973         * modules/crypto/gc-des (License): Likewise.
49974         * modules/crypto/gc-hmac-md5 (License): Likewise.
49975         * modules/crypto/gc-hmac-sha1 (License): Likewise.
49976         * modules/crypto/gc-md2 (License): Likewise.
49977         * modules/crypto/gc-md4 (License): Likewise.
49978         * modules/crypto/gc-md5 (License): Likewise.
49979         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
49980         * modules/crypto/gc-random (License): Likewise.
49981         * modules/crypto/gc-rijndael (License): Likewise.
49982         * modules/crypto/gc-sha1 (License): Likewise.
49983         * modules/crypto/md2 (License): Likewise.
49984         * modules/crypto/md4 (License): Likewise.
49985
49986 2007-07-30  Jim Meyering  <jim@meyering.net>
49987
49988         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
49989         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
49990         it has valid stat data.  This bug would cause du not to count the
49991         sizes of inaccessible directories.
49992         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
49993         in <http://bugzilla.redhat.com/250077>.
49994
49995 2007-07-25  Peter O'Gorman  <peter@pogma.com>
49996             Bruno Haible  <bruno@clisp.org>
49997
49998         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
49999         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
50000         #include_next, gives a diagnostic about it, but reports no error in
50001         the exit code.
50002         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50003
50004 2007-07-24  Ben Pfaff  <blp@gnu.org>
50005
50006         Improve name: "count-one-bits" is better than "popcount".
50007         * MODULES.html.sh: Update name.
50008         * lib/popcount.h: Renamed lib/count-one-bits.h.
50009         (popcount): Renamed count_one_bits.
50010         (popcountl): Renamed count_one_bits_l.
50011         (popcountll): Renamed count_one_bits_ll.
50012         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
50013         * modules/popcount: Renamed module/count-one-bits.
50014         * modules/popcount-tests: Renamed module/count-one-bits-tests.
50015         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
50016
50017 2007-07-23  Ben Pfaff  <blp@gnu.org>
50018
50019         * lib/popcount.h (popcount32): Reduce size of constants, to allow
50020         better code generation, and add U to large constants to avoid
50021         warnings, in non-GCC case.
50022         Suggested by Bruno Haible.
50023
50024 2007-07-23  Ben Pfaff  <blp@gnu.org>
50025
50026         * lib/popcount.h: Use verify_true instead of if...abort.
50027         * modules/popcount: Depend on verify module.
50028         Suggested by Jim Meyering.
50029
50030 2007-07-23  Bruno Haible  <bruno@clisp.org>
50031
50032         * gnulib-tool (func_import): Create a .cvsignore file also when the
50033         directory is not yet in CVS but the toplevel directory is. When
50034         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
50035         Reported by Karl Berry.
50036
50037 2007-07-22  Ben Pfaff  <blp@gnu.org>
50038
50039         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
50040         case.
50041         Suggested by Eric Blake.
50042
50043 2007-07-22  Ben Pfaff  <blp@gnu.org>
50044
50045         New module: popcount.
50046         * MODULES.html.sh: Add popcount.
50047         * modules/popcount: New file.
50048         * modules/popcount-tests: New file.
50049         * tests/test-popcount.c: New file.
50050         * lib/popcount.h: New file.
50051         * m4/popcount.m4: New file.
50052
50053 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50054
50055         * build-aux/announce-gen: Update to GPLv3.
50056
50057         * build-aux/config.guess: Update from config.
50058
50059 2007-07-21  Bruno Haible  <bruno@clisp.org>
50060
50061         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
50062         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
50063
50064 2007-07-20  Jim Meyering  <jim@meyering.net>
50065
50066         * check-module: Diagnose a self-dependency.
50067
50068 2007-07-19  Bruno Haible  <bruno@clisp.org>
50069
50070         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
50071         empty.
50072         Reported by Eric Blake.
50073
50074 2007-07-18  Bruno Haible  <bruno@clisp.org>
50075
50076         * gnulib-tool: New options --po-base, --po-domain.
50077         (func_usage): Document them.
50078         (pobase, po_domain): New variables.
50079         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
50080         DEFAULT_TEXT_DOMAIN.
50081         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
50082         (func_import): Consider pobase and po_domain. Create a po/ directory.
50083         (func_create_testdir): Set pobase and po_domain to empty.
50084         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
50085         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
50086
50087 2007-07-18  Bruno Haible  <bruno@clisp.org>
50088
50089         * gnulib-tool (func_get_automake_snippet): Synthesize also an
50090         EXTRA_DIST augmentation for files in build-aux/.
50091
50092 2007-07-16  Bruno Haible  <bruno@clisp.org>
50093
50094         * modules/lseek (License): Use the synonymous term "LGPLv2+".
50095         * modules/getdelim (License): Likewise.
50096
50097 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50098
50099         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
50100         * modules/d-type (License): Likewise.
50101         * modules/extensions (License): Likewise.
50102         * modules/fnmatch (License): Likewise.
50103         * modules/fseeko (License): Likewise.
50104         * modules/getaddrinfo (License): Likewise.
50105         * modules/getline (License): Likewise.
50106         * modules/getlogin_r (License): Likewise.
50107         * modules/getpass (License): Likewise.
50108         * modules/gettimeofday (License): Likewise.
50109         * modules/glob (License): Likewise.
50110         * modules/inet_ntop (License): Likewise.
50111         * modules/malloc (License): Likewise.
50112         * modules/malloca (License): Likewise.
50113         * modules/memmem (License): Likewise.
50114         * modules/mempcpy (License): Likewise.
50115         * modules/memset (License): Likewise.
50116         * modules/minmax (License): Likewise.
50117         * modules/mktime (License): Likewise.
50118         * modules/netinet_in (License): Likewise.
50119         * modules/pathmax (License): Likewise.
50120         * modules/poll (License): Likewise.
50121         * modules/regex (License): Likewise.
50122         * modules/snprintf (License): Likewise.
50123         * modules/stdbool (License): Likewise.
50124         * modules/stdint (License): Likewise.
50125         * modules/stdio (License): Likewise.
50126         * modules/strcase (License): Likewise.
50127         * modules/strcasestr (License): Likewise.
50128         * modules/strdup (License): Likewise.
50129         * modules/string (License): Likewise.
50130         * modules/strndup (License): Likewise.
50131         * modules/strnlen (License): Likewise.
50132         * modules/strpbrk (License): Likewise.
50133         * modules/strptime (License): Likewise.
50134         * modules/strsep (License): Likewise.
50135         * modules/sys_select (License): Likewise.
50136         * modules/sys_socket (License): Likewise.
50137         * modules/sys_stat (License): Likewise.
50138         * modules/sys_time (License): Likewise.
50139         * modules/time (License): Likewise.
50140         * modules/time_r (License): Likewise.
50141         * modules/timegm (License): Likewise.
50142         * modules/unistd (License): Likewise.
50143         * modules/vsnprintf (License): Likewise.
50144         * modules/wctype (License): Likewise.
50145
50146 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50147
50148         * modules/argz (License): LGPLv2+.
50149
50150 2007-07-15  Karl Berry  <karl@gnu.org>
50151
50152         * doc/gnulib.texi: revise node structure per new fdl.texi.
50153
50154 2007-07-14  Bruno Haible  <bruno@clisp.org>
50155
50156         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
50157         the output file.
50158         * lib/uniname/uninames.h: Regenerated.
50159
50160 2007-07-14  Karl Berry  <karl@gnu.org>
50161
50162         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
50163         omitting sectioning and index commands.
50164
50165 2007-07-13  Bruno Haible  <bruno@clisp.org>
50166
50167         New gnulib-tool option --more-symlinks.
50168         * gnulib-tool (func_usage): Document --more-symlinks.
50169         (do_copyrights): New variable.
50170         Recognize option --more-symlinks.
50171         (func_import): Don't add a copyright notice transform to
50172         sed_transform_lib_file if do_copyrights is empty.
50173
50174 2007-07-13  Bruno Haible  <bruno@clisp.org>
50175
50176         * lib/vasnprintf.c (decimal_point_char): Define also if
50177         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
50178         && !NEED_PRINTF_DIRECTIVE_A.
50179         Reported by Clemens Koller <clemens.koller@anagramm.de> via
50180         Gary V. Vaughan <gary@gnu.org>.
50181
50182 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
50183
50184         * lib/inttypes_.h: Undo previous change, since it was fixed
50185         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
50186
50187 2007-07-13  Bruno Haible  <bruno@clisp.org>
50188
50189         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
50190         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
50191
50192 2007-07-13  Jim Meyering  <jim@meyering.net>
50193
50194         df: Don't fail for Tru64's "file-on-file mount".
50195         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
50196         so we fall through and use statfs instead.  Details here:
50197         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
50198         Reported by Albert Chin.
50199
50200 2007-07-13  Bruno Haible  <bruno@clisp.org>
50201
50202         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
50203         * modules/configmake (License): Likewise.
50204         * modules/gettext (License): Likewise.
50205         * modules/gettext-h (License): Likewise.
50206         * modules/include_next (License): Likewise.
50207         * modules/link-warning (License): Likewise.
50208         * modules/localcharset (License): Likewise.
50209         * modules/localename (License): Likewise.
50210         * modules/lock (License): Likewise.
50211         * modules/relocatable-lib-lgpl (License): Likewise.
50212         * modules/size_max (License): Likewise.
50213         * modules/vasnprintf (License): Likewise.
50214         * modules/wchar (License): Likewise.
50215         * modules/xsize (License): Likewise.
50216
50217 2007-07-13  Bruno Haible  <bruno@clisp.org>
50218
50219         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
50220         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
50221
50222 2007-07-12  Bruno Haible  <bruno@clisp.org>
50223
50224         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
50225         in the modules files.
50226
50227 2007-07-11  Karl Berry  <karl@gnu.org>
50228
50229         * MODULES.html.sh (func_module): use
50230          sed -e '\|^'"${includefile}"'$|d'
50231          instead of /.../d, to avoid errors on $includefile's containing /.
50232
50233 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
50234
50235         * gnulib-tool (func_import): Avoid duplication of --avoid
50236         statements
50237         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
50238         names to `_' in variable names.
50239
50240 2007-07-10  Eric Blake  <ebb9@byu.net>
50241
50242         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
50243         * NEWS: Document this change.
50244
50245 2007-07-08  Bruno Haible  <bruno@clisp.org>
50246
50247         Update to Unicode 5.0.
50248         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
50249         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
50250         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
50251         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
50252         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
50253         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
50254         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
50255         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
50256         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
50257         U+10A3F, U+1D242..U+1D244.
50258         (nonspacing_table_ind): Update.
50259         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
50260         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
50261
50262 2007-07-08  Bruno Haible  <bruno@clisp.org>
50263
50264         Update to Unicode 5.0.
50265         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
50266         code transform. Extend the name index field of unicode_name_to_code and
50267         unicode_code_to_name from 16 to 24 bits.
50268         * lib/uniname/uniname.c (unicode_character_name,
50269         unicode_name_character): Add the range 0x12xxx to the code transform.
50270         * lib/uniname/uninames.h: Regenerated.
50271         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
50272
50273 2007-07-07  Bruno Haible  <bruno@clisp.org>
50274
50275         * modules/wcwidth-tests: New file.
50276         * tests/test-wcwidth.c: New file.
50277
50278         Work around MacOS X wcwidth() bug.
50279         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
50280         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
50281         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
50282         original wcwidth in non-UTF-8 locales.
50283         * modules/wcwidth (Depends-on): Add localcharset, streq,
50284         uniwidth/width.
50285         * doc/functions/wcwidth.texi: Update.
50286
50287 2007-07-07  Bruno Haible  <bruno@clisp.org>
50288
50289         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
50290         (wcwidth): New declaration.
50291         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
50292         macros.
50293         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
50294         here. Prepare for creating <wchar.h> unconditionally.
50295         * modules/wchar (Depends-on): Add link-warning.
50296         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
50297         REPLACE_WCWIDTH, and GL_LINK_WARNING.
50298         * lib/wcwidth.h: Remove file.
50299         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
50300         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
50301         * modules/wcwidth (Files): Remove lib/wcwidth.h.
50302         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
50303         (Include): Replace wcwidth.h with <wchar.h>.
50304         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
50305         * lib/mbchar.h: Don't include wcwidth.h.
50306         * lib/mbswidth.c: Likewise.
50307         * NEWS: Mention the change.
50308
50309 2007-07-07  Bruno Haible  <bruno@clisp.org>
50310
50311         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
50312         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
50313         definition with an external declaration.
50314         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
50315         defined as a function. Remove AC_C_INLINE requirement.
50316         * modules/wcwidth (Files): Add lib/wcwidth.c.
50317         (Makefile.am): Remove redundant statement.
50318
50319 2007-07-07  Bruno Haible  <bruno@clisp.org>
50320
50321         * MODULES.html.sh (Unicode string functions): Add the new modules.
50322
50323         * tests/uniwidth/test-u32-strwidth.c: New file.
50324         * modules/uniwidth/u32-strwidth-tests: New file.
50325
50326         * lib/uniwidth/u32-strwidth.c: New file.
50327         * modules/uniwidth/u32-strwidth: New file.
50328
50329         * tests/uniwidth/test-u16-strwidth.c: New file.
50330         * modules/uniwidth/u16-strwidth-tests: New file.
50331
50332         * lib/uniwidth/u16-strwidth.c: New file.
50333         * modules/uniwidth/u16-strwidth: New file.
50334
50335         * tests/uniwidth/test-u8-strwidth.c: New file.
50336         * modules/uniwidth/u8-strwidth-tests: New file.
50337
50338         * lib/uniwidth/u8-strwidth.c: New file.
50339         * modules/uniwidth/u8-strwidth: New file.
50340
50341         * tests/uniwidth/test-u32-width.c: New file.
50342         * modules/uniwidth/u32-width-tests: New file.
50343
50344         * lib/uniwidth/u32-width.c: New file.
50345         * modules/uniwidth/u32-width: New file.
50346
50347         * tests/uniwidth/test-u16-width.c: New file.
50348         * modules/uniwidth/u16-width-tests: New file.
50349
50350         * lib/uniwidth/u16-width.c: New file.
50351         * modules/uniwidth/u16-width: New file.
50352
50353         * tests/uniwidth/test-u8-width.c: New file.
50354         * modules/uniwidth/u8-width-tests: New file.
50355
50356         * lib/uniwidth/u8-width.c: New file.
50357         * modules/uniwidth/u8-width: New file.
50358
50359         * tests/uniwidth/test-uc_width.c: New file.
50360         * modules/uniwidth/width-tests: New file.
50361
50362         * lib/uniwidth/width.c: New file, from GNU libiconv.
50363         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
50364         * modules/uniwidth/width: New file.
50365
50366         * lib/uniwidth.h: New file, from GNU libiconv.
50367         * modules/uniwidth/base: New file.
50368
50369 2007-07-07  Bruno Haible  <bruno@clisp.org>
50370
50371         * lib/uniname.h: New file, from GNU gettext.
50372         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
50373         * lib/uniname/uninames.h: New file, from GNU gettext.
50374         * lib/uniname/uniname.c: New file, from GNU gettext.
50375         * tests/uniname/test-uninames.sh: New file.
50376         * tests/uniname/test-uninames.c: New file, from GNU gettext.
50377         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
50378         * modules/uniname/base: New file.
50379         * modules/uniname/uniname: New file.
50380         * modules/uniname/uniname-tests: New file.
50381         * MODULES.html.sh (Unicode string functions): Add the new modules.
50382
50383 2007-07-06  Bruno Haible  <bruno@clisp.org>
50384
50385         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
50386
50387 2007-07-06  Bruno Haible  <bruno@clisp.org>
50388
50389         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
50390         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
50391         includes <cygwin/sys_time.h> which includes <sys/select.h> which
50392         include <sys/time.h>.
50393         Reported by Eric Blake.
50394
50395 2007-07-06  Eric Blake  <ebb9@byu.net>
50396
50397         Fix testing canonicalize on cygwin.
50398         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
50399         Revert patch from 2007-06-19.
50400         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
50401         canonicalize module is also in use.
50402         * tests/test-canonicalize.c: New file.
50403         * tests/test-canonicalize.sh: Likewise.
50404         * modules/canonicalize-tests: Likewise.
50405
50406 2007-07-06  Jim Meyering  <jim@meyering.net>
50407
50408         * lib/getugroups.c (getugroups): Detect getgrent failure.
50409         Adjust comment to reflect reality: this function may return -1.
50410
50411 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
50412
50413         * build-aux/bootstrap (TP_URL,get_translations): Update to use
50414         the new TP address.
50415         (usage): Fix typo
50416         (gnulib_mk): New variable.
50417
50418 2007-07-05  Jim Meyering  <jim@meyering.net>
50419
50420         Don't let endgrent clobber errno, no matter how improbable.
50421         * lib/getugroups.c (getugroups): Save and restore errno around
50422         endgrent call.
50423
50424         Close the group DB even when failing with 2^31 or more members.
50425         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
50426
50427 2007-07-04  Jim Meyering  <jim@meyering.net>
50428
50429         * lib/getugroups.h: New file.
50430         * lib/getugroups.c: Include "getugroups.h".
50431         Remove uses of "register" keyword.
50432         Move local variable, "cp", down into scope where used.
50433         Give "username" parameter the "const" attribute.
50434         * modules/getugroups (Files): Add lib/getugroups.h
50435
50436 2007-07-04  Karl Berry  <karl@gnu.org>
50437
50438         * MODULES.html.sh (func_all_modules): Complete rename of
50439         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
50440
50441 2007-07-02  Bruno Haible  <bruno@clisp.org>
50442
50443         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
50444         mode, when inttypes.h comes from gnulib.
50445         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50446
50447 2007-07-02  Simon Josefsson  <simon@josefsson.org>
50448
50449         * NEWS: Mention lgpl module name change.
50450
50451         * modules/lgpl-2.1: Renamed from lgpl.
50452
50453         * NEWS: Mention gpl module name change.
50454
50455         * modules/gpl-3.0: New file, based on gpl-2.0.
50456
50457         * modules/gpl-2.0: Renamed from gpl.
50458
50459         * modules/gpl: Fix filename, doc/gpl.texi is now found at
50460         doc/gpl-2.0.texi.
50461
50462 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
50463
50464         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
50465         #define __STDC_LIMIT_MACROS temporarily while including
50466         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
50467         Problem reported by Joel E. Denny in
50468         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
50469
50470 2007-07-01  Bruno Haible  <bruno@clisp.org>
50471
50472         * lib/unistdio.h: New file.
50473         * lib/unistdio/u-asnprintf.h: New file.
50474         * lib/unistdio/u-asprintf.h: New file.
50475         * lib/unistdio/u-printf-args.c: New file.
50476         * lib/unistdio/u-printf-args.h: New file.
50477         * lib/unistdio/u-printf-parse.h: New file.
50478         * lib/unistdio/u-snprintf.h: New file.
50479         * lib/unistdio/u-sprintf.h: New file.
50480         * lib/unistdio/u-vasprintf.h: New file.
50481         * lib/unistdio/u-vsnprintf.h: New file.
50482         * lib/unistdio/u-vsprintf.h: New file.
50483         * lib/unistdio/ulc-asnprintf.c: New file.
50484         * lib/unistdio/ulc-asprintf.c: New file.
50485         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
50486         * lib/unistdio/ulc-printf-parse.c: New file.
50487         * lib/unistdio/ulc-snprintf.c: New file.
50488         * lib/unistdio/ulc-sprintf.c: New file.
50489         * lib/unistdio/ulc-vasnprintf.c: New file.
50490         * lib/unistdio/ulc-vasprintf.c: New file.
50491         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
50492         * lib/unistdio/ulc-vsnprintf.c: New file.
50493         * lib/unistdio/ulc-vsprintf.c: New file.
50494         * lib/unistdio/u8-asnprintf.c: New file.
50495         * lib/unistdio/u8-asprintf.c: New file.
50496         * lib/unistdio/u8-printf-parse.c: New file.
50497         * lib/unistdio/u8-snprintf.c: New file.
50498         * lib/unistdio/u8-sprintf.c: New file.
50499         * lib/unistdio/u8-vasnprintf.c: New file.
50500         * lib/unistdio/u8-vasprintf.c: New file.
50501         * lib/unistdio/u8-vsnprintf.c: New file.
50502         * lib/unistdio/u8-vsprintf.c: New file.
50503         * lib/unistdio/u8-u8-asnprintf.c: New file.
50504         * lib/unistdio/u8-u8-asprintf.c: New file.
50505         * lib/unistdio/u8-u8-snprintf.c: New file.
50506         * lib/unistdio/u8-u8-sprintf.c: New file.
50507         * lib/unistdio/u8-u8-vasnprintf.c: New file.
50508         * lib/unistdio/u8-u8-vasprintf.c: New file.
50509         * lib/unistdio/u8-u8-vsnprintf.c: New file.
50510         * lib/unistdio/u8-u8-vsprintf.c: New file.
50511         * lib/unistdio/u16-asnprintf.c: New file.
50512         * lib/unistdio/u16-asprintf.c: New file.
50513         * lib/unistdio/u16-printf-parse.c: New file.
50514         * lib/unistdio/u16-snprintf.c: New file.
50515         * lib/unistdio/u16-sprintf.c: New file.
50516         * lib/unistdio/u16-vasnprintf.c: New file.
50517         * lib/unistdio/u16-vasprintf.c: New file.
50518         * lib/unistdio/u16-vsnprintf.c: New file.
50519         * lib/unistdio/u16-vsprintf.c: New file.
50520         * lib/unistdio/u16-u16-asnprintf.c: New file.
50521         * lib/unistdio/u16-u16-asprintf.c: New file.
50522         * lib/unistdio/u16-u16-snprintf.c: New file.
50523         * lib/unistdio/u16-u16-sprintf.c: New file.
50524         * lib/unistdio/u16-u16-vasnprintf.c: New file.
50525         * lib/unistdio/u16-u16-vasprintf.c: New file.
50526         * lib/unistdio/u16-u16-vsnprintf.c: New file.
50527         * lib/unistdio/u16-u16-vsprintf.c: New file.
50528         * lib/unistdio/u32-asnprintf.c: New file.
50529         * lib/unistdio/u32-asprintf.c: New file.
50530         * lib/unistdio/u32-printf-parse.c: New file.
50531         * lib/unistdio/u32-snprintf.c: New file.
50532         * lib/unistdio/u32-sprintf.c: New file.
50533         * lib/unistdio/u32-vasnprintf.c: New file.
50534         * lib/unistdio/u32-vasprintf.c: New file.
50535         * lib/unistdio/u32-vsnprintf.c: New file.
50536         * lib/unistdio/u32-vsprintf.c: New file.
50537         * lib/unistdio/u32-u32-asnprintf.c: New file.
50538         * lib/unistdio/u32-u32-asprintf.c: New file.
50539         * lib/unistdio/u32-u32-snprintf.c: New file.
50540         * lib/unistdio/u32-u32-sprintf.c: New file.
50541         * lib/unistdio/u32-u32-vasnprintf.c: New file.
50542         * lib/unistdio/u32-u32-vasprintf.c: New file.
50543         * lib/unistdio/u32-u32-vsnprintf.c: New file.
50544         * lib/unistdio/u32-u32-vsprintf.c: New file.
50545         * tests/unistdio/test-ulc-asnprintf1.c: New file.
50546         * tests/unistdio/test-ulc-asnprintf1.h: New file.
50547         * tests/unistdio/test-ulc-printf1.h: New file.
50548         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
50549         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
50550         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
50551         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
50552         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
50553         * tests/unistdio/test-ulc-vasprintf1.c: New file.
50554         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
50555         * tests/unistdio/test-ulc-vsprintf1.c: New file.
50556         * tests/unistdio/test-u8-asnprintf1.c: New file.
50557         * tests/unistdio/test-u8-asnprintf1.h: New file.
50558         * tests/unistdio/test-u8-printf1.h: New file.
50559         * tests/unistdio/test-u8-vasnprintf1.c: New file.
50560         * tests/unistdio/test-u8-vasnprintf2.c: New file.
50561         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
50562         * tests/unistdio/test-u8-vasnprintf3.c: New file.
50563         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
50564         * tests/unistdio/test-u8-vasprintf1.c: New file.
50565         * tests/unistdio/test-u8-vsnprintf1.c: New file.
50566         * tests/unistdio/test-u8-vsprintf1.c: New file.
50567         * tests/unistdio/test-u16-asnprintf1.c: New file.
50568         * tests/unistdio/test-u16-asnprintf1.h: New file.
50569         * tests/unistdio/test-u16-printf1.h: New file.
50570         * tests/unistdio/test-u16-vasnprintf1.c: New file.
50571         * tests/unistdio/test-u16-vasnprintf2.c: New file.
50572         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
50573         * tests/unistdio/test-u16-vasnprintf3.c: New file.
50574         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
50575         * tests/unistdio/test-u16-vasprintf1.c: New file.
50576         * tests/unistdio/test-u16-vsnprintf1.c: New file.
50577         * tests/unistdio/test-u16-vsprintf1.c: New file.
50578         * tests/unistdio/test-u32-asnprintf1.c: New file.
50579         * tests/unistdio/test-u32-asnprintf1.h: New file.
50580         * tests/unistdio/test-u32-printf1.h: New file.
50581         * tests/unistdio/test-u32-vasnprintf1.c: New file.
50582         * tests/unistdio/test-u32-vasnprintf2.c: New file.
50583         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
50584         * tests/unistdio/test-u32-vasnprintf3.c: New file.
50585         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
50586         * tests/unistdio/test-u32-vasprintf1.c: New file.
50587         * tests/unistdio/test-u32-vsnprintf1.c: New file.
50588         * tests/unistdio/test-u32-vsprintf1.c: New file.
50589         * modules/unistdio/base: New file.
50590         * modules/unistdio/u-printf-args: New file.
50591         * modules/unistdio/ulc-asnprintf: New file.
50592         * modules/unistdio/ulc-asprintf: New file.
50593         * modules/unistdio/ulc-fprintf: New file.
50594         * modules/unistdio/ulc-printf-parse: New file.
50595         * modules/unistdio/ulc-snprintf: New file.
50596         * modules/unistdio/ulc-sprintf: New file.
50597         * modules/unistdio/ulc-vasnprintf: New file.
50598         * modules/unistdio/ulc-vasprintf: New file.
50599         * modules/unistdio/ulc-vfprintf: New file.
50600         * modules/unistdio/ulc-vsnprintf: New file.
50601         * modules/unistdio/ulc-vsprintf: New file.
50602         * modules/unistdio/u8-asnprintf: New file.
50603         * modules/unistdio/u8-asprintf: New file.
50604         * modules/unistdio/u8-printf-parse: New file.
50605         * modules/unistdio/u8-snprintf: New file.
50606         * modules/unistdio/u8-sprintf: New file.
50607         * modules/unistdio/u8-vasnprintf: New file.
50608         * modules/unistdio/u8-vasprintf: New file.
50609         * modules/unistdio/u8-vsnprintf: New file.
50610         * modules/unistdio/u8-vsprintf: New file.
50611         * modules/unistdio/u8-u8-asnprintf: New file.
50612         * modules/unistdio/u8-u8-asprintf: New file.
50613         * modules/unistdio/u8-u8-snprintf: New file.
50614         * modules/unistdio/u8-u8-sprintf: New file.
50615         * modules/unistdio/u8-u8-vasnprintf: New file.
50616         * modules/unistdio/u8-u8-vasprintf: New file.
50617         * modules/unistdio/u8-u8-vsnprintf: New file.
50618         * modules/unistdio/u8-u8-vsprintf: New file.
50619         * modules/unistdio/u16-asnprintf: New file.
50620         * modules/unistdio/u16-asprintf: New file.
50621         * modules/unistdio/u16-printf-parse: New file.
50622         * modules/unistdio/u16-snprintf: New file.
50623         * modules/unistdio/u16-sprintf: New file.
50624         * modules/unistdio/u16-vasnprintf: New file.
50625         * modules/unistdio/u16-vasprintf: New file.
50626         * modules/unistdio/u16-vsnprintf: New file.
50627         * modules/unistdio/u16-vsprintf: New file.
50628         * modules/unistdio/u16-u16-asnprintf: New file.
50629         * modules/unistdio/u16-u16-asprintf: New file.
50630         * modules/unistdio/u16-u16-snprintf: New file.
50631         * modules/unistdio/u16-u16-sprintf: New file.
50632         * modules/unistdio/u16-u16-vasnprintf: New file.
50633         * modules/unistdio/u16-u16-vasprintf: New file.
50634         * modules/unistdio/u16-u16-vsnprintf: New file.
50635         * modules/unistdio/u16-u16-vsprintf: New file.
50636         * modules/unistdio/u32-asnprintf: New file.
50637         * modules/unistdio/u32-asprintf: New file.
50638         * modules/unistdio/u32-printf-parse: New file.
50639         * modules/unistdio/u32-snprintf: New file.
50640         * modules/unistdio/u32-sprintf: New file.
50641         * modules/unistdio/u32-vasnprintf: New file.
50642         * modules/unistdio/u32-vasprintf: New file.
50643         * modules/unistdio/u32-vsnprintf: New file.
50644         * modules/unistdio/u32-vsprintf: New file.
50645         * modules/unistdio/u32-u32-asnprintf: New file.
50646         * modules/unistdio/u32-u32-asprintf: New file.
50647         * modules/unistdio/u32-u32-snprintf: New file.
50648         * modules/unistdio/u32-u32-sprintf: New file.
50649         * modules/unistdio/u32-u32-vasnprintf: New file.
50650         * modules/unistdio/u32-u32-vasprintf: New file.
50651         * modules/unistdio/u32-u32-vsnprintf: New file.
50652         * modules/unistdio/u32-u32-vsprintf: New file.
50653         * modules/unistdio/ulc-asnprintf-tests: New file.
50654         * modules/unistdio/ulc-vasnprintf-tests: New file.
50655         * modules/unistdio/ulc-vasprintf-tests: New file.
50656         * modules/unistdio/ulc-vsnprintf-tests: New file.
50657         * modules/unistdio/ulc-vsprintf-tests: New file.
50658         * modules/unistdio/u8-asnprintf-tests: New file.
50659         * modules/unistdio/u8-vasnprintf-tests: New file.
50660         * modules/unistdio/u8-vasprintf-tests: New file.
50661         * modules/unistdio/u8-vsnprintf-tests: New file.
50662         * modules/unistdio/u8-vsprintf-tests: New file.
50663         * modules/unistdio/u16-asnprintf-tests: New file.
50664         * modules/unistdio/u16-vasnprintf-tests: New file.
50665         * modules/unistdio/u16-vasprintf-tests: New file.
50666         * modules/unistdio/u16-vsnprintf-tests: New file.
50667         * modules/unistdio/u16-vsprintf-tests: New file.
50668         * modules/unistdio/u32-asnprintf-tests: New file.
50669         * modules/unistdio/u32-vasnprintf-tests: New file.
50670         * modules/unistdio/u32-vasprintf-tests: New file.
50671         * modules/unistdio/u32-vsnprintf-tests: New file.
50672         * modules/unistdio/u32-vsprintf-tests: New file.
50673         * MODULES.html.sh (Unicode string functions): Add the new modules.
50674
50675 2007-07-01  Bruno Haible  <bruno@clisp.org>
50676
50677         * lib/sprintf.c (sprintf): Limit the available length estimation,
50678         to avoid address wraparound.
50679         * lib/vsprintf.c (vsprintf): Likewise.
50680         * modules/sprintf-posix (Dependencies): Add stdint.
50681         * modules/vsprintf-posix (Dependencies): Likewise.
50682
50683 2007-07-01  Bruno Haible  <bruno@clisp.org>
50684
50685         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
50686         Windows PATH as well. Conservative double-quoting. Comments.
50687
50688 2007-07-01  Bruno Haible  <bruno@clisp.org>
50689             Eric Blake  <ebb9@byu.net>
50690             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50691
50692         * gnulib-tool (self_abspathname): Fix algorithm to cope with
50693         empty components in $PATH, denoting '.'.
50694
50695 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50696
50697         * gnulib-tool: Fix indentation.
50698         (func_create_megatestdir): Likewise.
50699         Report by Bruno Haible.
50700
50701 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50702
50703         Sync from Automake.
50704         * build-aux/gnupload: Fix shell portability issues with for loops.
50705         Report by Karl Berry.
50706
50707 2007-06-29  Simon Josefsson  <simon@josefsson.org>
50708
50709         * build-aux/maint.mk (POURL): Use translationproject.org.
50710
50711 2007-06-27  Simon Josefsson  <simon@josefsson.org>
50712             Bruno Haible  <bruno@clisp.org>
50713
50714         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
50715         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
50716         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
50717         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
50718         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
50719
50720 2007-06-27  Bruno Haible  <bruno@clisp.org>
50721
50722         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
50723         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
50724
50725 2007-06-26  Karl Berry  <karl@gnu.org>
50726
50727         * MODULES.html.sh: remove xreadlink-with-size.
50728
50729 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50730
50731         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
50732         method that I hope also handles the double-include problem noted
50733         by Bruno Haible in
50734         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
50735
50736 2007-06-23  Bruno Haible  <bruno@clisp.org>
50737
50738         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50739         Don't let the 'mostlyclean' target fail if the last subdirectory could
50740         not be removed.
50741         Reported by Karl Berry.
50742
50743 2007-06-23  Bruno Haible  <bruno@clisp.org>
50744
50745         * gnulib-tool (echo): Add a speedier workaround for ksh.
50746         * tests/test-echo.sh: Likewise.
50747
50748 2007-06-23  Bruno Haible  <bruno@clisp.org>
50749
50750         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
50751         * tests/test-echo.sh: Likewise.
50752
50753 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50754
50755         * gnulib-tool (IFS): Initialize early, so we don't set it to
50756         empty later.
50757         (self_abspathname): Rewrite algorithm to set it, reindent.
50758         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
50759         (func_create_megatestdir): Merge some sed scripts.
50760
50761 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50762
50763         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
50764         exposed by Sun Studio 11 cc on Solaris 8.
50765
50766 2007-06-22  Bruno Haible  <bruno@clisp.org>
50767
50768         * gnulib-tool (echo): Ensure the echo primitive does not interpret
50769         backslashes.
50770         * tests/test-echo.sh: New file.
50771
50772 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50773
50774         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
50775         simplify `sed_replace_build_aux' scripts, they are portable but
50776         echoing them with `echo' is not.
50777         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
50778
50779 2007-06-21  Karl Berry  <karl@gnu.org>
50780
50781         * config/srclist.txt: guess we can't handle the licenses via
50782         srclist at the moment.
50783
50784 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
50785
50786         * MODULES.html.sh: Add include_next.
50787         * modules/include_next: New file.
50788
50789 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50790
50791         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
50792         INCLUDE_NEXT.
50793         (gl_CHECK_NEXT_HEADERS): New macro.
50794         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
50795         the obsolescent gl_ABSOLUTE_HEADER.
50796         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
50797         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
50798         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
50799         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50800         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
50801         * m4/math_h.m4 (gl_MATH_H): Likewise.
50802         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50803         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
50804         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
50805         * m4/stdint.m4 (gl_STDINT_H): Likewise.
50806         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
50807         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
50808         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
50809         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50810         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50811         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
50812         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
50813         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
50814         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
50815         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
50816         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
50817         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
50818         * m4/inttypes.m4 (gl_INTTYPES_H): Define
50819         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
50820         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
50821         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
50822         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
50823         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
50824         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
50825         * lib/float_.h: Likewise.
50826         * lib/inttypes_.h: Likewise.
50827         * lib/math_.h: Likewise.
50828         * lib/search_.h: Likewise.
50829         * lib/signal_.h: Likewise.
50830         * lib/stdint_.h: Likewise.
50831         * lib/stdio_.h: Likewise.
50832         * lib/stdlib_.h: Likewise.
50833         * lib/string_.h: Likewise.
50834         * lib/sys_stat_.h: Likewise.
50835         * lib/sys_time_.h: Likewise.
50836         * lib/time_.h: Likewise.
50837         * lib/unistd_.h: Likewise.
50838         * lib/wchar_.h: Likewise.
50839         * lib/wctype_.h: Likewise.
50840         * lib/dirent_.h: Likewise.
50841         * lib/iconv_.h: Likewise.
50842         * lib/locale_.h: Likewise.
50843         * lib/netinet_in_.h: Likewise.
50844         * lib/sys_select_.h: Likewise.
50845         * lib/sys_socket_.h: Likewise.
50846         * lib/sysexits_.h: Likewise.
50847         * modules/fcntl (Depends-on): Depend on include_next, not
50848         absolute_header.
50849         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
50850         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
50851         * modules/fchdir: Likewise.
50852         * modules/float: Likewise.
50853         * modules/iconv_open: Likewise.
50854         * modules/inttypes: Likewise.
50855         * modules/locale: Likewise.
50856         * modules/math: Likewise.
50857         * modules/netinet_in: Likewise.
50858         * modules/search: Likewise.
50859         * modules/signal: Likewise.
50860         * modules/stdint: Likewise.
50861         * modules/stdio: Likewise.
50862         * modules/stdlib: Likewise.
50863         * modules/string: Likewise.
50864         * modules/sys_select: Likewise.
50865         * modules/sys_socket: Likewise.
50866         * modules/sys_stat: Likewise.
50867         * modules/sys_time: Likewise.
50868         * modules/sysexits: Likewise.
50869         * modules/time: Likewise.
50870         * modules/unistd: Likewise.
50871         * modules/wchar: Likewise.
50872         * modules/wctype: Likewise.
50873         * modules/sys_stat: Change maintainer to "all".
50874         * modules/unistd: Likewise.
50875
50876 2007-06-20  Karl Berry  <karl@gnu.org>
50877
50878         * config/srclist.txt: track www changes in license files.
50879
50880 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
50881
50882         * build-aux/bootstrap: Remove stray dot.
50883         Make sure build_aux settings are honored when linking
50884         gnulib_extra_files.
50885
50886 2007-06-19  Eric Blake  <ebb9@byu.net>
50887
50888         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
50889         Allow compilation on cygwin.
50890
50891 2007-06-19  Jim Meyering  <jim@meyering.net>
50892
50893         xreadlink-with-size: Remove module.  No longer used.
50894         Ex-callers now use xreadlink or mreadlink-with-size.
50895         * modules/xreadlink-with-size: Remove module.
50896         * lib/xreadlink-with-size.c: Remove file.
50897         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
50898         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
50899         just before the function definition *is* accurate.
50900
50901         Eliminate one way canonicalize_filename_mode could exit.
50902         * lib/canonicalize.c (canonicalize_filename_mode):
50903         Use mreadlink_with_size, not xreadlink_with_size.
50904
50905 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
50906
50907         Detect porting problems to FreeBSD/arm, which has time_t wider than
50908         long int.  Original problem reported for GNU diff by Xin Li in
50909         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
50910         * modules/getdate (Depends-on): Add intprops, verify.
50911         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
50912         is an integer type no wider than long int.
50913
50914 2007-06-18  Jim Meyering  <jim@meyering.net>
50915
50916         New module: mreadlink-with-size.
50917         * MODULES.html.sh: Add mreadlink-with-size.
50918         * modules/mreadlink-with-size: New module
50919         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
50920         not xreadlink-with-size.
50921         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
50922
50923 2007-06-16  Bruno Haible  <bruno@clisp.org>
50924
50925         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
50926         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
50927         Reported by Gary V. Vaughan <gary@gnu.org>.
50928
50929 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
50930
50931         Revamp lchown so that it lives in unistd.h where it belongs.
50932         * lib/lchown.h: Remove.
50933         * lib/dirchownmod.c: Don't include lib/lchown.h.
50934         * lib/fchownat.c: Likewise.
50935         * lib/openat.c: Likewise.
50936         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
50937         does not follow symlinks.
50938         (EOPNOTSUPP): Define if not defined.
50939         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
50940         is defined to 0.
50941         (lchown): New decl.
50942         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
50943         Do not check for lchown decl.
50944         Set REPLACE_LCHOWN.
50945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
50946         REPLACE_LCHOWN.
50947         * modules/chown: Make it clear it follows symlinks.
50948         * modules/lchown: Make it clear it doesn't follow symlinks.
50949         (Files): Remove lib/lchown.h
50950         (Depends-on): Add unistd.
50951         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
50952         (Include): Include <unistd.h>, not "lchown.h".
50953         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
50954         REPLACE_LCHOWN.
50955
50956 2007-06-15  Jim Meyering  <jim@meyering.net>
50957
50958         Change license (GPL to LGPL) of fsusage and dependents.
50959         * modules/fsusage (License): Change to LGPL.
50960         * modules/full-read (License): Likewise.
50961         * modules/full-write (License): Likewise.
50962         * modules/safe-read (License): Likewise.
50963         * modules/safe-write (License): Likewise.
50964
50965 2007-06-14  Ben Pfaff  <blp@gnu.org>
50966
50967         Missing part of allocsa -> malloca transition.
50968         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
50969         gl_MALLOCA.
50970
50971 2007-06-12  Bruno Haible  <bruno@clisp.org>
50972
50973         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
50974         to ia64, x86_64, i386.
50975         Reported by Eric Blake.
50976
50977 2007-06-12  Bruno Haible  <bruno@clisp.org>
50978
50979         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
50980         cross-compiling to x86_64.
50981
50982 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
50983
50984         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
50985         glitch reported by Ralf Wildenhues in
50986         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
50987
50988         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
50989         Vin Shelton.
50990
50991 2007-06-11  Bruno Haible  <bruno@clisp.org>
50992
50993         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
50994         replacement string.
50995         Reported by Eric Blake.
50996
50997 2007-06-10  Bruno Haible  <bruno@clisp.org>
50998
50999         Prepare vasnprintf code for use with Unicode strings.
51000         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
51001         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
51002         TYPE_U32_STRING.
51003         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
51004         a_u32_string variants.
51005         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51006         * lib/printf-args.c: Don't include config.h and the specification
51007         header if PRINTF_FETCHARGS is already defined.
51008         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51009         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
51010         TYPE_U16_STRING, TYPE_U32_STRING.
51011         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
51012         u16_directive, u16_directives, u32_directive, u32_directives): New
51013         types.
51014         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
51015         New declarations.
51016         * lib/printf-parse.c: Don't include config.h and the specification
51017         header if PRINTF_PARSE is already defined. Eliminate the set of
51018         parameters for WIDE_CHAR_VERSION; the user of this file must provide
51019         them now. Include c-ctype.h.
51020         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
51021         directive and CHAR_T_ONLY_ASCII.
51022         * lib/vasnprintf.c: Don't include config.h and the specification header
51023         if VASNPRINTF is already defined.
51024         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
51025         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
51026         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
51027         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
51028         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
51029         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
51030         code accordingly.
51031         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
51032         pad_ourselves also in this case, with the 'c' and 's' directives, and
51033         with a different notion of "width".
51034         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
51035
51036 2007-06-10  Bruno Haible  <bruno@clisp.org>
51037
51038         * modules/unistr/u32-mbsnlen: New file.
51039         * lib/unistr/u32-mbsnlen.c: New file.
51040
51041         * modules/unistr/u16-mbsnlen: New file.
51042         * lib/unistr/u16-mbsnlen.c: New file.
51043
51044         * modules/unistr/u8-mbsnlen: New file.
51045         * lib/unistr/u8-mbsnlen.c: New file.
51046
51047         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
51048         declarations.
51049
51050 2007-06-10  Bruno Haible  <bruno@clisp.org>
51051
51052         * lib/string_.h (mbsnlen): New declaration.
51053         * lib/mbsnlen.c: New file.
51054         * m4/mbsnlen.m4: New file.
51055         * modules/mbsnlen: New file.
51056         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
51057         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
51058         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
51059
51060 2007-06-10  Bruno Haible  <bruno@clisp.org>
51061
51062         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
51063
51064 2007-06-10  Bruno Haible  <bruno@clisp.org>
51065
51066         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
51067         * lib/mbuiter.h: Likewise.
51068
51069 2007-06-10  Bruno Haible  <bruno@clisp.org>
51070
51071         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
51072         declaration.
51073
51074 2007-06-10  Karl Berry  <karl@gnu.org>
51075
51076         * config/srclist.txt: remove gettext entries, Bruno prefers
51077         to update individually.
51078
51079 2007-06-10  Bruno Haible  <bruno@clisp.org>
51080
51081         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
51082         'maxlen'. Ensure only length + width bytes are allocated, not
51083         length + 1 + width.
51084
51085 2007-06-09  Bruno Haible  <bruno@clisp.org>
51086
51087         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
51088         (CHAR_T): Remove macro.
51089         (VASNPRINTF): Update.
51090
51091 2007-06-09  Bruno Haible  <bruno@clisp.org>
51092
51093         * MODULES.html.sh (Unicode string functions): Add the new modules.
51094
51095         * modules/uniconv/u32-conv-to-enc: New file.
51096         * lib/uniconv/u32-conv-to-enc.c: New file.
51097         * modules/uniconv/u32-conv-to-enc-tests: New file.
51098         * tests/uniconv/test-u32-conv-to-enc.c: New file.
51099
51100         * modules/uniconv/u16-conv-to-enc: New file.
51101         * lib/uniconv/u16-conv-to-enc.c: New file.
51102         * lib/uniconv/u-conv-to-enc.h: New file.
51103         * modules/uniconv/u16-conv-to-enc-tests: New file.
51104         * tests/uniconv/test-u16-conv-to-enc.c: New file.
51105
51106         * modules/uniconv/u8-conv-to-enc: New file.
51107         * lib/uniconv/u8-conv-to-enc.c: New file.
51108         * modules/uniconv/u8-conv-to-enc-tests: New file.
51109         * tests/uniconv/test-u8-conv-to-enc.c: New file.
51110
51111         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
51112         u32_conv_to_encoding): New declarations.
51113
51114 2007-06-09  Bruno Haible  <bruno@clisp.org>
51115
51116         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
51117
51118 2007-06-09  Bruno Haible  <bruno@clisp.org>
51119
51120         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
51121         * modules/malloca: Renamed from modules/allocsa, updated.
51122         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
51123         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
51124         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
51125         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
51126         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
51127         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
51128         * modules/xmalloca: Renamed from modules/xallocsa, updated.
51129         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
51130         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
51131         * modules/c-strcasestr (Depends-on): Update.
51132         * lib/c-strcasestr.c: Update.
51133         * modules/c-strstr (Depends-on): Update.
51134         * lib/c-strstr.c: Update.
51135         * modules/canonicalize-lgpl (Depends-on): Update.
51136         * lib/canonicalize-lgpl.c: Update.
51137         * modules/clean-temp (Depends-on): Update.
51138         * lib/clean-temp.c: Update.
51139         * modules/csharpcomp (Depends-on): Update.
51140         * lib/csharpcomp.c: Update.
51141         * modules/csharpexec (Depends-on): Update.
51142         * lib/csharpexec.c: Update.
51143         * modules/javacomp (Depends-on): Update.
51144         * lib/javacomp.c: Update.
51145         * modules/javaexec (Depends-on): Update.
51146         * lib/javaexec.c: Update.
51147         * modules/mbscasestr (Depends-on): Update.
51148         * lib/mbscasestr.c: Update.
51149         * modules/mbsstr (Depends-on): Update.
51150         * lib/mbsstr.c: Update.
51151         * modules/setenv (Depends-on): Update.
51152         * lib/setenv.c: Update.
51153         * modules/strcasestr (Depends-on): Update.
51154         * lib/strcasestr.c: Update.
51155         * modules/striconveha (Depends-on): Update.
51156         * lib/striconveha.c: Update.
51157         * modules/relocatable-prog-wrapper (Files): Update.
51158         * lib/relocwrapper.c: Update.
51159         * build-aux/install-reloc: Update.
51160         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
51161
51162 2007-06-08  Bruno Haible  <bruno@clisp.org>
51163
51164         Port to uClibc.
51165         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
51166         * lib/fpurge.c (fpurge): Likewise.
51167         * lib/freading.c (freading): Likewise.
51168         * lib/fseeko.c (rpl_fseeko): Likewise.
51169         * lib/fseterr.c (fseterr): Likewise.
51170         * lib/fwriting.c (fwriting): Likewise.
51171         * tests/test-fflush.c (main): Avoid a failure on uClibc.
51172
51173 2007-06-08  Bruno Haible  <bruno@clisp.org>
51174
51175         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
51176         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
51177         * modules/gettext (Files): Add m4/intlmacosx.m4.
51178
51179 2007-06-07  Bruno Haible  <bruno@clisp.org>
51180
51181         * modules/localename-tests: New file.
51182         * tests/test-localename.c: New file.
51183
51184         New module 'localename'.
51185         * lib/localename.h: New file.
51186         * lib/localename.c: New file, from GNU gettext.
51187         * m4/localename.m4: New file.
51188         * modules/localename: New file.
51189
51190 2007-06-07  Bruno Haible  <bruno@clisp.org>
51191
51192         Work around the lack of <wchar.h> on some builds of uClibc.
51193         * doc/headers/wchar.texi: Update.
51194         * lib/wchar_.h: Include <wchar.h> only if it exists.
51195         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
51196         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
51197         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
51198         doesn't exist.
51199         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
51200         * modules/mbfile (Depends-on): Add wchar.
51201         * modules/mbiter (Depends-on): Likewise.
51202         * modules/mbuiter (Depends-on): Likewise.
51203         Reported by Simon Josefsson.
51204
51205 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
51206
51207         Work around problem reported by Steven M. Schweda in
51208         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
51209         Tru64 5.1B with the Compaq compiler environment installed declares
51210         an 'isblank' function but does not define it in the C library.
51211         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
51212         * lib/regex_internal.h (isblank): Likewise.
51213         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
51214         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51215
51216 2007-06-05  Bruno Haible  <bruno@clisp.org>
51217
51218         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
51219         ia64.
51220         * modules/printf-safe: New file.
51221         * modules/fprintf-posix (Depends-on): Add printf-safe.
51222         * modules/printf-posix (Depends-on): Likewise.
51223         * modules/snprintf-posix (Depends-on): Likewise.
51224         * modules/sprintf-posix (Depends-on): Likewise.
51225         * modules/vasnprintf-posix (Depends-on): Likewise.
51226         * modules/vasprintf-posix (Depends-on): Likewise.
51227         * modules/vfprintf-posix (Depends-on): Likewise.
51228         * modules/vprintf-posix (Depends-on): Likewise.
51229         * modules/vsnprintf-posix (Depends-on): Likewise.
51230         * modules/vsprintf-posix (Depends-on): Likewise.
51231         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
51232         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
51233         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
51234         "no" on i386, x86_64, ia64.
51235         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
51236         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51237         on i386, x86_64, ia64.
51238         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
51239         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51240         on i386, x86_64, ia64.
51241         * tests/test-vasnprintf-posix.c: Include float.h.
51242         (LDBL80_WORDS): New macro.
51243         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51244         on i386, x86_64, ia64.
51245         * tests/test-vasprintf-posix.c: Include float.h.
51246         (LDBL80_WORDS): New macro.
51247         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51248         on i386, x86_64, ia64.
51249         * tests/test-snprintf-posix.c: Include float.h.
51250         * tests/test-sprintf-posix.c: Likewise.
51251         * tests/test-vsnprintf-posix.c: Likewise.
51252         * tests/test-vsprintf-posix.c: Likewise.
51253
51254 2007-06-05  Bruno Haible  <bruno@clisp.org>
51255
51256         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
51257         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
51258         non-IEEE numbers on i386, x86_64, ia64.
51259         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
51260         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
51261         * tests/test-isnanl.h: Include float.h.
51262         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
51263
51264 2007-06-05  Bruno Haible  <bruno@clisp.org>
51265
51266         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
51267         also the %a / %A. Handle the %a / %A code before this extra handling.
51268
51269 2007-06-05  Bruno Haible  <bruno@clisp.org>
51270
51271         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
51272         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
51273
51274 2007-06-05  Bruno Haible  <bruno@clisp.org>
51275
51276         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
51277         typo in variable name.
51278
51279 2007-06-05  Eric Blake  <ebb9@byu.net>
51280
51281         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
51282         Reported by Simon Josefsson.
51283
51284 2007-06-04  Bruno Haible  <bruno@clisp.org>
51285
51286         Avoid test failures on some PowerPC platforms.
51287         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
51288         Define differently for PowerPC.
51289         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
51290         Reported by Gary V. Vaughan <gary@gnu.org>.
51291
51292 2007-06-02  Bruno Haible  <bruno@clisp.org>
51293
51294         Fix test-stdint failure on FreeBSD/ia64.
51295         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
51296         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
51297         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
51298         * doc/headers/stdint.texi: Update.
51299
51300 2007-06-01  Bruno Haible  <bruno@clisp.org>
51301
51302         * tests/test-binary-io.c (main): Pass a third argument to open().
51303         Reported by Gary V. Vaughan <gary@gnu.org>.
51304
51305 2007-06-01  Bruno Haible  <bruno@clisp.org>
51306
51307         * doc/functions/frexpl.texi: Update for mingw.
51308
51309 2007-06-01  Bruno Haible  <bruno@clisp.org>
51310
51311         * tests/test-lseek.c (main): Disable test of errno for invalid third
51312         argument.
51313         * doc/functions/lseek.texi: Update.
51314         Reported by Gary V. Vaughan <gary@gnu.org>.
51315
51316 2007-05-28  Bruno Haible  <bruno@clisp.org>
51317
51318         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
51319
51320 2007-05-31  Eric Blake  <ebb9@byu.net>
51321
51322         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
51323         cross compiling.
51324
51325 2007-05-30  Eric Blake  <ebb9@byu.net>
51326         and Bruno Haible  <bruno@clisp.org>
51327
51328         Work around mingw test failures exposed by m4-1.4.9b.
51329         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
51330         * tests/test-unistd.c: Disable uid_t and git_t tests for the
51331         moment.
51332
51333 2007-05-30  Bruno Haible  <bruno@clisp.org>
51334
51335         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
51336         assuming that they are closed. Needed on HP-UX 11.
51337
51338 2007-05-29  Bruno Haible  <bruno@clisp.org>
51339
51340         Fix a problem with #include_next.
51341         * lib/dirent_.h: Split the double-inclusion guard.
51342         * lib/fcntl_.h: Likewise.
51343         * lib/float_.h: Likewise.
51344         * lib/iconv_.h: Likewise.
51345         * lib/inttypes_.h: Likewise.
51346         * lib/locale_.h: Likewise.
51347         * lib/math_.h: Likewise.
51348         * lib/netinet_in_.h: Likewise.
51349         * lib/search_.h: Likewise.
51350         * lib/signal_.h: Likewise.
51351         * lib/stdint_.h: Likewise.
51352         * lib/stdio_.h: Likewise.
51353         * lib/stdlib_.h: Likewise.
51354         * lib/string_.h: Likewise.
51355         * lib/sys_select_.h: Likewise.
51356         * lib/sys_socket_.h: Likewise.
51357         * lib/sys_stat_.h: Likewise.
51358         * lib/sys_time_.h: Likewise.
51359         * lib/sysexits_.h: Likewise.
51360         * lib/time_.h: Likewise.
51361         * lib/unistd_.h: Likewise.
51362         * lib/wchar_.h: Likewise.
51363         * lib/wctype_.h: Likewise.
51364
51365 2007-05-29  Bruno Haible  <bruno@clisp.org>
51366
51367         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
51368         for the moment.
51369
51370 2007-05-29  Bruno Haible  <bruno@clisp.org>
51371
51372         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
51373         invocation.
51374         Reported by Eric Blake.
51375
51376 2007-05-29  Bruno Haible  <bruno@clisp.org>
51377
51378         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
51379         compiling case.
51380
51381 2007-05-29  Eric Blake  <ebb9@byu.net>
51382             Bruno Haible  <bruno@clisp.org>
51383
51384         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
51385         cross compiles.
51386
51387 2007-05-28  Eric Blake  <ebb9@byu.net>
51388
51389         * modules/closein-tests (test_closein_LDADD): Support test on
51390         cygwin with libtool.
51391
51392 2007-05-28  Bruno Haible  <bruno@clisp.org>
51393
51394         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
51395         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51396         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51397         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51398         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51399         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51400         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51401         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51402         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51403
51404 2007-05-28  Eric Blake  <ebb9@byu.net>
51405
51406         Unconditionally include <config.h> in unit tests.
51407         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
51408         * tests/test-allocsa.c, tests/test-arcfour.c,
51409         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
51410         tests/test-array_list.c, tests/test-array_oset.c,
51411         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
51412         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
51413         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
51414         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
51415         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
51416         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
51417         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
51418         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
51419         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
51420         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
51421         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
51422         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
51423         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
51424         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
51425         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
51426         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
51427         test-md5.c, test-memmem.c, test-printf-posix.c,
51428         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
51429         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
51430         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
51431         test-strcasestr.c, test-striconv.c, test-striconveh.c,
51432         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
51433         test-vasnprintf-posix2.c, test-vasnprintf.c,
51434         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
51435         test-vfprintf-posix.c, test-vprintf-posix.c,
51436         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
51437         test-xvasprintf.c: Likewise.
51438
51439 2007-05-28  Bruno Haible  <bruno@clisp.org>
51440
51441         * gnulib-tool (func_import): Remember the --with-tests command-line
51442         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
51443         Reported by Eric Blake.
51444
51445 2007-05-28  Bruno Haible  <bruno@clisp.org>
51446
51447         * modules/ftell-tests: New file.
51448         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
51449         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
51450
51451         * lib/ftell.c: New file.
51452         * modules/ftell: New file.
51453         * m4/ftell.m4: New file.
51454         * doc/functions/ftell.texi: Update.
51455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
51456         REPLACE_FTELL.
51457         * lib/stdio_.h (rpl_ftell): New declaration.
51458         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
51459         REPLACE_FTELL.
51460
51461 2007-05-28  Eric Blake  <ebb9@byu.net>
51462
51463         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
51464
51465 2007-05-28  Bruno Haible  <bruno@clisp.org>
51466
51467         * modules/fseek-tests: New file.
51468         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
51469         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
51470
51471         * lib/fseek.c: New file.
51472         * modules/fseek: New file.
51473         * m4/fseek.m4: New file.
51474         * doc/functions/fseek.texi: Update.
51475         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
51476         REPLACE_FSEEK.
51477         * lib/stdio_.h (rpl_fseek): New declaration.
51478         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
51479         REPLACE_FSEEK.
51480
51481 2007-05-28  Bruno Haible  <bruno@clisp.org>
51482
51483         * lib/stdio_.h (fflush): More comments.
51484
51485 2007-05-28  Bruno Haible  <bruno@clisp.org>
51486
51487         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
51488         runtime test.
51489
51490 2007-05-28  Eric Blake  <ebb9@byu.net>
51491
51492         Improve lseek module.
51493         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
51494         * lib/unistd_.h (lseek): Scale back link warning message.
51495         * tests/test-lseek.c: Beef up test.
51496         * tests/test-lseek.sh: Exercise more facets of lseek.
51497         Reported by Bruno Haible.
51498
51499 2007-05-28  Bruno Haible  <bruno@clisp.org>
51500
51501         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
51502         to define.
51503
51504 2007-05-27  Bruno Haible  <bruno@clisp.org>
51505
51506         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
51507
51508 2007-05-27  Bruno Haible  <bruno@clisp.org>
51509
51510         * modules/openmp: New file.
51511         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
51512         Noah Misch.
51513
51514 2007-05-26  Bruno Haible  <bruno@clisp.org>
51515
51516         * modules/chdir-long (Depends-on): Add fchdir.
51517         * modules/chdir-safer (Depends-on): Likewise.
51518         * modules/fts (Depends-on): Likewise.
51519         * modules/fts-lgpl (Depends-on): Likewise.
51520         * modules/openat (Depends-on): Likewise.
51521         * modules/savewd (Depends-on): Likewise.
51522
51523 2007-05-24  Eric Blake  <ebb9@byu.net>
51524
51525         Fix lseek on mingw.
51526         * modules/lseek: New module.
51527         * m4/lseek.m4: New file.
51528         * lib/lseek.c: New file.
51529         * modules/lseek-tests: New file.
51530         * tests/test-lseek.c: New file.
51531         * tests/test-lseek.sh: New file.
51532         * MODULES.html.sh: Document lseek module.
51533         * modules/fflush (Depends-on): Add lseek, fseeko.
51534         * modules/fseeko (Depends-on): Likewise.
51535         * modules/ftello (Depends-on): Likewise.
51536         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
51537         broken.
51538         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
51539         broken.
51540         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
51541         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
51542         * lib/ftello.c (rpl_ftello): Likewise.
51543         * tests/test-fseeko.c (main): Test this.
51544         * tests/test-fseeko.sh: Likewise.
51545         * tests/test-ftello.c (main): Likewise.
51546         * tests/test-ftello.sh: Likewise.
51547         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
51548         implies replacing fseek.
51549         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
51550         HAVE_FTELLO.
51551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
51552         * modules/unistd (Makefile.am): Likewise.
51553         * lib/unistd_.h (lseek): Declare a replacement.
51554         * doc/functions/lseek.texi (lseek): Document this fix.
51555         * doc/functions/fseek.texi (fseek): Likewise.
51556         * doc/functions/ftell.texi (ftell): Likewise.
51557
51558 2007-05-24  Bruno Haible  <bruno@clisp.org>
51559
51560         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
51561         in the printed representation of a NaN.
51562         * tests/test-vasprintf-posix.c (test_function): Likewise.
51563         * tests/test-snprintf-posix.h (test_function): Likewise.
51564         * tests/test-sprintf-posix.h (test_function): Likewise.
51565         Reported by Eric Blake.
51566
51567 2007-05-23  Eric Blake  <ebb9@byu.net>
51568
51569         Fix fseeko/ftello on cygwin 1.5.24.
51570         * doc/functions/fseeko.texi (fseeko): Document the fix.
51571         * doc/functions/ftello.texi (ftello): Document the fix.
51572         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
51573         * doc/functions/stdout.text (stdout): New file.
51574         * doc/functions/stderr.text (stderr): New file.
51575         * doc/gnulib.texi (Function Substitutes): Use new files.
51576         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
51577         prior to 1.7.0.
51578         * tests/test-ftello.c (main): Likewise for ftello.
51579         * tests/test-fseeko.sh: New file.
51580         * tests/test-ftello.sh: New file.
51581         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
51582         with seekable stdin.
51583         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
51584         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
51585         (gl_REPLACE_FSEEKO): New macro.
51586         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
51587         * modules/fseeko (Files): Distribute fseeko.c.
51588         * modules/ftello (Files): Distribute ftello.c.
51589         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
51590         mode.
51591         * lib/ftello.c (rpl_ftello): New file.
51592         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
51593         fseeko, ftello.
51594         (gl_STDIN_LARGE_OFFSET): New macro.
51595         * modules/stdio (Makefile.am): Perform the replacement.
51596         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
51597
51598 2007-05-23  Bruno Haible  <bruno@clisp.org>
51599
51600         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
51601         GNULIB_POSIXCHECK is defined.
51602
51603 2007-05-21  Bruno Haible  <bruno@clisp.org>
51604
51605         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
51606         Check also the output for NaN arguments. When cross-compiling, guess
51607         no on IRIX.
51608         * lib/vasnprintf.c: Update comments.
51609         * tests/test-vasnprintf-posix.c (strisnan): New function.
51610         (test_function): Use it.
51611         * tests/test-vasprintf-posix.c (strisnan): New function.
51612         (test_function): Use it.
51613         * tests/test-snprintf-posix.h (strisnan): New function.
51614         (test_function): Use it.
51615         * tests/test-sprintf-posix.h (strisnan): New function.
51616         (test_function): Use it.
51617         Reported by Eric Blake.
51618
51619 2007-05-20  Bruno Haible  <bruno@clisp.org>
51620
51621         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
51622         numbers that fails on BeOS.
51623         * doc/functions/frexpl.texi: Update.
51624
51625 2007-05-20  Jim Meyering  <jim@meyering.net>
51626
51627         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
51628         forced upon us by glibc-2.6.
51629
51630 2007-05-20  Bruno Haible  <bruno@clisp.org>
51631
51632         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
51633         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
51634         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
51635         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
51636         NEED_PRINTF_INFINITE.
51637         (is_infinitel): New function.
51638         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
51639         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
51640         gl_PREREQ_VASNPRINTF_INFINITE.
51641         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
51642         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51643         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
51644         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
51645         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
51646         gl_PREREQ_VASNPRINTF_INFINITE.
51647         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51648         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51649         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51650         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51651         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51652         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51653         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51654         * doc/functions/fprintf.texi: Update.
51655         * doc/functions/printf.texi: Update.
51656         * doc/functions/snprintf.texi: Update.
51657         * doc/functions/sprintf.texi: Update.
51658         * doc/functions/vfprintf.texi: Update.
51659         * doc/functions/vprintf.texi: Update.
51660         * doc/functions/vsnprintf.texi: Update.
51661         * doc/functions/vsprintf.texi: Update.
51662
51663 2007-05-20  Bruno Haible  <bruno@clisp.org>
51664
51665         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
51666         was not found in libc.
51667         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
51668
51669 2007-05-20  Bruno Haible  <bruno@clisp.org>
51670
51671         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
51672         printed as "-nan" instead of "nan".
51673         * tests/test-vasprintf-posix.c (test_function): Likewise.
51674         * tests/test-snprintf-posix.h (test_function): Likewise.
51675         * tests/test-sprintf-posix.h (test_function): Likewise.
51676         Needed for HP-UX 11.
51677
51678 2007-05-20  Jim Meyering  <jim@meyering.net>
51679
51680         Fix buggy test for the fchownat-deref bug.
51681         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
51682         symlink required for the run-test.  Without it, this test would
51683         always declare that fchownat doesn't work, and client code would
51684         unnecessarily use the replacement function with fixed libc.
51685         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
51686         Reported by Greg Schafer.
51687
51688 2007-05-19  Bruno Haible  <bruno@clisp.org>
51689
51690         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
51691         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
51692         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
51693         Needed for IRIX 6.5 and Solaris 2.5.1.
51694
51695 2007-05-19  Bruno Haible  <bruno@clisp.org>
51696
51697         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
51698         (test_function): Skip tests involving -0.0 on platforms where
51699         -0.0 = 0.0.
51700         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
51701         (test_function): Skip tests involving -0.0 on platforms where
51702         -0.0 = 0.0.
51703         * tests/test-snprintf-posix.h (have_minus_zero): New function.
51704         (test_function): Skip tests involving -0.0 on platforms where
51705         -0.0 = 0.0.
51706         * tests/test-sprintf-posix.h (have_minus_zero): New function.
51707         (test_function): Skip tests involving -0.0 on platforms where
51708         -0.0 = 0.0.
51709         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
51710         tests.
51711         * tests/test-printf-posix.h (test_function): Likewise.
51712         * tests/test-printf-posix.output: Remove all -0.0 related results.
51713         Needed for IRIX 6.5.
51714
51715 2007-05-19  Bruno Haible  <bruno@clisp.org>
51716
51717         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
51718         printed as "nan0x7fffffff" instead of "nan".
51719         * tests/test-vasprintf-posix.c (test_function): Likewise.
51720         * tests/test-snprintf-posix.h (test_function): Likewise.
51721         * tests/test-sprintf-posix.h (test_function): Likewise.
51722         * tests/test-fprintf-posix.h (NaN): Remove macro.
51723         (test_function): Remove all NaN related tests.
51724         * tests/test-printf-posix.h (NaN): Remove macro.
51725         (test_function): Remove all NaN related tests.
51726         * tests/test-printf-posix.output: Remove all NaN related results.
51727         Needed for IRIX 6.5.
51728
51729 2007-05-19  Bruno Haible  <bruno@clisp.org>
51730
51731         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
51732         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
51733
51734 2007-05-19  Bruno Haible  <bruno@clisp.org>
51735
51736         * lib/float_.h: New file.
51737         * m4/float_h.m4: New file.
51738         * modules/float: New file.
51739         * modules/isnanl (Dependencies): Add float.
51740         * modules/isnanl-nolibm (Dependencies): Likewise.
51741         * modules/mathl (Dependencies): Likewise.
51742         * modules/printf-frexpl (Dependencies): Likewise.
51743         * modules/signbit (Dependencies): Likewise.
51744         * modules/vasnprintf (Dependencies): Likewise.
51745         * doc/headers/float.texi: Update.
51746
51747 2007-05-19  Jim Meyering  <jim@meyering.net>
51748
51749         * lib/utimens.c (gl_futimens): Rename from futimens,
51750         now that glibc-2.6 declares futimens.
51751         * lib/utimens.h: Likewise.
51752
51753 2007-05-19  Bruno Haible  <bruno@clisp.org>
51754
51755         Avoid test failures on mingw.
51756         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
51757         * tests/test-printf-posix.sh: Likewise.
51758         * tests/test-vfprintf-posix.sh: Likewise.
51759         * tests/test-vprintf-posix.sh: Likewise.
51760
51761 2007-05-19  Bruno Haible  <bruno@clisp.org>
51762
51763         Fix *printf result for NaN, Inf, -0.0 on mingw.
51764         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
51765         * lib/vasnprintf.c: Include math.h and isnan.h.
51766         (is_infinite_or_zero): New function.
51767         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
51768         values in the %f, %F, %e, %E, %g, %G directives.
51769         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
51770         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51771         gl_PRINTF_INFINITE and test its result. Invoke
51772         gl_PREREQ_VASNPRINTF_INFINITE.
51773         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51774         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51775         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51776         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51777         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51778         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51779         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51780         * doc/functions/fprintf.texi: Update.
51781         * doc/functions/printf.texi: Update.
51782         * doc/functions/snprintf.texi: Update.
51783         * doc/functions/sprintf.texi: Update.
51784         * doc/functions/vfprintf.texi: Update.
51785         * doc/functions/vprintf.texi: Update.
51786         * doc/functions/vsnprintf.texi: Update.
51787         * doc/functions/vsprintf.texi: Update.
51788
51789 2007-05-19  Bruno Haible  <bruno@clisp.org>
51790
51791         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
51792         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
51793         Instead of multiplying with 10^k, set extra_zeroes to k.
51794         (scale10_round_long_double): Remove function.
51795
51796 2007-05-18  Bruno Haible  <bruno@clisp.org>
51797
51798         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
51799         introduced on 2007-05-06.
51800
51801 2007-05-18  Bruno Haible  <bruno@clisp.org>
51802
51803         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
51804         %g directives.
51805         * tests/test-vasprintf-posix.c (test_function): Likewise.
51806         * tests/test-snprintf-posix.h (test_function): Likewise.
51807         * tests/test-sprintf-posix.h (test_function): Likewise.
51808
51809 2007-05-18  Bruno Haible  <bruno@clisp.org>
51810
51811         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
51812         (strmatch): New function.
51813         (test_function): Test the %f directive on numbers of various exponents.
51814         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
51815         (strmatch): New function.
51816         (test_function): Test the %f directive on numbers of various exponents.
51817         * tests/test-snprintf-posix.h (strmatch): New function.
51818         (test_function): Test the %f directive on numbers of various exponents.
51819         * tests/test-sprintf-posix.h (strmatch): New function.
51820         (test_function): Test the %f directive on numbers of various exponents.
51821         * tests/test-snprintf-posix.c (SIZEOF): New macro.
51822         * tests/test-sprintf-posix.c (SIZEOF): New macro.
51823         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
51824         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
51825
51826 2007-05-18  Bruno Haible  <bruno@clisp.org>
51827
51828         Add support for 'long double' number output.
51829         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
51830         * lib/vasnprintf.c: Include math.h and float+.h.
51831         (mp_limb_t): New type.
51832         (GMP_LIMB_BITS): New macro.
51833         (mp_twolimb_t): New type.
51834         (GMP_TWOLIMB_BITS): New macro.
51835         (mpn_t): New type.
51836         (multiply, divide, convert_to_decimal, decode_long_double,
51837         scale10_round_long_double, scale10_round_decimal_long_double,
51838         floorlog10l): New functions.
51839         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
51840         for the %f, %F, %e, %E, %g, %G directives.
51841         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
51842         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51843         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
51844         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
51845         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51846         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51847         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51848         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51849         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51850         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51851         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51852         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
51853         * modules/snprintf-posix (Depends-on): Likewise.
51854         * modules/sprintf-posix (Depends-on): Likewise.
51855         * modules/vasnprintf-posix (Depends-on): Likewise.
51856         * modules/vasprintf-posix (Depends-on): Likewise.
51857         * modules/vfprintf-posix (Depends-on): Likewise.
51858         * modules/vsnprintf-posix (Depends-on): Likewise.
51859         * modules/vsprintf-posix (Depends-on): Likewise.
51860         * modules/vasnprintf (Files): Add lib/float+.h.
51861         * doc/functions/fprintf.texi: Update.
51862         * doc/functions/printf.texi: Update.
51863         * doc/functions/snprintf.texi: Update.
51864         * doc/functions/sprintf.texi: Update.
51865         * doc/functions/vfprintf.texi: Update.
51866         * doc/functions/vprintf.texi: Update.
51867         * doc/functions/vsnprintf.texi: Update.
51868         * doc/functions/vsprintf.texi: Update.
51869
51870 2007-05-18  Bruno Haible  <bruno@clisp.org>
51871
51872         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
51873
51874 2007-05-18  Bruno Haible  <bruno@clisp.org>
51875
51876         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
51877         for printing 64-bit integers. Needed for mingw.
51878
51879 2007-05-18  Bruno Haible  <bruno@clisp.org>
51880
51881         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
51882         gl_FUNC_FREXPL_WORKS.
51883         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
51884
51885 2007-05-18  Bruno Haible  <bruno@clisp.org>
51886
51887         * modules/frexpl-nolibm-tests: New file.
51888
51889         * modules/frexpl-nolibm: New file.
51890         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
51891
51892 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51893
51894         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
51895         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
51896         GCC 4.2, which otherwise issues a lot of warnings.
51897         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
51898         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
51899         Likewise.
51900         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
51901         * modules/iconv_open (iconv.h): Likewise.
51902         * modules/locale (locale.h): Likewise.
51903         * modules/netinet_in (netinet/in.h): Likewise.
51904         * modules/sys_select (sys_select.h): Likewise.
51905         * modules/sys_socket (sys/socket.h): Likewise.
51906         * modules/sys_stat (sys/stat.h): Likewise.
51907         * modules/sysexits (sysexits.h): Likewise.
51908         * modules/unistd (unistd.h): Likewise.
51909
51910 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51911
51912         * modules/closein-tests (Makefile.am): Distribute
51913         `test-closein.sh'.
51914
51915 2007-05-17  Bruno Haible  <bruno@clisp.org>
51916
51917         * tests/test-printf-posix.output: Renamed from
51918         tests/test-fprintf-posix.out.
51919         * modules/fprintf-posix-tests: Update.
51920         * modules/printf-posix-tests: Update.
51921         * modules/vfprintf-posix-tests: Update.
51922         * modules/vprintf-posix-tests: Update.
51923         * tests/test-fprintf-posix.sh: Update.
51924         * tests/test-printf-posix.sh: Update.
51925         * tests/test-vfprintf-posix.sh: Update.
51926         * tests/test-vprintf-posix.sh: Update.
51927         Reported by Ralf Wildenhues.
51928
51929 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51930
51931         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
51932         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
51933         GCC 4.2, which otherwise issues a lot of warnings.
51934         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
51935         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
51936         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
51937         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
51938         it should no longer be needed.
51939         * lib/string_.h: Likewise.
51940         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
51941         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
51942         * modules/inttypes (inttypes.h): Likewise.
51943         * modules/math (math.h): Likewise.
51944         * modules/search (search.h): Likewise.
51945         * modules/signal (signal.h): Likewise.
51946         * modules/stdint (stdint.h): Likewise.
51947         * modules/stdio (stdio.h): Likewise.
51948         * modules/stdlib (stdlib.h): Likewise.
51949         * modules/string (string.h): Likewise.
51950         * modules/sys_time (sys/time.h): Likewise.
51951         * modules/time (time.h): Likewise.
51952         * modules/wchar (wchar.h): Likewise.
51953         * modules/wctype (wtype.h): Likewise.
51954
51955 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51956
51957         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
51958
51959 2007-05-13  Bruno Haible  <bruno@clisp.org>
51960
51961         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
51962         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51963         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
51964         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51965         (gl_PREREQ_STRTOK_R): Don't require it here.
51966
51967 2007-05-13  Bruno Haible  <bruno@clisp.org>
51968
51969         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
51970         when used in C++ mode.
51971
51972 2007-05-12  Bruno Haible  <bruno@clisp.org>
51973
51974         * lib/linebuffer.h: Tweak doc.
51975         * lib/linebuffer.c: Likewise.
51976
51977 2007-05-12  James Youngman  <jay@gnu.org>
51978
51979         * lib/linebuffer.c (readlinebuffer_delim): New function,
51980         like readlinebuffer, but use a caller-specified delimiter.
51981         (readlinebuffer): Just call readlinebuffer_delim with '\n'
51982         as the delimiter.
51983         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
51984
51985 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51986
51987         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
51988         * modules/openat (Files): Remove openat-die.c.
51989         (Depends-on): Add openat-die.
51990         * modules/openat-die: New module.
51991
51992 2007-05-06  Bruno Haible  <bruno@clisp.org>
51993
51994         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
51995         Update with info about Cygwin.
51996         * doc/functions/fprintf.texi: Update.
51997         * doc/functions/printf.texi: Update.
51998         * doc/functions/snprintf.texi: Update.
51999         * doc/functions/sprintf.texi: Update.
52000         * doc/functions/vfprintf.texi: Update.
52001         * doc/functions/vprintf.texi: Update.
52002         * doc/functions/vsnprintf.texi: Update.
52003         * doc/functions/vsprintf.texi: Update.
52004         Reported by Eric Blake.
52005
52006 2007-05-06  Bruno Haible  <bruno@clisp.org>
52007
52008         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
52009         padding ourselves for the floating-point directives.
52010         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
52011         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
52012         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52013         gl_PRINTF_FLAG_ZERO and test its result. Invoke
52014         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
52015         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52016         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52017         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52018         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52019         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52020         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52021         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52022         * tests/test-snprintf-posix.h (test_function): Also check the width
52023         and some flags in the %f directive.
52024         * tests/test-sprintf-posix.h (test_function): Likewise.
52025         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52026         * tests/test-vasprintf-posix.c (test_function): Likewise.
52027         * doc/functions/fprintf.texi: Update.
52028         * doc/functions/printf.texi: Update.
52029         * doc/functions/snprintf.texi: Update.
52030         * doc/functions/sprintf.texi: Update.
52031         * doc/functions/vfprintf.texi: Update.
52032         * doc/functions/vprintf.texi: Update.
52033         * doc/functions/vsnprintf.texi: Update.
52034         * doc/functions/vsprintf.texi: Update.
52035
52036 2007-05-06  Bruno Haible  <bruno@clisp.org>
52037
52038         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
52039         pass the ' flag character to sprintf or snprintf.
52040         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
52041         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
52042         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52043         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
52044         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
52045         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52046         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52047         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52048         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52049         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52050         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52051         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52052         * tests/test-snprintf-posix.h (test_function): Also check the grouping
52053         flag.
52054         * tests/test-sprintf-posix.h (test_function): Likewise.
52055         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52056         * tests/test-vasprintf-posix.c (test_function): Likewise.
52057         * doc/functions/fprintf.texi: Update.
52058         * doc/functions/printf.texi: Update.
52059         * doc/functions/snprintf.texi: Update.
52060         * doc/functions/sprintf.texi: Update.
52061         * doc/functions/vfprintf.texi: Update.
52062         * doc/functions/vprintf.texi: Update.
52063         * doc/functions/vsnprintf.texi: Update.
52064         * doc/functions/vsprintf.texi: Update.
52065
52066 2007-05-01  Bruno Haible  <bruno@clisp.org>
52067
52068         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
52069
52070 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
52071
52072         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
52073         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
52074
52075 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52076
52077         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
52078         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
52079         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
52080
52081 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
52082
52083         * lib/argp-help.c (struct hol_entry): New member `ord'.
52084         (HOL_ENTRY_PTRCMP): Use ord for comparison
52085         (hol_sort): Initialize ord.
52086
52087 2007-05-01  Bruno Haible  <bruno@clisp.org>
52088
52089         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
52090         Reported by Eric Blake.
52091         * doc/gnulib.texi (Function Substitutes): Update.
52092
52093 2007-05-01  Bruno Haible  <bruno@clisp.org>
52094
52095         * doc/functions.texi: Remove file, now redundant through
52096         doc/functions/*.texi.
52097
52098 2007-05-01  Bruno Haible  <bruno@clisp.org>
52099
52100         * modules/argp (Depends-on): Add sleep.
52101
52102 2007-05-01  Bruno Haible  <bruno@clisp.org>
52103
52104         * modules/sleep-tests: New file.
52105         * tests/test-sleep.c: New file.
52106
52107         * modules/sleep: New file.
52108         * lib/sleep.c: New file.
52109         * m4/sleep.m4: New file.
52110         * lib/unistd_.h (sleep): New declaration.
52111         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
52112         HAVE_SLEEP.
52113         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
52114         * doc/functions/sleep.texi: Document the sleep module.
52115
52116 2007-05-01  Bruno Haible  <bruno@clisp.org>
52117
52118         * lib/sigprocmask.h: Remove file.
52119         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
52120         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
52121         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
52122         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
52123         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
52124         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
52125         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
52126         HAVE_SIGSET_T as a shell variable.
52127         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
52128         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
52129         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
52130         (Depends-on): Add signal. Remove verify.
52131         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
52132         (Include): Mention <signal.h> instead of sigprocmask.h.
52133         * NEWS: Mention the change.
52134         * lib/fatal-signal.c: Don't include sigprocmask.h.
52135
52136 2007-05-01  Bruno Haible  <bruno@clisp.org>
52137
52138         * modules/signal: New file.
52139         * lib/signal_.h: New file.
52140         * m4/signal_h.m4: New file.
52141
52142 2007-05-01  Bruno Haible  <bruno@clisp.org>
52143
52144         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
52145         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
52146         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
52147         HAVE_WCTYPE_CTMP_BUG into wctype.h.
52148
52149 2007-05-01  Bruno Haible  <bruno@clisp.org>
52150
52151         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
52152         configure time.
52153         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
52154         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
52155         * modules/sys_stat (Makefile.am): Substitute their values into
52156         sys/stat.h.
52157
52158 2007-05-01  Bruno Haible  <bruno@clisp.org>
52159
52160         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
52161         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
52162         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
52163
52164 2007-05-01  Bruno Haible  <bruno@clisp.org>
52165
52166         * doc/header/assert.texi: Undo last change: don't mention the gnulib
52167         'assert' module here.
52168
52169 2007-05-01  Bruno Haible  <bruno@clisp.org>
52170
52171         * doc/functions/*.texi: New files.
52172         * doc/functions/google-ranking.txt: New file.
52173         * doc/gnulib.texi (Function Substitutes): New chapter.
52174         (ctime, inet_ntoa): Remove sections.
52175         * doc/ctime.texi: Remove file.
52176         * doc/inet_ntoa.texi: Remove file.
52177         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
52178         dependencies.
52179         (%.info): New rule, specifying a --reference-limit.
52180
52181 2007-05-01  Bruno Haible  <bruno@clisp.org>
52182
52183         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
52184
52185 2007-05-01  Bruno Haible  <bruno@clisp.org>
52186
52187         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
52188         the portability of 'mkdir' to mingw systems.
52189
52190 2007-05-01  Bruno Haible  <bruno@clisp.org>
52191
52192         * doc/headers/google-ranking.txt: New file.
52193
52194 2007-04-30  Eric Blake  <ebb9@byu.net>
52195
52196         Prefer fseeko to fseek.
52197         * modules/getpass (Depends-on): Add fseeko.
52198         * lib/getpass.c (getpass): Use fseeko, not fseek.
52199
52200 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
52201
52202         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
52203         assumes the sorting is stable, while most qsort implementations
52204         are not.  Use argument addresses to ensure they never compare as
52205         equal.
52206
52207         * tests/test-argp-2.sh (usage-indent test): Fix output
52208         (func_compare): Restore diff options
52209         * tests/test-argp.c: Restore #include "progname.h"
52210
52211 2007-04-29  Bruno Haible  <bruno@clisp.org>
52212
52213         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
52214         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52215         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
52216         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52217         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
52218         (configure.ac): Define CHECK_SNPRINTF_POSIX.
52219         (TESTS, check_PROGRAMS): Add test-snprintf.
52220         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
52221         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
52222         (TESTS, check_PROGRAMS): Add test-vsnprintf.
52223         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
52224         assertions that fail on HP-UX, OSF/1, or IRIX.
52225         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
52226
52227 2007-04-29  Bruno Haible  <bruno@clisp.org>
52228
52229         * MODULES.html.sh (posix_functions): Remove 'contents'.
52230
52231 2007-04-29  Karl Berry  <karl@gnu.org>
52232
52233         * config/srclist.txt (gendocs_template_min): new entry.
52234
52235 2007-04-29  Bruno Haible  <bruno@clisp.org>
52236
52237         Work around fpurge bug on BSD systems.
52238         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
52239         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
52240         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
52241         fpurge to rpl_fpurge if the system already has this function.
52242         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
52243         the case where the system already has this function. Correct invariants
52244         on BSD systems.
52245         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
52246         BSD systems.
52247
52248 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52249
52250         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
52251         proposed by Sven Verdoolaege.
52252
52253         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
52254         options.
52255         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
52256         (usage and help tests): Update
52257
52258 2007-04-29  Bruno Haible  <bruno@clisp.org>
52259
52260         * tests/test-fflush.c (main): Use a file of size 17, not 10.
52261         Print more information in case of failure. Disable a test on BeOS.
52262
52263 2007-04-29  Bruno Haible  <bruno@clisp.org>
52264
52265         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
52266         This helps debugging on systems on which no gdb is available.
52267
52268 2007-04-29  Bruno Haible  <bruno@clisp.org>
52269
52270         * lib/freading.h: Improve comments.
52271         * lib/fwriting.h: Likewise.
52272         * tests/test-freading.c (main): Don't check freading immediately after
52273         repositioning. Needed for glibc.
52274
52275 2007-04-29  Bruno Haible  <bruno@clisp.org>
52276
52277         * lib/freading.c (freading): Trivial simplification.
52278
52279 2007-04-28  Bruno Haible  <bruno@clisp.org>
52280
52281         * tests/test-fwriting.c (main): Also test the interaction between
52282         fflush and fwriting.
52283         * modules/fwriting-tests (Depends-on): Add fflush.
52284
52285         * tests/test-freading.c (main): Also test the interaction between
52286         fflush and freading.
52287         * modules/freading-tests (Depends-on): Add fflush.
52288
52289 2007-04-28  Bruno Haible  <bruno@clisp.org>
52290
52291         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
52292         fseeko and ftello.
52293         Suggested by Eric Blake.
52294
52295 2007-04-28  Jim Meyering  <jim@meyering.net>
52296
52297         Avoid false-negative in gl_STDINT_H's C99 conformance test.
52298         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
52299         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
52300
52301 2007-04-27  Eric Blake  <ebb9@byu.net>
52302
52303         * doc/headers/assert.texi (assert.h): Document assert module use.
52304
52305 2007-04-27  Bruno Haible  <bruno@clisp.org>
52306
52307         * doc/headers/*.texi: New files.
52308         * doc/gnulib.texi (Header File Substitutes): New chapter.
52309         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
52310         dependencies.
52311         (standards.info ,standards.html, standards.dvi): Update dependencies.
52312         (mostlyclean, clean): New targets.
52313
52314 2007-04-27  Bruno Haible  <bruno@clisp.org>
52315
52316         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
52317         * modules/sysexits (Files, Makefile.am): Update.
52318
52319         * lib/sys_socket_.h: Renamed from lib/socket_.h.
52320         * modules/sys_socket (Files, Makefile.am): Update.
52321
52322         * lib/sys_stat_.h: Renamed from lib/stat_.h.
52323         * modules/sys_stat (Files, Makefile.am): Update.
52324
52325 2007-04-27  Eric Blake  <ebb9@byu.net>
52326
52327         * lib/freading.h: Improve comments.
52328         * lib/fwriting.h: Likewise.
52329         * lib/fflush.c: Likewise.
52330
52331         Fix closein for mingw.
52332         * modules/closein-tests: Add tests for closein.
52333         * tests/test-closein.c: New file.
52334         * tests/test-closein.sh: Likewise.
52335         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
52336         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
52337
52338 2007-04-27  Bruno Haible  <bruno@clisp.org>
52339
52340         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
52341         version is < 6.
52342         * lib/math_.h [__DECC]: Likewise.
52343         * lib/stdio_.h [__DECC]: Likewise.
52344         * lib/stdlib_.h [__DECC]: Likewise.
52345         * lib/string_.h [__DECC]: Likewise.
52346         * lib/time_.h [__DECC]: Likewise.
52347         * lib/wchar_.h [__DECC]: Likewise.
52348         * lib/wctype_.h [__DECC]: Likewise.
52349
52350 2007-04-27  Bruno Haible  <bruno@clisp.org>
52351
52352         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
52353
52354 2007-04-27  Bruno Haible  <bruno@clisp.org>
52355
52356         * lib/fflush.c: Add comments.
52357         * modules/fpurge-tests (Depends-on): Add fflush.
52358         * modules/freadable-tests (Depends-on): Likewise.
52359         * modules/fwritable-tests (Depends-on): Likewise.
52360
52361 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
52362
52363         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
52364         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
52365         Report by Bruno Haible <bruno@clisp.org>.
52366
52367 2007-04-26  Eric Blake  <ebb9@byu.net>
52368
52369         Fix fflush on mingw.
52370         * modules/fflush (Depends-on): Add freading.
52371         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
52372         but unread data.
52373
52374 2007-04-26  Eric Blake  <ebb9@byu.net>
52375         and Bruno Haible  <bruno@clisp.org>
52376
52377         Implement freading and fwriting.
52378         * lib/freading.c: New file.
52379         * lib/freading.h: Likewise.
52380         * m4/freading.m4: Likewise.
52381         * modules/freading: Likewise.
52382         * modules/freading-tests: Likewise.
52383         * tests/test-freading.c: Likewise.
52384         * lib/fwriting.c: New file.
52385         * lib/fwriting.h: Likewise.
52386         * m4/fwriting.m4: Likewise.
52387         * modules/fwriting: Likewise.
52388         * modules/fwriting-tests: Likewise.
52389         * tests/test-fwriting.c: Likewise.
52390         * MODULES.html.sh (File stream based Input/Output): Mention them.
52391
52392 2007-04-26  Bruno Haible  <bruno@clisp.org>
52393
52394         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
52395         'long' when we assume it.
52396         Suggested by Eric Blake.
52397
52398 2007-04-26  Bruno Haible  <bruno@clisp.org>
52399
52400         Ensure fseeko, ftello are declared on glibc systems.
52401         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
52402         * modules/fseeko (configure.ac-early): Likewise.
52403         * modules/ftello (configure.ac-early): Likewise.
52404         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
52405         AC_FUNC_FSEEKO for this.
52406         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
52407         (gl_CHECK_FSEEKO): Remove macro.
52408
52409 2007-04-26  Bruno Haible  <bruno@clisp.org>
52410
52411         * tests/test-fflush.c (main): Also check the ftell result after
52412         fflush and fseek/fseeko.
52413         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
52414         file descriptor position cache in the stream.
52415         * lib/fseeko.c (rpl_fseeko): Likewise.
52416
52417 2007-04-26  Bruno Haible  <bruno@clisp.org>
52418
52419         * modules/fflush-tests (Depends-on): Add fseeko.
52420
52421 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
52422             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52423
52424         * lib/argz_.h: ensure error_t definition is obtained in same
52425         mechanism system argz.h would have.
52426         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
52427         argz facilities are known bad.  Err on the side of caution if
52428         cross-compiling.
52429
52430 2007-04-25  Eric Blake  <ebb9@byu.net>
52431
52432         * lib/fpurge.c (includes): Use stdlib.h for free.
52433         * tests/test-fflush.c (main): Also test fflush-fseeko.
52434
52435 2007-04-25  Bruno Haible  <bruno@clisp.org>
52436
52437         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
52438         * lib/fseeko.c: New file.
52439         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
52440         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
52441         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
52442         gl_FUNC_FSEEKO.
52443         (gl_FUNC_FSEEKO): Invoke it.
52444         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
52445         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
52446         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
52447
52448 2007-04-25  Bruno Haible  <bruno@clisp.org>
52449
52450         * modules/fflush (Depends-on): Add ftello.
52451
52452 2007-04-25  Bruno Haible  <bruno@clisp.org>
52453
52454         * modules/ftello-tests: New file.
52455         * tests/test-ftello.c: New file.
52456
52457         * modules/ftello: New file.
52458         * m4/ftello.m4: New file.
52459         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
52460         HAVE_FTELLO.
52461         * lib/stdio_.h (ftello): New declaration.
52462         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
52463         HAVE_FTELLO.
52464
52465 2007-04-25  Bruno Haible  <bruno@clisp.org>
52466
52467         * modules/fseeko-tests: New file.
52468         * tests/test-fseeko.c: New file.
52469
52470         * modules/fseeko: New file.
52471         * m4/fseeko.m4: New file.
52472         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
52473         HAVE_FSEEKO.
52474         * lib/stdio_.h (fseeko): New declaration.
52475         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
52476         HAVE_FSEEKO.
52477
52478 2007-04-25  Bruno Haible  <bruno@clisp.org>
52479
52480         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
52481
52482 2007-04-25  Bruno Haible  <bruno@clisp.org>
52483
52484         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
52485         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
52486         * tests/test-unistd.c: Likewise.
52487         * tests/test-fcntl.c: Likewise.
52488
52489 2007-04-23  Eric Blake  <ebb9@byu.net>
52490
52491         * lib/fflush.c: Fix missing include.
52492         Reported by Bruno Haible.
52493
52494 2007-04-23  Bruno Haible  <bruno@clisp.org>
52495
52496         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
52497         Reported by Eric Blake.
52498
52499 2007-04-23  Bruno Haible  <bruno@clisp.org>
52500
52501         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
52502
52503 2007-04-23  Bruno Haible  <bruno@clisp.org>
52504
52505         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
52506
52507 2007-04-23  Bruno Haible  <bruno@clisp.org>
52508
52509         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
52510         Needed on HP-UX 11.
52511
52512 2007-04-16  Eric Blake  <ebb9@byu.net>
52513
52514         Make fflush rely on fpurge.
52515         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
52516         open coding all variants.
52517         * modules/fflush (Depends-on): Add fpurge and unistd.
52518         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
52519         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
52520
52521         Fix --with-tests compilation on cygwin.
52522         * modules/argmatch-tests (Makefile.am): List gnulib library first
52523         in LDADD.
52524         * modules/argp-tests (Makefile.am): Likewise.
52525         * modules/array-list-tests (Makefile.am): Likewise.
52526         * modules/array-oset-tests (Makefile.am): Likewise.
52527         * modules/avltree-list-tests (Makefile.am): Likewise.
52528         * modules/avltree-oset-tests (Makefile.am): Likewise.
52529         * modules/avltreehash-list-tests (Makefile.am): Likewise.
52530         * modules/carray-list-tests (Makefile.am): Likewise.
52531         * modules/dirname-tests (Makefile.am): Likewise.
52532         * modules/frexp-tests (Makefile.am): Likewise.
52533         * modules/isnanl-tests (Makefile.am): Likewise.
52534         * modules/linked-list-tests (Makefile.am): Likewise.
52535         * modules/linkedhash-list-tests (Makefile.am): Likewise.
52536         * modules/lock-tests (Makefile.am): Likewise.
52537         * modules/rbtree-list-tests (Makefile.am): Likewise.
52538         * modules/rbtree-oset-tests (Makefile.am): Likewise.
52539         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
52540         * modules/tls-tests (Makefile.am): Likewise.
52541         * modules/tsearch-tests (Makefile.am): Likewise.
52542         * modules/xvasprintf-tests (Makefile.am): Likewise.
52543
52544         Fix fpurge for cygwin.
52545         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
52546         value.
52547         * modules/fpurge-tests (Depends-on): Clean up trash.
52548
52549 2007-04-16  Simon Josefsson  <simon@josefsson.org>
52550
52551         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
52552
52553         * m4/autobuild.m4: Re-indent.
52554
52555 2007-04-13  Bruno Haible  <bruno@clisp.org>
52556
52557         * modules/fpurge-tests: New file.
52558         * tests/test-fpurge.c: New file.
52559
52560         * modules/fpurge: New file.
52561         * lib/fpurge.h: New file.
52562         * lib/fpurge.c: New file.
52563         * m4/fpurge.m4: New file.
52564
52565 2007-04-13  Bruno Haible  <bruno@clisp.org>
52566
52567         * modules/fbufmode-tests: New file.
52568         * tests/test-fbufmode.c: New file.
52569
52570         * modules/fbufmode: New file.
52571         * lib/fbufmode.h: New file.
52572         * lib/fbufmode.c: New file.
52573         * m4/fbufmode.m4: New file.
52574
52575 2007-04-13  Bruno Haible  <bruno@clisp.org>
52576
52577         * modules/fwritable-tests: New file.
52578         * tests/test-fwritable.c: New file.
52579
52580         * modules/fwritable: New file.
52581         * lib/fwritable.h: New file.
52582         * lib/fwritable.c: New file.
52583         * m4/fwritable.m4: New file.
52584
52585 2007-04-13  Bruno Haible  <bruno@clisp.org>
52586
52587         * modules/freadable-tests: New file.
52588         * tests/test-freadable.c: New file.
52589
52590         * modules/freadable: New file.
52591         * lib/freadable.h: New file.
52592         * lib/freadable.c: New file.
52593         * m4/freadable.m4: New file.
52594
52595 2007-04-13  Bruno Haible  <bruno@clisp.org>
52596
52597         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
52598         MOSTLYCLEANFILES.
52599
52600 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52601
52602         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
52603         gzip bootstrap.conf to avoid dragging in i18n machinery.
52604         (gnulib_tool_option): Use it.
52605
52606 2007-04-13  Bruno Haible  <bruno@clisp.org>
52607
52608         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
52609         %F directives.
52610         * tests/test-vasprintf-posix.c (test_function): Likewise.
52611         * tests/test-snprintf-posix.h (test_function): Likewise.
52612         * tests/test-sprintf-posix.h (test_function): Likewise.
52613         * tests/test-fprintf-posix.h (test_function): Likewise.
52614         * tests/test-printf-posix.h (test_function): Likewise.
52615         * tests/test-fprintf-posix.out: Likewise.
52616
52617 2007-04-13  Bruno Haible  <bruno@clisp.org>
52618
52619         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
52620         * modules/tls-tests (configure.ac): Likewise.
52621         Reported by Arto C. Nirkko <anirkko@insel.ch>.
52622
52623 2007-04-13  Bruno Haible  <bruno@clisp.org>
52624
52625         * lib/tls.c (glthread_tls_get): Fix return type.
52626         Patch by Arto C. Nirkko <anirkko@insel.ch>.
52627
52628 2007-04-12  Eric Blake  <ebb9@byu.net>
52629
52630         * modules/gettime (Depends-on): Remove gettime.
52631         Reported by Dmitry V. Levin.
52632
52633 2007-04-12  Bruno Haible  <bruno@clisp.org>
52634
52635         * modules/fflush (Include): Mention <stdio.h>.
52636         * modules/strtoimax (Include): Mention <inttypes.h>.
52637         * modules/strtoumax (Include): Likewise.
52638
52639 2007-04-12  Eric Blake  <ebb9@byu.net>
52640
52641         * .cvsignore: New file.
52642         * .gitignore: Likewise.
52643
52644 2007-04-12  Bruno Haible  <bruno@clisp.org>
52645
52646         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
52647         not before, since $(LDADD) often contains libgnu.a.
52648         * modules/striconv-tests (test_striconv_LDADD): Likewise.
52649         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
52650         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
52651         Needed on Cygwin.
52652
52653 2007-04-12  Eric Blake  <ebb9@byu.net>
52654
52655         Work around glibc's failure to flush stdin on fclose.
52656         * lib/closein.c (close_stdin): Flush stdin before closing.
52657
52658         Work around glibc's failure to reset seekable stdin on exit.
52659         * modules/closein: New module.
52660         * lib/closein.c: New file.
52661         * lib/closein.h: Likewise.
52662         * m4/closein.m4: Likewise.
52663         * MODULES.html.sh (File stream based Input/Output): Document it.
52664
52665 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52666
52667         * gnulib-tool: Rename generated 'autobuild' script to
52668         'do-autobuild' in --create-megatestdir output.
52669
52670         * doc/gnulib.texi (Build robot for gnulib): Fix.
52671
52672 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52673
52674         * modules/sysexits (Depends-on): Add absolute-header.
52675
52676 2007-04-12  Eric Blake  <ebb9@byu.net>
52677
52678         No need to preserve errno on success.
52679         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
52680         Reported by Bruno Haible.
52681
52682 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52683
52684         * MODULES.html.sh (Support for maintaining and releasing
52685         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
52686
52687 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52688
52689         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
52690
52691 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52692
52693         * modules/autobuild: New module.
52694
52695         * m4/autobuild.m4: New file.
52696
52697 2007-04-11  Bruno Haible  <bruno@clisp.org>
52698
52699         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
52700         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
52701         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
52702         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
52703         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52704         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52705         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52706         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52707         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52708         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52709         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
52710         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52711         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52712         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
52713         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52714         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52715         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
52716         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52717         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52718         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
52719         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52720         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52721         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
52722         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52723         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52724         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
52725         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52726         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52727         Reported by Eric Blake.
52728
52729 2007-04-11  Bruno Haible  <bruno@clisp.org>
52730
52731         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
52732
52733 2007-04-10  Bruno Haible  <bruno@clisp.org>
52734
52735         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
52736         for NaN and Infinity. Needed on FreeBSD 6.1.
52737         * tests/test-vasnprintf-posix.c (test_function): Undo last change
52738         regarding results for "%010a" of Infinity and NaN.
52739         * tests/test-vasprintf-posix.c (test_function): Likewise.
52740         * tests/test-snprintf-posix.h (test_function): Likewise.
52741         * tests/test-sprintf-posix.h (test_function): Likewise.
52742         * tests/test-fprintf-posix.h (test_function): Likewise.
52743         * tests/test-printf-posix.h (test_function): Likewise.
52744         * tests/test-fprintf-posix.out: Likewise.
52745
52746 2007-04-10  Bruno Haible  <bruno@clisp.org>
52747
52748         * modules/locale-tests: New file.
52749         * tests/test-locale.c: New file.
52750
52751         * modules/locale: New file.
52752         * lib/locale_.h: New file.
52753         * m4/locale_h.m4: New file.
52754
52755 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
52756             Bruno Haible  <bruno@clisp.org>
52757
52758         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
52759         be determined, test for availability of the copysignf, copysign,
52760         copysignl functions.
52761         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
52762         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
52763         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
52764
52765 2007-04-09  Eric Blake  <ebb9@byu.net>
52766
52767         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
52768         * modules/stdio (Makefile.am): Support fflush.
52769         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52770         * modules/fflush: New file.
52771         * lib/fflush.c: Likewise.
52772         * m4/fflush.m4: Likewise.
52773         * modules/fflush-tests: New test.
52774         * tests/test-fflush.c: Likewise.
52775         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
52776
52777 2007-04-06  Bruno Haible  <bruno@clisp.org>
52778
52779         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
52780         (VASNPRINTF): Use signbit for faster determination whether to print a
52781         minus sign.
52782         * modules/vasnprintf (Files): Remove lib/float+.h.
52783         * modules/fprintf-posix (Depends-on): Add signbit.
52784         * modules/snprintf-posix (Depends-on): Likewise.
52785         * modules/sprintf-posix (Depends-on): Likewise.
52786         * modules/vasnprintf-posix (Depends-on): Likewise.
52787         * modules/vasprintf-posix (Depends-on): Likewise.
52788         * modules/vfprintf-posix (Depends-on): Likewise.
52789         * modules/vsnprintf-posix (Depends-on): Likewise.
52790         * modules/vsprintf-posix (Depends-on): Likewise.
52791
52792 2007-04-06  Bruno Haible  <bruno@clisp.org>
52793
52794         * tests/test-frexp.c (main): Test also the sign bit of zero results.
52795         * tests/test-frexpl.c (main): Likewise.
52796         * tests/test-ldexpl.c (main): Likewise.
52797         * modules/frexp-tests (Depends-on): Add signbit.
52798         * modules/frexpl-tests (Depdends-on): Likewise.
52799         * modules/ldexpl-tests (Depdends-on): Likewise.
52800
52801 2007-04-06  Bruno Haible  <bruno@clisp.org>
52802
52803         * modules/signbit-tests: New file.
52804         * tests/test-signbit.c: New file.
52805
52806         * modules/signbit: New file.
52807         * lib/signbitf.c: New file.
52808         * lib/signbitd.c: New file.
52809         * lib/signbitl.c: New file.
52810         * m4/signbit.m4: New file.
52811         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
52812         (signbit): New macro.
52813         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
52814         REPLACE_SIGNBIT.
52815         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
52816         REPLACE_FREXPL into math.h.
52817
52818 2007-04-06  Bruno Haible  <bruno@clisp.org>
52819
52820         * modules/isnanf-nolibm-tests: New file.
52821         * tests/test-isnanf.c: New file.
52822
52823         * modules/isnanf-nolibm: New file.
52824         * lib/isnanf.h: New file.
52825         * lib/isnanf.c: New file.
52826         * lib/isnan.c: Consider the USE_FLOAT macro.
52827         * m4/isnanf.m4: New file.
52828
52829 2007-04-06  Bruno Haible  <bruno@clisp.org>
52830
52831         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
52832         (Link): New section.
52833
52834         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
52835
52836 2007-04-06  Bruno Haible  <bruno@clisp.org>
52837
52838         Assume the 'long double' type.
52839         * m4/longdouble.m4: Remove file.
52840         * config/srclist.txt: Don't mention longdouble.m4.
52841         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
52842         * lib/float+.h: Likewise.
52843         * lib/frexp.c: Likewise.
52844         * lib/printf-args.h: Likewise.
52845         * lib/printf-args.c: Likewise.
52846         * lib/printf-frexp.c: Likewise.
52847         * lib/printf-parse.c: Likewise.
52848         * lib/vasnprintf.c: Likewise.
52849         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
52850         * m4/intl.m4: Likewise.
52851         * m4/isnanl.m4: Likewise.
52852         * m4/printf.m4: Likewise.
52853         * m4/printf-frexpl.m4: Likewise.
52854         * m4/vasnprintf.m4: Likewise.
52855         * modules/allocsa (Files): Remove m4/longdouble.m4.
52856         * modules/gettext (Files): Likewise.
52857         * modules/relocatable-prog-wrapper (Files): Likewise.
52858         * modules/vasnprintf (Files): Likewise.
52859         * modules/isnanl (Files): Likewise.
52860         (Include): Simplify.
52861         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
52862         (Include): Simplify.
52863         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
52864         (Include): Simplify.
52865         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
52866         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52867         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
52868         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52869         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
52870         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52871         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
52872         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52873         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
52874         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52875         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
52876         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52877         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
52878         * tests/test-isnanl.c: Likewise.
52879         * tests/test-snprintf-posix.h: Likewise.
52880         * tests/test-sprintf-posix.h: Likewise.
52881         * tests/test-vasnprintf-posix.c: Likewise.
52882         * tests/test-vasnprintf-posix2.c: Likewise.
52883         * tests/test-vasprintf-posix.c: Likewise.
52884
52885 2007-04-06  Bruno Haible  <bruno@clisp.org>
52886
52887         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
52888         * lib/math_.h [__DECC]: Include the overridden include file through
52889         #include_next, outside the double-inclusion guard.
52890         * lib/stdio_.h [__DECC]: Likewise.
52891         * lib/stdlib_.h [__DECC]: Likewise.
52892         * lib/string_.h [__DECC]: Likewise.
52893         * lib/time_.h [__DECC]: Likewise.
52894         * lib/wchar_.h [__DECC]: Likewise.
52895         * lib/wctype_.h [__DECC]: Likewise.
52896         * lib/inttypes_.h [__DECC]: Likewise.
52897         Reported by Albert Chin <china@thewrittenword.com> in
52898         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
52899
52900 2007-04-04  Eric Blake  <ebb9@byu.net>
52901
52902         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
52903         1.5.x.
52904
52905 2007-04-04  Bruno Haible  <bruno@clisp.org>
52906
52907         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
52908         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
52909
52910 2007-04-04  Bruno Haible  <bruno@clisp.org>
52911
52912         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
52913         results for "%010a" of Infinity and NaN.
52914         * tests/test-vasprintf-posix.c (test_function): Likewise.
52915         * tests/test-snprintf-posix.h (test_function): Likewise.
52916         * tests/test-sprintf-posix.h (test_function): Likewise.
52917         * tests/test-fprintf-posix.h (test_function): Remove these tests.
52918         * tests/test-printf-posix.h (test_function): Likewise.
52919         * tests/test-fprintf-posix.out: Update.
52920         Needed for FreeBSD 6.1.
52921
52922 2007-04-04  Bruno Haible  <bruno@clisp.org>
52923
52924         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
52925         directly used by the gnulib modules nor by gnulib-tool.
52926
52927 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
52928
52929         * DEPENDENCIES: Give overall description of version dependency
52930         desirability.  Use more-typical names for apps.
52931         Add shell, coreutils, diffutils, grep, tar, gzip.
52932
52933 2007-04-04  Simon Josefsson  <simon@josefsson.org>
52934
52935         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
52936
52937 2007-04-04  Karl Berry  <karl@gnu.org>
52938
52939         * MODULES.html.sh (func_module): missing '.
52940
52941 2007-04-03  Bruno Haible  <bruno@clisp.org>
52942
52943         * modules/argmatch-tests (Makefile.am): New variable
52944         test_argmatch_LDADD.
52945         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
52946         * modules/array-list-tests (Makefile.am): New variable
52947         test_array_list_LDADD.
52948         * modules/array-oset-tests (Makefile.am): New variable
52949         test_array_oset_LDADD.
52950         * modules/avltree-list-tests (Makefile.am): New variable
52951         test_avltree_list_LDADD.
52952         * modules/avltree-oset-tests (Makefile.am): New variable
52953         test_avltree_oset_LDADD.
52954         * modules/avltreehash-list-tests (Makefile.am): New variable
52955         test_avltreehash_list_LDADD.
52956         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
52957         test_canonicalize_lgpl_LDADD.
52958         * modules/carray-list-tests (Makefile.am): New variable
52959         test_carray_list_LDADD.
52960         * modules/dirname-tests (Makefile.am): New variable
52961         test_dirname_LDADD.
52962         * modules/linked-list-tests (Makefile.am): New variable
52963         test_linked_list_LDADD.
52964         * modules/linkedhash-list-tests (Makefile.am): New variable
52965         test_linkedhash_list_LDADD.
52966         * modules/rbtree-list-tests (Makefile.am): New variable
52967         test_rbtree_list_LDADD.
52968         * modules/rbtree-oset-tests (Makefile.am): New variable
52969         test_rbtree_oset_LDADD.
52970         * modules/rbtreehash-list-tests (Makefile.am): New variable
52971         test_rbtreehash_list_LDADD.
52972         * modules/xvasprintf-tests (Makefile.am): New variable
52973         test_xvasprintf_LDADD.
52974         Reported by Eric Blake.
52975
52976 2007-04-03  Eric Blake  <ebb9@byu.net>
52977
52978         * DEPENDENCIES: Weaken m4 requirements.
52979
52980 2007-04-03  Bruno Haible  <bruno@clisp.org>
52981
52982         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
52983         * modules/isnanl-tests (configure.ac): Likewise.
52984
52985 2007-04-03  Ben Pfaff  <blp@gnu.org>
52986
52987         * modules/iconv_open: Add $(srcdir)/ to source directory
52988         references in Makefile fragments that call gperf, to fix VPATH
52989         builds.
52990
52991 2007-04-03  Bruno Haible  <bruno@clisp.org>
52992
52993         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
52994         * lib/ldexpl.c: Undo last change.
52995
52996 2007-04-03  Bruno Haible  <bruno@clisp.org>
52997
52998         * modules/printf-frexpl (Depends-on): Undo last change.
52999         (Files): Add m4/ldexpl.m4.
53000
53001 2007-04-03  Bruno Haible  <bruno@clisp.org>
53002
53003         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
53004         * modules/isnanl (Link): New section.
53005
53006         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
53007         * modules/frexp (Link): New section.
53008
53009         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
53010         * modules/frexpl (Link): New section.
53011
53012         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
53013         * modules/ldexpl (Link): New section.
53014
53015 2007-04-03  Bruno Haible  <bruno@clisp.org>
53016
53017         * modules/TEMPLATE-EXTENDED: New file.
53018         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
53019
53020 2007-04-03  Bruno Haible  <bruno@clisp.org>
53021
53022         * DEPENDENCIES: New file.
53023         Suggested by Simon Josefsson.
53024
53025 2007-04-03  Bruno Haible  <bruno@clisp.org>
53026
53027         * doc/gnulib.texi: Escape @.
53028
53029 2007-04-03  James Youngman  <jay@gnu.org>
53030         and Paul Eggert  <eggert@cs.ucla.edu>
53031
53032         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
53033         birthtime on all systems that have birthtime, not just those which
53034         use st_birthtimensec rather than st_birthtim.  Putting zero in
53035         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
53036         that the birth time is not available for files on an NFS mount.
53037
53038 2007-04-03  Simon Josefsson  <simon@josefsson.org>
53039
53040         * modules/memxor: Move back from crypto/, suggested by Bruno.
53041         * modules/crypto/hmac-sha1: Fix memxor dependency.
53042
53043         * modules/crypto/gc: Moved from ../.
53044
53045 2007-04-02  Eric Blake  <ebb9@byu.net>
53046
53047         * lib/ldexpl.c (includes): Avoid libm.
53048
53049         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
53050
53051 2007-04-02  Bruno Haible  <bruno@clisp.org>
53052
53053         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
53054         on IRIX.
53055
53056 2007-04-02  Bruno Haible  <bruno@clisp.org>
53057
53058         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
53059         x86 or x86_64 platforms running MacOS X.
53060         Reported by Ryan Schmidt <@ryandesign.com>.
53061
53062 2007-04-02  Bruno Haible  <bruno@clisp.org>
53063
53064         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
53065         i386.
53066
53067 2007-04-01  Simon Josefsson  <simon@josefsson.org>
53068
53069         * modules/crypto/arcfour: Moved from ../.
53070         * modules/crypto/arcfour-tests: Moved from ../.
53071         * modules/crypto/arctwo: Moved from ../.
53072         * modules/crypto/arctwo-tests: Moved from ../.
53073         * modules/crypto/des: Moved from ../.
53074         * modules/crypto/des-tests: Moved from ../.
53075         * modules/crypto/gc-arcfour: Moved from ../.
53076         * modules/crypto/gc-arcfour-tests: Moved from ../.
53077         * modules/crypto/gc-arctwo: Moved from ../.
53078         * modules/crypto/gc-arctwo-tests: Moved from ../.
53079         * modules/crypto/gc-des: Moved from ../.
53080         * modules/crypto/gc-des-tests: Moved from ../.
53081         * modules/crypto/gc-hmac-md5: Moved from ../.
53082         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
53083         * modules/crypto/gc-hmac-sha1: Moved from ../.
53084         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
53085         * modules/crypto/gc-md2: Moved from ../.
53086         * modules/crypto/gc-md2-tests: Moved from ../.
53087         * modules/crypto/gc-md4: Moved from ../.
53088         * modules/crypto/gc-md4-tests: Moved from ../.
53089         * modules/crypto/gc-md5: Moved from ../.
53090         * modules/crypto/gc-md5-tests: Moved from ../.
53091         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
53092         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
53093         * modules/crypto/gc-random: Moved from ../.
53094         * modules/crypto/gc-rijndael: Moved from ../.
53095         * modules/crypto/gc-rijndael-tests: Moved from ../.
53096         * modules/crypto/gc-sha1: Moved from ../.
53097         * modules/crypto/gc-sha1-tests: Moved from ../.
53098         * modules/crypto/gc-tests: Moved from ../.
53099         * modules/crypto/hmac-md5: Moved from ../.
53100         * modules/crypto/hmac-md5-tests: Moved from ../.
53101         * modules/crypto/hmac-sha1: Moved from ../.
53102         * modules/crypto/hmac-sha1-tests: Moved from ../.
53103         * modules/crypto/md2: Moved from ../.
53104         * modules/crypto/md2-tests: Moved from ../.
53105         * modules/crypto/md4: Moved from ../.
53106         * modules/crypto/md4-tests: Moved from ../.
53107         * modules/crypto/md5: Moved from ../.
53108         * modules/crypto/md5-tests: Moved from ../.
53109         * modules/crypto/memxor: Moved from ../.
53110         * modules/crypto/rijndael: Moved from ../.
53111         * modules/crypto/rijndael-tests: Moved from ../.
53112         * modules/crypto/sha1: Moved from ../.
53113
53114 2007-03-30  James Youngman  <jay@gnu.org>
53115
53116         * tests/test-stat-time.c (prepare_test): use chmod() rather than
53117         rename() to change the ctime of a file (because ctime is unaffected
53118         by rename on jfs2 on AIX 5.1).
53119         (main): Start by doing cleanup, in case a previous run failed leaving
53120         test files behind.
53121
53122 2007-03-31  Bruno Haible  <bruno@clisp.org>
53123
53124         Support old proprietary implementations of iconv.
53125         * modules/iconv_open: New file.
53126         * lib/iconv_.h: New file.
53127         * m4/iconv_h.m4: New file.
53128         * lib/iconv_open.c: New file.
53129         * lib/iconv_open-aix.gperf: New file.
53130         * lib/iconv_open-hpux.gperf: New file.
53131         * lib/iconv_open-irix.gperf: New file.
53132         * lib/iconv_open-osf.gperf: New file.
53133         * m4/iconv_open.m4: New file.
53134         * modules/linebreak (Depends-on): Add iconv_open.
53135         * modules/striconv (Depends-on): Likewise.
53136         * modules/striconveh (Depends-on): Likewise.
53137         * modules/unicodeio (Depends-on): Likewise.
53138         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
53139         (iconv_t)(-1).
53140         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
53141         conversion if cd is (iconv_t)(-1).
53142         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
53143         is not possible.
53144
53145 2007-03-31  Bruno Haible  <bruno@clisp.org>
53146
53147         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53148         work on Solaris either. Protect also second use of "autodetect_jp".
53149
53150 2007-03-31  Bruno Haible  <bruno@clisp.org>
53151
53152         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
53153         the function is not present.
53154
53155 2007-03-31  Bruno Haible  <bruno@clisp.org>
53156
53157         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
53158         the function is not present.
53159
53160 2007-03-31  Bruno Haible  <bruno@clisp.org>
53161
53162         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
53163         a bug in HP-UX iconv_open().
53164
53165 2007-03-31  Bruno Haible  <bruno@clisp.org>
53166
53167         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
53168         (Mathematics <math.h>): New section, add fpieee.
53169         (Input/output <stdio.h>): Add fseterr.
53170         (Mathematics <math.h>): New section, add printf-frexp.
53171         (Container data structures): Add sublist.
53172         (Core language properties): Add fpucw, inline.
53173         (Functions for greatest-width integer types <inttypes.h>): Add
53174         imaxabs, imaxdiv, inttypes.
53175         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
53176         isnanl-nolibm, ldexp.
53177         (Mathematics <math.h>): New section, add printf-frexpl.
53178         (Support for systems lacking POSIX:2001): Add fprintf-posix,
53179         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
53180         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
53181         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
53182         (Unicode string functions): Add unistr/u*-mbtoucr.
53183         (Java): Add javacomp-script, javaexec-script.
53184         (C#): Add csharpcomp-script, csharpexec-script.
53185         (Support for building libraries and executables): Add havelib,
53186         relocatable-*.
53187         (Support for maintaining and releasing projects): Renamed from
53188         'Support for maintaining and release projects'. Add announce-gen.
53189
53190 2007-03-31  Bruno Haible  <bruno@clisp.org>
53191
53192         * README: Talk primarily about git.
53193         (git and CVS): Renamed from CVS.
53194         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
53195         gnulib is available through git.
53196         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
53197
53198 2007-03-30  Bruno Haible  <bruno@clisp.org>
53199
53200         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
53201         * lib/poll_.h: Likewise.
53202         * lib/stat_.h: Likewise.
53203         * lib/sys_time_.h: Likewise.
53204         * lib/sysexit_.h: Likewise.
53205         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
53206         * lib/stdbool_.h: Likewise.
53207         * lib/byteswap_.h: Add double-inclusion guard.
53208
53209 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
53210
53211         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
53212
53213 2007-03-30  Karl Berry  <karl@gnu.org>
53214
53215         * config/srclist-update: double space after USA in the license
53216         substitution, since that's how it's usually (?) written.
53217
53218 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53219
53220         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
53221         reported by Bruno Haible.
53222
53223 2007-03-29  Bruno Haible  <bruno@clisp.org>
53224
53225         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
53226         a bug in AIX iconv().
53227
53228 2007-03-29  Bruno Haible  <bruno@clisp.org>
53229
53230         * modules/ldexpl-tests: New file.
53231         * tests/test-ldexpl.c: New file.
53232
53233 2007-03-29  Bruno Haible  <bruno@clisp.org>
53234
53235         * lib/ldexpl.c: Include fpucw.h.
53236         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
53237         multiplication.
53238         * modules/ldexpl (Depends-on): Add fpucw.
53239
53240 2007-03-29  Bruno Haible  <bruno@clisp.org>
53241
53242         * modules/ldexpl: New file.
53243         * m4/ldexpl.m4: New file.
53244         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
53245         set.
53246         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
53247         REPLACE_LDEXPL.
53248         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
53249         REPLACE_LDEXPL.
53250         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53251         gl_FUNC_LDEXPL_WORKS.
53252         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
53253         * modules/mathl (Files): Remove lib/ldexpl.c.
53254         (Depends-on): Add ldexpl.
53255
53256 2007-03-29  Bruno Haible  <bruno@clisp.org>
53257
53258         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
53259
53260 2007-03-29  Bruno Haible  <bruno@clisp.org>
53261
53262         * tests/test-striconveh.c (main): Don't assume that a direct conversion
53263         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
53264         and possibly also HP-UX.
53265         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53266         work on AIX, IRIX, HP-UX, OSF/1.
53267         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
53268         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
53269         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
53270         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
53271         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
53272         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
53273
53274 2007-03-29  Bruno Haible  <bruno@clisp.org>
53275
53276         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
53277
53278 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53279
53280         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
53281         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
53282
53283 2007-03-29  Eric Blake  <ebb9@byu.net>
53284
53285         * lib/acl-internal.h: Remove redundant include.
53286         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
53287         Cygwin when a file is locked.
53288
53289 2007-03-29  Bruno Haible  <bruno@clisp.org>
53290
53291         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
53292         file.
53293         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
53294
53295 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53296
53297         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
53298         try to remove a parent directory if the child couldn't be removed
53299         (except for the first rmdir, which could fail because the child
53300         doesn't exist).  Problem reported by Jeff Blaine in
53301         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
53302
53303 2007-03-28  Bruno Haible  <bruno@clisp.org>
53304
53305         * lib/striconveh.c (utf8conv_carefully): New function.
53306         (mem_cd_iconveh_internal): Invoke it.
53307
53308 2007-03-28  Bruno Haible  <bruno@clisp.org>
53309
53310         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
53311         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
53312         input.
53313         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
53314         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
53315         unistr/u8-uctomb.
53316
53317 2007-03-28  Bruno Haible  <bruno@clisp.org>
53318
53319         * modules/unistr/u8-mbtoucr: New file.
53320         * lib/unistr/u8-mbtoucr.c: New file.
53321         * modules/unistr/u16-mbtoucr: New file.
53322         * lib/unistr/u16-mbtoucr.c: New file.
53323         * modules/unistr/u16-mbtoucr: New file.
53324         * lib/unistr/u16-mbtoucr.c: New file.
53325         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
53326
53327 2007-03-27  Simon Josefsson  <simon@josefsson.org>
53328             Bruno Haible  <bruno@clisp.org>
53329
53330         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
53331         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
53332         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
53333
53334         * m4/stdio_h.m4: Add stubs for vasprintf too.
53335
53336         * modules/stdio: Support vasprintf in sed command.
53337
53338         * modules/vasprintf: Depend on stdio for prototypes.  Remove
53339         vasprintf.h.  Add stdio module indicator.
53340
53341         * lib/stdio_.h: Declare asprintf and vasprintf, based on
53342         vasprintf.h.
53343
53344         * lib/vasprintf.h: File removed.
53345
53346         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
53347         * lib/vasprintf.c: Ditto.
53348         * lib/xvasprintf.c: Ditto.
53349         * tests/test-vasprintf-posix.c: Ditto.
53350         * tests/test-vasprintf.c: Ditto.
53351
53352 2007-03-27  Bruno Haible  <bruno@clisp.org>
53353
53354         Make vasnprintf multithread-safe.
53355         * lib/vasnprintf.c (decimal_point_char): New function.
53356         (VASNPRINTF): Use it.
53357         Suggested by Simon Josefsson.
53358
53359 2007-03-27  Eric Blake  <ebb9@byu.net>
53360
53361         Support sub-second birthtime on cygwin.
53362         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
53363         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
53364         (get_stat_birthtime): Also work with st_birthtim.
53365
53366 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
53367
53368         * lib/stat-time.h (USE_BIRTHTIME): Remove.
53369         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
53370         (get_stat_birthtime_ns): Do not try to use "spare" fields.
53371         (get_stat_birthtime_ns): Simplify compile-time tests.
53372         (get_stat_birthtime): Change the API to look like
53373         get_stat_mtime etc., except return a negative tv_nsec on error.
53374         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
53375         Don't check for "spare" fields.
53376         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
53377         or for struct stat.st_birthtime, as these tests aren't used.
53378         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
53379
53380 2007-03-27  Bruno Haible  <bruno@clisp.org>
53381
53382         * lib/stat-time.h: Include <sys/stat.h>.
53383
53384 2007-03-27  James Youngman  <jay@gnu.org>
53385
53386         * lib/stat-time.h (get_stat_birthtime): New function for
53387           retrieving st_birthtime as provided by UFS2 (hence *BSD).
53388         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
53389           and its variants.
53390         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
53391         * modules/stat-time-test: New file.
53392         * tests/test-stat-time.c: New test, devised by Bruno Haible.
53393
53394 2007-03-26  Bruno Haible  <bruno@clisp.org>
53395
53396         Better support of signalling NaNs.
53397         * lib/atanl.c: Include isnanl.h.
53398         (atanl): Perform test for NaN at the beginning of the function and
53399         through a call to isnanl.
53400         * lib/cosl.c: Include isnanl.h.
53401         (cosl): Perform test for NaN at the beginning of the function and
53402         through a call to isnanl.
53403         * lib/ldexpl.c: Include isnanl.h.
53404         (ldexpl): Perform test for NaN through a call to isnanl.
53405         * lib/logl.c: Include isnanl.h.
53406         (logl): Perform test for NaN at the beginning of the function and
53407         through a call to isnanl.
53408         * lib/sinl.c: Include isnanl.h.
53409         (sinl): Perform test for NaN at the beginning of the function and
53410         through a call to isnanl.
53411         * lib/sqrtl.c: Include isnanl.h.
53412         (sqrtl): Perform test for NaN at the beginning of the function and
53413         through a call to isnanl.
53414         * lib/tanl.c: Include isnanl.h.
53415         (tanl): Perform test for NaN at the beginning of the function and
53416         through a call to isnanl.
53417         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
53418         * modules/mathl (Depends-on): Add isnanl.
53419
53420 2007-03-26  Eric Blake  <ebb9@byu.net>
53421
53422         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
53423         regression in logic sense of previous patch.
53424
53425 2007-03-26  Bruno Haible  <bruno@clisp.org>
53426
53427         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
53428         unportable shell command "if ! ...".
53429         Reported by Ralf Wildenhues.
53430
53431 2007-03-25  Bruno Haible  <bruno@clisp.org>
53432
53433         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
53434         <sysexits.h> file, and only add EX_CONFIG.
53435         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
53436         absolute file name and whether it is sufficient. Substitute also
53437         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
53438         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
53439         ABSOLUTE_SYSEXITS_H into sysexits.h.
53440
53441 2007-03-25  Bruno Haible  <bruno@clisp.org>
53442
53443         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
53444         hints is NULL.
53445
53446 2007-03-25  Bruno Haible  <bruno@clisp.org>
53447
53448         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
53449         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
53450
53451 2007-03-25  Bruno Haible  <bruno@clisp.org>
53452
53453         * lib/vasnprintf.c: Include langinfo.h.
53454         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
53455         multithread-safe.
53456         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
53457         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
53458         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53459         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53460         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53461         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53462         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53463         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
53464         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53465         Reported by Simon Josefsson.
53466
53467 2007-03-25  Bruno Haible  <bruno@clisp.org>
53468
53469         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
53470         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
53471         * modules/vasnprintf (Depends-on): Add stdint.
53472
53473 2007-03-25  Bruno Haible  <bruno@clisp.org>
53474
53475         * modules/fpieee: New file.
53476         * m4/fpieee.m4: New file.
53477         * modules/isnan-nolibm (Depends-on): Add fpieee.
53478         * modules/isnanl-nolibm (Depends-on): Add fpieee.
53479         * modules/isnanl (Depends-on): Add fpieee.
53480
53481 2007-03-25  Bruno Haible  <bruno@clisp.org>
53482
53483         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
53484
53485 2007-03-25  Bruno Haible  <bruno@clisp.org>
53486
53487         Avoid test failures on IRIX 6.5.
53488         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
53489         (main): Use it.
53490         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
53491         macros.
53492         (main): Use them.
53493
53494 2007-03-25  Bruno Haible  <bruno@clisp.org>
53495
53496         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
53497         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
53498         exists but doesn't work.
53499         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
53500         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
53501         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
53502         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
53503         math.h.
53504
53505 2007-03-25  Bruno Haible  <bruno@clisp.org>
53506
53507         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
53508         returns inf. Needed on IRIX 6.5.
53509
53510 2007-03-25  Bruno Haible  <bruno@clisp.org>
53511
53512         * tests/test-frexpl.c: Include isnanl-nolibm.h.
53513         (main): Use isnanl instead of x != x idiom.
53514         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
53515
53516         * tests/test-frexp.c: Include isnan.h.
53517         (main): Use isnan instead of x != x idiom.
53518         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
53519
53520 2007-03-25  Bruno Haible  <bruno@clisp.org>
53521
53522         * tests/test-frexp.c (NaN): New function/macro.
53523         (main): Use it instead of 0.0 / 0.0.
53524         * tests/test-isnan.c (NaN): New function/macro.
53525         (main): Use it instead of 0.0 / 0.0.
53526         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
53527         (test_function): Use it instead of 0.0 / 0.0.
53528         * tests/test-vasprintf-posix.c (NaN): New function/macro.
53529         (test_function): Use it instead of 0.0 / 0.0.
53530         * tests/test-snprintf-posix.h (NaN): New function/macro.
53531         (test_function): Use it instead of 0.0 / 0.0.
53532         * tests/test-sprintf-posix.h (NaN): New function/macro.
53533         (test_function): Use it instead of 0.0 / 0.0.
53534         * tests/test-fprintf-posix.h (NaN): New function/macro.
53535         (test_function): Use it instead of 0.0 / 0.0.
53536         * tests/test-printf-posix.h (NaN): New function/macro.
53537         (test_function): Use it instead of 0.0 / 0.0.
53538
53539         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
53540
53541 2007-03-25  Bruno Haible  <bruno@clisp.org>
53542
53543         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
53544
53545 2007-03-25  Bruno Haible  <bruno@clisp.org>
53546
53547         * lib/regexec.c (merge_state_with_log): Make static.
53548
53549 2007-03-25  Bruno Haible  <bruno@clisp.org>
53550
53551         * lib/trigl.c (kernel_rem_pio2): Make static.
53552
53553 2007-03-25  Bruno Haible  <bruno@clisp.org>
53554
53555         * lib/sincosl.c (sincosl_table): Make static.
53556
53557 2007-03-25  Bruno Haible  <bruno@clisp.org>
53558
53559         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
53560         if the compiler does not support C99.
53561
53562 2007-03-25  Bruno Haible  <bruno@clisp.org>
53563
53564         * modules/time (Makefile.am): Ensure all rule action lines start with a
53565         tab.
53566
53567 2007-03-24  Bruno Haible  <bruno@clisp.org>
53568
53569         * modules/tsearch-tests: New file.
53570         * tests/test-tsearch.sh: New file.
53571         * tests/test-tsearch.c: New file, mostly copied from glibc.
53572
53573         * modules/search-tests: New file.
53574         * tests/test-search.c: New file.
53575
53576         * modules/search: New file.
53577         * lib/search_.h: New file, incorporating lib/tsearch.h.
53578         * m4/search_h.m4: New file.
53579         * lib/tsearch.h: Remove file.
53580         * lib/tsearch.c: Include search.h instead of tsearch.h.
53581         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
53582         HAVE_TSEARCH.
53583         * modules/tsearch (Files): Remove lib/tsearch.h.
53584         (Depends-on): Add search.
53585         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
53586         (Include): Change tsearch.h into search.h.
53587
53588 2007-03-24  Bruno Haible  <bruno@clisp.org>
53589
53590         * modules/fpucw: New file.
53591         * lib/fpucw.h: New file.
53592         * lib/frexp.c: Include fpucw.h.
53593         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
53594         (FUNC): Use them.
53595         * lib/printf-frexp.c: Include fpucw.h.
53596         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
53597         (FUNC): Use them.
53598         * lib/vasnprintf.c: Include fpucw.h.
53599         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
53600         'long double' calculations.
53601         * tests/test-frexpl.c: Include fpucw.h.
53602         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
53603         * tests/test-printf-frexpl.c: Include fpucw.h.
53604         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
53605         * modules/frexpl (Depends-on): Add fpucw.
53606         * modules/printf-frexpl (Depends-on): Likewise.
53607         * modules/fprintf-posix (Depends-on): Likewise.
53608         * modules/snprintf-posix (Depends-on): Likewise.
53609         * modules/sprintf-posix (Depends-on): Likewise.
53610         * modules/vasnprintf-posix (Depends-on): Likewise.
53611         * modules/vasprintf-posix (Depends-on): Likewise.
53612         * modules/vfprintf-posix (Depends-on): Likewise.
53613         * modules/vsnprintf-posix (Depends-on): Likewise.
53614         * modules/vsprintf-posix (Depends-on): Likewise.
53615         * modules/frexpl-tests (Depends-on): Likewise.
53616         * modules/printf-frexpl-tests (Depends-on): Likewise.
53617
53618 2007-03-24  Bruno Haible  <bruno@clisp.org>
53619
53620         * lib/float+.h: New file.
53621         * lib/isnan.c: Include float+.h.
53622         (SIZE): New macro.
53623         (FUNC): Compare only SIZE bytes of the value.
53624         * lib/vasnprintf.c: Include float+.h.
53625         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
53626         SIZEOF_LDBL or SIZEOF_DBL bytes.
53627         * modules/isnan-nolibm (Files): Add lib/float+.h.
53628         * modules/isnanl-nolibm (Files): Add lib/float+.h.
53629         * modules/isnanl (Files): Add lib/float+.h.
53630         * modules/vasnprintf (Files): Add lib/float+.h.
53631
53632 2007-03-24  Bruno Haible  <bruno@clisp.org>
53633
53634         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
53635         include isnanl-nolibm.h.
53636
53637 2007-03-24  Bruno Haible  <bruno@clisp.org>
53638
53639         * tests/test-read-file.c (main): Don't produce spurious output for
53640         expected situations. Make the test fail if it encountered unexpected
53641         results.
53642
53643 2007-03-24  Bruno Haible  <bruno@clisp.org>
53644
53645         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
53646         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
53647
53648 2007-03-24  Bruno Haible  <bruno@clisp.org>
53649
53650         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
53651
53652 2007-03-24  Bruno Haible  <bruno@clisp.org>
53653
53654         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
53655         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
53656
53657         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
53658         * modules/utf8-ucs4: Turn into a symbolic link to module
53659         unistr/u8-mbtouc.
53660
53661         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
53662         utf8-ucs4-unsafe.
53663         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
53664         unistr/u8-mbtouc-unsafe.
53665
53666         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
53667         * modules/utf16-ucs4: Turn into a symbolic link to module
53668         unistr/u16-mbtouc.
53669
53670         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
53671         utf16-ucs4-unsafe.
53672         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
53673         unistr/u16-mbtouc-unsafe.
53674
53675         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
53676         * modules/ucs4-utf8: Turn into a symbolic link to module
53677         unistr/u8-ubtomb.
53678
53679         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
53680         * modules/ucs4-utf16: Turn into a symbolic link to module
53681         unistr/u16-ubtomb.
53682
53683 2007-03-24  Bruno Haible  <bruno@clisp.org>
53684
53685         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
53686         Enable the function only if HAVE_INLINE.
53687         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
53688         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
53689         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
53690         Enable the function only if HAVE_INLINE.
53691         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
53692         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
53693         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
53694         Enable the function only if HAVE_INLINE.
53695         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
53696         Enable the function only if HAVE_INLINE.
53697         * modules/utf8-ucs4: Update.
53698         * modules/utf8-ucs4-unsafe: Update.
53699         * modules/utf16-ucs4: Update.
53700         * modules/utf16-ucs4-unsafe: Update.
53701         * modules/ucs4-utf8: Update.
53702         * modules/ucs4-utf16: Update.
53703
53704 2007-03-24  Bruno Haible  <bruno@clisp.org>
53705
53706         * lib/utf8-ucs4.h: Remove file.
53707         * lib/utf8-ucs4-unsafe.h: Remove file.
53708         * lib/utf16-ucs4.h: Remove file.
53709         * lib/utf16-ucs4-unsafe.h: Remove file.
53710         * lib/ucs4-utf8.h: Remove file.
53711         * lib/ucs4-utf16.h: Remove file.
53712         * lib/unistr.h: Include their previous contents.
53713         * m4/utf-ucs4.m4: Remove file.
53714         * m4/ucs4-utf.m4: Remove file.
53715         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
53716         (Depends-on): Add unistr/base.
53717         (configure.ac): Remove gl_UTF_UCS4.
53718         (Makefile.am): Update.
53719         (Include): Change to unistr.h.
53720         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
53721         (Depends-on): Add unistr/base.
53722         (configure.ac): Remove gl_UTF_UCS4.
53723         (Makefile.am): Update.
53724         (Include): Change to unistr.h.
53725         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
53726         (Depends-on): Add unistr/base.
53727         (configure.ac): Remove gl_UTF_UCS4.
53728         (Makefile.am): Update.
53729         (Include): Change to unistr.h.
53730         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
53731         (Depends-on): Add unistr/base.
53732         (configure.ac): Remove gl_UTF_UCS4.
53733         (Makefile.am): Update.
53734         (Include): Change to unistr.h.
53735         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
53736         (Depends-on): Add unistr/base.
53737         (configure.ac): Remove gl_UCS4_UTF.
53738         (Makefile.am): Update.
53739         (Include): Change to unistr.h.
53740         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
53741         (Depends-on): Add unistr/base.
53742         (configure.ac): Remove gl_UCS4_UTF.
53743         (Makefile.am): Update.
53744         (Include): Change to unistr.h.
53745         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
53746         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
53747         utf8-ucs4-unsafe.h.
53748         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
53749         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
53750         utf16-ucs4-unsafe.h.
53751         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
53752         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
53753         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
53754         * lib/unistr/u8-strchr.c: Likewise.
53755         * lib/unistr/u8-strrchr.c: Likewise.
53756         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
53757         * lib/unistr/u16-strchr.c: Likewise.
53758         * lib/unistr/u16-strrchr.c: Likewise.
53759         * lib/striconveh.c: Update.
53760         * lib/linebreak.c: Update.
53761
53762 2007-03-24  Bruno Haible  <bruno@clisp.org>
53763
53764         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
53765         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
53766
53767 2007-03-22  Bruno Haible  <bruno@clisp.org>
53768
53769         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
53770
53771 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53772
53773         * MODULES.html.sh (File system functions): New module write-any-file.
53774         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
53775         * m4/write-any-file.m4: New files.
53776
53777 2007-03-23  Eric Blake  <ebb9@byu.net>
53778
53779         * gnulib-tool: Rearrange space-tab sequences, since some editors
53780         like to eat them.
53781
53782 2007-03-23  Eric Blake  <ebb9@byu.net>
53783
53784         * lib/version-etc.c (version_etc_va): Update license wording to
53785         be more concise.  Recommended by Richard Stallman.
53786
53787 2007-03-22  Bruno Haible  <bruno@clisp.org>
53788
53789         * lib/poll.c (MSG_PEEK): New fallback definition.
53790
53791 2007-03-22  Bruno Haible  <bruno@clisp.org>
53792
53793         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
53794         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
53795         (main): Update.
53796         Fixes a compilation error on BeOS.
53797
53798 2007-03-22  Bruno Haible  <bruno@clisp.org>
53799
53800         * modules/frexpl-tests: New file.
53801         * tests/test-frexpl.c: New file.
53802
53803         * modules/frexpl: New file.
53804         * m4/frexpl.m4: New file.
53805         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
53806         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
53807         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
53808         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
53809         (Depends-on): Add frexpl. Remove isnanl-nolibm.
53810         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
53811
53812 2007-03-22  Bruno Haible  <bruno@clisp.org>
53813
53814         * lib/frexpl.c: Share code with lib/frexp.c.
53815         * modules/mathl (Files): Add lib/frexp.c.
53816         (Depends-on): Add isnanl-nolibm.
53817
53818 2007-03-22  Bruno Haible  <bruno@clisp.org>
53819
53820         * modules/printf-frexp (Files): Add m4/frexp.m4.
53821         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
53822         only if the found frexp function actually works.
53823
53824 2007-03-22  Bruno Haible  <bruno@clisp.org>
53825
53826         * lib/frexp.c: Remove older implementation that uses divisions.
53827
53828 2007-03-21  Bruno Haible  <bruno@clisp.org>
53829
53830         * modules/frexp-tests: New file.
53831         * tests/test-frexp.c: New file.
53832
53833         * modules/frexp: New file.
53834         * lib/frexp.c: New file.
53835         * m4/frexp.m4: New file.
53836         * lib/math_.h (frexp): New declaration.
53837         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
53838         REPLACE_FREXP.
53839         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
53840
53841 2007-03-21  Bruno Haible  <bruno@clisp.org>
53842
53843         * modules/isnanl-tests: New file.
53844         * tests/test-isnanl.c: New file.
53845
53846         * modules/isnanl: New file.
53847         * lib/isnanl.h: New file.
53848         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
53849         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
53850         gl_FUNC_ISNANL_WORKS.
53851         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
53852         New macros.
53853
53854 2007-03-21  Bruno Haible  <bruno@clisp.org>
53855
53856         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
53857         lib/isnanl.h.
53858         (Include): Update.
53859         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
53860         * lib/vasnprintf.c: Update.
53861         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
53862         tests/test-isnanl.h, remove tests/test-isnanl.c.
53863         (Makefile.am): Update.
53864         * tests/test-isnanl-nolibm.c: New file.
53865         * tests/test-isnanl.h: New file.
53866         * tests/test-isnanl.c: Remove file.
53867
53868 2007-03-21  Jim Meyering  <jim@meyering.net>
53869
53870         When trying to open ".", treat ESTALE like EACCES.
53871         * lib/savewd.c (savewd_save): Resort to forking not just upon
53872         failure with EACCES, but also when errno is ESTALE.
53873
53874 2007-03-20  Bruno Haible  <bruno@clisp.org>
53875
53876         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
53877         Needed on AIX 5.1. Reported by Matthew Woehlke.
53878
53879 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53880
53881         Suggestions by Bruno Haible:
53882         * lib/acl-internal.h: Include "gettext.h" rather than rolling
53883         our own.
53884         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
53885         * modules/acl (Depends-on): Add gettext.
53886
53887 2007-03-19  Bruno Haible  <bruno@clisp.org>
53888
53889         * modules/iconvme: Remove file.
53890         * lib/iconvme.h: Remove file.
53891         * lib/iconvme.c: Remove file.
53892         * m4/iconvme.m4: Remove file.
53893
53894 2007-03-19  Bruno Haible  <bruno@clisp.org>
53895
53896         * doc/relocatable-maint.texi: Break long shell script line.
53897         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
53898
53899 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53900
53901         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
53902         handle file_has_acl.
53903         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
53904         * lib/acl.c: Move header inclusions and related macro defns into
53905         lib/acl-internal.h.
53906         (S_ISLNK): Remove defn, since that's now done for us.
53907         (file_has_acl): Move to lib/file-has-acl.c.
53908         Call acl_trivial if available.  This is the crucial part of the fix.
53909         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
53910         shared within the library.  Rewrite a bit, partly to make it compatible
53911         with the GNU coding style.
53912         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
53913         Remove unnecessary double-quotes.
53914         Don't test for acl_to_text; the build will catch that.
53915         Replace acl_entries if it doesn't exist and it is needed.
53916         Check for -lsec and acl_trivial (as used on Solaris 10).
53917         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
53918         lib/file-has-acl.c.
53919         (Depends-on): Add sys_stat, for S_ISLNK.
53920
53921 2007-03-19  Ben Pfaff  <blp@gnu.org>
53922
53923         * doc/gnulib.texi: Fix typos.
53924         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
53925
53926 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53927
53928         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
53929         If size is zero here, buf must be zero.
53930
53931 2007-03-19  Simon Josefsson  <simon@josefsson.org>
53932
53933         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
53934         <bruno@clisp.org>.
53935
53936 2007-03-18  Bruno Haible  <bruno@clisp.org>
53937
53938         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
53939         Suggested by Eric Blake.
53940
53941 2007-03-18  Ben Pfaff  <blp@gnu.org>
53942
53943         * doc/relocatable.texi: Recommend using as prefix a directory
53944         that does not exist and will never be created.  Based on
53945         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
53946         and others.
53947
53948 2007-03-17  Bruno Haible  <bruno@clisp.org>
53949
53950         * lib/fchownat.c: Include lchown.h.
53951
53952 2007-03-17  Bruno Haible  <bruno@clisp.org>
53953
53954         Fix endless loop when the given allocated size was > INT_MAX.
53955         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
53956         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
53957         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
53958         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
53959         * lib/sprintf.c (sprintf): Likewise.
53960
53961 2007-03-17  Bruno Haible  <bruno@clisp.org>
53962
53963         * tests/test-argp-2.sh (func_compare): Output a context diff.
53964
53965 2007-03-17  Bruno Haible  <bruno@clisp.org>
53966
53967         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
53968         locale's decimal-point character.
53969
53970 2007-03-17  Bruno Haible  <bruno@clisp.org>
53971
53972         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
53973         before comparing it. Needed because on some platforms (e.g. x86) a
53974         'long double' occupies less bytes than sizeof (long double).
53975
53976 2007-03-17  Bruno Haible  <bruno@clisp.org>
53977
53978         * tests/test-crc.c (main): Make printf statements 64-bit clean.
53979         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
53980         * tests/test-getaddrinfo.c (simple): Likewise.
53981         * tests/test-read-file.c (main): Likewise.
53982
53983 2007-03-17  Bruno Haible  <bruno@clisp.org>
53984
53985         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
53986
53987 2007-03-17  Bruno Haible  <bruno@clisp.org>
53988
53989         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
53990         unused variable.
53991
53992 2007-03-17  Bruno Haible  <bruno@clisp.org>
53993
53994         * tests/test-c-strcasecmp.c: Include c-strcase.h.
53995         * tests/test-c-strncasecmp.c: Likewise.
53996
53997 2007-03-17  Bruno Haible  <bruno@clisp.org>
53998
53999         * modules/stdlib (Depends-on): Add unistd.
54000         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
54001         Needed for MacOS X 10.3.
54002
54003 2007-03-17  Bruno Haible  <bruno@clisp.org>
54004
54005         * lib/unistr/u-strdup.h: Include <stdlib.h>.
54006
54007 2007-03-17  Bruno Haible  <bruno@clisp.org>
54008
54009         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
54010
54011 2007-03-17  Bruno Haible  <bruno@clisp.org>
54012
54013         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
54014         to reflect files copied from gnulib (with or without modifications).
54015         Suggested by Jim Meyering.
54016
54017 2007-03-17  Eric Blake  <ebb9@byu.net>
54018
54019         * NEWS: Document stdlib change from 2007-02-18.
54020
54021 2007-03-17  Jim Meyering  <jim@meyering.net>
54022
54023         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
54024         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
54025         someone uses a name containing shell meta-characters.
54026         Reported by Alfred M. Szmidt.
54027
54028         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
54029
54030 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54031
54032         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
54033         and copy gettext configuration files only if configure.ac contains
54034         a use of AM_GNU_GETTEXT_VERSION.
54035
54036 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54037
54038         * build-aux/bootstrap (gnulib_name): New variable.
54039         (gnulib_tool_options): Use it.
54040
54041 2007-03-13  Simon Josefsson  <simon@josefsson.org>
54042
54043         * tests/test-des.c: Use new namespace.
54044
54045 2007-03-15  Bruno Haible  <bruno@clisp.org>
54046
54047         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
54048         Reported by James Youngman <jay@gnu.org>.
54049
54050 2007-03-15  Bruno Haible  <bruno@clisp.org>
54051
54052         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
54053         declared prototype. Needed with cc on OSF/1 5.1.
54054
54055 2007-03-15  Bruno Haible  <bruno@clisp.org>
54056
54057         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
54058         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
54059         (struct gl_list_implementation): Add dispose_fn argument to the
54060         'create_empty', 'create' methods.
54061         (struct gl_list_impl_base): Add field 'dispose_fn'.
54062         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
54063         argument.
54064         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
54065         dispose_fn argument.
54066         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
54067         dispose_fn on the dropped values.
54068         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
54069         dispose_fn argument.
54070         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
54071         dropped values.
54072         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
54073         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54074         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
54075         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54076         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
54077         argument.
54078         (gl_tree_list_free): Call dispose_fn on the dropped values.
54079         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
54080         the dropped values.
54081         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
54082         Add dispose_fn argument.
54083         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
54084         Call dispose_fn on the dropped values.
54085         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
54086         Add dispose_fn argument.
54087         (gl_sublist_create): Initialize the 'dispose_fn' field.
54088         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
54089         * tests/test-array_list.c (main): Update.
54090         * tests/test-carray_list.c (main): Update.
54091         * tests/test-avltree_list.c (main): Update.
54092         * tests/test-rbtree_list.c (main): Update.
54093         * tests/test-avltreehash_list.c (main): Update.
54094         * tests/test-rbtreehash_list.c (main): Update.
54095         * tests/test-linked_list.c (main): Update.
54096         * tests/test-linkedhash_list.c (main): Update.
54097         * tests/test-array_oset.c (main): Update.
54098
54099 2007-03-15  Bruno Haible  <bruno@clisp.org>
54100
54101         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
54102         (gl_oset_create_empty): Add dispose_fn argument.
54103         (struct gl_oset_implementation): Add dispose_fn argument to
54104         'create_empty' method.
54105         (struct gl_oset_impl_base): Add dispose_fn field.
54106         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
54107         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
54108         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
54109         values.
54110         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
54111         (gl_tree_oset_free): Call dispose_fn on the dropped values.
54112         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54113         dropped value.
54114         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54115         dropped value.
54116         * tests/test-array_oset.c (main): Update.
54117         * tests/test-avltree_oset.c (main): Update.
54118         * tests/test-rbtree_oset.c (main): Update.
54119         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
54120
54121 2007-03-13  Bruno Haible  <bruno@clisp.org>
54122
54123         * tests/test-stdbool.c (i): Update after last patch.
54124
54125 2007-03-12  Bruno Haible  <bruno@clisp.org>
54126
54127         * lib/quotearg.c: Include <wctype.h> early, before the definition of
54128         the iswprint macro. Needed on Solaris 2.5.1.
54129
54130 2007-03-12  Bruno Haible  <bruno@clisp.org>
54131
54132         * tests/test-printf-frexp.c (main): Declare x as volatile.
54133
54134 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54135
54136         * doc/gnulib.texi (Build robot for gnulib): New section.
54137
54138 2007-03-12  Jim Meyering  <jim@meyering.net>
54139
54140         * build-aux/bootstrap: New file.
54141         * build-aux/bootstrap.conf: New file, from coreutils.
54142
54143 2007-03-11  Bruno Haible  <bruno@clisp.org>
54144
54145         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
54146
54147 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54148
54149         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
54150         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
54151         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
54152
54153 2007-03-11  Bruno Haible  <bruno@clisp.org>
54154
54155         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
54156         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
54157
54158 2007-03-11  Bruno Haible  <bruno@clisp.org>
54159
54160         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
54161         formula. Needed for SunPRO C 5.0.
54162
54163 2007-03-11  Bruno Haible  <bruno@clisp.org>
54164
54165         * modules/long-options (Depends-on): Add getopt.
54166
54167 2007-03-11  Bruno Haible  <bruno@clisp.org>
54168
54169         * modules/modechange (Depends-on): Add stdbool.
54170
54171 2007-03-11  Bruno Haible  <bruno@clisp.org>
54172
54173         * modules/i-ring (Depends-on): Add stdbool.
54174
54175 2007-03-11  Bruno Haible  <bruno@clisp.org>
54176
54177         * modules/gc-des (Depends-on): Add stdbool.
54178
54179 2007-03-11  Bruno Haible  <bruno@clisp.org>
54180
54181         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
54182
54183 2007-03-11  Bruno Haible  <bruno@clisp.org>
54184
54185         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
54186
54187 2007-03-11  Bruno Haible  <bruno@clisp.org>
54188
54189         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
54190
54191 2007-03-11  Bruno Haible  <bruno@clisp.org>
54192
54193         * lib/vasnprintf.c (sprintf): Undefine.
54194
54195 2007-03-11  Bruno Haible  <bruno@clisp.org>
54196
54197         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
54198         initializers in SunPRO C and Compaq C compilers.
54199
54200 2007-03-11  Bruno Haible  <bruno@clisp.org>
54201
54202         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
54203         decrementing code ANSI C compliant.
54204
54205 2007-03-11  Bruno Haible  <bruno@clisp.org>
54206
54207         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
54208         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
54209
54210 2007-03-11  Bruno Haible  <bruno@clisp.org>
54211
54212         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
54213         <stdbool.h> substitute doesn't pass.
54214
54215 2007-03-11  Bruno Haible  <bruno@clisp.org>
54216
54217         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
54218
54219 2007-03-11  Bruno Haible  <bruno@clisp.org>
54220
54221         * gnulib-tool (func_create_megatestdir): Create also an autobuild
54222         script, for submission to autobuild.josefsson.org.
54223
54224 2007-03-10  Bruno Haible  <bruno@clisp.org>
54225
54226         * modules/canonicalize-lgpl-tests: New file.
54227         * tests/test-canonicalize-lgpl.sh: New file.
54228         * tests/test-canonicalize-lgpl.c: New file.
54229
54230         * modules/c-strcase-tests: New file.
54231         * tests/test-c-strcase.sh: New file.
54232         * tests/test-c-strcasecmp.c: New file.
54233         * tests/test-c-strncasecmp.c: New file.
54234
54235         * modules/atexit-tests: New file.
54236         * tests/test-atexit.sh: New file.
54237         * tests/test-atexit.c: New file.
54238
54239 2007-03-10  Bruno Haible  <bruno@clisp.org>
54240
54241         * tests/test-binary-io.sh: Use temporary filenames that are not so
54242         likely to clash with those of other tests (in a parallel make).
54243         * tests/test-binary-io.c: Likewise.
54244
54245 2007-03-10  Bruno Haible  <bruno@clisp.org>
54246
54247         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
54248         fallback; use #error instead.
54249         Suggested by Simon Josefsson.
54250
54251 2007-03-10  Bruno Haible  <bruno@clisp.org>
54252
54253         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
54254         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
54255         first and the last.
54256
54257 2007-03-10  Bruno Haible  <bruno@clisp.org>
54258
54259         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
54260
54261 2007-03-10  Bruno Haible  <bruno@clisp.org>
54262
54263         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
54264         "make distcheck".
54265         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
54266         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
54267         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
54268
54269 2007-03-10  Bruno Haible  <bruno@clisp.org>
54270
54271         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
54272         variable.
54273         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
54274         variable.
54275
54276 2007-03-09  Eric Blake  <ebb9@byu.net>
54277         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
54278
54279         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
54280         types are not being provided by gnulib.
54281         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
54282         types are supported.
54283
54284 2007-03-10  Bruno Haible  <bruno@clisp.org>
54285
54286         * lib/stdio_.h (__attribute__): New macro.
54287         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
54288         vsprintf): Specify __attribute__ __format__ for GCC.
54289         Suggested by Eric Blake.
54290
54291 2007-03-09  Bruno Haible  <bruno@clisp.org>
54292
54293         * modules/printf-posix-tests: New file.
54294         * tests/test-printf-posix.sh: New file.
54295         * tests/test-printf-posix.c: New file.
54296
54297         * modules/printf-posix: New file.
54298         * lib/printf.c: New file.
54299         * m4/printf-posix-rpl.m4: New file.
54300         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
54301         REPLACE_PRINTF.
54302         * lib/stdio_.h (printf): New declaration.
54303         (format, __format__, ____printf____, ____scanf____, ____strftime____,
54304         ____strfmon____): New macros.
54305         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
54306         REPLACE_PRINTF.
54307
54308 2007-03-09  Bruno Haible  <bruno@clisp.org>
54309
54310         * tests/test-vasnprintf-posix2.sh: New file.
54311         * tests/test-vasnprintf-posix2.c: New file.
54312         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
54313         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
54314         (Makefile.am): Activate test-vasnprintf-posix2.sh.
54315
54316         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
54317         a locale dependent decimal point, rather than always '.'.
54318
54319 2007-03-09  Eric Blake  <ebb9@byu.net>
54320
54321         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
54322         spite of platforms like Tandem/NSK that define it to -1.
54323
54324 2007-03-08  Bruno Haible  <bruno@clisp.org>
54325
54326         * modules/vprintf-posix-tests: New file.
54327         * tests/test-vprintf-posix.sh: New file.
54328         * tests/test-vprintf-posix.c: New file.
54329         * tests/test-printf-posix.h: New file.
54330
54331         * modules/vprintf-posix: New file.
54332         * lib/vprintf.c: New file.
54333         * m4/vprintf-posix.m4: New file.
54334         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
54335         REPLACE_VPRINTF.
54336         * lib/stdio_.h (vprintf): New declaration.
54337         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
54338         REPLACE_VPRINTF.
54339
54340 2007-03-08  Bruno Haible  <bruno@clisp.org>
54341
54342         * modules/fprintf-posix-tests: New file.
54343         * tests/test-fprintf-posix.sh: New file.
54344         * tests/test-fprintf-posix.c: New file.
54345
54346         * modules/fprintf-posix: New file.
54347         * lib/fprintf.c: New file.
54348         * m4/fprintf-posix.m4: New file.
54349         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
54350         REPLACE_FPRINTF.
54351         * lib/stdio_.h (fprintf): New declaration.
54352         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
54353         REPLACE_FPRINTF.
54354
54355 2007-03-08  Bruno Haible  <bruno@clisp.org>
54356
54357         * modules/vfprintf-posix-tests: New file.
54358         * tests/test-vfprintf-posix.sh: New file.
54359         * tests/test-vfprintf-posix.c: New file.
54360         * tests/test-fprintf-posix.h: New file.
54361         * tests/test-fprintf-posix.out: New file.
54362
54363         * modules/vfprintf-posix: New file.
54364         * lib/vfprintf.c: New file.
54365         * m4/vfprintf-posix.m4: New file.
54366         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
54367         REPLACE_VFPRINTF.
54368         * lib/stdio_.h (vfprintf): New declaration.
54369         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
54370         REPLACE_VFPRINTF.
54371
54372 2007-03-08  Bruno Haible  <bruno@clisp.org>
54373
54374         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
54375
54376 2007-03-08  Bruno Haible  <bruno@clisp.org>
54377
54378         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
54379         instead of 'expr' invocations.
54380         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54381         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54382         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54383         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54384         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54385         Suggested by Paul Eggert.
54386
54387 2007-03-08  Bruno Haible  <bruno@clisp.org>
54388
54389         * modules/fseterr-tests: New file.
54390         * tests/test-fseterr.c: New file.
54391
54392         * modules/fseterr: New file.
54393         * lib/fseterr.h: New file.
54394         * lib/fseterr.c: New file.
54395
54396 2007-03-08  Bruno Haible  <bruno@clisp.org>
54397
54398         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
54399         * lib/getopt_.h: Likewise.
54400         * lib/mbswidth.h: Likewise.
54401         * lib/setenv.h: Likewise.
54402         * lib/vasnprintf.h: Likewise.
54403         * lib/vasprintf.h: Likewise.
54404         * lib/verror.h: Likewise.
54405         * lib/xsetenv.h: Likewise.
54406         * lib/xvasprintf.h: Likewise.
54407
54408 2007-03-08  Jim Meyering  <jim@meyering.net>
54409
54410         * users.txt: Add parted.
54411
54412         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
54413
54414 2007-03-07  Bruno Haible  <bruno@clisp.org>
54415
54416         * m4/printf.m4: Make the shell script snippets copy&pastable.
54417
54418 2007-03-02  Bruno Haible  <bruno@clisp.org>
54419
54420         * lib/netinet_in_.h: New file.
54421         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
54422         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
54423         * modules/netinet_in (Files): Add lib/netinet_in_.h.
54424         (Depends-on): Add absolute-header.
54425         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
54426         into netinet/in.h.
54427
54428 2007-03-03  Bruno Haible  <bruno@clisp.org>
54429
54430         * lib/sys_select_.h: New file.
54431         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
54432         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
54433         * modules/sys_select (Files): Add lib/sys_select_.h.
54434         (Depends-on): Add absolute-header.
54435         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
54436         into sys/select.h.
54437
54438 2007-03-02  Bruno Haible  <bruno@clisp.org>
54439
54440         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
54441         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
54442         values.
54443         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
54444         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
54445         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
54446         * modules/sys_socket (Depends-on): Add absolute-header.
54447         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
54448         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
54449         (Include): Remove requirement of inclusion of <sys/types.h>.
54450
54451 2007-03-02  Bruno Haible  <bruno@clisp.org>
54452
54453         * lib/byteswap_.h (bswap_32): Fix formula.
54454
54455 2007-03-06  Bruno Haible  <bruno@clisp.org>
54456
54457         * modules/sprintf-posix-tests: New file.
54458         * tests/test-sprintf-posix.c: New file.
54459
54460         * modules/sprintf-posix: New file.
54461         * lib/sprintf.c: New file.
54462         * m4/sprintf-posix.m4: New file.
54463         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
54464         REPLACE_SPRINTF.
54465         * lib/stdio_.h (sprintf): New declaration.
54466         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
54467         REPLACE_SPRINTF.
54468
54469 2007-03-06  Bruno Haible  <bruno@clisp.org>
54470
54471         * modules/vsprintf-posix-tests: New file.
54472         * tests/test-vsprintf-posix.c: New file.
54473         * tests/test-sprintf-posix.h: New file.
54474
54475         * modules/vsprintf-posix: New file.
54476         * lib/vsprintf.c: New file.
54477         * m4/vsprintf-posix.m4: New file.
54478         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
54479         REPLACE_VSPRINTF.
54480         * lib/stdio_.h (vsprintf): New declaration.
54481         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
54482         REPLACE_VSPRINTF.
54483
54484 2007-03-06  Bruno Haible  <bruno@clisp.org>
54485
54486         * modules/vsnprintf (Depend-on): Remove minmax.
54487
54488 2007-03-06  Bruno Haible  <bruno@clisp.org>
54489
54490         * modules/snprintf-posix-tests: New file.
54491         * tests/test-snprintf-posix.c: New file.
54492
54493         * modules/snprintf-posix: New file.
54494         * m4/snprintf-posix.m4: New file.
54495         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
54496         gl_FUNC_SNPRINTF.
54497         (gl_FUNC_SNPRINTF): Invoke it.
54498         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
54499         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
54500         is set.
54501         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
54502
54503 2007-03-06  Bruno Haible  <bruno@clisp.org>
54504
54505         * modules/vsnprintf-posix-tests: New file.
54506         * tests/test-vsnprintf-posix.c: New file.
54507         * tests/test-snprintf-posix.h: New file.
54508
54509         * modules/vsnprintf-posix: New file.
54510         * m4/vsnprintf-posix.m4: New file.
54511         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
54512         gl_FUNC_VSNPRINTF.
54513         (gl_FUNC_VSNPRINTF): Invoke it.
54514         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
54515         * lib/stdio_.h (vsnprintf): Define as a replacement if
54516         REPLACE_VSNPRINTF is set.
54517         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
54518
54519 2007-03-06  Bruno Haible  <bruno@clisp.org>
54520
54521         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
54522         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
54523
54524 2007-03-06  Bruno Haible  <bruno@clisp.org>
54525
54526         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
54527         (asinl): Declare also if HAVE_DECL_ASINL is set.
54528         (atanl): Declare also if HAVE_DECL_ATANL is set.
54529         (ceill): Declare also if HAVE_DECL_CEILL is set.
54530         (cosl): Declare also if HAVE_DECL_COSL is set.
54531         (expl): Declare also if HAVE_DECL_EXPL is set.
54532         (floorl): Declare also if HAVE_DECL_FLOORL is set.
54533         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
54534         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
54535         (logl): Declare also if HAVE_DECL_LOGL is set.
54536         (sinl): Declare also if HAVE_DECL_SINL is set.
54537         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
54538         (tanl): Declare also if HAVE_DECL_TANL is set.
54539         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
54540         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
54541         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
54542         declaration of frexpl, ldexpl.
54543         * modules/printf-frexpl (Depends-on): Add math.
54544         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
54545
54546 2007-03-05  Bruno Haible  <bruno@clisp.org>
54547
54548         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
54549         frexpl and ldexpl are declared.
54550         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
54551
54552 2007-03-05  Bruno Haible  <bruno@clisp.org>
54553
54554         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
54555         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
54556
54557 2007-03-05  Bruno Haible  <bruno@clisp.org>
54558
54559         * lib/stdio_.h: Include <stddef.h>.
54560
54561 2007-03-05  Bruno Haible  <bruno@clisp.org>
54562
54563         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
54564
54565 2007-03-05  Bruno Haible  <bruno@clisp.org>
54566
54567         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
54568         NetBSD 4, from Ralf Wildenhues.
54569
54570 2007-03-04  Bruno Haible  <bruno@clisp.org>
54571
54572         * lib/vasprintf.h: Update #if logic for the case when the functions
54573         exist but are overridden.
54574
54575 2007-03-04  Bruno Haible  <bruno@clisp.org>
54576
54577         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
54578         implementations: glibc-2.4 and MacOS X 10.3.
54579         * tests/test-vasnprintf-posix.c (test_function): Test also the case
54580         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
54581         * tests/test-vasprintf-posix.c (test_function): Likewise.
54582
54583 2007-03-04  Bruno Haible  <bruno@clisp.org>
54584
54585         * modules/vasprintf-posix-tests: New file.
54586         * tests/test-vasprintf-posix.c: New file.
54587
54588         * modules/vasprintf-posix: New file.
54589         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
54590         defined.
54591         * m4/vasprintf-posix.m4: New file.
54592         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
54593         gl_FUNC_VASPRINTF.
54594         (gl_FUNC_VASPRINTF): Invoke it.
54595         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
54596         here.
54597         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
54598
54599 2007-03-04  Bruno Haible  <bruno@clisp.org>
54600
54601         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
54602         REPLACE_GETTIMEOFDAY.
54603         * modules/sys_time (Makefile.am): Likewise.
54604         * m4/sys_time_h.m4: Likewise.
54605         * m4/gettimeofday.m4: Likewise.
54606
54607 2007-03-04  Bruno Haible  <bruno@clisp.org>
54608
54609         * modules/vasnprintf-posix-tests: New file.
54610         * tests/test-vasnprintf-posix.c: New file.
54611
54612         * modules/vasnprintf-posix: New file.
54613         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
54614         printf-frexpl.h.
54615         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
54616         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
54617         REPLACE_VASNPRINTF is defined.
54618         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
54619         gl_FUNC_VASNPRINTF.
54620         (gl_FUNC_VASNPRINTF): Invoke it.
54621         * m4/vasnprintf-posix.m4: New file.
54622         * m4/printf.m4: New file.
54623
54624 2007-03-04  Bruno Haible  <bruno@clisp.org>
54625
54626         Compile progreloc.c only if --enable-relocatable is specified.
54627         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
54628         if --enable-relocatable was specified.
54629         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
54630         lib_SOURCES.
54631
54632 2007-03-04  Jim Meyering  <jim@meyering.net>
54633
54634         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
54635         Use it consistently, rather than enumerating errno constants.
54636
54637 2007-03-04  Bruno Haible  <bruno@clisp.org>
54638
54639         * modules/xvasprintf-tests: New file.
54640         * tests/test-xvasprintf.c: New file.
54641
54642         * modules/vasprintf-tests: New file.
54643         * tests/test-vasprintf.c: New file.
54644
54645         * modules/vasnprintf-tests: New file.
54646         * tests/test-vasnprintf.c: New file.
54647
54648         * modules/vsnprintf-tests: New file.
54649         * tests/test-vsnprintf.c: New file.
54650
54651         * modules/snprintf-tests: New file.
54652         * tests/test-snprintf.c: New file.
54653
54654 2007-03-04  Bruno Haible  <bruno@clisp.org>
54655
54656         Compile relocatable.c only if --enable-relocatable is specified.
54657         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
54658         gl_RELOCATABLE_LIBRARY.
54659         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
54660         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
54661         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
54662         gl_RELOCATABLE_LIBRARY.
54663         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
54664         (Makefile.am): Remove lib_SOURCES.
54665         * modules/relocatable-lib-lgpl (configure.ac): Invoke
54666         gl_RELOCATABLE_LIBRARY.
54667         (Makefile.am): Remove lib_SOURCES.
54668         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
54669         always.
54670         * modules/relocatable-prog-wrapper (configure.ac): Invoke
54671         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
54672
54673 2007-03-04  Bruno Haible  <bruno@clisp.org>
54674
54675         * modules/argmatch-tests: New file.
54676         * tests/test-argmatch.c: New file.
54677
54678         * tests/test-allocsa.c (main): Halve the number of loop runs.
54679
54680         * modules/alloca-opt-tests: New file.
54681         * tests/test-alloca-opt.c: New file.
54682
54683 2007-03-04  Jim Meyering  <jim@meyering.net>
54684
54685         Work around difference between Linux ACLs and Solaris 10 ZFS.
54686         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
54687         for EINVAL.
54688
54689 2007-03-03  Bruno Haible  <bruno@clisp.org>
54690
54691         * modules/relocatable-prog (Depends-on): Add back progreloc's
54692         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
54693
54694 2007-03-03  Bruno Haible  <bruno@clisp.org>
54695
54696         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
54697         * modules/relocatable-lib: New file.
54698
54699 2007-03-03  Bruno Haible  <bruno@clisp.org>
54700
54701         * modules/relocatable-prog: Renamed from modules/relocatable.
54702         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
54703
54704 2007-03-03  Bruno Haible  <bruno@clisp.org>
54705
54706         * modules/relocatable-script (Files): Add doc/relocatable.texi,
54707         m4/relocatable-lib.m4.
54708         (Depends-on): Remove 'relocatable'.
54709         (configure.ac): Add gl_RELOCATABLE_NOP.
54710
54711 2007-03-03  Bruno Haible  <bruno@clisp.org>
54712
54713         * modules/relocatable-prog-wrapper: New file.
54714         * modules/relocatable (Depends-on): Add it. Remove all other
54715         dependencies except progname.
54716         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
54717
54718         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
54719         (gl_FUNC_STRERROR): Nop.
54720         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
54721
54722         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
54723         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
54724
54725         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
54726         (gl_FUNC_READLINK): Update.
54727
54728         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
54729
54730 2007-03-03  Bruno Haible  <bruno@clisp.org>
54731
54732         * lib/xreadlink.c: Include <unistd.h> unconditionally.
54733         * modules/xreadlink (Depends-on): Add unistd.
54734         * modules/xreadlink-with-size (Depends-on): Likewise.
54735
54736 2007-03-03  Bruno Haible  <bruno@clisp.org>
54737
54738         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
54739         extracted from gt_FUNC_SETENV.
54740         (gt_FUNC_SETENV): Remove macro.
54741         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
54742         remove gt_FUNC_SETENV.
54743
54744 2007-03-03  Bruno Haible  <bruno@clisp.org>
54745
54746         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
54747         ENABLE_RELOCATABLE here.
54748         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
54749
54750 2007-03-03  Bruno Haible  <bruno@clisp.org>
54751
54752         * modules/rbtreehash-list-tests (Depends-on): Add progname.
54753         * tests/test-rbtreehash_list.c: Include progname.h.
54754         (main): Call set_program_name.
54755
54756         * modules/rbtree-oset-tests (Depends-on): Add progname.
54757         * tests/test-rbtree_oset.c: Include progname.h.
54758         (main): Call set_program_name.
54759
54760         * modules/rbtree-list-tests (Depends-on): Add progname.
54761         * tests/test-rbtree_list.c: Include progname.h.
54762         (main): Call set_program_name.
54763
54764         * modules/linked-list-tests (Depends-on): Add progname.
54765         * tests/test-linked_list.c: Include progname.h.
54766         (main): Call set_program_name.
54767
54768 2007-03-03  Bruno Haible  <bruno@clisp.org>
54769
54770         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
54771         All uses of __restrict changed to _Restrict_.
54772         * lib/glob_.h (__restrict): Remove macro.
54773
54774 2007-03-02  Bruno Haible  <bruno@clisp.org>
54775
54776         * modules/gettext (configure.ac): Require gettext infrastructure
54777         from version 0.16.1.
54778
54779 2007-03-02  Bruno Haible  <bruno@clisp.org>
54780
54781         * modules/linkedhash-list-tests (Depends-on): Add progname.
54782         * tests/test-linkedhash_list.c: Include progname.h.
54783         (main): Call set_program_name.
54784
54785         * modules/carray-list-tests (Depends-on): Add progname.
54786         * tests/test-carray_list.c: Include progname.h.
54787         (main): Call set_program_name.
54788
54789         * modules/avltreehash-list-tests (Depends-on): Add progname.
54790         * tests/test-avltreehash_list.c: Include progname.h.
54791         (main): Call set_program_name.
54792
54793         * modules/avltree-oset-tests (Depends-on): Add progname.
54794         * tests/test-avltree_oset.c: Include progname.h.
54795         (main): Call set_program_name.
54796
54797         * modules/avltree-list-tests (Depends-on): Add progname.
54798         * tests/test-avltree_list.c: Include progname.h.
54799         (main): Call set_program_name.
54800
54801         * modules/array-oset-tests (Depends-on): Add progname.
54802         * tests/test-array_oset.c: Include progname.h.
54803         (main): Call set_program_name.
54804
54805         * modules/array-list-tests (Depends-on): Add progname.
54806         * tests/test-array_list.c: Include progname.h.
54807         (main): Call set_program_name.
54808
54809         * modules/argp-tests (Depends-on): Add progname.
54810         * tests/test-argp.c: Include argp.h first. Include progname.h.
54811         (main): Call set_program_name.
54812
54813 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
54814
54815         * doc/gnulib-tool.texi (Initial import): Reword description of
54816         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
54817         limited effect even if defined after the first system include.
54818
54819 2007-03-01  Bruno Haible  <bruno@clisp.org>
54820
54821         * build-aux/config.libpath: Update to libtool-1.5.22.
54822         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54823
54824 2007-03-01  Bruno Haible  <bruno@clisp.org>
54825
54826         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
54827         foo_CFLAGS.
54828         Reported by Ralf Wildenhues.
54829
54830 2007-03-01  Bruno Haible  <bruno@clisp.org>
54831
54832         * build-aux/install-reloc: Remove object files left over by some
54833         compilers.
54834         Reported by Ralf Wildenhues.
54835
54836 2007-03-01  Bruno Haible  <bruno@clisp.org>
54837
54838         * build-aux/install-reloc: Break long lines.
54839
54840 2007-03-01  Bruno Haible  <bruno@clisp.org>
54841
54842         * doc/relocatable.texi: Document that it may not work on OpenBSD.
54843         Reported by Ralf Wildenhues.
54844
54845 2007-03-01  Bruno Haible  <bruno@clisp.org>
54846
54847         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
54848         include ordering constraints.
54849
54850 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54851
54852         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
54853         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
54854         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
54855         as another example.
54856         * lib/time_.h: Fix misspelling.
54857         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54858         Require gl_HEADER_TIME_H_DEFAULTS.
54859         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
54860         * m4/time_r.m4 (gl_TIME_R): Likewise.
54861         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
54862
54863 2007-03-01  Bruno Haible  <bruno@clisp.org>
54864
54865         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
54866         * m4/utimens.m4 (gl_UTIMENS): Likewise.
54867
54868 2007-03-01  Jim Meyering  <jim@meyering.net>
54869
54870         * modules/xreadlink (Maintainer): Add my name.
54871         * modules/xreadlink-with-size (Depends-on): Alphabetize.
54872
54873 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
54874             Bruno Haible  <bruno@clisp.org>
54875
54876         * build-aux/install-reloc: Compile also c-ctype.c.
54877         * build-aux/relocatable.sh.in: New file.
54878         * doc/relocatable.texi: New file.
54879         * doc/relocatable-maint.texi: New file.
54880         * doc/gnulib.texi: Include relocatable-maint.texi.
54881         * lib/progreloc.c: Include unistd.h unconditionally.
54882         * lib/relocwrapper.c: Include unistd.h unconditionally.
54883         Include c-ctype.h.
54884         (add_dotbin): Use c_tolower.
54885         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
54886         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
54887         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
54888         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
54889         to m4/relocatable-lib.m4.
54890         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
54891         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
54892         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
54893         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
54894         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
54895         * modules/relocatable: New file.
54896         * modules/relocatable-lib: New file.
54897         * modules/relocatable-script: New file.
54898
54899 2007-02-28  Bruno Haible  <bruno@clisp.org>
54900
54901         Import --enable-relocatable infrastructure.
54902         * build-aux/config.libpath: New file, from GNU gettext.
54903         * build-aux/install-reloc: New file, from GNU gettext.
54904         * build-aux/reloc-ldflags: New file, from GNU gettext.
54905         * lib/relocatable.h: New file, from GNU gettext.
54906         * lib/relocatable.c: New file, from GNU gettext.
54907         * lib/relocwrapper.c: New file, from GNU gettext.
54908         * m4/relocatable.m4: New file, from GNU gettext.
54909
54910 2007-02-28  Bruno Haible  <bruno@clisp.org>
54911
54912         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
54913
54914         * modules/xreadlink: New file, from GNU gettext with modifications.
54915         * lib/xreadlink.c: New file, from GNU gettext.
54916         * lib/xreadlink.h: Add comments.
54917         (xreadlink): New declaration.
54918
54919         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
54920         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
54921         lib/xreadlink-with-size.c.
54922         (configure.ac): Remove gl_XREADLINK invocation.
54923         (Makefile.am): Augment lib_SOURCES.
54924         * m4/xreadlink.m4: Remove file.
54925         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
54926         (xreadlink_with_size): Renamed from xreadink.
54927         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
54928         * modules/canonicalize (Depends-on): Replace xreadlink with
54929         xreadlink-with-size.
54930         * lib/canonicalize.c (canonicalize_filename_mode): Update.
54931
54932 2007-02-25  Jim Meyering  <jim@meyering.net>
54933
54934         * build-aux/announce-gen: When complaining about excess arguments,
54935         list them.
54936
54937 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
54938
54939         * README: Document signed integer overflow situation more
54940         accurately.
54941
54942 2007-02-25  Bruno Haible  <bruno@clisp.org>
54943
54944         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
54945         'a' or 'A' conversion.
54946
54947 2007-02-25  Bruno Haible  <bruno@clisp.org>
54948
54949         * modules/filename: Renamed from modules/pathname.
54950         (Files): Replace lib/pathname.h with lib/filename.h. Replace
54951         lib/concatpath.c with lib/concat-filename.c.
54952         (Makefile.am): Update.
54953         (Include): Replace pathname.h with filename.h.
54954         * lib/filename.h: Renamed from lib/pathname.h.
54955         (concatenated_filename): Renamed from concatenated_pathname.
54956         * lib/concat-filename.c: Renamed from lib/concatpath.c.
54957         (concatenated_filename): Renamed from concatenated_pathname.
54958         * lib/findprog.c: Include filename.h instead of pathname.h.
54959         (find_in_path): Update.
54960         * lib/javacomp.c: Include filename.h instead of pathname.h.
54961         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
54962         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
54963         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
54964         is_oldgcj_14_13_usable, is_javac_usable): Update.
54965         * lib/javaexec.c: Include filename.h instead of pathname.h.
54966         (execute_java_class): Update.
54967         * modules/findprog: Update.
54968         * modules/javacomp: Update.
54969         * modules/javaexec: Update.
54970         * MODULES.html.sh (File system functions): Add 'filename', remove
54971         'pathname'.
54972
54973 2007-02-25  Bruno Haible  <bruno@clisp.org>
54974
54975         * modules/printf-frexpl-tests: New file.
54976         * tests/test-printf-frexpl.c: New file.
54977
54978         * modules/printf-frexpl: New file.
54979         * lib/printf-frexpl.h: New file.
54980         * lib/printf-frexpl.c: New file.
54981         * m4/printf-frexpl.m4: New file.
54982
54983 2007-02-25  Bruno Haible  <bruno@clisp.org>
54984
54985         * modules/printf-frexp-tests: New file.
54986         * tests/test-printf-frexp.c: New file.
54987
54988         * modules/printf-frexp: New file.
54989         * lib/printf-frexp.h: New file.
54990         * lib/printf-frexp.c: New file.
54991         * m4/printf-frexp.m4: New file.
54992
54993 2007-02-25  Bruno Haible  <bruno@clisp.org>
54994
54995         Assume automake >= 1.10 for the tests.
54996         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
54997         * modules/arctwo-tests: Likewise.
54998         * modules/argp-tests: Likewise.
54999         * modules/avltree-list-tests: Likewise.
55000         * modules/avltree-oset-tests: Likewise.
55001         * modules/avltreehash-list-tests: Likewise.
55002         * modules/carray-list-tests: Likewise.
55003         * modules/crc-tests: Likewise.
55004         * modules/des-tests: Likewise.
55005         * modules/gc-arcfour-tests: Likewise.
55006         * modules/gc-arctwo-tests: Likewise.
55007         * modules/gc-des-tests: Likewise.
55008         * modules/gc-hmac-md5-tests: Likewise.
55009         * modules/gc-hmac-sha1-tests: Likewise.
55010         * modules/gc-md2-tests: Likewise.
55011         * modules/gc-md4-tests: Likewise.
55012         * modules/gc-md5-tests: Likewise.
55013         * modules/gc-pbkdf2-sha1-tests: Likewise.
55014         * modules/gc-rijndael-tests: Likewise.
55015         * modules/gc-sha1-tests: Likewise.
55016         * modules/gc-tests: Likewise.
55017         * modules/getaddrinfo-tests: Likewise.
55018         * modules/hmac-md5-tests: Likewise.
55019         * modules/hmac-sha1-tests: Likewise.
55020         * modules/linked-list-tests: Likewise.
55021         * modules/linkedhash-list-tests: Likewise.
55022         * modules/lock-tests: Likewise.
55023         * modules/md2-tests: Likewise.
55024         * modules/md4-tests: Likewise.
55025         * modules/md5-tests: Likewise.
55026         * modules/rbtree-list-tests: Likewise.
55027         * modules/rbtree-oset-tests: Likewise.
55028         * modules/rbtreehash-list-tests: Likewise.
55029         * modules/read-file-tests: Likewise.
55030         * modules/rijndael-tests: Likewise.
55031         * modules/stdint-tests: Likewise.
55032         * modules/tls-tests: Likewise.
55033
55034 2007-02-24  Bruno Haible  <bruno@clisp.org>
55035
55036         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
55037         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
55038         function; instead check whether isnan with a double argument links.
55039         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
55040         function; instead check whether isnan with a 'long double' argument
55041         links.
55042         Reported by Eric Blake <ebb9@byu.net>.
55043
55044 2007-02-24  Bruno Haible  <bruno@clisp.org>
55045
55046         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
55047         defined.
55048         * lib/isnanl.c: Remove all code. Just include isnan.c.
55049         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
55050
55051 2007-02-25  Jim Meyering  <jim@meyering.net>
55052
55053         Avoid conflicting types for 'unsetenv' on FreeBSD.
55054         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
55055         conflicting with FreeBSD's (5.0 and 6.1) function declaration
55056         in stdlib.h.
55057
55058 2007-02-24  Bruno Haible  <bruno@clisp.org>
55059
55060         * modules/isnanl-nolibm-tests: New file.
55061         * tests/test-isnanl.c: New file.
55062
55063         * modules/isnanl-nolibm: New file.
55064         * lib/isnanl.h: New file.
55065         * lib/isnanl.c: New file.
55066         * m4/isnanl.m4: New file.
55067
55068 2007-02-24  Bruno Haible  <bruno@clisp.org>
55069
55070         * modules/isnan-nolibm-tests: New file.
55071         * tests/test-isnan.c: New file.
55072
55073         * modules/isnan-nolibm: New file.
55074         * lib/isnan.h: New file.
55075         * lib/isnan.c: New file.
55076         * m4/isnan.m4: New file.
55077
55078 2007-02-24  Bruno Haible  <bruno@clisp.org>
55079
55080         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
55081         assume that an exponent fits in 20 bits.
55082
55083 2007-02-24  Jim Meyering  <jim@meyering.net>
55084
55085         * m4/regex.m4: Update the description of the configure-time option,
55086         --without-included-regex, to state accurately what the defaults are,
55087         and perhaps to give people an idea why using this option is risky.
55088
55089 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55090
55091         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
55092         loops on small arguments.  This attempts to avoid the problem
55093         Bruno Haible reported for AIX 4.3.2 in
55094         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
55095
55096 2007-02-23  Bruno Haible  <bruno@clisp.org>
55097
55098         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
55099         Needed for help2man.
55100
55101 2007-02-23  Karl Berry  <karl@gnu.org>
55102
55103         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
55104         exists, foo.h should be cvs-ignored, not committed.
55105
55106 2007-02-23  Eric Blake  <ebb9@byu.net>
55107
55108         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
55109         * lib/stat-time.h (includes): Likewise.
55110         * lib/utimecmp.c (includes): Likewise.
55111         * lib/utimens.h (includes): Likewise.
55112         * lib/getdate.y (includes): Also include "timespec.h" for use
55113         internal to the module.
55114         * modules/utimens (Depends-on): Revert yesterday's patch.
55115         * modules/nanosleep (Depends-on): Add missing dependency.
55116
55117 2007-02-22  Bruno Haible  <bruno@clisp.org>
55118
55119         * lib/glob.c: Don't include getlogin_r.h.
55120
55121 2007-02-22  Jim Meyering  <jim@meyering.net>
55122
55123         * modules/utimens (Depends-on): Add timespec, required for
55124         utimens.h's inclusion of timespec.h.
55125
55126 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
55127
55128         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
55129         long unreadable paths in GNU/Linux.  Problem reported by Andreas
55130         Schwab in
55131         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
55132         I'll try to think of a better way to fix the Solaris problem.
55133
55134         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
55135         like glibc; on Solaris 10, it fails with errno == EINVAL.
55136         POSIX says the behavior is unspecified if the first argument is NULL,
55137         so play it safe and never pass NULL to the system getcwd.
55138
55139 2007-02-21  Jim Meyering  <jim@meyering.net>
55140
55141         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
55142         of gettimeofday.  It would conflict with the one now always
55143         provided via sys_time_.h.  Reported by Matthew Woehlke, as
55144         an IRIX 6.5 build failure.
55145
55146 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
55147
55148         Minor fixups to port to Solaris 10 with Sun C 5.8.
55149         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
55150         * modules/getcwd (Depends-on): Add dirfd.
55151         * lib/putenv.c (putenv): #undef it.
55152         (rpl_putenv): New decl.
55153         (malloc, free): Include <stdlib.h> rather than prototyping separately.
55154
55155 2007-02-20  Bruno Haible  <bruno@clisp.org>
55156
55157         * modules/stdio-tests: New file.
55158         * tests/test-stdio.c: New file.
55159
55160         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
55161         (Depends-on): Add stdio.
55162         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55163         (Include): Use <stdio.h> instead of vsnprintf.h.
55164         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55165         HAVE_DECL_VSNPRINTF.
55166         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
55167
55168         * modules/snprintf (Files): Remove lib/snprintf.h.
55169         (Depends-on): Add stdio.
55170         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55171         (Include): Use <stdio.h> instead of snprintf.h.
55172         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55173         HAVE_DECL_SNPRINTF.
55174         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
55175         * lib/getaddrinfo.c: Likewise.
55176
55177         * modules/stdio: New file.
55178         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
55179         * lib/snprintf.h: Remove file.
55180         * lib/vsnprintf.h: Remove file.
55181         * lib/.cppi-disable: Remove snprintf.h.
55182         * m4/stdio_h.m4: New file.
55183         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
55184
55185 2007-02-20  Jim Meyering  <jim@meyering.net>
55186
55187         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
55188         used by e.g., mingw.  From Bruno Haible.
55189
55190 2007-02-19  Bruno Haible  <bruno@clisp.org>
55191
55192         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
55193         warnings.
55194         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55195
55196 2007-02-19  Bruno Haible  <bruno@clisp.org>
55197
55198         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
55199         from mingw users.
55200
55201 2007-02-19  Bruno Haible  <bruno@clisp.org>
55202
55203         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
55204         warnings.
55205         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
55206
55207 2007-02-19  Jim Meyering  <jim@meyering.net>
55208
55209         Don't use FD after a successful "fdopendir (fd)".
55210         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
55211         Reset it by calling dirfd on the just-obtained DIR*.
55212
55213         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
55214         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
55215
55216 2007-02-18  Bruno Haible  <bruno@clisp.org>
55217
55218         * lib/readlink.c: Include <unistd.h>.
55219         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
55220         HAVE_READLINK.
55221         * modules/readlink (Depends-on): Add unistd.
55222         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55223         (Include): Add <unistd.h>.
55224
55225         * lib/getlogin_r.h: Remove file.
55226         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
55227         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
55228         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
55229         HAVE_DECL_GETLOGIN_R.
55230         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
55231         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55232         (Include): Use <unistd.h> instead of getlogin_r.h.
55233
55234         * lib/getcwd.h: Remove file.
55235         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
55236         * lib/xgetcwd.c: Likewise.
55237         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
55238         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
55239         * modules/getcwd (Files): Remove lib/getcwd.h.
55240         (Depends-on): Add unistd.
55241         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55242         (Include): Use <unistd.h> instad of getcwd.h.
55243
55244         * lib/ftruncate.c: Include <unistd.h> first.
55245         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
55246         Set HAVE_FTRUNCATE.
55247         * modules/ftruncate (Depends-on): Add unistd.
55248         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55249
55250         * lib/fchdir.c: Include <unistd.h> first.
55251         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
55252         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
55253         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
55254         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55255         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
55256
55257         * lib/dup2.c: Include <unistd.h> first.
55258         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
55259         HAVE_DUP2.
55260         * modules/dup2 (Depends-on): Add unistd.
55261         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55262
55263         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
55264         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
55265         REPLACE_CHOWN. Don't define chown as a macro here.
55266         * modules/chown (Depends-on): Add unistd.
55267         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55268
55269         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
55270         Add definition for GL_LINK_WARNING.
55271         (chown, dup2): New declarations.
55272         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
55273         link warning.
55274         (ftruncate): New declaration.
55275         (getcwd): New declaration, taken from old getcwd.h.
55276         (getlogin_r): New declaration, taken from old getlogin_r.h.
55277         (readlink): New declaration.
55278         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
55279         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
55280         (gl_PREREQ_UNISTD): Remove macro.
55281         (gl_UNISTD_MODULE_INDICATOR): New macro.
55282         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
55283         many new variables. Don't set UNISTD_H.
55284         * modules/unistd (Description): Change.
55285         (Depends-on): Add link-warning.
55286         (configure.ac): Update.
55287         (Makefile.am): Create unistd.h always. Substitute many new variables
55288         into it.
55289
55290 2007-02-18  Bruno Haible  <bruno@clisp.org>
55291
55292         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
55293         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
55294         HAVE_GETSUBOPT.
55295         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
55296         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
55297         * lib/getsubopt.h: Remove file.
55298         * modules/getsubopt (Files): Remove lib/getsubopt.h.
55299         (Depends-on): Add stdlib.
55300         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55301         (Includes): Use <stdlib.h> instead of getsubopt.h.
55302         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
55303         Set HAVE_GETSUBOPT.
55304         * lib/getsubopt.c: Don't include getsubopt.h.
55305
55306 2007-02-18  Bruno Haible  <bruno@clisp.org>
55307
55308         * modules/fchdir (Depends-on): Add dup2.
55309
55310 2007-02-18  Bruno Haible  <bruno@clisp.org>
55311
55312         * lib/stdlib_.h: Handle glibc's special invocation convention
55313         specially.
55314
55315 2007-02-18  Bruno Haible  <bruno@clisp.org>
55316
55317         * modules/stdlib-tests: New file.
55318         * tests/test-stdlib.c: New file.
55319
55320         * modules/mkstemp (Files): Remove lib/mkstemp.h.
55321         (Depends-on): Add stdlib.
55322         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55323         (Includes): Use <stdlib.h> instead of mkstemp.h.
55324         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55325         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
55326         * lib/mkstemp.c: Don't include mkstemp.h.
55327         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
55328         * lib/stdlib--.h: Don't include mkstemp.h.
55329
55330         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
55331         (Depends-on): Add stdlib.
55332         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55333         (Includes): Use <stdlib.h> instead of mkdtemp.h.
55334         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55335         HAVE_MKDTEMP.
55336         * lib/mkdtemp.c: Don't include mkdtemp.h.
55337         * lib/clean-temp.c: Don't include mkdtemp.h.
55338
55339         * modules/exit (Files): Remove lib/exit.h.
55340         (Depends-on): Add stdlib.
55341         (Makefile.am): Remove lib_SOURCES.
55342         (Include): Use <stdlib.h> instead of exit.h.
55343         * lib/argmatch.c: Don't include exit.h.
55344         * lib/execute.c: Likewise.
55345         * lib/pagealign_alloc.c: Likewise.
55346         * lib/pipe.c: Likewise.
55347         * lib/wait-process.c: Likewise.
55348         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
55349         * lib/exitfail.c: Likewise.
55350         * lib/savewd.c: Likewise.
55351         * lib/xsetenv.c: Likewise.
55352
55353         * modules/stdlib: New file.
55354         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
55355         and extra comments about mkstemp().
55356         * lib/exit.h: Remove file.
55357         * lib/mkdtemp.h: Remove file.
55358         * lib/mkstemp.h: Remove file.
55359         * m4/stdlib_h.m4: New file.
55360         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
55361
55362 2007-02-18  Bruno Haible  <bruno@clisp.org>
55363
55364         * modules/math-tests: New file.
55365         * tests/test-math.c: New file.
55366
55367         * modules/math: New file.
55368         * modules/mathl (Files): Remove lib/mathl.h.
55369         (Depends-on): Add math.
55370         (Makefile.am): Don't mention mathl.h.
55371         (Include): Use <math.h> instead of mathl.h.
55372         * lib/math_.h: New file.
55373         * lib/mathl.h: Remove file.
55374         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
55375         mathl.h.
55376         * lib/asinl.c: Likewise.
55377         * lib/atanl.c: Likewise.
55378         * lib/ceill.c: Likewise.
55379         * lib/cosl.c: Likewise.
55380         * lib/expl.c: Likewise.
55381         * lib/floorl.c: Likewise.
55382         * lib/frexpl.c: Likewise.
55383         * lib/ldexpl.c: Likewise.
55384         * lib/logl.c: Likewise.
55385         * lib/sincosl.c: Likewise.
55386         * lib/sinl.c: Likewise.
55387         * lib/sqrtl.c: Likewise.
55388         * lib/tanl.c: Likewise.
55389         * lib/trigl.c: Likewise.
55390         * m4/math_h.m4: New file.
55391         * MODULES.html.sh (Mathematics): Add math.
55392
55393 2007-02-17  Bruno Haible  <bruno@clisp.org>
55394
55395         * modules/wctype-tests: New file.
55396         * tests/test-wctype.c: New file.
55397
55398         * modules/wchar-tests: New file.
55399         * tests/test-wchar.c: New file.
55400
55401         * modules/unistd-tests: New file.
55402         * tests/test-unistd.c: New file.
55403
55404         * modules/time-tests: New file.
55405         * tests/test-time.c: New file.
55406
55407         * modules/sysexits-tests: New file.
55408         * tests/test-sysexits.c: New file.
55409
55410         * modules/sys_time-tests: New file.
55411         * tests/test-sys_time.c: New file.
55412
55413         * modules/sys_stat-tests: New file.
55414         * tests/test-sys_stat.c: New file.
55415
55416         * modules/sys_socket-tests: New file.
55417         * tests/test-sys_socket.c: New file.
55418
55419         * modules/sys_select-tests: New file.
55420         * tests/test-sys_select.c: New file.
55421
55422         * modules/string-tests: New file.
55423         * tests/test-string.c: New file.
55424
55425         * modules/stdbool-tests: New file.
55426         * tests/test-stdbool.c: New file.
55427
55428         * modules/netinet_in-tests: New file.
55429         * tests/test-netinet_in.c: New file.
55430
55431         * modules/inttypes-tests: New file.
55432         * tests/test-inttypes.c: New file.
55433
55434         * modules/fcntl-tests: New file.
55435         * tests/test-fcntl.c: New file.
55436
55437         * modules/byteswap-tests: New file.
55438         * tests/test-byteswap.c: New file.
55439
55440         * modules/arpa_inet-tests: New file.
55441         * tests/test-arpa_inet.c: New file.
55442
55443 2007-02-17  Bruno Haible  <bruno@clisp.org>
55444
55445         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
55446         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
55447         if the corresponding module is not enabled. Emit link warnings if
55448         the function is used nevertheless.
55449         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
55450         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
55451         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
55452         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
55453         * modules/inttypes (Depends-on): Add link-warning.
55454         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55455         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
55456         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
55457         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
55458         * modules/imaxdiv (configure.ac): Likewise.
55459         * modules/strtoimax (configure.ac): Likewise.
55460         * modules/strtoumax (configure.ac): Likewise.
55461
55462 2007-02-17  Bruno Haible  <bruno@clisp.org>
55463
55464         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
55465         gl_STRING_MODULE_INDICATOR_DEFAULTS.
55466         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
55467         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
55468
55469 2007-02-17  Bruno Haible  <bruno@clisp.org>
55470
55471         * modules/link-warning: New file.
55472         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
55473         * lib/string_.h (GL_LINK_WARNING): Remove definition.
55474         * modules/string (Depends-on): Add link-warning.
55475         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55476         string.h.
55477         * MODULES.html.sh (Support for building libraries and executables): Add
55478         link-warning.
55479
55480 2007-02-17  Bruno Haible  <bruno@clisp.org>
55481
55482         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
55483         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
55484         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
55485         long lines.
55486
55487 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
55488             Bruno Haible  <bruno@clisp.org>
55489
55490         * modules/tmpfile: New file.
55491         * lib/tmpfile.c: New file.
55492         * m4/tmpfile.m4: New file.
55493         * MODULES.html.sh (func_all_modules): New section "Input/output".
55494
55495 2007-02-15  Bruno Haible  <bruno@clisp.org>
55496
55497         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
55498         (supports_delete_on_close): New function.
55499         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
55500
55501 2007-02-14  Bruno Haible  <bruno@clisp.org>
55502
55503         * modules/mbspcasecmp-tests: New file.
55504         * tests/test-mbspcasecmp.sh: New file.
55505         * tests/test-mbspcasecmp.c: New file.
55506
55507         New module mbspcasecmp.
55508         * modules/mbspcasecmp: New file.
55509         * lib/mbspcasecmp.c: New file.
55510         * lib/string_.h (strncasecmp): Change warning message.
55511         (mbspcasecmp): New declaration.
55512         * m4/mbspcasecmp.m4: New file.
55513         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55514         GNULIB_MBSPCASECMP.
55515         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
55516         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
55517
55518 2007-02-14  Bruno Haible  <bruno@clisp.org>
55519
55520         * modules/mbsncasecmp-tests: New file.
55521         * tests/test-mbsncasecmp.sh: New file.
55522         * tests/test-mbsncasecmp.c: New file.
55523
55524         New module mbsncasecmp.
55525         * modules/mbsncasecmp: New file.
55526         * lib/mbsncasecmp.c: New file.
55527         * lib/string_.h (mbsncasecmp): New declaration.
55528         * m4/mbsncasecmp.m4: New file.
55529         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55530         GNULIB_MBSNCASECMP.
55531         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
55532         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
55533
55534 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
55535
55536         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
55537         Verify that it doesn't overlap with our flags.
55538         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
55539         do not have the desired effect in multibyte locales; instead, use
55540         mbscasecmp.
55541         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
55542         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
55543         we don't require GNU fnmatch ourselves (if our users require it, they
55544         should do so explicitly).
55545
55546         Fix regex code so it doesn't rely on strcasecmp.
55547         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
55548         Otherwise, include gnulib's langinfo.h.
55549         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
55550         undesirable behavior in non-C locales.  Instead, rely on localecharset.
55551         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
55552         * modules/regex (FILES): Remove m4/codeset.m4.
55553         (Depends-on): Add localcharset.  Remove strcase.
55554
55555 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55556
55557         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
55558         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
55559
55560 2007-02-13  Bruno Haible  <bruno@clisp.org>
55561
55562         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
55563         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55564
55565 2007-02-12  Bruno Haible  <bruno@clisp.org>
55566
55567         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
55568         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
55569         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
55570         time warning rather than a link error.
55571
55572 2007-02-12  Bruno Haible  <bruno@clisp.org>
55573
55574         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
55575         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55576         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55577
55578 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55579
55580         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
55581         args, not 2.
55582
55583 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55584
55585         New module 'time', so that apps can include <time.h> as per
55586         POSIX and GNU instead of separate include files like time_r.h
55587         and timegm.h.  This implementation tries out a simpler approach
55588         for replacing decls in standard include files (as compared to
55589         the string module), somewhat as an experiment.
55590
55591         * config/srclist.txt: Comment out mktime.c for now.
55592         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
55593         since it doesn't apply any more.  Use generic wording instead.
55594         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
55595         'time'.
55596         * lib/time_.h, m4/time_h.m4, modules/time: New files.
55597         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
55598         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
55599         Don't include <sys/types.h>; no longer needed since we assume C89.
55600         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
55601         * lib/strftime.c: Likewise.
55602         * lib/time_r.c: Likewise.
55603         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
55604         * lib/nanosleep.c: Include <time.h> first, to check interface.
55605         * lib/strptime.c: Likewise.
55606         * lib/time_r.c: Likewise.
55607         * lib/timegm.c: Likewise.
55608         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
55609         needed.
55610         * lib/timegm.c: Don't include timegm.h; no longer needed.
55611         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
55612         time.h now handles any problems in that area.
55613         (struct timespec, nanosleep): Remove; time.h now arranges for these.
55614         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
55615         that time.h defines struct timespec.
55616         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
55617         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
55618         handles that.
55619         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
55620         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
55621         needed.  Set REPLACE_LOCALTIME.
55622         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
55623         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
55624         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
55625         nanosleep; time_h.m4 now does that.  Don't require
55626         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
55627         module handles this now.
55628         * modules/getdate (Depends-on): Remove timespec.  Add time.
55629         * modules/nanosleep (Depends-on): Likewise.
55630         * modules/stat-time (Depends-on): Likewise.
55631         * modules/nanosleep (Include): Include time.h, not timespec.h.
55632         * modules/strptime (Files): Remove lib/strptime.h.
55633         (Depends-on): Add extensions, time.
55634         (Include): Include time.h, not strptime.h.
55635         * modules/time_r (Files): Remove lib/time_r.h.
55636         (Depends-on): Add time.
55637         (Include): Include time.h, not time_r.h.
55638         * modules/timegm: Likewise.
55639         * modules/timespec (Description): Now does timespec-related decls
55640         of our own, instead of struct timespec itself.
55641         (Depends-on): Add time; remove extensions.
55642         (Maintainer): Add self.
55643         * modules/utimecmp (Depends-on): Add time; remove timespec.
55644         * modules/utimens (Depends-on): Likewise.
55645         * modules/xnanosleep (Depends-on): Likewise.
55646
55647 2007-02-11  Bruno Haible  <bruno@clisp.org>
55648
55649         * lib/c-strstr.c: Include allocsa.h.
55650         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55651         * lib/c-strcasestr.c: Include allocsa.h.
55652         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55653         * lib/strcasestr.c: Include allocsa.h.
55654         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55655         * lib/mbsstr.c: Include allocsa.h.
55656         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
55657         allocsa/freesa instead of malloc/free.
55658         * lib/mbscasestr.c: Include allocsa.h.
55659         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
55660         allocsa/freesa instead of malloc/free.
55661         * modules/c-strstr (Depends-on): Add allocsa.
55662         * modules/c-strcasestr (Depends-on): Likewise.
55663         * modules/strcasestr (Depends-on): Likewise.
55664         * modules/mbsstr (Depends-on): Likewise.
55665         * modules/mbscasestr (Depends-on): Likewise.
55666
55667 2007-02-11  Bruno Haible  <bruno@clisp.org>
55668
55669         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
55670
55671         * modules/mbsspn-tests: New file.
55672         * tests/test-mbsspn.sh: New file.
55673         * tests/test-mbsspn.c: New file.
55674
55675 2007-02-11  Bruno Haible  <bruno@clisp.org>
55676
55677         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
55678
55679         * modules/mbspbrk-tests: New file.
55680         * tests/test-mbspbrk.sh: New file.
55681         * tests/test-mbspbrk.c: New file.
55682
55683 2007-02-11  Bruno Haible  <bruno@clisp.org>
55684
55685         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
55686         unneeded cast.
55687
55688         * modules/mbscspn-tests: New file.
55689         * tests/test-mbscspn.sh: New file.
55690         * tests/test-mbscspn.c: New file.
55691
55692 2007-02-11  Bruno Haible  <bruno@clisp.org>
55693
55694         * modules/mbscasecmp-tests: New file.
55695         * tests/test-mbscasecmp.sh: New file.
55696         * tests/test-mbscasecmp.c: New file.
55697
55698 2007-02-11  Bruno Haible  <bruno@clisp.org>
55699
55700         Ensure O(n) worst-case complexity of mbscasestr.
55701         * lib/mbscasestr.c: Include stdbool.h.
55702         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
55703         functions.
55704         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
55705         the bookkeeping indicates that it's worth it.
55706         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
55707
55708         * modules/mbscasestr-tests: New file.
55709         * tests/test-mbscasestr1.c: New file.
55710         * tests/test-mbscasestr2.sh: New file.
55711         * tests/test-mbscasestr2.c: New file.
55712         * tests/test-mbscasestr3.sh: New file.
55713         * tests/test-mbscasestr3.c: New file.
55714         * tests/test-mbscasestr4.sh: New file.
55715         * tests/test-mbscasestr4.c: New file.
55716         * m4/locale-tr.m4: New file.
55717
55718 2007-02-11  Bruno Haible  <bruno@clisp.org>
55719
55720         Ensure O(n) worst-case complexity of mbsstr.
55721         * lib/mbsstr.c: Include stdbool.h.
55722         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
55723         functions.
55724         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
55725         bookkeeping indicates that it's worth it.
55726         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
55727
55728         * modules/mbsstr-tests: New file.
55729         * tests/test-mbsstr1.c: New file.
55730         * tests/test-mbsstr2.sh: New file.
55731         * tests/test-mbsstr2.c: New file.
55732         * tests/test-mbsstr3.sh: New file.
55733         * tests/test-mbsstr3.c: New file.
55734         * m4/locale-fr.m4: New file.
55735
55736 2007-02-11  Bruno Haible  <bruno@clisp.org>
55737
55738         * lib/mbsrchr.c (mbsrchr): Fix bug.
55739
55740         * modules/mbsrchr-tests: New file.
55741         * tests/test-mbsrchr.sh: New file.
55742         * tests/test-mbsrchr.c: New file.
55743
55744 2007-02-11  Bruno Haible  <bruno@clisp.org>
55745
55746         * lib/mbschr.c (mbschr): Fix bug.
55747
55748         * modules/mbschr-tests: New file.
55749         * tests/test-mbschr.sh: New file.
55750         * tests/test-mbschr.c: New file.
55751         * m4/locale-zh.m4: New file.
55752
55753 2007-02-11  Bruno Haible  <bruno@clisp.org>
55754
55755         Support for copying multibyte string iterators.
55756         * lib/mbiter.h: Include <string.h>.
55757         (mbiter_multi_copy): New function.
55758         (mbi_copy): New macro.
55759         * lib/mbuiter.h: Include <string.h>.
55760         (mbuiter_multi_copy): New function.
55761         (mbui_copy): New macro.
55762
55763 2007-02-11  Bruno Haible  <bruno@clisp.org>
55764
55765         New module mbslen.
55766         * modules/mbslen: New file.
55767         * lib/mbslen.c: New file.
55768         * lib/string_.h (mbslen): New declaration.
55769         * m4/mbslen.m4: New file.
55770         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55771         GNULIB_MBSLEN.
55772         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
55773         * MODULES.html.sh (Internationalization functions): Add mbslen.
55774
55775 2007-02-11  Bruno Haible  <bruno@clisp.org>
55776
55777         Ensure O(n) worst-case complexity of strcasestr substitute.
55778         * lib/strcasestr.c: Include stdbool.h.
55779         (knuth_morris_pratt): New function.
55780         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
55781         bookkeeping indicates that it's worth it.
55782         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
55783
55784         * modules/strcasestr-tests: New file.
55785         * tests/test-strcasestr.c: New file.
55786
55787 2007-02-11  Bruno Haible  <bruno@clisp.org>
55788
55789         Ensure O(n) worst-case complexity of c_strcasestr.
55790         * lib/c-strcasestr.c: Include stdbool.h, string.h.
55791         (knuth_morris_pratt): New function.
55792         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
55793         the bookkeeping indicates that it's worth it.
55794         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
55795
55796         * modules/c-strcasestr-tests: New file.
55797         * tests/test-c-strcasestr.c: New file.
55798
55799 2007-02-11  Bruno Haible  <bruno@clisp.org>
55800
55801         Ensure O(n) worst-case complexity of c_strstr.
55802         * lib/c-strstr.c: Include stdbool.h, string.h.
55803         (knuth_morris_pratt): New function.
55804         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
55805         bookkeeping indicates that it's worth it.
55806         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
55807
55808         * lib/c-strstr.c: Complete rewrite for maintainability.
55809
55810         * modules/c-strstr-tests: New file.
55811         * tests/test-c-strstr.c: New file.
55812
55813 2007-02-11  Bruno Haible  <bruno@clisp.org>
55814
55815         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
55816         5.2.1 and earlier, whereby \055 was treated just like the range
55817         delimiter '-'.
55818         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55819
55820 2007-02-08  Bruno Haible  <bruno@clisp.org>
55821
55822         * modules/regex (Depends-on): Add stdbool.
55823         Reported by Dalibor Topic <robilad@kaffe.org>.
55824
55825 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
55826
55827         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
55828         Prefer returning from main to exiting from it.
55829         Remove unnecessary parens after sizeof.
55830
55831 2007-02-05  Bruno Haible  <bruno@clisp.org>
55832
55833         New module mbssep.
55834         * modules/mbssep: New file.
55835         * lib/mbssep.c: New file.
55836         * lib/string_.h (strsep): Add a conditional link warning.
55837         (mbssep): New declaration.
55838         * m4/mbssep.m4: New file.
55839         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55840         GNULIB_MBSSEP.
55841         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
55842         * MODULES.html.sh (Internationalization functions): Add mbssep.
55843
55844 2007-02-05  Bruno Haible  <bruno@clisp.org>
55845
55846         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
55847         Optimize search in case of 1 delimiter.
55848
55849 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
55850
55851         * lib/acl.h: Include sys/types.h before sys/acl.h.
55852
55853 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
55854
55855         Merge upstream fix for glibc bugzilla #3957:
55856
55857         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
55858
55859         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
55860         bit for RE_HAT_LISTS_NOT_NEWLINE.
55861         (build_charclass_op): Remove bogus comment.
55862
55863 2007-02-05  Simon Josefsson  <simon@josefsson.org>
55864
55865         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
55866
55867 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55868
55869         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
55870         * lib/memmem.c [!defined _LIBC]: Include config.h.
55871
55872 2007-02-04  Bruno Haible  <bruno@clisp.org>
55873
55874         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
55875         warning message.
55876
55877 2007-02-04  Bruno Haible  <bruno@clisp.org>
55878
55879         New module mbstok_r.
55880         * modules/mbstok_r: New file.
55881         * lib/mbstok_r.c: New file.
55882         * lib/string_.h (strtok_r): Change argument names to match the
55883         comments. Add a conditional link warning.
55884         (mbstok_r): New declaration.
55885         * m4/mbstok_r.m4: New file.
55886         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55887         GNULIB_MBSTOK_R.
55888         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
55889         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
55890
55891 2007-02-04  Bruno Haible  <bruno@clisp.org>
55892
55893         New module mbsspn.
55894         * modules/mbsspn: New file.
55895         * lib/mbsspn.c: New file.
55896         * lib/string_.h (strspn): Add a conditional link warning.
55897         (mbsspn): New declaration.
55898         * m4/mbsspn.m4: New file.
55899         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55900         GNULIB_MBSSPN.
55901         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
55902         * MODULES.html.sh (Internationalization functions): Add mbsspn.
55903
55904 2007-02-04  Bruno Haible  <bruno@clisp.org>
55905
55906         New module mbspbrk.
55907         * modules/mbspbrk: New file.
55908         * lib/mbspbrk.c: New file.
55909         * lib/string_.h (strpbrk): Add a conditional link warning.
55910         (mbspbrk): New declaration.
55911         * m4/mbspbrk.m4: New file.
55912         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55913         GNULIB_MBSPBRK.
55914         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
55915         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
55916
55917 2007-02-04  Bruno Haible  <bruno@clisp.org>
55918
55919         New module mbscspn.
55920         * modules/mbscspn: New file.
55921         * lib/mbscspn.c: New file.
55922         * lib/string_.h (strcspn): Add a conditional link warning.
55923         (mbscspn): New declaration.
55924         * m4/mbscspn.m4: New file.
55925         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55926         GNULIB_MBSCSPN.
55927         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
55928         * MODULES.html.sh (Internationalization functions): Add mbscspn.
55929
55930 2007-02-04  Bruno Haible  <bruno@clisp.org>
55931
55932         New module mbscasestr, reduced goal of strcasestr.
55933         * modules/mbscasestr: New file.
55934         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
55935         (mbscasestr): Renamed from strcasestr.
55936         * lib/strcasestr.c: Don't include mbuiter.h.
55937         (strcasestr): Remove support for multibyte locales.
55938         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
55939         Change the conditional link warning.
55940         (mbscasestr): New declaration.
55941         * m4/mbscasestr.m4: New file.
55942         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
55943         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
55944         REPLACE_STRCASESTR.
55945         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
55946         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55947         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
55948         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
55949         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
55950         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
55951         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
55952         (Depends-on): Remove mbuiter.
55953         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
55954
55955 2007-02-04  Bruno Haible  <bruno@clisp.org>
55956
55957         Simplify handling of strncasecmp.
55958         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
55959         the conditional link warning.
55960         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55961         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
55962         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
55963         * modules/strcase (configure.ac): Don't invoke
55964         gl_STRING_MODULE_INDICATOR.
55965         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
55966
55967 2007-02-04  Bruno Haible  <bruno@clisp.org>
55968
55969         New module mbscasecmp, reduced goal of strcasecmp.
55970         * modules/mbscasecmp: New file.
55971         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
55972         (mbscasecmp): Renamed from strcasecmp.
55973         * lib/strcasecmp.c: Don't include mbuiter.h.
55974         (strcasecmp): Remove support for multibyte locales.
55975         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
55976         Change the conditional link warning.
55977         (mbscasecmp): New declaration.
55978         * m4/mbscasecmp.m4: New file.
55979         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
55980         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
55981         REPLACE_STRCASECMP.
55982         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
55983         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55984         GNULIB_MBSCASECMP.
55985         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
55986         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
55987         * modules/strcase (Files): Remove m4/mbrtowc.m4.
55988         (Depends-on): Remove mbuiter.
55989         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
55990
55991 2007-02-04  Bruno Haible  <bruno@clisp.org>
55992
55993         New module mbsstr. Remove module strstr.
55994         * modules/mbsstr: New file.
55995         * modules/strstr: Remove file.
55996         * lib/mbsstr.c: Renamed from lib/strstr.c.
55997         (mbsstr): Renamed from strstr.
55998         * lib/string_.h (strstr): Remove declaration. Change the conditional
55999         link warning.
56000         (mbsstr): New declaration.
56001         * m4/mbsstr.m4: New file.
56002         * m4/strstr.m4: Remove file.
56003         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
56004         REPLACE_STRSTR.
56005         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
56006         Don't initialize GNULIB_STRSTR.
56007         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
56008         substitute GNULIB_STRSTR and REPLACE_STRSTR.
56009         * MODULES.html.sh (Internationalization functions): Add mbsstr.
56010         (Support for systems lacking ANSI C 89): Remove strstr.
56011
56012 2007-02-04  Bruno Haible  <bruno@clisp.org>
56013
56014         New module mbsrchr.
56015         * modules/mbsrchr: New file.
56016         * lib/mbsrchr.c: New file.
56017         * lib/string_.h (strrchr): Add a conditional link warning.
56018         (mbsrchr): New declaration.
56019         * m4/mbsrchr.m4: New file.
56020         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56021         GNULIB_MBSRCHR.
56022         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
56023         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
56024
56025 2007-02-04  Bruno Haible  <bruno@clisp.org>
56026
56027         New module mbschr.
56028         * modules/mbschr: New file.
56029         * lib/mbschr.c: New file.
56030         * lib/string_.h (strchr): Add a conditional link warning.
56031         (mbschr): New declaration.
56032         * m4/mbschr.m4: New file.
56033         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56034         GNULIB_MBSCHR.
56035         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
56036         * MODULES.html.sh (Internationalization functions): Add mbschr.
56037
56038 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56039
56040         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
56041
56042         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
56043
56044 2007-02-04  Bruno Haible  <bruno@clisp.org>
56045
56046         New module description section 'configure.ac-early'.
56047         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
56048         (func_get_autoconf_early_snippet): New function.
56049         (func_import, func_create_testdir): Use it. Remove special cases for
56050         modules 'extensions' and 'lock'.
56051         * modules/extensions (configure.ac-early): Require
56052         gl_USE_SYSTEM_EXTENSIONS.
56053         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
56054
56055 2007-02-04  Bruno Haible  <bruno@clisp.org>
56056
56057         Make use of gcj-4.3's -fsource and -ftarget option.
56058         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
56059         and if so try the options -fsource and -ftarget.
56060         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
56061         source_version, ftarget_option, target_version arguments.
56062         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
56063         (is_envjavac_oldgcj_14_14_usable): Renamed from
56064         is_envjavac_gcj_14_14_usable.
56065         (is_envjavac_oldgcj_14_13_usable): Renamed from
56066         is_envjavac_gcj_14_13_usable.
56067         (is_gcj_present): Update.
56068         (is_gcj_43, is_gcj43_usable): New functions.
56069         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
56070         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
56071         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
56072         try the options -fsource and -ftarget.
56073
56074 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56075
56076         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
56077         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
56078         larger value.
56079
56080 2007-02-03  Jim Meyering  <jim@meyering.net>
56081
56082         Give tools a better chance to allocate space for very large buffers.
56083         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
56084
56085         Make pwd and readlink work also when run with an unreadable parent dir
56086         on systems with openat support.
56087         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
56088         provided getcwd function, even when we have openat support.
56089         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
56090
56091 2007-02-02  Bruno Haible  <bruno@clisp.org>
56092
56093         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
56094         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
56095         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
56096         portability problems if one of these functions is only used on specific
56097         platforms.
56098         Reported by Paul Eggert.
56099
56100 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
56101
56102         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
56103         is causing more trouble than it's curing.
56104         * lib/regex_internal.h (__mempcpy): Remove.
56105         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
56106         (and make the code a tad smaller to boot).
56107         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
56108
56109 2007-02-02  Jim Meyering  <jim@meyering.net>
56110
56111         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
56112         section, not in the Makefile.am: one.
56113
56114 2007-02-02  Eric Blake  <ebb9@byu.net>
56115
56116         * lib/strchrnul.c: Always include config.h first.
56117
56118         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
56119         gnulib strstr is not necessary here.
56120
56121 2007-02-02  Simon Josefsson  <simon@josefsson.org>
56122
56123         * m4/socklen.m4: Fix typo.
56124
56125 2007-02-02  Eric Blake  <ebb9@byu.net>
56126
56127         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
56128         * modules/netinet_in (Makefile.am): Likewise.
56129
56130 2007-02-01  Bruno Haible  <bruno@clisp.org>
56131
56132         * lib/string_.h (GL_LINK_WARNING): New macro.
56133         (strcasecmp, strstr, strcasestr): If provided by the system,
56134         conditionally define as a macro that leads to a warning instead of to
56135         an error.
56136         (strncasecmp): Conditionally define as a macro that leads to a warning.
56137
56138 2007-02-01  Karl Berry  <karl@gnu.org>
56139
56140         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
56141
56142 2007-02-01  Bruno Haible  <bruno@clisp.org>
56143
56144         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
56145         renamings.
56146
56147 2007-02-01  Eric Blake  <ebb9@byu.net>
56148
56149         * modules/regex (Depends-on): Revert dependence on mempcpy.
56150         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
56151         module's definition of mempcpy.
56152         Reported by Paul Eggert.
56153
56154 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
56155
56156         * lib/string_.h: If the gnulib module XYZ is not present, undefine
56157         the symbol XYZ before redefining it.  This fixes a problem with
56158         programs that don't use XYZ, when compiled on systems that define
56159         XYZ to something else.
56160
56161 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
56162
56163         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
56164         occurs when "mkdir -m foo" creates a setgid directory that is (1)
56165         writeable to group or other and (2) is intended to have a special
56166         mode bit that is set or cleared.  In such a case, the directory
56167         should be neither group- nor other-writeable until the special
56168         mode bits are right.
56169
56170 2007-01-31  Eric Blake  <ebb9@byu.net>
56171
56172         * modules/mountlist (Depends-on): Add strstr.
56173
56174         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
56175         bug.
56176         * modules/string (Makefile.am): Remove redundant replacement.
56177         * modules/regex (Depends-on): Add mempcpy.
56178
56179 2007-01-31  Bruno Haible  <bruno@clisp.org>
56180
56181         New module description field 'Link'.
56182         * gnulib-tool (func_usage): Document --extract-link-directive.
56183         (sed_extract_prog): Recognize 'Link' directive.
56184         (func_get_link_directive): New function.
56185         (func_import): Show summary of link directives.
56186         Handle --extract-link-directive option.
56187         * modules/acl (Link): New section.
56188         * modules/clock-time (Link): New section.
56189         * modules/euidaccess (Link): New section.
56190         * modules/gettext (Link): New section.
56191         * modules/iconv (Link): New section.
56192         * modules/lock (Link): New section.
56193         * modules/nanosleep (Link): New section.
56194         * modules/readline (Link): New section.
56195
56196 2007-01-27  Bruno Haible  <bruno@clisp.org>
56197
56198         Enforce the use of gnulib modules for unportable <string.h> functions.
56199         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
56200         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
56201         (gl_HEADER_STRING_H_BODY): Require it.
56202         * lib/string_.h: If the gnulib module XYZ is not present, redefine
56203         the symbol XYZ to one that gives a link error.
56204         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
56205         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
56206         * modules/mempcpy (configure.ac): Likewise.
56207         * modules/memrchr (configure.ac): Likewise.
56208         * modules/stpcpy (configure.ac): Likewise.
56209         * modules/stpncpy (configure.ac): Likewise.
56210         * modules/strcase (configure.ac): Likewise.
56211         * modules/strcasestr (configure.ac): Likewise.
56212         * modules/strchrnul (configure.ac): Likewise.
56213         * modules/strdup (configure.ac): Likewise.
56214         * modules/strndup (configure.ac): Likewise.
56215         * modules/strnlen (configure.ac): Likewise.
56216         * modules/strpbrk (configure.ac): Likewise.
56217         * modules/strsep (configure.ac): Likewise.
56218         * modules/strstr (configure.ac): Likewise.
56219         * modules/strtok_r (configure.ac): Likewise.
56220
56221 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
56222
56223         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
56224
56225 2007-01-30  Jim Meyering  <jim@meyering.net>
56226
56227         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
56228
56229 2007-01-29  Bruno Haible  <bruno@clisp.org>
56230
56231         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
56232         * lib/execute.c: Likewise.
56233         * lib/pipe.c: Likewise.
56234         * lib/printf-args.h: Likewise.
56235         * lib/printf-args.c: Likewise.
56236         * lib/printf-parse.c: Likewise.
56237         * lib/vasnprintf.c: Likewise.
56238
56239 2007-01-29  Eric Blake  <ebb9@byu.net>
56240
56241         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
56242         declaration.
56243
56244 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
56245
56246         * lib/strptime.h (strptime): Use 'restrict' for args where
56247         POSIX requires this.
56248         * lib/strptime.c (strptime): Likewise.
56249         Change license notice from LGPL to GPL, since gnulib-tool will
56250         change this as needed.
56251         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
56252         defined.
56253         Include "strptime.h" first, to check interface.
56254         Do not #undef _LIBC and _NL_CURRENT.
56255         Do not include <stdlib.h>; no longer needed.
56256         Include "time_r.h" and declare ptime_locale_status
56257         only if _LIBC is not defined.
56258         (__P): Remove unused macro.
56259         (match_string): Bring back glibc version, but use it only if _LIBC
56260         is defined.
56261         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
56262         Remove unnecessary assertion and abort() call.
56263         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
56264         * m4/strptime.m4: Fix serial number comment.
56265         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
56266         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
56267         (Depends-on): Add time_r.
56268
56269 2007-01-29  Bruno Haible  <bruno@clisp.org>
56270
56271         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56272         strptime.
56273         * modules/strptime (Depends-on): Add stdbool.
56274         * lib/strptime.h: Include <time.h> always. Add comments.
56275
56276 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56277
56278         * modules/strptime: New file.
56279         * lib/strptime.h: New file.
56280         * lib/strptime.c: New file.
56281         * m4/strptime.m4: New file.
56282
56283 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56284
56285         * MODULES.html.sh: New module mpsort.
56286         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
56287
56288         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
56289         a circularity problem with HP-UX ia64 reported by Bob Proulx in
56290         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
56291         All uses changed.
56292         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
56293         All uses changed.
56294         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
56295         to _Restrict_.
56296         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
56297         the parameter matches the prototype.
56298
56299 2007-01-28  Jim Meyering  <jim@meyering.net>
56300
56301         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
56302         sys/time.h here, reverting that part of the previous patch:
56303         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
56304
56305 2007-01-28  Bruno Haible  <bruno@clisp.org>
56306
56307         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
56308         value of $(SYS_TIME_H).
56309         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
56310         remove it conditionally, too. [added by Jim Meyering]
56311         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
56312         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
56313         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
56314         GETTIMEOFDAY_REPLACEMENT to 1.
56315
56316 2007-01-28  Bruno Haible  <bruno@clisp.org>
56317
56318         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
56319         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
56320         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
56321         Set UNISTD_H instead of UNISTD_H2.
56322         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
56323
56324 2007-01-28  Bruno Haible  <bruno@clisp.org>
56325
56326         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
56327         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
56328
56329 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56330
56331         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
56332         (func_create_testdir): Ensure C locale for `grep' and `tr'
56333         character ranges.
56334         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
56335         ACLOCAL_AMFLAGS parsing state machine.
56336
56337 2007-01-27  Bruno Haible  <bruno@clisp.org>
56338
56339         * modules/unistr/base: Update.
56340
56341 2007-01-27  Bruno Haible  <bruno@clisp.org>
56342
56343         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
56344         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
56345         * modules/unistr/u32-mbtouc-unsafe: Renamed from
56346         modules/unistr/u32-mbtouc.
56347         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
56348         * lib/unistr.h: Update.
56349         * lib/linebreak.c: Update.
56350         * modules/unistr/u32-mbtouc: Renamed from
56351         modules/unistr/u32-mbtouc-safe.
56352         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
56353         * lib/unistr.h: Update.
56354         * lib/unistr/u32-to-u8.c: Update.
56355         * lib/unistr/u32-to-u16.c: Update.
56356
56357 2007-01-27  Bruno Haible  <bruno@clisp.org>
56358
56359         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
56360         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
56361         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
56362         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
56363         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
56364         * modules/unistr/u16-mbtouc-unsafe: Renamed from
56365         modules/unistr/u16-mbtouc.
56366         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
56367         * lib/unistr.h: Update.
56368         * lib/linebreak.c: Update.
56369         * modules/linebreak: Update.
56370         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
56371         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
56372         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
56373         * modules/unistr/u16-mbtouc: Renamed from
56374         modules/unistr/u16-mbtouc-safe.
56375         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
56376         * lib/unistr.h: Update.
56377         * lib/unistr/u16-to-u8.c: Update.
56378         * modules/unistr/u16-to-u8: Update.
56379         * lib/unistr/u16-to-u32.c: Update.
56380         * modules/unistr/u16-to-u32: Update.
56381
56382 2007-01-27  Bruno Haible  <bruno@clisp.org>
56383
56384         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
56385         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
56386         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
56387         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
56388         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
56389         * modules/unistr/u8-mbtouc-unsafe: Renamed from
56390         modules/unistr/u8-mbtouc.
56391         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
56392         * lib/unistr.h: Update.
56393         * lib/striconveh.c: Update.
56394         * modules/striconveh: Update.
56395         * lib/linebreak.c: Update.
56396         * modules/linebreak: Update.
56397         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
56398         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
56399         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
56400         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
56401         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
56402         * lib/unistr.h: Update.
56403         * lib/striconveh.c: Update.
56404         * modules/striconveh: Update.
56405         * lib/unistr/u8-to-u16.c: Update.
56406         * modules/unistr/u8-to-u16: Update.
56407         * lib/unistr/u8-to-u32.c: Update.
56408         * modules/unistr/u8-to-u32: Update.
56409
56410 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56411
56412         Sync from Libtool.
56413         * lib/argz.c: Do not include strings.h nor memory.h, include
56414         string.h unconditionally.  Patch by Simon Josefsson.
56415
56416 2007-01-27  Bruno Haible  <bruno@clisp.org>
56417
56418         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
56419         from gl_HEADER_STRING_H_BODY.
56420         (gl_HEADER_STRING_H_BODY): Require it.
56421         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
56422         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56423         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56424         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56425         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56426         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
56427         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56428         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56429         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
56430         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56431         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56432         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
56433         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56434         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56435         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56436
56437 2007-01-27  Bruno Haible  <bruno@clisp.org>
56438
56439         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
56440         check_PROGRAMS into noinst_PROGRAMS.
56441         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
56442         check_PROGRAMS in this case.
56443         (func_import): Set for_test to false.
56444         (func_create_testdir): Set for_test to true.
56445
56446 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56447             Bruno Haible  <bruno@clisp.org>
56448
56449         * modules/strcasestr (Files): Remove lib/strcasestr.h.
56450         (Depends-on): Add string.
56451         (Includes): Use <string.h> instead of strcasestr.h.
56452         * modules/string (Makefile.am): Also substitute the value of
56453         REPLACE_STRCASESTR.
56454         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
56455         assume strcasestr is declared in <string.h> not <strings.h>. Also
56456         set REPLACE_STRCASESTR.
56457         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
56458         REPLACE_STRCASESTR.
56459         * lib/strcasestr.h: Remove file.
56460         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
56461         * lib/string_.h (strcasestr): New declaration.
56462
56463 2007-01-27  Bruno Haible  <bruno@clisp.org>
56464
56465         * lib/string_.h: Use 'extern'.
56466
56467 2007-01-27  Jim Meyering  <jim@meyering.net>
56468
56469         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
56470         of set-but-not-used local, "q".
56471
56472         * lib/mempcpy.c: Include <config.h> before <string.h>.
56473         This fixes a compilation error on HP-UX, due to the system's
56474         "restrict"-using mempcpy prototype.
56475
56476 2007-01-26  Bruno Haible  <bruno@clisp.org>
56477
56478         Small optimization.
56479         * lib/javacomp.c: Include c-strstr.h.
56480          (is_envjavac_gcj): Use c_strstr instead of strstr.
56481         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
56482
56483 2007-01-26  Bruno Haible  <bruno@clisp.org>
56484
56485         * MODULES.html.sh (Unicode string functions): Add the new modules.
56486
56487         * modules/uniconv/u32-strconv-to-locale: New file.
56488         * lib/uniconv/u32-strconv-to-locale.c: New file.
56489
56490         * modules/uniconv/u16-strconv-to-locale: New file.
56491         * lib/uniconv/u16-strconv-to-locale.c: New file.
56492
56493         * modules/uniconv/u8-strconv-to-locale: New file.
56494         * lib/uniconv/u8-strconv-to-locale.c: New file.
56495
56496         * modules/uniconv/u32-strconv-from-locale: New file.
56497         * lib/uniconv/u32-strconv-from-locale.c: New file.
56498
56499         * modules/uniconv/u16-strconv-from-locale: New file.
56500         * lib/uniconv/u16-strconv-from-locale.c: New file.
56501
56502         * modules/uniconv/u8-strconv-from-locale: New file.
56503         * lib/uniconv/u8-strconv-from-locale.c: New file.
56504
56505         * modules/uniconv/u32-strconv-to-enc: New file.
56506         * lib/uniconv/u32-strconv-to-enc.c: New file.
56507         * modules/uniconv/u32-strconv-to-enc-tests: New file.
56508         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
56509
56510         * modules/uniconv/u16-strconv-to-enc: New file.
56511         * lib/uniconv/u16-strconv-to-enc.c: New file.
56512         * lib/uniconv/u-strconv-to-enc.h: New file.
56513         * modules/uniconv/u16-strconv-to-enc-tests: New file.
56514         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
56515
56516         * modules/uniconv/u8-strconv-to-enc: New file.
56517         * lib/uniconv/u8-strconv-to-enc.c: New file.
56518         * modules/uniconv/u8-strconv-to-enc-tests: New file.
56519         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
56520
56521         * modules/uniconv/u32-strconv-from-enc: New file.
56522         * lib/uniconv/u32-strconv-from-enc.c: New file.
56523         * modules/uniconv/u32-strconv-from-enc-tests: New file.
56524         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
56525
56526         * modules/uniconv/u16-strconv-from-enc: New file.
56527         * lib/uniconv/u16-strconv-from-enc.c: New file.
56528         * modules/uniconv/u16-strconv-from-enc-tests: New file.
56529         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
56530
56531         * modules/uniconv/u8-strconv-from-enc: New file.
56532         * lib/uniconv/u8-strconv-from-enc.c: New file.
56533         * lib/uniconv/u-strconv-from-enc.h: New file.
56534         * modules/uniconv/u8-strconv-from-enc-tests: New file.
56535         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
56536
56537         * modules/uniconv/u32-conv-from-enc: New file.
56538         * lib/uniconv/u32-conv-from-enc.c: New file.
56539         * modules/uniconv/u32-conv-from-enc-tests: New file.
56540         * tests/uniconv/test-u32-conv-from-enc.c: New file.
56541
56542         * modules/uniconv/u16-conv-from-enc: New file.
56543         * lib/uniconv/u16-conv-from-enc.c: New file.
56544         * lib/uniconv/u-conv-from-enc.h: New file.
56545         * modules/uniconv/u16-conv-from-enc-tests: New file.
56546         * tests/uniconv/test-u16-conv-from-enc.c: New file.
56547
56548         * modules/uniconv/u8-conv-from-enc: New file.
56549         * lib/uniconv/u8-conv-from-enc.c: New file.
56550         * modules/uniconv/u8-conv-from-enc-tests: New file.
56551         * tests/uniconv/test-u8-conv-from-enc.c: New file.
56552
56553         * modules/uniconv/base: New file.
56554         * lib/uniconv.h: New file.
56555
56556 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
56557
56558         * doc/gnulib-tool.texi (Initial import): Update to match current
56559         behavior with strdup module.
56560         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
56561         * lib/memmem.h: Remove; all uses removed.  This is now done
56562         by <string.h>.
56563         * lib/mempcpy.h: Likewise.
56564         * lib/memrchr.h: Likewise.
56565         * lib/stpcpy.h: Likewise.
56566         * lib/stpncpy.h: Likewise.
56567         * lib/strcase.h: Likewise.
56568         * lib/strchrnul.h: Likewise.
56569         * lib/strdup.h: Likewise.
56570         * lib/strndup.h: Likewise.
56571         * lib/strnlen.h: Likewise.
56572         * lib/strpbrk.h: Likewise.
56573         * lib/strsep.h: Likewise.
56574         * lib/strstr.h: Likewise.
56575         * lib/strtok_r.h: Likewise.
56576         * lib/string_.h: New file.
56577         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
56578         Rely on <string.h> instead.
56579         * lib/canon-host.c: Likewise.
56580         * lib/chdir-long.c: Likewise.
56581         * lib/concatpath.c: Likewise.
56582         * lib/exclude.c: Likewise.
56583         * lib/fchdir.c: Likewise.
56584         * lib/getaddrinfo.c: Likewise.
56585         * lib/getcwd.c: Likewise.
56586         * lib/getsubopt.c: Likewise.
56587         * lib/glob.c: Likewise.
56588         * lib/hard-locale.c: Likewise.
56589         * lib/iconvme.c: Likewise.
56590         * lib/javacomp.c: Likewise.
56591         * lib/mempcpy.c: Likewise.
56592         * lib/memrchr.c: Likewise.
56593         * lib/regex_internal.h: Likewise.
56594         * lib/stpncpy.c: Likewise.
56595         * lib/strcasecmp.c: Likewise.
56596         * lib/strchrnul.c: Likewise.
56597         * lib/strdup.c: Likewise.
56598         * lib/striconv.c: Likewise.
56599         * lib/striconveh.c: Likewise.
56600         * lib/striconveha.c: Likewise.
56601         * lib/strncasecmp.c: Likewise.
56602         * lib/strndup.c: Likewise.
56603         * lib/strnlen.c: Likewise.
56604         * lib/strsep.c: Likewise.
56605         * lib/strstr.c: Likewise.
56606         * lib/strtok_r.c: Likewise.
56607         * lib/userspec.c: Likewise.
56608         * lib/w32spawn.h: Likewise.
56609         * lib/xstrndup.c: Likewise.
56610         * lib/mountlist.c (strstr): Remove decl.
56611         * m4/string_h.m4: New file.
56612         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
56613         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
56614         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
56615         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
56616         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
56617         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
56618         Set REPLACE_STRCASECMP if necessary.
56619         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
56620         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
56621         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
56622         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
56623         HAVE_DECL_STRDUP if necessary.
56624         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
56625         since gl_FUNC_STRNDUP does that now.
56626         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
56627         Check for decl here...
56628         (gl_PREREQ_STRNLEN): ... not here.
56629         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
56630         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
56631         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
56632         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
56633         necessary.
56634         * modules/string: New file.
56635         * modules/memmem (Files): Remove special-purpose include file.
56636         (Depends-on): Add string.
56637         (Include): Include <string.h>, not the removed file.
56638         * modules/mempcpy: Likewise.
56639         * modules/memrchr: Likewise.
56640         * modules/stpcpy: Likewise.
56641         * modules/stpncpy: Likewise.
56642         * modules/strcase: Likewise.
56643         * modules/strchrnul: Likewise.
56644         * modules/strdup: Likewise.
56645         * modules/strndup: Likewise.
56646         * modules/strnlen: Likewise.
56647         * modules/strpbrk: Likewise.
56648         * modules/strsep: Likewise.
56649         * modules/strstr: Likewise.
56650         * modules/strtok_r: Likewise.
56651         * tests/test-dirname.c: Don't include "strdup.h", since
56652         <string.h> now suffices.
56653         * tests/test-memmem.c: Don't include "memmem.h", since
56654         <string.h> now suffices.
56655
56656 2007-01-25  Bruno Haible  <bruno@clisp.org>
56657
56658         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
56659         *resultp is 0.
56660
56661         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
56662         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
56663         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
56664         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
56665
56666         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
56667         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
56668         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
56669         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
56670         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
56671         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
56672
56673 2007-01-24  Bruno Haible  <bruno@clisp.org>
56674
56675         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
56676         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
56677         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
56678         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
56679         gl_FUNC_FTS_CORE.
56680         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
56681         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
56682         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56683         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
56684         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
56685         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
56686         gl_FUNC_FCHOWNAT.
56687         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
56688         gl_FUNC_STRFTIME.
56689         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
56690         Reported by Ralf Wildenhues.
56691
56692 2007-01-24  Bruno Haible  <bruno@clisp.org>
56693
56694         Drop AC_REQUIRE calls that are redundant with the module dependencies.
56695         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
56696         gl_GETADDRINFO.
56697         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
56698         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
56699         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
56700
56701 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
56702
56703         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
56704         Don't use 'exit'; just return from 'main'.
56705         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
56706
56707         * lib/fnmatch_.h: Readjust white space and comments to match
56708         glibc, to avoid spurious diffs.
56709
56710 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56711
56712         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
56713         2004-12-01 change by Jakub Jelinek, since this code won't compile
56714         if !LIBC.  Problem reported by Bob Proulx.
56715
56716 2007-01-23  Bruno Haible  <bruno@clisp.org>
56717
56718         * lib/striconveh.c: Include c-strcaseeq.h.
56719         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
56720         * modules/striconveh (Depends-on): Add c-strcaseeq.
56721
56722 2007-01-23  Bruno Haible  <bruno@clisp.org>
56723
56724         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
56725
56726         * modules/c-strcaseeq: New file.
56727         * lib/c-strcaseeq.h: New file.
56728
56729         * modules/streq: New file.
56730         * lib/streq.h: New file.
56731
56732 2007-01-23  Bruno Haible  <bruno@clisp.org>
56733
56734         * modules/striconveha-tests: New file.
56735         * tests/test-striconveha.c: New file.
56736
56737         * lib/striconveha.h: Include <stdbool.h>.
56738         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
56739         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
56740         (mem_iconveha_notranslit): Renamed from mem_iconveha.
56741         (mem_iconveha): New function.
56742         (str_iconveha_notranslit): Renamed from str_iconveha.
56743         (str_iconveha): New function.
56744         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
56745         c-strcase.
56746
56747 2007-01-23  Bruno Haible  <bruno@clisp.org>
56748
56749         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
56750         encodings without forgiving before trying any encoding with handler.
56751         (str_iconveha): Try all encodings without forgiving before trying any
56752         encoding with handler.
56753
56754 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56755
56756         Import the following changes from libc.
56757
56758         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
56759
56760         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
56761
56762         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
56763
56764         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
56765         normal_bracket label.
56766
56767         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
56768
56769         [BZ #361]
56770         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
56771         to normal_bracket after fetching the next character.
56772
56773 2007-01-22  Bruno Haible  <bruno@clisp.org>
56774
56775         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
56776         argument.
56777         * lib/striconveh.c (iconv_carefully_1): New function.
56778         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
56779         argument.
56780         (str_cd_iconveh): Update.
56781         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
56782         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
56783         * tests/test-striconveh.c (MAGIC): New macro.
56784         (new_offsets): New function.
56785         (main): Test call with and without offsets.
56786
56787 2007-01-22  Bruno Haible  <bruno@clisp.org>
56788
56789         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
56790         * modules/sys_select (Makefile.am): Likewise.
56791         * modules/sys_socket (Makefile.am): Likewise.
56792         * modules/sys_time (Makefile.am): Likewise.
56793
56794 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
56795
56796         * modules/gettimeofday (License): Change from GPL to LGPL, since
56797         gettimeofday is a library function.
56798
56799 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56800
56801         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
56802
56803 2007-01-21  Bruno Haible  <bruno@clisp.org>
56804
56805         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
56806
56807 2007-01-21  Bruno Haible  <bruno@clisp.org>
56808
56809         * modules/striconveha: New file.
56810         * lib/striconveha.h: New file.
56811         * lib/striconveha.c: New file.
56812         * MODULES.html.sh (Internationalization functions): Add striconveha.
56813         * lib/striconv.c (str_iconv): Optimize the case of an empty input
56814         string.
56815         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
56816
56817 2007-01-21  Bruno Haible  <bruno@clisp.org>
56818
56819         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
56820         * lib/striconveh.c (str_iconveh): Likewise.
56821
56822 2007-01-21  Bruno Haible  <bruno@clisp.org>
56823
56824         * lib/striconveh.h (mem_iconveh): New declaration.
56825         * lib/striconveh.c (mem_iconveh): New function.
56826         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
56827
56828 2007-01-21  Bruno Haible  <bruno@clisp.org>
56829
56830         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
56831
56832         * lib/striconveh.h (mem_cd_iconveh): Change specification.
56833         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
56834         original result buffer.
56835         (str_cd_iconveh): Update.
56836         * tests/test-striconveh.c (main): Update.
56837
56838         * lib/striconv.h (mem_cd_iconv): Change specification.
56839         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
56840         result buffer.
56841         (str_cd_iconv): Update.
56842         * tests/test-striconv.c (main): Update.
56843
56844 2007-01-21  Bruno Haible  <bruno@clisp.org>
56845
56846         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
56847
56848 2007-01-20  Jim Meyering  <jim@meyering.net>
56849
56850         * lib/userspec.c (parse_with_separator): If a user or group string
56851         starts with "+", skip the corresponding name-to-ID look-up, since
56852         such a look-up must fail: user and group names may not include "+".
56853
56854 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
56855
56856         * lib/poll.c: Include sys/time.h and time.h unconditionally,
56857         since we now assume the sys_time module.
56858         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
56859         check for sys/time.h; no longer needed.
56860         * modules/poll (Depends-on): Depend on sys_time.
56861
56862 2007-01-18  Bruno Haible  <bruno@clisp.org>
56863
56864         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
56865         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
56866
56867         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
56868         gettimeofday.
56869
56870         * tests/test-gettimeofday.c: Include <time.h>.
56871         (dummy): Remove variable.
56872
56873         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
56874         gl_HEADER_SYS_TIME_H.
56875         (gl_HEADER_SYS_TIME_H): New macro.
56876
56877         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
56878         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56879         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
56880         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
56881         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56882         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
56883         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
56884         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56885         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
56886         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
56887         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56888
56889         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
56890         last change; it caused a compilation error when cross-compiling to
56891         Cygwin.
56892
56893 2007-01-18  Jim Meyering  <jim@meyering.net>
56894
56895         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
56896         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
56897         than the race-prone "test -d sys || mkdir sys".
56898         (configure.ac): Use AC_PROG_MKDIR_P.
56899         * modules/sys_select: Likewise.
56900         * modules/sys_socket: Likewise.
56901         * modules/sys_time: Likewise.
56902
56903 2007-01-18  Eric Blake  <ebb9@byu.net>
56904
56905         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
56906         replace gettimeofday.
56907         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
56908         name, to avoid infinite recursion.
56909
56910 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
56911
56912         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
56913         module sys_time.
56914         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
56915         assume timespec.h defines struct timeval.
56916         * lib/settime.c: Likewise.
56917         * lib/utimens.c: Likewise.
56918         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
56919         since we now assume the gettimeofday module.
56920         * lib/tempname.c (__gen_tempname): Likewise.
56921         * lib/gettimeofday.h: Remove.
56922         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
56923         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
56924         Include <time.h>, for 'time()'.
56925         (localtime_buffer_addr): Also use this workaround if
56926         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
56927         to simplify the uses.  All uses changed.
56928         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
56929         that #undef is inside {}, and 'const' follows type name consistently.
56930         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
56931         (gettimeofday): Do not use the maximum possible value for
56932         tv->tv_usec, since that might break usages other than ls.c.
56933         Instead, we'll leave ls.c alone.  This undoes today's patch
56934         by Bruno.  Add a compile-time warning for 1s-clock resolution;
56935         we've never observed the problem but might as well keep the
56936         canary.
56937         * lib/nanosleep.c: Include timespec.h first, for interface check.
56938         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
56939         now assume the sys_time module.
56940         * lib/tempname.c: Likewise.
56941         * lib/timespec.h: Likewise.
56942         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
56943         needed.
56944         * lib/strftime.c: Likewise.
56945         * lib/timespec.h: Likewise.
56946         * lib/posixtm.c: Include posixtm.h first, for interface check.
56947         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
56948         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
56949         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
56950         * lib/sys_time_.h: New file.
56951         * lib/timespec.h (struct timespec): Use long int, not long.
56952         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
56953         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
56954         Remove obsolescent call to AC_HEADER_TIME.
56955         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
56956         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56957         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
56958         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
56959         Likewise.
56960         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
56961         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
56962         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
56963         into the sys_time module.  Check for gettimeofday just once.
56964         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
56965         for gettimeofday signature to just check the signature.  Merely
56966         compile it, since linking doesn't test signature.  Improve test for
56967         whether gettimeofday.o is actually needed.
56968         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
56969         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
56970         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
56971         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56972         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
56973         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
56974         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
56975         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
56976         than worrying about sys/time.h.
56977         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56978         Don't bother worrying about TIME_WITH_SYS_TIME.
56979         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
56980         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
56981         * m4/sys_time_h.m4: New file.
56982         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
56983         Don't include sys/time.h.  Return from main rather than exiting.
56984         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
56985         all uses changed.
56986         * modules/gethrxtime (Depends-on): Add sys_time.
56987         * modules/gettime (Depends-on): Likewise.
56988         * modules/gettimeofday (Depends-on): Likewise.
56989         * modules/nanosleep (Depends-on): Likewise.
56990         * modules/settime (Depends-on): Likewise.
56991         * modules/tempname (Depends-on): Likewise.
56992         * modules/utimens (Depends-on): Likewise.
56993         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
56994         (Include): Change back to <sys/time.h>.
56995         (Maintainer): Add self.
56996         * modules/sys_time: New file.
56997         * modules/tempname (Depends-on): Add gettimeofday.
56998         * tests/test-gettimeofday.c: Include <sys/time.h>
56999         rather than gettimeofday.h.
57000
57001 2007-01-17  Bruno Haible  <bruno@clisp.org>
57002
57003         * gnulib-tool (func_get_license): Revert last patch. Instead, let
57004         the license default to GPL.
57005         (func_create_testdir): Don't complain if a module is LGPL and its
57006         tests module depends on GPLed modules.
57007
57008 2007-01-17  Bruno Haible  <bruno@clisp.org>
57009
57010         * lib/gettimeofday.c (gettimeofday): Add code for the case
57011         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
57012         maximum possible value for tv->tv_usec, rather than the minimum one.
57013
57014 2005-10-08  Martin Lambers  <marlam@marlam.de>
57015 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57016 2007-01-16  Bruno Haible  <bruno@clisp.org>
57017
57018         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
57019         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
57020         gl_FUNC_GETTIMEOFDAY.
57021         (Include): Add gettimeofday.h.
57022         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
57023         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
57024         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
57025         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
57026         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
57027         * lib/gettimeofday.h: New file.
57028         * lib/gettimeofday.c: Include <sys/timeb.h>.
57029         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
57030         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57031         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
57032         fall back on time().
57033
57034         * tests/test-gettimeofday.c: New file.
57035         * modules/gettimeofday-tests: New file.
57036
57037 2007-01-16  Eric Blake  <ebb9@byu.net>
57038
57039         * modules/fnmatch (Depends-on): Depend on wchar.
57040         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
57041         * m4/fnmatch.m4: Likewise.
57042         * modules/mbchar (Makefile.am): Assume <wchar.h>.
57043         * m4/mbchar.m4: Likewise.
57044         * modules/mbswidth (Depends-on): Depend on wchar.
57045         * lib/mbswidth.c: Assume <wchar.h>.
57046         * m4/mbswidth.m4: Likewise.
57047         * modules/quotearg (Depends-on): Depend on wchar.
57048         * lib/quotearg.c: Assume <wchar.h>.
57049         * m4/quotearg.m4: Likewise.
57050         * modules/regex (Depends-on): Depend on wchar.
57051         * lib/regex_internal.h: Assume <wchar.h>.
57052         * m4/regex.m4: Likewise.
57053         * modules/stdint (Depends-on): Depend on wchar.
57054         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
57055         * m4/stdint.m4: Likewise.
57056         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
57057         * modules/strftime (Depends-on): Depend on wchar.
57058         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
57059         * modules/strtol (Depends-on): Depend on wchar.
57060         * lib/strtol.c: Assume <wchar.h>.
57061         * modules/wcwidth (Depends-on): Depend on wchar.
57062         * lib/wcwidth.h: Assume <wchar.h>.
57063         * m4/wcwidth.m4: Likewise.
57064
57065 2007-01-16  Bruno Haible  <bruno@clisp.org>
57066
57067         * modules/csharpexec-script: New, created from...
57068         * modules/csharpexec: ... this.
57069
57070 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57071
57072         * modules/javaexec-script: New, created from...
57073         * modules/javaexec: ... this.
57074
57075 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57076
57077         * modules/poll (Dependencies): Add sys_select.
57078
57079 2007-01-15  Jim Meyering  <jim@meyering.net>
57080
57081         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
57082         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
57083         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
57084         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
57085
57086 2007-01-15  Bruno Haible  <bruno@clisp.org>
57087
57088         * modules/striconveh: New file.
57089         * lib/striconveh.h: New file.
57090         * lib/striconveh.c: New file.
57091         * MODULES.html.sh (Internationalization functions): Add striconveh.
57092
57093         * modules/striconveh-tests: New file.
57094         * tests/test-striconveh.c: New file.
57095
57096 2007-01-15  Bruno Haible  <bruno@clisp.org>
57097
57098         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
57099         not from GNU libiconv or GNU libc.
57100
57101 2007-01-15  Bruno Haible  <bruno@clisp.org>
57102
57103         * doc/gnulib-intro.texi (Copyright): Explain the different license
57104         terms for module descriptions, autoconf macros, tests, documentation.
57105
57106 2007-01-14  Bruno Haible  <bruno@clisp.org>
57107
57108         * modules/striconv-tests: New file.
57109         * tests/test-striconv.c: New file.
57110
57111 2007-01-14  Bruno Haible  <bruno@clisp.org>
57112
57113         * modules/iconv-tests: New file.
57114         * tests/test-iconv.c: New file.
57115
57116 2007-01-14  Bruno Haible  <bruno@clisp.org>
57117
57118         * gnulib-tool (func_get_license): For test modules, use the license of
57119         the main module.
57120
57121 2007-01-14  Bruno Haible  <bruno@clisp.org>
57122
57123         * modules/iconv (Include): Clarify that <iconv.h> can only be included
57124         if iconv is found to exist.
57125
57126 2007-01-14  Bruno Haible  <bruno@clisp.org>
57127
57128         * modules/c-ctype-tests: New file.
57129         * tests/test-c-ctype.c: New file.
57130
57131 2007-01-14  Bruno Haible  <bruno@clisp.org>
57132
57133         * modules/binary-io-tests: New file.
57134         * tests/test-binary-io.sh: New file.
57135         * tests/test-binary-io.c: New file.
57136
57137 2007-01-14  Bruno Haible  <bruno@clisp.org>
57138
57139         * modules/array-oset-tests: New file.
57140         * tests/test-array_oset.c: New file.
57141
57142 2007-01-14  Bruno Haible  <bruno@clisp.org>
57143
57144         * modules/array-list-tests: New file.
57145         * tests/test-array_list.c: New file.
57146
57147 2007-01-14  Bruno Haible  <bruno@clisp.org>
57148
57149         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
57150         and make.
57151         Reported by Simon Josefsson in
57152         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
57153
57154 2007-01-14  Bruno Haible  <bruno@clisp.org>
57155
57156         * modules/allocsa-tests: New file.
57157         * tests/test-allocsa.c: New file.
57158
57159 2007-01-14  Bruno Haible  <bruno@clisp.org>
57160
57161         * modules/fchdir (Depends-on): Add absolute-header.
57162         * modules/unistd (Depends-on): Likewise.
57163
57164 2006-12-30  Bruno Haible  <bruno@clisp.org>
57165
57166         * modules/fchdir: New file.
57167         * modules/unistd (Files): Add lib/unistd_.h.
57168         (Makefile.am): Generate unistd.h from unistd_.h.
57169         * lib/fchdir.c: New file.
57170         * lib/dirent_.h: New file.
57171         * lib/unistd_.h: New file.
57172         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
57173         * m4/fchdir.m4: New file.
57174         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
57175         (gl_HEADER_UNISTD): Invoke it.
57176         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
57177         function.
57178         * lib/backupfile.c (opendir, closedir): Undefine.
57179         * lib/chown.c (open, close): Undefine.
57180         * lib/clean-temp.c (open, close): Undefine.
57181         * lib/copy-file.c (open, close): Undefine.
57182         * lib/execute.c (open, close): Undefine.
57183         * lib/fsusage.c (open, close): Undefine.
57184         * lib/gc-gnulib.c (open, close): Undefine.
57185         * lib/getcwd.c (opendir, closedir): Undefine.
57186         * lib/glob.c (opendir, closedir): Undefine.
57187         * lib/javacomp.c (open, close): Undefine.
57188         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
57189         * lib/openat-proc.c (open, close): Undefine.
57190         * lib/pagealign_alloc.c (open, close): Undefine.
57191         * lib/pipe.c (open, close): Undefine.
57192         * lib/progreloc.c (open, close): Undefine.
57193         * lib/savedir.c (opendir, closedir): Undefine.
57194         * lib/utime.c (open, close): Undefine.
57195         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
57196
57197 2007-01-10  Bruno Haible  <bruno@clisp.org>
57198
57199         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
57200
57201 2007-01-12  Eric Blake  <ebb9@byu.net>
57202
57203         Provide a robust <wchar.h>.  Further simplifications are now
57204         possible in other modules, but not included here.
57205         * modules/wchar: New module.
57206         * m4/wchar.m4: New file.
57207         * lib/wchar_.h: Likewise.
57208         * modules/mbchar (Depends-on): Depend on wchar, as the first use
57209         of the new module.
57210         * MODULES.html.sh (Extended multibyte and wide character utilities):
57211         New section.
57212
57213 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
57214
57215         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
57216         to a reasonable default for memory allocation.
57217         (xreadlink): Don't allocate a huge buffer, to work around a buggy
57218         file system that reports garbage st_size values for symlinks.
57219         Problem reported by Liyang Hu.
57220
57221 2007-01-11  Simon Josefsson  <simon@josefsson.org>
57222
57223         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
57224         Emacs .#* auto-save files).
57225
57226 2007-01-11  Bruno Haible  <bruno@clisp.org>
57227
57228         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
57229         directory.
57230
57231 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57232
57233         Use @...@ consistently in lib/wctype_.h.
57234         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
57235         on it being set to 1 or 0.
57236         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
57237         go back to AC_SUBSTing it.
57238         * modules/wctype (Makefile.am): Undo previous change.
57239
57240 2007-01-10  Eric Blake  <ebb9@byu.net>
57241
57242         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
57243         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
57244         * modules/wctype (Makefile.am): Likewise.
57245         Reported by Chris McGuire.
57246
57247 2007-01-10  Jim Meyering  <jim@meyering.net>
57248
57249         fts.c: a small readability/maintainability improvement
57250         * lib/fts.c (fts_read): Make this code slightly more readable and
57251         maintainable by hoisting the "sp->fts_cur = p" assignments to
57252         immediately follow the statements that set P.  Derived from
57253         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
57254
57255 2007-01-10  Eric Blake  <ebb9@byu.net>
57256
57257         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
57258         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
57259         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57260         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
57261         Reported by Chris McGuire.
57262
57263 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57264
57265         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
57266         in sed script.
57267
57268 2007-01-09  Bruno Haible  <bruno@clisp.org>
57269
57270         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
57271         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
57272         variables.
57273         (func_module): Use them.
57274
57275 2007-01-09  Bruno Haible  <bruno@clisp.org>
57276
57277         * modules/unistr/base: New file.
57278         * lib/unistr.h: New file.
57279
57280         * modules/unistr/u8-to-u16: New file.
57281         * lib/unistr/u8-to-u16.c: New file.
57282
57283         * modules/unistr/u8-to-u32: New file.
57284         * lib/unistr/u8-to-u32.c: New file.
57285
57286         * modules/unistr/u16-to-u8: New file.
57287         * lib/unistr/u16-to-u8.c: New file.
57288
57289         * modules/unistr/u16-to-u32: New file.
57290         * lib/unistr/u16-to-u32.c: New file.
57291
57292         * modules/unistr/u32-to-u8: New file.
57293         * lib/unistr/u32-to-u8.c: New file.
57294
57295         * modules/unistr/u32-to-u16: New file.
57296         * lib/unistr/u32-to-u16.c: New file.
57297
57298         * modules/unistr/u8-check: New file.
57299         * modules/unistr/u16-check: New file.
57300         * modules/unistr/u32-check: New file.
57301         * lib/unistr/u8-check.c: New file.
57302         * lib/unistr/u16-check.c: New file.
57303         * lib/unistr/u32-check.c: New file.
57304
57305         * modules/unistr/u8-chr: New file.
57306         * modules/unistr/u16-chr: New file.
57307         * modules/unistr/u32-chr: New file.
57308         * lib/unistr/u8-chr.c: New file.
57309         * lib/unistr/u16-chr.c: New file.
57310         * lib/unistr/u32-chr.c: New file.
57311
57312         * modules/unistr/u8-cmp: New file.
57313         * modules/unistr/u16-cmp: New file.
57314         * modules/unistr/u32-cmp: New file.
57315         * lib/unistr/u8-cmp.c: New file.
57316         * lib/unistr/u16-cmp.c: New file.
57317         * lib/unistr/u32-cmp.c: New file.
57318
57319         * modules/unistr/u8-cpy: New file.
57320         * modules/unistr/u16-cpy: New file.
57321         * modules/unistr/u32-cpy: New file.
57322         * lib/unistr/u8-cpy.c: New file.
57323         * lib/unistr/u16-cpy.c: New file.
57324         * lib/unistr/u32-cpy.c: New file.
57325         * lib/unistr/u-cpy.h: New file.
57326
57327         * modules/unistr/u8-cpy-alloc: New file.
57328         * modules/unistr/u16-cpy-alloc: New file.
57329         * modules/unistr/u32-cpy-alloc: New file.
57330         * lib/unistr/u8-cpy-alloc.c: New file.
57331         * lib/unistr/u16-cpy-alloc.c: New file.
57332         * lib/unistr/u32-cpy-alloc.c: New file.
57333         * lib/unistr/u-cpy-alloc.h: New file.
57334
57335         * modules/unistr/u8-endswith: New file.
57336         * modules/unistr/u16-endswith: New file.
57337         * modules/unistr/u32-endswith: New file.
57338         * lib/unistr/u8-endswith.c: New file.
57339         * lib/unistr/u16-endswith.c: New file.
57340         * lib/unistr/u32-endswith.c: New file.
57341         * lib/unistr/u-endswith.h: New file.
57342
57343         * modules/unistr/u8-mblen: New file.
57344         * modules/unistr/u16-mblen: New file.
57345         * modules/unistr/u32-mblen: New file.
57346         * lib/unistr/u8-mblen.c: New file.
57347         * lib/unistr/u16-mblen.c: New file.
57348         * lib/unistr/u32-mblen.c: New file.
57349
57350         * modules/unistr/u8-mbtouc: New file.
57351         * modules/unistr/u16-mbtouc: New file.
57352         * modules/unistr/u32-mbtouc: New file.
57353         * lib/unistr/u8-mbtouc.c: New file.
57354         * lib/unistr/u16-mbtouc.c: New file.
57355         * lib/unistr/u32-mbtouc.c: New file.
57356
57357         * modules/unistr/u8-mbtouc-safe: New file.
57358         * modules/unistr/u16-mbtouc-safe: New file.
57359         * modules/unistr/u32-mbtouc-safe: New file.
57360         * lib/unistr/u8-mbtouc-safe.c: New file.
57361         * lib/unistr/u16-mbtouc-safe.c: New file.
57362         * lib/unistr/u32-mbtouc-safe.c: New file.
57363
57364         * modules/unistr/u8-move: New file.
57365         * modules/unistr/u16-move: New file.
57366         * modules/unistr/u32-move: New file.
57367         * lib/unistr/u8-move.c: New file.
57368         * lib/unistr/u16-move.c: New file.
57369         * lib/unistr/u32-move.c: New file.
57370         * lib/unistr/u-move.h: New file.
57371
57372         * modules/unistr/u8-next: New file.
57373         * modules/unistr/u16-next: New file.
57374         * modules/unistr/u32-next: New file.
57375         * lib/unistr/u8-next.c: New file.
57376         * lib/unistr/u16-next.c: New file.
57377         * lib/unistr/u32-next.c: New file.
57378
57379         * modules/unistr/u8-prev: New file.
57380         * modules/unistr/u16-prev: New file.
57381         * modules/unistr/u32-prev: New file.
57382         * lib/unistr/u8-prev.c: New file.
57383         * lib/unistr/u16-prev.c: New file.
57384         * lib/unistr/u32-prev.c: New file.
57385
57386         * modules/unistr/u8-set: New file.
57387         * modules/unistr/u16-set: New file.
57388         * modules/unistr/u32-set: New file.
57389         * lib/unistr/u8-set.c: New file.
57390         * lib/unistr/u16-set.c: New file.
57391         * lib/unistr/u32-set.c: New file.
57392         * lib/unistr/u-set.h: New file.
57393
57394         * modules/unistr/u8-startswith: New file.
57395         * modules/unistr/u16-startswith: New file.
57396         * modules/unistr/u32-startswith: New file.
57397         * lib/unistr/u8-startswith.c: New file.
57398         * lib/unistr/u16-startswith.c: New file.
57399         * lib/unistr/u32-startswith.c: New file.
57400         * lib/unistr/u-startswith.h: New file.
57401
57402         * modules/unistr/u8-stpcpy: New file.
57403         * modules/unistr/u16-stpcpy: New file.
57404         * modules/unistr/u32-stpcpy: New file.
57405         * lib/unistr/u8-stpcpy.c: New file.
57406         * lib/unistr/u16-stpcpy.c: New file.
57407         * lib/unistr/u32-stpcpy.c: New file.
57408         * lib/unistr/u-stpcpy.h: New file.
57409
57410         * modules/unistr/u8-stpncpy: New file.
57411         * modules/unistr/u16-stpncpy: New file.
57412         * modules/unistr/u32-stpncpy: New file.
57413         * lib/unistr/u8-stpncpy.c: New file.
57414         * lib/unistr/u16-stpncpy.c: New file.
57415         * lib/unistr/u32-stpncpy.c: New file.
57416         * lib/unistr/u-stpncpy.h: New file.
57417
57418         * modules/unistr/u8-strcat: New file.
57419         * modules/unistr/u16-strcat: New file.
57420         * modules/unistr/u32-strcat: New file.
57421         * lib/unistr/u8-strcat.c: New file.
57422         * lib/unistr/u16-strcat.c: New file.
57423         * lib/unistr/u32-strcat.c: New file.
57424         * lib/unistr/u-strcat.h: New file.
57425
57426         * modules/unistr/u8-strchr: New file.
57427         * modules/unistr/u16-strchr: New file.
57428         * modules/unistr/u32-strchr: New file.
57429         * lib/unistr/u8-strchr.c: New file.
57430         * lib/unistr/u16-strchr.c: New file.
57431         * lib/unistr/u32-strchr.c: New file.
57432
57433         * modules/unistr/u8-strcmp: New file.
57434         * modules/unistr/u16-strcmp: New file.
57435         * modules/unistr/u32-strcmp: New file.
57436         * lib/unistr/u8-strcmp.c: New file.
57437         * lib/unistr/u16-strcmp.c: New file.
57438         * lib/unistr/u32-strcmp.c: New file.
57439
57440         * modules/unistr/u8-strcpy: New file.
57441         * modules/unistr/u16-strcpy: New file.
57442         * modules/unistr/u32-strcpy: New file.
57443         * lib/unistr/u8-strcpy.c: New file.
57444         * lib/unistr/u16-strcpy.c: New file.
57445         * lib/unistr/u32-strcpy.c: New file.
57446         * lib/unistr/u-strcpy.h: New file.
57447
57448         * modules/unistr/u8-strcspn: New file.
57449         * modules/unistr/u16-strcspn: New file.
57450         * modules/unistr/u32-strcspn: New file.
57451         * lib/unistr/u8-strcspn.c: New file.
57452         * lib/unistr/u16-strcspn.c: New file.
57453         * lib/unistr/u32-strcspn.c: New file.
57454         * lib/unistr/u-strcspn.h: New file.
57455
57456         * modules/unistr/u8-strdup: New file.
57457         * modules/unistr/u16-strdup: New file.
57458         * modules/unistr/u32-strdup: New file.
57459         * lib/unistr/u8-strdup.c: New file.
57460         * lib/unistr/u16-strdup.c: New file.
57461         * lib/unistr/u32-strdup.c: New file.
57462         * lib/unistr/u-strdup.h: New file.
57463
57464         * modules/unistr/u8-strlen: New file.
57465         * modules/unistr/u16-strlen: New file.
57466         * modules/unistr/u32-strlen: New file.
57467         * lib/unistr/u8-strlen.c: New file.
57468         * lib/unistr/u16-strlen.c: New file.
57469         * lib/unistr/u32-strlen.c: New file.
57470         * lib/unistr/u-strlen.h: New file.
57471
57472         * modules/unistr/u8-strmblen: New file.
57473         * modules/unistr/u16-strmblen: New file.
57474         * modules/unistr/u32-strmblen: New file.
57475         * lib/unistr/u8-strmblen.c: New file.
57476         * lib/unistr/u16-strmblen.c: New file.
57477         * lib/unistr/u32-strmblen.c: New file.
57478
57479         * modules/unistr/u8-strmbtouc: New file.
57480         * modules/unistr/u16-strmbtouc: New file.
57481         * modules/unistr/u32-strmbtouc: New file.
57482         * lib/unistr/u8-strmbtouc.c: New file.
57483         * lib/unistr/u16-strmbtouc.c: New file.
57484         * lib/unistr/u32-strmbtouc.c: New file.
57485
57486         * modules/unistr/u8-strncat: New file.
57487         * modules/unistr/u16-strncat: New file.
57488         * modules/unistr/u32-strncat: New file.
57489         * lib/unistr/u8-strncat.c: New file.
57490         * lib/unistr/u16-strncat.c: New file.
57491         * lib/unistr/u32-strncat.c: New file.
57492         * lib/unistr/u-strncat.h: New file.
57493
57494         * modules/unistr/u8-strncmp: New file.
57495         * modules/unistr/u16-strncmp: New file.
57496         * modules/unistr/u32-strncmp: New file.
57497         * lib/unistr/u8-strncmp.c: New file.
57498         * lib/unistr/u16-strncmp.c: New file.
57499         * lib/unistr/u32-strncmp.c: New file.
57500
57501         * modules/unistr/u8-strncpy: New file.
57502         * modules/unistr/u16-strncpy: New file.
57503         * modules/unistr/u32-strncpy: New file.
57504         * lib/unistr/u8-strncpy.c: New file.
57505         * lib/unistr/u16-strncpy.c: New file.
57506         * lib/unistr/u32-strncpy.c: New file.
57507         * lib/unistr/u-strncpy.h: New file.
57508
57509         * modules/unistr/u8-strnlen: New file.
57510         * modules/unistr/u16-strnlen: New file.
57511         * modules/unistr/u32-strnlen: New file.
57512         * lib/unistr/u8-strnlen.c: New file.
57513         * lib/unistr/u16-strnlen.c: New file.
57514         * lib/unistr/u32-strnlen.c: New file.
57515         * lib/unistr/u-strnlen.h: New file.
57516
57517         * modules/unistr/u8-strpbrk: New file.
57518         * modules/unistr/u16-strpbrk: New file.
57519         * modules/unistr/u32-strpbrk: New file.
57520         * lib/unistr/u8-strpbrk.c: New file.
57521         * lib/unistr/u16-strpbrk.c: New file.
57522         * lib/unistr/u32-strpbrk.c: New file.
57523         * lib/unistr/u-strpbrk.h: New file.
57524
57525         * modules/unistr/u8-strrchr: New file.
57526         * modules/unistr/u16-strrchr: New file.
57527         * modules/unistr/u32-strrchr: New file.
57528         * lib/unistr/u8-strrchr.c: New file.
57529         * lib/unistr/u16-strrchr.c: New file.
57530         * lib/unistr/u32-strrchr.c: New file.
57531
57532         * modules/unistr/u8-strspn: New file.
57533         * modules/unistr/u16-strspn: New file.
57534         * modules/unistr/u32-strspn: New file.
57535         * lib/unistr/u8-strspn.c: New file.
57536         * lib/unistr/u16-strspn.c: New file.
57537         * lib/unistr/u32-strspn.c: New file.
57538         * lib/unistr/u-strspn.h: New file.
57539
57540         * modules/unistr/u8-strstr: New file.
57541         * modules/unistr/u16-strstr: New file.
57542         * modules/unistr/u32-strstr: New file.
57543         * lib/unistr/u8-strstr.c: New file.
57544         * lib/unistr/u16-strstr.c: New file.
57545         * lib/unistr/u32-strstr.c: New file.
57546         * lib/unistr/u-strstr.h: New file.
57547
57548         * modules/unistr/u8-strtok: New file.
57549         * modules/unistr/u16-strtok: New file.
57550         * modules/unistr/u32-strtok: New file.
57551         * lib/unistr/u8-strtok.c: New file.
57552         * lib/unistr/u16-strtok.c: New file.
57553         * lib/unistr/u32-strtok.c: New file.
57554         * lib/unistr/u-strtok.h: New file.
57555
57556         * modules/unistr/u8-uctomb: New file.
57557         * modules/unistr/u16-uctomb: New file.
57558         * modules/unistr/u32-uctomb: New file.
57559         * lib/unistr/u8-uctomb.c: New file.
57560         * lib/unistr/u16-uctomb.c: New file.
57561         * lib/unistr/u32-uctomb.c: New file.
57562
57563         * MODULES.html.sh (Unicode string functions): Add the new modules.
57564
57565 2007-01-08  Bruno Haible  <bruno@clisp.org>
57566
57567         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
57568         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
57569         subdirectories.
57570
57571 2007-01-08  Karl Berry  <karl@gnu.org>
57572
57573         * doc/error.texi: mention that main() fns must set program_name
57574         when progname is used.
57575
57576 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
57577
57578         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
57579         WCTYPE_H is empty, for the benefit of builds from non-distclean
57580         directories.  Problem reported by Eric Blake in
57581         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
57582
57583 2007-01-08  Bruno Haible  <bruno@clisp.org>
57584
57585         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
57586         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
57587         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
57588         PROVIDE_CANONICALIZE_FILENAME_MODE.
57589         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
57590
57591 2007-01-08  Bruno Haible  <bruno@clisp.org>
57592
57593         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
57594         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
57595         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
57596         * lib/fts.c: Likewise.
57597         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
57598
57599 2006-12-25  Bruno Haible  <bruno@clisp.org>
57600
57601         * modules/utf8-ucs4-safe: New file.
57602         * lib/utf8-ucs4-safe.h: New file.
57603         * lib/unistr/utf8-ucs4-safe.c: New file.
57604
57605         * modules/utf16-ucs4-safe: New file.
57606         * lib/utf16-ucs4-safe.h: New file.
57607         * lib/unistr/utf16-ucs4-safe.c: New file.
57608
57609         * MODULES.html.sh (Unicode string functions): Add the new modules.
57610
57611 2007-01-08  Bruno Haible  <bruno@clisp.org>
57612
57613         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
57614         (Depends-on): Add unitypes.
57615         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
57616         (u8_mbtouc_aux): Move out to separate file.
57617         (u8_mbtouc): Use ucs4_t, uint8_t types.
57618         * lib/unistr/utf8-ucs4.c: New file.
57619
57620         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
57621         (Depends-on): Add unitypes.
57622         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
57623         (u16_mbtouc_aux): Move out to separate file.
57624         (u16_mbtouc): Use ucs4_t, uint16_t types.
57625         * lib/unistr/utf16-ucs4.c: New file.
57626
57627         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
57628         (Depends-on): Add unitypes.
57629         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
57630         (u8_uctomb_aux): Move out to separate file.
57631         (u8_uctomb): Use ucs4_t, uint8_t types.
57632         * lib/unistr/ucs4-utf8.c: New file.
57633
57634         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
57635         (Depends-on): Add unitypes.
57636         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
57637         (u16_uctomb_aux): Move out to separate file.
57638         (u16_uctomb): Use ucs4_t, uint16_t types.
57639         * lib/unistr/ucs4-utf16.c: New file.
57640
57641 2006-12-25  Bruno Haible  <bruno@clisp.org>
57642
57643         * modules/unitypes: New file.
57644         * lib/unitypes.h: New file.
57645         * MODULES.html.sh (func_all_modules): New section "Unicode string
57646         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
57647         this section. Add unitypes.
57648
57649 2007-01-08  Bruno Haible  <bruno@clisp.org>
57650
57651         Avoid variable names that conflict with those from libtool.
57652         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
57653         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
57654         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
57655         library_names_spec to acl_library_names_spec, hardcode_* to
57656         acl_hardcode_*.
57657         Reported by Ralf Wildenhues.
57658
57659 2007-01-08  Bruno Haible  <bruno@clisp.org>
57660
57661         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
57662         definition.
57663         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
57664         definition.
57665         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
57666         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
57667         definition.
57668         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
57669         definition.
57670         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
57671         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
57672         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
57673         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
57674         definition.
57675         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
57676         definition.
57677         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
57678         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
57679         GC_USE_<algorithm>.
57680         * lib/gc-libgcrypt.c: Likewise.
57681         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
57682         * modules/gc-arctwo (configure.ac): Likewise.
57683         * modules/gc-des (configure.ac): Likewise.
57684         * modules/gc-hmac-md5 (configure.ac): Likewise.
57685         * modules/gc-hmac-sha1 (configure.ac): Likewise.
57686         * modules/gc-md2 (configure.ac): Likewise.
57687         * modules/gc-md4 (configure.ac): Likewise.
57688         * modules/gc-md5 (configure.ac): Likewise.
57689         * modules/gc-random (configure.ac): Likewise.
57690         * modules/gc-rijndael (configure.ac): Likewise.
57691         * modules/gc-sha1 (configure.ac): Likewise.
57692
57693 2007-01-08  Bruno Haible  <bruno@clisp.org>
57694
57695         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
57696         macro definition.
57697         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
57698         definition.
57699         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
57700         definition.
57701         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
57702         * modules/fcntl-safer (configure.ac): Likewise.
57703         * modules/fopen-safer (configure.ac): Likewise.
57704         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
57705         GNULIB_FWRITEERROR macro definition.
57706
57707 2007-01-08  Bruno Haible  <bruno@clisp.org>
57708
57709         * m4/gnulib-common.m4: New file.
57710         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
57711         (func_get_filelist): Add m4/gnulib-common.m4.
57712
57713 2007-01-08  Bruno Haible  <bruno@clisp.org>
57714
57715         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
57716         command.
57717
57718 2007-01-08  Jim Meyering  <jim@meyering.net>
57719
57720         Use a more robust test for a "can't happen" condition.
57721         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
57722         narrowed the st_size value.  Presuming the "can't happen" condition
57723         is true, that narrowing could conceivably convert an invalid st_size
57724         value into a valid one.  Instead, use a change based on Matthew
57725         Woehlke's original patch.
57726
57727         Slight readability improvement: use an assert-like macro
57728         in place of literal "abort ()" uses.
57729         * lib/fts.c (fts_assert): Define.
57730         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
57731         Use this macro instead of a bare 'abort'.
57732
57733 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
57734
57735         Don't worry about using IRIX 5.3's wctype.h broken definitions;
57736         simply work around them.
57737         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
57738         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
57739         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
57740         declaring.
57741         Don't bother to define as macros, since the standard doesn't require it.
57742         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
57743         longer worry about IRIX 5.3.
57744         (HAVE_WCTYPE_CTMP_BUG): Remove.
57745
57746 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57747
57748         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
57749         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
57750         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57751         Problems reported by Georg Schwarz for IRIX 5.3.
57752
57753         * gnulib-tool (autoconf_minversion): Take the maximum version number
57754         found, not the minimum.  Problem reported by James Youngman.
57755
57756 2007-01-03  Karl Berry  <karl@gnu.org>
57757
57758         * doc/error.texi: new file, explaining interaction with progname.
57759         * doc/gnulib.texi: include it.  Update copyright.
57760
57761 2007-01-03  Simon Josefsson  <simon@josefsson.org>
57762
57763         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
57764         AC_CANONICAL_HOST, to improve autobuild outputs.
57765
57766 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
57767             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
57768
57769         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
57770         sockets, server sockets, and other file descriptors.  Count errors
57771         to compute the return value.  Reorder the code a bit to be easier
57772         to follow.  Don't set event bits that were not requested (except
57773         POLLERR and POLLHUP).
57774
57775 2007-01-01  Bruno Haible  <bruno@clisp.org>
57776
57777         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
57778
57779 2007-01-03  Jim Meyering  <jim@meyering.net>
57780
57781         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
57782
57783 2007-01-02  Bruno Haible  <bruno@clisp.org>
57784
57785         * modules/settime (Include): Require timespec.h.
57786         * modules/nanosleep (Include): Likewise.
57787
57788 2007-01-01  Bruno Haible  <bruno@clisp.org>
57789
57790         * gnulib-tool (func_emit_copyright_notice): Bump year.
57791         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
57792
57793 2007-01-01  Bruno Haible  <bruno@clisp.org>
57794
57795         Improve support for OpenBSD.
57796         * build-aux/config.rpath (libname_spec): Export.
57797         (library_names_spec): New variable. Export.
57798         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
57799         library_names_spec from the config.rpath output. Locate shared library
57800         through the name pattern in library_names_spec.
57801
57802 2007-01-01  Eric Blake  <ebb9@byu.net>
57803
57804         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
57805
57806 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
57807
57808         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
57809         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
57810         assume the C locale, and avoid an "eval" that could cause trouble.
57811         Problem with SORT reported by Bob Proulx.
57812
57813         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
57814         Define.  Trivial patch from Henning Nielsen Lund, originally
57815         sent to bug-grep@gnu.org today.
57816
57817 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57818
57819         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
57820         struct stat.  Problem reported by Henning Nielsen Lund.
57821         * lib/acl.c: Include acl.h first, to check interface.  Don't
57822         bother to include sys/types.h and sys/stat.h again.
57823
57824 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57825
57826         Import the following change from libc; problem reported by
57827         Sven Verdoolaege.
57828
57829         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
57830
57831         [BZ #1373]
57832         * lib/argp.h: Remove __NTH for __argp_usage inline function.
57833
57834 2006-12-28  Jim Meyering  <jim@meyering.net>
57835
57836         * build-aux/announce-gen: Do not assume that the package
57837         builds any of tar.gz, tar.bz2, and .xdelta files.
57838         Suggestion from Simon Josefsson.
57839
57840 2006-12-28  Simon Josefsson  <simon@josefsson.org>
57841
57842         * modules/announce-gen: New file.
57843
57844 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
57845
57846         * lib/mbchar.h: Just include <wctype.h>; the wctype module
57847         handles its gotchas now.
57848         * lib/mbswidth.c: Likewise.
57849         * lib/wcwidth.h: Likewise.
57850         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
57851         and iswcntrl; the wctype module does this stuff now.
57852         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57853         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57854         * modules/mbchar (Depends-on): Add wctype.
57855         * modules/mbswidth (Depends-on): Likewise.
57856         * modules/wcwidth (Depends-on): Likewise.
57857
57858 2006-12-27  Eric Blake  <ebb9@byu.net>
57859
57860         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
57861         module uses more than what <wctype.h> is required to provide.
57862
57863 2006-12-26  Eric Blake  <ebb9@byu.net>
57864
57865         * gnulib-tool (sed_extract_prog): Avoid space-tab.
57866
57867 2006-12-26  Eric Blake  <ebb9@byu.net>
57868
57869         * modules/absolute-header: New module.
57870         * modules/fcntl (Depends-on): Depend on it.
57871         * modules/inttypes (Depends-on): Likewise.
57872         * modules/stdint (Depends-on): Likewise.
57873         * modules/sys_stat (Depends-on): Likewise.
57874         * modules/wctype (Depends-on): Likewise.
57875         * MODULES.html.sh (Support for building libraries and
57876         executables): Document it.
57877
57878 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57879
57880         * gnulib-tool (SED): Remove, undoing previous change.
57881         The problem was that it broke coreutils on Solaris, because
57882         "sed --posix" leaked into a makefile.
57883         (sed): New alias, if 'alias' and GNU sed.
57884
57885 2006-12-24  Jim Meyering  <jim@meyering.net>
57886
57887         Work around an fchownat bug in glibc-2.4:
57888         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
57889         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
57890         in spite of the -P option.
57891         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
57892         New macros.
57893         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
57894         * modules/openat (Files): Add lib/fchownat.c.
57895         * lib/openat.c (fchownat): Don't define here.  Move to...
57896         * lib/fchownat.c: ...this new file.
57897
57898 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57899
57900         Fix bug reported by Bruno Haible in
57901         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
57902         where quotearg.c didn't compile on Mac OS X 10.2 because it
57903         lacks <wchar.h> and wint_t.
57904         * lib/wctype_.h (__wctype_wint_t): New type.
57905         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
57906         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
57907         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
57908         Arg is now of type __wctype_wint_t, not wint_t.
57909         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
57910         substitute HAVE_WINT_T.
57911         * modules/wctype (Files): Add m4/wint_t.m4.
57912         (wctype.h): Substitute HAVE_WINT_T.
57913
57914 2006-12-23  Bruno Haible  <bruno@clisp.org>
57915
57916         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
57917
57918 2006-12-23  Bruno Haible  <bruno@clisp.org>
57919
57920         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
57921         S_ISLNK.
57922         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
57923         mingw.
57924
57925 2006-12-22  Bruno Haible  <bruno@clisp.org>
57926
57927         * lib/copy-file.c: Include acl.h.
57928         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
57929         Close the file descriptors only after being done with copy_acl.
57930         * modules/copy-file (Depends-on): Add acl.
57931
57932 2006-12-22  Bruno Haible  <bruno@clisp.org>
57933
57934         * gnulib-tool (SED): New variable.
57935         Use $SED instead of sed everywhere.
57936
57937 2006-12-22  Bruno Haible  <bruno@clisp.org>
57938
57939         * modules/no-c++: New file.
57940         * m4/no-c++.m4: New file.
57941         * MODULES.html.sh (Support for building libraries and executables):
57942         Add no-c++.
57943
57944 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
57945
57946         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
57947         Include <limits.h>, and use its INT_MAX to rewrite the
57948         j loop so that it does not overflow 'int'.  Problem reported by
57949         Ralf Wildenhues in
57950         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
57951         Play it safe by shifting left by 1 rather than multiplying by 2,
57952         as GCC is less likely to optimize this away when the value
57953         is signed (when it assumes overflow leads to undefined behavior).
57954         Also, don't assume time_t uses two's complement.
57955
57956 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
57957
57958         * MODULES.html.sh: New module wctype.
57959         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
57960         * lib/fnmatch.c: Don't bother to include <wchar.h> before
57961         <wctype.h>, since the new wctype module should fix this.
57962         * lib/quotearg.c: Include <wctype.h> unconditionally, since
57963         the wctype module should arrange for it.
57964         * lib/regex_internal.h: Likewise.
57965         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
57966         since the wctype module should handle this now.
57967         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
57968         * modules/fnmatch (Depends-on): Add wctype.
57969         * modules/quotearg (Depends-on): Likewise.
57970         * modules/regex (Depends-on): Likewise.
57971
57972 2006-12-19  Bruno Haible  <bruno@clisp.org>
57973
57974         * lib/strdup.h [C++]: Wrap definitions in extern "C".
57975         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
57976
57977 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57978
57979         * modules/savewd (Depends-on): Fix dependency on fcntl.
57980
57981 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57982
57983         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
57984         conforms to C99, rather than relying on the user's environment
57985         setting of STDINT_H.
57986
57987 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57988         and Eric Blake  <ebb9@byu.net>
57989
57990         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
57991         This is more consistent with the other defines here.
57992         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
57993         Port to z/OS.  Problem reported by Paul Gilmartin.
57994         Change local vars to use gl_ prefix rather than ac_.
57995         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
57996         with other defines.
57997         * modules/double-slash-root: New module.
57998         * modules/dirname (Files): Remove m4/double-slash-root.m4.
57999         (Depends-on): Add double-slash-root.
58000         * MODULES.html.sh (File system functions): Mention new module.
58001
58002 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
58003
58004         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
58005         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
58006         This is for the benefit of gzip, which doesn't do i18n.
58007
58008 2006-12-12  Jim Meyering  <jim@meyering.net>
58009
58010         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
58011         Reported by Andreas Schwab <schwab@suse.de>.
58012
58013 2006-12-12  Bruno Haible  <bruno@clisp.org>
58014
58015         Merge these changes.
58016         2006-09-05  Bruno Haible  <bruno@clisp.org>
58017         * lib/iconvme.c (iconv_string): No need to save and restore errno when
58018         iconv_alloc succeeded.
58019         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
58020         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
58021         test for " && dest " at the end - dest is always != NULL there. Call
58022         iconv with 4xNULL arguments initially, to reset the state. Call iconv
58023         with 2xNULL arguments, also to flush the state storage. Handle the
58024         IRIX iconv behaviour. Realloc the final result, to throw away unused
58025         memory.
58026
58027 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
58028
58029         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
58030         and fchmodat unconditionally, since glibc 2.4 has them.
58031         Problem reported by Arkadiusz Miskiewicz.
58032
58033 2006-12-10  Bruno Haible  <bruno@clisp.org>
58034
58035         * gnulib-tool (func_import): Show the include files only for those
58036         modules that are copied and specified.
58037         Reported by Karl Berry.
58038
58039 2006-12-08  Jim Meyering  <jim@meyering.net>
58040
58041         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
58042         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
58043
58044         * build-aux/announce-gen: Add two new options, both optional:
58045         --bootstrap-tools=TOOL_LIST
58046               a comma-separated list of tools, e.g.,
58047               autoconf,automake,bison,gnulib
58048         --gnulib-snapshot-date=DATE
58049               if gnulib is in the bootstrap tool list,
58050               then report this as the snapshot date.
58051               If not specified, use the current date/time.
58052               If you specify a date here, be sure it's UTC.
58053
58054 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58055
58056         * tests/test-argp-2.sh: Fix test to match actual output.
58057         (func_compare): Fix sed script to be portable.
58058
58059 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
58060
58061         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
58062         workaround for this case.  It is not autoconfigured now; offhand
58063         it's hard to see how to autoconfigure it.
58064
58065 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58066
58067         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
58068         a directory that is about to be chowned.  Such a directory's
58069         initial file permissions should permit the owner only and this
58070         should not be changed until after the chown, since the group and
58071         other bits would be incorrect if they granted permission before
58072         the chown.
58073
58074         Fix porting problem for iswctype reported by Georg Schwarz in:
58075         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
58076         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
58077         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
58078         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
58079         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58080
58081 2006-12-03  Jim Meyering  <jim@meyering.net>
58082
58083         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
58084         p->fts_statp may not yet be defined.
58085         (fts_read): Instead, set it in the caller, once p->fts_statp is
58086         sure to be defined, and corresponds to a top-level directory.
58087         This bug made du -x fail.  Here's the coreutils test case:
58088         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
58089         Reported by Mike Frysinger.
58090
58091 2006-12-01  Jim Meyering  <jim@meyering.net>
58092
58093         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
58094         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
58095         Reported by Simon Josefsson.
58096
58097 2006-11-30  Jim Meyering  <jim@meyering.net>
58098
58099         * m4/warning.m4: Use the all-permissive copyright notice
58100         recommended by RMS (rather than LGPL).
58101         * m4/vararrays.m4: Likewise.
58102         * m4/flexmember.m4: Likewise.
58103
58104 2006-11-29  Bruno Haible  <bruno@clisp.org>
58105
58106         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58107         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
58108         using +=.
58109         Reported by Simon Josefsson <simon@josefsson.org>.
58110
58111 2006-11-28  James Youngman <jay@gnu.org>
58112
58113         * README: Advise users that they might find the bug-gnulib@gnu.org
58114         and autotools-announce@gnu.org mailing lists useful.
58115
58116 2006-11-28  Bruno Haible  <bruno@clisp.org>
58117
58118         * m4/ptrdiff_max.m4: Remove file.
58119
58120 2006-11-21  Bruno Haible  <bruno@clisp.org>
58121
58122         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
58123         _AC_COMPUTE_INT.
58124         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58125         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
58126         _AC_COMPUTE_INT.
58127         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58128         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
58129         _AC_COMPUTE_INT.
58130         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58131
58132 2006-11-28  Jim Meyering  <jim@meyering.net>
58133
58134         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
58135         warning from "gcc -Wshadow" about shadowing the builtin.
58136
58137 2006-11-27  Bruno Haible  <bruno@clisp.org>
58138
58139         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
58140         _AC_COMPUTE_INT.
58141         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58142
58143 2006-11-27  Bruno Haible  <bruno@clisp.org>
58144             Paul Eggert  <eggert@cs.ucla.edu>
58145
58146         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
58147
58148 2006-11-26  Bruno Haible  <bruno@clisp.org>
58149
58150         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58151         noinst_LTLIBRARIES.
58152
58153 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58154             Bruno Haible  <bruno@clisp.org>
58155
58156         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
58157         if compiling with "gcc -ansi".
58158
58159 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58160
58161         Fix some incompatibilities with gcc -ansi -pedantic.
58162         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
58163         if compiling pedantically with GCC, unless it's C99 or later.
58164         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
58165         it mishandles gcc -ansi -pedantic as well.
58166         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
58167         if gcc -pedantic.
58168         * lib/regexec.c (check_node_accept_bytes): Don't use auto
58169         initializers for struct if -pedantic, unless it's C99 or later.
58170
58171 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
58172
58173         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
58174         Don't close an fd more than once. Identical atimes indicate
58175         success, not failure.
58176
58177 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
58178
58179         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
58180
58181 2006-11-23  Jim Meyering  <jim@meyering.net>
58182
58183         * build-aux/announce-gen: New file.  From coreutils.
58184
58185 2006-11-22  Jim Meyering  <jim@meyering.net>
58186
58187         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
58188         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
58189         (fts_read): Use a temporary to narrow the overused st_size member
58190         before using it in a switch statement.  Reported by Matthew Woehlke.
58191
58192         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
58193         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
58194
58195 2006-11-20  Bruno Haible  <bruno@clisp.org>
58196
58197         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
58198         changequote instead of pairs of brackets.
58199         Reported by Andreas Schwab <schwab@suse.de>.
58200
58201 2006-11-21  Jim Meyering  <jim@meyering.net>
58202
58203         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
58204         so as to remain compatible with older compilers.
58205         Patch from Michael Deutschmann.
58206
58207 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58208
58209         * MODULES.html.sh (File system functions): Add openat.
58210
58211         * lib/openat.h (rpl_fstatat): New macro, if
58212         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
58213         (fstatat): Define to rpl_fstatat under the same conditions,
58214         unless COMPILING_FSTATAT.
58215         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
58216         seems to have the bug.
58217         * lib/fstatat.c: New file.
58218         * modules/openat (Files): Add it.
58219
58220 2006-11-20  Bruno Haible  <bruno@clisp.org>
58221
58222         * Makefile: New file.
58223
58224 2006-11-20  Jim Meyering  <jim@meyering.net>
58225
58226         The beginnings of syntax-related checks for gnulib.
58227         * lib/Makefile: New file.
58228         * lib/t-idcache: New script.  Ensure that the two halves of
58229         idcache.c stay in sync.
58230
58231         * lib/idcache.c: Adjust comments in user- and group- portions to
58232         be more accurate, and to be consistent with one another.
58233
58234 2006-11-20  Jim Meyering  <jim@meyering.net>
58235
58236         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
58237         continue using the flexible array member (thus, this module performs
58238         half as many malloc calls), with the addition that...
58239         (getgroup, getuser): Consistently record a non-match via an empty
58240         "name" string, and map an empty string match to a NULL return value.
58241         * modules/idcache (Depends-on): Re-add flexmember.
58242
58243         * lib/idcache.c (getuser): Remove all uses of the register keyword.
58244         (getuidbyname, getgroup, getgidbyname): Likewise.
58245
58246         Use cleaner syntax: NULL rather than 0.
58247         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
58248
58249 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58250
58251         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
58252         It mishandled the case where the group was missing.
58253         Problem reported by Greg Schafer.
58254         * modules/idcache: Likewise.
58255
58256 2006-11-18  Jim Meyering  <jim@meyering.net>
58257
58258         * check-module (%exempt_header): Add exception for some
58259         conditionally-included headers.
58260
58261         * modules/i-ring (Depends-on): Add verify.
58262         (License): Change to LGPL.
58263
58264 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58265
58266         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
58267         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
58268         and inttostr.h.  Use snprintf rather than uinttostr, so that
58269         LGPLed code doesn't depend on GPLed.
58270
58271 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58272
58273         * modules/inline (License): Change from GPL to LGPL.
58274
58275 2006-11-17  Jim Meyering  <jim@meyering.net>
58276
58277         * modules/d-type (License): Switch to LGPL.
58278
58279 2006-11-15  Bruno Haible  <bruno@clisp.org>
58280
58281         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
58282
58283 2006-11-15  Eric Blake  <ebb9@byu.net>
58284
58285         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
58286         the module dependency.
58287
58288 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58289             Bruno Haible  <bruno@clisp.org>
58290
58291         * gnulib-tool (func_create_testdir): Add license consistency check.
58292
58293 2006-11-15  Eric Blake  <ebb9@byu.net>
58294
58295         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
58296         random "(cached)" in configure output.
58297
58298 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58299
58300         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
58301         test for conforming inttypes.h is both announced and cached.
58302
58303         * MODULES.html.sh (seen_modules, seen_files): New variables.
58304         (func_module): Rewrite to use a few less gnulib-tool and sed
58305         invocations.  Avoid a couple of quadratic algorithms for ...
58306         (missed_modules, missed_files): ... these, with ...
58307         (func_append, func_tmpdir): ... these new functions, from
58308         gnulib-tool.  Analogously, install traps for cleanup.
58309
58310         * tests/test-gc.c (main): Remove unused variables.
58311         * tests/test-read-file.c: Include stdlib.h, for 'free'.
58312
58313 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
58314
58315         * modules/inttostr (License): Change to LGPL.
58316
58317 2006-11-14  Eric Blake  <ebb9@byu.net>
58318
58319         * modules/tempname (License): Change to LGPL.
58320
58321 2006-11-14  Eric Blake  <ebb9@byu.net>
58322
58323         * doc/functions.texi (Function Portability): *printf functions on
58324         Cygwin now understand all POSIX size specifiers.
58325
58326 2006-11-14  Bruno Haible  <bruno@clisp.org>
58327
58328         * modules/c-ctype (License): Change to LGPL.
58329
58330 2006-11-12  Bruno Haible  <bruno@clisp.org>
58331
58332         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58333         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
58334         for GNOME libraries, for which the include files are installed in
58335         subdirectories of $prefix/include.
58336
58337 2006-11-12  Bruno Haible  <bruno@clisp.org>
58338
58339         * m4/lib-link.m4: Require at least autoconf-2.54.
58340         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
58341         name to underscores for the --with option.
58342
58343 2006-11-13  Bruno Haible  <bruno@clisp.org>
58344
58345         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
58346         the tests directory.
58347         Reported by Ralf Wildenhues.
58348
58349 2006-11-13  Bruno Haible  <bruno@clisp.org>
58350
58351         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
58352         (func_emit_initmacro_end): Undo the override here.
58353         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
58354         Works around the famous automake error in coreutils.
58355
58356 2006-11-13  Eric Blake  <ebb9@byu.net>
58357
58358         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
58359         element, not its node.
58360
58361 2006-11-12  Bruno Haible  <bruno@clisp.org>
58362
58363         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
58364         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
58365
58366 2006-11-12  Bruno Haible  <bruno@clisp.org>
58367
58368         * gnulib-tool: New option --local-symlink.
58369         (func_usage): Document it.
58370         (lsymbolic): New variable.
58371         (func_import, func_create_testdir): If --symlink was not specified,
58372         test whether --local-symlink was specified and the file comes from
58373         the local_gnulib_dir.
58374
58375 2006-11-12  Bruno Haible  <bruno@clisp.org>
58376
58377         * gnulib-tool (func_ln): New function.
58378         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
58379
58380 2006-11-12  Bruno Haible  <bruno@clisp.org>
58381
58382         Finish support for source files in subdirectories.
58383         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
58384         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
58385         AUTOMAKE_OPTIONS.
58386         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
58387
58388 2006-11-12  Bruno Haible  <bruno@clisp.org>
58389
58390         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58391         EXTRA_lib_SOURCES augmentation.
58392         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
58393
58394 2006-11-12  Jim Meyering  <jim@meyering.net>
58395
58396         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
58397         file descriptors.  This also averts a failure on systems with
58398         native openat support when a traversed directory lacks "x" access.
58399         * lib/fts_.h: Include "i-ring.h"
58400         (struct FTS) [fts_fd_ring]: New member.
58401         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
58402         (FCHDIR): Add parentheses.
58403         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
58404         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
58405         When descending, rather than simply closing the previous
58406         fts_cwd_fd value, push that file descriptor onto the ring.
58407         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
58408         (fts_open): Initialize the new fd_ring member.
58409         (fts_close): Clear the ring.
58410         (fts_safe_changedir): When possible, use our new fd_ring to skip
58411         the diropen and fstat and dev/ino comparison that would normally
58412         accompany a virtual `chdir ("..")'.
58413
58414         * modules/fts (Depends-on): Add i-ring.
58415         * modules/i-ring: New module.
58416         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
58417         * m4/i-ring.m4: New file.
58418
58419 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58420
58421         * gnulib-tool (func_create_testdir): Fix replacement of
58422         `build-aux' in configure.ac.  Run autotools in gltests
58423         subdirectory.
58424         (func_create_testdir, func_create_megatestdir, test): There is
58425         no need for '--force' in most autotool invocations in a new
58426         tree.  Actually fail the whole test if any of the tools, or the
58427         configure or make stages fail.
58428
58429         Sync from Automake.
58430         * build-aux/gnupload: Revert last change.  Add pointer to upload
58431         instructions of the GNU Maintenance Instructions.
58432         Suggestion by Karl Berry.
58433
58434 2006-11-10  Jim Meyering  <jim@meyering.net>
58435
58436         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
58437
58438 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58439
58440         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
58441         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
58442         (bind_textdomain_codeset) [! ENABLE_NLS]:
58443         Evaluate all the arguments.  That way, callers get compatible behavior
58444         if the arguments have side effects.  Also, it avoids some GCC
58445         diagnostics in some cases; Joel E. Denny reported problems when Bison
58446         was configured with --enable-gcc-warnigs.
58447
58448 2006-11-10  Jim Meyering  <jim@meyering.net>
58449
58450         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
58451         relevant options in CFLAGS (like -O, -fno-inline) are taken into
58452         account.
58453
58454 2006-11-10  Jim Meyering  <jim@meyering.net>
58455
58456         * modules/inline: New file/module.
58457         * modules/xalloc (Files): Remove m4/inline.m4.
58458         (Depends-on): Add inline, instead.
58459         * modules/oset: Likewise.
58460         * modules/list: Likewise.
58461
58462 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58463
58464         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
58465         Problem reported by Matthew Woehlke.
58466
58467 2006-11-09  Bruno Haible  <bruno@clisp.org>
58468
58469         * lib/tempname.c (gen_tempname): Remove variant that invokes
58470         __gen_tempname.
58471         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
58472         __gen_tempname.
58473
58474 2006-11-08  Bruno Haible  <bruno@clisp.org>
58475
58476         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
58477         to 'yes' instead of 'cross-compiling'.
58478
58479 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
58480
58481         * lib/quotearg.h (quotearg_free): New decl.
58482         * lib/quotearg.c (quotearg_free): New function.
58483         (slot0, nslots, slotvec0, slotvec):
58484         Now file-scope so that quotearg_free can get at them.
58485
58486 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58487
58488         Sync from Automake.
58489         * build-aux/gnupload: Add missing 'gnu' to example URL.
58490         Report by Karl Berry.
58491
58492 2006-11-08  Bruno Haible  <bruno@clisp.org>
58493
58494         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
58495         Suggested by Paul Eggert.
58496
58497 2006-11-08  Jim Meyering  <jim@meyering.net>
58498
58499         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
58500         It's already included if !_LIBC.
58501         (fts_safe_changedir): Add a comment.
58502
58503 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
58504
58505         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
58506         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
58507         Matthew Woehlke.
58508
58509         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
58510         definitions up, to avoid colliding with change below.
58511         (static_inline) [HAVE_INLINE]: New macro.
58512         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
58513         Provide extern decls when !HAVE_INLINE.  Do not define unless
58514         static_inline is defined, either by us or by xmalloc.c.  Use
58515         static_inline rather than static inline.
58516         (XCALLOC): Optimize sizeof(T) = 1 case.
58517         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
58518
58519 2006-11-07  Bruno Haible  <bruno@clisp.org>
58520
58521         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
58522         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
58523         AC_C_INLINE.
58524         * modules/xalloc (Files): Add m4/inline.m4.
58525
58526 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58527
58528         * README: Fix typo.
58529         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
58530         (Miscellanous Notes): ...from this.
58531
58532 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
58533
58534         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
58535         Mention that offsetof should be used instead of sizeof.
58536         From Bruno Haible.
58537
58538 2006-11-07  Bruno Haible  <bruno@clisp.org>
58539
58540         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
58541
58542 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
58543
58544         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
58545         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
58546         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
58547         (gl_tree_add_before, gl_tree_add_after):
58548         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
58549         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
58550         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58551         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
58552         (gl_linked_add_after, gl_linked_add_at): Likewise.
58553         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
58554         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
58555         (gl_tree_add_before, gl_tree_add_after): Likewise.
58556         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
58557         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
58558         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
58559
58560 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58561
58562         * lib/gl_oset.h: Use C comment style, not C++ comment style.
58563
58564 2006-11-06  Bruno Haible  <bruno@clisp.org>
58565
58566         * m4/inline.m4: New file.
58567         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
58568         * modules/list (Files): Add m4/inline.m4.
58569         * modules/oset (Files): Likewise.
58570
58571 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
58572
58573         * lib/idcache.c: Include <stddef.h>, for offsetof.
58574         (struct userid.name): Change from char * to a flexible array member.
58575         All uses changed.
58576         * modules/idcache (Depends-on): Add flexmember.
58577
58578         * MODULES.html.sh (Core language properties): New module flexmember.
58579         * modules/flexmember, m4/flexmember.m4: New files.
58580
58581         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
58582         inline functions that are identical with the old xnmalloc_inline,
58583         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
58584         that we can avoid some unnecessary integer multiplications and
58585         divisions in the common case where the element size is known at
58586         compile time.
58587         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
58588         needed.
58589         (xnboundedmalloc): Remove.
58590         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
58591         arguments, for consistency with rest of this header.
58592         (xcharalloc): Rewrite using XNMALLOC.
58593         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
58594         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
58595         versions have been moved to lib/xalloc.h and renamed to be the
58596         non-*_inline versions.
58597         (xmalloc, xrealloc): Implement without reference to the xnmalloc
58598         and xnrealloc functions, since those functions are now inline and
58599         now call us.
58600         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
58601         renaming described above.
58602         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
58603         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
58604         captures the dependency in AC_C_INLINE.
58605
58606         New module canonicalize-lgpl, proposed by Charles Wilson in
58607         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
58608         with a few small changes afterwards.
58609         * MODULES.html.sh (File system functions): New module
58610         canonicalize-lgpl.
58611         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
58612         and canonicalize_file_name.
58613         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
58614         * modules/canonicalize-lgpl: New files.
58615
58616 2006-11-05  Bruno Haible  <bruno@clisp.org>
58617
58618         * gnulib-tool (func_import, func_create_testdir): Create directories
58619         also for files in subdirectories of lib/.
58620
58621 2006-11-05  Bruno Haible  <bruno@clisp.org>
58622
58623         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
58624         ANSI C compliant.
58625
58626 2006-11-03  Bruno Haible  <bruno@clisp.org>
58627
58628         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
58629         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
58630         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
58631         (xnboundedmalloc): New inline function.
58632         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
58633         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
58634         xmalloc.
58635         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
58636         xmalloc.
58637         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
58638         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
58639         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
58640         xmalloc.
58641         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
58642         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
58643         xmalloc.
58644         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
58645         gl_tree_add_after): Use XMALLOC instead of xmalloc.
58646         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
58647         xmalloc.
58648         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
58649         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
58650         gl_tree_add_after): Use XMALLOC instead of xmalloc.
58651         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
58652         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
58653         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
58654         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
58655
58656 2006-11-03  Bruno Haible  <bruno@clisp.org>
58657
58658         * lib/c-ctype.h [C++]: Define functions without name mangling.
58659         * lib/fwriteerror.h [C++]: Likewise.
58660         * lib/gcd.h [C++]: Likewise.
58661         * lib/linebreak.h [C++]: Likewise.
58662
58663 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
58664
58665         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
58666         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
58667         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
58668         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
58669         Check for functions and headers just once.
58670         Check for declaration of canonicalize_file_name.
58671         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
58672
58673 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58674
58675         * gnulib-tool (func_import): Fix typo in actioncmd.
58676
58677 2006-11-02  Bruno Haible  <bruno@clisp.org>
58678
58679         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
58680         newline sequence in the Makefile.am snippet as a space, like "make"
58681         does.
58682         Reported by Roger Persson <perrog@gmail.com>.
58683
58684 2006-11-01  Bruno Haible  <bruno@clisp.org>
58685
58686         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
58687         already declared in <string.h>.
58688         * lib/strcase.h (strncasecmp): Don't declare it if yes.
58689
58690 2006-11-01  Bruno Haible  <bruno@clisp.org>
58691
58692         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
58693         * lib/strcase.h: Include <string.h>.
58694         (strcasecmp): Define to rpl_strcasecmp here.
58695
58696 2006-11-01  Bruno Haible  <bruno@clisp.org>
58697
58698         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
58699
58700 2006-11-01  Eric Blake  <ebb9@byu.net>
58701
58702         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
58703
58704         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
58705
58706 2006-10-29  Bruno Haible  <bruno@clisp.org>
58707
58708         Make it compile in C++ mode.
58709         * lib/full-write.c (full_rw): Add a cast.
58710
58711 2006-11-01  Bruno Haible  <bruno@clisp.org>
58712
58713         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
58714         be POSIX compliant.
58715         Reported by Roger Persson <perrog@gmail.com>.
58716
58717 2006-11-01  Eric Blake  <ebb9@byu.net>
58718
58719         * lib/getopt_.h: Fix comments.
58720
58721 2006-10-31  Eric Blake  <ebb9@byu.net>
58722
58723         * modules/tmpdir (Depends-on): Add sys_stat.
58724         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
58725         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
58726         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
58727         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
58728         tempname.
58729
58730 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
58731
58732         Avoid some C++ diagnostics reported by Bruno Haible.
58733         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
58734         xmalloc.
58735         (quotearg_alloc): Use xcharalloc rather than xmalloc.
58736         (struct slotvec): Move to top level.
58737         (quotearg_n_options): Rewrite to avoid xmalloc.
58738         * lib/xalloc.h (xcharalloc): New function.
58739         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
58740         [defined __cplusplus]: Add function template that provides result
58741         type propagation.  This part of the change is from Bruno Haible.
58742
58743 2006-10-29  Bruno Haible  <bruno@clisp.org>
58744
58745         Make it compile in C++ mode.
58746         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
58747         * lib/strnlen1.c (strnlen1): Cast memchr result.
58748         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
58749         * lib/clean-temp.c (string_equals, string_hash): Add casts.
58750         (create_temp_dir): Rename local variable 'template'.
58751         (compile_csharp_using_sscli): Add cast.
58752         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
58753         * lib/findprog.c (find_in_path): Likewise.
58754         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
58755         * lib/wait-process.c (register_slave_subprocess): Likewise.
58756
58757 2006-10-22  Bruno Haible  <bruno@clisp.org>
58758
58759         * modules/tsearch: New file.
58760         * lib/tsearch.h: New file.
58761         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
58762         * m4/tsearch.m4: New file.
58763         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
58764
58765 2006-10-29  Eric Blake  <ebb9@byu.net>
58766
58767         * lib/arcfour.c: Assume config.h.
58768         * lib/arctwo.c: Likewise.
58769         * lib/base64.c: Likewise.
58770         * lib/check-version.c: Likewise.
58771         * lib/crc.c: Likewise.
58772         * lib/des.c: Likewise.
58773         * lib/gc-gnulib.c: Likewise.
58774         * lib/gc-libgcrypt.c: Likewise.
58775         * lib/gc-pbkdf2-sha1.c: Likewise.
58776         * lib/getaddrinfo.c: Likewise.
58777         * lib/getdelim.c: Likewise.
58778         * lib/getline.c: Likewise.
58779         * lib/hmac-md5.c: Likewise.
58780         * lib/hmac-sha1.c: Likewise.
58781         * lib/iconvme.c: Likewise.
58782         * lib/md2.c: Likewise.
58783         * lib/md4.c: Likewise.
58784         * lib/memxor.c: Likewise.
58785         * lib/read-file.c: Likewise.
58786         * lib/readline.c: Likewise.
58787         * lib/rijndael-alg-fst.c: Likewise.
58788         * lib/rijndael-api-fst.c: Likewise.
58789         * lib/xgetdomainname.c: Likewise.
58790
58791 2006-10-28  Eric Blake  <ebb9@byu.net>
58792
58793         * lib/xstrndup.c: Assume config.h.
58794
58795 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
58796
58797         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
58798         stat-macros.h is now for our own macros, whereas stat_h is for
58799         macros in the <sys/stat.h> name space.
58800         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
58801         (STAT_MACROS_H): Remove.
58802         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
58803         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
58804         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
58805         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
58806         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
58807         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
58808         Move these macros to ...
58809         * lib/stat_.h: here.  Don't include stat-macros.h.
58810         * lib/canonicalize.c: Don't include stat-macros.h.
58811         * lib/chown.c: Likewise.
58812         * lib/euidaccess.c: Likewise.
58813         * lib/file-type.c: Likewise.
58814         * lib/filemode.c: Likewise.
58815         * lib/glob.c: Likewise.
58816         * lib/isapipe.c: Likewise.
58817         * lib/lchown.c: Likewise.
58818         * lib/lstat.c: Likewise.
58819         * lib/mkdir-p.c: Likewise.
58820         * lib/rmdir.c: Likewise.
58821         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
58822         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
58823         unless mkdir isn't declared, to speed up 'configure'.
58824         Always create sys/stat.h, since it's unlikely any real sys/stat.h
58825         would define all the S_* symbols.
58826         * modules/canonicalize (Depends-on):
58827         Depend on sys_stat, not stat-macros.
58828         * modules/chown: Likewise.
58829         * modules/euidaccess: Likewise.
58830         * modules/filemode: Likewise.
58831         * modules/file-type: Likewise.
58832         * modules/glob: Likewise.
58833         * modules/isapipe: Likewise.
58834         * modules/lchown: Likewise.
58835         * modules/lstat: Likewise.
58836         * modules/mkancesdirs: Likewise.
58837         * modules/rmdir: Likewise.
58838         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
58839         * modules/modechange: Likewise.
58840         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
58841         (configure.ac): Remove gl_STAT_MACROS.
58842         * modules/sys_stat (Depends-on): Remove stat-macros.
58843
58844 2006-10-27  Bruno Haible  <bruno@clisp.org>
58845
58846         * m4/signed.m4: Remove file.
58847         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
58848         invocation.
58849         * modules/vasnprintf (Files): Remove m4/signed.m4.
58850
58851 2006-10-27  Bruno Haible  <bruno@clisp.org>
58852
58853         Update to GNU gettext 0.16.
58854         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
58855         m4/inttypes-h.m4, m4/signed.m4.
58856         * m4/gettext.m4: Update to GNU gettext 0.16.
58857         * m4/intl.m4: New file, from GNU gettext.
58858         * m4/intldir.m4: New file, from GNU gettext.
58859         * config/srclist.txt: Update
58860
58861 2006-10-27  Eric Blake  <ebb9@byu.net>
58862
58863         * MODULES.html.sh: Document tempname.
58864         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
58865         dependencies.
58866         (Files): Move lib/tempname.c...
58867         * modules/tempname: ...to this new module.
58868         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
58869         (gl_PREREQ_TEMPNAME): Move...
58870         * m4/tempname.m4: ...to this new file.
58871         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
58872         * modules/sys_stat (Depends-on): Add stat-macros.
58873         * lib/stat_.h (includes): Pick up stat macros.
58874         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
58875         if stat macros are broken.
58876         * lib/tempname.c (includes): No need to include "stat-macros.h".
58877         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
58878         (direxists, __path_search) [!_LIBC]: Don't compile these in
58879         gnulib; the tmpdir module covers that.
58880         * lib/tempname.h: New file.
58881
58882 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
58883
58884         * COPYING: Explain how gnulib-tool converts licence headers.
58885         Almost all wording by Eric Blake.
58886
58887 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
58888
58889         * lib/mbchar.h (is_basic_table): Make read-only.
58890         * lib/mbchar.c (is_basic_table): Likewise.
58891         Reported by John Darrington.
58892
58893 2006-10-25  Bruno Haible  <bruno@clisp.org>
58894
58895         * lib/progname.h (set_program_name): Undefine before defining.
58896
58897 2006-10-25  Bruno Haible  <bruno@clisp.org>
58898
58899         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
58900         false for non-gcc C++ compilers.
58901         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58902
58903 2006-10-24  Bruno Haible  <bruno@clisp.org>
58904
58905         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
58906         iconv implementations like Irix iconv.
58907
58908 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58909
58910         * modules/vararrays: New file.
58911         * m4/vararrays.m4: New file, taken from diffutils.
58912         * MODULES.html.sh: New module vararrays.
58913
58914 2006-10-24  Karl Berry  <karl@gnu.org>
58915
58916         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
58917         Don't call GNU Unix.
58918
58919 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58920
58921         * users.txt: Add Libtool.
58922
58923         Sync from Libtool:
58924
58925         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58926
58927         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
58928         to gnulib's policy of including config.h unconditionally.
58929
58930 2006-10-24  Bruno Haible  <bruno@clisp.org>
58931
58932         * modules/wcwidth (Files): Add m4/wint_t.m4.
58933         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
58934         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
58935
58936 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58937
58938         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
58939         to pacify GCC with some -W flags enabled.  Problem reported by
58940         Bruno Haible.
58941
58942 2006-10-24  Jim Meyering  <jim@meyering.net>
58943
58944         * MODULES.html.sh: Remove uinttostr.  It's not a module.
58945         Reported by Karl Berry.
58946
58947 2006-10-23  Bruno Haible  <bruno@clisp.org>
58948
58949         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
58950
58951 2006-10-24  Bruno Haible  <bruno@clisp.org>
58952
58953         * lib/gl_list.h: Use C comment style, not C++ comment style.
58954
58955 2006-10-23  Eric Blake  <ebb9@byu.net>
58956
58957         * lib/getaddrinfo.c (includes): Add missing include.
58958
58959 2006-10-23  Bruno Haible  <bruno@clisp.org>
58960             Paul Eggert  <eggert@cs.ucla.edu>
58961
58962         Ability to rename obstack_free.
58963         * lib/obstack.h (__obstack_free): New macro. Declare instead of
58964         obstack_free.
58965         (obstack_free): Invoke the __obstack_free macro.
58966         * lib/obstack.c (obstack_free): Use __obstack_free macro.
58967
58968 2006-10-23  Bruno Haible  <bruno@clisp.org>
58969             Paul Eggert  <eggert@cs.ucla.edu>
58970
58971         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
58972         __argc, __argv from the declaration. (They are defined as macros on
58973         mingw.)
58974
58975 2006-10-22  Bruno Haible  <bruno@clisp.org>
58976
58977         * doc/gnulib-intro.texi: New file.
58978         * doc/gnulib.texi: Include it.
58979
58980 2006-10-21  Bruno Haible  <bruno@clisp.org>
58981
58982         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
58983         "Introduction", "Miscellanous Notes", "Particular Modules".
58984
58985 2006-10-21  Bruno Haible  <bruno@clisp.org>
58986
58987         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58988         Change mostlyclean-local rule to avoid sh syntax error from bash
58989         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
58990
58991 2006-10-23  Jim Meyering  <jim@meyering.net>
58992
58993         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
58994         in place of snprintf.
58995
58996         * modules/inttostr (Files): Add lib/uinttostr.c.
58997         * lib/uinttostr.c (inttostr): New file/function.
58998         * lib/inttostr.h (uinttostr): Declare.
58999         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
59000         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
59001         Add uinttostr.
59002         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
59003
59004 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59005
59006         * lib/canonicalize.c (ELOOP): Define if not already defined.
59007         Problem reported by Bruno Haible in
59008         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
59009
59010 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59011
59012         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
59013         Problem reported by Perry Smith and Ville Laurikari.
59014
59015         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
59016         uses.
59017
59018 2006-10-19  Bruno Haible  <bruno@clisp.org>
59019
59020         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
59021         for mingw.
59022
59023 2006-10-19  Bruno Haible  <bruno@clisp.org>
59024
59025         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
59026         Needed for mingw.
59027
59028 2006-10-19  Bruno Haible  <bruno@clisp.org>
59029
59030         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
59031
59032 2006-10-19  Bruno Haible  <bruno@clisp.org>
59033
59034         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
59035         it.
59036
59037 2006-10-19  Bruno Haible  <bruno@clisp.org>
59038
59039         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
59040         invocation.
59041
59042 2006-10-19  Bruno Haible  <bruno@clisp.org>
59043
59044         * gnulib-tool (func_create_testdir): Don't include ftruncate and
59045         mountlist by default.
59046
59047 2006-10-16  Bruno Haible  <bruno@clisp.org>
59048
59049         * lib/c-strstr.c: Include c-strstr.h.
59050
59051 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59052
59053         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
59054         in a slash.
59055
59056 2006-10-18  Bruno Haible  <bruno@clisp.org>
59057
59058         * lib/lock.h [C++]: Wrap definitions in extern "C".
59059
59060 2006-10-18  Bruno Haible  <bruno@clisp.org>
59061
59062         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
59063         gl_LIBOBJS list.
59064
59065 2006-10-18  Bruno Haible  <bruno@clisp.org>
59066
59067         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
59068
59069 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
59070
59071         * lib/xstrtol.h: Include gettext.h.
59072         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
59073         Problem reported by Eric Blake.
59074         * modules/xstrtol (Depends-on): Add gettext-h.
59075
59076 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
59077
59078         * lib/strftime.c (advance): New macro.
59079         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
59080         incomplete type, so you can't add 0 to it.  Problem and patch
59081         reported by Eelco Dolstra for dietlibc.
59082
59083 2006-10-18  Jim Meyering  <jim@meyering.net>
59084
59085         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
59086         type for a local, and rename it: s/up/user_proc/.
59087
59088 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59089
59090         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
59091         READ_UTMP_USER_PROCESS.
59092         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
59093
59094 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59095
59096         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
59097         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
59098
59099 2006-10-17  Eric Blake  <ebb9@byu.net>
59100
59101         * lib/sigprocmask.c (sigprocmask): Fix typo.
59102
59103         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
59104
59105         * modules/clean-temp (Makefile.am): Don't add to make output...
59106         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
59107         config.h.
59108
59109 2006-10-17  Bruno Haible  <bruno@clisp.org>
59110
59111         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
59112         differently if DEFAULT_TEXT_DOMAIN is set.
59113
59114 2006-10-16  Bruno Haible  <bruno@clisp.org>
59115
59116         * lib/clean-temp.c: Include fwriteerror.h.
59117
59118 2006-10-16  Bruno Haible  <bruno@clisp.org>
59119
59120         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
59121
59122 2006-10-16  Bruno Haible  <bruno@clisp.org>
59123
59124         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
59125         * lib/sigprocmask.h: Include <sys/types.h>.
59126         (sigset_t): Use the system's definition if present.
59127
59128 2006-10-17  Eric Blake  <ebb9@byu.net>
59129
59130         * lib/xvasprintf.c (includes): Assume config.h.
59131         * lib/xasprintf.c (includes): Likewise.
59132
59133 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59134
59135         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
59136         at least as wide as intmax_t.
59137
59138 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
59139
59140         (Imported from Automake.)
59141         * build-aux/gnupload: Update to version 1.1 of directive file.
59142
59143 2006-10-16  Eric Blake  <ebb9@byu.net>
59144
59145         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
59146         match Automake 1.10a.
59147
59148 2006-10-14  Bruno Haible  <bruno@clisp.org>
59149
59150         * modules/sigprocmask: New file.
59151         * lib/sigprocmask.h: New file.
59152         * lib/sigprocmask.c: New file.
59153         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
59154         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
59155         request sigprocmask.o.
59156         (gl_PREREQ_SIGPROCMASK): New macro.
59157         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
59158         (Depends-on): Add sigprocmask.
59159         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
59160         gt_SIGNALBLOCKING. Test for 'raise' only once.
59161         * lib/fatal-signal.c: Include sigprocmask.h.
59162         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
59163         unblock_fatal_signals): Define always.
59164         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59165         sigprocmask.
59166
59167 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59168
59169         Sync from Automake.
59170         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
59171         which incorrectly sets the mode of an existing destination
59172         directory.  In some cases the unpatched install-sh could do the
59173         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
59174         system.  We hope this is rare in practice, but it's clearly worth
59175         fixing.  Problem reported by Alex Unleashed in
59176         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
59177         Also, don't bother to check for -m bugs unless we're using -m;
59178         suggested by Stepan Kasal.
59179
59180 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59181
59182         Sync from Automake.
59183         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
59184         `-c' flag, so they appear at the same position as in %FASTDEP%
59185         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
59186         which ignores unknown options only after the first non-option.
59187         Bug report against M4 by Nelson H. F. Beebe.
59188
59189 2006-10-13  Jim Meyering  <jim@meyering.net>
59190
59191         Fix a bug in yesterday's change.
59192         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
59193         p->fts_statp->st_dev would be used uninitialized.
59194         Ensures that we always call fts_stat on the very first entry.
59195         Miklos Szeredi reported that find -xdev stopped working.
59196
59197 2006-10-12  Bruno Haible  <bruno@clisp.org>
59198
59199         * gnulib-tool (func_get_automake_snippet): Append an automatically
59200         computed EXTRA_DIST augmentation.
59201         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
59202         * modules/alloca-opt (Makefile.am): Likewise.
59203         * modules/allocsa (Makefile.am): Likewise.
59204         * modules/arcfour (Makefile.am): Likewise.
59205         * modules/arctwo (Makefile.am): Likewise.
59206         * modules/argmatch (Makefile.am): Likewise.
59207         * modules/argz (Makefile.am): Likewise.
59208         * modules/atexit (Makefile.am): Likewise.
59209         * modules/backupfile (Makefile.am): Likewise.
59210         * modules/byteswap (Makefile.am): Likewise.
59211         * modules/c-strtod (Makefile.am): Likewise.
59212         * modules/c-strtold (Makefile.am): Likewise.
59213         * modules/calloc (Makefile.am): Likewise.
59214         * modules/canon-host (Makefile.am): Likewise.
59215         * modules/canonicalize (Makefile.am): Likewise.
59216         * modules/chdir-long (Makefile.am): Likewise.
59217         * modules/chdir-safer (Makefile.am): Likewise.
59218         * modules/check-version (Makefile.am): Likewise.
59219         * modules/chown (Makefile.am): Likewise.
59220         * modules/cloexec (Makefile.am): Likewise.
59221         * modules/close-stream (Makefile.am): Likewise.
59222         * modules/closeout (Makefile.am): Likewise.
59223         * modules/crc (Makefile.am): Likewise.
59224         * modules/csharpexec (Makefile.am): Likewise.
59225         * modules/cycle-check (Makefile.am): Likewise.
59226         * modules/des (Makefile.am): Likewise.
59227         * modules/dev-ino (Makefile.am): Likewise.
59228         * modules/dirfd (Makefile.am): Likewise.
59229         * modules/dirname (Makefile.am): Likewise.
59230         * modules/dup2 (Makefile.am): Likewise.
59231         * modules/eealloc (Makefile.am): Likewise.
59232         * modules/error (Makefile.am): Likewise.
59233         * modules/euidaccess (Makefile.am): Likewise.
59234         * modules/exclude (Makefile.am): Likewise.
59235         * modules/exitfail (Makefile.am): Likewise.
59236         * modules/fcntl-safer (Makefile.am): Likewise.
59237         * modules/fcntl (Makefile.am): Likewise.
59238         * modules/file-type (Makefile.am): Likewise.
59239         * modules/fileblocks (Makefile.am): Likewise.
59240         * modules/filemode (Makefile.am): Likewise.
59241         * modules/filenamecat (Makefile.am): Likewise.
59242         * modules/fnmatch (Makefile.am): Likewise.
59243         * modules/fopen-safer (Makefile.am): Likewise.
59244         * modules/fpending (Makefile.am): Likewise.
59245         * modules/fprintftime (Makefile.am): Likewise.
59246         * modules/free (Makefile.am): Likewise.
59247         * modules/fsusage (Makefile.am): Likewise.
59248         * modules/ftruncate (Makefile.am): Likewise.
59249         * modules/fts (Makefile.am): Likewise.
59250         * modules/gc-arcfour (Makefile.am): Likewise.
59251         * modules/gc-des (Makefile.am): Likewise.
59252         * modules/gc-hmac-md5 (Makefile.am): Likewise.
59253         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
59254         * modules/gc-md4 (Makefile.am): Likewise.
59255         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59256         * modules/gc-sha1 (Makefile.am): Likewise.
59257         * modules/gc (Makefile.am): Likewise.
59258         * modules/getaddrinfo (Makefile.am): Likewise.
59259         * modules/getcwd (Makefile.am): Likewise.
59260         * modules/getdelim (Makefile.am): Likewise.
59261         * modules/getdomainname (Makefile.am): Likewise.
59262         * modules/getgroups (Makefile.am): Likewise.
59263         * modules/gethostname (Makefile.am): Likewise.
59264         * modules/gethrxtime (Makefile.am): Likewise.
59265         * modules/getline (Makefile.am): Likewise.
59266         * modules/getloadavg (Makefile.am): Likewise.
59267         * modules/getlogin_r (Makefile.am): Likewise.
59268         * modules/getndelim2 (Makefile.am): Likewise.
59269         * modules/getopt (Makefile.am): Likewise.
59270         * modules/getpagesize (Makefile.am): Likewise.
59271         * modules/getpass-gnu (Makefile.am): Likewise.
59272         * modules/getpass (Makefile.am): Likewise.
59273         * modules/getsubopt (Makefile.am): Likewise.
59274         * modules/gettime (Makefile.am): Likewise.
59275         * modules/gettimeofday (Makefile.am): Likewise.
59276         * modules/getugroups (Makefile.am): Likewise.
59277         * modules/getusershell (Makefile.am): Likewise.
59278         * modules/glob (Makefile.am): Likewise.
59279         * modules/group-member (Makefile.am): Likewise.
59280         * modules/hard-locale (Makefile.am): Likewise.
59281         * modules/hash (Makefile.am): Likewise.
59282         * modules/hmac-md5 (Makefile.am): Likewise.
59283         * modules/hmac-sha1 (Makefile.am): Likewise.
59284         * modules/human (Makefile.am): Likewise.
59285         * modules/idcache (Makefile.am): Likewise.
59286         * modules/imaxabs (Makefile.am): Likewise.
59287         * modules/imaxdiv (Makefile.am): Likewise.
59288         * modules/inet_ntop (Makefile.am): Likewise.
59289         * modules/inet_pton (Makefile.am): Likewise.
59290         * modules/intprops (Makefile.am): Likewise.
59291         * modules/inttostr (Makefile.am): Likewise.
59292         * modules/inttypes (Makefile.am): Likewise.
59293         * modules/isapipe (Makefile.am): Likewise.
59294         * modules/javaversion (Makefile.am): Likewise.
59295         * modules/lchmod (Makefile.am): Likewise.
59296         * modules/lchown (Makefile.am): Likewise.
59297         * modules/localcharset (Makefile.am): Likewise.
59298         * modules/long-options (Makefile.am): Likewise.
59299         * modules/lstat (Makefile.am): Likewise.
59300         * modules/malloc (Makefile.am): Likewise.
59301         * modules/mathl (Makefile.am): Likewise.
59302         * modules/mbchar (Makefile.am): Likewise.
59303         * modules/md2 (Makefile.am): Likewise.
59304         * modules/md4 (Makefile.am): Likewise.
59305         * modules/md5 (Makefile.am): Likewise.
59306         * modules/memcasecmp (Makefile.am): Likewise.
59307         * modules/memchr (Makefile.am): Likewise.
59308         * modules/memcmp (Makefile.am): Likewise.
59309         * modules/memcoll (Makefile.am): Likewise.
59310         * modules/memcpy (Makefile.am): Likewise.
59311         * modules/memmem (Makefile.am): Likewise.
59312         * modules/memmove (Makefile.am): Likewise.
59313         * modules/mempcpy (Makefile.am): Likewise.
59314         * modules/memrchr (Makefile.am): Likewise.
59315         * modules/memset (Makefile.am): Likewise.
59316         * modules/memxor (Makefile.am): Likewise.
59317         * modules/mkancesdirs (Makefile.am): Likewise.
59318         * modules/mkdir-p (Makefile.am): Likewise.
59319         * modules/mkdir (Makefile.am): Likewise.
59320         * modules/mkdtemp (Makefile.am): Likewise.
59321         * modules/mkstemp (Makefile.am): Likewise.
59322         * modules/mktime (Makefile.am): Likewise.
59323         * modules/modechange (Makefile.am): Likewise.
59324         * modules/mountlist (Makefile.am): Likewise.
59325         * modules/nanosleep (Makefile.am): Likewise.
59326         * modules/obstack (Makefile.am): Likewise.
59327         * modules/openat (Makefile.am): Likewise.
59328         * modules/pagealign_alloc (Makefile.am): Likewise.
59329         * modules/pathmax (Makefile.am): Likewise.
59330         * modules/physmem (Makefile.am): Likewise.
59331         * modules/poll (Makefile.am): Likewise.
59332         * modules/posixtm (Makefile.am): Likewise.
59333         * modules/posixver (Makefile.am): Likewise.
59334         * modules/putenv (Makefile.am): Likewise.
59335         * modules/quote (Makefile.am): Likewise.
59336         * modules/quotearg (Makefile.am): Likewise.
59337         * modules/raise (Makefile.am): Likewise.
59338         * modules/read-file (Makefile.am): Likewise.
59339         * modules/readline (Makefile.am): Likewise.
59340         * modules/readlink (Makefile.am): Likewise.
59341         * modules/readtokens (Makefile.am): Likewise.
59342         * modules/readutmp (Makefile.am): Likewise.
59343         * modules/realloc (Makefile.am): Likewise.
59344         * modules/regex (Makefile.am): Likewise.
59345         * modules/rename-dest-slash (Makefile.am): Likewise.
59346         * modules/rename (Makefile.am): Likewise.
59347         * modules/rijndael (Makefile.am): Likewise.
59348         * modules/rmdir (Makefile.am): Likewise.
59349         * modules/rpmatch (Makefile.am): Likewise.
59350         * modules/safe-read (Makefile.am): Likewise.
59351         * modules/safe-write (Makefile.am): Likewise.
59352         * modules/same-inode (Makefile.am): Likewise.
59353         * modules/same (Makefile.am): Likewise.
59354         * modules/save-cwd (Makefile.am): Likewise.
59355         * modules/savedir (Makefile.am): Likewise.
59356         * modules/setenv (Makefile.am): Likewise.
59357         * modules/settime (Makefile.am): Likewise.
59358         * modules/sha1 (Makefile.am): Likewise.
59359         * modules/sig2str (Makefile.am): Likewise.
59360         * modules/snprintf (Makefile.am): Likewise.
59361         * modules/stat-macros (Makefile.am): Likewise.
59362         * modules/stat-time (Makefile.am): Likewise.
59363         * modules/stdbool (Makefile.am): Likewise.
59364         * modules/stdint (Makefile.am): Likewise.
59365         * modules/stdlib-safer (Makefile.am): Likewise.
59366         * modules/stpcpy (Makefile.am): Likewise.
59367         * modules/stpncpy (Makefile.am): Likewise.
59368         * modules/strcase (Makefile.am): Likewise.
59369         * modules/strcasestr (Makefile.am): Likewise.
59370         * modules/strchrnul (Makefile.am): Likewise.
59371         * modules/strcspn (Makefile.am): Likewise.
59372         * modules/strdup (Makefile.am): Likewise.
59373         * modules/strerror (Makefile.am): Likewise.
59374         * modules/strftime (Makefile.am): Likewise.
59375         * modules/strndup (Makefile.am): Likewise.
59376         * modules/strnlen (Makefile.am): Likewise.
59377         * modules/strpbrk (Makefile.am): Likewise.
59378         * modules/strsep (Makefile.am): Likewise.
59379         * modules/strstr (Makefile.am): Likewise.
59380         * modules/strtod (Makefile.am): Likewise.
59381         * modules/strtoimax (Makefile.am): Likewise.
59382         * modules/strtok_r (Makefile.am): Likewise.
59383         * modules/strtol (Makefile.am): Likewise.
59384         * modules/strtoll (Makefile.am): Likewise.
59385         * modules/strtoul (Makefile.am): Likewise.
59386         * modules/strtoull (Makefile.am): Likewise.
59387         * modules/strtoumax (Makefile.am): Likewise.
59388         * modules/strverscmp (Makefile.am): Likewise.
59389         * modules/sys_socket (Makefile.am): Likewise.
59390         * modules/sys_stat (Makefile.am): Likewise.
59391         * modules/sysexits (Makefile.am): Likewise.
59392         * modules/time_r (Makefile.am): Likewise.
59393         * modules/timegm (Makefile.am): Likewise.
59394         * modules/timespec (Makefile.am): Likewise.
59395         * modules/tmpfile-safer (Makefile.am): Likewise.
59396         * modules/trim (Makefile.am): Likewise.
59397         * modules/unistd-safer (Makefile.am): Likewise.
59398         * modules/unlinkdir (Makefile.am): Likewise.
59399         * modules/unlocked-io (Makefile.am): Likewise.
59400         * modules/userspec (Makefile.am): Likewise.
59401         * modules/utime (Makefile.am): Likewise.
59402         * modules/utimecmp (Makefile.am): Likewise.
59403         * modules/utimens (Makefile.am): Likewise.
59404         * modules/vasnprintf (Makefile.am): Likewise.
59405         * modules/vasprintf (Makefile.am): Likewise.
59406         * modules/vsnprintf (Makefile.am): Likewise.
59407         * modules/xalloc (Makefile.am): Likewise.
59408         * modules/xgetcwd (Makefile.am): Likewise.
59409         * modules/xnanosleep (Makefile.am): Likewise.
59410         * modules/xreadlink (Makefile.am): Likewise.
59411         * modules/xstrtod (Makefile.am): Likewise.
59412         * modules/xstrtol (Makefile.am): Likewise.
59413         * modules/xstrtold (Makefile.am): Likewise.
59414         * modules/yesno (Makefile.am): Likewise.
59415         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
59416
59417 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59418
59419         * modules/error (Makefile.am): Distribute files through
59420         EXTRA_DIST, not lib_SOURCES.
59421
59422 2006-10-12  Eric Blake  <ebb9@byu.net>
59423
59424         * modules/error (Makefile.am): Distribute files in /lib.
59425         * modules/obstack (Makefile.am): Likewise.
59426
59427 2006-10-12  Bruno Haible  <bruno@clisp.org>
59428
59429         * modules/acl (Makefile.am): Distribute all files in lib/ through
59430         EXTRA_DIST.
59431         * modules/arcfour (Makefile.am): Likewise.
59432         * modules/arctwo (Makefile.am): Likewise.
59433         * modules/argmatch (Makefile.am): Likewise.
59434         * modules/argz (Makefile.am): Likewise.
59435         * modules/atexit (Makefile.am): Likewise.
59436         * modules/backupfile (Makefile.am): Likewise.
59437         * modules/c-strtod (Makefile.am): Likewise.
59438         * modules/c-strtold (Makefile.am): Likewise.
59439         * modules/calloc (Makefile.am): Likewise.
59440         * modules/canon-host (Makefile.am): Likewise.
59441         * modules/canonicalize (Makefile.am): Likewise.
59442         * modules/chdir-long (Makefile.am): Likewise.
59443         * modules/chdir-safer (Makefile.am): Likewise.
59444         * modules/check-version (Makefile.am): Likewise.
59445         * modules/chown (Makefile.am): Likewise.
59446         * modules/cloexec (Makefile.am): Likewise.
59447         * modules/close-stream (Makefile.am): Likewise.
59448         * modules/closeout (Makefile.am): Likewise.
59449         * modules/crc (Makefile.am): Likewise.
59450         * modules/cycle-check (Makefile.am): Likewise.
59451         * modules/des (Makefile.am): Likewise.
59452         * modules/dirfd (Makefile.am): Likewise.
59453         * modules/dirname (Makefile.am): Likewise.
59454         * modules/dup2 (Makefile.am): Likewise.
59455         * modules/euidaccess (Makefile.am): Likewise.
59456         * modules/exclude (Makefile.am): Likewise.
59457         * modules/exitfail (Makefile.am): Likewise.
59458         * modules/fcntl-safer (Makefile.am): Likewise.
59459         * modules/file-type (Makefile.am): Likewise.
59460         * modules/fileblocks (Makefile.am): Likewise.
59461         * modules/filemode (Makefile.am): Likewise.
59462         * modules/filenamecat (Makefile.am): Likewise.
59463         * modules/fnmatch (Makefile.am): Likewise.
59464         * modules/fopen-safer (Makefile.am): Likewise.
59465         * modules/fpending (Makefile.am): Likewise.
59466         * modules/fprintftime (Makefile.am): Likewise.
59467         * modules/free (Makefile.am): Likewise.
59468         * modules/fsusage (Makefile.am): Likewise.
59469         * modules/ftruncate (Makefile.am): Likewise.
59470         * modules/fts (Makefile.am): Likewise.
59471         * modules/gc (Makefile.am): Likewise.
59472         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59473         * modules/getaddrinfo (Makefile.am): Likewise.
59474         * modules/getcwd (Makefile.am): Likewise.
59475         * modules/getdelim (Makefile.am): Likewise.
59476         * modules/getdomainname (Makefile.am): Likewise.
59477         * modules/getgroups (Makefile.am): Likewise.
59478         * modules/gethostname (Makefile.am): Likewise.
59479         * modules/gethrxtime (Makefile.am): Likewise.
59480         * modules/getline (Makefile.am): Likewise.
59481         * modules/getloadavg (Makefile.am): Likewise.
59482         * modules/getlogin_r (Makefile.am): Likewise.
59483         * modules/getopt (Makefile.am): Likewise.
59484         * modules/getpass (Makefile.am): Likewise.
59485         * modules/getpass-gnu (Makefile.am): Likewise.
59486         * modules/getsubopt (Makefile.am): Likewise.
59487         * modules/gettime (Makefile.am): Likewise.
59488         * modules/gettimeofday (Makefile.am): Likewise.
59489         * modules/getugroups (Makefile.am): Likewise.
59490         * modules/getusershell (Makefile.am): Likewise.
59491         * modules/glob (Makefile.am): Likewise.
59492         * modules/group-member (Makefile.am): Likewise.
59493         * modules/hard-locale (Makefile.am): Likewise.
59494         * modules/hash (Makefile.am): Likewise.
59495         * modules/hmac-md5 (Makefile.am): Likewise.
59496         * modules/hmac-sha1 (Makefile.am): Likewise.
59497         * modules/human (Makefile.am): Likewise.
59498         * modules/idcache (Makefile.am): Likewise.
59499         * modules/imaxabs (Makefile.am): Likewise.
59500         * modules/imaxdiv (Makefile.am): Likewise.
59501         * modules/inet_ntop (Makefile.am): Likewise.
59502         * modules/inet_pton (Makefile.am): Likewise.
59503         * modules/inttostr (Makefile.am): Likewise.
59504         * modules/isapipe (Makefile.am): Likewise.
59505         * modules/lchown (Makefile.am): Likewise.
59506         * modules/long-options (Makefile.am): Likewise.
59507         * modules/lstat (Makefile.am): Likewise.
59508         * modules/malloc (Makefile.am): Likewise.
59509         * modules/mathl (Makefile.am): Likewise.
59510         * modules/mbchar (Makefile.am): Likewise.
59511         * modules/md2 (Makefile.am): Likewise.
59512         * modules/md4 (Makefile.am): Likewise.
59513         * modules/md5 (Makefile.am): Likewise.
59514         * modules/memcasecmp (Makefile.am): Likewise.
59515         * modules/memchr (Makefile.am): Likewise.
59516         * modules/memcmp (Makefile.am): Likewise.
59517         * modules/memcoll (Makefile.am): Likewise.
59518         * modules/memcpy (Makefile.am): Likewise.
59519         * modules/memmem (Makefile.am): Likewise.
59520         * modules/memmove (Makefile.am): Likewise.
59521         * modules/mempcpy (Makefile.am): Likewise.
59522         * modules/memrchr (Makefile.am): Likewise.
59523         * modules/memset (Makefile.am): Likewise.
59524         * modules/memxor (Makefile.am): Likewise.
59525         * modules/mkancesdirs (Makefile.am): Likewise.
59526         * modules/mkdir (Makefile.am): Likewise.
59527         * modules/mkdir-p (Makefile.am): Likewise.
59528         * modules/mkdtemp (Makefile.am): Likewise.
59529         * modules/mkstemp (Makefile.am): Likewise.
59530         * modules/mktime (Makefile.am): Likewise.
59531         * modules/modechange (Makefile.am): Likewise.
59532         * modules/mountlist (Makefile.am): Likewise.
59533         * modules/nanosleep (Makefile.am): Likewise.
59534         * modules/openat (Makefile.am): Likewise.
59535         * modules/pagealign_alloc (Makefile.am): Likewise.
59536         * modules/physmem (Makefile.am): Likewise.
59537         * modules/poll (Makefile.am): Likewise.
59538         * modules/posixtm (Makefile.am): Likewise.
59539         * modules/posixver (Makefile.am): Likewise.
59540         * modules/putenv (Makefile.am): Likewise.
59541         * modules/quote (Makefile.am): Likewise.
59542         * modules/quotearg (Makefile.am): Likewise.
59543         * modules/raise (Makefile.am): Likewise.
59544         * modules/read-file (Makefile.am): Likewise.
59545         * modules/readline (Makefile.am): Likewise.
59546         * modules/readlink (Makefile.am): Likewise.
59547         * modules/readtokens (Makefile.am): Likewise.
59548         * modules/readutmp (Makefile.am): Likewise.
59549         * modules/realloc (Makefile.am): Likewise.
59550         * modules/regex (Makefile.am): Likewise.
59551         * modules/rename (Makefile.am): Likewise.
59552         * modules/rename-dest-slash (Makefile.am): Likewise.
59553         * modules/rijndael (Makefile.am): Likewise.
59554         * modules/rmdir (Makefile.am): Likewise.
59555         * modules/rpmatch (Makefile.am): Likewise.
59556         * modules/safe-read (Makefile.am): Likewise.
59557         * modules/safe-write (Makefile.am): Likewise.
59558         * modules/same (Makefile.am): Likewise.
59559         * modules/save-cwd (Makefile.am): Likewise.
59560         * modules/savedir (Makefile.am): Likewise.
59561         * modules/setenv (Makefile.am): Likewise.
59562         * modules/settime (Makefile.am): Likewise.
59563         * modules/sha1 (Makefile.am): Likewise.
59564         * modules/sig2str (Makefile.am): Likewise.
59565         * modules/snprintf (Makefile.am): Likewise.
59566         * modules/stdlib-safer (Makefile.am): Likewise.
59567         * modules/stpcpy (Makefile.am): Likewise.
59568         * modules/stpncpy (Makefile.am): Likewise.
59569         * modules/strcase (Makefile.am): Likewise.
59570         * modules/strcasestr (Makefile.am): Likewise.
59571         * modules/strchrnul (Makefile.am): Likewise.
59572         * modules/strcspn (Makefile.am): Likewise.
59573         * modules/strdup (Makefile.am): Likewise.
59574         * modules/strerror (Makefile.am): Likewise.
59575         * modules/strftime (Makefile.am): Likewise.
59576         * modules/strndup (Makefile.am): Likewise.
59577         * modules/strnlen (Makefile.am): Likewise.
59578         * modules/strpbrk (Makefile.am): Likewise.
59579         * modules/strsep (Makefile.am): Likewise.
59580         * modules/strstr (Makefile.am): Likewise.
59581         * modules/strtod (Makefile.am): Likewise.
59582         * modules/strtoimax (Makefile.am): Likewise.
59583         * modules/strtok_r (Makefile.am): Likewise.
59584         * modules/strtol (Makefile.am): Likewise.
59585         * modules/strtoll (Makefile.am): Likewise.
59586         * modules/strtoul (Makefile.am): Likewise.
59587         * modules/strtoull (Makefile.am): Likewise.
59588         * modules/strtoumax (Makefile.am): Likewise.
59589         * modules/strverscmp (Makefile.am): Likewise.
59590         * modules/time_r (Makefile.am): Likewise.
59591         * modules/timegm (Makefile.am): Likewise.
59592         * modules/tmpfile-safer (Makefile.am): Likewise.
59593         * modules/unistd-safer (Makefile.am): Likewise.
59594         * modules/unlinkdir (Makefile.am): Likewise.
59595         * modules/userspec (Makefile.am): Likewise.
59596         * modules/utime (Makefile.am): Likewise.
59597         * modules/utimecmp (Makefile.am): Likewise.
59598         * modules/utimens (Makefile.am): Likewise.
59599         * modules/vasnprintf (Makefile.am): Likewise.
59600         * modules/vasprintf (Makefile.am): Likewise.
59601         * modules/vsnprintf (Makefile.am): Likewise.
59602         * modules/xalloc (Makefile.am): Likewise.
59603         * modules/xgetcwd (Makefile.am): Likewise.
59604         * modules/xnanosleep (Makefile.am): Likewise.
59605         * modules/xreadlink (Makefile.am): Likewise.
59606         * modules/xstrtod (Makefile.am): Likewise.
59607         * modules/xstrtol (Makefile.am): Likewise.
59608         * modules/xstrtold (Makefile.am): Likewise.
59609         * modules/yesno (Makefile.am): Likewise.
59610
59611 2006-10-12  Jim Meyering  <jim@meyering.net>
59612
59613         * m4/getloadavg.m4: Revert the change below.
59614
59615         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
59616         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
59617         fail with a symlink, which is what coreutils' ./bootstrap now
59618         creates by default.
59619
59620 2006-10-12  Bruno Haible  <bruno@clisp.org>
59621
59622         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
59623         mingw.
59624         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
59625         MSVC and mingw explicitly.
59626
59627 2006-10-11  Simon Josefsson  <jas@extundo.com>
59628             Bruno Haible  <bruno@clisp.org>
59629
59630         Add support for multiple gnulib-tool invocations in the scope of a
59631         single configure.ac file.
59632         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
59633         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
59634         with the same contents as the _LIBADD variable.
59635         (func_emit_initmacro_start, func_emit_initmacro_end,
59636         func_emit_initmacro_done): New functions.
59637         (func_import, func_create_testdir): Invoke them. Allow the identifiers
59638         gl_LIBOBJS and gl_LTLIBOBJS.
59639
59640 2006-10-11  Bruno Haible  <bruno@clisp.org>
59641
59642         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
59643         (func_create_testdir): Don't create po/Makefile.am, don't invoke
59644         autoreconf. Instead, invoke autopoint explicitly but move back the
59645         *.m4 files from gnulib.
59646
59647 2006-10-11  Bruno Haible  <bruno@clisp.org>
59648
59649         * gnulib-tool (func_usage): Make module names after --create-testdir
59650         optional.
59651         (func_create_testdir): If no module was specified, use nearly all
59652         modules.
59653
59654 2006-10-12  Jim Meyering  <jim@meyering.net>
59655
59656         Big performance improvement for fts-based tools that use FTS_NOSTAT.
59657         Avoid spurious inode-mismatch problems on non-POSIX file systems.
59658         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
59659         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
59660         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
59661         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
59662         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
59663         (fts_set_stat_required): New function.
59664         (fts_open): Defer the calls to fts_stat, if possible or requested.
59665         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
59666         into fts_stat itself.
59667         (fts_read): Perform any required (deferred) fts_stat call.
59668         (fts_build): Likewise, for the directory we're about to open and read.
59669         In the readdir loop, carefully decide whether each entry will require
59670         an eventual call to fts_stat, using dirent.d_type info if available.
59671         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
59672         a command line argument into this function.  Update all callers.
59673         Map a return value of FTS_DOT to FTS_D for a command line argument.
59674         * modules/fts (Depends-on): Add d-type.  Alphabetize.
59675         Thanks to Miklos Szeredi for his tenacity and for the initial
59676         bug report about "find" failing on a FUSE-based file system.
59677
59678         * lib/fts.c (fts_open): Use consistent indentation.
59679
59680 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59681
59682         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
59683         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
59684         reported by Jim Meyering.  All uses of cache variables renamed
59685         to match Autoconf's.
59686         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
59687         the other one.
59688
59689         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
59690         Fix misspelling in diagnostic.
59691
59692 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59693
59694         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
59695         defined.  Problem reported by Matthew Woehlke.
59696
59697         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
59698         Add support for Tandem NonStop R series.
59699         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
59700         Use new macro.
59701
59702         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
59703         (has_trailing_slash): Omit size arg; all callers changed.
59704         Omit 'inline', since it doesn't help performance and we'd
59705         need to configure it.
59706         Don't count //, ///, etc. as having a trailing slash.
59707         As a side effect, this removes a C99ism reported by Matthew Woehlke.
59708         (rpl_rename_dest_slash): On failure, use rename's errno rather
59709         than (in some cases) an incorrect or junk errno.
59710         Simplify code by removing need to compute length; this does
59711         cause it to make two passes instead of one over the file name,
59712         but it's worth it.
59713
59714         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
59715         change, since Autoconf's version may no longer be appropriate now
59716         that we are using CVS Autoconf's version.  Add support for Tandem.
59717
59718 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59719             Bruno Haible  <bruno@clisp.org>
59720
59721         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
59722         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
59723         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
59724         gl_AC_TYPE_LONG_LONG.
59725
59726         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
59727         instead of HAVE_LONG_LONG.
59728         * lib/printf-args.c (printf_fetchargs): Likewise.
59729         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
59730         * lib/vasnprintf.c (VASNPRINTF): Likewise.
59731         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
59732         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
59733         gl_AC_TYPE_LONG_LONG.
59734
59735 2006-10-11  Bruno Haible  <bruno@clisp.org>
59736
59737         * m4/longlong.m4: Add comments.
59738         * m4/ulonglong.m4: Likewise.
59739
59740 2006-10-10  Bruno Haible  <bruno@clisp.org>
59741
59742         Make it possible to #define stpcpy, strdup to aliases.
59743         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
59744         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
59745
59746 2006-10-10  Bruno Haible  <bruno@clisp.org>
59747
59748         Make it possible to #define gcd to an alias.
59749         * lib/gcd.c: Include config.h.
59750
59751 2006-10-10  Bruno Haible  <bruno@clisp.org>
59752
59753         Make it possible to #define c_isascii to an alias.
59754         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
59755         defined. Undefine the macros before defining them, to avoid gcc
59756         warnings.
59757         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
59758         define NO_C_CTYPE_MACROS early.
59759
59760 2006-10-10  Bruno Haible  <bruno@clisp.org>
59761
59762         Make it possible to #define set_program_name to an alias.
59763         * lib/progname.c: Don't undefine set_program_name; instead, undefine
59764         ENABLE_RELOCATABLE early.
59765
59766 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59767
59768         Port to Tandem NSK OSS, which has 64-bit signed int but at most
59769         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
59770         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
59771         More generally, don't assume that 64-bit signed int is available
59772         if unsigned int is, and vice versa.
59773         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
59774         unsigned symbols, not on their signed counterparts.
59775         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
59776         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
59777         (UINT64_C, UINTMAX_C):
59778         Likewise.
59779         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
59780         unsigned counterparts.
59781         (Have_long_long, Unsigned): New macros.
59782         (Int): Renamed from INT.
59783         (strtoimax): Use the new macros.
59784         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
59785         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
59786         * modules/inttypes (inttypes.h): Substitute
59787         HAVE_UNSIGNED_LONG_LONG_INT.
59788         * modules/stdint (stdint.h): Likewise.
59789         (Files): Add m4/ulonglong.m4.
59790
59791 2006-10-10  Bruno Haible  <bruno@clisp.org>
59792
59793         Fix a gcc -Wshadow warning.
59794         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
59795         to 'bucket'.
59796         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
59797         gl_linked_indexof_from_to): Likewise.
59798         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
59799         Likewise.
59800         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
59801         Likewise.
59802         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
59803         Reported by Eric Blake.
59804
59805 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
59806
59807         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
59808         for NetBSD.  Problem reported by Bruno Haible.
59809
59810 2006-10-09  Jim Meyering  <jim@meyering.net>
59811
59812         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
59813         Patch from Bruno Haible.
59814
59815 2006-10-09  Jim Meyering  <jim@meyering.net>
59816
59817         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
59818         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
59819         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
59820
59821 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59822
59823         Don't include <config.h> twice; this doesn't work in some cases,
59824         e.g., when config.h has "#define intmax_t long long int" and
59825         we include <config.h>, <inttypes.h>, <config.h> in that order.
59826         Problem reported by Matthew Woehlke in:
59827         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
59828         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
59829         * lib/fts-cycle.c: Don't include config.h.
59830         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
59831         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
59832         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
59833         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
59834         inttypes.h.
59835         * lib/xstrtoumax.c: Likewise.
59836         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
59837         __strtol and the like, so that this module is more like its siblings.
59838         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
59839         Remove; no longer needed now that we assume gnulib inttypes.h.
59840
59841 2006-10-08  Bruno Haible  <bruno@clisp.org>
59842
59843         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
59844         option.
59845
59846 2006-10-07  Jim Meyering  <jim@meyering.net>
59847
59848         * modules/inttypes (inttypes.h): Revert what seems to have been
59849         an inadvertent part of today's change: use "|", not "/" in the
59850         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
59851
59852 2006-10-07  Bruno Haible  <bruno@clisp.org>
59853
59854         * modules/sublist: New file.
59855
59856 2006-10-07  Bruno Haible  <bruno@clisp.org>
59857
59858         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
59859         * modules/argz (argz.h): Likewise.
59860         * modules/arpa_inet (arpa/inet.h): Likewise.
59861         * modules/byteswap (byteswap.h): Likewise.
59862         * modules/configmake (configmake.h): Likewise.
59863         * modules/fcntl (fcntl.h): Likewise.
59864         * modules/fnmatch (fnmatch.h): Likewise.
59865         * modules/getopt (getopt.h): Likewise.
59866         * modules/glob (glob.h): Likewise.
59867         * modules/inttypes (inttypes.h): Likewise.
59868         * modules/netinet_in (netinet/in.h): Likewise.
59869         * modules/poll (poll.h): Likewise.
59870         * modules/stdbool (stdbool.h): Likewise.
59871         * modules/stdint (stdint.h): Likewise.
59872         * modules/sys_select (sys/select.h): Likewise.
59873         * modules/sys_socket (sys/socket.h): Likewise.
59874         * modules/sys_stat (sys/stat.h): Likewise.
59875         * modules/sysexits (sysexits.h): Likewise.
59876         * modules/unistd (unistd.h): Likewise.
59877         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59878         Add a "DO NOT EDIT" comment to the generated file.
59879         (func_import): Likewise for gnulib-comp.m4.
59880
59881 2006-10-07  Bruno Haible  <bruno@clisp.org>
59882
59883         * lib/gl_sublist.h: New file.
59884         * lib/gl_sublist.c: New file.
59885
59886 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59887
59888         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
59889         name (relative to the original working directory) and the file
59890         name component (relative to the temporary working directory).  All
59891         callers changed.
59892         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
59893         * lib/mkdir-p.c (make_dir_parents): Likewise.
59894         * lib/mkdir-p.h (make_dir_parents): Likewise.
59895
59896 2006-10-06  Eric Blake  <ebb9@byu.net>
59897
59898         Define several macros for use by the clean-temp module.
59899         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
59900         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
59901         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
59902
59903         * lib/clean-temp.h (close_stream_temp): New declaration.
59904         * lib/clean-temp.c (includes): Pull in headers according to what
59905         other modules are in use.
59906         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
59907
59908 2006-10-06  Bruno Haible  <bruno@clisp.org>
59909
59910         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
59911         instead of fopen, fwriteerror.
59912
59913 2006-10-06  Bruno Haible  <bruno@clisp.org>
59914
59915         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
59916         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
59917         int.
59918         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
59919         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
59920         Return an error indicator.
59921         Suggested by Eric Blake.
59922
59923 2006-10-06  Bruno Haible  <bruno@clisp.org>
59924
59925         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
59926         Reported by Eric Blake.
59927
59928 2006-10-06  Bruno Haible  <bruno@clisp.org>
59929
59930         * modules/closeout (Description): Mention stderr too.
59931
59932 2006-10-06  Bruno Haible  <bruno@clisp.org>
59933         and Paul Eggert  <eggert@cs.ucla.edu>
59934
59935         * lib/closeout.c (close_stdout): Also close stderr.
59936         * lib/closeout.h: Update comment.
59937
59938 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
59939
59940         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
59941         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
59942         * lib/dirchownmod.c: Include lchown.h.
59943         * lib/lchown.c: Don't include files that lchown.h now includes.
59944         Don't declare chown, since lchown.h now does that.
59945         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
59946         (lchown): Define to rpl_chown if lchown is declared but
59947         does not exist.  Declare using a prototype if lchown is not
59948         declared.  Add a copyright notice.
59949         * lib/mkstemp.h: Include <unistd.h>.
59950         * lib/openat.c: Include lchown.h.
59951
59952         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
59953         we now test for that separately.
59954         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
59955         rather than O_NOFOLLOW, when testing whether it's possible to
59956         avoid a race condition reliably.
59957         * lib/savewd.c (savewd_chdir): Likewise.
59958
59959         Remove macros that are no longer needed now that stdint.h is
59960         reliable.
59961         * lib/fsusage.c (UINTMAX_MAX): Remove.
59962         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
59963         * lib/utimecmp.c (SIZE_MAX): Remove.
59964
59965         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
59966
59967         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
59968         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
59969         O_NOATIME works.
59970
59971 2006-10-05  Bruno Haible  <bruno@clisp.org>
59972
59973         * lib/gl_list.h (gl_sortedlist_search_from_to,
59974         gl_sortedlist_indexof_from_to): New declarations.
59975         (gl_list_implementation): New fields sortedlist_search_from_to,
59976         sortedlist_indexof_from_to.
59977         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
59978         inline functions.
59979         * lib/gl_list.c (gl_sortedlist_search_from_to,
59980         gl_sortedlist_indexof_from_to): New functions.
59981         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
59982         function.
59983         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
59984         (gl_array_sortedlist_search_from_to): New function.
59985         (gl_array_list_implementation): Update.
59986         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
59987         function.
59988         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
59989         (gl_carray_sortedlist_search_from_to): New function.
59990         (gl_carray_list_implementation): Update.
59991         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
59992         gl_linked_sortedlist_indexof_from_to): New functions.
59993         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59994         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59995         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
59996         gl_tree_sortedlist_indexof_from_to): New functions.
59997         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59998         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59999         Update.
60000         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60001         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
60002         Update.
60003
60004 2006-10-05  Bruno Haible  <bruno@clisp.org>
60005
60006         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
60007         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
60008         (struct gl_list_implementation): Add fields search_from_to,
60009         indexof_from_to. Remove fields search, indexof.
60010         (gl_list_search): Use the search_from_to method.
60011         (gl_list_search_from, gl_list_search_from_to): New functions.
60012         (gl_list_indexof): Use the indexof_from_to method.
60013         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60014         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
60015         (gl_list_search_from, gl_list_search_from_to): New functions.
60016         (gl_list_indexof): Use the indexof_from_to method.
60017         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60018         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
60019         gl_array_indexof. Add start_index, end_index arguments.
60020         (gl_array_search_from_to): Renamed from gl_array_search. Add
60021         start_index, end_index arguments.
60022         (gl_array_remove, gl_array_list_implementation): Update.
60023         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
60024         gl_carray_indexof. Add start_index, end_index arguments.
60025         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
60026         start_index, end_index arguments.
60027         (gl_carray_remove, gl_carray_list_implementation): Update.
60028         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
60029         gl_linked_search. Add start_index, end_index arguments.
60030         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
60031         start_index, end_index arguments.
60032         (gl_linked_remove): Update.
60033         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60034         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60035         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
60036         field to 'size_t'.
60037         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
60038         gl_tree_search. Add start_index, end_index arguments.
60039         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60040         start_index, end_index arguments.
60041         (gl_tree_remove): Update.
60042         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60043         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60044         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
60045         function.
60046         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
60047         gl_tree_search. Add start_index, end_index arguments.
60048         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60049         start_index, end_index arguments.
60050         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60051         Update.
60052         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60053
60054 2006-10-05  Bruno Haible  <bruno@clisp.org>
60055
60056         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
60057
60058         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
60059         fwriteerror_temp): New declarations.
60060         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
60061         (descriptors): New variable.
60062         (cleanup): First, close the descriptors.
60063         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
60064         fclose_temp, fwriteerror_temp): New functions.
60065
60066 2006-10-04  Jim Meyering  <jim@meyering.net>
60067
60068         * lib/fts.c (fts_open): Tiny comment change.
60069
60070 2006-10-04  Bruno Haible  <bruno@clisp.org>
60071
60072         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
60073         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
60074         gl_LOCK_BODY.
60075         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
60076         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
60077         gl_LOCK_EARLY_BODY.
60078         (gl_LOCK): Require gl_LOCK_BODY.
60079
60080 2006-10-04  Bruno Haible  <bruno@clisp.org>
60081
60082         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
60083         (gl_oset_search_atleast): New declaration.
60084         (struct gl_oset_implementation): Add field 'search_atleast'.
60085         (gl_oset_search_atleast): New inline function.
60086         * lib/gl_oset.c (gl_oset_search_atleast): New function.
60087         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
60088         (gl_array_oset_implementation): Update.
60089         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
60090         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
60091         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
60092
60093 2006-10-04  Bruno Haible  <bruno@clisp.org>
60094
60095         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
60096
60097 2006-10-03  Bruno Haible  <bruno@clisp.org>
60098
60099         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
60100         from gl_avltreehash_list_implementation.
60101
60102 2006-10-03  Bruno Haible  <bruno@clisp.org>
60103
60104         * lib/gl_oset.c (gl_oset_add): Fix return type.
60105
60106 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
60107
60108         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
60109
60110 2006-10-02  Eric Blake  <ebb9@byu.net>
60111
60112         * modules/strnlen (Depends-on): Add extensions.
60113
60114 2006-10-02  Eric Blake  <ebb9@byu.net>
60115
60116         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
60117         definition in 2.60+.
60118
60119 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
60120
60121         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
60122         checks.
60123
60124 2006-10-02  Bruno Haible  <bruno@clisp.org>
60125
60126         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
60127         to the AUTOMAKE_OPTIONS.
60128         Reported by Jim Meyering.
60129
60130 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
60131
60132         Work around bug in Solaris 10 /proc file system:
60133         /proc/self/fd/NNN/.. isn't the parent directory of
60134         the directory whose file descriptor is NNN.  This needs to
60135         be worked around at run time, not compile time, since a
60136         program might be built on Solaris 8, where things work, and
60137         run on Solaris 10.
60138         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
60139         to use the following interface instead:
60140         (OPENAT_BUFFER_SIZE): New macro.
60141         (openat_proc_name): New function.
60142         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
60143         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
60144         Likewise.
60145         * lib/openat-proc.c: New file.
60146         * modules/openat (Files): Add lib/openat-proc.c.
60147         (Depends-on): Add same-inode, stdbool.
60148         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
60149
60150 2006-09-29  Bruno Haible  <bruno@clisp.org>
60151
60152         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
60153         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
60154         argument. Set stdout_closed before testing for ferror, not after.
60155         (fwriteerror, fwriteerror_no_ebadf): New functions.
60156
60157 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60158
60159         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
60160
60161 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
60162
60163         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
60164         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
60165
60166 2006-09-28  Jim Meyering  <jim@meyering.net>
60167
60168         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
60169         Include <unistd.h>.
60170
60171 2006-09-28  Bruno Haible  <bruno@clisp.org>
60172
60173         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
60174         * modules/linkedhash-list (Depends-on): Likewise.
60175         * modules/rbtreehash-list (Depends-on): Likewise.
60176
60177 2006-09-28  Bruno Haible  <bruno@clisp.org>
60178
60179         * lib/strndup.h: Simplify the redefinition of strndup.
60180         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
60181         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
60182
60183 2006-09-28  Bruno Haible  <bruno@clisp.org>
60184
60185         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
60186         * lib/gl_linkedhash_list.c: Likewise.
60187         * lib/gl_rbtreehash_list.c: Likewise.
60188
60189 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
60190
60191         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
60192         getaddrinfo.
60193
60194         * lib/__fpending.h: Don't include <stdio_ext.h> unless
60195         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
60196         it causes <stdio_ext.h> to cause a compile-time error.
60197         Problem reported by Nelson H. F. Beebe.
60198         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
60199         of HAVE_DECL___PENDING.
60200
60201         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
60202         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
60203         declaration.
60204
60205 2006-09-27  Jim Meyering  <jim@meyering.net>
60206
60207         This file could end up with a definition for a function
60208         named __strndup, rather than rpl_strndup on a system with
60209         incomplete weak_alias support.
60210         * lib/strndup.c (strndup): Rename from __strndup.
60211         Remove #defines that used to map __strndup to strndup.
60212         Don't use K&R prototypes.
60213         Remove LIBC-related code, since this file is not sync'd with glibc.
60214         * lib/strndup.h: Revamp, accordingly.
60215         * m4/strndup.m4: Modernize.
60216
60217 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
60218
60219         * modules/savewd (Depends-on): Add 'raise'.
60220         * lib/savewd.c: Include <signal.h>, for 'raise'.
60221
60222 2006-09-26  Jim Meyering  <jim@meyering.net>
60223
60224         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
60225         when we detect Darwin 8.7.0's acl_get_file bug.
60226         Rearrange to perform the new (below) run-test while $LIBS
60227         contains any acl-related library.  Set USE_ACL at the end.
60228         (gl_ACL_GET_FILE): New function.
60229
60230 2006-09-26  Eric Blake  <ebb9@byu.net>
60231
60232         * lib/verror.c: Include <config.h> unconditionally.
60233
60234 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
60235
60236         * modules/clock-time (Maintainer): Add self.
60237         * modules/getlogin_r (Depends-on): Add extensions.
60238
60239 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60240
60241         * modules/clock-time: New module.
60242         * modules/nanosleep (Depends-on): Add clock-time.
60243         * modules/gethrxtime (Depends-on): Likewise.
60244         * modules/gettime (Depends-on): Likewise.
60245         * modules/settime (Depends-on): Likewise.
60246
60247         * modules/fts-lgpl: Depend on openat.
60248         * modules/mkancesdirs: Depend on savewd.
60249         * modules/mkdir-p: Likewise.
60250
60251 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60252
60253         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
60254
60255         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
60256         `gl_have_arbitrary_file_name_length_limit' to
60257         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
60258         actually works between configure runs.
60259
60260 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60261             Bruno Haible  <bruno@clisp.org>
60262
60263         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
60264
60265 2006-09-25  Jim Meyering  <jim@meyering.net>
60266
60267         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
60268         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
60269
60270 2006-09-25  Eric Blake  <ebb9@byu.net>
60271
60272         * gnulib-tool (func_import, func_create_testdir): Fix typos in
60273         exec's in 2006-09-18 patch when shuffling fds.
60274
60275 2006-09-25  Bruno Haible  <bruno@clisp.org>
60276
60277         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
60278         Reported by Jim Meyering.
60279
60280 2006-09-24  Jim Meyering  <jim@meyering.net>
60281
60282         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
60283         compare a pointer against a literal "0".  That caused failures with
60284         at least HP-UX's hpcc.
60285
60286 2006-09-22  Simon Josefsson  <jas@extundo.com>
60287
60288         * modules/gc-sha1:
60289         * modules/gc-md4:
60290         * modules/gc-hmac-sha1:
60291         * modules/gc-hmac-md5:
60292         * modules/gc-des:
60293         * modules/gc-arcfour: Distribute more files.
60294
60295 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60296
60297         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
60298         (gl_linked_iterator_from_to): Initialize struct completely.
60299         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
60300         (gl_tree_iterator_from_to): Likewise
60301         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
60302         * lib/gl_array_list.c [lint] (gl_array_iterator)
60303         (gl_array_iterator_from_to): Likewise.
60304         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
60305         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
60306         (gl_carray_iterator_from_to): Likewise.
60307
60308         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
60309         * lib/md4.c (md4_process_block): Remove unused variable.
60310         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
60311         parentheses for clarity.
60312
60313 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60314
60315         * modules/bison-i18n (Depends-on): Add gettext.
60316
60317 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60318
60319         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
60320         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
60321         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
60322         also add missing comma that caused broken test.
60323         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
60324         stdlib.h, for `abort'.
60325         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
60326         variables.
60327         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
60328         include unistd.h if present, for `rmdir'.
60329         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
60330         variables.
60331         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
60332         in the process include standard headers for prototypes.
60333         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
60334         gets declared on GNU/Linux.
60335         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
60336         unistd.h, for `rmdir'.
60337         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
60338
60339         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
60340         always true.
60341         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
60342
60343         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
60344
60345 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60346
60347         * gnulib-tool (func_version): Create output all at once.  This
60348         may help avoid triggering unnecessary SIGPIPEs, and at any
60349         rate it doesn't hurt.
60350
60351 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60352             Bruno Haible  <bruno@clisp.org>
60353
60354         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
60355         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
60356         * m4/signed.m4 (bh_C_SIGNED): Likewise.
60357
60358         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
60359         (gl_FUNC_VASPRINTF): Invoke it.
60360
60361 2006-09-22  Bruno Haible  <bruno@clisp.org>
60362
60363         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
60364         getloadavg.c as first argument.
60365
60366 2006-09-22  Bruno Haible  <bruno@clisp.org>
60367
60368         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
60369         at the beginning of the gl_INIT macro.
60370         * modules/getloadavg (configure.ac): Pass $gl_source_base to
60371         gl_GETLOADAVG.
60372
60373 2006-09-22  Bruno Haible  <bruno@clisp.org>
60374
60375         * gnulib-tool (func_create_megatestdir): Don't include the config-h
60376         module.
60377         Suggested by Ralf Wildenhues.
60378
60379 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60380
60381         Import this patch from libc:
60382
60383         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
60384
60385         * lib/regex_internal.c (re_string_reconstruct): Handle
60386         offset < pstr->valid_raw_len && pstr->offsets_needed case.
60387         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
60388         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
60389         re_string_context_at.
60390
60391         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
60392         now requires it.
60393         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
60394         gl_REGEX now does it for us.
60395         (gl_REGEX): Add test taken from
60396         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
60397
60398         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
60399         Check that large offsets work.  Modernize Autoconf usages.
60400         Prefer "yes" to mean a good thing rather than a bad.
60401         Don't put "#define mkstemp" in config.h, as this might interfere
60402         with standard system headers that "#define mkstemp mkstemp64".
60403
60404         * modules/mkstemp (Depends-on): Add extensions, so that
60405         mkstemp is visible on some platforms.
60406         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
60407         (Include): Change to "mkstemp.h" from <stdlib.h>.
60408         (Files): Add mkstemp.h.
60409
60410         * lib/mkstemp.h: New file, since some standard headers
60411         #define mkstemp.
60412         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
60413         Include "mkstemp.h".
60414         Make the _LIBC code resemble glibc original more,
60415         e.g., use K&R style.
60416         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
60417         (mkstemp): Remove, since mkstemp.h does this for us.
60418         * lib/stdlib--.h: Include mkstemp.h.
60419
60420         Import this patch from libc:
60421
60422         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60423
60424         * lib/tempname.c (__gen_tempname): Change attempts_min
60425         into a macro.  Use preprocessor to decide how to initialize
60426         attempts [Coverity CID 67].
60427
60428 2006-09-20  Bruno Haible  <bruno@clisp.org>
60429
60430         * lib/mkdtemp.c: Import from libc.
60431         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60432                 * sysdeps/posix/tempname.c (__gen_tempname): Change
60433                 attempts_min into a macro.  Use preprocessor to decide how to
60434                 initialize attempts [Coverity CID 67].
60435         2001-11-27  Paul Eggert  <eggert@twinsun.com>
60436                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
60437                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
60438
60439 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60440
60441         * gnulib-tool (func_exit): New function, to allow to pass the
60442         exit status portably through the trap.  Use everywhere.
60443         (--help, --version): Signal a write error.
60444         (trap): catch SIGPIPE, for write errors.
60445         Exit at the end of the trap, with the correct exit status.
60446
60447 2006-09-19  Karl Berry  <karl@gnu.org>
60448
60449         * doc/gnulib.texi: note about the license texinfo files.
60450
60451 2006-09-19  Eric Blake  <ebb9@byu.net>
60452
60453         * gnulib-tool: Avoid space-tab.
60454
60455 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60456
60457         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
60458         that prevented coreutils 6.1 from building.  Problem reported
60459         by Petter Reinholdtsen.
60460
60461 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60462
60463         * gnulib-tool (avoidlist): Fix typo that broke options like
60464         --avoid=lock that are used by coreutils bootstrap.
60465
60466 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
60467
60468         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
60469         more systematically.
60470
60471 2006-09-18  Jim Meyering  <jim@meyering.net>
60472
60473         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
60474
60475 2006-09-18  Bruno Haible  <bruno@clisp.org>
60476
60477         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
60478
60479 2006-09-18  Bruno Haible  <bruno@clisp.org>
60480
60481         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
60482         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
60483         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
60484         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
60485         * m4/gettext.m4: Require autoconf >= 2.52.
60486         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
60487         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
60488         of gl_cv_header_inttypes_h.
60489
60490 2006-09-18  Bruno Haible  <bruno@clisp.org>
60491
60492         * lib/javaversion.c: Include configmake.h.
60493
60494 2006-09-18  Bruno Haible  <bruno@clisp.org>
60495
60496         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
60497         avoid that the while loops be executed in a subshell.
60498
60499 2006-09-18  Bruno Haible  <bruno@clisp.org>
60500
60501         * MODULES.html.sh (func_module): Break long lines.
60502         Suggested by Bruce Korb <bkorb@gnu.org>.
60503
60504 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60505
60506         Speed up by a factor of 1.12.
60507         * gnulib-tool (nl): New variable.
60508         (func_import): Rewrite include directive extraction to only read each
60509         directive once.
60510
60511 2006-09-17  Bruno Haible  <bruno@clisp.org>
60512
60513         * modules/javaversion (Makefile.am): Remove DEFS setting.
60514         (Depends-on): Add configmake, for PKGDATADIR definition.
60515
60516 2006-09-17  Bruno Haible  <bruno@clisp.org>
60517
60518         * gnulib-tool (func_create_testdir): Rewrite all files at once.
60519
60520 2006-09-17  Bruno Haible  <bruno@clisp.org>
60521
60522         * gnulib-tool (func_append): New function, stolen from libtool.m4.
60523         (func_modules_transitive_closure, func_modules_add_dummy,
60524         func_modules_to_filelist, func_import, func_create_testdir,
60525         func_create_megatestdir, ...): Use it wherever possible.
60526         Suggested by Ralf Wildenhues.
60527
60528 2006-09-16  Karl Berry  <karl@gnu.org>
60529
60530         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
60531         to avoid sectioning errors.
60532         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
60533         [ifinfo]: blank line after @center-ed titles.
60534         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
60535         Spell FSF address consistently with others.
60536         (These changes approved by rms.)
60537
60538 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60539
60540         Speed up by a factor of 1.61.
60541         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
60542         already checked module names again.
60543
60544 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60545
60546         Speed up by a factor of 1.13.
60547         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
60548         for new_files, and the input to func_add_or_update.
60549
60550 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60551
60552         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
60553         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
60554
60555 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60556
60557         * modules/mkancesdirs (Depends-on): Add fcntl.
60558         * modules/savewd: New file.
60559         * MODULES.html.sh (File system functions): Add savewd.
60560
60561         * modules/configmake (Makefile.am): Add support for the
60562         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
60563
60564 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60565
60566         * m4/savewd.m4: New file.
60567
60568 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60569
60570         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
60571         (dirchownmod): New arg FD.  All callers changed.
60572         Use FD rather than opening the directory ourself, as opening is
60573         now the caller's responsibility.
60574         * lib/dirchownmod.h: Likewise.
60575         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
60576         hosts that require <sys/types.h> before <sys/stat.h>.  Include
60577         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
60578         (test_dir): Remove.
60579         (mkancesdirs): Return length of prefix of FILE that has already
60580         been made, or -2 if there is a child doing the work.  Redo
60581         algorithm so that it is O(N) rather than O(N**2).  Optimize away
60582         ".", and treat ".." specially since it might stray back into
60583         already-created areas.  Use a subprocess if necessary.  New arg
60584         WD; all users changed.  MAKE_DIR function should now return 1
60585         if it creates a directory that is not readable.  Return -2 if
60586         a child process is spun off.
60587         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
60588         Adjust signature to match code.
60589         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
60590         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
60591         all users changed.
60592         * lib/savewd.c, lib/savewd.h: New files.
60593
60594 2006-09-15  Jim Meyering  <jim@meyering.net>
60595
60596         * modules/rename-dest-slash: New module.
60597         * MODULES.html.sh (posix_compat): Add it here.
60598
60599         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
60600
60601 2006-09-15  Jim Meyering  <jim@meyering.net>
60602
60603         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
60604         file.
60605
60606         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
60607
60608 2006-09-15  Jim Meyering  <jim@meyering.net>
60609
60610         * lib/rename-dest-slash.c (has_trailing_slash): Use
60611         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
60612         (rpl_rename_dest_slash): Perform the cheaper trailing slash
60613         test before testing whether SRC is a directory.
60614         Suggestions from Bruno Haible.
60615
60616         Avoid a warning about an unused variable.
60617         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
60618         into the #ifdef block where it's used.
60619
60620         * lib/rename-dest-slash.c: New file.
60621
60622 2006-09-14  Bruno Haible  <bruno@clisp.org>
60623
60624         * lib/allocsa.c: Include <config.h> unconditionally.
60625         * lib/asnprintf.c: Likewise.
60626         * lib/asprintf.c: Likewise.
60627         * lib/c-strcasecmp.c: Likewise.
60628         * lib/c-strcasestr.c: Likewise.
60629         * lib/c-strncasecmp.c: Likewise.
60630         * lib/c-strstr.c: Likewise.
60631         * lib/classpath.c: Likewise.
60632         * lib/clean-temp.c: Likewise.
60633         * lib/concatpath.c: Likewise.
60634         * lib/copy-file.c: Likewise.
60635         * lib/csharpcomp.c: Likewise.
60636         * lib/csharpexec.c: Likewise.
60637         * lib/execute.c: Likewise.
60638         * lib/fatal-signal.c: Likewise.
60639         * lib/findprog.c: Likewise.
60640         * lib/fwriteerror.c: Likewise.
60641         * lib/gl_array_list.c: Likewise.
60642         * lib/gl_array_oset.c: Likewise.
60643         * lib/gl_avltree_list.c: Likewise.
60644         * lib/gl_avltree_oset.c: Likewise.
60645         * lib/gl_avltreehash_list.c: Likewise.
60646         * lib/gl_carray_list.c: Likewise.
60647         * lib/gl_linked_list.c: Likewise.
60648         * lib/gl_linkedhash_list.c: Likewise.
60649         * lib/gl_list.c: Likewise.
60650         * lib/gl_oset.c: Likewise.
60651         * lib/gl_rbtree_list.c: Likewise.
60652         * lib/gl_rbtree_oset.c: Likewise.
60653         * lib/gl_rbtreehash_list.c: Likewise.
60654         * lib/imaxabs.c: Likewise.
60655         * lib/imaxdiv.c: Likewise.
60656         * lib/javacomp.c: Likewise.
60657         * lib/javaexec.c: Likewise.
60658         * lib/javaversion.c: Likewise.
60659         * lib/linebreak.c: Likewise.
60660         * lib/localcharset.c: Likewise.
60661         * lib/lock.c: Likewise.
60662         * lib/mbchar.c: Likewise.
60663         * lib/mbswidth.c: Likewise.
60664         * lib/mkdtemp.c: Likewise.
60665         * lib/pipe.c: Likewise.
60666         * lib/printf-args.c: Likewise.
60667         * lib/printf-parse.c: Likewise.
60668         * lib/progname.c: Likewise.
60669         * lib/progreloc.c: Likewise.
60670         * lib/readlink.c: Likewise.
60671         * lib/sh-quote.c: Likewise.
60672         * lib/stpcpy.c: Likewise.
60673         * lib/stpncpy.c: Likewise.
60674         * lib/strcasecmp.c: Likewise.
60675         * lib/strcasestr.c: Likewise.
60676         * lib/strcspn.c: Likewise.
60677         * lib/striconv.c: Likewise.
60678         * lib/strncasecmp.c: Likewise.
60679         * lib/strnlen1.c: Likewise.
60680         * lib/strstr.c: Likewise.
60681         * lib/strtok_r.c: Likewise.
60682         * lib/tls.c: Likewise.
60683         * lib/tmpdir.c: Likewise.
60684         * lib/unicodeio.c: Likewise.
60685         * lib/unsetenv.c: Likewise.
60686         * lib/vasnprintf.c: Likewise.
60687         * lib/vasprintf.c: Likewise.
60688         * lib/wait-process.c: Likewise.
60689         * lib/xallocsa.c: Likewise.
60690         * lib/xsetenv.c: Likewise.
60691         * lib/xstriconv.c: Likewise.
60692
60693 2006-09-13  Simon Josefsson  <jas@extundo.com>
60694
60695         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
60696         that internally, suggested by Ralf Wildenhues
60697         <Ralf.Wildenhues@gmx.de>.
60698
60699 2006-09-13  Simon Josefsson  <jas@extundo.com>
60700
60701         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
60702         @LIBOBJS@.
60703         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60704
60705 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60706
60707         * lib/_fpending.c: Include <config.h> unconditionally, since we no
60708         longer worry about uses that don't define HAVE_CONFIG_H.
60709         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
60710         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
60711         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
60712         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
60713         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
60714         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
60715         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
60716         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
60717         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
60718         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
60719         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
60720         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
60721         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
60722         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
60723         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
60724         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
60725         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
60726         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
60727         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
60728         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
60729         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
60730         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
60731         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
60732         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
60733         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
60734         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
60735         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
60736         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
60737         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
60738         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
60739         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
60740         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
60741         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
60742         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
60743         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
60744         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
60745         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
60746         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
60747         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
60748         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
60749         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
60750         Likewise.
60751
60752 2006-09-13  Eric Blake  <ebb9@byu.net>
60753
60754         * lib/getopt.c: Fix typo in last commit.
60755
60756 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60757
60758         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
60759         dgettext.
60760
60761 2006-09-12  Jim Meyering  <jim@meyering.net>
60762
60763         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
60764         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
60765         Reported by Nelson H. F. Beebe.
60766
60767 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60768
60769         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
60770         program_invocation_name and program_invocation_short_name are
60771         initialized.
60772         * lib/argp-namefrob.h: Move declarations of program_invocation_name
60773         and program_invocation_short_name to argp.h, so they are visible
60774         to user programs.
60775         * lib/argp.h: Likewise
60776
60777 2006-09-10  Bruno Haible  <bruno@clisp.org>
60778
60779         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60780         m4/inttypes_h.m4, m4/uintmax_t.m4.
60781
60782 2006-09-10  Bruno Haible  <bruno@clisp.org>
60783
60784         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
60785         gl_AC_TYPE_UINTMAX_T.
60786
60787 2006-09-10  Bruno Haible  <bruno@clisp.org>
60788
60789         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
60790
60791 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60792
60793         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
60794         convention.  Text proposed by Bruno Haible.
60795         (struct argp_option): Document the use of N_() wrappers.
60796
60797         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
60798         '\v', and translate the two parts separately, instead of feeding
60799         the whole string to gettext.  This allows to exclude
60800         '\v' from the strings visible to the translator by writing doc
60801         strings as N_("..") "\v" N_("..").
60802
60803 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
60804
60805         * config/srclist.txt: Undo latest change; the bug was fixed.
60806
60807 2006-09-09  Bruno Haible  <bruno@clisp.org>
60808
60809         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
60810         assignments if building a library without libtool.
60811         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
60812         in func_emit_lib_Makefile_am.
60813         (func_import): When building a static library libfoo.a, arrange to
60814         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
60815         (func_create_testdir): Likewise.
60816         * modules/gc (configure.ac, Makefile.am): If building statically,
60817         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
60818         * modules/iconvme (configure.ac, Makefile.am): Likewise.
60819         * modules/striconv (configure.ac, Makefile.am): Likewise.
60820         Based on a suggestion by Ralf Wildenhues.
60821
60822 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60823
60824         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
60825         Check for unistd.h too, since Autoconf doesn't assume POSIX.
60826         Also:
60827
60828         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60829         Add year_2050_test to catch glibc bug 2821
60830         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
60831
60832         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60833         Prefer #ifdef to #if.
60834
60835         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
60836         Return from 'main' instead of calling 'exit'.
60837
60838 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60839
60840         * lib/mktime.c (guess_time_tm): Fix bug where mktime
60841         returned the maximum time_t value rather than (time_t) -1.
60842         Problem originally reported by William Bardwell
60843         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
60844
60845         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
60846         Moved to here ...
60847         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
60848         ... from here.
60849
60850 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60851
60852         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
60853         2821 is fixed.
60854
60855 2006-09-08  Jim Meyering  <jim@meyering.net>
60856
60857         Don't make generated files read-only.  That would bother too many
60858         people.  However, do retain the ability to work when targets are
60859         read-only: remove the destination and temporary files before writing
60860         them (when generated via sed or echo), or by using the -f option for
60861         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
60862         * modules/alloca-opt, modules/argz, modules/arpa_inet:
60863         * modules/byteswap, modules/configmake, modules/fcntl:
60864         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
60865         * modules/localcharset, modules/netinet_in, modules/poll:
60866         * modules/stdbool, modules/stdint, modules/sys_select:
60867         * modules/sys_socket, modules/sys_stat, modules/sysexits:
60868
60869 2006-09-08  Jim Meyering  <jim@meyering.net>
60870
60871         Avoid new build failure on FreeBSD 6.0.
60872         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
60873         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
60874         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
60875
60876 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60877
60878         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
60879
60880 2006-09-07  Jim Meyering  <jim@meyering.net>
60881
60882         Fix global typo in last change: use chmod u-w, not chmod u-x.
60883         Spotted by Paul Eggert and Bruce Korb.
60884         * modules/alloca-opt, modules/argz, modules/arpa_inet:
60885         * modules/byteswap, modules/configmake, modules/fcntl:
60886         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
60887         * modules/localcharset, modules/netinet_in, modules/poll:
60888         * modules/stdbool, modules/stdint, modules/sys_select:
60889         * modules/sys_socket, modules/sys_stat, modules/sysexits:
60890
60891 2006-09-06  Jim Meyering  <jim@meyering.net>
60892
60893         Make generated files be read-only.
60894         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
60895         Ensure that each generated file is now read-only.
60896         * modules/argz: Likewise.
60897         * modules/arpa_inet: Likewise.
60898         * modules/byteswap: Likewise.
60899         * modules/configmake: Likewise.
60900         * modules/fcntl: Likewise.
60901         * modules/fnmatch: Likewise.
60902         * modules/getopt: Likewise.
60903         * modules/glob: Likewise.
60904         * modules/inttypes: Likewise.
60905         * modules/netinet_in: Likewise.
60906         * modules/poll: Likewise.
60907         * modules/stdbool: Likewise.
60908         * modules/stdint: Likewise.
60909         * modules/sys_select: Likewise.
60910         * modules/sys_socket: Likewise.
60911         * modules/sys_stat: Likewise.
60912         * modules/sysexits: Likewise.
60913         * modules/localcharset: Same as above, but continue using temporary
60914         file named "t-$@" (why different?) rather than the "$@-t" used
60915         everywhere else.
60916
60917         * modules/sysexits (Makefile.am): Replace literal occurrences
60918         of "sysexit.h" more readable, and more consistent, "$@".
60919
60920 2006-09-06  Bruno Haible  <bruno@clisp.org>
60921
60922         * modules/striconv: New file.
60923         * modules/xstriconv: New file.
60924         * MODULES.html.sh (Internationalization functions): Add striconv,
60925         xstriconv.
60926
60927 2006-09-06  Bruno Haible  <bruno@clisp.org>
60928
60929         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
60930         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
60931         not using libtool correctly.
60932
60933 2006-09-06  Bruno Haible  <bruno@clisp.org>
60934
60935         * lib/striconv.h: New file.
60936         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
60937         iconvstring.c.
60938         * lib/xstriconv.h: New file.
60939         * lib/xstriconv.c: New file.
60940
60941 2006-09-06  Bruno Haible  <bruno@clisp.org>
60942
60943         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60944         lib_..._LDFLAGS.
60945
60946 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60947
60948         * lib/argz_.h: Sync from Libtool.
60949
60950         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
60951                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60952
60953         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
60954
60955 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
60956
60957         * modules/trim: New file.
60958
60959 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
60960
60961         * lib/trim.h: New file.
60962         * lib/trim.c: New file.
60963
60964 2006-09-05  Bruno Haible  <bruno@clisp.org>
60965
60966         * MODULES.html.sh (String handling): Add trim.
60967
60968 2006-09-04  Karl Berry  <karl@gnu.org>
60969
60970         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
60971         until next release.
60972
60973 2006-09-03  Bruno Haible  <bruno@clisp.org>
60974
60975         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
60976         correctly.
60977
60978 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60979
60980         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
60981         not gl_GETLOADAVG.  Omit unneeded semicolons.
60982         Problems reported by Ralf Wildenhues in
60983         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
60984         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
60985         at the end, which is the usual gnulib style.
60986
60987         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
60988         of doing all the work ourselves.
60989         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
60990         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
60991
60992 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60993
60994         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
60995         Problem reported by Ralf Wildenhues in
60996         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
60997
60998         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
60999         HAVE_STRUCT_STATFS_F_FSTYPENAME.
61000
61001 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61002
61003         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
61004         yesterday's patch by changing test -n to test -z.
61005
61006 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61007
61008         * modules/getloadavg (Files): Add m4/getloadavg.m4.
61009         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
61010         the former is now obsolescent.
61011
61012         * modules/chdir-long (Depends-on): Add fcntl.
61013
61014 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61015
61016         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
61017         obsolescent, and programs should use gnulib instead.
61018         * m4/getloadavg.m4: New file, with contents taken from Autoconf
61019         but with prefixes changed.
61020
61021 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61022
61023         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
61024         or stdbool.h, because they might not exist while configuring.
61025
61026         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
61027         Don't include unistd.h or limits.h; not needed, since chdir-long.h
61028         does that for us.
61029         (O_DIRECTORY): Remove.
61030
61031 2006-08-31  Eric Blake  <ebb9@byu.net>
61032
61033         * gnulib-tool: Don't let emacs change spaces to TAB.
61034
61035 2006-08-31  Bruno Haible  <bruno@clisp.org>
61036
61037         * gnulib-tool: When calling func_import more than once, do it in a
61038         subshell.
61039         Reported by Eric Blake <ebb9@byu.net>.
61040
61041 2006-08-31  Bruno Haible  <bruno@clisp.org>
61042
61043         * gnulib-tool (nl): Remove variable.
61044         (sed_transform_lib_file): Use more robust test for config-h module.
61045         (func_import): Fix typo in 2006-08-25 patch.
61046
61047 2006-08-31  Bruno Haible  <bruno@clisp.org>
61048
61049         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
61050         specified, augment Makefile.am variables instead of assigning them.
61051
61052 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61053
61054         Work around a bug in both the Linux and SunOS 64-bit kernels:
61055         nanosleep mishandles sleeps for longer than 2**31 seconds.
61056         Problem reported by Frank v Waveren in
61057         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61058         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
61059         Check for nanosleep bug.
61060         (LIB_NANOSLEEP): Append clock_gettime library if needed.
61061
61062 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61063
61064         Work around a bug in both the Linux and SunOS 64-bit kernels:
61065         nanosleep mishandles sleeps for longer than 2**31 seconds.
61066         Problem reported by Frank v Waveren in
61067         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61068         * lib/nanosleep.c (BILLION): New constant.
61069         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
61070         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
61071         implementation.
61072
61073 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61074
61075         * modules/nanosleep (Depends-on): Add gettime.
61076
61077 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61078         and Simon Josefsson  <jas@extundo.com>
61079         and Oskar Liljeblad  <oskar@osk.mine.nu>
61080
61081         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
61082         * gnulib-tool (func_import): New license type 'unmodifiable license
61083         text'.
61084         * modules/fdl: Use it.  Longer description.
61085         * module/gpl, module/lgpl: New files.
61086
61087 2006-08-30  Jim Meyering  <jim@meyering.net>
61088
61089         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
61090         shadowing the parameter.
61091
61092 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61093
61094         Sync from Libtool:
61095
61096         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61097
61098         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
61099         sharing with gnulib.  Report by Eric Blake.
61100
61101 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61102
61103         * modules/isapipe: New file.
61104         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
61105
61106 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61107
61108         * modules/configmake (Makefile.am): Add a comment, and omit
61109         the CONFIGMAKE_ prefix from generated macro names.  Suggested
61110         by Bruno Haible.
61111
61112 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61113
61114         * m4/isapipe.m4: New file.
61115
61116 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61117
61118         * lib/isapipe.c, lib/isapipe.h: New files.
61119
61120 2006-08-29  Jim Meyering  <jim@meyering.net>
61121
61122         * modules/configmake (Makefile.am): Make configmake.h depend on
61123         Makefile.  Otherwise, a stale configmake.h could hang around.
61124
61125 2006-08-29  Eric Blake  <ebb9@byu.net>
61126
61127         * lib/error.c (error_at_line, print_errno_message): Match libc, after
61128         resolution of upstream bug 3044.
61129
61130 2006-08-29  Bruno Haible  <bruno@clisp.org>
61131
61132         * modules/localcharset (Depends-on): Add configmake.
61133         (Makefile.am): Remove setting of LIBDIR through DEFS.
61134
61135 2006-08-29  Bruno Haible  <bruno@clisp.org>
61136
61137         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
61138         defined.
61139
61140 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61141
61142         * modules/fcntl: New file.
61143         * modules/chdir-safer (Depends-on): Add fcntl.
61144         * modules/fts: Likewise.
61145         * modules/mkdir-p: Likewise.
61146
61147         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
61148         This undoes the most recent change, since we're now addressing the
61149         problem in a different way.
61150
61151         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
61152         into output, since the output might be called Makefile.am even
61153         if $makefile_name is something different.
61154         (func_import): Use $makefile_am rather than
61155         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
61156         empty.
61157
61158         * modules/inttypes (Files): Add m4/inttypes-h.m4.
61159
61160 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61161
61162         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
61163         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
61164         recent change to stdint.m4, since we're now addressing the problem in a
61165         different way.
61166
61167 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61168
61169         * m4/fcntl_h.m4: New file.
61170
61171 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61172
61173         * lib/fcntl_.h: New file.
61174         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
61175         the fcntl module.
61176         * lib/dirchownmod.c: Likewise.
61177         * lib/fts.c: Likewise.
61178
61179         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
61180         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
61181         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
61182         just before including <inttypes.h>, to avoid circular inclusion.
61183
61184 2006-08-28  Jim Meyering  <jim@meyering.net>
61185
61186         * doc/visibility.texi: Actually read and correct the grammar of the
61187         sentence affected by yesterday's change.
61188
61189 2006-08-28  Eric Blake  <ebb9@byu.net>
61190
61191         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
61192         needs wrapper.
61193
61194 2006-08-28  Eric Blake  <ebb9@byu.net>
61195
61196         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
61197
61198 2006-08-28  Eric Blake  <ebb9@byu.net>
61199
61200         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
61201
61202 2006-08-28  Bruno Haible  <bruno@clisp.org>
61203
61204         * modules/c-strstr: New file, from GNU gettext.
61205         * MODULES.html.sh (String handling): Add c-strstr.
61206
61207 2006-08-28  Bruno Haible  <bruno@clisp.org>
61208
61209         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
61210         macros.
61211         Reported by Eric Blake.
61212
61213 2006-08-28  Bruno Haible  <bruno@clisp.org>
61214
61215         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
61216         (VASNPRINTF): Return a string of length > INT_MAX without failing.
61217         * lib/vasprintf.c: Include errno.h, limits.h.
61218         (EOVERFLOW): New fallback definition.
61219         (vasprintf): Test here whether the string length is > INT_MAX.
61220         * lib/vsnprintf.c: Include errno.h, limits.h.
61221         (EOVERFLOW): New fallback definition.
61222         (vsnprintf): Fix bug when generated string was too long for the buffer.
61223         Test here whether the string length is > INT_MAX.
61224
61225 2006-08-28  Bruno Haible  <bruno@clisp.org>
61226
61227         * lib/inttypes_.h (SCNX*): Remove definitions.
61228         Reported by Eric Blake.
61229
61230 2006-08-28  Bruno Haible  <bruno@clisp.org>
61231
61232         * lib/c-strstr.h: New file, from GNU gettext.
61233         * lib/c-strstr.c: New file, from GNU gettext.
61234
61235 2006-08-28  Bruno Haible  <bruno@clisp.org>
61236
61237         * gnulib-tool: Reorder some statements.
61238
61239 2006-08-28  Bruno Haible  <bruno@clisp.org>
61240
61241         * gnulib-tool: New option --makefile-name.
61242         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
61243         $makefile_name.
61244         (func_import): Write $makefile_name to the cache file, and read it from
61245         there unless explicitly specified. Use $makefile_name as file name
61246         instead of Makefile.am. Adjust the recommendations accordingly.
61247
61248 2006-08-28  Bruno Haible  <bruno@clisp.org>
61249
61250         * gnulib-tool (func_verify_module): Check against misapplying patch.
61251
61252 2006-08-28  Bruno Haible  <bruno@clisp.org>
61253
61254         * gnulib-tool (func_relativize, func_relconcat): New functions.
61255         Give an error if --local-dir is given with --update.
61256         Remove trailing slashes from $local_gnulib_dir.
61257         (func_import): Store the relativized $local_gnulib_dir in
61258         gnulib-cache.m4, and read it from there if not specified explicitly.
61259
61260 2006-08-28  Bruno Haible  <bruno@clisp.org>
61261
61262         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
61263         is the current directory. Respect also $local_gnulib_dir.
61264
61265 2006-08-28  Bruno Haible  <bruno@clisp.org>
61266             Simon Josefsson  <jas@extundo.com>
61267
61268         BeOS portability.
61269         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
61270
61271 2006-08-27  Jim Meyering  <jim@meyering.net>
61272
61273         * doc/visibility.texi: Remove duplicate word: "pointer".
61274
61275 2006-08-26  Bruno Haible  <bruno@clisp.org>
61276
61277         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
61278         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
61279         (Makefile.am): Create inttypes.h from inttypes_.h.
61280         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
61281
61282         * modules/imaxabs: New file.
61283
61284         * modules/imaxdiv: New file.
61285
61286 2006-08-26  Bruno Haible  <bruno@clisp.org>
61287
61288         * m4/inttypes.m4: New file.
61289         * m4/_inttypes_h.m4: Remove file.
61290         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
61291         PRI_MACROS_BROKEN.
61292         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
61293
61294         * m4/imaxabs.m4: New file.
61295
61296         * m4/imaxdiv.m4: New file.
61297
61298 2006-08-26  Bruno Haible  <bruno@clisp.org>
61299
61300         * lib/inttypes_.h: New file.
61301         * lib/inttypes.h: Remove file.
61302         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
61303
61304         * lib/imaxabs.c: New file.
61305
61306         * lib/imaxdiv.c: New file.
61307
61308 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61309
61310         New config-h module, so that "make" output needn't be cluttered
61311         by -DHAVE_CONFIG_H.
61312         * MODULES.html.sh (Support for building libraries and executables):
61313         Add config-h.
61314         * modules/config-h: New file.
61315         * gnulib-tool (nl, sed_transform_lib_file): New vars.
61316         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
61317         the config-h module is used.
61318
61319         New configmake module, so that "make" output needn't be cluttered
61320         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
61321         * MODULES.html.sh (Support for building libraries and executables):
61322         Add configmake.
61323         * modules/configmake: New file.
61324
61325 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61326
61327         * m4/config-h.m4: New file.
61328
61329 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61330
61331         * config/srclist.txt: Add elisp-comp.
61332
61333 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61334
61335         * MODULES.html.sh (Support for building libraries and executables):
61336         Add elisp-comp.
61337         * build-aux/elisp-comp: New file.
61338         * modules/elisp-comp: New file.
61339
61340 2006-08-24  Bruno Haible  <bruno@clisp.org>
61341
61342         * gnulib-tool (func_create_testdir): Use non-default values of
61343         sourcebase and m4base.
61344
61345 2006-08-24  Bruno Haible  <bruno@clisp.org>
61346
61347         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
61348         HTML structure.
61349
61350 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61351
61352         * modules/openat (Depends-on): Add lchown.
61353
61354 2006-08-23  Bruno Haible  <bruno@clisp.org>
61355
61356         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
61357         of gl_LOCK_EARLY instead of gl_LOCK.
61358
61359 2006-08-23  Bruno Haible  <bruno@clisp.org>
61360
61361         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
61362         on OSF/1 to no.
61363         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
61364
61365 2006-08-23  Bruno Haible  <bruno@clisp.org>
61366
61367         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
61368         as unusable.
61369
61370         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
61371         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
61372         (gl_LOCK): New macro.
61373
61374 2006-08-22  Simon Josefsson  <jas@extundo.com>
61375
61376         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
61377         to md5 module.
61378
61379 2006-08-22  Simon Josefsson  <jas@extundo.com>
61380
61381         * MODULES.html.sh: Add "Support for maintaining and release
61382         projects".
61383
61384         * build-aux/gnupload: New file, from coreutils.
61385
61386 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61387
61388         Avoid the need for AC_LIBSOURCES in m4 macros.
61389         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
61390         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
61391         * modules/check-version (EXTRA_DIST): Add check-version.h.
61392         * modules/crc (EXTRA_DIST): Add crc.h.
61393         * modules/des (EXTRA_DIST): Add des.h.
61394         * modules/gc (EXTRA_DIST): Add gc.h.
61395         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
61396         * modules/getline (EXTRA_DIST): Add getline.h.
61397         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
61398         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
61399         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
61400         * modules/md2 (EXTRA_DIST): Add md2.h.
61401         * modules/md4 (EXTRA_DIST): Add md4.h.
61402         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
61403         * modules/read-file (EXTRA_DIST): Add read-file.h.
61404         * modules/readline (EXTRA_DIST): Add readline.h.
61405         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
61406         rijndael-api-fst.h.
61407
61408 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61409
61410         * m4/rijndael.m4 (gl_ARCFOUR):
61411         * m4/arctwo.m4 (gl_ARCTWO):
61412         * m4/check-version.m4 (gl_CHECK_VERSION):
61413         * m4/crc.m4 (gl_CRC):
61414         * m4/des.m4 (gl_DES):
61415         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
61416         * m4/gc.m4 (gl_GC):
61417         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
61418         * m4/getline.m4 (gl_FUNC_GETLINE):
61419         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
61420         * m4/hmac-md5.m4 (gl_HMAC_MD5):
61421         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
61422         * m4/md2.m4 (gl_MD2):
61423         * m4/md4.m4 (gl_MD4):
61424         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
61425         * m4/read-file.m4 (gl_FUNC_READ_FILE):
61426         * m4/readline.m4 (gl_FUNC_READLINE):
61427         * m4/rijndael.m4 (gl_RIJNDAEL):
61428         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61429         to get the necessary .h files and whatnot.
61430
61431 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61432
61433         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
61434         gnulib rather than the other way around.
61435         * config/srclistvars.sh (COREUTILS): Remove.
61436
61437 2006-08-22  Jim Meyering  <jim@meyering.net>
61438
61439         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
61440
61441         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
61442
61443 2006-08-22  Eric Blake  <ebb9@byu.net>
61444
61445         * modules/regexprops-generic: New file.
61446         * MODULES.html.sh (Support for building documentation): List it.
61447
61448 2006-08-22  Eric Blake  <ebb9@byu.net>
61449
61450         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
61451         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
61452         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
61453         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
61454
61455 2006-08-22  Bruno Haible  <bruno@clisp.org>
61456
61457         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
61458         and lib_LTLIBRARIES like the other lib_* variables.
61459
61460 2006-08-22  Bruno Haible  <bruno@clisp.org>
61461
61462         * build-aux/x-to-1.in: New file, from GNU gettext.
61463
61464 2006-08-22  Bruno Haible  <bruno@clisp.org>
61465
61466         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
61467         <utmpx.h> exists.
61468
61469 2006-08-22  Bruno Haible  <bruno@clisp.org>
61470
61471         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
61472         <utmpx.h> exists.
61473
61474 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61475
61476         BeOS portability.
61477         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
61478         exist.
61479         Problem reported by Bruno Haible.
61480
61481 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61482
61483         Avoid the need for AC_LIBSOURCES in m4 macros.
61484         * modules/acl (EXTRA_DIST): Add acl.h.
61485         * modules/argmatch (Files): Add m4/argmatch.m4.
61486         (configure.ac): Add gl_ARGMATCH.
61487         (EXTRA_DIST): Renamed from lib_SOURCES, for
61488         consistency with the other modules.  Remove argmatch.c.
61489         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
61490         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
61491         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
61492         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
61493         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
61494         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
61495         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
61496         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
61497         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
61498         * modules/closeout (EXTRA_DIST): Add closeout.h.
61499         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
61500         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
61501         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
61502         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
61503         dirname.h; remove basename.c and stripslash.c.
61504         * modules/exclude (EXTRA_DIST): Add exclude.h.
61505         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
61506         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
61507         * modules/file-type (EXTRA_DIST): Add file-type.h.
61508         * modules/filemode (EXTRA_DIST): Add filemode.h.
61509         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
61510         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
61511         * modules/fpending (EXTRA_DIST): Add __fpending.h.
61512         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
61513         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
61514         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
61515         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
61516         * modules/getdate (EXTRA_DIST): Add getdate.c.
61517         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
61518         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
61519         * modules/getpass (EXTRA_DIST): Add getpass.h.
61520         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
61521         * modules/group-member (EXTRA_DIST): Add group-member.h.
61522         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
61523         * modules/hash (EXTRA_DIST): Add hash.h.
61524         * modules/human (EXTRA_DIST): Add human.h.
61525         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
61526         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
61527         * modules/lchown (EXTRA_DIST): Add lchown.h.
61528         * modules/long-options (EXTRA_DIST): Add long-options.h.
61529         * modules/lstat (EXTRA_DIST): Add lstat.h.
61530         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
61531         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
61532         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
61533         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
61534         * modules/memxor (EXTRA_DIST): Add memxor.h.
61535         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
61536         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
61537         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
61538         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
61539         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
61540         * modules/physmem (EXTRA_DIST): Add physmem.h.
61541         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
61542         * modules/posixver (EXTRA_DIST): Add posixver.h.
61543         * modules/quote (EXTRA_DIST): Add quote.h.
61544         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
61545         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
61546         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
61547         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
61548         regex_internal.h regexec.c.
61549         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
61550         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
61551         * modules/same (EXTRA_DIST): Add same.h.
61552         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
61553         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
61554         * modules/savedir (EXTRA_DIST): Add savedir.h.
61555         * modules/sha1 (EXTRA_DIST): Add sha1.h.
61556         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
61557         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
61558         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
61559         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
61560         * modules/strdup (EXTRA_DIST): Add strdup.h.
61561         * modules/strftime (EXTRA_DIST): Add strftime.h.
61562         * modules/strndup (EXTRA_DIST): Add strndup.h.
61563         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
61564         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
61565         * modules/time_r (EXTRA_DIST): Add time_r.h.
61566         * modules/timespec (EXTRA_DIST): Add timespec.h.
61567         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
61568         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
61569         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
61570         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
61571         * modules/userspec (EXTRA_DIST): Add userspec.h.
61572         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
61573         * modules/utimens (EXTRA_DIST): Add utimens.h.
61574         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
61575         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
61576         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
61577         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
61578         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
61579         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
61580         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
61581         * modules/yesno (EXTRA_DIST): Add yesno.h.
61582
61583 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61584
61585         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
61586
61587         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
61588         * m4/dev-ino.m4, same-inode.m4: Remove.
61589
61590         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
61591         * m4/acl.m4 (AC_FUNC_ACL):
61592         * m4/backupfile.m4 (gl_BACKUPFILE):
61593         * m4/c-strtod.m4 (gl_C99_STRTOLD):
61594         * m4/canon-host.m4 (gl_CANON_HOST):
61595         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
61596         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
61597         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
61598         * m4/cloexec.m4 (gl_CLOEXEC):
61599         * m4/close-stream.m4 (gl_CLOSE_STREAM):
61600         * m4/closeout.m4 (gl_CLOSEOUT):
61601         * m4/dirfd.m4 (gl_FUNC_DIRFD):
61602         * m4/dirname.m4 (gl_DIRNAME):
61603         * m4/exclude.m4 (gl_EXCLUDE):
61604         * m4/exitfail.m4 (gl_EXITFAIL):
61605         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
61606         * m4/file-type.m4 (gl_FILE_TYPE):
61607         * m4/filemode.m4 (gl_FILEMODE):
61608         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
61609         * m4/fpending.m4 (gl_FUNC_FPENDING):
61610         * m4/fprintftime.m4 (gl_FPRINTFTIME):
61611         * m4/fts.m4 (gl_FUNC_FTS):
61612         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
61613         * m4/getdate.m4 (gl_GETDATE):
61614         * m4/gethrxtime.m4 (gl_GETHRXTIME):
61615         * m4/getpagesize.m4 (gl_GETPAGESIZE):
61616         * m4/getpass.m4 (gl_FUNC_GETPASS):
61617         * m4/gettime.m4 (gl_GETTIME):
61618         * m4/getugroups.m4 (gl_GETUGROUPS):
61619         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
61620         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
61621         * m4/hard-locale.m4 (gl_HARD_LOCALE):
61622         * m4/hash.m4 (gl_HASH):
61623         * m4/idcache.m4 (gl_IDCACHE):
61624         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
61625         * m4/lchown.m4 (gl_FUNC_LCHOWN):
61626         * m4/long-options.m4 (gl_LONG_OPTIONS):
61627         * m4/lstat.m4 (gl_FUNC_LSTAT):
61628         * m4/md5.m4 (gl_MD5):
61629         * m4/memcasecmp.m4 (gl_MEMCASECMP):
61630         * m4/memcoll.m4 (gl_MEMCOLL):
61631         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
61632         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
61633         * m4/memxor.m4 (gl_MEMXOR):
61634         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
61635         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
61636         * m4/modechange.m4 (gl_MODECHANGE):
61637         * m4/mountlist.m4 (gl_MOUNTLIST):
61638         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61639         * m4/openat.m4 (gl_FUNC_OPENAT):
61640         * m4/pathmax.m4 (gl_PATHMAX):
61641         * m4/physmem.m4 (gl_PHYSMEM):
61642         * m4/posixtm.m4 (gl_POSIXTM):
61643         * m4/posixver.m4 (gl_POSIXVER):
61644         * m4/quote.m4 (gl_QUOTE):
61645         * m4/quotearg.m4 (gl_QUOTEARG):
61646         * m4/readtokens.m4 (gl_READTOKENS):
61647         * m4/readutmp.m4 (gl_READUTMP):
61648         * m4/regex.m4 (gl_REGEX):
61649         * m4/safe-read.m4 (gl_SAFE_READ):
61650         * m4/safe-write.m4 (gl_SAFE_WRITE):
61651         * m4/same.m4 (gl_SAME):
61652         * m4/save-cwd.m4 (gl_SAVE_CWD):
61653         * m4/savedir.m4 (gl_SAVEDIR):
61654         * m4/settime.m4 (gl_SETTIME):
61655         * m4/sha1.m4 (gl_SHA1):
61656         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
61657         * m4/stat-macros.m4 (gl_STAT_MACROS):
61658         * m4/stat-time.m4 (gl_STAT_TIME):
61659         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
61660         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
61661         * m4/strdup.m4 (gl_FUNC_STRDUP):
61662         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
61663         * m4/strndup.m4 (gl_FUNC_STRNDUP):
61664         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
61665         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
61666         * m4/time_r.m4 (gl_TIME_R):
61667         * m4/timespec.m4 (gl_TIMESPEC):
61668         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
61669         * m4/unlinkdir.m4 (gl_UNLINKDIR):
61670         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
61671         * m4/userspec.m4 (gl_USERSPEC):
61672         * m4/utimecmp.m4 (gl_UTIMECMP):
61673         * m4/utimens.m4 (gl_UTIMENS):
61674         * m4/xalloc.m4 (gl_XALLOC):
61675         * m4/xgetcwd.m4 (gl_XGETCWD):
61676         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
61677         * m4/xreadlink.m4 (gl_XREADLINK):
61678         * m4/xstrtod.m4 (gl_XSTRTOD):
61679         * m4/yesno.m4 (gl_YESNO):
61680         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61681         to get the necessary .h files and whatnot.
61682
61683 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
61684             Bruno Haible  <bruno@clisp.org>
61685
61686         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
61687         /bin/sh understanding of '!' conditional negation.
61688
61689 2006-08-21  Jim Meyering  <jim@meyering.net>
61690
61691         * modules/openat (Depends-on): Really alphabetize.
61692
61693         * modules/acl (Depends-on): Add error and quote.
61694
61695         * check-module (find_included_lib_files): Add at-func.c to the
61696         ok-to-include-more-than-once white list.
61697
61698         * modules/openat (Depends-on): Add lstat.  Alphabetize.
61699
61700 2006-08-21  Bruno Haible  <bruno@clisp.org>
61701
61702         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61703         Emit a pkgdata_DATA variable only if some snippets add contents to it.
61704         Reported by Martin Lambers <marlam@marlam.de>.
61705
61706 2006-08-21  Bruno Haible  <bruno@clisp.org>
61707
61708         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
61709         specify an installation location, don't emit a noinst_LIBRARIES or
61710         noinst_LTLIBRARIES assignment.
61711
61712 2006-08-21  Bruno Haible  <bruno@clisp.org>
61713
61714         BeOS portability.
61715         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
61716         BeOS has mbrtowc() but no <wctype.h>.
61717
61718 2006-08-21  Bruno Haible  <bruno@clisp.org>
61719
61720         BeOS portability.
61721         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
61722         exist.
61723
61724 2006-08-21  Bruno Haible  <bruno@clisp.org>
61725
61726         BeOS portability.
61727         * lib/mbchar.h: Include <wctype.h> only if it exists.
61728
61729 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61730
61731         Remove files that are no longer needed by their respective modules.
61732         * m4/obstack.m4: Remove.
61733         * m4/strerror_r.m4: Remove.
61734         * m4/uint32_t.m4: Remove.
61735         * m4/uintptr_t.m4: Remove.
61736         * m4/ullong_max.m4: Remove.
61737         * m4/xstrtoimax.m4: Remove.
61738         * m4/xstrtoumax.m4: Remove.
61739
61740         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
61741         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
61742         dependencies now capture this.
61743
61744         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
61745         Do not use AC_LIBSOURCES, since gnulib modules now do this.
61746         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
61747         * m4/human.m4 (gl_HUMAN): Likewise.
61748         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
61749         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
61750
61751         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
61752
61753         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
61754         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
61755         stdint.
61756         * m4/human.m4 (gl_HUMAN): Likewise.
61757         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
61758         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
61759         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
61760         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
61761         * m4/xstrtol (gl_XSTRTOL): Likewise.
61762
61763         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
61764         AC_TYPE_LONG_LONG_INT.
61765         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
61766         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
61767         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
61768         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
61769
61770         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
61771         on stdbool.
61772
61773         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
61774         (gl_PREREQ_XSTRTOUL): Remove.
61775
61776         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
61777
61778         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
61779         mode.
61780
61781 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61782
61783         Add and change modules to make it easier for coreutils to use
61784         gnulib-tool.
61785         * modules/backupfile (Files): Remove m4/d-ino.m4.
61786         (Depends-on): Add d-ino.
61787         * modules/cycle-check (Depends-on): Add stdint.
61788         (lib_SOURCES): Add cycle-check.h.
61789         * modules/d-ino: New module.
61790         * modules/d-type: New module.
61791         * modules/error (Files): Remove m4/strerror_r.m4.
61792         * modules/filemode (Files): Add m4/st_dm_mode.m4.
61793         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
61794         m4/inttypes_h.m4, m4/uintmax_t.m4.
61795         (Depends-on): Add stdint.
61796         (lib_SOURCES): Add fsusage.h.
61797         * modules/getcwd (Files): Remove d-ino.m4.
61798         (Depends-on): Add d-ino.
61799         * modules/getndelim2 (Depends-on): Add stdint.
61800         * modules/glob (Files): Remove m4/d-type.m4.
61801         (Depends-on): Add d-type.
61802         * modules/host-os: New module.
61803         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
61804         m4/inttypes_h.m4, m4/uintmax_t.m4.
61805         * Depends-on: Add stdint.
61806         (lib_SOURCES): Add human.h.
61807         * modules/inttostr (Files): Remove m4/intmax_t.m4,
61808         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
61809         m4/uintmax_t.m4, m4/ulonglong.m4.
61810         (Depends-on): Add stdint.
61811         (EXTRA_DIST): Add inttostr.h.
61812         * modules/lchmod: New module.
61813         * modules/link-follow: New module.
61814         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
61815         (Depends-on): Add lchmod.
61816         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
61817         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
61818         (Depends-on): Add stdint.
61819         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
61820         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
61821         (Depends-on): Add stdint.
61822         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
61823         * modules/perl: New module.
61824         * modules/regex (Depends-on): Add stdint.
61825         * modules/rmdir-errno: New module.
61826         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
61827         m4/intmax_t.m4.
61828         (Depends-on): Add stdint.
61829         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
61830         m4/uintmax_t.m4.
61831         (Depends-on): Add stdint.
61832         * modules/unlink-busy: New module.
61833         * modules/utimecmp (Depends-on): Add stdint.
61834         * modules/uptime: New module.
61835         * modules/winsz-ioctl: New module.
61836         * modules/winsz-termios: New module.
61837         * modules/xnanosleep (Depends-on): Add nanosleep.
61838         * modules/ullong_max: Remove.
61839         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
61840         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
61841         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
61842         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
61843         (Depends-on): Add inttypes.
61844         (lib_SOURCES): Add xstrtol.h.
61845         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
61846         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
61847         * MODULES.html.sh: Move 'assert' into the assert section.
61848         Move 'dummy' into the linking section.
61849         Remove ullong_max.
61850         Add section for compatibility checks for POSIX:2001 functions,
61851         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
61852         winsz-ioctl, and winsz-termios into it.
61853         Add lchmod.
61854         Add top-level Misc section and put host-os, perl, and uptime
61855         into it.
61856
61857 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61858
61859         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
61860         now assume the stdint module.  Do not include inttypes.h.
61861         * lib/fsusage.h: Likewise.
61862         * lib/getndelim2.c: Likewise.
61863         * lib/human.h: Likewise.
61864         * lib/inttostr.h: Likewise.
61865         * lib/obstack.c: Likewise.
61866         * lib/regex_internal.h: Likewise.
61867         * lib/tempname.c: Likewise.
61868         * lib/utimecmp.c: Likewise.
61869         * lib/xstrtol.h: Likewise.
61870
61871         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
61872
61873         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
61874         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
61875         * lib/xtime.h: Likewise.
61876
61877 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61878
61879         * modules/openat (Files): Add lib/fchmodat.c.
61880         Fixes problem reported by Jay Youngman.
61881
61882 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61883
61884         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
61885         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
61886
61887 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
61888             Bruno Haible  <bruno@clisp.org>
61889
61890         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
61891         and is a script that invokes bison. Tighten the code. Add comments.
61892
61893 2006-08-18  Jim Meyering  <jim@meyering.net>
61894
61895         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
61896         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
61897         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
61898         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
61899
61900 2006-08-18  Bruno Haible  <bruno@clisp.org>
61901
61902         * modules/bison-i18n: New file.
61903         * MODULES.html.sh (Internationalization functions): Add it.
61904
61905 2006-08-18  Bruno Haible  <bruno@clisp.org>
61906
61907         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
61908         sys/statvfs.h. When getmntinfo was found, check its declaration and
61909         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
61910
61911 2006-08-18  Bruno Haible  <bruno@clisp.org>
61912
61913         * m4/bison-i18n.m4: New file, from bison.
61914
61915 2006-08-18  Bruno Haible  <bruno@clisp.org>
61916
61917         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
61918         (ME_DUMMY): Treat "kernfs" as a dummy.
61919         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
61920
61921 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61922
61923         Update from coreutils.
61924
61925         2006-08-15  Jim Meyering  <jim@meyering.net>
61926
61927         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
61928
61929         2006-01-17  Jim Meyering  <jim@meyering.net>
61930
61931         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
61932
61933         2006-01-11  Jim Meyering  <jim@meyering.net>
61934
61935         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
61936         Check for the lchmod function.
61937
61938 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61939
61940         Update from coreutils.
61941
61942         * lib/__fpending.h: Add copyright notice.
61943         * lib/fprintftime.h: Likewise.
61944         * lib/savedir.c: Use (C) in copyright notice.
61945         * lib/savedir.h: Likewise.
61946
61947         2006-08-15  Jim Meyering  <jim@meyering.net>
61948
61949         * lib/at-func.c: New file, with the logic of all emulated at-functions.
61950         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
61951         in support of the EXPECTED_ERRNO macro.
61952         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
61953         definitions.  Instead, define the appropriate symbols and include
61954         "at-func.c".
61955         * lib/mkdirat.c (mkdirat): Likewise.
61956         * lib/fchmodat.c (fchmodat): Likewise.
61957         (ENOSYS): Remove definition.
61958         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
61959         it.  Don't include "unistd--.h" -- it wasn't ever used.
61960
61961         2006-01-17  Jim Meyering  <jim@meyering.net>
61962
61963         Rewrite fts.c not to change the current working directory,
61964         by using openat, fstatat, fdopendir, etc..
61965
61966         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
61967         (HAVE_OPENAT_SUPPORT): Define.
61968         [_LIBC] (fchdir): Don't undef or define; no longer used.
61969         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
61970         Now, this `function' always succeeds, and consumes its file descriptor
61971         parameter -- so callers must not close such FDs.  Update callers.
61972         (diropen_fd, opendirat, cwd_advance_fd): New functions.
61973         (diropen): Add parameter, SP.  Adjust all callers.
61974         Implement using diropen_fd, rather than open.
61975         (fts_open): Initialize new member, fts_cwd_fd.
61976         Remove fts_rft-setting code.
61977         (fts_close): Close fts_cwd_fd, if necessary.
61978         (__opendir2): Define in terms of opendir or opendirat,
61979         depending on whether the FST_NOCHDIR flag is set.
61980         (fts_build): Since fts_safe_changedir consumes its FD, and since
61981         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
61982         and close the dup'd file descriptor upon failure.
61983         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
61984         (fts_safe_changedir): Tweak semantics to reflect that this function
61985         now calls cwd_advance_fd and hence consumes its FD argument.
61986         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
61987         [struct FTS] (fts_rft): Remove now-unused member.
61988         [struct FTS] (fts_cycle.state): Improve comment.
61989
61990         * lib/openat.c (openat_needs_fchdir): New function.
61991         * lib/openat.h (openat_needs_fchdir): Declare it.
61992
61993 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
61994
61995         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
61996         Problem and fix reported by Pádraig Brady in
61997         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
61998
61999 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62000
62001         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
62002
62003 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62004
62005         * lib/memcoll.c (memcoll): Optimize for the common case where the
62006         arguments are bytewise equal.
62007
62008 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62009
62010         * doc/regexprops-generic.texi: Add a copyright notice.
62011
62012 2006-08-15  Bruno Haible  <bruno@clisp.org>
62013
62014         * modules/tmpdir (License): Change to LGPL.
62015
62016 2006-08-15  Bruno Haible  <bruno@clisp.org>
62017
62018         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
62019         module.
62020
62021 2006-08-14  Simon Josefsson  <jas@extundo.com>
62022
62023         * config/srclist.txt: Add gnupload.
62024
62025 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62026
62027         Change copyright notice from LGPL 2 to GPL 2, since that's the
62028         standard form used in the gnulib repository.
62029         * tests/test-lock.c: Likewise.
62030         * tests/test-stdint.c: Likewise.
62031         * tests/test-tls.c: Likewise.
62032
62033         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
62034         prelude-manager.  User shorter URLs for GNU projects, without '?'.
62035         Add copyright notice.
62036
62037         * check-module: Add copyright notice.  Output a copyright
62038         notice if "--version" is specified.
62039         * modules/COPYING: New file.
62040         * tests/test-getaddrinfo.c: Add copyright notice.
62041         * tests/test-verify.c: Likewise.
62042
62043 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62044
62045         Change copyright notice from LGPL 2 to GPL 2, since that's the
62046         standard form used in the gnulib repository.
62047         * lib/lock.c: LGPL -> GPL.
62048         * lib/lock.h: Likewise.
62049         * lib/strnlen1.c: Likewise.
62050         * lib/strnlen1.h: Likewise.
62051         * lib/tls.c: Likewise.
62052         * lib/tls.h: Likewise.
62053         * lib/tmpdir.c: Likewise.
62054
62055         * lib/TODO: Remove; this belongs only in coreutils.
62056
62057 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62058
62059         Add copyright notices to long-enough files that lack them, since
62060         otherwise the files aren't clearly free.  Use the same notice that
62061         getdate.texi already uses.
62062         * doc/alloca-opt.texi: Add copyright notice.
62063         * doc/alloca.texi: Likewise.
62064         * doc/ctime.texi: Likewise.
62065         * doc/functions.texi: Likewise.
62066         * doc/gcd.texi: Likewise.
62067         * doc/gnulib-tool.texi: Likewise.
62068         * doc/inet_ntoa.texi: Likewise.
62069         * doc/visibility.texi: Likewise.
62070
62071         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
62072         * doc/quote.texi: Add copyright notice.
62073
62074         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
62075         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
62076         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
62077         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
62078         is now obsolete, and give a pointer to the Sun list.
62079         Add copyright notice.
62080
62081 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62082
62083         * config/srclistvars.sh: Add copyright notice.
62084
62085 2006-08-14  Eric Blake  <ebb9@byu.net>
62086
62087         Import the following change from libc:
62088
62089         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
62090
62091         Upstream bug 2997.
62092         * lib/misc/error.c: Add space between program name and message if file
62093         name is missing.
62094
62095 2006-08-12  Karl Berry  <karl@gnu.org>
62096
62097         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
62098         remove, these originate in gnulib now.
62099
62100 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62101
62102         * doc/Makefile (standards.info standards.html standards.dvi):
62103         Also depend on make-stds.texi.
62104
62105 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62106
62107         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
62108         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
62109
62110         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
62111         in wchar_t.  Problem reported by Eric Blake.
62112
62113         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
62114         LEN is smaller than SIZE.  Suggested by Bruno Haible.
62115         Also, help the compiler to keep LEN in a register.
62116
62117 2006-08-11  Eric Blake  <ebb9@byu.net>
62118
62119         * users.txt: Sort.  Add tar.
62120
62121 2006-08-11  Bruno Haible  <bruno@clisp.org>
62122
62123         * users.txt: New file.
62124
62125 2006-08-11  Bruno Haible  <bruno@clisp.org>
62126
62127         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
62128         before <wchar.h>. Needed for OSF/1 and BSD/OS.
62129
62130 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62131
62132         * modules/snprintf (Depends-on): Remove minmax.
62133         (Maintainer): Add self and Bruno.
62134
62135 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62136
62137         * lib/.cppi-disable: Add snprintf.h, socket_.h.
62138         * lib/snprintf.c: Include <errno.h> and <limits.h>.
62139         (EOVERFLOW): Define if the system does not.
62140         Do not include "minmax.h"; it wasn't used.
62141         (snprintf): Don't assume size_t promotes to an unsigned type.
62142         Fix bug when generated string was too long for the buffer: the
62143         buffer's contents are supposed to be the initial prefix of the
62144         output.  Don't assume vasnprintf returns EOVERFLOW if the size
62145         exceeds INT_MAX; do the check ourselves.
62146
62147         Import the following changes from libc:
62148
62149         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
62150
62151         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
62152         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
62153         set wc to the byte which couldn't be converted.
62154         (re_string_reconstruct): Don't clear valid_raw_len before calling
62155         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
62156         tip_context using re_string_context_at.
62157
62158         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
62159
62160         * lib/posix/regex.h: g++ still cannot handled [restrict].
62161
62162         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
62163
62164         * lib/posix/regex.h: Remove special handling for VMS.
62165
62166 2006-08-10  Jim Meyering  <jim@meyering.net>
62167
62168         * modules/same-inode: New module.
62169         * modules/dev-ino: New module.
62170         * modules/cycle-check: Depend on these modules, rather than simply
62171         including their .h files.
62172         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
62173         required via m4/cycle-check.m4.
62174         * modules/same: Depend on new same-inode module, rather than
62175         including same-inode.h.
62176         * modules/chdir-safer: New file.
62177
62178         * modules/chown (Depends-on): Add stat-macros.
62179
62180 2006-08-10  Jim Meyering  <jim@meyering.net>
62181
62182         * m4/cycle-check.m4: New file.
62183         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
62184         * m4/dev-ino.m4, m4/same-inode.m4: New files.
62185
62186 2006-08-10  Eric Blake  <ebb9@byu.net>
62187
62188         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
62189         in from original proposal.
62190
62191 2006-08-10  Eric Blake  <ebb9@byu.net>
62192         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62193
62194         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
62195         namespace.
62196
62197 2006-08-10  Bruno Haible  <bruno@clisp.org>
62198
62199         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
62200         as well.
62201
62202 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62203
62204         Sync from coreutils.
62205
62206         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
62207
62208         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
62209         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
62210
62211 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62212
62213         * modules/restrict: Remove; no longer needed now that we assume
62214         Autoconf 2.59 or later.
62215         * MODULES.html.sh: Remove 'restrict'.
62216         * modules/argp (Depends-on): Remove 'restrict'.
62217         * modules/base64 (Depends-on): Likewise.
62218         * modules/gc (Depends-on): Likewise.
62219         * modules/getaddrinfo (Depends-on): Likewise.
62220         * modules/glob (Depends-on): Likewise.
62221         * modules/inet_ntop (Depends-on): Likewise.
62222         * modules/inet_pton (Depends-on): Likewise.
62223         * modules/memxor (Depends-on): Likewise.
62224         * modules/regex (Depends-on): Likewise.
62225         * modules/strtok_r (Depends-on): Likewise.
62226         * modules/time_r (Depends-on): Likewise.
62227
62228 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62229
62230         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
62231         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
62232         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62233         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
62234         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
62235         * m4/memxor.m4 (gl_MEMXOR): Likewise.
62236         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
62237         gl_C_RESTRICT replaced by AC_C_RESTRICT.
62238
62239         Merge from coreutils.
62240         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
62241         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
62242         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62243         * m4/time_r.m4 (gl_TIME_R): Likewise.
62244
62245 2006-08-09  Karl Berry  <karl@gnu.org>
62246
62247         * config/srclist.txt: no more gettext-tools, per Bruno.
62248
62249 2006-08-08  Eric Blake  <ebb9@byu.net>
62250
62251         * modules/verror: New module.
62252         * MODULES.html.sh: Document it.
62253
62254 2006-08-08  Eric Blake  <ebb9@byu.net>
62255
62256         * lib/verror.h, lib/verror.c: New files.
62257
62258 2006-08-08  Eric Blake  <ebb9@byu.net>
62259
62260         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
62261         verror_at_line output complies with GNU Coding Standards even when
62262         file is NULL.
62263
62264 2006-08-07  Bruno Haible  <bruno@clisp.org>
62265
62266         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
62267         versions of AIX.
62268         Reported by Ralf Wildenhues.
62269
62270 2006-08-07  Bruno Haible  <bruno@clisp.org>
62271
62272         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
62273         in an AC_DEFUN. Needed so that the autoconf snippets can use
62274         AC_REQUIRE.
62275
62276 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62277
62278         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62279         Initialize pkgdata_DATA.
62280         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
62281         overriding it.
62282
62283 2006-08-06  Eric Blake  <ebb9@byu.net>
62284
62285         * lib/error.h: Fold in some upstream changes from glibc.
62286         * lib/error.c: Likewise.
62287
62288 2006-08-04  Bruno Haible  <bruno@clisp.org>
62289
62290         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62291         Make the mostlyclean-local rule depend on mostlyclean-generic.
62292         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
62293
62294 2006-07-31  Bruno Haible  <bruno@clisp.org>
62295
62296         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
62297         <stdlib.h>, <string.h>.
62298
62299 2006-07-30  Bruno Haible  <bruno@clisp.org>
62300
62301         * modules/readlink (License): Change to LGPL.
62302
62303 2006-07-30  Bruno Haible  <bruno@clisp.org>
62304
62305         * modules/javaversion (Makefile.am): Distribute javaversion.java and
62306         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
62307         set PKGDATADIR to point to it.
62308
62309 2006-07-30  Bruno Haible  <bruno@clisp.org>
62310
62311         * modules/csharpexec (configure.ac): Comment out macro invocation.
62312         * modules/javaexec (configure.ac): Likewise.
62313         * modules/javacomp-script (configure.ac): Likewise.
62314
62315         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
62316
62317 2006-07-30  Bruno Haible  <bruno@clisp.org>
62318
62319         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
62320         linked-list.
62321
62322 2006-07-30  Bruno Haible  <bruno@clisp.org>
62323
62324         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
62325
62326 2006-07-30  Bruno Haible  <bruno@clisp.org>
62327
62328         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62329         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
62330         get removed.
62331
62332 2006-07-29  Bruno Haible  <bruno@clisp.org>
62333
62334         Make it possible for gnulib-tool to work with locally modified or
62335         augmented gnulib repositories.
62336         * gnulib-tool (func_usage): Document --local-dir option.
62337         (local_gnulib_dir): New variable.
62338         Handle --local-dir option.
62339         (func_lookup_file): New function.
62340         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
62341         (func_get_description, func_get_filelist, func_get_description,
62342         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
62343         func_get_automake_snippet, func_get_include_directive,
62344         func_get_license, func_get_maintainer): Use func_lookup_file.
62345         (func_import, func_create_testdir): Use func_lookup_file.
62346
62347 2006-07-29  Bruno Haible  <bruno@clisp.org>
62348
62349         * modules/setenv (Depends-on): Add unistd.
62350
62351 2006-07-29  Bruno Haible  <bruno@clisp.org>
62352
62353         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
62354
62355 2006-07-29  Bruno Haible  <bruno@clisp.org>
62356
62357         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
62358
62359 2006-07-29  Bruno Haible  <bruno@clisp.org>
62360
62361         * gnulib-tool (import, update): If there is no Makefile.am, look at
62362         aclocal.m4, instead of bailing out.
62363
62364 2006-07-29  Bruno Haible  <bruno@clisp.org>
62365
62366         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
62367         Categorize the options by when they are useful.
62368
62369 2006-07-29  Bruno Haible  <bruno@clisp.org>
62370
62371         * gnulib-tool (func_usage): Document option --no-libtool.
62372         Handle option --no-libtool.
62373         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
62374         for changed semantics of $libtool variable.
62375         (func_import): Likewise. If libtool is not used, show this through
62376         an option --no-libtool.
62377         (func_create_testdir): Update.
62378
62379 2006-07-29  Bruno Haible  <bruno@clisp.org>
62380
62381         * gnulib-tool (func_import): Extend error message about missing
62382         --doc-base.
62383
62384 2006-07-29  Bruno Haible  <bruno@clisp.org>
62385
62386         * gnulib-tool (func_import): Don't create the $docbase directory if
62387         there is no file to store there.
62388
62389 2006-07-29  Bruno Haible  <bruno@clisp.org>
62390
62391         * gnulib-tool (autoconf_minversion): If a --dir option is given and
62392         relevant, look for configure.ac there, not in the current directory.
62393         Also use a simple search for AC_PREREQ, not "autoconf --trace".
62394
62395 2006-07-29  Bruno Haible  <bruno@clisp.org>
62396
62397         * gnulib-tool (SORT): New variable.
62398         (func_usage): Undocument --assume-autoconf option.
62399         Remove --assume-autoconf option handling.
62400         (autoconf_minversion): Determine from the contents of configure.ac.
62401         (func_import): Remove autoconf_minversion handling.
62402         Suggested by Eric Blake.
62403
62404 2006-07-29  Bruno Haible  <bruno@clisp.org>
62405
62406         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
62407
62408 2006-07-29  Bruno Haible  <bruno@clisp.org>
62409
62410         * config/srclist.txt (*setenv.[ch]): Remove rules.
62411
62412 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62413
62414         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
62415
62416 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62417
62418         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
62419         arpa/inet.h.
62420
62421 2006-07-28  Simon Josefsson  <jas@extundo.com>
62422
62423         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
62424         * modules/inet_pton (Depends-on): Likewise.
62425
62426 2006-07-28  Simon Josefsson  <jas@extundo.com>
62427
62428         * m4/netinet_in_h.m4: New file.
62429
62430 2006-07-28  Simon Josefsson  <jas@extundo.com>
62431
62432         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
62433         #include's.
62434
62435 2006-07-28  Simon Josefsson  <jas@extundo.com>
62436
62437         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
62438         #include's.
62439
62440 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
62441
62442         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
62443         setgid on directories only if they set these bits.
62444         * lib/modechange.h: Remove obsolete comment about masks.
62445
62446 2006-07-28  Eric Blake  <ebb9@byu.net>
62447
62448         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
62449         macro expansion.
62450
62451 2006-07-28  Bruno Haible  <bruno@clisp.org>
62452
62453         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
62454
62455 2006-07-28  Bruno Haible  <bruno@clisp.org>
62456
62457         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
62458
62459 2006-07-28  Bruno Haible  <bruno@clisp.org>
62460
62461         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
62462         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
62463         Define fallbacks.
62464         Avoids link error on FreeBSD 4.x.
62465         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62466
62467         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
62468         encoding.
62469         * lib/mbswidth.c (iswcntrl): Likewise.
62470
62471 2006-07-27  Bruno Haible  <bruno@clisp.org>
62472
62473         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
62474         test.
62475
62476 2006-07-27  Bruno Haible  <bruno@clisp.org>
62477
62478         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
62479         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
62480         defined.
62481
62482 2006-07-26  Eric Blake  <ebb9@byu.net>
62483
62484         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
62485
62486 2006-07-26  Eric Blake  <ebb9@byu.net>
62487
62488         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
62489         like mingw that lack mkstemp.
62490         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
62491         avoid compilation warning on mingw.
62492
62493 2006-07-26  Bruno Haible  <bruno@clisp.org>
62494
62495         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
62496         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
62497         INT_FAST*_MIN, INTPTR_MIN.
62498
62499 2006-07-25  Bruno Haible  <bruno@clisp.org>
62500
62501         * modules/version-etc (Depends-on): Add stdarg.
62502
62503 2006-07-25  Bruno Haible  <bruno@clisp.org>
62504
62505         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
62506         complex commands.
62507
62508 2006-07-25  Bruno Haible  <bruno@clisp.org>
62509
62510         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
62511         defined in <stdarg.h> or config.h.
62512
62513 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
62514
62515         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
62516         (gl_STDIO_SAFER): Remove.
62517
62518 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
62519
62520         * MODULES.html.sh (File stream based Input/Output):
62521         Add fopen-safer, tmpfile-safer; remove stdio-safer.
62522         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
62523         * modules/fopen-safer, modules/tmpfile-safer: New files.
62524         * modules/stdio-safer: Remove.
62525
62526 2006-07-24  Bruno Haible  <bruno@clisp.org>
62527
62528         * modules/tmpdir: New file.
62529         * MODULES.html.sh (File system functions): Add it.
62530
62531 2006-07-24  Bruno Haible  <bruno@clisp.org>
62532
62533         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
62534         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
62535
62536 2006-07-24  Bruno Haible  <bruno@clisp.org>
62537
62538         * modules/clean-temp: New file.
62539
62540 2006-07-24  Bruno Haible  <bruno@clisp.org>
62541
62542         * m4/tmpdir.m4: New file, from GNU gettext.
62543
62544 2006-07-24  Bruno Haible  <bruno@clisp.org>
62545
62546         * lib/tmpdir.h: New file, from GNU gettext.
62547         * lib/tmpdir.c: New file, from GNU gettext.
62548
62549 2006-07-24  Bruno Haible  <bruno@clisp.org>
62550
62551         * lib/clean-temp.h: New file, from GNU gettext.
62552         * lib/clean-temp.c: New file, from GNU gettext.
62553
62554 2006-07-23  Eric Blake  <ebb9@byu.net>
62555
62556         * modules/stdio-safer (Files): Add tmpfile-safer.c.
62557         (Depends-on): Add binary-io.
62558
62559 2006-07-23  Eric Blake  <ebb9@byu.net>
62560
62561         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
62562
62563 2006-07-23  Eric Blake  <ebb9@byu.net>
62564
62565         * lib/tmpfile-safer.c: New file.
62566         * lib/stdio-safer.h (fopen_safer): Add prototype.
62567         * lib/stdio--.h (tmpfile): Make safer.
62568
62569 2006-07-23  Bruno Haible  <bruno@clisp.org>
62570
62571         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
62572         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
62573         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
62574         gl_linked_remove_at): Use it.
62575
62576 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62577         and Simon Josefsson <jas@extundo.com>
62578
62579         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
62580
62581         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
62582
62583 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62584
62585         * modules/close-stream: New file.
62586         * modules/closeout (Description): Make it clear that it exits
62587         with a diagnostic on error.
62588         (Depends-on): Add close-stream.  Remove fpending, stdbool.
62589         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
62590
62591 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62592
62593         * m4/close-stream.m4: New file.
62594
62595 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62596
62597         * lib/close-stream.c, lib/close-stream.h: New files.
62598
62599 2006-07-22  Bruno Haible  <bruno@clisp.org>
62600
62601         Merge from GNU gettext 0.15.
62602
62603         2006-05-01  Bruno Haible  <bruno@clisp.org>
62604
62605                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
62606
62607         2006-07-22  Bruno Haible  <bruno@clisp.org>
62608
62609                 * modules/javaversion: New file.
62610                 * MODULES.html.sh (Java): Add javaversion.
62611
62612         2006-03-12  Bruno Haible  <bruno@clisp.org>
62613
62614                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
62615
62616         2005-12-04  Bruno Haible  <bruno@clisp.org>
62617
62618                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
62619                 (untested).
62620
62621         2006-06-21  Bruno Haible  <bruno@clisp.org>
62622
62623                 Avoid warnings from recent versions of mcs.
62624                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
62625                 -o, -L, -r any more. Use options documented since mcs-1.0
62626                 instead. Similarly for -g.
62627
62628         2005-12-04  Bruno Haible  <bruno@clisp.org>
62629
62630                 * build-aux/csharpcomp.sh.in: Suffix for resources is
62631                 .resources, not .resource.
62632
62633         2005-07-09  Bruno Haible  <bruno@clisp.org>
62634
62635                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
62636                 add a .dll suffix.
62637                 Reported by Mark Junker <mjscod@gmx.de>.
62638
62639         2006-07-22  Bruno Haible  <bruno@clisp.org>
62640
62641                 * modules/gettext: Upgrade to gettext-0.15.
62642                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
62643                 m4/visibility.m4.
62644                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
62645
62646 2006-07-22  Bruno Haible  <bruno@clisp.org>
62647
62648         Merge from GNU gettext 0.15.
62649
62650         2006-03-25  Bruno Haible  <bruno@clisp.org>
62651
62652                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
62653
62654         2006-07-21  Bruno Haible  <bruno@clisp.org>
62655
62656                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
62657                 "1.1".
62658
62659         2006-05-09  Bruno Haible  <bruno@clisp.org>
62660
62661                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
62662                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
62663                 for the conftestver execution.
62664
62665         2006-05-01  Bruno Haible  <bruno@clisp.org>
62666
62667                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
62668                 optional target-version argument. Verify that the compiler
62669                 groks source of the specified source-version, or add -source
62670                 option as necessary. Verify that the compiler produces
62671                 bytecode in the specified target-version, or add -target and
62672                 -source options as necessary. Make the result of the test
62673                 available as variable CONF_JAVAC. Also log error output in
62674                 config.log.
62675
62676         2006-03-11  Bruno Haible  <bruno@clisp.org>
62677
62678                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
62679
62680         2006-05-09  Bruno Haible  <bruno@clisp.org>
62681
62682                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
62683                 CLASSPATH_SEPARATOR to a semicolon.
62684
62685         2006-03-12  Bruno Haible  <bruno@clisp.org>
62686
62687                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
62688                 available as variable CONF_JAVA, for subsequent autoconf
62689                 tests. Also log error output in config.log.
62690
62691         2006-07-19  Bruno Haible  <bruno@clisp.org>
62692
62693                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
62694                 that getline works on glibc2 systems. Needed to avoid trouble
62695                 in relocatable.c.
62696                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
62697
62698         2005-12-04  Bruno Haible  <bruno@clisp.org>
62699
62700                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
62701                 launcher (untested).
62702
62703         2005-12-04  Bruno Haible  <bruno@clisp.org>
62704
62705                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
62706
62707         2006-07-22  Bruno Haible  <bruno@clisp.org>
62708
62709                 * gettext.m4: Update from GNU gettext-0.15.
62710                 * nls.m4: Likewise.
62711                 * po.m4: Likewise.
62712                 * inttypes-pri.m4: Likewise.
62713                 * inttypes-h.m4: Renamed from inttypes.m4.
62714                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
62715
62716 2006-07-22  Bruno Haible  <bruno@clisp.org>
62717
62718         Merge from GNU gettext 0.15.
62719
62720         2005-07-05  Bruno Haible  <bruno@clisp.org>
62721
62722                 * printf-args.c (printf_fetchargs): Work around broken
62723                 definition of wint_t on mingw.
62724
62725         2005-02-12  Bruno Haible  <bruno@clisp.org>
62726
62727                 * xallocsa.h: Add extern "C" for C++.
62728
62729         2006-05-17  Bruno Haible  <bruno@clisp.org>
62730
62731                 Cygwin portability.
62732                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
62733
62734         2006-04-30  Bruno Haible  <bruno@clisp.org>
62735
62736                 * progreloc.c: Include <mach-o/dyld.h> if available.
62737                 (find_executable): Use _NSGetExecutablePath when possible.
62738
62739         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62740
62741                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
62742                 function.
62743
62744         2005-12-29  Bruno Haible  <bruno@clisp.org>
62745
62746                 * progreloc.c (set_program_name_and_installdir): Fix
62747                 compilation error.
62748
62749         2005-12-04  Bruno Haible  <bruno@clisp.org>
62750
62751                 Cygwin portability.
62752                 * progreloc.c: Include <windows.h> also on Cygwin.
62753                 (find_executable): Add support for Cygwin.
62754                 (set_program_name_and_installdir): Handle also platforms with
62755                 nonempty EXEEXT.
62756
62757         2006-07-11  Bruno Haible  <bruno@clisp.org>
62758
62759                 * javacomp.c: Fix a comment.
62760                 Reported by Jim Meyering.
62761
62762         2006-04-30  Bruno Haible  <bruno@clisp.org>
62763
62764                 * javacomp.h (compile_java_class): Add source_version,
62765                 target_version arguments.
62766                 * javacomp.c: Rewritten to choose only a compiler that
62767                 respects the specified source_version and target_version.
62768
62769         2006-06-27  Bruno Haible  <bruno@clisp.org>
62770
62771                 Assume correct S_ISDIR macro.
62772                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
62773
62774         2006-07-22  Bruno Haible  <bruno@clisp.org>
62775
62776                 * javaversion.h: New file, from GNU gettext.
62777                 * javaversion.c: New file, from GNU gettext.
62778                 * javaversion.java: New file, from GNU gettext.
62779                 * javaversion.class: New file, from GNU gettext.
62780
62781         2006-05-17  Bruno Haible  <bruno@clisp.org>
62782
62783                 Cygwin portability.
62784                 * javaexec.c (execute_java_class): Test for jview program
62785                 also on Cygwin.
62786
62787         2006-04-09  Bruno Haible  <bruno@clisp.org>
62788
62789                 * fatal-signal.c: Don't include string.h.
62790                 (at_fatal_signal): Use a copying loop instead of memcpy.
62791
62792         2005-12-04  Bruno Haible  <bruno@clisp.org>
62793
62794                 * csharpexec.c: Add support for 'clix' launcher (untested).
62795                 (execute_csharp_using_sscli): New function.
62796                 (execute_csharp_program): Call it.
62797
62798         2006-06-21  Bruno Haible  <bruno@clisp.org>
62799
62800                 Avoid warnings from recent versions of mcs.
62801                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
62802                 -o, -L, -r any more. Use options documented since mcs-1.0
62803                 instead. Similarly for -g.
62804
62805         2005-07-09  Bruno Haible  <bruno@clisp.org>
62806
62807                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
62808                 add a .dll suffix.
62809                 Reported by Mark Junker <mjscod@gmx.de>.
62810
62811         2006-06-17  Bruno Haible  <bruno@clisp.org>
62812
62813                 * config.charset: Update for NetBSD 3.0.
62814
62815         2006-05-17  Bruno Haible  <bruno@clisp.org>
62816
62817                 Cygwin portability.
62818                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
62819
62820         2006-05-16  Bruno Haible  <bruno@clisp.org>
62821
62822                 * localcharset.c [CYGWIN]: Include <windows.h>.
62823                 (get_charset_aliases): For Cygwin, return the same CPxxx
62824                 aliases list as under WIN32.
62825                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
62826                 the environment variables. Fall back to GetACP().
62827
62828         2006-04-05  Bruno Haible  <bruno@clisp.org>
62829
62830                 * config.charset: Update Juan Manuel Guerrero's address.
62831
62832         2005-02-12  Bruno Haible  <bruno@clisp.org>
62833
62834                 * allocsa.h: Add extern "C" for C++.
62835
62836         2005-02-10  Bruno Haible  <bruno@clisp.org>
62837
62838                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
62839                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
62840
62841         2006-07-22  Bruno Haible  <bruno@clisp.org>
62842
62843                 * gettext.h: Update to GNU gettext-0.15.
62844
62845 2006-07-22  Bruno Haible  <bruno@clisp.org>
62846
62847         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
62848         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
62849         lib-prefix.m4, longdouble.m4, ssize_t.m4.
62850
62851 2006-07-21  Eric Blake  <ebb9@byu.net>
62852
62853         * modules/stdlib-safer: New file.
62854         * MODULES.html.sh (File stream based Input/Output): Add
62855         stdlib-safer.
62856
62857 2006-07-21  Eric Blake  <ebb9@byu.net>
62858
62859         * lib/stdlib-safer.h: New file from coreutils, required by
62860         stdlib--.h.
62861
62862 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
62863
62864         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
62865
62866 2006-07-20  Bruno Haible  <bruno@clisp.org>
62867
62868         * gnulib-tool: Recognize new option --assume-autoconf.
62869         (autoconf_minversion): New variable.
62870         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
62871
62872 2006-07-20  Bruno Haible  <bruno@clisp.org>
62873
62874         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
62875
62876 2006-07-19  Derek R. Price  <derek@ximbiot.com>
62877
62878         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
62879         Reindent and repaginate.
62880
62881 2006-07-19  Derek Price  <derek@ximbiot.com>
62882
62883         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
62884         Correct grammar.
62885
62886 2006-07-17  Bruno Haible  <bruno@clisp.org>
62887
62888         * modules/list: New file.
62889         * modules/array-list: New file.
62890         * modules/carray-list, modules/carray-list-tests: New files.
62891         * modules/linked-list, modules/linked-list-tests: New files.
62892         * modules/avltree-list, modules/avltree-list-tests: New files.
62893         * modules/rbtree-list, modules/rbtree-list-tests: New files.
62894         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
62895         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
62896         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
62897         * modules/oset: New file.
62898         * modules/array-oset: New file.
62899         * modules/avltree-oset, modules/avltree-oset-tests: New files.
62900         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
62901         * tests/test-carray_list.c: New file.
62902         * tests/test-linked_list.c: New file.
62903         * tests/test-avltree_list.c: New file.
62904         * tests/test-rbtree_list.c: New file.
62905         * tests/test-linkedhash_list.c: New file.
62906         * tests/test-avltreehash_list.c: New file.
62907         * tests/test-rbtreehash_list.c: New file.
62908         * tests/test-avltree_oset.c: New file.
62909         * tests/test-rbtree_oset.c: New file.
62910         * MODULES.html.sh (Container data structures): New section.
62911
62912 2006-07-17  Bruno Haible  <bruno@clisp.org>
62913
62914         * m4/gl_list.m4: New file.
62915
62916 2006-07-17  Bruno Haible  <bruno@clisp.org>
62917
62918         * lib/gl_list.h: New file.
62919         * lib/gl_list.c: New file.
62920         * lib/gl_array_list.h: New file.
62921         * lib/gl_array_list.c: New file.
62922         * lib/gl_carray_list.h: New file.
62923         * lib/gl_carray_list.c: New file.
62924         * lib/gl_linked_list.h: New file.
62925         * lib/gl_linked_list.c: New file.
62926         * lib/gl_anylinked_list1.h: New file.
62927         * lib/gl_anylinked_list2.h: New file.
62928         * lib/gl_avltree_list.h: New file.
62929         * lib/gl_avltree_list.c: New file.
62930         * lib/gl_anyavltree_list1.h: New file.
62931         * lib/gl_anyavltree_list2.h: New file.
62932         * lib/gl_rbtree_list.h: New file.
62933         * lib/gl_rbtree_list.c: New file.
62934         * lib/gl_anyrbtree_list1.h: New file.
62935         * lib/gl_anyrbtree_list2.h: New file.
62936         * lib/gl_anytree_list1.h: New file.
62937         * lib/gl_anytree_list2.h: New file.
62938         * lib/gl_linkedhash_list.h: New file.
62939         * lib/gl_linkedhash_list.c: New file.
62940         * lib/gl_anyhash_list1.h: New file.
62941         * lib/gl_anyhash_list2.h: New file.
62942         * lib/gl_avltreehash_list.h: New file.
62943         * lib/gl_avltreehash_list.c: New file.
62944         * lib/gl_rbtreehash_list.h: New file.
62945         * lib/gl_rbtreehash_list.c: New file.
62946         * lib/gl_anytreehash_list1.h: New file.
62947         * lib/gl_anytreehash_list2.h: New file.
62948
62949         * lib/gl_oset.h: New file.
62950         * lib/gl_oset.c: New file.
62951         * lib/gl_array_oset.h: New file.
62952         * lib/gl_array_oset.c: New file.
62953         * lib/gl_avltree_oset.h: New file.
62954         * lib/gl_avltree_oset.c: New file.
62955         * lib/gl_rbtree_oset.h: New file.
62956         * lib/gl_rbtree_oset.c: New file.
62957         * lib/gl_anytree_oset.h: New file.
62958
62959 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62960
62961         * m4/mkancesdirs.m4: New file.
62962         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
62963         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
62964         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
62965         it.
62966
62967 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62968
62969         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
62970         * lib/mkancesdirs.h: New files.
62971         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
62972         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
62973         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
62974         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
62975         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
62976         callers changed.  Revamp internals significantly, by not
62977         attempting to create directories that are temporarily more
62978         permissive than the final results.  Do not attempt to use
62979         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
62980         This removes some race conditions, fixes some bugs, and simplifies
62981         things.  Use new dirchownmod function to do owner and mode changes.
62982         * lib/mkdir-p.h: Likewise.
62983         * lib/modechange.c (octal_to_mode): New function.
62984         (struct mode_change): New member mentioned.
62985         (make_node_op_equals): New arg mentioned.  All callers changed.
62986         (mode_compile): Keep track of which mode bits the user has explicitly
62987         mentioned.
62988         (mode_adjust): New arg DIR, so that we implement the X op correctly.
62989         New arg PMODE_BITS, to keep track of which mode bits the user
62990         mentioned; it treats S_ISUID and S_ISGID speciall.
62991         All callers changed.
62992         * lib/modechange.h: Likewise.
62993
62994 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62995
62996         * MODULES.html.sh: Add mkancestors.
62997         * modules/mkancesdirs: New module.
62998         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
62999         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
63000         The chdir-safer and afs files are now orphans; I'll remove them
63001         unless someone speaks up.
63002         Add lib/dirchownmod.c, lib/dirchownmod.h.
63003         (Depends-on): Remove alloca, chown, save-cwd, dirname.
63004         Add lchown, mkancesdirs.
63005         (Maintainer): Add self.
63006
63007 2006-07-15  Karl Berry  <karl@gnu.org>
63008
63009         * gnulib-tool: help message wording/arrangement.
63010
63011 2006-07-14  Simon Josefsson  <jas@extundo.com>
63012
63013         * doc/gnulib.texi (Libtool and Windows): New section.
63014
63015 2006-07-12  Simon Josefsson  <jas@extundo.com>
63016
63017         * modules/gendocs (License): Fix license, approved by Karl.
63018
63019 2006-07-12  Eric Blake  <ebb9@byu.net>
63020
63021         * MODULES.html.sh: Add gendocs.
63022
63023 2006-07-11  Eric Blake  <ebb9@byu.net>
63024
63025         * modules/fdl: New module, to install doc/fdl.texi.
63026         * MODULES.html.sh: Add new section for documentation modules.
63027         * gnulib-tool: Avoid space-tab.
63028         (--doc-base): New option, to manage files from doc.
63029
63030 2006-07-11  Eric Blake  <ebb9@byu.net>
63031
63032         * m4/absolute-header.m4: Fix comments to match recent change.
63033
63034 2006-07-11  Eric Blake  <ebb9@byu.net>
63035
63036         * gnulib-tool: List --doc-base before --tests-base.
63037
63038 2006-07-11  Derek R. Price  <derek@ximbiot.com>
63039
63040         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
63041
63042 2006-07-11  Bruno Haible  <bruno@clisp.org>
63043
63044         * README: Mention where to put documentation.
63045
63046 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63047
63048         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
63049
63050 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63051
63052         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
63053         to stdint.m4.
63054
63055 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63056
63057         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
63058         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
63059         "no/such/file/stdint.h" when there is no such file, so that
63060         the resulting C code can be parsed by dodgy compilers.
63061         Problems reported by Bob Proulx.
63062
63063 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63064
63065         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
63066         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63067         macros into the GNU _D_EXACT_NAMLEN.
63068         * lib/savedir.c:  Likewise.
63069         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
63070
63071 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63072         and Paul Eggert  <eggert@cs.ucla.edu>
63073
63074         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
63075         * m4/savedir.m4:
63076         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63077         macros into the GNU _D_EXACT_NAMLEN.
63078
63079 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63080
63081         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
63082         around the absolute name, to work around a problem with the HP-UX
63083         11.23 native C compiler, reported by Bob Proulx.
63084
63085 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63086
63087         * doc/maintain.texi, make-stds.texi: Sync from
63088         <http://savannah.gnu.org/projects/gnustandards>.
63089
63090 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63091
63092         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
63093
63094 2006-07-09  Jim Meyering  <jim@meyering.net>
63095
63096         * m4/glob.m4: Remove a doubled word in a comment.
63097
63098 2006-07-09  Jim Meyering  <jim@meyering.net>
63099
63100         * lib/argp-pv.c: Remove a doubled word in a comment.
63101         * lib/check-version.c (check_version): Likewise.
63102         * lib/javacomp.c (compile_java_class): Likewise.
63103
63104 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63105
63106         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
63107         for the benefit of people using Autoconf 2.60.  If you want to
63108         support older Autoconf versions you can copy m4/onceonly_2_57.m4
63109         (or m4/onceonly.m4, if pre-2.57) manually.
63110
63111 2006-07-08  Jim Meyering  <jim@meyering.net>
63112
63113         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
63114         comment.
63115         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
63116         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
63117         comment.
63118
63119 2006-07-08  Jim Meyering  <jim@meyering.net>
63120
63121         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
63122
63123 2006-07-07  Simon Josefsson  <jas@extundo.com>
63124
63125         * tests/test-crc.c: Change expected crc value, the test vector
63126         were probably computed using the old broken crc.c?
63127
63128 2006-07-06  Simon Josefsson  <jas@extundo.com>
63129
63130         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
63131         now the canonical place for the M4 file).
63132
63133         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
63134         from the sys_socket dependency now.
63135
63136         * modules/inet_pton (Files): Ditto.
63137
63138         * modules/inet_ntop (Files): Ditto.
63139
63140 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63141
63142         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
63143         not gl_PREREQ_GETUSERSHELL.
63144
63145 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63146
63147         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
63148         with only one argument, for Autoconf 2.60.
63149         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
63150         expand to nothing, so add a shell command to avoid syntax error.
63151         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63152
63153 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63154
63155         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
63156
63157 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63158
63159         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
63160         no longer needed.  Check for isblank decl.
63161         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
63162         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
63163         of existence.
63164
63165 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63166
63167         * lib/getloadavg.c: Use __VMS, not VMS.
63168         * lib/getopt.c: Likewise.
63169         * lib/getpagesize.h: Likewise.
63170         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
63171         and probably does not work.
63172
63173 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63174
63175         * lib/.cppi-disable: Add wcwidth.
63176         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
63177         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
63178         (ISGRAPH): Remove.  All uses changed to isgraph.
63179         (FOLD) [!defined _LIBC]: Remove special case.
63180         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
63181         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
63182         HAVE_ISBLANK.
63183         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
63184         case.
63185
63186 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63187
63188         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
63189         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
63190         brackets.  Other minor changes to suppress some compiler
63191         warnings.
63192
63193 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63194         and Paul Eggert  <eggert@cs.ucla.edu>
63195
63196         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
63197         of invoking obsolescent AC_HEADER_DIRENT macro.
63198         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
63199         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
63200         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
63201         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
63202         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
63203         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63204         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
63205         * m4/readdir.m4: Remove; no longer needed.
63206
63207 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63208         and Paul Eggert  <eggert@cs.ucla.edu>
63209
63210         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
63211         Don't worry about this obsolete case any more.
63212         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
63213         directories.
63214         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
63215         worry about this obsolete case any more.
63216         * lib/fts.c: Likewise.
63217         * lib/getcwd.c: Likewise.
63218         * lib/glob.h: Likewise.
63219         * lib/savedir.c: Likewise.
63220
63221 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63222
63223         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
63224         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
63225         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
63226         needed.
63227         All uses removed.
63228         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63229         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63230         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
63231         needed.
63232         * m4/getdate.m4 (gl_GETDATE): Likewise.
63233         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63234         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63235         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63236         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63237         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63238         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63239         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
63240         needed.
63241
63242 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63243
63244         * lib/memcasecmp.c: Include <limits.h>.
63245         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
63246         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
63247         Don't assume isdigit succeeds only on '0' through '9'.
63248
63249 2006-07-05  Eric Blake  <ebb9@byu.net>
63250
63251         * modules/getaddrinfo (Depends-on): Add snprintf.
63252
63253 2006-07-05  Eric Blake  <ebb9@byu.net>
63254
63255         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
63256         to avoid 'header present but could not be compiled' on cygwin.
63257
63258 2006-07-05  Eric Blake  <ebb9@byu.net>
63259
63260         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
63261         missing from netdb.h.
63262         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
63263
63264 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63265
63266         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
63267         no longer needed.
63268         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
63269         * m4/getdate.m4 (gl_GETDATE): Likewise.
63270         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63271         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63272         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63273         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63274         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63275
63276 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63277
63278         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
63279         All uses of is_space replaced by isspace.
63280         * lib/exit.h: Don't talk about STDC_HEADERS.
63281         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
63282         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
63283         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
63284         replaced by isprint etc.
63285         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
63286         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63287         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
63288         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
63289         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
63290         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63291
63292 2006-07-05  Bruno Haible  <bruno@clisp.org>
63293
63294         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
63295         the function exists, before testing against AIX.
63296         Reported by Martin Lambers <marlam@marlam.de>.
63297
63298 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63299
63300         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
63301         From Mark D. Baushke.
63302
63303 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63304
63305         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
63306         to the absolute name, not just one, to bypass Sun C 5.8's
63307         "warning: #include of /usr/include/... may be non-portable".
63308
63309 2006-07-04  Eric Blake  <ebb9@byu.net>
63310
63311         * modules/dirname-tests: New test module.
63312         * tests/test-dirname.c: New file, replacing dirname.c
63313         TEST_DIRNAME section that was recently deleted.
63314
63315 2006-07-04  Bruno Haible  <bruno@clisp.org>
63316
63317         Assume ANSI C header files and <ctype.h> functions.
63318         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
63319         (mbsnwidth): Use isprint, iscntrl instead.
63320
63321 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63322
63323         Merge from coreutils.
63324         * MODULES.html.sh: Add xstrtold.
63325         * modules/xstrtold: New file.
63326         * modules/cycle-check (Files): Add lib/same-inode.h.
63327         * modules/dirname (Files): Add m4/double-slash-root.m4.
63328         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
63329         * modules/mkdir-p (Files): Add lib/same-inode.h.
63330         * modules/same (Files): Add lib/same-inode.h.
63331
63332 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63333
63334         * m4/absolute-header.m4: Renamed from full-header-path.m4.
63335         This is to keep the terminology clean; POSIX talks about
63336         "absolute pathnames", not "full pathnames", but the GNU
63337         Coding Standards say to use "path" for something else;
63338         so use "absolute" to keep both sides happy.
63339         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
63340         Set gl_absolute_header, not gl_full_header_path.
63341         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
63342         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
63343         All uses changed.
63344
63345         Merge from coreutils.
63346
63347         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63348
63349         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
63350         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
63351         want to require the building of c-strtod.o.
63352         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
63353         needs -lm directly.
63354         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
63355
63356         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
63357
63358         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
63359         --as-needed option if available.  Problem reported by Albert Chin in
63360         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
63361         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
63362         cc merely issues a bunch of annoying warnings for --as-needed
63363         (this problem was reported by Bob Proulx).  Also, try linking with
63364         -lm to detect a bug in binutils 2.16 (this problem was reported
63365         by Ralf Wildenhues).
63366
63367         2006-06-18  Jim Meyering  <jim@meyering.net>
63368
63369         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
63370         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
63371         macro.
63372         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
63373         also check for glibc-2.4's abort-inducing bug.
63374
63375         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
63376         Low-probability clean-up should be to use rmdir to get rid of
63377         the just-created directory, not unlink.
63378
63379         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
63380         configure fail, and request a bug report to inform us about it.
63381         Add a comment that, barring reports to the contrary, in 2007 we'll
63382         assume ftruncate is universally available.
63383
63384         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63385
63386         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
63387
63388         2006-03-12  Jim Meyering  <jim@meyering.net>
63389
63390         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
63391         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
63392         * m4/same.m4 (gl_SAME): Likewise.
63393         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
63394
63395         2006-03-11  Eric Blake  <ebb9@byu.net>
63396
63397         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
63398         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
63399         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
63400         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
63401
63402 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63403
63404         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
63405         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
63406         reported by Mark D. Baushke, one in
63407         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
63408
63409         Merge from coreutils.
63410
63411         * lib/.cppi-disable: Add stdint_.h.
63412         * lib/.cvsignore: Add stdint.h.
63413
63414         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63415
63416         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
63417         both double and long double versions.
63418         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
63419         * lib/xstrtold.c: New file.
63420         * lib/xstrtod.h (xstrtold): New decl.
63421
63422         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
63423
63424         * lib/filemode.c (setst): Remove.
63425         (strmode): Rewrite to avoid setst.  This makes the code shorter,
63426         (arguably) clearer, and the generated code is a bit smaller on my
63427         Debian GNU/Linux stable x86 host.
63428
63429         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63430
63431         * lib/filemode.c: Include "filemode.h" first, to test the interface.
63432         Assume that filemode.h includes sys/types.h and sys/stat.h.
63433         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
63434         (ftypelet): Reorder to put common cases first, for efficiency.
63435         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
63436         to do 'M'.
63437         (strmode): Renamed from mode_string, and now stores 12 bytes instead
63438         of 10, for compatibility with FreeBSD.  All callers changed.
63439         (filemodestring): Now stores 12 bytes instead of 10, and sets file
63440         types that can't be deduced solely from st_mode.  First arg is now a
63441         const pointer.
63442         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
63443         (strmode): Renamed from mode_string.
63444         (filemodestring): New decl.
63445         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
63446         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
63447         needed.
63448         (S_ISPORT, S_ISWHT): New macros, if not already defined.
63449
63450         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
63451
63452         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
63453         fsusage.h now does that.  Include fsusage.h first, to test interface.
63454         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
63455         at most one method (the old code could have generated decls that
63456         didn't conform to C89, not that this was ever exercised).
63457         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
63458
63459         2006-03-19  Jim Meyering  <jim@meyering.net>
63460
63461         Work even in a chroot where d_ino values for entries in "/"
63462         don't match the stat.st_ino values for the same names.
63463         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
63464         number, iterate through all entries again, using lstat instead.
63465         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
63466         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
63467
63468         * lib/getcwd.c (__getcwd): Clarify a comment.
63469         Use memcpy in place of a call to strcpy.
63470
63471         2006-03-12  Jim Meyering  <jim@meyering.net>
63472
63473         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
63474         matches that of the current directory (which we're about to chdir ".."
63475         out of), then save the dev-ino of the parent, instead.
63476
63477         * lib/same-inode.h (SAME_INODE): New file/macro.
63478         * lib/chdir-safer.c (SAME_INODE): Remove definition.
63479         Include "same-inode.h", instead.
63480         * lib/same.c: Likewise.
63481         * lib/cycle-check.h: Include "same-inode.h".
63482         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
63483         * lib/cycle-check.c (SAME_INODE): Remove definition.
63484         * lib/root-dev-ino.h: Include "same-inode.h".
63485
63486         2006-03-11  Eric Blake  <ebb9@byu.net>
63487
63488         * lib/same.c (same_name): s/base_name/last_component/
63489         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
63490         * lib/filenamecat.c (file_name_concat): Likewise.
63491
63492         2006-03-11  Eric Blake  <ebb9@byu.net>,
63493                     Paul Eggert  <eggert@cs.ucla.edu>
63494
63495         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
63496         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
63497         drive prefix.
63498         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
63499         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
63500         (last_component): New method.
63501         * lib/dirname.c (dir_len): Determine when drive letters need a
63502         subsequent slash.  Preserve // when it is special.
63503         (dir_name): Don't append dot when drive letter is absolute.
63504         [TEST_DIRNAME]: Move into a full-blown gnulib test.
63505         * lib/basename.c (base_name): New semantics - malloc the result.
63506         Preserve // when it is special.  Preserve relative files that look
63507         like drive letters.
63508         (base_len): Preserve // when it is special.
63509         (last_component): New method, similar to old base_name semantics.
63510         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
63511         base_name.  Strip redundant slashes from ///.
63512
63513 2006-07-03  Jim Meyering  <jim@meyering.net>
63514
63515         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
63516         macro is used before the first cycle_check call.
63517
63518 2006-07-03  Eric Blake  <ebb9@byu.net>
63519
63520         * modules/dirname (Depends-on): Add xstrndup.
63521
63522 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63523
63524         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
63525         test cases, so that config.log is a bit easier to follow.
63526
63527 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63528
63529         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
63530         both are 64 bits, since this seems to be the tradition, and this
63531         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
63532         we ever run into a host that prefers long long to long in this
63533         case, we'll need another configure-time test.  Problem reported by
63534         Jim Meyering.
63535
63536 2006-07-02  Eric Blake  <ebb9@byu.net>
63537
63538         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
63539
63540 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63541
63542         * modules/inttypes (Depends-on): No longer depends on stdint.
63543         * modules/stdint (Description): Say more about assumptions.
63544         Say that the fast types might differ.  Say macros are used.
63545         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
63546         (Makefile.am): Revise list of substituted symbols to match
63547         new stdint.m4.
63548         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
63549         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
63550         * tests/test-stdint.c (verify_same_types)
63551         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
63552         the code conforms to C99/C89.
63553         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
63554         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
63555
63556 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63557
63558         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
63559         but fix a bug, by requiring at least 64 bits.
63560         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63561         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
63562         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
63563         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
63564
63565         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
63566         changes.  Make 2.59 a prerequisite.  Check and substitute for
63567         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
63568         inttypes.h.  Do not use special include files; just use the
63569         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
63570         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
63571         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
63572         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
63573         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
63574         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
63575         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
63576         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
63577         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
63578         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
63579         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
63580         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
63581         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
63582         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
63583         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
63584         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
63585         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
63586         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
63587         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
63588         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
63589         WINT_MAX.  Check for C99 conformance more strictly, by detecting
63590         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
63591         not check for things that C99 does not require, e.g., int8_t.  If
63592         a test isn't needed unless <stdint.h> isn't working, and is
63593         unlikely to be needed for any other reason, then don't do it
63594         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
63595         size_t, since we assume C89 freestanding at least.  Do not check
63596         for sig_atomic_t, wchar_t, or wint_t, since the code now does
63597         the right thing even if the types are not defined.  Instead use:
63598         (gl_STDINT_TYPE_PROPERTIES): New macro.
63599         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
63600         testing whether <sys/types.h> clashes, as Autoconf does this for
63601         us now.  All uses removed.
63602         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
63603         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
63604         (gl_CHECK_TYPE_SAME):
63605         Remove; no longer needed.
63606         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
63607         exists, since we'll return 0 anyway in that case.
63608         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
63609
63610 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63611
63612         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
63613         possible collision with system files.
63614         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
63615         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
63616         WCHAR_MIN and WCHAR_MAX in this case.
63617         (<stddef.h>): Do not include; no longer needed.
63618         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
63619         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
63620         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
63621         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
63622         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
63623         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
63624         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
63625         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
63626         !defined(__c99))]: Include in this case too, since it's harmless
63627         now.
63628         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
63629         dangerous to do so.
63630         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
63631         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
63632         (_STDINT_MIN, _STDINT_MAX): New macros.
63633         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
63634         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
63635         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
63636         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
63637         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
63638         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
63639         macros, not typedefs; this simplifies things quite a bit.
63640         Use long int for all types narrower than int64_t.
63641         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
63642         Define in terms of long long int or int64_t or long int,
63643         not int64_t or int32_t.  This saves some compile-time testing.
63644         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
63645         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
63646         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
63647         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
63648         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
63649         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
63650         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
63651         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
63652         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
63653         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
63654         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
63655         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
63656         undef any previous version and define our own version, for
63657         simplicity and consistency with the new macros for types.
63658         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
63659         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
63660         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
63661         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
63662         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
63663         @WINT_T_SUFFIX@ to keep things simple here.
63664         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
63665         Simplify by assuming typical 8/16/32/64 host, since we're
63666         already doing that elsewhere anyway.
63667         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
63668         and assume long long int is 64 bits if available.  This
63669         speeds up 'configure'.
63670
63671 2006-07-01  Eric Blake  <ebb9@byu.net>
63672
63673         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
63674         Reported by Andreas Buening.
63675
63676 2006-07-01  Eric Blake  <ebb9@byu.net>
63677
63678         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
63679
63680 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63681
63682         * lib/getaddrinfo.c: fixed typo
63683
63684 2006-06-29  Jim Meyering  <jim@meyering.net>
63685
63686         * modules/strftime (Maintainer): Add my name, since with the
63687         FPRINTFTIME changes strftime.c has forked from glibc.
63688
63689 2006-06-29  Eric Blake  <ebb9@byu.net>
63690
63691         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
63692
63693 2006-06-29  Eric Blake  <ebb9@byu.net>
63694
63695         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
63696
63697 2006-06-29  Eric Blake  <ebb9@byu.net>
63698
63699         * lib/stat_.h: New file.
63700
63701 2006-06-29  Eric Blake  <ebb9@byu.net>
63702
63703         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
63704         unused static function.
63705
63706 2006-06-29  Eric Blake  <ebb9@byu.net>
63707
63708         * doc/functions.texi (Function Portability): Document missing lstat
63709         on mingw.
63710
63711 2006-06-29  Eric Blake  <ebb9@byu.net>
63712
63713         * MODULES.html.sh: Add sys_stat.
63714         * modules/sys_stat: New module.
63715         * modules/mkstemp (Depends-on): Add sys_stat.
63716
63717 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63718
63719         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
63720
63721 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63722
63723         * m4/c-bs-a.m4: Removed.
63724
63725 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63726
63727         * lib/strftime.c: Assume strftime() exists.
63728
63729 2006-06-29  Derek Price  <derek@ximbiot.com>
63730
63731         * modules/c-bs-a: Removed - \a is C89.
63732         * MODULES.html.sh: Remove c-bs-a.
63733
63734 2006-06-29  Bruno Haible  <bruno@clisp.org>
63735
63736         * modules/wcwidth (License): Change to LGPL.
63737
63738 2006-06-28  Simon Josefsson  <jas@extundo.com>
63739
63740         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
63741         on _WIN32.
63742
63743         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
63744         getnameinfo.
63745
63746 2006-06-28  Simon Josefsson  <jas@extundo.com>
63747
63748         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
63749
63750 2006-06-28  Simon Josefsson  <jas@extundo.com>
63751
63752         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
63753         functions there.  It will succeed on Windows XP, but on Windows
63754         2000 and (presumably) earlier, it will fail, and use the internal
63755         re-implementation.
63756         (use_win32_p): New function.
63757         (getaddrinfo): Use strtoul on servname, to support numeric ports.
63758         Support AI_NUMERICSERV to disable getservbyname.
63759         (getnameinfo): New function, only supports
63760         NI_NUMERICHOST|NI_NUMERICSERV for now.
63761
63762         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
63763         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
63764         getnameinfo.
63765
63766 2006-06-28  Eric Blake  <ebb9@byu.net>
63767
63768         * modules/wcwidth: New file.
63769         * modules/mbchar (Depends-on): Add wcwidth.
63770         * modules/mbswidth (Depends-on): Add wcwidth.
63771         * MODULES.html.sh: Add wcwidth.
63772
63773 2006-06-28  Eric Blake  <ebb9@byu.net>
63774
63775         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
63776         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
63777
63778 2006-06-28  Eric Blake  <ebb9@byu.net>
63779
63780         * lib/xvasprintf.h: Fix comments.
63781
63782 2006-06-28  Eric Blake  <ebb9@byu.net>
63783
63784         * lib/mbchar.h (wcwidth): Include wcwidth.h.
63785         * lib/mbswidth.c (wcwidth): Move from here...
63786         * lib/wcwidth.h: ...to this new file.
63787
63788 2006-06-28  Derek R. Price  <derek@ximbiot.com>
63789
63790         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
63791
63792         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
63793         it's obsolete.
63794         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
63795
63796 2006-06-28  Derek R. Price  <derek@ximbiot.com>
63797
63798         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
63799         Autoconf 2.60 says this stuff was obsolete.
63800
63801 2006-06-28  Bruno Haible  <bruno@clisp.org>
63802
63803         * modules/wcwidth (Files): Add m4/wchar_t.m4.
63804
63805 2006-06-28  Bruno Haible  <bruno@clisp.org>
63806
63807         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
63808         gt_TYPE_WCHAR_T.
63809
63810 2006-06-28  Bruno Haible  <bruno@clisp.org>
63811
63812         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
63813         declaration for wcwidth.
63814         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
63815
63816 2006-06-28  Bruno Haible  <bruno@clisp.org>
63817
63818         * lib/mkdtemp.c [MINGW]: Include <io.h>.
63819         (mkdir): Define using _mkdir.
63820
63821 2006-06-28  Bruno Haible  <bruno@clisp.org>
63822
63823         * lib/getaddrinfo.h: Fix POSIX URL.
63824         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
63825         _WIN32.
63826         (use_win32_p): Make static.
63827         (getaddrinfo): Reject service name if it is empty or does not consist
63828         solely of decimal digits, or if its value is > 65535.
63829         (getnameinfo): Remove useless casts.
63830
63831 2006-06-27  Simon Josefsson  <jas@extundo.com>
63832
63833         * modules/sys_select: New file, suggested by Bruno Haible, Paul
63834         Eggert and Martin Lambers.
63835
63836 2006-06-27  Simon Josefsson  <jas@extundo.com>
63837
63838         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
63839         Eggert and Martin Lambers.
63840
63841 2006-06-27  Bruno Haible  <bruno@clisp.org>
63842
63843         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
63844         result to 0, not to empty.
63845         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
63846
63847 2006-06-27  Bruno Haible  <bruno@clisp.org>
63848
63849         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
63850
63851 2006-06-26  Simon Josefsson  <jas@extundo.com>
63852
63853         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
63854         present.
63855
63856 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
63857
63858         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
63859         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
63860         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
63861
63862 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
63863
63864         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
63865
63866 2006-06-26  Bruno Haible  <bruno@clisp.org>
63867
63868         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
63869
63870 2006-06-26  Bruno Haible  <bruno@clisp.org>
63871
63872         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
63873
63874 2006-06-26  Bruno Haible  <bruno@clisp.org>
63875
63876         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
63877         SGI C compiler in pre-C99 mode.
63878         Suggested by Mark D. Baushke and Larry Jones.
63879
63880 2006-06-26  Bruno Haible  <bruno@clisp.org>
63881
63882         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
63883         WCHAR_MAX.
63884         Reported by Mark D. Baushke and Larry Jones.
63885
63886 2006-06-26  Bruno Haible  <bruno@clisp.org>
63887
63888         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
63889         in pre-C99 mode.
63890         Suggested by Mark D. Baushke and Larry Jones.
63891
63892 2006-06-23  Simon Josefsson  <jas@extundo.com>
63893             Bruno Haible  <bruno@clisp.org>
63894
63895         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
63896         Emit mostlyclean-local rule.
63897         (func_emit_tests_Makefile_am): Likewise.
63898         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
63899
63900 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
63901
63902         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
63903
63904 2006-06-23  Bruno Haible  <bruno@clisp.org>
63905
63906         * tests/test-stdint.c: Update to match ISO C 99 Technical
63907         Corrigendum 1.
63908
63909 2006-06-23  Bruno Haible  <bruno@clisp.org>
63910
63911         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
63912
63913 2006-06-23  Bruno Haible  <bruno@clisp.org>
63914
63915         * lib/stdint_.h: Treat IRIX like OpenBSD.
63916
63917 2006-06-23  Bruno Haible  <bruno@clisp.org>
63918
63919         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
63920         ISO C 99 Technical Corrigendum 1.
63921
63922 2006-06-22  Simon Josefsson  <jas@extundo.com>
63923
63924         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
63925         MinGW.
63926
63927 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63928
63929         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
63930         needed.  Some compiler complained about some of them.  Problem reported
63931         by Larry Jones in
63932         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
63933
63934 2006-06-21  Simon Josefsson  <jas@extundo.com>
63935
63936         * tests/test-getaddrinfo.c: New file.
63937
63938         * modules/getaddrinfo-tests: New file.
63939
63940         * MODULES.html.sh: Add inet_pton.
63941
63942         * modules/inet_pton: New file.
63943
63944 2006-06-21  Simon Josefsson  <jas@extundo.com>
63945
63946         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
63947         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
63948         of using the (limited) gnulib implementation on Windows XP.
63949
63950         * m4/inet_pton.m4: New file.
63951
63952 2006-06-21  Simon Josefsson  <jas@extundo.com>
63953
63954         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
63955         variable.
63956
63957         * lib/socket_.h: Don't define WINVER.
63958
63959         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
63960         slightly modified to work in gnulib.
63961
63962 2006-06-21  Simon Josefsson  <jas@extundo.com>
63963
63964         * doc/gnulib.texi (Windows sockets): Add.
63965
63966 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63967
63968         * lib/read-file.c (fread_file): Start with buffer allocation of
63969         0 bytes rather than 1 byte; this simplifies the code.
63970         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
63971         code to free buffer and save/restore errno.
63972         (internal_read_file): Remove unused local.
63973
63974 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63975
63976         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
63977         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
63978         Problem reported by Denis Excoffier in
63979         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
63980
63981 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63982
63983         * modules/sys_socket, modules/socklen: Include sys/types since
63984         FreeBSD 4.x's sys/socket.h needs it.
63985
63986 2006-06-19  Simon Josefsson  <jas@extundo.com>
63987
63988         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
63989
63990 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
63991
63992         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
63993
63994 2006-06-19  Bruno Haible  <bruno@clisp.org>
63995
63996         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
63997         and FULL_PATH_INTTYPES_H in angle brackets.
63998         Reported by Mark D. Baushke <mdb@gnu.org>.
63999
64000 2006-06-17  Eric Blake  <ebb9@byu.net>
64001
64002         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
64003         errno.
64004
64005 2006-06-17  Bruno Haible  <bruno@clisp.org>
64006
64007         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
64008         <sys/inttypes.h>.
64009
64010 2006-06-17  Bruno Haible  <bruno@clisp.org>
64011
64012         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
64013         whether errno is declared. Assume <errno.h> declares errno.
64014
64015 2006-06-17  Bruno Haible  <bruno@clisp.org>
64016
64017         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
64018
64019 2006-06-17  Bruno Haible  <bruno@clisp.org>
64020
64021         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
64022         problem on Solaris 2.5.1.
64023
64024 2006-06-16  Eric Blake  <ebb9@byu.net>
64025
64026         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
64027         * lib/unicodeio.c [!defined errno]: Likewise.
64028         * lib/strtol.c [!defined errno]: Likewise.
64029         * lib/strtod.c [!defined errno]: Likewise.
64030
64031 2006-06-15  Eric Blake  <ebb9@byu.net>
64032
64033         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
64034
64035 2006-06-15  Eric Blake  <ebb9@byu.net>
64036
64037         * config/srclist.txt (ssize_t.m4): Lose sync.
64038
64039 2006-06-15  Bruno Haible  <bruno@clisp.org>
64040
64041         * modules/stdint (Files): Include m4/full-header-path.m4,
64042         m4/size_max.m4, m4/wchar_t.m4.
64043         (Makefile.am): Many more substitutions.
64044         * modules/stdint-tests: New file.
64045         * tests/test-stdint.c: New file.
64046
64047 2006-06-15  Bruno Haible  <bruno@clisp.org>
64048
64049         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
64050         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
64051         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
64052         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
64053         gl_CHECK_TYPE_SAME): New macros.
64054
64055 2006-06-15  Bruno Haible  <bruno@clisp.org>
64056
64057         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
64058
64059 2006-06-15  Bruno Haible  <bruno@clisp.org>
64060
64061         * lib/stdint_.h: Rewritten to be fully auto-configured.
64062         Fixes bug on HP-UX/IA64.
64063
64064 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
64065
64066         * lib/getdate.y (__attribute__): Don't define if already defined.
64067         Problem reported by Larry Jones.
64068         * lib/utimens.c (__attribute__): Likewise.
64069
64070 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
64071
64072         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
64073         reported by Andreas Schwab.
64074
64075 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64076             Bruno Haible  <bruno@clisp.org>
64077
64078         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
64079         check for the declaration of strnlen and a run test that exposes the
64080         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
64081         rpl_strndup.
64082
64083 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64084             Bruno Haible  <bruno@clisp.org>
64085
64086         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
64087
64088 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64089
64090         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
64091         compile test, for Tru64 4.0D.
64092
64093 2006-05-28  Karl Berry  <karl@gnu.org>
64094
64095         * config/srclist.txt (printf-args.c): lose sync.
64096
64097 2006-05-26  Martin Lambers  <marlam@marlam.de>
64098
64099         * lib/getpass.c: Updates the test for the native W32 API, and adds
64100         missing includes, thus fixing compilation warnings.
64101
64102 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64103
64104         * lib/exclude.c (exclude_fnmatch): New function.
64105         (excluded_file_name): Call exclude_fnmatch.
64106         * lib/exclude.h (excluded_file_name): New prototype
64107
64108 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
64109
64110         * lib/tempname.c (small_open, large_open): New macros.
64111         (__open, __open64) [!_LIBC]: Remove.
64112         (__gen_tempname): Use small_open and large_open instead of __open
64113         and __open64.  This fixes a portability bug on HP-UX 11.11i
64114         reported by Simon Wing-Tang in
64115         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
64116
64117 2006-05-24  Bruno Haible  <bruno@clisp.org>
64118
64119         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
64120         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
64121         Reported by Thorsten Maerz <torte@netztorte.de> via
64122         Aaron Stone <aaron@serendipity.cx>.
64123
64124 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64125
64126         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
64127         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
64128         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
64129         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
64130         not really conditional on the cache.
64131         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
64132
64133 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64134
64135         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
64136         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
64137         (my_usleep): Don't mishandle maximum value.
64138
64139 2006-05-19  Jim Meyering  <jim@meyering.net>
64140
64141         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
64142
64143 2006-05-17  Bruno Haible  <bruno@clisp.org>
64144
64145         Cygwin portability.
64146         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
64147
64148 2006-05-17  Bruno Haible  <bruno@clisp.org>
64149
64150         * lib/stdint_.h: Fix recognition of Cygwin.
64151
64152 2006-05-15  Bruno Haible  <bruno@clisp.org>
64153
64154         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
64155         on libtool patch by Ralf Wildenhues.
64156
64157 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64158
64159         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
64160         test for C99 conformance; (bool) 0.5 is an integer constant
64161         expression, but (bool) -0.5 is not.  Problem reported by Fedor
64162         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
64163
64164 2006-05-11  Simon Josefsson  <jas@extundo.com>
64165
64166         * m4/xvasprintf.m4: Fix obvious typo.
64167
64168 2006-05-11  Jim Meyering  <jim@meyering.net>
64169
64170         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
64171         James Lemley.
64172
64173 2006-05-10  Simon Josefsson  <jas@extundo.com>
64174
64175         * lib/md4.c: Typo fix, update copyright years.
64176         (K1, K2): Don't use L because it turn computations into 64-bit on
64177         64-bit platforms.
64178
64179 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
64180
64181         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
64182         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
64183         unwanted sign propagation, e.g., on hosts with 64-bit int.
64184         There still are some problems with reeelly weird theoretical hosts
64185         (e.g., 33-bit int) but it's not worth worrying about now.
64186         * lib/sha1.c (rol): Likewise.
64187         (K1, K2, K3, K4): Remove unnecessary L suffix.
64188
64189 2006-05-10  Bruno Haible  <bruno@clisp.org>
64190
64191         * lib/des.c: Cast to avoid warnings.
64192
64193 2006-05-09  Bruno Haible  <bruno@clisp.org>
64194
64195         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
64196         (Depends-on): Depend also on xsize, stdarg.
64197         (configure.ac): Add gl_XVASPRINTF.
64198
64199 2006-05-09  Bruno Haible  <bruno@clisp.org>
64200
64201         * m4/xvasprintf.m4: New file.
64202
64203 2006-05-09  Bruno Haible  <bruno@clisp.org>
64204
64205         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
64206         (EOVERFLOW): Define fallback value.
64207         (xstrcat): New function.
64208         (xvasprintf): Recognize the special case of a string concatenation.
64209
64210 2006-05-08  Eric Blake  <ebb9@byu.net>
64211
64212         * gnulib-tool (func_version): Base copyright year on CVS date.
64213         (func_emit_copyright_notice): New function.
64214         (func_emit_lib_Makefile_am): Use it.
64215         (func_emit_tests_Makefile_am): Likewise.
64216         (func_import): Likewise.
64217
64218 2006-05-08  Bruno Haible  <bruno@clisp.org>
64219
64220         * modules/stdarg: New file.
64221         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
64222
64223 2006-05-08  Bruno Haible  <bruno@clisp.org>
64224
64225         * m4/stdarg.m4: New file, from GNU gettext.
64226
64227 2006-05-08  Bruno Haible  <bruno@clisp.org>
64228
64229         * config/srclist.txt (build-aux/config.rpath): different from latest
64230         release.
64231
64232 2006-05-08  Bruno Haible  <bruno@clisp.org>
64233
64234         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
64235
64236 2006-05-05  Jim Meyering  <jim@meyering.net>
64237
64238         * m4/warning.m4: New file, derived from bison's file by the same name.
64239
64240 2006-05-03  Bruno Haible  <bruno@clisp.org>
64241
64242         * lib/stdint_.h: Shorter URL.
64243         * lib/inttypes.h: Likewise.
64244
64245 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64246
64247         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
64248
64249 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64250
64251         * lib/verify.h: Document the internals better.  Most of this change
64252         was written by Bruno Haible.
64253
64254 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64255
64256         * doc/verify.texi: New file, partly based on a proposal by
64257         Bruno Haible.
64258
64259 2006-05-02  Bruno Haible  <bruno@clisp.org>
64260
64261         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
64262         test from here...
64263         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
64264
64265 2006-04-29  Bruno Haible  <bruno@clisp.org>
64266
64267         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
64268         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
64269
64270 2006-04-29  Bruno Haible  <bruno@clisp.org>
64271
64272         * gnulib-tool: Make --update option actually work.
64273
64274 2006-04-29  Bruno Haible  <bruno@clisp.org>
64275
64276         * doc/gcd.texi: New file.
64277         * doc/gnulib.texi: Include it.
64278
64279 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
64280
64281         * lib/getdate.y (get_date): When adding relative date, start with the
64282         initial time, not with the result of the first mktime call.
64283
64284 2006-04-25  Bruno Haible  <bruno@clisp.org>
64285
64286         * gnulib-tool (func_import): Output the include directives in three
64287         blocks, sorted separately.
64288         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64289
64290 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64291
64292         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
64293         to define main with arguments, for C++.  Reported by Eric Blake.
64294         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
64295         Prefer 'int main ()' to 'int main (void)', for C++.
64296         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
64297         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
64298         for 'main', for C99 and C++.
64299
64300 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64301
64302         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
64303         Don't assume that exit status -1 is valid.
64304         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64305         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
64306         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
64307         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
64308         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
64309         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
64310         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
64311         functions can be used without declaring them, or that you can
64312         exit with status -1.
64313         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
64314
64315 2006-04-24  Karl Berry  <karl@gnu.org>
64316
64317         * config/srclist.txt (longdouble.m4): sync lost.
64318
64319 2006-04-24  Eric Blake  <ebb9@byu.net>
64320
64321         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
64322
64323 2006-04-24  Bruno Haible  <bruno@clisp.org>
64324
64325         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
64326         poll() implementation in AIX.
64327         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64328
64329 2006-04-24  Bruno Haible  <bruno@clisp.org>
64330
64331         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
64332         assigned exactly once.
64333
64334 2006-04-23  Claudio Fontana  <claudio@gnu.org>
64335             Bruno Haible  <bruno@clisp.org>
64336
64337         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
64338         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
64339         for AM_CPPFLAGS.
64340
64341 2006-04-23  Bruno Haible  <bruno@clisp.org>
64342
64343         * modules/copy-file: Depend on unistd.
64344         * modules/execute: Likewise.
64345         * modules/fatal-signal: Likewise.
64346         * modules/findprog: Likewise.
64347         * modules/mkdtemp : Likewise.
64348         * modules/pipe: Likewise.
64349         * modules/wait-process: Likewise.
64350
64351 2006-04-23  Bruno Haible  <bruno@clisp.org>
64352
64353         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
64354         condition was already detected.
64355         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64356
64357 2006-04-23  Bruno Haible  <bruno@clisp.org>
64358
64359         * lib/copy-file.c: Include <unistd.h> unconditionally.
64360         * lib/execute.c: Likewise.
64361         * lib/fatal-signal.c: Likewise.
64362         * lib/findprog.c: Likewise.
64363         * lib/mkdtemp.c: Likewise.
64364         * lib/pipe.h: Likewise.
64365         * lib/pipe.c: Likewise.
64366         * lib/wait-process.h: Likewise.
64367
64368 2006-04-23  Bruno Haible  <bruno@clisp.org>
64369
64370         * gnulib-tool (func_usage): Fix --import description. Document
64371         --update.
64372         (func_import): Create temporary file in a temporary directory, if
64373         --dry-run is specified. Silence errors from 'grep' when there are no
64374         m4 files in $m4dir.
64375         (func_create_testdir): Silence errors from 'grep' when there are no
64376         m4 files in $m4dir.
64377         Reported by Karl Berry <karl@freefriends.org>.
64378
64379 2006-04-20  Bruno Haible  <bruno@clisp.org>
64380
64381         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
64382         one argument, so that the code will be portable to Autoconf 2.60.
64383         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
64384         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
64385         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
64386
64387 2006-04-19  Derek Price  <derek@ximbiot.com>
64388             Eric Blake  <ebb9@byu.net>
64389
64390         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
64391         rather than "/full/path.h".  Update comment to match.  Shorten &
64392         generalize m4_translit call via AS_TR_CPP.
64393
64394 2006-04-19  Derek Price  <derek@ximbiot.com>
64395             Eric Blake  <ebb9@byu.net>
64396
64397         * lib/inttypes.h: Correct grammar in comment.
64398
64399 2006-04-18  Derek Price  <derek@ximbiot.com>
64400             Paul Eggert  <eggert@cs.ucla.edu>
64401
64402         * modules/inttypes: New file.
64403         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
64404
64405 2006-04-18  Derek Price  <derek@ximbiot.com>
64406             Paul Eggert  <eggert@cs.ucla.edu>
64407
64408         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
64409         New files.
64410
64411 2006-04-18  Derek Price  <derek@ximbiot.com>
64412             Paul Eggert  <eggert@cs.ucla.edu>
64413
64414         * lib/inttypes.h: New file.
64415         * lib/strtoimax.c: Assume <inttypes.h>.
64416
64417 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
64418
64419         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
64420         isn't mounted.  Problem reported by Kir Kolyshkin.
64421
64422 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64423
64424         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
64425         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
64426         Derek R. Price.
64427         * lib/regex.h (RE_DUP_MAX): Update comment to match current
64428         implementation.
64429
64430 2006-04-12  Eric Blake  <ebb9@byu.net>
64431
64432         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
64433         is now done automatically by the corresponding Autoconf macro.
64434
64435 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
64436
64437         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
64438         time_r.h.
64439
64440 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64441
64442         Merge regex changes from libc, removing some of our
64443         POSIX-conformance changes that were rejected and redoing them in a
64444         less-intrusive way.
64445
64446         * lib/regcomp.c (re_compile_internal, init_dfa):
64447         Length arg is now size_t, not Idx.  All uses changed.
64448         (peek_token): Forward decl now says internal_function.
64449         (__re_error_msgid, __re_error_msgid_idx):
64450         Now static rather than extern with attribute_hidden.
64451         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
64452         For some reason libc prefers K&R style defns for external functions.
64453         (regerror) [!defined _LIBC]: Likewise.
64454         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
64455         (seek_collating_symbol_entry, lookup_collation_sequence_value):
64456         (build_range_exp, build_collating_symbol):
64457         Use K&R-style defn.
64458         (re_compile_fastmap): Use '\0' to memset, not 0.
64459         (utf8_sb_map): Make the calculations more obvious.
64460         (init_dfa, parse_bracket_exp, build_charclass_op):
64461         Call calloc and cast result, as glibc does.
64462         (init_word_char, fetch_token, peek_token, peek_token_bracket):
64463         (build_range_exp, build_collating_symbol):
64464         Now internal functions.
64465
64466         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
64467
64468         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
64469         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
64470         Don't depend on VMS; depend on __VMS instead, for POSIX
64471         namespace cleanness.
64472         (regoff_t): Define to ssize_t, not long int.
64473
64474         Remove the REG_ macros named below.  Instead, make the old names
64475         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
64476         __USE_GNU_REGEX.
64477         (REG_BACKSLASH_ESCAPE_IN_LISTS):
64478         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
64479         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
64480         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
64481         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
64482         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
64483         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
64484         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
64485         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
64486         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
64487         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
64488         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
64489         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
64490         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
64491         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
64492         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
64493         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
64494         (REG_NREGS):
64495         Remove.  All uses replaced by the old RE_* names.
64496         (RE_BACKSLASH_ESCAPE_IN_LISTS):
64497         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
64498         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
64499         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
64500         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
64501         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
64502         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
64503         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
64504         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
64505         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
64506         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
64507         Don't bother having these macros be independent of each others'
64508         values, since they no longer exist in the POSIX name space.
64509
64510         Rename the following member names back to their old names,
64511         unless !__USE_GNU_REGEX.  All uses changed back.
64512         (buffer): Renamed from re_buffer.
64513         (allocated): Renamed from re_allocated.
64514         (used): Renamed from re_used.
64515         (syntax): Renamed from re_syntax.
64516         (fastmap): Renamed from re_fastmap.
64517         (translate): Renamed from re_translate.
64518         (can_be_null): Renamed from re_can_be_null.
64519         (regs_allocated): Renamed from re_regs_allocated.
64520         (fastmap_accurate): Renamed from re_fastmap_accurate.
64521         (no_sub): Renamed from re_no_sub.
64522         (not_bol): Renamed from re_not_bol.
64523         (not_eol): Renamed from re_not_eol.
64524         (newline_anchor): Renamed from re_newline_anchor.
64525         (num_regs): Renamed from rm_num_regs.
64526         (start): Renamed from rm_start.
64527         (end): Renamed from rm_end.
64528
64529         (free_state): Move up a bit.
64530
64531         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
64532         #define to be empty.
64533         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
64534         when that is what is intended.
64535         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
64536         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
64537         (MAX): New macro.
64538         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
64539         All uses changed back to re_malloc, etc.  It's now the caller's
64540         responsibility to check for overflow; all callers changed.
64541         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
64542         (re_x2nrealloc): Remove.
64543         (free_state): Remove decl.
64544
64545         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
64546         (re_set_registers, re_exec):
64547         Use K&R-style defn.
64548
64549         2006-01-31  Roland McGrath  <roland@redhat.com>
64550
64551         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
64552         Reported by Mike Frysinger <vapier@gentoo.org>.
64553
64554         2006-01-15  Andreas Jaeger  <aj@suse.de>
64555
64556         [BZ #1950]
64557         * lib/regex_internal.c (re_string_reconstruct): Adjust for
64558         build_wcs_upper_buffer change.
64559         (build_wcs_upper_buffer): Change return type.
64560
64561         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
64562
64563         * lib/regex_internal.h: Include <stdint.h> if available.
64564
64565         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
64566
64567         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
64568
64569         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64570
64571         * lib/regcomp.c: Adjust for changed secondary hash function.
64572
64573         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
64574
64575         * lib/regex.h: Pretty printing.
64576         Clean up namespace a bit.
64577
64578         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
64579
64580         * lib/regexec.c (update_cur_sifted_state, check_arrival,
64581         check_arrival_add_next_nodes): Avoid using uninitialized variable.
64582
64583         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64584                     Ulrich Drepper  <drepper@redhat.com>
64585
64586         [BZ #1302]
64587         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
64588         changed.
64589         (bitset_word_t): Renamed from bitset_word.  All uses changed.
64590
64591         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
64592
64593         [BZ #281]
64594         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
64595         * lib/regcomp.c: Remove unnecessary uses of
64596         unsigned RE_TRANSLATE_TYPE.
64597         * lib/regex_internal.h: Likewise.
64598         * lib/regex_internal.c: Likewise.
64599         * lib/regexec.c: Likewise.
64600         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
64601
64602         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
64603
64604         * lib/regexec.c (find_recover_state): Remove unnecessary
64605         initialization.
64606         (transit_state_bkref): Make DFA a const pointer.
64607         (get_subexp): Likewise.
64608         (check_arrival): Likewise.
64609         (update_cur_sifted_state): Likewise.
64610         (re_search_internal): Likewise.
64611         (prune_impossible_nodes): Likewise.
64612         (acquire_init_state_context): Likewise.
64613         (proceed_next_node): Likewise.
64614         (set_regs): Likewise.
64615         (free_fail_stack_return): Likewise.
64616         (check_arrival_expand_ecl): Mark DFA parameter as const.
64617         (check_arrival_expand_ecl_sub): Likewise.
64618         (check_subexp_limits): Likewise.
64619         (sub_epsilon_src_nodes):  Likewise.
64620         (add_epsilon_src_nodes):  Likewise.
64621         (merge_state_array): Likewise.
64622         (update_regs): Likewise.
64623         (build_trtable): Likewise.
64624         (sift_states_backward): Mark MCTX parameter as const.
64625         (build_sifted_states): Likewise.
64626         (update_cur_sifted_state): Likewise.
64627         (sift_states_mkref): Likewise.
64628         (check_arrival_expand_ecl): Mark eclosure as const.
64629         (check_dst_limits_calc_pos_1): Likewise.
64630         * lib/regex_internal.h (re_match_context_t): Make dfa a const
64631         pointer.
64632
64633         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
64634
64635         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
64636         (transit_state_sb): Likewise.
64637         (transit_state_mb): Likewise.
64638         (sift_states_iter_mb): Likewise.
64639         (check_arrival_add_next_nodes): Likewise.
64640         (check_node_accept_bytes): Change first parameter to pointer-to-const.
64641         [_LIBC] (re_search_2_stub): Use mempcpy.
64642
64643         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
64644         mbrtowc for very simple UTF-8 case.
64645
64646         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
64647         a pointer-to-const.
64648         (re_acquire_state_context): Likewise.
64649         * lib/regex_internal.h: Adjust prototypes.
64650
64651         * lib/regex.c: Prevent using C++ compilers.
64652
64653         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
64654         (re_acquire_state_context): Likewise.
64655
64656 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64657
64658         * modules/regex (Depends-on): Add ssize_t.
64659
64660 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64661
64662         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
64663         translation table.
64664
64665 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64666
64667         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
64668
64669 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
64670             Bruno Haible  <bruno@clisp.org>
64671
64672         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
64673         <sys/types.h> and <inttypes.h>.
64674
64675 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64676
64677         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
64678         `__error_t_defined', so argp.h will not typedef the former.
64679
64680 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
64681
64682         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
64683         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
64684         glibc names.  Even if glibc is changed to conform to POSIX, the
64685         traditional names will be available anyway, since regex depends on
64686         the extensions module.  Also, fix a longstanding typo in the
64687         implementation of Spencer ERE test #75 from grep 2.3.  Problems
64688         reported by Emanuele Giaquinta.  Also, change sense of cached
64689         variable, so that the message makes sense.
64690
64691 2006-03-24  Simon Josefsson  <jas@extundo.com>
64692
64693         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
64694         including some doc fixes.
64695         (base64_encode_alloc): Fix +1 bug on allocation failures.
64696
64697 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64698
64699         * lib/base64.c (base64_encode): Do not read past end of array with
64700         unsanitized input on systems with CHAR_BIT > 8.
64701
64702 2006-03-24  Eric Blake  <ebb9@byu.net>
64703
64704         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
64705
64706 2006-03-22  Karl Berry  <karl@gnu.org>
64707
64708         * config/srclist.txt (*setenv.[ch]): get from coreutils.
64709         * config/srclistvars.sh (COREUTILS): new var.
64710
64711 2006-03-17  Jim Meyering  <jim@meyering.net>
64712
64713         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
64714         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
64715
64716 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
64717
64718         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
64719         no longer needs it.  Instead, check that regoff_t is as least
64720         as wide as ptrdiff_t.
64721
64722         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
64723         so that our regex.h stays compatible with the installed regex.
64724         This is helpful for installers who configure --without-included-regex.
64725         Problem reported by Emanuele Giaquinta.
64726
64727 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
64728
64729         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
64730         Typedef to long int, not to off_, as POSIX will likely change
64731         in that direction.
64732
64733 2006-03-15  Eric Blake  <ebb9@byu.net>
64734
64735         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
64736
64737 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
64738
64739         * lib/argp-help.c (validate_uparams): Fix typo
64740         * lib/argp-parse.c (argp_default_options): Consistently begin help
64741         messages with a lowercase letter.
64742
64743 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
64744
64745         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
64746         overrun buffers and shouldn't be used (much as gets shouldn't be
64747         used).
64748         * lib/time_r.c (asctime_r, ctime_r): Likewise.
64749
64750 2006-03-08  Simon Josefsson  <jas@extundo.com>
64751
64752         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
64753         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64754
64755 2006-03-08  Simon Josefsson  <jas@extundo.com>
64756
64757         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
64758         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64759
64760 2006-03-08  Simon Josefsson  <jas@extundo.com>
64761
64762         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
64763         signal that configure disabled the device.
64764
64765 2006-03-08  Simon Josefsson  <jas@extundo.com>
64766
64767         * build-aux/maint.mk: Fix refresh-po, to handle no translated
64768         languages.
64769
64770 2006-03-07  Simon Josefsson  <jas@extundo.com>
64771
64772         * modules/getopt (Depends-on): Add unistd.
64773
64774         * modules/unistd: New file.
64775
64776 2006-03-07  Simon Josefsson  <jas@extundo.com>
64777
64778         * modules/gc-random: New file.
64779
64780 2006-03-07  Simon Josefsson  <jas@extundo.com>
64781
64782         * m4/unistd_h.m4: New file.
64783
64784 2006-03-07  Simon Josefsson  <jas@extundo.com>
64785
64786         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
64787         test to be side-effect free by storing the result in the cache
64788         variable gl_cv_lib_readline, and moving the assignment of
64789         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
64790         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64791
64792 2006-03-07  Simon Josefsson  <jas@extundo.com>
64793
64794         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
64795         error on missing devices (the functions will return an error).
64796
64797         * m4/gc.m4: Move random stuff to gc-random.m4
64798
64799 2006-03-07  Simon Josefsson  <jas@extundo.com>
64800
64801         * lib/unistd_.h: New file.
64802
64803 2006-03-07  Simon Josefsson  <jas@extundo.com>
64804
64805         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
64806
64807 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64808
64809         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
64810         Problem reported by Juan Manuel Guerrero.
64811
64812 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64813
64814         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
64815         the unistd module.
64816         * lib/getlogin_r.c: Likewise.
64817         * lib/getlogin_r.h: Likewise.
64818         * lib/glob.c: Likewise.
64819         * lib/pagealign_alloc.c: Likewise.
64820         * lib/unistd_.h: Remove; no longer needed.
64821
64822 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64823
64824         * MODULES.html.sh (Support for systems lacking POSIX:2001):
64825         Add unistd.
64826         * modules/c-stack (Depends-on): Add unistd.
64827         * modules/getlogin_r: Likewise.
64828         * modules/glob: Likewise.
64829         * modules/pagealign_alloc: Likewise.
64830         * modules/unistd (Files): Remove lib/unistd_.h.
64831         (EXTRA_DIST): Remove.
64832         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
64833         need unistd_.h.
64834         (MOSTLYCLEANFILES): Remove unistd.h-t.
64835
64836 2006-03-03  Simon Josefsson  <jas@extundo.com>
64837
64838         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
64839
64840 2006-03-03  Simon Josefsson  <jas@extundo.com>
64841
64842         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
64843         libidn and bison.
64844
64845 2006-03-03  Simon Josefsson  <jas@extundo.com>
64846
64847         * build-aux/maint.mk: Add indent target.
64848
64849 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
64850
64851         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
64852         our replacement poll.h in any case, to avoid a differing
64853         declaration from a system header.  Seen on AIX.
64854
64855 2006-03-01  Simon Josefsson  <jas@extundo.com>
64856
64857         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
64858         <kasal@ucw.cz>.
64859
64860 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64861
64862         * modules/gettime (Depends-on): Add extensions module.
64863         * modules/nanosleep (Depends-on): Likewise.
64864         * modules/settime (Depends-on): Likewise.
64865
64866 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64867
64868         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
64869         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
64870         pedantically.
64871         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64872         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
64873
64874         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
64875         not "==".  Reported by Ralf Wildenhues.
64876
64877 2006-03-01  Karl Berry  <karl@gnu.org>
64878
64879         * doc/Copyright/request-*: new files, synced from gnuorg.
64880
64881 2006-03-01  Karl Berry  <karl@gnu.org>
64882
64883         * config/srclist.txt (Copyright/*): new entries.
64884
64885 2006-02-28  Simon Josefsson  <jas@extundo.com>
64886
64887         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
64888
64889 2006-02-27  Simon Josefsson  <jas@extundo.com>
64890
64891         * lib/base64.h: Indent #define's.  From Jim Meyering
64892         <jim@meyering.net>.
64893
64894 2006-02-27  Jim Meyering  <jim@meyering.net>
64895
64896         Revert the change of 2006-02-24, so these files can continue
64897         to be sync'd from gettext.
64898         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
64899         of `config.h'.
64900
64901 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
64902
64903         * modules/intprops: New file.
64904         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
64905         Add intprops.
64906         * modules/getloadavg (Files): Remove lib/intprops.h.
64907         (Depends-on): Add intprops.
64908         * modules/human: Likewise.
64909         * modules/inttostr: Likewise.
64910         * modules/openat: Likewise.
64911         * modules/sig2str: Likewise.
64912         * modules/userspec: Likewise.
64913         * modules/utimecmp: Likewise.
64914         * modules/xnanosleep: Likewise.
64915         * modules/xstrtol: Likewise.
64916
64917 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
64918
64919         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
64920         * modules/lock-tests (TESTS): Use $(EXEEXT).
64921         * modules/tls-tests: Likewise.
64922         * modules/argp-tests: Likewise.
64923         (check_PROGRAMS): New var, replacing...
64924         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
64925
64926 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64927
64928         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
64929         `config.h'.
64930
64931 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
64932
64933         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
64934
64935 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64936
64937         Sync from coreutils.
64938         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
64939         gl_CHDIR_SAFER.
64940
64941 2006-02-22  Jim Meyering  <jim@meyering.net>
64942
64943         Sync from coreutils.
64944         * m4/chdir-safer.m4: New file.
64945
64946 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
64947
64948         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
64949         AT_FDCWD exceeds INT_MAX.
64950         * lib/openat.h (AT_FDCWD): Likewise.
64951
64952 2006-02-17  Eric Blake  <address@hidden>
64953
64954         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
64955
64956 2006-02-16  Simon Josefsson  <jas@extundo.com>
64957
64958         * modules/getaddrinfo (Depends-on): Add sys_socket.
64959
64960 2006-02-15  Simon Josefsson  <jas@extundo.com>
64961
64962         * build-aux/maint.mk: Add dsyntax-check rule.
64963
64964 2006-02-15  Eric Blake  <ebb9@byu.net>
64965
64966         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
64967         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
64968         'present but cannot compile' warnings on cygwin.
64969         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
64970         use ws2tcpip.h if sys/socket.h works.
64971         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
64972         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
64973
64974 2006-02-14  Simon Josefsson  <jas@extundo.com>
64975
64976         * modules/maintainer-makefile (Files): Rename.
64977
64978         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
64979         and (the local) Makefile.cfg to maint-cfg.mk.
64980
64981         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
64982         to the latter.
64983
64984         * modules/maintainer-makefile: New module.
64985
64986         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
64987         severaly stripped to make it possible to build it up from scratch
64988         with reliable tests.
64989
64990         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
64991         fixes to permit overriding the default actions when configure and
64992         makefile are not available.
64993
64994 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64995
64996         Sync from coreutils.
64997         * modules/lstat (Depends-on): Don't depend on xalloc.
64998         (License): Change from GPL to LGPL, since this is now simply a
64999         replacement for a libc function.
65000
65001 2006-02-14  Jim Meyering  <jim@meyering.net>
65002
65003         Sync from coreutils.
65004
65005         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
65006         failure on deficient systems, and simplify gnulib lgpl dependencies.
65007         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
65008         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
65009
65010         * lib/xalloc-die.c: Remove unused definition of N_.
65011
65012 2006-02-14  Jim Meyering  <jim@meyering.net>
65013
65014         Sync from coreutils.
65015         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
65016         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
65017         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
65018         double-quote uses of that variable, to accommodate the rare case in
65019         which getmntent is available in none of the libraries checked.  This
65020         happens at least on FreeBSD 5.0.
65021
65022 2006-02-13  Simon Josefsson  <jas@extundo.com>
65023
65024         * gnulib-tool (Usage): Fix --import, from
65025         karl@freefriends.org (Karl Berry).
65026
65027 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
65028
65029         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
65030
65031 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
65032
65033         * lib/argp-namefrob.h: Restore changes accidentally lost during the
65034         "autoupdate" on 2005-12-12.
65035
65036 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65037
65038         * modules/closeout (Depends-on): Remove atexit.
65039
65040 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65041
65042         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
65043         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
65044
65045 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65046
65047         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
65048         __EXTENSIONS__ if this causes compilation to fail.  Problem
65049         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
65050         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
65051
65052 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
65053
65054         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
65055         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
65056         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
65057         All uses changed.
65058
65059 2006-01-26  Simon Josefsson  <jas@extundo.com>
65060
65061         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
65062         prototype is visible on mingw32.
65063
65064         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
65065         for mingw32.
65066
65067         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
65068         mingw32).
65069
65070 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65071
65072         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
65073         attempt to open for write; this always fails, at least on POSIX
65074         hosts.  This reinstates the 2006-01-09 change, which was
65075         inadvertently removed.
65076
65077 2006-01-26  Bruno Haible  <bruno@clisp.org>
65078
65079         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
65080         Reported by Paul Eggert.
65081
65082 2006-01-26  Bruno Haible  <bruno@clisp.org>
65083             Paul Eggert  <eggert@cs.ucla.edu>
65084
65085         * lib/stdbool_.h (_Bool)
65086         [(! (defined __cplusplus || defined __BEOS__)
65087           && !defined __GNUC__
65088           && !(defined __HP_cc || defined __xlc__
65089                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
65090                || defined __sgi))]:
65091         #define to signed char in these cases too; this simplifies
65092         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
65093         etc., separately) and makes it more conservative.
65094
65095 2006-01-25  Simon Josefsson  <jas@extundo.com>
65096
65097         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
65098         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
65099         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
65100
65101 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65102
65103         * lib/argp-namefrob.h: Bugfix. Remove stray #
65104
65105 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
65106
65107         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
65108         so that we test the test.
65109         Check for yet another HP-UX cc bug involving *bool |= bool.
65110
65111 2006-01-25  Karl Berry  <karl@gnu.org>
65112
65113         * config/srclist.txt (vasnprintf.c): sync lost.
65114
65115 2006-01-25  Jim Meyering  <jim@meyering.net>
65116
65117         Sync from the stable (b5) branch of coreutils:
65118
65119         * lib/fts.c (fts_children): Don't let close() clobber errno from
65120         failed fchdir().
65121
65122         * lib/fts.c (fts_stat): When following a symlink-to-directory,
65123         don't necessarily interpret stat-fails+lstat-succeeds as indicating
65124         a dangling symlink.  That can also happen at least for ELOOP.
65125         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
65126         FYI, this bug predates the inclusion of fts.c in coreutils.
65127
65128         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
65129         in their own block, so pre-c99 compilers don't object.
65130
65131         Avoid the double-free (first in fts_read, second in fts_close) that
65132         would occur when an `active' directory is made inaccessible (e.g.,
65133         via chmod a-x) during a traversal.
65134         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65135         before returning.  Reproduce this failure by
65136         mkdir -p a/b; cd a; chmod a-x . b
65137         Reported by Stavros Passas.
65138
65139 2006-01-25  Jim Meyering  <jim@meyering.net>
65140
65141         * lib/fileblocks.c: Remove more useless parentheses.
65142         * lib/readutmp.h: Likewise.
65143
65144 2006-01-25  Bruno Haible  <bruno@clisp.org>
65145
65146         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
65147         warnings.
65148         Reported by Paul Eggert.
65149
65150 2006-01-25  Bruno Haible  <bruno@clisp.org>
65151
65152         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
65153         rid of a trap command. For Solaris sh.
65154         Reported by Mark D. Baushke <mdb@gnu.org>.
65155
65156 2006-01-24  Simon Josefsson  <jas@extundo.com>
65157
65158         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
65159         Bruno.
65160
65161 2006-01-24  Karl Berry  <karl@gnu.org>
65162
65163         * config/srclist.txt (argp-namefrob.h): sync lost.
65164
65165 2006-01-24  Jim Meyering  <jim@meyering.net>
65166
65167         * modules/openat (Files): Add lib/intprops.h.
65168         From Mark D. Baushke.
65169
65170 2006-01-24  Jim Meyering  <jim@meyering.net>
65171
65172         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
65173         Reported by Mark D. Baushke.
65174
65175 2006-01-24  Jim Meyering  <jim@meyering.net>
65176
65177         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
65178
65179 2006-01-24  Bruno Haible  <bruno@clisp.org>
65180
65181         * modules/strnlen (Maintainer): Change from glibc to all.
65182
65183 2006-01-24  Bruno Haible  <bruno@clisp.org>
65184
65185         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
65186         Patch by Paul Eggert.
65187
65188 2006-01-24  Bruno Haible  <bruno@clisp.org>
65189
65190         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
65191         already has it.
65192         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
65193         2005-11-26.
65194
65195         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
65196         'signed char' to avoid problems with the built-in _Bool type.
65197         Reported by Paul Eggert on 2005-11-26.
65198
65199 2006-01-24  Bruno Haible  <bruno@clisp.org>
65200
65201         * gnulib-tool (func_import): Avoid constructing complicated sed
65202         expressions inside backquote.
65203         Report and solution by Mark D. Baushke <mdb@gnu.org>.
65204
65205 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
65206
65207         These changes imported from libc.
65208         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
65209         test and two separate function calls.
65210         * lib/strndup.c (__strndup): Add libc_hidden_def.
65211
65212 2006-01-23  Simon Josefsson  <jas@extundo.com>
65213
65214         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
65215         Remove the test_*_SOURCES variable: automake infers it by default.
65216         * modules/tls-tests: Likewise.
65217
65218 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65219
65220         Work around porting bugs reported by Dieter in
65221         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
65222         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
65223         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
65224         Include "getopt.h" first, to check interface.
65225         (getenv): Declare only if defined HAVE_DECL_GETENV &&
65226         !HAVE_DECL_GETENV.
65227         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
65228         (__strndup): Revert to K&R-style function dfns, the glibc style.
65229         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
65230         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
65231         Include strnlen.h first, to get prototype properly.
65232         (strnlen): Renamed from __strnlen.
65233         Remove weak alias.
65234
65235 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65236
65237         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
65238
65239 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65240
65241         * config/srclist.txt: Adjust to reflect glibc reorganization.
65242         This affects only comments.
65243
65244 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65245
65246          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
65247          Reported by Bruce Korb <bkorb@gnu.org>.
65248
65249 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65250
65251         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
65252         to pacify gcc -Wswitch-default.
65253
65254 2006-01-22  Bruno Haible  <bruno@clisp.org>
65255
65256         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
65257         temporary buffer for sprintf, take into account the precision also
65258         for 'd', 'i', 'u', 'o', 'x', 'X'.
65259
65260 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65261
65262         * modules/argp-tests: New module
65263         * tests/test-argp.c: New file
65264         * tests/test-argp-2.sh: New file
65265
65266 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65267
65268         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
65269         (__argp_base_name): Removed
65270         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
65271         typo.
65272         (__argp_base_name): Provide macro definition or extern declaration
65273         depending on the configuration
65274
65275 2006-01-20  Simon Josefsson  <jas@extundo.com>
65276
65277         * modules/inet_ntop (Depends-on): Depend on sys_socket.
65278
65279 2006-01-20  Simon Josefsson  <jas@extundo.com>
65280
65281         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
65282
65283 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65284
65285         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
65286         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
65287         Suggested by Bruno Haible.
65288
65289 2006-01-20  Karl Berry  <karl@gnu.org>
65290
65291         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
65292         until changes propagate, I guess.
65293
65294 2006-01-19  Simon Josefsson  <jas@extundo.com>
65295
65296         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
65297
65298 2006-01-19  Simon Josefsson  <jas@extundo.com>
65299
65300         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
65301
65302 2006-01-19  Simon Josefsson  <jas@extundo.com>
65303
65304         * gnulib-tool: Set check_PROGRAMS.
65305
65306         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65307         modules/des-tests, modules/gc-arcfour-tests,
65308         modules/gc-arctwo-tests, modules/gc-des-tests,
65309         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65310         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65311         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65312         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65313         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65314         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
65315         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
65316         test_*_SOURCES.
65317
65318 2006-01-18  Simon Josefsson  <jas@extundo.com>
65319
65320         * modules/socklen (Depends-on): Depend on sys_socket.
65321
65322 2006-01-18  Simon Josefsson  <jas@extundo.com>
65323
65324         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65325         modules/des-tests, modules/gc-arcfour-tests,
65326         modules/gc-arctwo-tests, modules/gc-des-tests,
65327         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65328         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65329         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65330         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65331         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65332         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
65333         $(EXEEXT) to automake TESTS variable, for mingw32.
65334
65335 2006-01-17  Simon Josefsson  <jas@extundo.com>
65336
65337         * modules/socklen (Include): Need sys/socket.h.
65338
65339 2006-01-17  Bruno Haible  <bruno@clisp.org>
65340
65341         * modules/ssize_t (Include): Add <sys/types.h>.
65342
65343 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
65344
65345         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
65346         it's not portable and it doesn't work with cross-compiles.
65347         Problem reported by Bruno Haible.  Fix missing-$ typo in
65348         'test "gl_cv_ignore_unused_libraries" ...' that prevented
65349         -zignore from being used with Sun's C compiler.
65350
65351 2006-01-12  Simon Josefsson  <jas@extundo.com>
65352
65353         * lib/base64.c: Fix warning, reported by Bruno Haible
65354         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
65355
65356 2006-01-12  Bruno Haible  <bruno@clisp.org>
65357
65358         * modules/ldd: New file.
65359         * build-aux/ldd.sh.in: New file.
65360         * MODULES.html.sh (Support for building libraries and executables): Add
65361         ldd.
65362
65363 2006-01-12  Bruno Haible  <bruno@clisp.org>
65364
65365         * m4/ldd.m4: New file.
65366
65367 2006-01-12  Bruno Haible  <bruno@clisp.org>
65368
65369         * gnulib-tool (func_import, func_create_testdir): Don't go into an
65370         endless loop while replacing $auxdir with build-aux.
65371
65372 2006-01-11  Simon Josefsson  <jas@extundo.com>
65373
65374         * lib/stdint_.h (SIZE_MAX): Add missing (.
65375
65376 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
65377
65378         Sync from coreutils.
65379         * lib/md5.c: Fix commentary typos.
65380         (alignof, UNALIGNED_P): No need for a GCC-specific version.
65381         * lib/md5.h (__attribute__): Remove; unused.
65382         * lib/sha1.c: Fix commentary to match md5 better.
65383         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
65384         so that we don't need to worry about alignment.  All uses changed.
65385         This merges the 2005-10-28 md5 change into sha1.
65386
65387 2006-01-11  Jim Meyering  <jim@meyering.net>
65388
65389         Sync from coreutils.
65390         * lib/md5.c (OP): Fix spacing.
65391
65392 2006-01-11  Bruno Haible  <bruno@clisp.org>
65393
65394         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65395         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
65396         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
65397
65398 2006-01-11  Bruno Haible  <bruno@clisp.org>
65399
65400         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65401         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
65402         the "early" section as well.
65403
65404 2006-01-11  Bruno Haible  <bruno@clisp.org>
65405
65406         Avoid "ar: no archive members specified" error on MacOS X.
65407         * gnulib-tool (func_modules_add_dummy): New function.
65408         (func_import, func_create_testdir): Invoke it.
65409
65410 2006-01-11  Bruno Haible  <bruno@clisp.org>
65411
65412         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
65413         with $auxdir in AC_CONFIG_FILES statements.
65414
65415 2006-01-11  Bruno Haible  <bruno@clisp.org>
65416
65417         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65418         Initialize also noinst_HEADERS to empty.
65419
65420 2006-01-11  Bruno Haible  <bruno@clisp.org>
65421
65422         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
65423         variables.
65424         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
65425         autoreconf.
65426
65427 2006-01-11  Bruno Haible  <bruno@clisp.org>
65428
65429         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
65430         overridable by the user.
65431         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65432
65433 2006-01-10  Simon Josefsson  <jas@extundo.com>
65434
65435         * modules/sys_socket: New file.
65436
65437 2006-01-10  Simon Josefsson  <jas@extundo.com>
65438
65439         * m4/sys_socket_h.m4: New file.
65440
65441 2006-01-10  Simon Josefsson  <jas@extundo.com>
65442
65443         * lib/socket_.h: New file.
65444
65445 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65446
65447         * modules/readutmp (Maintainer): Add myself.
65448
65449 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65450
65451         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
65452         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
65453         People who are still concerned with buggy memcmp implementations
65454         can invoke gl_FUNC_MEMCMP themselves.
65455
65456 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65457
65458         * lib/regex_internal.h (BITSET_WORD_BITS):
65459         Work around a bug in 64-bit PGC (before version 6.1-2), where the
65460         preprocessor mishandles large unsigned values as if they were signed.
65461         Problem reported by Claudio Fontana in
65462         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
65463
65464 2006-01-10  Jim Meyering  <jim@meyering.net>
65465
65466         Avoid the double-free (first in fts_read, second in fts_close) that
65467         would occur when an `active' directory is made inaccessible (e.g.,
65468         via chmod a-x) during a traversal.
65469         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65470         before returning.  Reproduce this failure by
65471         mkdir -p a/b; cd a; chmod a-x . b
65472         Reported by Stavros Passas.
65473
65474         Sync from coreutils.
65475         * lib/sha1.c: Tweak grammar in a comment.
65476
65477 2006-01-10  Jim Meyering  <jim@meyering.net>
65478
65479         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
65480         Patch by Joerg Sonnenberger.
65481
65482 2006-01-10  Bruno Haible  <bruno@clisp.org>
65483
65484         * modules/readutmp: Depend on module free.
65485         * modules/strtok_r: Depend on module restrict.
65486
65487 2006-01-10  Bruno Haible  <bruno@clisp.org>
65488
65489         * modules/gettext (configure.ac): Add an invocation of
65490         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
65491
65492 2006-01-10  Bruno Haible  <bruno@clisp.org>
65493
65494         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
65495         Reported by Werner Lemberg <wl@gnu.org>.
65496
65497 2006-01-10  Bruno Haible  <bruno@clisp.org>
65498
65499         * lib/localcharset.c: Update from GNU gettext.
65500
65501 2006-01-10  Bruno Haible  <bruno@clisp.org>
65502
65503         * lib/argp.h (__const): Remove macro. Use const instead.
65504         * lib/argp-fmtstream.h (__const): Likewise.
65505         * lib/glob_.h (__const): Remove macro.
65506         * lib/glob-libc.h: Use const instead of __const.
65507
65508 2006-01-10  Bruno Haible  <bruno@clisp.org>
65509
65510         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
65511         variable.
65512         Needed to avoid an automake error regarding the 'gettext' module.
65513
65514 2006-01-09  Simon Josefsson  <jas@extundo.com>
65515
65516         * modules/inet_ntop (Depends-on): Add restrict.
65517
65518 2006-01-09  Simon Josefsson  <jas@extundo.com>
65519
65520         * modules/gc-rijndael-tests (License): Put under LGPL.
65521
65522         * modules/gc-des-tests (License): Likewise.
65523
65524         * modules/gc-arcfour-tests (License): Likewise.
65525
65526         * modules/gc-arctwo-tests (License): Likewise.
65527
65528         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
65529
65530         * modules/gc-hmac-sha1-tests (Files): Likewise.
65531
65532         * modules/gc-hmac-md5-tests (License): Likewise.
65533
65534         * modules/gc-sha1-tests (License): Likewise.
65535
65536         * modules/gc-md5-tests (License): Likewise.
65537
65538         * modules/gc-md4-tests (License): Likewise.
65539
65540         * modules/gc-md2-tests (License): Likewise.
65541
65542         * modules/gc-tests (License): Likewise.
65543
65544         * modules/des-tests (License): Likewise.
65545
65546         * modules/md4-tests (License): Likewise.
65547
65548         * modules/md2-tests (License): Likewise.
65549
65550 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65551
65552         Sync from coreutils:
65553
65554         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
65555         * modules/lib-ignore: New file.
65556         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
65557         chdir-safer.m4, lchmod.m4.
65558         * modules/openat: Add mkdirat.c, openat-priv.h.
65559
65560 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65561
65562         Sync from coreutils.
65563         * m4/lib-ignore.m4: New file.
65564         * m4/lchmod.m4: New file.
65565
65566 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65567
65568         Sync from coreutils.
65569         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
65570         for write access: POSIX says that must fail.
65571         * lib/fts.c (diropen): Likewise.
65572         * lib/save-cwd.c (save_cwd): Likewise.
65573         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
65574         well, for minor improvements on hosts that lack O_DIRECTORY.
65575         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
65576         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
65577         Fall back on chown if open failed with EACCES.
65578
65579         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
65580         Report an error at compile-time if only a 1-second nominal clock
65581         resolution is found.
65582
65583         * lib/lchmod.h: New file.
65584         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
65585         (make_dir_parents): Use lchown rather than chown, and
65586         lchmod rather than chmod.
65587
65588         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
65589         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
65590         "proc" reported by n0dalus.
65591
65592         * lib/mountlist.c: Include <limits.h>.
65593         (dev_from_mount_options)
65594         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
65595         New function.  It no longer assumes "dev=" has the System V meaning
65596         on Linux (since it doesn't).  It also parses "dev=" more carefully.
65597         (read_file_system_list)
65598         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
65599         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
65600         dev= in that case.
65601
65602         * lib/posixtm.h (PDS_PRE_2000): New macro.
65603         * lib/posixtm.c (year): Arg is now syntax_bits rather than
65604         allow_century.  All usages changed.  Reject dates outside the range
65605         1969-1999 if PDS_PRE_2000 is used.
65606
65607 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65608
65609         Sync from coreutils.
65610         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
65611         (Time of day items): Mention the possibility of leap seconds.
65612         Problem reported by Dr. David Alan Gilbert.
65613
65614 2006-01-09  Jim Meyering  <jim@meyering.net>
65615
65616         Sync from coreutils.
65617
65618         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
65619
65620         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
65621
65622         * lib/modechange.c (mode_compile): Reject an invalid mode string
65623         that starts with an octal digit.  From Andreas Gruenbacher.
65624
65625         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
65626         and dup to open_safer and dup_safer, respectively.
65627         (openat_permissive): Fix typo in comment.
65628
65629         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
65630         "gettext.h"; either no longer needed or are guaranteed by openat.h.
65631         (_): Remove; no longer needed.
65632         (openat): Renamed from rpl_openat; no need for rpl_openat
65633         since openat.h renames openat for us.
65634         Replace most of the body with a call to openat_permissive,
65635         to avoid duplicate code.
65636         Port to (probably hypothetical) environments were mode_t is
65637         wider than int.
65638         (openat_permissive): Require mode arg, so that we can check
65639         types better.  Put it just after flags.  Change cwd failure
65640         indicator from pointer-to-bool to pointer-to-errno-value.
65641         All callers changed.
65642         Invoke openat_save_fail and/or openat_restore_fail if
65643         cwd_errno is null, so that openat can call us.
65644         (openat_permissive, fdopendir, fstatat, unlinkat):
65645         Simplify errno handling to avoid some duplicate code,
65646         as it's OK to set errno on success.
65647         * lib/openat.h: Revamp code so that function macros depend on
65648         __OPENAT_PREFIX only, not also on AT_FDCWD.
65649         (openat_ro): Remove.  Caller changed to use openat_permissive.
65650         (openat_permissive): Now a macro, if not a function.
65651         (openat_restore_fail, openat_save_fail): Now always functions,
65652         since mkdirat needs them even if __OPENAT_PREFIX is defined.
65653
65654         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
65655         and openat.c.
65656         * lib/mkdirat.c: Include openat-priv.h.
65657         Remove definitions of macros defined therein.
65658         * lib/openat.c: Likewise.
65659
65660         * lib/mkdirat.c (mkdirat): New file and function.
65661         * lib/openat.h (mkdirat): Declare.
65662
65663         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
65664
65665         * lib/openat.h (openat_permissive): Declare.
65666         (openat_ro): Define.
65667
65668         * lib/openat.c (EXPECTED_ERRNO): New macro.
65669         (openat_permissive): New function -- used in remove.c rewrite.
65670         (all functions): Set errno just before returning, only if there
65671         was an actual failure.
65672         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
65673
65674         Emulate openat-family functions using Linux's procfs, if possible.
65675         Idea and some code based on Ulrich Drepper's glibc changes.
65676
65677         * lib/openat.c: (BUILD_PROC_NAME): New macro.
65678         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
65679         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
65680         before falling back on save_cwd and restore_cwd.
65681         (fdopendir, fstatat, unlinkat): Likewise.
65682
65683         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
65684         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
65685
65686         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
65687         as second argument to va_arg.  Otherwise, some versions of gcc
65688         warn that `if this code is reached, the program will abort'.
65689
65690 2006-01-09  Jim Meyering  <jim@meyering.net>
65691
65692         Sync from coreutils.
65693         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
65694         Require openat-priv.h.
65695
65696 2006-01-09  Bruno Haible  <bruno@clisp.org>
65697
65698         * modules/strnlen (Include): Use strnlen.h.
65699
65700 2006-01-09  Bruno Haible  <bruno@clisp.org>
65701
65702         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
65703
65704 2006-01-09  Bruno Haible  <bruno@clisp.org>
65705
65706         * lib/sysexit_.h (EX_OK): New macro.
65707         Suggested by Martin Lambers <marlam@marlam.de>.
65708
65709 2006-01-09  Bruno Haible  <bruno@clisp.org>
65710
65711         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
65712         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
65713
65714 2006-01-09  Bruno Haible  <bruno@clisp.org>
65715
65716         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
65717         numbers.
65718
65719 2006-01-09  Bruno Haible  <bruno@clisp.org>
65720
65721         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
65722         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
65723         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
65724         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
65725
65726 2006-01-09  Bruno Haible  <bruno@clisp.org>
65727
65728         * build-aux/javacomp.sh.in: New file, moved from lib/.
65729         * modules/javacomp-script (Files): Update.
65730         (configure.ac): Add AC_CONFIG_FILES invocation.
65731         (EXTRA_DIST): Remove variable.
65732
65733         * build-aux/javaexec.sh.in: New file, moved from lib/.
65734         * modules/javaexec (Files): Update.
65735         (configure.ac): Add AC_CONFIG_FILES invocation.
65736         (EXTRA_DIST): Remove javaexec.sh.in.
65737
65738         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
65739         * modules/csharpcomp-script (Files): Update.
65740         (configure.ac): Add AC_CONFIG_FILES invocation.
65741         (EXTRA_DIST): Remove variable.
65742
65743         * build-aux/csharpexec.sh.in: New file, moved from lib/.
65744         * modules/csharpexec (Files): Update.
65745         (configure.ac): Add AC_CONFIG_FILES invocation.
65746         (EXTRA_DIST): Remove csharpexec.sh.in.
65747
65748 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
65749
65750         Sync from coreutils.
65751
65752         Add POSIX ACL support
65753         * lib/acl.h (copy_acl, set_acl): Add declarations.
65754         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
65755         systems other than Linux.
65756         (chmod_or_fchmod): New function: use fchmod when possible,
65757         and chmod otherwise.
65758         (file_has_acl): Add a POSIX ACL implementation, with a
65759         Linux-specific subcase.
65760         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
65761         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
65762         acls are unsupported.
65763         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
65764         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
65765         are unsupported.
65766
65767 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
65768
65769         Sync from coreutils.
65770         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
65771
65772 2006-01-07  Bruno Haible  <bruno@clisp.org>
65773
65774         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
65775         gl_EARLY.
65776
65777 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65778
65779         * lib/strftime.c (tzname): Don't declare if it is already #defined.
65780         Problem reported for Mingw by Mark Junker.
65781
65782 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65783
65784         * README: Gnulib normally doesn't generate a tarball.
65785
65786 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
65787
65788         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
65789         long int, not int, for nanosecond counts, so that people who are
65790         used to POSIX struct timespec won't be surprised.  Reported by Jim
65791         Meyering.
65792
65793 2005-12-28  Bruno Haible  <bruno@clisp.org>
65794
65795         * build-aux/config.rpath: Update from GNU gettext.
65796
65797 2005-12-16  Jim Meyering  <jim@meyering.net>
65798
65799         * modules/fprintftime: New module.
65800         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
65801
65802 2005-12-16  Jim Meyering  <jim@meyering.net>
65803
65804         * m4/fprintftime.m4: New file.
65805
65806 2005-12-16  Jim Meyering  <jim@meyering.net>
65807
65808         * lib/fprintftime.c, lib/fprintftime.h: New files.
65809
65810 2005-12-15  Simon Josefsson  <jas@extundo.com>
65811
65812         * modules/socklen (configure.ac): Fix M4 macro name, to align with
65813         new m4/socklen.m4.
65814
65815 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65816
65817         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
65818         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
65819
65820 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65821
65822         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
65823         * lib/argp-help.c (fill_in_uparams): Check if the constructed
65824         struct uparams is valid. Fall back to the default values if it is
65825         not.
65826
65827 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65828
65829         * modules/argp (Files): Add argp-pin.c
65830         (Depends-on): dirname
65831         (lib_SOURCES): Add argp-pin.c
65832
65833 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65834
65835         * m4/argp.m4:  Check if program_invocation_name and
65836         program_invocation_short_name are declared and define appropriate
65837         macros if they are not.
65838
65839 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65840
65841         * lib/argp-help.c (__argp_base_name): New function
65842         (__argp_short_program_name): Rewrite using __argp_base_name
65843         * lib/argp-namefrob.h: Define program_invocation_name and
65844         program_invocation_short_name if requested
65845         (__argp_base_name): Add prototype
65846         * lib/argp-parse.c (argp_def): Use gettext wrappers
65847         (argp_default_parser): Use __argp_base_name
65848         * lib/argp-pin.c: New file. Defines program_invocation_name and
65849         program_invocation_short_name on systems that lack them.
65850
65851 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65852
65853         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
65854         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
65855         porting problem reported by Georg Schwarz in
65856         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
65857
65858 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65859
65860         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
65861         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
65862         porting problem reported by Georg Schwarz in
65863         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
65864
65865 2005-12-05  Bruno Haible  <bruno@clisp.org>
65866
65867         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
65868         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
65869         Reported by Mark Junker <mjscod@gmx.de>.
65870
65871 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
65872
65873         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
65874         Use implementation from Albert Chin, with some
65875         comments/corrections by Stepan Kasal and myself.
65876
65877 2005-12-02  Bruno Haible  <bruno@clisp.org>
65878
65879         * gnulib-tool (func_import): Accept GPLed build tool modules when
65880         --lgpl is given.
65881         * modules/csharpcomp-script: New file.
65882         * modules/csharpcomp: Depend on it.
65883         * modules/javacomp-script: New file.
65884         * modules/javacomp: Depend on it.
65885         Suggested by Simon Josefsson.
65886
65887 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
65888
65889         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
65890         statement, to work around an HP-UX 10.20 compiler bug reported by
65891         Peter O'Gorman.
65892
65893 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
65894
65895         * modules/savedir (Depends-on): Add openat.
65896
65897 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
65898
65899         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
65900         (uintmax_t) [defined uintmax_t]: Do not declare.
65901         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
65902         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
65903         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
65904         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
65905         sake of portability to weird hosts that C allows (though we don't
65906         know of any practical examples).
65907
65908         * lib/savedir.h (fdsavedir): New decl.
65909         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
65910         contains most of the former guts of savedir.
65911         (savedir): Use savedirstream.
65912         Include "openat.h".
65913
65914 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
65915
65916         * modules/obstack (Files): Add m4/ulonglong.m4.
65917         Problem reported by Davide Angelocola.
65918
65919 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
65920
65921         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
65922         coreutils no longer futzes with rounding modes.
65923
65924 2005-11-14  Jim Meyering  <jim@meyering.net>
65925
65926         * lib/mkstemp-safer.c: Include <config.h>, required for possible
65927         replacement of mkstemp.
65928
65929 2005-11-10  Simon Josefsson  <jas@extundo.com>
65930
65931         * lib/readline.c: Remove EOL.
65932
65933 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65934
65935         * modules/gethrxtime (Depends-on): Add gettime.
65936
65937 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65938
65939         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
65940         or gettimeofday; no longer needed.
65941
65942 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65943
65944         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
65945         time business.
65946         (gethrxtime) [! (HAVE_NANOUPTIME
65947         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
65948         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
65949         our own approximation.
65950
65951 2005-11-08  Eric Blake  <ebb9@byu.net>
65952
65953         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
65954
65955 2005-11-08  Eric Blake  <ebb9@byu.net>
65956
65957         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
65958
65959 2005-11-04  Bruno Haible  <bruno@clisp.org>
65960
65961         * gnulib-tool: Implement --update mode.
65962
65963 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65964
65965         Fix porting problem reported by Theodoros V. Kalamatianos.
65966         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
65967         Don't assume that futimes failing means we must fail.
65968
65969 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65970
65971         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
65972         variables to suggest the intended function of the PATH_MAX check.
65973
65974 2005-10-30  Kean Johnston  <jkj@sco.com>
65975
65976         Trivial changes to support SCO systems.
65977         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
65978         as PATH_MAX.
65979         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
65980         where __ptr is null when no I/O is pending.
65981
65982 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65983
65984         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
65985         leave errno alone.  Problem reported by Dmitry V. Levin.
65986
65987 2005-10-28  Simon Josefsson  <jas@extundo.com>
65988
65989         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
65990         Test more.
65991
65992         * tests/test-gc-md2.c, tests/test-md2.c: New files.
65993
65994         * modules/md2, modules/md2-tests: New files.
65995
65996 2005-10-28  Simon Josefsson  <jas@extundo.com>
65997
65998         * m4/inet_ntop.m4: More tests.
65999
66000         * m4/gc-md2.m4, md2.m4: New file.
66001
66002 2005-10-28  Simon Josefsson  <jas@extundo.com>
66003
66004         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
66005         "restrict" keywords, as per POSIX.  Protect the function
66006         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
66007         Don't use K&R prototypes.  Check the sprintf return values.
66008         Re-define EAFNOSUPPORT if not present.  Indent.
66009
66010         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
66011         suggested by Bruno Haible <bruno@clisp.org>.
66012
66013         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
66014
66015         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
66016
66017         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
66018         libgcrypt).
66019
66020         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
66021
66022         * lib/md2.h, lib/md2.c: New files.
66023
66024 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
66025
66026         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
66027         errno alone.  Problem reported by Frederic Jolliton.
66028
66029 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66030
66031         * modules/verify (License): Change from GPL to LGPL.  This is a
66032         tiny module and there are apparently near-equivalents that are
66033         under the BSD license.
66034
66035 2005-10-24  Simon Josefsson  <jas@extundo.com>
66036
66037         * modules/sha1: Relicense to LGPL.
66038
66039 2005-10-24  Simon Josefsson  <jas@extundo.com>
66040
66041         * lib/md4.h: Shrink buffer size, now that we changed the type.
66042
66043 2005-10-23  Simon Josefsson  <jas@extundo.com>
66044
66045         * gnulib-tool (func_import): Fix --tests-base.
66046
66047 2005-10-22  Simon Josefsson  <jas@extundo.com>
66048
66049         * modules/arcfour (Depends-on): Need stdint.
66050
66051 2005-10-22  Simon Josefsson  <jas@extundo.com>
66052
66053         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
66054         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
66055
66056 2005-10-22  Simon Josefsson  <jas@extundo.com>
66057
66058         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
66059         suggested by Bruno Haible <bruno@clisp.org>.
66060
66061 2005-10-22  Simon Josefsson  <jas@extundo.com>
66062
66063         * lib/crc.h: Include stddef.h, for size_t.
66064
66065 2005-10-22  Simon Josefsson  <jas@extundo.com>
66066
66067         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
66068         arcfour_context struct (simplify test vector testing in GNU
66069         Shishi).
66070
66071 2005-10-21  Simon Josefsson  <jas@extundo.com>
66072
66073         * modules/des, modules/des-tests: New files.
66074
66075         * modules/gc-des, modules/gc-des-tests: New files.
66076
66077         * tests/test-des.c, tests/test-gc-des.c: New file.
66078
66079 2005-10-21  Simon Josefsson  <jas@extundo.com>
66080
66081         * modules/arctwo, modules/arctwo-tests: New files.
66082
66083         * tests/test-arctwo.c: New file.
66084
66085         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
66086
66087         * tests/test-gc-arctwo.c: New file.
66088
66089 2005-10-21  Simon Josefsson  <jas@extundo.com>
66090
66091         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
66092         Bruno Haible <bruno@clisp.org>.
66093
66094         * m4/gc-des.m4: New file.
66095
66096 2005-10-21  Simon Josefsson  <jas@extundo.com>
66097
66098         * m4/arctwo.m4: New file.
66099
66100         * m4/gc-arctwo.m4: New file.
66101
66102 2005-10-21  Simon Josefsson  <jas@extundo.com>
66103
66104         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
66105         block.
66106
66107 2005-10-21  Simon Josefsson  <jas@extundo.com>
66108
66109         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
66110         <bruno@clisp.org>.
66111
66112         * lib/hmac-sha1.c (hmac_sha1): Likewise.
66113
66114         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
66115         Bruno Haible <bruno@clisp.org>.
66116
66117         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
66118         <bruno@clisp.org>.
66119
66120 2005-10-21  Simon Josefsson  <jas@extundo.com>
66121
66122         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
66123
66124 2005-10-21  Simon Josefsson  <jas@extundo.com>
66125
66126         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
66127
66128 2005-10-21  Simon Josefsson  <jas@extundo.com>
66129
66130         * lib/des.h, lib/des.c: New files.
66131
66132         * lib/gc-gnulib.c: Support DES.c
66133
66134 2005-10-21  Simon Josefsson  <jas@extundo.com>
66135
66136         * lib/arctwo.h, lib/arctwo.c: New files.
66137
66138         * lib/gc-gnulib.c: Support ARCTWO.
66139
66140 2005-10-21  Simon Josefsson  <jas@extundo.com>
66141
66142         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
66143         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66144
66145 2005-10-21  Simon Josefsson  <jas@extundo.com>
66146
66147         * gnulib-tool (func_import, func_create_testdir): Define automake
66148         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
66149         Makefile.am snippet),
66150         suggested by Bruno Haible <bruno@clisp.org>.
66151
66152         * modules/gc (Makefile.am): Use it.
66153
66154 2005-10-21  Bruno Haible  <bruno@clisp.org>
66155
66156         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
66157         patch.
66158
66159 2005-10-19  Simon Josefsson  <jas@extundo.com>
66160
66161         * tests/test-gc-rijndael.c: New file.
66162
66163         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
66164
66165 2005-10-19  Simon Josefsson  <jas@extundo.com>
66166
66167         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
66168         interface too.
66169
66170 2005-10-19  Simon Josefsson  <jas@extundo.com>
66171
66172         * tests/test-gc-arcfour.c: New file.
66173
66174         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
66175
66176 2005-10-19  Simon Josefsson  <jas@extundo.com>
66177
66178         * modules/gc-md4, modules/gc-md4-tests: New file.
66179
66180         * tests/test-gc-md4.c: New file.
66181
66182 2005-10-19  Simon Josefsson  <jas@extundo.com>
66183
66184         * m4/gc-md4.m4: New file.
66185
66186 2005-10-19  Simon Josefsson  <jas@extundo.com>
66187
66188         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
66189         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
66190         <kasal@ucw.cz>.
66191
66192 2005-10-19  Simon Josefsson  <jas@extundo.com>
66193
66194         * m4/gc-arcfour.m4: New file.
66195
66196         * m4/gc-rijndael.m4: New file.
66197
66198 2005-10-19  Simon Josefsson  <jas@extundo.com>
66199
66200         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
66201
66202 2005-10-19  Simon Josefsson  <jas@extundo.com>
66203
66204         * lib/gc-gnulib.c: Support ARCFOUR.
66205
66206 2005-10-19  Simon Josefsson  <jas@extundo.com>
66207
66208         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
66209         support.
66210
66211         * lib/gc.h: Add ECB enum type.
66212
66213         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
66214
66215 2005-10-18  Simon Josefsson  <jas@extundo.com>
66216
66217         * tests/test-md5.c: New file.
66218
66219         * modules/md5-tests: New file.
66220
66221 2005-10-18  Simon Josefsson  <jas@extundo.com>
66222
66223         * tests/test-md4.c: New file.
66224
66225         * modules/md4, modules/md4-tests: New files.
66226
66227 2005-10-18  Simon Josefsson  <jas@extundo.com>
66228
66229         * m4/md4.m4: New file.
66230
66231 2005-10-18  Simon Josefsson  <jas@extundo.com>
66232
66233         * lib/md4.h, lib/md4.c: New files, based on md5.?.
66234
66235 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
66236
66237         * gnulib-tool (func_create_testdir): Omit the second check whether
66238         BUILT_SOURCES in nonempty.
66239
66240 2005-10-17  Simon Josefsson  <jas@extundo.com>
66241
66242         * tests/test-rijndael.c: New file.
66243
66244 2005-10-17  Simon Josefsson  <jas@extundo.com>
66245
66246         * modules/sha1: Depend on stdint instead of md5.
66247
66248         * modules/md5: Depend on stdint, remove uint32_t.
66249
66250 2005-10-17  Simon Josefsson  <jas@extundo.com>
66251
66252         * modules/gc-sha1-tests: New file.
66253
66254         * tests/test-gc-sha1.c: New file.
66255
66256 2005-10-17  Simon Josefsson  <jas@extundo.com>
66257
66258         * m4/md5.m4: Remove call to uint32_t.m4.
66259
66260 2005-10-17  Simon Josefsson  <jas@extundo.com>
66261
66262         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
66263
66264         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
66265         md5.h.
66266
66267         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
66268
66269         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
66270
66271 2005-10-17  Simon Josefsson  <jas@extundo.com>
66272
66273         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
66274
66275 2005-10-17  Simon Josefsson  <jas@extundo.com>
66276
66277         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
66278
66279 2005-10-17  Simon Josefsson  <jas@extundo.com>
66280
66281         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
66282
66283         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
66284
66285 2005-10-17  Bruno Haible  <bruno@clisp.org>
66286
66287         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
66288         that it can also be used in a test.
66289
66290 2005-10-16  Bruno Haible  <bruno@clisp.org>
66291
66292         * gnulib-tool (func_emit_tests_Makefile_am): Also define
66293         TESTS_ENVIRONMENT, so that individual tests can augment it.
66294
66295         * gnulib-tool (func_create_testdir): Use an intermediate target for
66296         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
66297         macros, like $(ALLOCA_H), which cannot be passed through the command
66298         line.
66299
66300 2005-10-15  Simon Josefsson  <jas@extundo.com>
66301
66302         * modules/rijndael-tests: New file.
66303
66304         * modules/rijndael: New file.
66305
66306 2005-10-15  Simon Josefsson  <jas@extundo.com>
66307
66308         * m4/rijndael.m4: New file.
66309
66310 2005-10-15  Simon Josefsson  <jas@extundo.com>
66311
66312         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
66313
66314         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
66315
66316 2005-10-14  Simon Josefsson  <jas@extundo.com>
66317
66318         * tests/test-arcfour.c: New file.
66319
66320         * modules/arcfour, modules/arcfour-tests: New files.
66321
66322 2005-10-14  Simon Josefsson  <jas@extundo.com>
66323
66324         * m4/arcfour.m4: New file.
66325
66326 2005-10-14  Simon Josefsson  <jas@extundo.com>
66327
66328         * lib/arcfour.h, lib/arcfour.c: New files.
66329
66330 2005-10-14  Roland McGrath  <roland@redhat.com>
66331
66332         Import from libc.  [BZ #1331]
66333         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
66334         macro argument.
66335         Reported by Matej Vela <vela@debian.org>.
66336
66337 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66338
66339         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
66340         include <wchar.h>; no longer needed.
66341
66342 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66343
66344         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
66345
66346 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
66347         and  Ulrich Drepper  <drepper@redhat.com>
66348
66349         Import from libc.
66350         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
66351         instead of inline stream orientation test and two separate
66352         function calls.  Pay no attention to USE_IN_LIBIO.
66353
66354 2005-10-13  Simon Josefsson  <jas@extundo.com>
66355
66356         * modules/gc-hmac-md5-tests: New file.
66357
66358         * tests/test-gc-hmac-sha1.c: New file.
66359
66360         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
66361
66362         * modules/gc-hmac-md5-tests: New file.
66363
66364         * tests/test-gc-md5.c: New file.
66365
66366         * modules/gc-md5-tests: New file.
66367
66368 2005-10-13  Simon Josefsson  <jas@extundo.com>
66369
66370         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
66371         Move memory allocation outside of loop.
66372
66373 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
66374
66375         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
66376         intermediate directory is in a read-only file system.  Problem
66377         reported by Eric Blake.
66378
66379 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
66380
66381         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
66382
66383 2005-10-12  Simon Josefsson  <jas@extundo.com>
66384
66385         * tests/test-hmac-sha1.c: New file.
66386
66387         * modules/hmac-sha1-tests: New file.
66388
66389         * modules/hmac-sha1: New file.
66390
66391 2005-10-12  Simon Josefsson  <jas@extundo.com>
66392
66393         * modules/gc-sha1: New file.
66394
66395 2005-10-12  Simon Josefsson  <jas@extundo.com>
66396
66397         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
66398
66399         * tests/test-gc-pbkdf2-sha1.c: New file.
66400
66401 2005-10-12  Simon Josefsson  <jas@extundo.com>
66402
66403         * modules/gc-md5, modules/gc-hmac-md5: New files.
66404
66405         * modules/gc (Files): Remove md5, memxor and hmac files.
66406
66407 2005-10-12  Simon Josefsson  <jas@extundo.com>
66408
66409         * m4/gc-pbkdf2-sha1.m4: New file.
66410
66411         * m4/gc-hmac-sha1.m4: New file.
66412
66413         * m4/gc-sha1: New file.
66414
66415         * m4/hmac-sha1.m4: New file.
66416
66417 2005-10-12  Simon Josefsson  <jas@extundo.com>
66418
66419         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
66420
66421         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
66422
66423 2005-10-12  Simon Josefsson  <jas@extundo.com>
66424
66425         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
66426         suggested by Bruno Haible <bruno@clisp.org>.
66427
66428 2005-10-12  Simon Josefsson  <jas@extundo.com>
66429
66430         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
66431
66432 2005-10-12  Simon Josefsson  <jas@extundo.com>
66433
66434         * lib/gc-pbkdf2-sha1.c: New file.
66435
66436         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
66437
66438 2005-10-12  Simon Josefsson  <jas@extundo.com>
66439
66440         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
66441
66442         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
66443
66444 2005-10-12  Simon Josefsson  <jas@extundo.com>
66445
66446         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
66447         GC_USE_HMAC_MD5, respectively.
66448
66449         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
66450         (gc_md5): Fix typo.
66451
66452         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
66453
66454         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
66455
66456         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
66457
66458 2005-10-12  Bruno Haible  <bruno@clisp.org>
66459
66460         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
66461         Reported by Stepan Kasal <kasal@ucw.cz>.
66462
66463 2005-10-11  Simon Josefsson  <jas@extundo.com>
66464
66465         * tests/test-crc.c: New file.
66466
66467         * modules/crc, modules/crc-tests: New files.
66468
66469 2005-10-11  Simon Josefsson  <jas@extundo.com>
66470
66471         * m4/crc.m4: New file.
66472
66473 2005-10-11  Simon Josefsson  <jas@extundo.com>
66474
66475         * lib/gc.h: Add gc_hash and gc_hash_buffer.
66476
66477         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
66478
66479         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
66480
66481 2005-10-11  Simon Josefsson  <jas@extundo.com>
66482
66483         * lib/crc.h, lib/crc.c: New files.
66484
66485         * lib/gc.h (gc_hash_buffer): Add doc.
66486
66487 2005-10-11  Bruno Haible  <bruno@clisp.org>
66488
66489         * modules/c-strcasestr: New file.
66490         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
66491
66492 2005-10-11  Bruno Haible  <bruno@clisp.org>
66493
66494         * modules/c-strcase: New file.
66495         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
66496
66497 2005-10-11  Bruno Haible  <bruno@clisp.org>
66498
66499         * lib/strcasecmp.c: Include limits.h.
66500         (strcasecmp): Avoid integer overflow on exotic platforms.
66501         * lib/strncasecmp.c: Include limits.h.
66502         (strncasecmp): Avoid integer overflow on exotic platforms.
66503         Reported by Paul Eggert.
66504
66505 2005-10-11  Bruno Haible  <bruno@clisp.org>
66506
66507         * lib/c-strcasestr.h: New file, from GNU gettext.
66508         * lib/c-strcasestr.c: New file, from GNU gettext.
66509
66510 2005-10-11  Bruno Haible  <bruno@clisp.org>
66511
66512         * lib/c-strcase.h: New file, from GNU gettext.
66513         * lib/c-strcasecmp.c: New file, from GNU gettext.
66514         * lib/c-strncasecmp.c: New file, from GNU gettext.
66515
66516 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66517
66518         * modules/mempcpy (License): GPL -> LGPL.
66519         * modules/strchrnul (License): Likewise.
66520         * modules/sysexits (License): Likewise.
66521
66522 2005-10-08  Simon Josefsson  <jas@extundo.com>
66523
66524         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
66525
66526 2005-10-07  Simon Josefsson  <jas@extundo.com>
66527
66528         * m4/memxor.m4: Remove gl_C_RESTRICT call.
66529
66530 2005-10-06  Simon Josefsson  <jas@extundo.com>
66531
66532         * tests/test-hmac-md5.c: New file.
66533
66534         * modules/hmac-md5-tests: New file.
66535
66536         * modules/hmac-md5: New file.
66537
66538 2005-10-06  Simon Josefsson  <jas@extundo.com>
66539
66540         * m4/hmac-md5.m4: New file.
66541
66542         * m4/memxor.m4: Require gl_C_RESTRICT.
66543
66544 2005-10-06  Simon Josefsson  <jas@extundo.com>
66545
66546         * lib/memxor.c (memxor): Avoid casts and warnings.
66547
66548 2005-10-06  Simon Josefsson  <jas@extundo.com>
66549
66550         * lib/hmac-md5.c: New file.
66551
66552         * lib/hmac.h: New file.
66553
66554 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66555
66556         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
66557         promotes to int, not unsigned int, to catch the AIX 5.3
66558         compiler bug.
66559
66560 2005-10-05  Simon Josefsson  <jas@extundo.com>
66561
66562         * modules/memxor: New file.
66563
66564         * modules/iconv (Files): Move config.rpath to havelib, it is used
66565         there.
66566
66567         * modules/havelib (Files): Add config.rpath.
66568
66569 2005-10-05  Simon Josefsson  <jas@extundo.com>
66570
66571         * m4/memxor.m4: New file.
66572
66573 2005-10-05  Simon Josefsson  <jas@extundo.com>
66574
66575         * lib/memxor.c (memxor): Fix compiler error.
66576
66577         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
66578         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
66579
66580         * lib/memxor.h, lib/memxor.c: New files.
66581
66582         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
66583         we assume all systems have it, suggested by Jim Meyering
66584         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
66585         any systems lack sys/socket.h; mingw32 is known to lack it, but we
66586         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
66587         same reasons.
66588
66589 2005-10-05  Simon Josefsson  <jas@extundo.com>
66590
66591         * config/srclist.txt: Add glibc bug 1423 for md5.h.
66592
66593 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
66594
66595         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
66596         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
66597         needed, since the source code now assumes these .h files.
66598
66599 2005-10-05  Derek Price  <derek@ximbiot.com>
66600
66601         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
66602
66603 2005-10-05  Bruno Haible  <bruno@clisp.org>
66604
66605         * modules/stdint (License): Change to LGPL.
66606
66607 2005-10-04  Simon Josefsson  <jas@extundo.com>
66608
66609         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
66610         D. Baushke" <mdb@gnu.org>.
66611
66612 2005-10-04  Bruno Haible  <bruno@clisp.org>
66613
66614         * lib/verify.h (verify_true): Provide alternative definition for C++.
66615
66616 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
66617
66618         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
66619         (SSIZE_MAX): New macro, if not already defined.
66620         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
66621         than 2 GiB.
66622
66623 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66624
66625         Sync from coreutils.
66626         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
66627         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
66628         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
66629         ULLONG_MAX doesn't work with 2.7.2.1.
66630
66631 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66632
66633         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
66634         From Ben Pfaff.
66635
66636         * modules/exclude (Depends-on): Depend on verify.
66637         * modules/strtoimax (Depends-on): Likewise.
66638         * modules/utimecmp (Depends-on): Likewise.
66639
66640 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66641
66642         * lib/exclude.c: Include verify.h.
66643         (verify): Remove.  All callers changed to use verify.h's version.
66644         * lib/strtoimax.c: Likewise.
66645         * lib/utimecmp.c: Likewis.e
66646
66647         Sync from coreutils.
66648         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
66649         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
66650         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
66651         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
66652         bother returning ENOSYS if settimeofday or stime fails; just let
66653         them return whatever errno they want to return.
66654         * lib/utimens.c: Include unistd.h, for dup2.
66655         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
66656         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
66657
66658 2005-10-02  Jim Meyering  <jim@meyering.net>
66659
66660         Sync from coreutils.
66661         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
66662         from glibc-2.2.5 that fails for read-only files.
66663
66664 2005-10-02  Jim Meyering  <jim@meyering.net>
66665
66666         Sync from coreutils.
66667         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
66668         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
66669         `#if HAVE_CONFIG_H'.
66670         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
66671         Remove AT_FDCWD test.
66672         Do not consume the fd unless successful.
66673         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
66674         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
66675         block, so that we don't even try to compile it if settimeofday is
66676         available.  This works around a compilation failure on OSF1 V5.1,
66677         due to stime requiring a `long int*' while tv_sec is `int'.
66678
66679 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
66680
66681         Sync from coreutils.
66682         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
66683         against `yes', rather than just testing for nonempty.
66684
66685 2005-10-01  Simon Josefsson  <jas@extundo.com>
66686
66687         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
66688         and Darwin.
66689
66690         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
66691         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
66692         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
66693         freeaddrinfo and gai_strerror are declared by the POSIX headers.
66694         Check if struct addrinfo is declared.
66695
66696 2005-10-01  Simon Josefsson  <jas@extundo.com>
66697
66698         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
66699         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
66700         AI_* and EAI_* definitions.  Protect function declarations.
66701
66702 2005-10-01  Jim Meyering  <jim@meyering.net>
66703
66704         Sync from coreutils.
66705
66706         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
66707         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
66708         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
66709         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
66710         in the inet and nsl libraries.  Required on Solaris 5.7.
66711
66712 2005-10-01  Jim Meyering  <jim@meyering.net>
66713
66714         Sync from coreutils.
66715         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
66716         in the inet and nsl libraries.  Required on Solaris 5.7.
66717
66718 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
66719
66720         * lib/getdelim.c (getdelim): Remove unused variables.
66721
66722 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
66723
66724         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
66725         so that the code works even with ancient cpp.  Portability problem
66726         with GCC 2.7.2.1 reported by Thomas M.Ott.
66727
66728 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
66729
66730         * modules/regex (Depends-on): Add strcase.
66731
66732         * modules/gethostname (Licence): Change from GPL to LGPL, since
66733         gethostname.c is a trivial implementation of a standard library
66734         function.
66735         * modules/poll (License): Change from GPL to LGPL, since it's
66736         derived from LGPL code.
66737
66738 2005-09-27  Jim Meyering  <jim@meyering.net>
66739
66740         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
66741         HAVE_CONFIG_H.
66742
66743         * lib/intprops.h (signed_type_or_expr__): Define.
66744         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
66745         for unsigned types.
66746
66747 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
66748
66749         * lib/verify.h (verify_expr): Remove, replacing with:
66750         (verify_true): New macro that returns true instead of void.
66751         (verify_type__): Remove.
66752         (verify): Use verify_true rather than verify_type__.
66753
66754 2005-09-26  Bruno Haible  <bruno@clisp.org>
66755
66756         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
66757         is necessary.
66758         (lib_SOURCES): Remove mbchar.c.
66759         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
66760         (Files): Add m4/mbrtowc.m4.
66761         * modules/mbiter: Likewise.
66762         * modules/mbuiter: Likewise.
66763
66764 2005-09-26  Bruno Haible  <bruno@clisp.org>
66765
66766         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
66767         compile mbchar.c if they are not both present.
66768         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
66769         * m4/mbiter.m4 (gl_MBITER): Likewise.
66770         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
66771         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
66772         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
66773
66774 2005-09-25  Jim Meyering  <jim@meyering.net>
66775
66776         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
66777         also uses socklen_t.
66778
66779 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
66780
66781         * lib/utimens.c (ENOSYS): Define if not already defined.
66782         (futimens): Support having a null PATH if the file descriptor
66783         is nonnegative.
66784
66785         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
66786         Remove.
66787         (__attribute): Define to empty unless GCC 3.1 or later.
66788         This works around a core dump on OpenBSD 3.4, which has GCC
66789         2.95.3, which dumps core when given __attribute__(()).  It also
66790         simplifies other tests, since we really don't want to bother with
66791         worrying about which ancient version of GCC supported what.
66792         Original problem reported by Yoann Vandoorselaere, with part of
66793         the fix suggested by Derek Price.
66794
66795 2005-09-24  Jim Meyering  <jim@meyering.net>
66796
66797         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
66798         so we can once again use a positive bitfield width of 1 -- now we
66799         don't have to explain why we were using a bitfield width of 2.
66800
66801 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
66802
66803         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
66804         and similarly for the other external symbols.  Problem reported
66805         by James Gallager.
66806
66807         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
66808         bug reported by Jim Meyering.
66809
66810         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
66811         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
66812         not needed, since socklen is a prerequisite module.
66813
66814 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
66815
66816         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
66817         Problem reported by Eric Blake.
66818         (getaddrinfo): Initialize se so that it's not garbage.
66819         Redo internal storage allocation so that it doesn't make unportable
66820         assumptions about alignment.
66821         Fix a memory leak.
66822
66823         * lib/utimens.c (futimens): Use futimesat if available.
66824         Prefer it to futimes since it doesn't have the futimes bug.
66825
66826         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
66827         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
66828         Instead, declare a function that returns a pointer to an array,
66829         and use verify_type__ to declare the size of the array.
66830         Problem and germ of a solution reported by Bruno Haible.
66831         (verify_type__): Use 2, not 1, for bitfield size, to avoid
66832         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
66833
66834 2005-09-23  Jim Meyering  <jim@meyering.net>
66835
66836         Sync from coreutils.
66837         Correct build failure (socklen_t not defined) on at least
66838         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
66839         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
66840
66841 2005-09-23  Jim Meyering  <jim@meyering.net>
66842
66843         * modules/getaddrinfo (Depends-on): Add socklen.
66844
66845 2005-09-23  Bruno Haible  <bruno@clisp.org>
66846
66847         * tests/test-verify.c: New file.
66848
66849 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66850
66851         Sync from coreutils.
66852
66853         * modules/argmatch (Depends-on): Add verify.
66854         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
66855         unistd-safer.
66856         * modules/save-cwd (Depends-on): Likewise.
66857
66858         * modules/openat (Files): Add lib/openat-die.c.
66859         (Depends-on): Remove error, exitfail.
66860         Add dirname.
66861
66862         * modules/verify: New file.
66863         * MODULES.html.sh (Diagnostics <assert.h>): New section,
66864         with "verify" module.
66865
66866 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66867
66868         Sync from coreutils.
66869
66870         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
66871         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
66872         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
66873         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
66874         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
66875         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
66876         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
66877         Don't bother checking for string.h, stdlib.h, unistd.h.
66878         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
66879         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
66880         module's job.
66881         * m4/jm-macros.m4 (gl_MACROS): Likewise.
66882         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
66883
66884         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
66885         (gl_GETDATE): Use it.
66886
66887         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
66888
66889 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66890
66891         Sync from coreutils.
66892
66893         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
66894         stat-time.h.
66895         * lib/argmatch.h: Include verify.h
66896         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
66897         (ARGMATCH_ASSERT): Remove; unused.
66898         * lib/canonicalize.c: Assume STDC_HEADERS.
66899         * lib/exclude.c: Include "strcase.h".
66900         * lib/regex_internal.h [!defined _LIBC]: Likewise.
66901         * lib/getusershell.c: Include stdio--.h rather than stdio.h
66902         and stdio-safer.h.
66903         (getusershell): Call fopen, not fopen_safer.
66904         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
66905         Do not include unistd-safer.h.
66906         (save_cwd): Don't call fd_safer; no longer needed
66907         now that we include fcntl--.h.
66908
66909         * lib/getdate.y (relative_time): New type.
66910         (RELATIVE_TIME_0): New constant.
66911         (parser_control): Use relative_time instead of doing it ourselves.
66912         (%union): Add new relative_time rel member.
66913         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
66914         Now typeless.
66915         (relunit, relunit_snumber): Now of type rel.
66916         (zone, rel, relunit, get_date): Adjust to above changes.
66917
66918         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
66919         Do not include unistd-safer.h.
66920         (getloadavg): Don't call fd_safer; no longer needed
66921         now that we include fcntl--.h.
66922
66923         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
66924         (make_dir_parents): Treat ENOSYS like EEXIST.
66925
66926         Improve quality of diagnostics on restore_cwd failure.
66927         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
66928         (make_dir_parents): Last arg is now int * (for errno), not bool *.
66929         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
66930         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
66931         each time through the loop.  Do not diagnose restore_cwd failure;
66932         that is the caller's job (and perhaps the caller does not care).
66933
66934         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
66935         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
66936         If the file already exists but is not a directory, don't bother
66937         to try to make its parents.
66938         Close potential file descriptor leak if we can't chdir("/") (!).
66939         Don't always return true if chdir($PWD) fails; return true only
66940         if the requested action was done successfully (except for the
66941         chdir($PWD)).
66942         Don't log final directory unless we actually made it.
66943         Refactor to avoid duplicate code to fix up permissions.
66944         Don't attempt to fix up parent permissions if chdir($PWD) fails.
66945
66946         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
66947         to make it a bit faster and (I hope) clearer.
66948         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
66949         Fix bug in formats like %2N.
66950
66951         * lib/verify.h: New file.
66952
66953 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66954
66955         Sync from coreutils.
66956         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
66957
66958 2005-09-22  Jim Meyering  <jim@meyering.net>
66959
66960         Sync from coreutils.
66961
66962         * m4/lstat.m4 (gl_FUNC_LSTAT):
66963         Use AC_LIBSOURCES to require lstat.c and lstat.h.
66964         Remove obsolete comment.
66965         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
66966         * m4/xstrtod.m4: Likewise.
66967
66968         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
66969
66970 2005-09-22  Jim Meyering  <jim@meyering.net>
66971
66972         Sync from coreutils.
66973
66974         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
66975
66976         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
66977         the .tm_year member, since otherwise gcc-4.0 would now warn about
66978         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
66979
66980         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
66981         order to avoid an unsuppressible warning from gcc on 64-bit systems.
66982
66983         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
66984         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
66985         when run in a time zone for which daylight savings time is in effect
66986         for the starting date.
66987
66988         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
66989         stop us from restricting permissions of just-created absolute-named
66990         directories.
66991         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
66992         to restore initial working directory.
66993         * lib/mkdir-p.c (make_dir_parents): New parameter:
66994         different_working_dir, to tell caller if/when we change the working
66995         directory and are unable to return to the initial one.
66996         * lib/mkdir-p.h (make_dir_parents): Update prototype.
66997         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
66998         `return false'.  This fixes a bug introduced on 2004-07-30.
66999
67000         * lib/openat.c (fdopendir): Be sure to close the supplied
67001         file descriptor before returning.  This makes our replacement
67002         implementation a little closer to Solaris's, where fdopendir
67003         ties the file descriptor to the returned DIR* pointer.
67004         * lib/openat.c (unlinkat): New function.
67005         * lib/openat.h (unlinkat): Add prototype.
67006         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
67007         (openat_restore_fail): Rename from openat_restore_die.
67008         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
67009
67010         Provide an alternative to exiting immediately upon save_cwd or
67011         restore_cwd failure.  Now, an application can arrange e.g.,
67012         to perform a longjump in that case.
67013         * lib/openat.c: Include dirname.h.
67014         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
67015         (rpl_openat, fdopendir, fstatat): Call openat_save_die
67016         and openat_restore_die rather than calling error directly.
67017         Don't include "error.h" or "exitfail.h"; they're no longer needed.
67018
67019         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
67020         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
67021         define.
67022
67023         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
67024         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
67025                             int utc, int nanoseconds);
67026         Background:
67027         date should not have to allocate a megabyte of virtual memory to
67028         handle a format argument like +%1048575T.  When implemented with
67029         strftime, it must allocate such a buffer, use strftime to fill it
67030         in, print it, then free it.
67031         With fprintftime, it simply prints everything and exits.
67032         With no need for memory allocation, that's one fewer way to fail.
67033         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
67034         optional field width, not before, so we accept %9:z, not %:9z.
67035         (my_strftime): Be sure to use L_('x') for literals.
67036
67037         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
67038         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
67039         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
67040         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
67041         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
67042         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
67043         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
67044         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
67045         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
67046         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
67047         * lib/xgethostname.c, lib/xreadlink.c:
67048         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
67049
67050         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
67051         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
67052         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
67053         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67054         and don't include <sys/file.h>).
67055
67056 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
67057
67058         Sync from coreutils.
67059
67060         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
67061         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
67062         [!LDAV_DONE]: Avoid unused variable warning.
67063
67064 2005-09-21  Bruno Haible  <bruno@clisp.org>
67065
67066         * lib/unicodeio.h (unicode_to_mb): New declaration.
67067
67068 2005-09-20  Derek Price  <derek@ximbiot.com>
67069
67070         * lib/getaddrinfo.c: Don't include <netdb.h> included from
67071         getaddrinfo.h.
67072
67073 2005-09-20  Bruno Haible  <bruno@clisp.org>
67074
67075         * gnulib-tool: Remove trailing slashes from the values specified for
67076         --source-base, --m4-base, --tests-base, --aux-dir.
67077         Suggested by Simon Josefsson <jas@extundo.com>.
67078
67079 2005-09-20  Bruno Haible  <bruno@clisp.org>
67080
67081         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
67082         func_modules_to_filelist, func_import, func_create_testdir): Make all
67083         sorting results locale-independent, so that gnulib-cache.m4 doesn't
67084         change when gnulib-tool is invoked in a different locale.
67085
67086 2005-09-19  Simon Josefsson  <jas@extundo.com>
67087
67088         * m4/socklen.m4: Fix typo.
67089
67090 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67091
67092         Use a consistent style for including <config.h>.
67093         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
67094         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
67095         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
67096         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
67097         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
67098         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
67099         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
67100         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
67101         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
67102         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
67103         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
67104         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
67105         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
67106         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
67107         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
67108         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
67109         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
67110         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
67111         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
67112         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
67113         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
67114         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
67115         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
67116         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
67117         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
67118         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
67119         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
67120         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
67121         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
67122         lib/xstrtoumax.c, lib/yesno.c:
67123         Standardize inclusion of config.h.
67124         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
67125         lib/inttostr.h:  Removed inclusion of config.h from header files.
67126         * lib/inttostr.c:  Adjusted in-tree users.
67127         * lib/timespec.h: Remove superfluous warning to include config.h.
67128         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
67129         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
67130         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
67131         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
67132         config.h with HAVE_CONFIG_H.
67133
67134 2005-09-19  Jim Meyering  <jim@meyering.net>
67135
67136         * modules/pathmax (License): Change to LGPL.
67137
67138 2005-09-19  Derek Price  <derek@ximbiot.com>
67139
67140         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
67141
67142 2005-09-19  Bruno Haible  <bruno@clisp.org>
67143
67144         * gnulib-tool (import): Provide default for --tests-base.
67145
67146 2005-09-19  Bruno Haible  <bruno@clisp.org>
67147
67148         * doc/quote.texi: New file, extracted from gnulib.texi.
67149         * doc/ctime.texi: New file, extracted from gnulib.texi.
67150         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
67151         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
67152         * doc/gnulib.texi: Include them.
67153
67154 2005-09-18  Bruno Haible  <bruno@clisp.org>
67155
67156         Portability fix.
67157         * gnulib-tool (func_readlink): New function.
67158         (func_ln_if_changed): Use it.
67159
67160 2005-09-18  Bruno Haible  <bruno@clisp.org>
67161
67162         * gnulib-tool: Support --with-tests also with --import.
67163         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
67164         (func_import): Use variables $testsbase and $inctests. Emit a
67165         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
67166         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
67167         SUBDIRS += $testsdir.
67168         (func_create_testdir): Update.
67169
67170 2005-09-18  Bruno Haible  <bruno@clisp.org>
67171
67172         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
67173         instead of $dry_run.
67174         (func_cp_if_changed, func_mv_if_changed): Remove functions.
67175         (func_ln_if_changed): Don't handle dry-run here.
67176         (func_import): In dry-run mode, detect more precisely which actions
67177         would be performed, and don't use "...ing" verbs.
67178
67179 2005-09-18  Bruno Haible  <bruno@clisp.org>
67180
67181         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
67182         (func_import): Use join on two temporary files instead of three nested
67183         loops, in order to determine which files are new or old.
67184
67185 2005-09-18  Bruno Haible  <bruno@clisp.org>
67186
67187         * gnulib-tool (func_import): Comment out code that spits out the
67188         new files with --dry-run.
67189
67190 2005-09-18  Bruno Haible  <bruno@clisp.org>
67191
67192         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
67193
67194 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67195
67196         * lib/stat-time.h: New file.
67197         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
67198         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
67199         in a different way.
67200         (timespec_cmp): New function.
67201         * lib/utimecmp.c: Include stat-time.h.
67202         (SYSCALL_RESOLUTION): Depend on whether various struct stat
67203         members exist, not on the obsolescent ST_MTIM_NSEC.
67204         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
67205
67206 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67207
67208         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
67209
67210 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67211
67212         * MODULES.html.sh (File system functions): Add stat-time.
67213         * modules/stat-time: New file.
67214         * modules/timespec (Files): Remove m4/st_mtim.m4; this
67215         is now done in a different way, by the stat-time module.
67216         * modules/utimecmp (Depends-on): Add stat-time.
67217
67218 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67219
67220         * m4/st_mtim.m4: Remove.  Superseded by...
67221         * m4/stat-time.m4: New file.
67222         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
67223         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
67224
67225 2005-09-15  Derek Price  <derek@ximbiot.com>
67226
67227         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
67228
67229 2005-09-15  Derek Price  <derek@ximbiot.com>
67230
67231         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
67232         * lib/regex_internal.c: Ditto, using this...
67233         (__GNUC_PREREQ): ...new macro.
67234         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
67235         using...
67236         (__GNUC_PREREQ): ...this new macro.
67237
67238         * lib/strstr.h: Include string.h. Define strstr as a macro here.
67239
67240 2005-09-15  Derek Price  <derek@ximbiot.com>
67241             Paul Eggert  <eggert@cs.ucla.edu>
67242
67243         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
67244         changes, consolidating in...
67245         * lib/regex_internal.h: ...this file.
67246
67247 2005-09-13  Jim Meyering  <jim@meyering.net>
67248
67249         * lib/canon-host.c: Filter through gnu indent and reword comments
67250         slightly.
67251         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
67252
67253 2005-09-13  Derek Price  <derek@ximbiot.com>
67254
67255         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
67256         failure.
67257         Reported by Jim Meyering  <jim@meyering.net>.
67258
67259 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67260
67261         * lib/base64.c: Typo.
67262         (base64_encode): Put b64str in initialized data section.
67263
67264 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
67265
67266         Merge glibc and coreutils changes into gnulib, plus a few
67267         extra fixes.
67268         * lib/md5.c: Use #error rather than a string.
67269         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
67270         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
67271         (__attribute__): Define to empty for non recent-GCC.
67272         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
67273         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
67274         Renamed from their non-__ counterparts, with new macros replacing
67275         them if not _LIBC.  Add __THROW attribute.
67276         (rol): Remove.
67277         (struct md5_ctx): Align buffer if using GCC.
67278         * lib/sha1.h (struct sha1_ctx): Likewise.
67279         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
67280         The old name was backwards.
67281         (NOTSWAP): Remove; not used.
67282         (rol): New macro, moved here from md5.h.
67283         (sha1_process_block): Remove a FIXME that doesn't make sense.
67284
67285 2005-09-12  Derek Price  <derek@ximbiot.com>
67286
67287         Return usable errors from canon-host.
67288         * lib/canon-host.h: New file.
67289         * lib/canon-host.c (canon_host): Wrap...
67290         (canon_host_r): ...this new function, which now relies exclusively on
67291         getaddrinfo.
67292         (ch_strerror): New function.
67293         (last_cherror): New global.
67294         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
67295         interface.
67296         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
67297         void *.
67298         (freeaddrinfo): Free ai->ai_canonname when set.
67299
67300 2005-09-12  Derek Price  <derek@ximbiot.com>
67301
67302         Make canon-host require getaddrinfo.
67303         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
67304         AC_LIBSOURCE canon-host.h.  Call...
67305         (gl_PREREQ_CANON_HOST): ...this new function, which requires
67306         gl_GETADDRINFO.
67307         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
67308
67309 2005-09-12  Derek Price  <derek@ximbiot.com>
67310
67311         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
67312         LGPL.
67313         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
67314
67315 2005-09-12  Derek Price  <derek@ximbiot.com>
67316
67317         * lib/gai_strerror.c: Include config.h when available.  Include
67318         getaddrinfo.h before other headers to test interface.
67319         Reported by Larry Jones <lawrence.jones@ugs.com>.
67320
67321 2005-09-12  Derek Price  <derek@ximbiot.com>
67322             Paul Eggert  <eggert@cs.ucla.edu>
67323
67324         * modules/glob (Files): Add glob-libc.h.
67325
67326 2005-09-12  Derek Price  <derek@ximbiot.com>
67327             Paul Eggert  <eggert@cs.ucla.edu>
67328
67329         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
67330         glob_.h, glob-libc.h.
67331         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
67332
67333 2005-09-12  Derek Price  <derek@ximbiot.com>
67334             Paul Eggert  <eggert@cs.ucla.edu>
67335
67336         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
67337         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
67338         protecting things that should be done only in gnulib contexts.
67339         * lib/glob_.h: New file, containing only the glob things needed for
67340         gnulib.
67341         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
67342         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
67343         (glob, globfree, glob_pattern_p): Now defined simply in terms of
67344         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
67345         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
67346         and to respect the namespace rules better.
67347
67348 2005-09-08  Simon Josefsson  <jas@extundo.com>
67349
67350         * modules/socklen: New file.
67351
67352 2005-09-08  Simon Josefsson  <jas@extundo.com>
67353
67354         * m4/socklen.m4: New file.
67355
67356 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67357
67358         * modules/utimens (Files): Add m4/utimbuf.m4, since
67359         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
67360         Reported by Sergey Poznyakoff.
67361
67362 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67363
67364         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
67365         definitions, since that's the preferred style in glibc.
67366         Fix a minor spacing issue, and update copyright notice to match
67367         glibc's.
67368
67369 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67370
67371         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
67372
67373 2005-09-06  Simon Josefsson  <jas@extundo.com>
67374
67375         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
67376         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
67377
67378 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67379
67380         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
67381         warning.
67382
67383 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67384
67385         * config/srclist.txt: Add glibc bug 1302.
67386
67387 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
67388
67389         Change bitset word type from unsigned int to unsigned long int,
67390         as this has better performance on typical 64-bit hosts.
67391         Port bitset code to hosts with unusual word sizes.
67392         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
67393         (build_collating_symbol):
67394         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
67395         argument is a bitset.  This is merely a style issue, but it makes
67396         it clearer that an entire array is expected.
67397         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
67398         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
67399         Port to the case where bitset_word is not the same as unsigned int.
67400         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67401         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
67402         Likewise.
67403         * lib/regexec.c (check_dst_limits_calc_pos_1,
67404         check_subexp_matching_top):
67405         (build_trtable, group_nodes_into_DFAstates):
67406         Likewise.
67407         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
67408         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
67409         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
67410         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
67411         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
67412         * lib/regcomp.c (optimize_subexps, lower_subexp):
67413         Work even if bitset_word has holes in its bitwise representation.
67414         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
67415         * lib/regexec.c (check_dst_limits_calc_pos_1,
67416         check_subexp_matching_top):
67417         Likewise.
67418         * lib/regex_internal.c (re_string_reconstruct):
67419         Don't assume UCHAR_MAX == 255.
67420         * lib/regex_internal.h (bitset_set_all): Likewise.
67421         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
67422         All uses changed.
67423         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
67424         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
67425         All uses changed.
67426         (BITSET_WORD_MAX): New macro.
67427         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
67428         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
67429         (bitset_empty, bitset_copy):
67430         Prefer sizeof (bitset) to multiplying it out ourselves.
67431         (bitset_not_merge): Remove; unused.
67432         (bitset_contain): Return bool, not unsigned int with one bit on.
67433         All callers changed.
67434         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
67435         alignment than re_node_set; do this by defining a new internal
67436         type struct dests_alloc and using it to allocate memory.
67437
67438 2005-09-05  Bruno Haible  <bruno@clisp.org>
67439
67440         * gnulib-tool (func_import): Fix comparison in handling of symbolic
67441         links.
67442
67443 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
67444
67445         * modules/size_max (Makefile.am): Add size_max.h
67446
67447 2005-09-04  Derek Price  <derek@ximbiot.com>
67448
67449         * gnulib-tool (func_import): Fix reversed $symbolic logic.
67450
67451 2005-09-03  Simon Josefsson  <jas@extundo.com>
67452
67453         * gnulib-tool: Fix typo.
67454
67455 2005-09-03  Simon Josefsson  <jas@extundo.com>
67456
67457         * config/srclist.txt: Add glibc bug 1293.
67458
67459 2005-09-03  Derek Price  <derek@ximbiot.com>
67460
67461         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
67462         From Larry Jones <lawrence.jones@ugs.com>.
67463
67464 2005-09-02  Simon Josefsson  <jas@extundo.com>
67465
67466         * modules/socklen: New file.
67467
67468 2005-09-02  Simon Josefsson  <jas@extundo.com>
67469
67470         * modules/havelib: New module.
67471
67472         * modules/gettext, modules/iconv, modules/lock, modules/readline:
67473         Use havelib.
67474
67475 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67476
67477         Check for arithmetic overflow when calculating sizes, to prevent
67478         some buffer-overflow issues.  These patches are conservative, in the
67479         sense that when I couldn't determine whether an overflow was possible,
67480         I inserted a run-time check.
67481         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
67482         macros.
67483         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
67484         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
67485         (re_xnrealloc, re_x2nrealloc): New inline functions.
67486         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
67487         parse_bracket_exp):
67488         (build_equiv_class, build_charclass): Check for arithmetic overflow
67489         in size expression calculations.
67490         * lib/regex_internal.c (re_string_realloc_buffers):
67491         (build_wcs_upper_buffer, re_node_set_add_intersect):
67492         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
67493         (re_dfa_add_node, register_state): Likewise.
67494         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
67495         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
67496         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
67497         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
67498
67499 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67500
67501         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
67502         m4/ulonglong.m4.  Problem reported by Martin Lambers.
67503
67504 2005-09-02  Bruno Haible  <bruno@clisp.org>
67505
67506         Support for lib vs. lib64 distinction on biarch platforms.
67507         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
67508         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
67509         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
67510
67511 2005-09-02  Bruno Haible  <bruno@clisp.org>
67512
67513         * gnulib-tool (import): In the other first-use case, provide defaults
67514         as well.
67515
67516 2005-09-02  Bruno Haible  <bruno@clisp.org>
67517
67518         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
67519         patches not yet found in the latest gettext release.
67520
67521 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67522
67523         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
67524         to avoid a collision with bits/local_lim.h in glibc.
67525         All uses changed.  Problem reported by Dmitry V. Levin in
67526         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
67527
67528         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
67529         bugs in int versus size_t comparisons.
67530         (re_string_context_at): Fix bug where the code assumed that
67531         Idx is signed.
67532
67533         Use bool where appropriate.
67534         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
67535         All callers changed.
67536         (calc_eclosure_iter): Likewise, for ROOT arg.
67537         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
67538         (build_charclass_op): Likewise, for NON_MATCH arg.
67539         * lib/regex_internal.c (re_string_allocate, re_string_construct):
67540         (re_string_construct_common): Likewise, for ICASE arg.
67541         * lib/regexec.c (re_search_2_stub, re_search_stub):
67542         Likewise, for RET_LEN arg.
67543         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
67544         (set_regs): Likewise, for FL_BACKTRACK arg.
67545         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
67546         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
67547         (calc_eclosure_iter, parse_bracket_exp):
67548         Use bool for internal variables that are booleans.
67549         * lib/regexec.c (re_search_internal, check_matching,
67550         proceed_next_node):
67551         (set_regs, build_sifted_states, sift_states_bkref):
67552         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
67553         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
67554         (find_collation_sequence_value):
67555         Likewise.
67556         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
67557         (re_node_set_compare):
67558         Return bool, not int. All callers changed.
67559         * lib/regexec.c (check_halt_node_context, check_dst_limits):
67560         (build_trtable, check_node_accept): Likewise.
67561         * lib/regex_internal.h: Include stdbool.h.
67562
67563         Fix bugs uncovered when converting to bool.
67564         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
67565         failure instead of charging ahead blindly.
67566         * lib/regex_internal.c (register_state): Likewise.
67567         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
67568         for freeing internal storage.
67569         (group_nodes_into_DFA_states): Use unsigned int, not int, for
67570         bitset pieces used as boolean, to avoid undefined behavior
67571         on hosts that do int overflow checking.
67572
67573 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67574
67575         * config/srclist.txt: Add glibc bugs 1285-1287.
67576
67577 2005-09-01  Jim Meyering  <jim@meyering.net>
67578
67579         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
67580         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
67581         Require gl_STAT_MACROS, too.
67582
67583 2005-09-01  Bruno Haible  <bruno@clisp.org>
67584
67585         * gnulib-tool (import): In the first-use case, provide defaults.
67586
67587 2005-09-01  Bruno Haible  <bruno@clisp.org>
67588
67589         * gnulib-tool (func_import): Remove the .tmp files.
67590
67591 2005-09-01  Bruno Haible  <bruno@clisp.org>
67592
67593         * gnulib-tool (func_import): Fix handling of symbolic links.
67594
67595 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67596
67597         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
67598         old glibc regex code mishandles strings longer than 2**31 bytes.
67599         This patch fixes this when the regex code is used in gnulib
67600         (i.e., outside glibc).
67601
67602         This patch should not affect the use of the regex code inside
67603         glibc.  No doubt this problem also needs to be handled for glibc
67604         as well, but the result will be an incompatible change to the
67605         glibc ABI, and the old ABI will have to be supported too.  That
67606         can be the the subject for another patch.
67607
67608         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
67609         governing whether the rest of this patch is active.  By default,
67610         the macro is disabled and the patch has no effect.
67611         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
67612         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
67613         (struct re_pattern_buffer, re_search, re_search_2, re_match):
67614         (re_match_2, re_set_registers): Use the new types.
67615         * lib/regex_internal.h (Idx, re_hashval_t): New types.
67616         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
67617         New macros.
67618         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
67619         (re_string_context_at, bin_tree_t, re_dfastate_t):
67620         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
67621         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
67622         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
67623         (re_string_char_size_at, re_string_wchar_at):
67624         (re_string_elem_size_at):
67625         Use the new types and macros to port to 64-bit hosts.
67626         Use unsigned types for internal values, so that the code
67627         mostly works even for arrays larger than SSIZE_MAX.
67628         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
67629         (search_duplicated_node, calc_eclosure_iter, fetch_number):
67630         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
67631         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
67632         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
67633         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
67634         (calc_inveclosure, parse_dup_op, build_range_exp):
67635         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
67636         (fetch_number, create_token_tree, mark_opt_subexp):
67637         Likewise.
67638         * lib/regex_internal.c (re_string_construct_common,
67639         create_ci_newstate):
67640         (create_cd_newstate, re_string_allocate, re_string_construct):
67641         (re_string_realloc_buffers, build_wcs_upper_buffer):
67642         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
67643         (re_string_reconstruct, re_string_peek_byte_case):
67644         (re_string_fetch_byte_case, re_string_context_at):
67645         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
67646         (re_node_set_init_copy, re_node_set_add_intersect):
67647         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67648         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67649         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
67650         (re_acquire_state, re_acquire_state_context, register_state):
67651         Likewise.
67652         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
67653         search_cur_bkref_entry):
67654         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
67655         (re_search_internal, re_search_2_stub, re_search_stub)
67656         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
67657         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
67658         (update_cur_sifted_state, check_dst_limits):
67659         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
67660         (check_subexp_limits, sift_states_bkref, merge_state_array):
67661         (check_subexp_matching_top, get_subexp, get_subexp_sub):
67662         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
67663         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
67664         (expand_bkref_cache, check_node_accept_bytes):
67665         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
67666         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
67667         (acquire_init_state_context, check_halt_node_context):
67668         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
67669         (sift_states_backward, clean_state_log_if_needed):
67670         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
67671         (find_recover_state, transit_state_sb, transit_state_mb):
67672         (transit_state_bkref, build_trtable, match_ctx_clean):
67673         Likewise.
67674         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
67675         to work around an assumption that REG_MISSING is negative.
67676
67677         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
67678         (seek_collating_symbol_entry) [defined _LIBC]:
67679         (lookup_collation_sequence_value) [defined _LIBC]:
67680         (build_range_exp, build_collating_symbol) [defined _LIBC]:
67681         Use prototypes rather than old-style function definitions.
67682         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
67683         (transit_state_sb) [0]:
67684         (find_collation_sequence_value) [defined _LIBC]: Likewise.
67685
67686         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
67687         rm_eo.
67688
67689         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
67690         (optimize_subexps, lower_subexp):
67691         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
67692         since the signed shift might overflow.  Use 1u<<31 instead.
67693         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67694         Likewise.
67695         * lib/regexec.c (check_dst_limits_calc_pos_1,
67696         check_subexp_matching_top): Likewise.
67697
67698         * lib/regcomp.c (optimize_subexps, lower_subexp):
67699         Use CHAR_BIT rather than 8, for clarity.
67700         * lib/regexec.c (check_dst_limits_calc_pos_1):
67701         (check_subexp_matching_top): Likewise.
67702         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
67703         have to worry about portability issues when shifting it left.
67704         Remove no-longer-needed test for table_size > 0.
67705         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
67706         in a word, as the resulting behavior is undefined.
67707         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
67708         in one case, a <= should have been an <, and in another case the
67709         whole test was missing.
67710         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
67711         the standard name CHAR_BIT.
67712         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
67713         this is not true on one's complement and signed-magnitude hosts.
67714
67715         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
67716         next_last_offset.
67717         (struct re_dfa_t): Remove unused member states_alloc.
67718         * lib/regcomp.c (init_dfa): Don't initialize unused members.
67719
67720 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67721
67722         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
67723         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
67724         and large-file glibc and in 32-bit large-file Solaris.
67725
67726 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67727
67728         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
67729         lengths fit in regoff_t; this isn't true if regoff_t is the same
67730         width as size_t.
67731         * lib/regex.c (re_search_internal): 5th arg is LAST_START
67732         (= START + RANGE) instead of RANGE.  This avoids overflow
67733         problems when regoff_t is the same width as size_t.
67734         All callers changed.
67735         (re_search_2_stub): Check for overflow when adding the
67736         sizes of the two strings.
67737         (re_search_stub): Check for overflow when adding START
67738         to RANGE; if it occurs, substitute the extreme value.
67739
67740 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67741
67742         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
67743
67744 2005-08-31  Jim Meyering  <jim@meyering.net>
67745
67746         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
67747         a pointer-to-const.
67748         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
67749         (register_state): Likewise.
67750         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
67751         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
67752         (group_nodes_into_DFAstates): Likewise.
67753
67754 2005-08-31  Jim Meyering  <jim@meyering.net>
67755
67756         * check-module: Add a FIXME comment.
67757
67758 2005-08-31  Eric Blake  <ebb9@byu.net>
67759
67760         * modules/unistd-safer (Files): Add unistd--.h.
67761         * modules/stdio-safer (Files): Add stdio--.h.
67762
67763 2005-08-31  Derek Price  <derek@ximbiot.com>
67764
67765         * lib/getdelim.c (getdelim): Return EOF on EOF.
67766         Reported by Larry Jones <lawrence.jones@ugs.com>.
67767
67768 2005-08-31  Bruno Haible  <bruno@clisp.org>
67769
67770         Avoid unnecessary diffs in the generated lib/Makefile.am.
67771         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
67772         the generated files.
67773         (func_import): Don't set cmd.
67774
67775 2005-08-31  Bruno Haible  <bruno@clisp.org>
67776
67777         * lib/strstr.c: Include <stddef.h>, for NULL.
67778         * lib/strcasestr.c: Likewise.
67779         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67780
67781 2005-08-31  Bruno Haible  <bruno@clisp.org>
67782
67783         * gnulib-tool: New option --macro-prefix.
67784         (func_import): Use macro_prefix.
67785         (import): Handle option --macro-prefix.
67786
67787 2005-08-31  Bruno Haible  <bruno@clisp.org>
67788
67789         * gnulib-tool (import): Rename most ac_* variables to cached_*.
67790         Also use new variables cached_lgpl, cached_libtool.
67791
67792 2005-08-31  Bruno Haible  <bruno@clisp.org>
67793
67794         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
67795         always instantiating them.
67796
67797 2005-08-31  Bruno Haible  <bruno@clisp.org>
67798
67799         * gnulib-tool (func_import): Read the previous cached settings
67800         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
67801         earlier added by gnulib but are now dropped. Warn when a gnulib file
67802         overwrites a non-gnulib file.
67803
67804 2005-08-31  Bruno Haible  <bruno@clisp.org>
67805
67806         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
67807         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
67808         projects that don't keep autogenerated files in CVS. Put into
67809         actioncmd only the specified modules, not the transitive closure.
67810
67811 2005-08-31  Bruno Haible  <bruno@clisp.org>
67812
67813         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
67814         Create directories that shall be filled.
67815         (import): Don't look for gl_* macros in configure.ac. Recurse across
67816         all directories containing a gnulib-cache.m4 files, if meaningful.
67817
67818 2005-08-31  Bruno Haible  <bruno@clisp.org>
67819
67820         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
67821         (import): Set seen_libtool when we see gl_LIBTOOL.
67822
67823 2005-08-31  Bruno Haible  <bruno@clisp.org>
67824
67825         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
67826         declaration macro definitions from generated gnulib.m4.
67827
67828 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
67829
67830         * lib/iconvme.h: Add prototype for iconv_alloc.
67831
67832 2005-08-29  Simon Josefsson  <jas@extundo.com>
67833
67834         * lib/iconvme.c: Fix errno.
67835
67836 2005-08-29  Bruno Haible  <bruno@clisp.org>
67837
67838         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
67839         that it works when the directory contains spaces.
67840
67841 2005-08-29  Bruno Haible  <bruno@clisp.org>
67842
67843         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
67844
67845 2005-08-29  Bruno Haible  <bruno@clisp.org>
67846
67847         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
67848         Emit more advice.
67849
67850 2005-08-29  Bruno Haible  <bruno@clisp.org>
67851         and Stepan Kasal  <kasal@ucw.cz>
67852
67853         * check-module: If more parameters are given, check each of them
67854         separately; add more exceptions, as noted by Jim Meyering.
67855         (check_module): New procedure.
67856         (%exempt_header): Now contains all exceptions.
67857
67858 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
67859
67860         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
67861
67862 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
67863
67864         * lib/iconvme.c: Split iconv_string into iconv_alloc.
67865
67866 2005-08-28  Bruno Haible  <bruno@clisp.org>
67867
67868         * m4/gnulib-tool.m4: New file.
67869
67870 2005-08-27  Jim Meyering  <jim@meyering.net>
67871
67872         * modules/unistd-safer (Files): Add pipe-safer.c.
67873         * modules/fcntl-safer (Files): Add creat-safer.c.
67874
67875 2005-08-27  Jim Meyering  <jim@meyering.net>
67876
67877         * m4/stdlib-safer.m4: New file.  From coreutils.
67878         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
67879         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
67880         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
67881         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
67882         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
67883
67884 2005-08-27  Jim Meyering  <jim@meyering.net>
67885
67886         * lib/fopen-safer.c: Merge minor changes from coreutils.
67887         * lib/dup-safer.c: Likewise.
67888         * lib/fd-safer.c: Likewise.
67889
67890         Merge from coreutils.
67891         * lib/stdio--.h: New file.
67892         * lib/stdlib--.h: New file.
67893         * lib/mkstemp-safer.c: New file.
67894
67895         GNU tar needs these.
67896         * lib/pipe-safer.c: New file.
67897         * lib/creat-safer.c: New file.
67898         * lib/fcntl--.h (creat): Define to creat_safer.
67899         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
67900         * lib/unistd--.h (pipe): Define to pipe_safer.
67901         * lib/unistd-safer.h: Declare pipe_safer.
67902
67903 2005-08-26  Simon Josefsson  <jas@extundo.com>
67904
67905         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
67906         Haible <bruno@clisp.org>.
67907
67908 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
67909
67910         * lib/regex_internal.h: Remove all references to
67911         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
67912         or better.
67913         (bitset_not, bitset_merge, bitset_not_merge):
67914         (bitset_mask, re_string_allocate, re_string_construct):
67915         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
67916         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
67917         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
67918         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
67919         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67920         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67921         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
67922         (re_acquire_state_context):
67923         Remove unnecessary forward decls.
67924         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
67925         Put __attribute at function definition,
67926         now that the function decl has been removed.
67927         * lib/regex_internal.c (re_string_peek_byte_case):
67928         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
67929         Likewise.
67930
67931 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
67932
67933         * m4/regex.m4: Add AC_PREREQ(2.50).
67934         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
67935
67936 2005-08-25  Simon Josefsson  <jas@extundo.com>
67937
67938         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
67939         __fsetlocking.
67940
67941 2005-08-25  Simon Josefsson  <jas@extundo.com>
67942
67943         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
67944         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
67945         GLIBC specific code.
67946
67947 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67948
67949         Make regex safe for g++.  This fixes one real bug (an "err"
67950         that should have been "*err").  g++ problem reported by
67951         Sam Steingold.
67952         * lib/regex_internal.h (re_calloc): New macro, consistent with
67953         re_malloc etc.  All callers of calloc changed to use re_calloc.
67954         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
67955         not int.  All callers changed.
67956         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
67957         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
67958         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
67959         (find_recover_state): Change "err" to "*err"; this fixes what
67960         appears to be a real bug.
67961         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
67962         versus int.
67963
67964 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67965
67966         * modules/regex (Depends-on): Add malloc, since the code
67967         assumes that !malloc(0) means failure.
67968
67969 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67970
67971         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
67972
67973         alloca modernization/simplification for regex.
67974         * lib/regex.c: Remove portability cruft for alloca.  This no longer
67975         needs to be at the start of the file, and can be moved into
67976         regex_internal.h and simplified.
67977         * lib/regex_internal.h: Include <alloca.h>.
67978         (__libc_use_alloca) [!defined _LIBC]: New macro.
67979         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
67980         now works outside glibc.
67981
67982 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67983
67984         * config/srclist.txt: Add glibc bugs 1241, 1245.
67985
67986 2005-08-25  Jim Meyering  <jim@meyering.net>
67987
67988         * lib/open-safer.c: Include <config.h>.
67989         Otherwise, we'd lose LARGEFILE support in any file using
67990         e.g. "fcntl--.h"
67991
67992 2005-08-25  Bruno Haible  <bruno@clisp.org>
67993
67994         * m4/minmax.m4: Require autoconf 2.52.
67995         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
67996         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
67997         alternatives of translit over the alphabet.
67998         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
67999
68000 2005-08-24  Simon Josefsson  <jas@extundo.com>
68001
68002         * tests/test-getpass.c: New file.
68003
68004 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68005
68006         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
68007         for GNU regex features.
68008
68009 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68010
68011         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
68012         * lib/regex.h (regerror): Likewise.
68013
68014         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
68015         requires this.  (The code never needed it.)
68016
68017         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
68018         All uses of recently-renamed identifiers changed to use the new,
68019         POSIX-compliant names.  The code will build and run just fine
68020         without these changes, but it's better to eat our own dog food
68021         and use the standard-conforming names.
68022
68023         * lib/regex.h: Fix a multitude of POSIX name space violations.
68024         These changes have an effect only for programs that define
68025         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
68026         do not change anything for programs compiled in the normal way.
68027         Also, there is no effect on the ABI.
68028
68029         (_REGEX_SOURCE): New macro.
68030         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
68031         defined and _GNU_SOURCE is not; this fixes a name space violation.
68032
68033         Rename the following macros to obey POSIX requirements.
68034         The old names are still visible as macros if _REGEX_SOURCE is defined.
68035         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
68036         RE_BACKSLASH_ESCAPE_IN_LISTS.
68037         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
68038         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
68039         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
68040         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
68041         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
68042         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
68043         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
68044         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
68045         (REG_INTERVALS): renamed from RE_INTERVALS.
68046         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
68047         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
68048         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
68049         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
68050         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
68051         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
68052         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
68053         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
68054         RE_UNMATCHED_RIGHT_PAREN_ORD.
68055         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
68056         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
68057         (REG_DEBUG): renamed from RE_DEBUG.
68058         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
68059         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
68060         unusual, since we can't clash with the POSIX REG_ICASE.
68061         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
68062         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
68063         (REG_NO_SUB): renamed from RE_NO_SUB.
68064         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
68065         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
68066         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
68067         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
68068         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
68069         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
68070         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
68071         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
68072         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
68073         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
68074         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
68075         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
68076         RE_SYNTAX_POSIX_MINIMAL_BASIC.
68077         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
68078         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
68079         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
68080         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
68081         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
68082         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
68083         (REG_FIXED): Renamed from REGS_FIXED.
68084         (REG_NREGS): Renamed from RE_NREGS.
68085
68086         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
68087         of other REG_* macros, since POSIX says the user is allowed to
68088         #undef these macros selectively.
68089
68090         (reg_errcode_t): Update comment stating what other tables need
68091         to be consistent.
68092
68093         Rename the following enum values to obey POSIX requirements.
68094         The old names are still visible as macros.
68095         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
68096         is not defined, since GNU is supposed to be a superset of POSIX as
68097         much as possible, and since we want reg_errcode_t to be a signed
68098         type for implementation consistency.
68099         (_REG_NOERROR): Renamed from REG_NOERROR.
68100         (_REG_NOMATCH): Renamed from REG_NOMATCH.
68101         (_REG_BADPAT): Renamed from REG_BADPAT.
68102         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
68103         (_REG_ECTYPE): Renamed from REG_ECTYPE.
68104         (_REG_EESCAPE): Renamed from REG_EESCAPE.
68105         (_REG_ESUBREG): Renamed from REG_ESUBREG.
68106         (_REG_EBRACK): Renamed from REG_EBRACK.
68107         (_REG_EPAREN): Renamed from REG_EPAREN.
68108         (_REG_EBRACE): Renamed from REG_EBRACE.
68109         (_REG_BADBR): Renamed from REG_BADBR.
68110         (_REG_ERANGE): Renamed from REG_ERANGE.
68111         (_REG_ESPACE): Renamed from REG_ESPACE.
68112         (_REG_BADRPT): Renamed from REG_BADRPT.
68113         (_REG_EEND): Renamed from REG_EEND.
68114         (_REG_ESIZE): Renamed from REG_ESIZE.
68115         (_REG_ERPAREN): Renamed from REG_ERPAREN.
68116         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
68117         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
68118         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
68119         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
68120
68121         (_REG_RE_NAME, _REG_RM_NAME): New macros.
68122         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
68123         changed.  But support the old name if the new one is not defined
68124         and if _REGEX_SOURCE.
68125
68126         Change the following member names in struct re_pattern_buffer.
68127         The old names are still supported if !_REGEX_SOURCE.
68128         The new names are always supported, regardless of _REGEX_SOURCE.
68129         (re_buffer): Renamed from buffer.
68130         (re_allocated): Renamed from allocated.
68131         (re_used): Renamed from used.
68132         (re_syntax): Renamed from syntax.
68133         (re_fastmap): Renamed from fastmap.
68134         (re_translate): Renamed from translate.
68135         (re_can_be_null): Renamed from can_be_null.
68136         (re_regs_allocated): Renamed from regs_allocated.
68137         (re_fastmap_accurate): Renamed from fastmap_accurate.
68138         (re_no_sub): Renamed from no_sub.
68139         (re_not_bol): Renamed from not_bol.
68140         (re_not_eol): Renamed from not_eol.
68141         (re_newline_anchor): Renamed from newline_anchor.
68142
68143         Change the following member names in struct re_registers.
68144         The old names are still supported if !_REGEX_SOURCE.
68145         The new names are always supported, regardless of _REGEX_SOURCE.
68146         (rm_num_regs): Renamed from num_regs.
68147         (rm_start): Renamed from start.
68148         (rm_end): Renamed from end.
68149
68150         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
68151         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
68152         Prepend __ to parameter names.
68153
68154         Undo yesterday's changes.
68155
68156 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68157
68158         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
68159         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
68160         lib/regex.c.
68161
68162 2005-08-24  Jim Meyering  <jim@meyering.net>
68163
68164         Sync from coreutils.
68165         * m4/fcntl-safer.m4: New file.
68166
68167         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
68168         and object files for this module.
68169
68170 2005-08-24  Jim Meyering  <jim@meyering.net>
68171
68172         Sync from coreutils.
68173         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
68174
68175 2005-08-24  Jim Meyering  <jim@meyering.net>
68176
68177         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
68178         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
68179
68180 2005-08-24  Jim Meyering  <jim@meyering.net>
68181
68182         * modules/fcntl-safer: New module.
68183         * modules/fts (Depends-on): Add fcntl-safer.
68184         * MODULES.html.sh (File descriptor based Input/Output):
68185         Add fcntl-safer.
68186
68187 2005-08-24  Bruno Haible  <bruno@clisp.org>
68188
68189         Support for unit test modules.
68190         * modules/README: Mention tests modules.
68191         * modules/TEMPLATE-TESTS: New file.
68192         * gnulib-tool: New options --extract-tests-module, --with-tests and
68193         --tests-base (unused for the moment).
68194         (testsbase, inctests): New variables.
68195         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
68196         (func_verify_module): Exclude TEMPLATE-TESTS.
68197         (func_verify_nontests_module, func_verify_tests_module): New functions.
68198         (func_get_dependencies): Add implicit dependency for tests modules.
68199         (func_get_tests_module): New function.
68200         (func_modules_transitive_closure): When --with-tests was specified,
68201         include the unit tests as well, unless explicitly avoided.
68202         (func_emit_lib_Makefile_am): Ignore the tests modules here.
68203         (func_emit_tests_Makefile_am): New function.
68204         (func_create_testdir): When --with-tests was specified, emit a
68205         tests/ directory.
68206         * MODULES.html.sh (Future developments): Update.
68207
68208 2005-08-24  Bruno Haible  <bruno@clisp.org>
68209
68210         * modules/tls-tests: New file.
68211         * tests/test-tls.c: New file, from GNU gettext.
68212
68213 2005-08-24  Bruno Haible  <bruno@clisp.org>
68214
68215         * modules/lock-tests: New file.
68216         * tests/test-lock.c: New file, from GNU gettext.
68217
68218 2005-08-24  Bruno Haible  <bruno@clisp.org>
68219
68220         * lib/lock.h: Add multiple inclusion guard.
68221         * lib/tls.h: Add multiple inclusion guard.
68222
68223 2005-08-24  Bruno Haible  <bruno@clisp.org>
68224
68225         * gnulib-tool: Add support for the --aux-dir option to
68226         --create-testdir, --create-megatestdir, --test, --megatest.
68227         (func_create_testdir, func_create_megatestdir): Optionally emit a
68228         AC_CONFIG_AUX_DIR directive.
68229         (create-testdir, create-megatestdir, test, megatest): Provide a
68230         default value for $auxdir.
68231
68232 2005-08-24  Bruno Haible  <bruno@clisp.org>
68233
68234         * gnulib-tool (import): Use compound statement instead of subshell
68235         where possible.
68236
68237 2005-08-24  Bruno Haible  <bruno@clisp.org>
68238
68239         * gnulib-tool (import): Change --aux-dir default to "build-aux".
68240
68241 2005-08-24  Bruno Haible  <bruno@clisp.org>
68242
68243         * gnulib-tool (func_version): Update.
68244
68245 2005-08-24  Bruno Haible  <bruno@clisp.org>
68246
68247         * gnulib-tool (func_import, func_create_testdir,
68248         func_create_megatestdir): Quote all autoconf macro arguments.
68249
68250 2005-08-24  Bruno Haible  <bruno@clisp.org>
68251
68252         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
68253         option --force, because --force causes the aclocal.m4 of each
68254         subdirectory to be newer than the corresponding config.h.in.
68255
68256 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68257
68258         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
68259         All contents moved to gl_REGEX.
68260         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
68261         assume that it does.
68262
68263 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68264
68265         * lib/regex.h (REG_NOSYS)
68266         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
68267         Define, since POSIX requires it as of 2001.
68268         (_REG_ENOSYS)
68269         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
68270         New private symbol, used to keep the enum signed in all cases.
68271         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
68272         Youngman in
68273         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
68274
68275         * lib/regex_internal.c (re_string_skip_chars, register_state):
68276         (calc_state_hash):
68277         Remove forward decls; no longer needed now that we use prototypes.
68278         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
68279         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
68280         (clean_state_log_if_needed): Likewise.
68281
68282 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68283
68284         * config/srclist.txt: Add glibc bugs 1231-1233.
68285
68286 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68287
68288         Fix problems reported by Sam Steingold in
68289         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
68290         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
68291         assumed that reg_errcode_t is a signed type, which is not
68292         necessarily true if _XOPEN_SOURCE is not defined.
68293         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
68294         since some compilers warn about it otherwise.
68295
68296 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68297
68298         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
68299         (init_word_char, create_initial_state, duplicate_node_closure):
68300         (fetch_token, peek_token_bracket, build_range_exp):
68301         (build_collating_symbol): Remove forward decls; no longer needed
68302         now that we use prototypes.
68303
68304         * lib/regcomp.c:
68305         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
68306         (re_compile_fastmap_iter, regcomp, regerror, regfree):
68307         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
68308         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
68309         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
68310         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
68311         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
68312         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
68313         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
68314         (build_range_exp, build_collating_symbol, parse_bracket_exp):
68315         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
68316         (build_charclass, build_charclass_op, fetch_number, create_tree):
68317         (create_token_tree, mark_opt_subexp, duplicate_tree):
68318         Use prototypes rather than old-style definitions.
68319
68320         * lib/regex_internal.c:
68321         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
68322         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
68323         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
68324         (re_string_reconstruct, re_string_peek_byte_case):
68325         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
68326         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
68327         (re_node_set_init_copy, re_node_set_add_intersect):
68328         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68329         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68330         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
68331         (re_acquire_state, re_acquire_state_context, register_state):
68332         (create_ci_newstate, create_cd_newstate, free_state):
68333         Likewise.
68334         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
68335         re_search_2):
68336         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
68337         (re_search_internal, prune_impossible_nodes):
68338         (acquire_init_state_context, check_matching, static):
68339         (check_halt_node_context, check_halt_state_context, proceed_next_node):
68340         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
68341         (update_regs, sift_states_backward, build_sifted_states):
68342         (clean_state_log_if_needed, merge_state_array):
68343         (update_cur_sifted_state, add_epsilon_src_nodes):
68344         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
68345         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
68346         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
68347         (find_recover_state, check_subexp_matching_top, transit_state_mb):
68348         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
68349         (check_arrival, check_arrival_add_next_nodes):
68350         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
68351         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
68352         (check_node_accept_bytes, check_node_accept, extend_buffers):
68353         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
68354         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
68355         (sift_ctx_init):
68356         Likewise.
68357
68358         * lib/regex_internal.h:
68359         (re_string_allocate, re_string_construct, re_string_reconstruct):
68360         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
68361         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
68362         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
68363         (re_string_context_at, re_string_peek_byte_case):
68364         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
68365         is defined, since we now use prototypes always.
68366
68367         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
68368         C89 or better.  All uses removed.
68369
68370 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68371
68372         * config/srclist.txt: Add glibc bugs 1220-1227.
68373
68374 2005-08-20  Jim Meyering  <jim@meyering.net>
68375
68376         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
68377         of unused local, dfa.
68378
68379 2005-08-20  Bruno Haible  <bruno@clisp.org>
68380
68381         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
68382
68383 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68384
68385         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
68386         (re_node_set_insert_last, re_dfa_add_node):
68387         Rename local variables to avoid GCC shadowing warnings.
68388
68389 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68390
68391         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
68392         [defined lint]: Suppress bogus uninitialized-variable warnings.
68393
68394         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
68395         and let the caller return REG_ESPACE if out of space.  This
68396         removes an uninitialied-variable warning with GCC 4.0.1, and also
68397         avoids taking the address of a local variable.  All callers
68398         changed.
68399
68400 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68401
68402         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
68403         $LIBCSRC/posix/regexec.c.
68404         Add glibc bug 1217 for regcomp.c.
68405
68406 2005-08-19  Jim Meyering  <jim@meyering.net>
68407
68408         * lib/regexec.c (proceed_next_node): Redo local variables to
68409         avoid GCC shadowing warnings.
68410
68411 2005-08-18  Bruno Haible  <bruno@clisp.org>
68412
68413         * lib/strstr.c (strstr): Fix return value in multibyte case.
68414         * lib/strcasestr.c (strcasestr): Likewise.
68415
68416 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68417
68418         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
68419
68420 2005-08-17  Jim Meyering  <jim@meyering.net>
68421
68422         Make the %s format (seconds since the epoch) work for a negative
68423         number and when used with a zero-padded field width, e.g. %015s.
68424
68425         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
68426         label so that it precedes the code to set `digits'.  Otherwise,
68427         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
68428         print `00-22'.  Now, it prints `-0022', as it should.
68429
68430 2005-08-17  Bruno Haible  <bruno@clisp.org>
68431
68432         * modules/strstr (Files): Add m4/mbrtowc.m4.
68433         (Depends-on): Add mbuiter.
68434
68435 2005-08-17  Bruno Haible  <bruno@clisp.org>
68436
68437         * modules/strcasestr: New file.
68438         * MODULES.html.sh (String handling, based on ANSI C 89): Add
68439         strcasestr.
68440
68441 2005-08-17  Bruno Haible  <bruno@clisp.org>
68442
68443         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
68444
68445 2005-08-17  Bruno Haible  <bruno@clisp.org>
68446
68447         * modules/mbuiter: New file.
68448         * MODULES.html.sh (Extended multibyte and wide character utilities):
68449         Add mbuiter.
68450
68451 2005-08-17  Bruno Haible  <bruno@clisp.org>
68452
68453         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
68454         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
68455
68456 2005-08-17  Bruno Haible  <bruno@clisp.org>
68457
68458         * m4/strcasestr.m4: New file.
68459
68460 2005-08-17  Bruno Haible  <bruno@clisp.org>
68461
68462         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
68463         * lib/strstr.c: Completely rewritten, with multibyte locale support.
68464
68465 2005-08-17  Bruno Haible  <bruno@clisp.org>
68466
68467         * lib/strcasestr.h: New file.
68468         * lib/strcasestr.c: New file.
68469
68470 2005-08-17  Bruno Haible  <bruno@clisp.org>
68471
68472         * lib/strcasecmp.c: Use mbuiter.h.
68473
68474 2005-08-17  Bruno Haible  <bruno@clisp.org>
68475
68476         * lib/mbuiter.h: New file.
68477
68478 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68479
68480         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
68481         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
68482         and gl_GETOPT are both invoked via different paths (as happens
68483         with GNU tar CVS because it uses both argp and getopt), the former
68484         wins.
68485
68486 2005-08-16  Bruno Haible  <bruno@clisp.org>
68487
68488         * modules/tls: New file.
68489         * MODULES.html.sh (Multithreading): Add tls.
68490
68491 2005-08-16  Bruno Haible  <bruno@clisp.org>
68492
68493         * modules/strnlen1: New file.
68494         * MODULES.html.sh (String handling): Add strnlen1.
68495
68496 2005-08-16  Bruno Haible  <bruno@clisp.org>
68497
68498         * modules/strcase (Files): Add m4/mbrtowc.m4.
68499         (Depends-on): Add strnlen1, mbchar.
68500
68501 2005-08-16  Bruno Haible  <bruno@clisp.org>
68502
68503         * modules/mbiter: New file.
68504         * MODULES.html.sh (Extended multibyte and wide character utilities):
68505         Add mbiter.
68506
68507 2005-08-16  Bruno Haible  <bruno@clisp.org>
68508
68509         * modules/mbfile: New file.
68510         * MODULES.html.sh (Extended multibyte and wide character utilities):
68511         Add mbfile.
68512
68513 2005-08-16  Bruno Haible  <bruno@clisp.org>
68514
68515         * modules/mbchar: New file.
68516         * MODULES.html.sh (Extended multibyte and wide character utilities):
68517         New section.
68518
68519 2005-08-16  Bruno Haible  <bruno@clisp.org>
68520
68521         * m4/tls.m4: New file, from GNU gettext.
68522
68523 2005-08-16  Bruno Haible  <bruno@clisp.org>
68524
68525         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
68526         always.
68527         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
68528
68529 2005-08-16  Bruno Haible  <bruno@clisp.org>
68530
68531         * m4/mbiter.m4: New file.
68532
68533 2005-08-16  Bruno Haible  <bruno@clisp.org>
68534
68535         * m4/mbfile.m4: New file.
68536
68537 2005-08-16  Bruno Haible  <bruno@clisp.org>
68538
68539         * m4/mbchar.m4: New file.
68540
68541 2005-08-16  Bruno Haible  <bruno@clisp.org>
68542
68543         * lib/tls.h: New file, from GNU gettext.
68544         * lib/tls.c: New file, from GNU gettext.
68545
68546 2005-08-16  Bruno Haible  <bruno@clisp.org>
68547
68548         * lib/strnlen1.h: New file.
68549         * lib/strnlen1.c: New file.
68550
68551 2005-08-16  Bruno Haible  <bruno@clisp.org>
68552
68553         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
68554         (mbi_init): Update.
68555         (mbi_avail, mbi_advance): Let the iteration end before the terminating
68556         NUL byte, not after it.
68557
68558 2005-08-16  Bruno Haible  <bruno@clisp.org>
68559
68560         * lib/strcase.h (strcasecmp): Add note in comments.
68561         * lib/strncasecmp.c: Use code from strcasecmp.c.
68562         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
68563         (strcasecmp): Work correctly in multibyte locales.
68564
68565 2005-08-16  Bruno Haible  <bruno@clisp.org>
68566
68567         * lib/mbiter.h: New file.
68568
68569 2005-08-16  Bruno Haible  <bruno@clisp.org>
68570
68571         * lib/mbfile.h: New file.
68572
68573 2005-08-16  Bruno Haible  <bruno@clisp.org>
68574
68575         * lib/mbchar.h: New file.
68576         * lib/mbchar.c: New file.
68577
68578 2005-08-16  Bruno Haible  <bruno@clisp.org>
68579
68580         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
68581         the valid ones. Makes the comparison operations transitive:
68582         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
68583         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
68584
68585 2005-08-15  Simon Josefsson  <jas@extundo.com>
68586
68587         * modules/ssize_t (License): Change to 'unlimited'.
68588
68589         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
68590
68591 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68592
68593         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
68594         Add comments for each pending glibc patch.
68595
68596 2005-08-15  Bruno Haible  <bruno@clisp.org>
68597
68598         * lib/regex.h (__restrict_arr): Don't define to __restrict if
68599         __cplusplus is defined.
68600
68601 2005-08-14  Jim Meyering  <jim@meyering.net>
68602
68603         Sync from coreutils.
68604
68605         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
68606         Use the hash-table-based cycle-detection code not just when
68607         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
68608         Reported by James Youngman in
68609         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
68610         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
68611         FTS_TIGHT_CYCLE_CHECK.
68612         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
68613         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
68614         once again.
68615         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
68616         * lib/fts.c (fd_safer): Remove decl.
68617         Include fcntl--.h rather than unistd-safer.h
68618         (fts_safe_changedir): Don't call fd_safer; no longer needed
68619         now that we include fcntl--.h.
68620
68621 2005-08-12  Simon Josefsson  <jas@extundo.com>
68622
68623         * modules/getndelim2: Use ssize_t module.
68624         * modules/getnline: Likewise.
68625         * modules/safe-read: Likewise.
68626         * modules/xreadlink: Likewise.
68627
68628         * modules/ssize_t: New file.
68629
68630 2005-08-12  Simon Josefsson  <jas@extundo.com>
68631
68632         * m4/readline.m4: Look for termcap, curses or ncurses if required.
68633
68634 2005-08-12  Simon Josefsson  <jas@extundo.com>
68635
68636         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68637         ssize_t.
68638
68639 2005-08-12  Simon Josefsson  <jas@extundo.com>
68640
68641         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
68642         readline, getdelim and check_version.
68643         (Support for systems lacking ISO C 99: Sizes of integer types):
68644         Add size_max.
68645
68646 2005-08-12  Bruno Haible  <bruno@clisp.org>
68647
68648         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
68649
68650 2005-08-11  Simon Josefsson  <jas@extundo.com>
68651
68652         * modules/readline: New file.
68653
68654         * modules/strnlen (Files): Add strnlen.h.
68655
68656 2005-08-11  Simon Josefsson  <jas@extundo.com>
68657
68658         * m4/readline.m4: New file.
68659
68660 2005-08-11  Simon Josefsson  <jas@extundo.com>
68661
68662         * lib/readline.h, readline.c: New file.
68663
68664 2005-08-11  Simon Josefsson  <jas@extundo.com>
68665
68666         * doc/gnulib.texi (Initial import, Finishing touches): Mention
68667         gl_AVOID.
68668
68669 2005-08-11  Bruno Haible  <bruno@clisp.org>
68670
68671         * lib/strnlen.h (strnlen): Change parameter name to match comment.
68672
68673 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
68674
68675         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
68676
68677 2005-08-10  Simon Josefsson  <jas@extundo.com>
68678
68679         * tests/test-iconvme.c: New file.
68680
68681 2005-08-10  Simon Josefsson  <jas@extundo.com>
68682
68683         * m4/strnlen.m4: New file.
68684
68685         * m4/strndup.m4: Don't check for strnlen declaration, done in
68686         strnlen.m4.
68687
68688 2005-08-10  Simon Josefsson  <jas@extundo.com>
68689
68690         * lib/strndup.c: Use strnlen.h.
68691
68692         * lib/strnlen.h: New file.
68693
68694 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68695
68696         * README: Typos.
68697
68698 2005-08-02  Simon Josefsson  <jas@extundo.com>
68699
68700         * modules/readline: New file.
68701
68702 2005-08-02  Simon Josefsson  <jas@extundo.com>
68703
68704         * modules/getdelim: New file.
68705
68706         * modules/getline: Rewrite, don't use getndelim2.
68707
68708 2005-08-02  Simon Josefsson  <jas@extundo.com>
68709
68710         * m4/getline.m4: Separate out getdelim stuff into separate module.
68711
68712         * m4/getdelim.m4: New file.
68713
68714 2005-08-02  Simon Josefsson  <jas@extundo.com>
68715
68716         * lib/getline.h, getline.c: Rewrite.
68717
68718         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
68719
68720 2005-07-31  Bruno Haible  <bruno@clisp.org>
68721
68722         * lib/lock.h (gl_lock_initializer): New macro.
68723         (gl_lock_define_initialized): Use it.
68724         (gl_rwlock_initializer): New macro.
68725         (gl_rwlock_define_initialized): Use it.
68726         (gl_recursive_lock_initializer): New macro.
68727         (gl_recursive_lock_define_initialized): Use it.
68728
68729 2005-07-30  Karl Berry  <karl@gnu.org>
68730
68731         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
68732         Report from Ben Pfaff, regarding getopt.
68733
68734 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
68735
68736         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
68737         normal way.
68738         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
68739         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
68740         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
68741         (gl_GETOPT): Use the new macros.  Most of the implementation
68742         is moved to the new macros.  This is for programs like Emacs
68743         that don't want all the functionality of gl_GETOPT.
68744
68745 2005-07-26  Bruno Haible  <bruno@clisp.org>
68746
68747         * m4/lock.m4: Update from GNU gettext.
68748
68749 2005-07-26  Bruno Haible  <bruno@clisp.org>
68750
68751         * lib/lock.h: Update from GNU gettext.
68752         * lib/lock.c: Update from GNU gettext.
68753
68754 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
68755
68756         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
68757         obsolescent AC_TRY_RUN.  Include the default includes files, for
68758         'exit'.
68759
68760 2005-07-24  Bruno Haible  <bruno@clisp.org>
68761
68762         * modules/visibility: New file.
68763         * MODULES.html.sh (Misc): Add visibility.
68764
68765 2005-07-24  Bruno Haible  <bruno@clisp.org>
68766
68767         * m4/visibility.m4: New file.
68768
68769 2005-07-24  Bruno Haible  <bruno@clisp.org>
68770
68771         * doc/visibility.texi: New file.
68772
68773 2005-07-22  Bruno Haible  <bruno@clisp.org>
68774
68775         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
68776         $(ALLOCA_H), redundant through BUILT_SOURCES.
68777         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
68778         redundant through BUILT_SOURCES.
68779         * modules/byteswap (Makefile.am): Remove explicit dependency on
68780         $(BYTESWAP_H), redundant through BUILT_SOURCES.
68781         * modules/fnmatch (Makefile.am): Remove explicit dependency on
68782         $(FNMATCH_H), redundant through BUILT_SOURCES.
68783         * modules/getopt (Makefile.am): Remove explicit dependency on
68784         $(GETOPT_H), redundant through BUILT_SOURCES.
68785         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
68786         redundant through BUILT_SOURCES.
68787         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
68788         redundant through BUILT_SOURCES.
68789         * modules/stdbool (Makefile.am): Remove explicit dependency on
68790         $(STDBOOL_H), redundant through BUILT_SOURCES.
68791         * modules/stdint (Makefile.am): Remove explicit dependency on
68792         $(STDINT_H), redundant through BUILT_SOURCES.
68793         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
68794         Remove explicit dependency on $(SYSEXITS_H).
68795         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
68796
68797 2005-07-18  Simon Josefsson  <jas@extundo.com>
68798
68799         * lib/check-version.c (check_version): Accept identical versions too.
68800
68801 2005-07-18  Bruno Haible  <bruno@clisp.org>
68802
68803         * modules/lock: New file.
68804         * MODULES.html.sh (Multithreading): New section.
68805
68806 2005-07-18  Bruno Haible  <bruno@clisp.org>
68807
68808         * m4/lock.m4: New file, from GNU gettext.
68809
68810 2005-07-18  Bruno Haible  <bruno@clisp.org>
68811
68812         * lib/lock.h: New file, from GNU gettext.
68813         * lib/lock.c: New file, from GNU gettext.
68814
68815 2005-07-18  Bruno Haible  <bruno@clisp.org>
68816
68817         * lib/lock.h (gl_once_t): New type.
68818         (gl_once_define, gl_once): New macros.
68819         * lib/lock.c (fresh_once): New variable.
68820         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
68821         functions.
68822
68823 2005-07-16  Simon Josefsson  <jas@extundo.com>
68824
68825         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
68826         workaround, suggested by Bruno.
68827
68828 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
68829
68830         * modules/xalloc (Depends-on): Add xalloc-die.
68831         * modules/xvasprintf (Depends-on): Add xalloc-die.
68832
68833 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
68834
68835         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
68836         with a minor change.
68837
68838 2005-07-15  Bruno Haible  <bruno@clisp.org>
68839
68840         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
68841         When using lib/poll.c, define poll as rpl_poll.
68842
68843 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
68844
68845         * modules/argp (Depends-on): Remove unlocked-io.
68846
68847 2005-07-14  Derek Price  <derek@ximbiot.com>
68848
68849         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
68850         for glob symlink bug.
68851
68852 2005-07-14  Bruno Haible  <bruno@clisp.org>
68853
68854         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
68855         Instead, test for *_unlocked function declarations directly.
68856
68857 2005-07-11  Simon Josefsson  <jas@extundo.com>
68858
68859         * modules/size_max: New file.
68860
68861         * modules/xsize: Depend on size_max module for size_max.m4.
68862
68863 2005-07-11  Simon Josefsson  <jas@extundo.com>
68864
68865         * lib/size_max.h: New file.
68866
68867 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
68868
68869         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
68870         copyright symbol and the year.
68871         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
68872         (version_etc_va): Use parameterized copyright notice.
68873         Reword to conform to the current GNU coding standards.
68874
68875 2005-07-11  Karl Berry  <karl@gnu.org>
68876
68877         * doc/gnulib.texi (Quoting): new node.
68878         (Initial import): more info, from Patrice.
68879
68880 2005-07-11  Bruno Haible  <bruno@clisp.org>
68881
68882         * gnulib-tool (func_usage): Document option --avoid.
68883         (Command line options): Handle --avoid.
68884         (func_acceptable): New function.
68885         (func_modules_transitive_closure): Use it.
68886
68887 2005-07-11  Bruno Haible  <bruno@clisp.org>
68888
68889         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
68890         Reported by Jim Meyering.
68891
68892 2005-07-10  Bruno Haible  <bruno@clisp.org>
68893
68894         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
68895         Needed when size_t is smaller than 'unsigned int'.
68896         Reported by Paul Eggert.
68897
68898 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68899
68900         * modules/argp (Depends-on): Add unlocked-io
68901
68902 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68903
68904         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
68905         block of defines.
68906
68907 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
68908
68909         * config/srclist.txt: Comment out regcomp.c, since we have a porting
68910         fix now.
68911
68912 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
68913         and Paul Eggert  <eggert@cs.ucla.edu>
68914
68915         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
68916         in wint_t, not wchar_t.  Remove now-unnecessary cast.
68917
68918 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68919
68920         * modules/regex (Files): Add lib/regex_internal.c,
68921         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
68922         (Depends-on): Add extensions.
68923         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
68924
68925 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68926
68927         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
68928         pathconf.
68929         * m4/same.m4 (gl_SAME): Likewise.
68930         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
68931
68932         * m4/regex.m4: Adjust to new libc regex implementation.
68933         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
68934         all the .c and .h parts of (the new) regex.
68935         Quote the m4 stuff better.
68936         Check for RE_ICASE bug of old gnulib.
68937         Check for REG_STARTEND of recent libc.
68938         Rename local variables from jm_* to gl_*.
68939         Quote operand of "test -f".
68940         Say "recent enough" version of libc, not "version 2".
68941         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
68942         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
68943         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
68944         Remove check for btowc, isascii.
68945         Require AM_LANGINFO_CODESET.
68946
68947 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68948
68949         * lib/regex.c, regex.h: Sync from libc.
68950         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
68951         * lib/regexec.c:
68952         New files, synced from libc, except that regex_internal.h
68953         currently has a small porting fix.
68954
68955 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68956
68957         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
68958         regex_internal.c, regexec.c.
68959         Add regex_internal.h too, but as a comment, since the libc version
68960         is currently broken in gnulib mode.
68961
68962 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68963
68964         Support programs like Emacs that use gnulib but not gettext.
68965         * MODULES.html.sh (Internationalization functions): Add gettext-h.
68966         * modules/gettext-h: New file.
68967         * modules/gettext (Files): Remove lib/gettext.h.
68968         (Depends-on): Add gettext-h.
68969         (Makefile.am): Remove lib_SOURCES.
68970         * modules/argmatch, modules/c-stack, modules/closeout:
68971         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
68972         * modules/execute, modules/file-type, modules/getaddrinfo:
68973         * modules/getopt, modules/human, modules/javacomp:
68974         * modules/javaexec, modules/mkdir-p, modules/obstack:
68975         * modules/openat, modules/pagealign_alloc, modules/pipe:
68976         * modules/quotearg, modules/regex, modules/rpmatch:
68977         * modules/unicodeio, modules/userspec, modules/version-etc:
68978         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
68979         * modules/xsetenv:
68980         Depend on gettext-h, not gettext.
68981
68982 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68983
68984         * gnulib-tool (func_import): Add support for 'public domain' license.
68985         * modules/alloca, modules/atexit, modules/memmove:
68986         Now public domain, not GPL.
68987         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
68988         * modules/realloc, modules/strerror, modules/strtod:
68989         Now LGPL, not GPL.
68990
68991 2005-07-05  Bruno Haible  <bruno@clisp.org>
68992
68993         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
68994         autoconf CVS. Needed for mingw.
68995
68996 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68997
68998         Remove the dependency of the strftime module on the tzset module.
68999         * modules/strftime (Depends-on): Remove dependency on tzset.
69000
69001 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69002
69003         Remove the dependency of the strftime module on the tzset module.
69004         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
69005         gl_FUNC_TZSET_CLOBBER.
69006
69007 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69008
69009         Remove the dependency of the strftime module on the tzset module.
69010         * lib/strftime.c (my_strftime)
69011         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
69012         Copy the input structure, to work around some of the bug with
69013         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
69014         Solaris releases, you should also use the tzset module, but we won't
69015         require it as a dependency any more since we don't want LGPLed code
69016         to depend on GPLed code.
69017
69018 2005-07-02  Jim Meyering  <jim@meyering.net>
69019
69020         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
69021         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
69022         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
69023         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
69024
69025 2005-07-02  Jim Meyering  <jim@meyering.net>
69026
69027         * lib/backupfile.c (backup_args): Change a `0' to NULL.
69028
69029 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69030
69031         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
69032         declares only 'struct timespec;' (!).
69033
69034 2005-07-01  Jim Meyering  <jim@meyering.net>
69035
69036         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
69037         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
69038         * lib/save-cwd.c, tempname.c:
69039         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69040         and don't include <sys/file.h>).
69041
69042 2005-06-29  Jim Meyering  <jim@meyering.net>
69043
69044         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
69045         type name.  Use the variable name instead.
69046         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
69047         Likewise.
69048
69049 2005-06-28  Simon Josefsson  <jas@extundo.com>
69050
69051         * modules/check-version (Files): Add check-version.m4.
69052
69053 2005-06-28  Simon Josefsson  <jas@extundo.com>
69054
69055         * m4/check-version.m4: New file, suggested by Jim Meyering
69056         <jim@meyering.net>.
69057
69058 2005-06-28  Simon Josefsson  <jas@extundo.com>
69059
69060         * lib/check-version.h, lib/check-version.c: New files.
69061
69062 2005-06-28  Simon Josefsson  <jas@extundo.com>
69063
69064         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
69065         collision with global variable.  Better indentation.  Don't
69066         increment buffer pointer beyond buffer end.  Based on comments
69067         from Paul Eggert <eggert@cs.ucla.edu>.
69068
69069         * lib/base64.h: Indent.
69070
69071 2005-06-28  Simon Josefsson  <jas@extundo.com>
69072
69073         * doc/gnulib.texi (Library version handling): New section.
69074
69075 2005-06-28  Jim Meyering  <jim@meyering.net>
69076
69077         * check-module (find_included_lib_files): Hard-code another
69078         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
69079         but modules/fts-lgpl (correctly) does not list those files.
69080
69081         * modules/canonicalize (Files): Add lib/pathmax.h.
69082
69083 2005-06-25  Simon Josefsson  <jas@extundo.com>
69084
69085         * modules/check-version: New file.
69086
69087 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
69088
69089         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
69090         initializer of struct addrinfo, as an indication that we don't
69091         care how many members the structure has.
69092
69093 2005-06-24  Derek Price  <derek@ximbiot.com>
69094         and Bruno Haible  <bruno@clisp.org>
69095
69096         Remove stat module & update lstat.
69097         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
69098         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69099         * m4/stat.m4: Remove this file.
69100
69101 2005-06-24  Derek Price  <derek@ximbiot.com>
69102         and Bruno Haible  <bruno@clisp.org>
69103
69104         Remove stat module & update lstat.
69105         * lib/stat.c: Remove this file...
69106         (slash_aware_lstat): ...moving this content and its support...
69107         * lib/lstat.c (rpl_lstat): ...into here.
69108         * lib/lstat.h: New file.
69109
69110 2005-06-24  Derek Price  <derek@ximbiot.com>
69111         and Bruno Haible  <bruno@clisp.org>
69112
69113         Remove stat module & update lstat.
69114         * config/srclist.txt (libc sources): Remove stat.
69115
69116 2005-06-24  Derek Price  <derek@ximbiot.com>
69117         and Bruno Haible  <bruno@clisp.org>
69118
69119         Remove stat module & update lstat.
69120         * MODULES.html.sh (stat): Remove.
69121         * MODULES.html: Regenerated.
69122         * modules/lstat (Description): Correct function name.
69123         (Files): Add "lstat.h".
69124         (Depends-on): Remove stat, add xalloc, stat-macros.
69125         * modules/stat: Remove this file.
69126         (Include): Add "lstat.h", remove <sys/stat.h>.
69127
69128 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69129
69130         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
69131         (ranged_convert): Don't save conversion in a temporary struct.
69132         This causes a warning with GCC 4.0.0, and anyway in the typical
69133         case it's not worth the extra 100 bytes or so of code.
69134         (ranged_convert, __mktime_internal): When calling a function via a
69135         pointer P, use P () rather than (*P) (), as we now assume C89 or
69136         better.
69137
69138 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69139
69140         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
69141         "who -r" failed to give output.  Problem reported by Tim Waugh.
69142
69143         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
69144         (xcalloc): Use it to avoid needless tests.
69145         Problem reported by Jim Meyering.
69146
69147 2005-06-20  Derek Price  <derek@ximbiot.com>
69148
69149         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
69150         unnecessary for Autoconfs > 2.59c.
69151
69152 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69153
69154         * lib/argp.h (__option_is_short): Check upper limit of
69155         __key. Isprint() requires its argument to have the value
69156         of an unsigned char or EOF.
69157
69158 2005-06-16  Jim Meyering  <jim@meyering.net>
69159
69160         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
69161         when either N or S is zero.
69162
69163 2005-06-16  Derek Price  <derek@ximbiot.com>
69164
69165         * m4/bison.m4: Declare YACC & YFLAGS precious.
69166
69167 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
69168
69169         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
69170         multibyte string or pattern, fall back on unibyte matching.
69171         Problem reported by James Youngman.
69172
69173 2005-06-08  Bruno Haible  <bruno@clisp.org>
69174
69175         * modules/csharpcomp: New file.
69176         * MODULES.html.sh (C#): Add csharpcomp.
69177
69178 2005-06-08  Bruno Haible  <bruno@clisp.org>
69179
69180         * m4/csharpcomp.m4: New file, from GNU gettext.
69181
69182 2005-06-08  Bruno Haible  <bruno@clisp.org>
69183
69184         * lib/csharpcomp.h: New file, from GNU gettext.
69185         * lib/csharpcomp.c: New file, from GNU gettext.
69186         * lib/csharpcomp.sh.in: New file, from GNU gettext.
69187
69188 2005-06-08  Bruno Haible  <bruno@clisp.org>
69189
69190         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
69191         warning on mingw.
69192
69193 2005-06-07  Derek Price  <derek@ximbiot.com>
69194
69195         Sync from CVS.
69196         * lib/glob_.h: Indent nested #ifdef.
69197
69198 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69199
69200         Sync from coreutils.
69201         Use "file name" when talking about file names, instead of "filename"
69202         or "path", as per the GNU coding standards.
69203         * lib/mkdir-p.c: Renamed from makepath.c.
69204         (make_dir_parents): Renamed from make_path.  All callers changed.
69205         * lib/mkdir-p.h: Likewise.  All includers changed.
69206         * lib/filenamecat.c: Renamed from path-concat.c.
69207         (file_name_concat): Renamed from path_concat.  All callers changed.
69208         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
69209         * lib/filenamecat.h: Likewise.  All includers changed.
69210         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
69211         in comments or local variable names.
69212         * lib/basename.c: Likewise.
69213         * lib/canonicalize.c, canonicalize.h: Likewise.
69214         * lib/dirname.c, dirname.h: Likewise.
69215         * lib/euidaccess.c: Likewise.
69216         * lib/exclude.c: Likewise
69217         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
69218         * lib/fsusage.c, fsuage.h: Likewise.
69219         * lib/fts.c, fts_.h: Likewise.
69220         * lib/getcwd.c: Likewise.
69221         * lib/getloadavg.c: Likewise.
69222         * lib/mkstemp.c: Likewise.
69223         * lib/mountlist.c, mountlist.h: Likewise.
69224         * lib/openat.c, openat.h: Likewise.
69225         * lib/readlink-stub.c: Likewise.
69226         * lib/readutmp.c, readutmp.h: Likewise.
69227         * lib/rename.c: Likewise.
69228         * lib/rmdir.c: Likewise.
69229         * lib/same.c: Likewise.
69230         * lib/savedir.c: Likewise.
69231         * lib/stripslash.c: Likewise.
69232         * lib/tempname.c: Likewise.
69233         * lib/xreadlink.c: Likewise.
69234         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
69235         All uses changed.
69236         * lib/exclude.h: Likewise.
69237
69238         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
69239         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69240         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
69241         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69242         * lib/pathmax.h: Include <limits.h> unconditionally, since other
69243         files have been getting away with it for years (MORE/BSD 4.3
69244         is extinct now).
69245         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
69246         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69247
69248         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
69249         Define to 256, not 255, as per modern POSIX.
69250
69251 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69252
69253         Sync from coreutils.
69254         Use "file name" when talking about file names, instead of "filename"
69255         or "path", as per the GNU coding standards.
69256         * MODULES.html.sh: mkdir-p renamed from makepath.
69257         filenamecat renamed from path-concat.
69258         * modules/filenamecat: Renamed from modules/path-concat.
69259         (Files): filenamecat.h and filenamecat.c renamed from
69260         path-concat.h and path-concat.c.
69261         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
69262         (Include): filenamecat.h, not path-concat.h.
69263         * modules/mkdir-p: Renamed from modules/makepath.
69264         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
69265         makepath.c.
69266         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
69267         (Include): mkdir-p.h, not makepath.h.
69268
69269 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69270
69271         Sync from coreutils.
69272         * m4/mkdir-p.m4: Renamed from makepath.m4.
69273         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
69274         Rename files from makepath.c to mkdir-p.c, and from
69275         makepath.h to mkdir-p.h.
69276         * m4/filenamecat.m4: Renamed from path-concat.m4.
69277         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
69278         Rename files from path-concat.c to filenamecat.c,
69279         and from path-concat.h to filenamecat.h.
69280         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
69281         "file name" in local variables or comments.
69282         * m4/rename.m4: Likewise.
69283
69284 2005-06-01  Bruno Haible  <bruno@clisp.org>
69285
69286         * modules/csharpexec: New file.
69287         * MODULES.html.sh (C#): New section.
69288
69289 2005-06-01  Bruno Haible  <bruno@clisp.org>
69290
69291         * m4/csharp.m4: New file, from GNU gettext.
69292         * m4/csharpexec.m4: New file, from GNU gettext.
69293
69294 2005-06-01  Bruno Haible  <bruno@clisp.org>
69295
69296         * lib/csharpexec.h: New file, from GNU gettext.
69297         * lib/csharpexec.c: New file, from GNU gettext.
69298         * lib/csharpexec.sh.in: New file, from GNU gettext.
69299
69300 2005-05-31  Derek Price  <derek@ximbiot.com>
69301             Paul Eggert  <eggert@cs.ucla.edu>
69302
69303         Sync from cvs.
69304         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69305
69306 2005-05-31  Derek Price  <derek@ximbiot.com>
69307             Paul Eggert  <eggert@cs.ucla.edu>
69308
69309         Sync from cvs.
69310         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69311
69312 2005-05-29  Derek Price  <derek@ximbiot.com>
69313
69314         * config/srclist.txt (glob_.h, glob.c): Add these files.
69315
69316 2005-05-29  Derek Price  <derek@ximbiot.com>
69317
69318         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
69319         * modules/glob: New file.
69320         * modules/getlogin_r: Add link to POSIX spec in description.
69321
69322 2005-05-29  Derek Price  <derek@ximbiot.com>
69323             Paul Eggert  <eggert@cs.ucla.edu>
69324
69325         * m4/glob.m4: New file.
69326
69327 2005-05-29  Derek Price  <derek@ximbiot.com>
69328             Paul Eggert  <eggert@cs.ucla.edu>
69329
69330         * lib/glob_.h, lib/glob.c: New files.
69331
69332 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69333
69334         * modules/fts (Files): Remove m4/inttypes-pri.m4.
69335         * modules/fts-lgpl (Depends-on): Remove gettext.
69336
69337 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69338
69339         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
69340         and don't require gt_INTTYPES_PRI.
69341
69342 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69343
69344         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
69345
69346         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
69347         the configuration hassle isn't worth it.
69348         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
69349         (LONGEST_MODIFIER, PRIuMAX): Remove.
69350
69351 2005-05-27  Bruno Haible  <bruno@clisp.org>
69352
69353         * lib/getlogin_r.h: Remove second include of <stddef.h>.
69354
69355 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
69356
69357         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
69358         _POSIX_PTHREAD_SEMANTICS for Solaris.
69359
69360 2005-05-25  Derek Price  <derek@ximbiot.com>
69361
69362         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
69363
69364 2005-05-25  Derek Price  <derek@ximbiot.com>
69365             Paul Eggert  <eggert@cs.ucla.edu>
69366
69367         * modules/getlogin_r, m4/getlogin_r.m4: New files.
69368         * lib/getlogin_r.c, getlogin_r.h: New files.
69369
69370 2005-05-25  Bruno Haible  <bruno@clisp.org>
69371             Derek Price  <derek@ximbiot.com>
69372
69373         * lib/getlogin_r.h: Simplify API documentation.
69374
69375 2005-05-23  Derek Price  <derek@ximbiot.com>
69376
69377         * modules/minmax (Files): Add m4/minmax.m4.
69378         (configure.ac): Add gl_MINMAX.
69379
69380 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69381
69382         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
69383         so that unistd-safer.h (GPL'ed code) need not be included.
69384
69385 2005-05-22  Bruno Haible  <bruno@clisp.org>
69386
69387         * m4/minmax.m4: New file.
69388         Based on a patch by Derek Price <derek@ximbiot.com>.
69389
69390 2005-05-22  Bruno Haible  <bruno@clisp.org>
69391
69392         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
69393         (INT64_MIN): Fix definition.
69394         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
69395
69396         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
69397         NEED_SIGNED_INT_TYPES.
69398
69399         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
69400         HAVE_SYSTEM_INTTYPES.
69401
69402 2005-05-22  Bruno Haible  <bruno@clisp.org>
69403
69404         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
69405         Also include <sys/param.h> if it defines MIN, MAX.
69406         Based on a patch by Derek Price <derek@ximbiot.com>.
69407
69408 2005-05-21  Jim Meyering  <jim@meyering.net>
69409
69410         * modules/fts (Files): Add m4/inttypes-pri.m4.
69411         (Depends-on): Add lstat and remove gettext.  Alphabetize.
69412
69413 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69414
69415         New fts module.
69416         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
69417         (setup_dir, free_dir): New functions.
69418         (enter_dir, leave_dir): Define trivial
69419         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
69420         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
69421         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
69422         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
69423         Move to fts-cycle.c.
69424         (fts_open): Use setup_dir.
69425         (fts_close): Use free_dir.
69426         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
69427         This adds a label and some gotos, but the alternatives were messier.
69428         Check for memory allocation failure when entering a dir.
69429         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
69430         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
69431         (FTS): New member fts_cycle, that is a union that contains the
69432         old active_dir_ht and cycle_state.  All uses changed to mention
69433         fts_cycle.ht and fts_cycle.state.
69434         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
69435         fts.c, with the following changes:
69436         (setup_dir, free_dir): New functions.
69437         (enter_dir): Now returns bool.  Return true if successful, false
69438         if memory exhausted.  All callers changed.
69439         Do not bother partly cleaning up on
69440         memory allocation failure; that is free_dir's job.
69441         However, free ad if hash_insert fails, to avoid memory leak.
69442         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
69443         fts->fts_options to see which union member to use.
69444
69445 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69446
69447         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
69448         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
69449
69450 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69451
69452         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
69453
69454 2005-05-20  Jim Meyering  <jim@meyering.net>
69455
69456         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
69457         Now a macro, to pacify GCC.
69458
69459 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69460
69461         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
69462         of -1.
69463
69464 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69465
69466         * lib/chown.c (rpl_chown): Return -1 on failure.
69467
69468 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69469
69470         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
69471         Don't check for stddef.h.
69472         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
69473         don't use its results.
69474         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
69475         since we include them unconditionally.  Don't require
69476         AM_STDBOOL_H, since stdbool is a prerequisite.
69477         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
69478         since we assume C89 or better.
69479         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
69480         as we don't use their results.
69481         Don't check for fchdir, memmove, memset, strrchr, as we use
69482         them unconditionally.
69483         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
69484         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
69485
69486 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69487
69488         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
69489         Include <stddef.h> unconditionally, since we assume C89 now.
69490         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
69491         * lib/fts.c: Include fts_.h first, to check interface.
69492         Do not include intprops.h; no longer needed.
69493         Include cycle-check.h and hash.h, since fts_.h no longer does.
69494         Remove unnecessary casts of closedir to void.
69495         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
69496         decide whether to decrement nlinks.
69497         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
69498         (FTS): Use struct hash_table * instead of Hash_table, so that
69499         we no longer need to include hash.h here.
69500
69501 2005-05-18  Jim Meyering  <jim@meyering.net>
69502
69503         * modules/dirfd (License): Change to LGPL.  Most of the code
69504         is already in the public domain.
69505
69506 2005-05-18  Jim Meyering  <jim@meyering.net>
69507
69508         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
69509         Reported by Yoann Vandoorselaere.
69510
69511 2005-05-17  Jim Meyering  <jim@meyering.net>
69512
69513         * m4/fts.m4: New file, from coreutils.
69514
69515 2005-05-17  Jim Meyering  <jim@meyering.net>
69516
69517         * lib/fts.c, lib/fts_.h: New files, from coreutils.
69518
69519 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69520
69521         Sync from coreutils.
69522         * m4/unlinkdir.m4: New file.
69523
69524 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69525
69526         Sync from coreutils.
69527         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
69528         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
69529         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
69530         White space changes only.
69531         * lib/makepath.c (make_path): Port to hosts where leading "//" is
69532         special.
69533         * lib/yesno.c: Include getline.h, not ctype.h.
69534         (yesno): Don't remove leading white space; POSIX doesn't allow it.
69535         Use getline to remove arbitrary restriction on response length.
69536
69537 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69538
69539         * config/srclist-update: Spell out "Street" in FSF postal
69540         mail address; this is the style the FSF seems to prefer.
69541
69542         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
69543         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
69544         this updates FSF postal mail address.
69545
69546         Sync from coreutils.
69547         * modules/unlinkdir: New file.
69548         * modules/yesno (Depends-on): Add getline.
69549         * MODULES.html.sh (File system functions): Add unlinkdir.
69550
69551 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69552
69553         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
69554         lib/strsep.h:
69555         Change the initial comment to refer to GPL, not LGPL.
69556         gnulib-tool will change it to LGPL as needed.
69557
69558         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
69559         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
69560         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
69561         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
69562         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
69563         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
69564         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
69565         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
69566         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
69567         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
69568         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
69569         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
69570         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
69571         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
69572         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
69573         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
69574         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
69575         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
69576         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
69577         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
69578         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
69579         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
69580         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
69581         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
69582         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
69583         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
69584         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
69585         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
69586         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
69587         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
69588         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
69589         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
69590         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
69591         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
69592         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
69593         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
69594         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
69595         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
69596         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
69597         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
69598         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
69599         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
69600         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
69601         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
69602         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
69603         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
69604         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
69605         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
69606         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
69607         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
69608         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
69609         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
69610         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
69611         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
69612         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
69613         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
69614         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
69615         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
69616         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
69617         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
69618         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
69619         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
69620         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
69621         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
69622         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
69623         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
69624         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
69625         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
69626         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
69627         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
69628         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
69629         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
69630         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
69631         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
69632         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
69633         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
69634         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
69635         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
69636         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
69637         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
69638         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
69639         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
69640         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
69641         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
69642         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
69643         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
69644         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
69645         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
69646         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
69647         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
69648         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
69649         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
69650         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
69651         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
69652         lib/yesno.c, lib/yesno.h:
69653         Update FSF postal mail address.
69654
69655 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69656
69657         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
69658         tests/test-memmem.c, tests/test-stpncpy.c:
69659         Update FSF postal mail address.
69660
69661 2005-05-13  Bruno Haible  <bruno@clisp.org>
69662
69663         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
69664         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
69665         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
69666         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
69667         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
69668         Add support for 64-bit integers in the MSVC compiler.
69669
69670 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69671
69672         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
69673
69674 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
69675
69676         * gnulib-tool (func_import): Sort and uniquify recommended includes.
69677
69678 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
69679
69680         * doc/getdate.texi (General date syntax): Don't say that date
69681         date --iso-8601=ns generates acceptable dates; it doesn't yet.
69682         Problem reported by Nic Ferrier.
69683
69684 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69685
69686         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
69687         specified in ai_socktype. Fix invalid ai_protocol
69688         check. ai_protocol is usually set to 0 or depending on
69689         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
69690         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
69691         ai_socktype / ai_protocol in the returned addrinfo structure.
69692
69693 2005-05-10  Simon Josefsson  <jas@extundo.com>
69694
69695         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
69696         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69697
69698 2005-05-10  Karl Berry  <karl@gnu.org>
69699
69700         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
69701         (from http://www.gnu.org/licenses).
69702         * doc/COPYING.LIB: also rename to COPYING.LESSER.
69703         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
69704         fdl.texi suffices.
69705
69706 2005-05-10  Karl Berry  <karl@gnu.org>
69707
69708         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
69709         (COPYING.DOC): remove.
69710
69711         * config/srclist-update: new FSF address.
69712
69713 2005-05-10  Derek Price  <derek@ximbiot.com>
69714
69715         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
69716         possible.
69717
69718 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69719             Bruno Haible  <bruno@clisp.org>
69720
69721         * modules/inet_ntop: New file.
69722         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69723         inet_ntop.
69724
69725 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69726             Bruno Haible  <bruno@clisp.org>
69727
69728         * m4/inet_ntop.m4: New file.
69729
69730 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69731             Bruno Haible  <bruno@clisp.org>
69732
69733         * lib/inet_ntop.h: New file.
69734         * lib/inet_ntop.c: New file, from glibc with modifications.
69735
69736 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
69737
69738         * modules/time_r (License): Change to LGPL.
69739         * modules/extensions (License): Change to LGPL.  Actually,
69740         the license is more permissive than that, but currently gnulib-tool
69741         doesn't know how to handle more-permissive licenses.
69742
69743         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
69744         Problem reported by Dave Love.
69745
69746 2005-05-08  Jim Meyering  <jim@meyering.net>
69747
69748         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
69749         blank.
69750
69751 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
69752
69753         * modules/argmatch (Depends-on): Add stdbool.
69754         * modules/backupfile (Depends-on): Likewise.
69755         * modules/chdir-long (Depends-on): Likewise.
69756         * modules/closeout (Depends-on): Likewise.
69757         * modules/cycle-check (Depends-on): Likewise.
69758         * modules/dirname (Depends-on): Likewise.
69759         * modules/fnmatch (Depends-on): Likewise.
69760         * modules/fsusage (Depends-on): Likewise.
69761         * modules/fwriteerror (Depends-on): Likewise.
69762         * modules/getcwd (Depends-on): Likewise.
69763         * modules/getloadavg (Depends-on): Likewise.
69764         * modules/hard-locale (Depends-on): Likewise.
69765         * modules/makepath (Depends-on): Likewise.
69766         * modules/mountlist (Depends-on): Likewise.
69767         * modules/nanosleep (Depends-on): Likewise.
69768         * modules/posixtm (Depends-on): Likewise.
69769         * modules/quotearg (Depends-on): Likewise.
69770         * modules/readtokens (Depends-on): Likewise.
69771         * modules/readtokens0 (Depends-on): Likewise.
69772         * modules/readutmp (Depends-on): Likewise.
69773         * modules/save-cwd (Depends-on): Likewise.
69774         * modules/strftime (Depends-on): Likewise.
69775         * modules/userspec (Depends-on): Likewise.
69776         * modules/utimecmp (Depends-on): Likewise.
69777         * modules/xgetcwd (Depends-on): Likewise.
69778         * modules/xnanosleep (Depends-on): Likewise.
69779         * modules/xstrtod (Depends-on): Likewise.
69780         * modules/yesno (Depends-on): Likewise.
69781
69782 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
69783
69784         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
69785         needless checks.
69786
69787 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69788
69789         Merge from coreutils.  Among other things,
69790         add bulletproofing for cases where stdin, stdout, or stderr are closed.
69791         * lib/fd-safer.c: New file.
69792         * lib/fcntl-safer.h, open-safer.c: Remove.
69793         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
69794         * lib/dup-safer.c: Include unistd-safer.h first.
69795         Don't include errno.h.
69796         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
69797         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
69798         * lib/file-type.c: Rely on file-type.h change.
69799         * lib/getloadavg.c: Include unistd-safer.h.
69800         (getloadavg): Use safer open.
69801         * lib/getusershell.c: Include "stdio-safer.h".
69802         (getusershell): Use safer fopen.
69803         * lib/long-options.c (long_options): Use NULL rather than 0.
69804         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
69805         'free'.
69806         * lib/modechange.c: Likewise.
69807         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
69808         (MODE_DONE): New constant.
69809         (struct mode_change): Remove 'next' member.
69810         (make_node_op_equals): New function; like the old one of the
69811         same name, except it allocates an array.
69812         (mode_compile, mode_create_from_ref): Use it.
69813         (mode_compile): Allocate result as an array, not a linked list.
69814         Parse octal string ourself, so that we catch mistakes like "+0".
69815         (mode_adjust): Arg is an array, not a linked list.
69816         * lib/modechange.c: Include stat-macros.h, xalloc.h.
69817         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
69818         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
69819         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
69820         Remove.  This is now stat-macros.h's job.
69821         (talloc): Remove.  All callers replaced by xalloc, so that
69822         our invokers don't have to worry about reporting memory failures.
69823         (make_node_op_equals): Remove.
69824         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
69825         New constants.
69826         (struct mode_change): Moved here from modechange.h.
69827         (mode_append_entry): Remove.
69828         (mode_compile): Remove MASKED_OPS arg, since it encouraged
69829         apps to have incorrect behavior.  Use simpler algorithm for head
69830         and tail.  Don't futz with umask; that's now the job of mode_adjust.
69831         Detect more invalid usages rather than having somewhat-random behavior.
69832         Don't insert an "a=" action, as that leads to incorrect behavior.
69833         (mode_compile, mode_create_from_ref): Return NULL on error instead
69834         of an enum, since now there's only one way to have an error.  All
69835         callers changed.
69836         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
69837         at the correct time.  Simplify calculation of "+u" and its ilk.
69838         Don't mishandle "+X".
69839         (mode_free): Remove "register" and localize decls.
69840         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
69841         (struct mode_change): Move to modechange.c; callers don't
69842         need to see this stuff.
69843         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
69844         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
69845         (mode_change, mode_adjust): Reflect the new signatures noted above.
69846         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
69847         that might redefine system include files.
69848         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
69849         (my_usleep): Use NULL rather than (void *) 0.
69850         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
69851         Use siginterrupt to specify that system calls should be interrupted.
69852         (rpl_nanosleep): Move initialization of suspended closer to call of
69853         my_usleep.
69854         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
69855         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
69856         (desirable_utmp_entry): New function.
69857         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
69858         using x2nrealloc, to simplify logic.
69859         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
69860         size calculation.  Do not assume utmp file is a regular file.
69861         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
69862         (READ_UTMP_CHECK_PIDS): New constant.
69863         * lib/save-cwd.c: Include unistd-safer.h.
69864         (save_cwd): Use fd_safer.
69865         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
69866         [!_LIBC] Include "stat-macros.h" instead.
69867         * lib/unistd-safer.h (fd_safer): New decl.
69868
69869 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69870
69871         * modules/getloadavg (Depends-on): Add unistd-safer.
69872         * modules/getusershell (Depends-on): Add stdio-safer.
69873         * modules/lstat (Depends-on): Remove xalloc.
69874         * modules/mkstemp (Depends-on): Add stat-macros.
69875         * modules/modechange (Depends-on): Remove xstrtol.
69876         Add stat-macros, xalloc.
69877         * modules/save-cwd (Depends-on): Add unistd-safer.
69878         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
69879         * modules/unistd-safer (Files): Add lib/fd-safer.c
69880         (Makefile.am): Remove lib_SOURCES.
69881
69882         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
69883         Remove fcntl-safer; unistd-safer supersedes it.
69884
69885 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69886
69887         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
69888         AC_HEADER_STAT.
69889         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
69890         (gl_PREREQ_CHOWN): Remove.
69891         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
69892         it.  Don't require AC_HEADER_STAT.
69893         (gl_PREREQ_LSTAT): Remove.
69894         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
69895         Don't require AC_HEADER_STAT.
69896         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
69897         (gl_PREREQ_RMDIR): Remove.
69898         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
69899         mention stat-macros.h or AC_HEADER_STAT, since we'll make
69900         the stat-macros module a prerequisite.
69901         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
69902         * m4/filemode.m4 (gl_FILEMODE): Likewise.
69903         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
69904         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
69905         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
69906         variable names.
69907         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
69908         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
69909         variable prefixes.
69910         * m4/fcntl-safer.m4: Remove.
69911         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
69912         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
69913         Invoke gl_PREREQ_FD_SAFER.
69914         (gl_PREREQ_FD_SAFER): New macro.
69915         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
69916         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
69917         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
69918         Remove duplicate call to AC_LIBOBJ(readutmp).
69919         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
69920
69921         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
69922         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
69923
69924 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69925
69926         * MODULES.html.sh (Misc): Add byteswap.
69927
69928 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69929
69930         * modules/getcwd (Depends-on): Add extensions.
69931         * modules/openat (Depends-on): Likewise.
69932
69933 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69934
69935         * modules/byteswap: New file.
69936
69937 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69938
69939         * m4/byteswap.m4: New file.
69940
69941 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69942
69943         * lib/byteswap_.h: New file.
69944
69945 2005-04-25  Karl Berry  <karl@gnu.org>
69946
69947         * m4/gettext.m4: Update from GNU gettext 0.14.4.
69948
69949 2005-04-25  Albert Chin  <china@thewrittenword.com>
69950
69951         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
69952         Toolkit C bug.
69953
69954 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
69955
69956         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
69957         (func_ln_if_changed): Remove forcibly for no error message
69958         in case file does not exist.
69959
69960 2005-04-19  Simon Josefsson  <jas@extundo.com>
69961
69962         * gnulib-tool (Options): Make --symlink mean --symbolic.
69963
69964 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
69965
69966         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
69967
69968 2005-04-16  Simon Josefsson  <jas@extundo.com>
69969
69970         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
69971
69972 2005-04-15  Simon Josefsson  <jas@extundo.com>
69973
69974         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
69975
69976 2005-04-15  Simon Josefsson  <jas@extundo.com>
69977
69978         * gnulib-tool: Rename --symlink to --symbolic.
69979
69980 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
69981
69982         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
69983         symbolic links to files instead of copying/moving.  Add --aux-dir,
69984         specifying directory relative --dir where auxiliary build tools
69985         are placed.
69986
69987 2005-04-14  Bruno Haible  <bruno@clisp.org>
69988
69989         * modules/allocsa (License): Change to LGPL.
69990         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
69991
69992 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69993
69994         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
69995         that "UTC +1 second" continues to work.  Problem reported
69996         by Dmitry V. Levin.
69997         (relunit_snumber): New rule.
69998         (relunit): Use it.
69999
70000 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70001
70002         * lib/getdate.y (universal_time_zone_table): New constant.
70003         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
70004         universal_time_zone_table.
70005         (lookup_zone): Prefer universal_time_zone_table to
70006         local_time_zone_table, so that "GMT" time stamps are allowed in
70007         London during the summer.  Problem reported by Ian Abbott.
70008
70009 2005-04-12  Jim Meyering  <jim@meyering.net>
70010
70011         * lib/human.c (humblock): Set *options even when returning due to
70012         xstrtoumax conversion failure.  Thanks to a used-uninitialized
70013         warning from gcc-4.
70014
70015 2005-04-09  Jim Meyering  <jim@meyering.net>
70016
70017         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
70018         -Wuninitialized: initialize tm0.tm_year.
70019
70020 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70021
70022         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
70023         count, since there's no maximum.  All uses changed.
70024         Add member dsts_seen.
70025         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
70026         not being INT_MAX.
70027         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
70028         Use pc_rels_seen to decide whther a date is absolute.
70029
70030         * lib/getdate.y (number): Don't overwrite year.
70031         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
70032         check.
70033
70034 2005-04-02  Simon Josefsson  <jas@extundo.com>
70035
70036         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
70037         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
70038
70039 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
70040
70041         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
70042         where no absolute path name can be longer than PATH_MAX.
70043
70044 2005-03-27  Jim Meyering  <jim@meyering.net>
70045
70046         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
70047
70048 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
70049
70050         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
70051         "one's complement" -> "ones' complement" in comment, as per Knuth.
70052         "value of type" -> "type or expression" in comment.
70053         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
70054
70055 2005-03-26  Jim Meyering  <jim@meyering.net>
70056
70057         Comment nits.
70058         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
70059         Correct typos: s/or/of/.
70060
70061 2005-03-26  Jim Meyering  <jim@meyering.net>
70062
70063         * modules/check-include-files: Move to ../ and rename to...
70064         * check-module: ...this.
70065
70066 2005-03-25  Jim Meyering  <jim@meyering.net>
70067
70068         * modules/xvasprintf (Files): Add xalloc.h.
70069
70070 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70071
70072         * modules/gettext (Files): config/config.rpath ->
70073         build-aux/config.rpath
70074         * modules/iconv (Files): Likewise.
70075         Problem reported by Oskar Liljeblad.
70076
70077 2005-03-23  Jim Meyering  <jim@meyering.net>
70078
70079         * modules/check-include-files: New script to check for
70080         missing dependencies, multiple includes, etc.
70081
70082         * modules/c-strtold (Depends-on): Add xalloc.
70083         * modules/c-strtod (Depends-on): Add xalloc.
70084         * modules/hash (Depends-on): Add xalloc.
70085         (Files): Remove lib/xalloc.h.
70086
70087         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
70088         * modules/userspec (Files): Add lib/inttostr.h.
70089
70090 2005-03-23  Jim Meyering  <jim@meyering.net>
70091
70092         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
70093
70094 2005-03-22  Jim Meyering  <jim@meyering.net>
70095
70096         * modules/stat-macros: New module.
70097         * modules/canonicalize, modules/euidaccess, modules/file-type,
70098         * modules/filemode, modules/lchown, modules/makepath,
70099         * modules/rmdir, modules/stat: Depend on new stat-macros module
70100         rather than listing lib/stat-macros.h manually.
70101         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
70102
70103 2005-03-22  Jim Meyering  <jim@meyering.net>
70104
70105         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
70106
70107 2005-03-22  Bruno Haible  <bruno@clisp.org>
70108
70109         * config/srclist.txt: Replace target directory 'config' with
70110         'build-aux'.
70111         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
70112         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
70113         ../build-aux/.
70114
70115 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
70116
70117         * modules/chdir-long (Depends-on): Add mempcpy.
70118
70119         * modules/acl, modules/backupfile, modules/c-strtod,
70120         modules/c-strtold, modules/canon-host, modules/canonicalize,
70121         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
70122         modules/exclude, modules/exitfail, modules/file-type,
70123         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
70124         modules/getdate, modules/getline, modules/getpagesize,
70125         modules/getpass, modules/getugroups, modules/group-member,
70126         modules/hard-locale, modules/hash, modules/human, modules/idcache,
70127         modules/inttostr, modules/long-options, modules/makepath,
70128         modules/md5, modules/memcasecmp, modules/memcoll,
70129         modules/modechange, modules/mountlist, modules/path-concat,
70130         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
70131         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
70132         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
70133         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
70134         modules/strftime, modules/strndup, modules/strverscmp,
70135         modules/timespec, modules/unlocked-io, modules/userspec,
70136         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
70137         modules/yesno:
70138         Remove lib_SOURCES line from Makefile.am section, as this is now
70139         done automatically by the corresponding Autoconf macro.
70140
70141 2005-03-21  Jim Meyering  <jim@meyering.net>
70142
70143         Changes imported from coreutils.
70144
70145         * lib/cycle-check.c: Don't include xalloc.h.
70146
70147         * lib/path-concat.c: Don't include assert.h.
70148         (path_concat): Remove assertion that would have triggered
70149         for ABASE starting with more than one slash.
70150         Reported by Andreas Schwab.
70151
70152         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
70153         properly when ABASE is an absolute file name.
70154         Correct the description of this function.
70155         Include <assert.h>.
70156         Add an assertion and a test driver.
70157         This fixes a bug introduced on 2004-07-02.
70158         Andreas Schwab reported the resulting failure of cp --parents:
70159         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
70160
70161 2005-03-21  Jim Meyering  <jim@meyering.net>
70162
70163         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
70164         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
70165
70166 2005-03-21  Jim Meyering  <jim@meyering.net>
70167         and  Paul Eggert  <eggert@cs.ucla.edu>
70168
70169         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
70170         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
70171         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
70172         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
70173         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
70174         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
70175         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
70176         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
70177         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
70178         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
70179         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
70180         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
70181         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
70182         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
70183         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
70184         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
70185         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
70186         for these modules.
70187
70188 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
70189
70190         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
70191         (which shouldn't happen), generate nothing instead of returning 0
70192         immediately, so that nstrftime (NULL, ...) doesn't return 0.
70193
70194 2005-03-16  Bruno Haible  <bruno@clisp.org>
70195
70196         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
70197         HAVE_LONGLONG_64BIT.
70198
70199 2005-03-16  Bruno Haible  <bruno@clisp.org>
70200
70201         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
70202         HAVE_LONGLONG_64BIT.
70203
70204 2005-03-16  Bruno Haible  <bruno@clisp.org>
70205
70206         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
70207         HAVE_LONGLONG_64BIT.
70208
70209 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70210
70211         * lib/strftime.c (my_strftime): Prepend space to format so that we can
70212         reliably distinguish strftime failure from empty output on POSIX
70213         hosts.
70214
70215 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70216
70217         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
70218         (iconv_string): Don't guess a size-zero buffer, as that might cause
70219         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
70220         result would be 'too large', where 'too large' is (heuristically)
70221         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
70222         overflow concerns.  This will prevent some unwanted malloc failures
70223         when the inputs are very large.
70224
70225 2005-03-15  Karl Berry  <karl@gnu.org>
70226
70227         * config/srclist.txt (config.rpath): from gettext.
70228         * config/config.rpath: update.
70229
70230 2005-03-15  Bruno Haible  <bruno@clisp.org>
70231
70232         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
70233         to 'negate'.
70234
70235         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
70236         variable.
70237
70238         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
70239         results.
70240
70241 2005-03-14  Simon Josefsson  <jas@extundo.com>
70242
70243         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
70244         <fx@gnu.org>.
70245
70246 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
70247
70248         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
70249         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
70250         intprops.h.
70251         * lib/strtol.c: Likewise.
70252
70253 2005-03-14  Jim Meyering  <jim@meyering.net>
70254
70255         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
70256         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
70257         to be nonzero so that we (and caller) can detect the difference
70258         between a valid zero-length expansion and an error return, even
70259         when the underlying strftime fails before writing anything into
70260         that location.
70261
70262 2005-03-14  Bruno Haible  <bruno@clisp.org>
70263
70264         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
70265         Update from GNU gettext 0.14.3.
70266
70267 2005-03-10  Jim Meyering  <jim@meyering.net>
70268
70269         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
70270
70271 2005-03-10  Jim Meyering  <jim@meyering.net>
70272
70273         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
70274         so that this module works on systems without fchdir.
70275
70276 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
70277
70278         Factor int-properties macros into a single file, except for
70279         glibc-related files.
70280         * lib/intprops.h: New file.
70281         * lib/getloadavg.c: Include it instead of limits.h.
70282         (INT_STRLEN_BOUND): Remove.
70283         * lib/human.c: Include intprops.h.
70284         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
70285         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
70286         302/1000.
70287         * lib/inttostr.h: Include intprops.h instead of limits.h.
70288         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
70289         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
70290         for consistency with intprops.h.
70291         (time_t_is_integer, twos_complement_arithmetic): Use them.
70292         * lib/sig2str.h: Include <signal.h>, intprops.h.
70293         (INT_STRLEN_BOUND): Remove.
70294         * lib/strftime.c (TYPE_SIGNED): Remove.
70295         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
70296         * lib/strtol.c: Adjust comments to match intprops.h.
70297         * lib/userspec.c: Include intprops.h.
70298         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
70299         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
70300         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
70301         instead of rolling our own expressions.
70302         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
70303
70304         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
70305         instead of int.
70306         (my_strftime): Do not mishandle years close to INT_MAX, by doing
70307         the right thing even if adding 1900 would overflow.  Similarly
70308         for tm_mon + 1 and tm_yday + 1.
70309         Make %Y always equivalent to %C%y, and similarly for %G and %g.
70310         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
70311         (DO_SIGNED_NUMBER): New macro.
70312         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
70313
70314 2005-03-07  Bruno Haible  <bruno@clisp.org>
70315
70316         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
70317
70318 2005-03-07  Bruno Haible  <bruno@clisp.org>
70319
70320         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
70321
70322 2005-03-04  Derek R. Price  <derek@ximbiot.com>
70323
70324         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
70325         (func_import): Only replace files via --import when they have actually
70326         changed.
70327
70328 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70329
70330         * m4/mmap-anon.m4: New file.
70331         * m4/pagealign_alloc.m4: New file.
70332
70333 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70334             Bruno Haible  <bruno@clisp.org>
70335
70336         * modules/pagealign_alloc: New file.
70337         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
70338
70339 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70340             Bruno Haible  <bruno@clisp.org>
70341
70342         * lib/pagealign_alloc.h: New file.
70343         * lib/pagealign_alloc.c: New file.
70344
70345 2005-03-03  Bruno Haible  <bruno@clisp.org>
70346
70347         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
70348         Use an all-permissive copyright notice, recommended by RMS.
70349
70350 2005-03-02  Bruno Haible  <bruno@clisp.org>
70351
70352         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
70353         of AIX, the replacement has to be done only after <string.h> is
70354         included, therefore not in config.h. stpncpy.h does the replacement,
70355         and stpncpy.c uses it.
70356
70357 2005-03-02  Bruno Haible  <bruno@clisp.org>
70358
70359         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
70360         stpncpy.c uses it.
70361
70362 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70363
70364         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
70365         The workaround isn't strictly needed for POSIX conformance, and
70366         it's too much of a pain to configure and maintain.  We'll ask
70367         people to fix their kernels instead.
70368         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
70369         (NANOSLEEP_BUG_WORKAROUND): Remove.
70370         (xnanosleep): Remove the workaround.
70371
70372 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70373
70374         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
70375         Reported by Derek Price.
70376         (Include): Add "timespec.h".
70377
70378         * modules/xnanosleep (Depends-on): Remove gethrxtime.
70379
70380 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70381
70382         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
70383         to detect nanosleep bug.
70384
70385 2005-03-01  Bruno Haible  <bruno@clisp.org>
70386
70387         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
70388
70389 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
70390
70391         * modules/gethrxtime: New file.
70392         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
70393         (Depends-on): Add gethrxtime.
70394         (configure.ac): Add gl_XNANOSLEEP.
70395         (Makefile.am): Remove lib_SOURCES line.
70396
70397 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70398
70399         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
70400         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
70401
70402 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70403
70404         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
70405         * lib/timespec.h (gettime): Return void, since it always
70406         succeeds now.  All uses changed.
70407         * lib/gettime.c (gettime): Likewise.
70408         [HAVE_NANOTIME]: Prefer nanotime.
70409         Assume gettimeofday succeeds, as POSIX requires.
70410         Assime time () succeeds, since other code already does.
70411         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
70412         (timespec_subtract): Remove.
70413         (NANOSLEEP_BUG_WORKAROUND): New constant.
70414         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
70415         things considerably.  Use it only on GNU/Linux hosts, since the
70416         workaround shouldn't be needed elsewhere.
70417
70418 2005-02-24  Bruno Haible  <bruno@clisp.org>
70419
70420         * modules/gettext (Files): Add m4/glibc2.m4.
70421
70422 2005-02-24  Bruno Haible  <bruno@clisp.org>
70423
70424         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
70425         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
70426         * m4/progtest.m4:
70427         Update from GNU gettext 0.14.2.
70428         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
70429
70430 2005-02-24  Bruno Haible  <bruno@clisp.org>
70431
70432         * lib/localcharset.c: Update from GNU gettext 0.14.2.
70433         * lib/config.charset: Update from GNU gettext 0.14.2.
70434
70435 2005-02-24  Bruno Haible  <bruno@clisp.org>
70436
70437         * lib/gettext.h: Update from GNU gettext 0.14.2.
70438
70439 2005-02-23  Simon Josefsson  <jas@extundo.com>
70440
70441         * m4/iconvme.m4: New file.
70442
70443 2005-02-23  Jim Meyering  <jim@meyering.net>
70444
70445         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
70446         change.
70447         Thanks to Bruno Haible for catching it.
70448
70449 2005-02-22  Simon Josefsson  <jas@extundo.com>
70450
70451         * modules/iconvme: New file.
70452
70453         * MODULES.html.sh: Add iconvme.
70454
70455 2005-02-22  Simon Josefsson  <jas@extundo.com>
70456
70457         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
70458
70459 2005-02-22  Simon Josefsson  <jas@extundo.com>
70460
70461         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
70462
70463 2005-02-22  Jim Meyering  <jim@meyering.net>
70464
70465         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
70466         s/ifndef/ifdef/.
70467
70468 2005-02-20  Neil Conway  <neilc@samurai.com>
70469
70470         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
70471         returned by OSX/Darwin if the specified buffer is not large
70472         enough for the hostname.
70473
70474 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70475
70476         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
70477         pass it to _help, otherwise the latter coredumps trying to
70478         dereference state.root_argp.
70479
70480 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70481
70482         * modules/chdir-long (Depends-on): Add memrchr.
70483         * modules/memrchr (Files): Add lib/memrchr.h.
70484         (Include): "memrchr.h".
70485
70486 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70487
70488         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
70489
70490 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70491
70492         * lib/memrchr.h: New file.
70493         * lib/chdir-long.c: Include it.
70494         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
70495         Don't bother including stddef.h.
70496
70497 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70498
70499         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
70500         inclusion.
70501         Include <sys/types.h>, for dev_t.
70502         (ME_DUMMY, ME_REMOTE): Move from here....
70503         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
70504         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
70505         Dmitry V. Levin.
70506         Include mountlist.h first, to test the interface.
70507
70508 2005-01-29  Bruno Haible  <bruno@clisp.org>
70509
70510         * lib/progname.c (program_name): Initialize.
70511         Needed when linking statically on MacOS X.
70512
70513 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70514
70515         Sync from coreutils.
70516         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
70517         (Depends-on): Add c-strtod.
70518         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
70519
70520 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70521
70522         Sync from coreutils.
70523         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
70524
70525         Remove files that are specific to coreutils.
70526         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
70527
70528 2005-01-28  Bruno Haible  <bruno@clisp.org>
70529
70530         * modules/javacomp: New file.
70531         * MODULES.html.sh (Java): Add javacomp.
70532
70533 2005-01-28  Bruno Haible  <bruno@clisp.org>
70534
70535         * m4/javacomp.m4: New file, from GNU gettext.
70536
70537 2005-01-28  Bruno Haible  <bruno@clisp.org>
70538
70539         * lib/javacomp.sh.in: New file, from GNU gettext.
70540         * lib/javacomp.h: New file, from GNU gettext.
70541         * lib/javacomp.c: New file, from GNU gettext.
70542
70543 2005-01-26  Simon Josefsson  <jas@extundo.com>
70544
70545         * lib/gai_strerror.c: Use GPL in header.
70546
70547 2005-01-26  Bruno Haible  <bruno@clisp.org>
70548
70549         * modules/javaexec: New file.
70550         * MODULES.html.sh (Java): Add javaexec.
70551
70552 2005-01-26  Bruno Haible  <bruno@clisp.org>
70553
70554         * m4/javaexec.m4: New file, from GNU gettext.
70555
70556 2005-01-26  Bruno Haible  <bruno@clisp.org>
70557
70558         * lib/javaexec.sh.in: New file, from GNU gettext.
70559         * lib/javaexec.h: New file, from GNU gettext.
70560         * lib/javaexec.c: New file, from GNU gettext.
70561
70562 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70563
70564         * modules/lchown (Depends-on): Remove lchown.h
70565
70566 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70567
70568         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
70569         must be defined if the header file was not found, in order
70570         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
70571
70572 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70573
70574         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
70575         initializers for struct pentry_state.
70576         (__argp_error): Check return value of __asprintf
70577         (__argp_failure): Translate error message
70578
70579         * lib/argp-parse.c: Removed braces around the expansion of N_()
70580
70581 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70582
70583         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
70584         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
70585         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
70586         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
70587         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
70588         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
70589         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
70590         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
70591         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
70592         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
70593         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
70594         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
70595         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
70596         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
70597         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
70598         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
70599         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
70600         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
70601         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
70602         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
70603         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
70604         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
70605         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
70606         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
70607         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
70608         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
70609         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
70610         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
70611         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
70612         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
70613         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
70614         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
70615         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
70616         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
70617         xstrtol.m4, xstrtoumax.m4, yesno.m4:
70618         Use an all-permissive copyright notice, recommended by RMS.
70619
70620 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
70621
70622         * modules/chdir-long (Depends-on): Remove mempcpy.
70623
70624 2005-01-21  Jim Meyering  <jim@meyering.net>
70625
70626         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
70627         same value as for Solaris 9.
70628
70629         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
70630         component length.  This included changing the parameter to be
70631         of type `char *' rather than `char const *'.
70632         * lib/chdir-long.h (chdir_long): Update prototype.
70633
70634         * lib/openat.c (fdopendir, fstatat): New functions.
70635         * lib/openat.h: Include headers required for use of DIR and struct
70636         stat.
70637         [AT_SYMLINK_NOFOLLOW]: Define.
70638         (fdopendir, fstatat): Add prototypes.
70639
70640 2005-01-21  Bruno Haible  <bruno@clisp.org>
70641
70642         * modules/classpath: New file.
70643         * MODULES.html.sh (Java): Add classpath.
70644
70645 2005-01-21  Bruno Haible  <bruno@clisp.org>
70646
70647         * lib/classpath.h: New file, from GNU gettext.
70648         * lib/classpath.c: New file, from GNU gettext.
70649
70650 2005-01-20  Simon Josefsson  <jas@extundo.com>
70651
70652         * modules/version-etc-fsf: New file.
70653
70654 2005-01-20  Simon Josefsson  <jas@extundo.com>
70655
70656         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
70657         * lib/version-etc.c: Remove version_etc_copyright.
70658         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
70659         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
70660
70661 2005-01-20  Simon Josefsson  <jas@extundo.com>
70662
70663         * lib/base64.h (isbase64): Add.
70664
70665         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
70666         using a unsigned prototype, don't inline.
70667         (base64_decode): Use it.
70668
70669 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70670
70671         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
70672         it.
70673
70674 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70675
70676         * lib/save-cwd.c (save_cwd): Remove code to support the case
70677         where fchdir is missing or flaky.
70678
70679 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70680
70681         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
70682
70683 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70684
70685         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
70686         AC_LIBSOURCES now does this.
70687         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
70688         with new ullong_max module.
70689
70690 2005-01-19  Bruno Haible  <bruno@clisp.org>
70691
70692         * modules/sh-quote: New file.
70693         * MODULES.html.sh (Executing programs): Add sh-quote.
70694
70695 2005-01-19  Bruno Haible  <bruno@clisp.org>
70696
70697         * lib/sh-quote.h: New file, from GNU gettext.
70698         * lib/sh-quote.c: New file, from GNU gettext.
70699
70700 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70701
70702         Merge from coreutils.
70703         * m4/ullong_max.m4: New file.
70704         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
70705         (gl_MACROS): Assume localeconv exists.
70706
70707 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70708
70709         Merge changes from coreutils, as described below in several
70710         changelogs dated today.
70711
70712         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
70713         (O_DIRECTORY): Remove; not needed here, since "." must be
70714         a directory.  All uses removed.
70715         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
70716         universal on Suns, and we also need to test for IRIX.
70717         Revamp code to use 'if' rather than '#if'.
70718         Avoid unnecessary comparison of cwd->desc to 0.
70719
70720         * lib/utimens.c (futimens): Robustify the previous patch, by checking
70721         for known valid error numbers rather than observed invalid ones.
70722
70723 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70724
70725         * modules/ullong_max: New file.
70726
70727         * modules/chdir-long, modules/openat: New files.
70728         * modules/save-cwd (Depends-on): Depend on chdir-long.
70729         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
70730
70731 2005-01-18  Jim Meyering  <jim@meyering.net>
70732
70733         Merge from coreutils.
70734         * m4/chdir-long.m4, m4/openat.m4: New files.
70735         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
70736         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
70737         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
70738         is sane and DOES follow symlinks.  Besides, testing 20 different
70739         systems found no broken chown implementations.
70740         Prompted by a change in rsync's copy of this macro.
70741         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
70742
70743         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
70744
70745         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
70746         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
70747         NULL-means-set-to-current-time semantics.
70748         Remove temporary file immediately, rather than waiting
70749         for configure's at-exit trap code to do it.
70750
70751 2005-01-18  Jim Meyering  <jim@meyering.net>
70752
70753         * lib/version-etc.c (version_etc_copyright): Update copyright date.
70754
70755         * lib/utimens.c (futimens): Account for the fact that futimes
70756         can also fail with errno == ENOSYS or errno == ENOENT.
70757         Patch from Dmitry V. Levin.
70758
70759         Change the name of the robust chdir function from chdir to chdir_long.
70760         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
70761         (restore_cwd): Use chdir_long, not chdir.
70762         * lib/chdir-long.c: Renamed from chdir.c.
70763         * lib/chdir-long.h: Renamed from chdir.h.
70764         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
70765         Hurd.
70766
70767 2005-01-18  Bruno Haible  <bruno@clisp.org>
70768
70769         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
70770         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
70771         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
70772         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
70773         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
70774         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
70775         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
70776         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
70777         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
70778         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
70779         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
70780         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
70781         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
70782         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
70783         Use an all-permissive copyright notice, recommended by RMS.
70784
70785 2005-01-18  Bob Proulx  <bob@proulx.com>
70786
70787         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
70788         simplify offsetof() macro construct to avoid compile failure with
70789         native HP-UX 11.0 ANSI C compiler.
70790
70791 2005-01-17  Bruno Haible  <bruno@clisp.org>
70792
70793         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
70794         redundant because stpncpy.m4 takes care of it.
70795
70796 2005-01-17  Bruno Haible  <bruno@clisp.org>
70797
70798         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
70799
70800 2005-01-17  Bruno Haible  <bruno@clisp.org>
70801
70802         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
70803         used.
70804
70805 2005-01-17  Bruno Haible  <bruno@clisp.org>
70806
70807         * lib/fwriteerror.h (fwriteerror): Change specification to include
70808         fclose.
70809         * lib/fwriteerror.c: Include <stdbool.h>.
70810         (fwriteerror): At the end, close the file stream. Record whether
70811         stdout was already closed.
70812
70813 2005-01-17  Bruno Haible  <bruno@clisp.org>
70814
70815         * lib/execute.c (environ): Declare if needed.
70816         * lib/pipe.c (environ): Likewise.
70817         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
70818
70819 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70820
70821         * modules/argp: Depend on vsnprintf
70822
70823 2005-01-10  Jim Meyering  <jim@meyering.net>
70824
70825         * modules/closeout (Depends-on): Add atexit.
70826
70827 2005-01-06  Bruno Haible  <bruno@clisp.org>
70828
70829         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
70830
70831 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70832
70833         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
70834         definitions to be after all include files, to avoid collisions.
70835         Problem reported by Bob Proulx.
70836
70837 2005-01-04  Jim Meyering  <jim@meyering.net>
70838
70839         Changes imported from coreutils.
70840         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
70841         as the mkstemp template, use a temporary directory and an
70842         8.3-friendly template to avoid trouble on systems like DJGPP.
70843         Reported by Juan M. Guerrero via Stepan Kasal.
70844         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
70845         close. Remove the temporary directory right away, rather than waiting
70846         for configure's at-exit trap code to do it.
70847         Suggestion from Stepan Kasal.
70848
70849 2005-01-01  Simon Josefsson  <jas@extundo.com>
70850
70851         * gnulib-tool: Print #include directives when --import'ing.
70852
70853 2004-12-28  Simon Josefsson  <jas@extundo.com>
70854
70855         * tests/test-base64.c: Include required header files.  Remove
70856         unused variables.
70857
70858 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70859
70860         * modules/error (Depends-on): Remove gettext.
70861
70862 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70863
70864         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
70865         not needed.  This removes a dependency on the gettext module.
70866         [defined _LIBC]: Do not include <libintl.h>; not needed.
70867
70868 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
70869
70870         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
70871         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
70872
70873 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
70874
70875         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
70876         HAVE_DECL_STRTOLD.
70877
70878 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70879
70880         * modules/getdate (Depends-on): Remove alloca-opt.
70881
70882 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70883
70884         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
70885
70886 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70887
70888         * lib/argp-parse.c: Include <stddef.h>.
70889         (alignof, alignto): New macros.
70890         (parser_init): Don't assume that void * is aligned sufficiently
70891         for struct option.
70892
70893         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
70894         need to extend the stack.
70895         (YYINITDEPTH): New macro, so that the initial stack isn't overly
70896         large.
70897
70898 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70899
70900         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
70901
70902 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
70903
70904         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
70905         (2004-10-24) change.  Apparently this was a false alarm.
70906
70907         * modules/getdate: Depend on alloca-opt, not alloca.
70908
70909 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
70910
70911         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
70912         Remove now-obsolete comment about AIX.
70913         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
70914         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
70915         (YYMAXDEPTH): New macro.
70916
70917 2004-12-18  Simon Josefsson  <jas@extundo.com>
70918
70919         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
70920
70921 2004-12-18  Bruno Haible  <bruno@clisp.org>
70922
70923         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
70924
70925 2004-12-18  Bruno Haible  <bruno@clisp.org>
70926
70927         * lib/fatal-signal.c (fatal_signals): Make non-const.
70928         (init_fatal_signals): New function.
70929         (uninstall_handlers, install_handlers): Ignore signals that were set to
70930         SIG_IGN.
70931         (at_fatal_signal): Call init_fatal_signals.
70932         (init_fatal_signal_set): Likewise. Ignore signals that were set to
70933         SIG_IGN.
70934         Reported by Paul Eggert.
70935
70936 2004-12-18  Bruno Haible  <bruno@clisp.org>
70937
70938         * doc/alloca.texi: New file.
70939         * doc/alloca-opt.texi: New file.
70940
70941 2004-12-17  Jim Meyering  <jim@meyering.net>
70942
70943         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
70944         Otherwise, install-sh could exit with improper exit status when
70945         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
70946
70947 2004-12-16  Simon Josefsson  <jas@extundo.com>
70948
70949         * tests/test-base64.c: Add license.
70950
70951 2004-12-15  Stepan Kasal  <address@hidden>
70952
70953         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
70954
70955 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
70956
70957         * modules/getcwd (Files): Add m4/d-ino.m4.
70958         Suggested by Mark D. Baushke.
70959
70960 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
70961
70962         * lib/getdate.y (textint): New member "negative".
70963         (time_zone_hhmm): New function.
70964         Expect 14 shift-reduce conflicts, not 13.
70965         (o_colon_minutes): New rule.
70966         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
70967         (yylex): Set the "negative" member of signed numbers.
70968
70969 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
70970
70971         * doc/getdate.texi (Time of day items, Time zone items):
70972         Describe new formats +00:00, UTC+00:00.
70973
70974 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70975
70976         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
70977         spurious "-l"s.  Problem reported by Stepan Kasal.
70978
70979 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
70980
70981         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
70982         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
70983
70984 2004-12-04  Simon Josefsson  <jas@extundo.com>
70985
70986         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
70987         Vandoorselaere <yoann@prelude-ids.org>.
70988
70989 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70990
70991         Changes imported from coreutils.
70992         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
70993         exist.
70994         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
70995
70996 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70997
70998         Changes imported from coreutils.
70999         * lib/hard-locale.c: Assume <locale.h> exists.
71000         Include "strdup.h".
71001         (GLIBC_VERSION): New macro.
71002         (hard_locale): Assume setlocale exists.
71003         Rewrite to avoid #ifdef.
71004         Use strdup rather than malloc + strcpy.
71005         * lib/human.c: Assume <locale.h> exists.
71006         (human_readable): Assume localeconv exists.
71007
71008 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71009
71010         * modules/hard-locale (Depends-on): Add strdup.
71011
71012 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71013
71014         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
71015         convert T2, not T.  (Imported from libc.)
71016
71017 2004-11-30  Simon Josefsson  <jas@extundo.com>
71018
71019         * modules/restrict (License): Change to LGPL.
71020
71021 2004-11-30  Simon Josefsson  <jas@extundo.com>
71022
71023         * m4/restrict.m4: Add copyright and copying conditions.
71024
71025 2004-11-30  Simon Josefsson  <jas@extundo.com>
71026
71027         * m4/base64.m4: New file.
71028
71029 2004-11-30  Simon Josefsson  <jas@extundo.com>
71030
71031         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
71032         base64.
71033
71034         * tests/test-base64.c: New file.
71035
71036         * modules/base64: New file.
71037
71038 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71039
71040         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
71041         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
71042
71043         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
71044
71045 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71046
71047         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
71048         (__getcwd.c): Don't restore errno; glibc doesn't.
71049         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
71050         first, falling back to our code only if its results look suspicious.
71051         Ensure that the resulting buffer is only as large as necessary.
71052
71053         * lib/readutmp.c: Include readutmp.h first.
71054         Include <errno.h>, since readutmp.h no longer does that.
71055         * lib/readutmp.h: Don't include <errno.h>,
71056         <sys/param.h>, <time.h>; not needed to establish interface.
71057         (errno): Remove decl.
71058         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
71059         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
71060         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
71061
71062 2004-11-28  Simon Josefsson  <jas@extundo.com>
71063
71064         * lib/base64.h, base64.c: New file.
71065
71066 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71067
71068         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
71069
71070 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71071
71072         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
71073         (Depends-on): Remove pathmax, same.  Add mempcpy.
71074         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
71075         (Makefile.am): Append getcwd.h to lib_SOURCES.
71076         (Include): Add getcwd.h.
71077         (Maintainer): Change from Jim Meyering to "all, glibc",
71078         since getdate now uses intended-for-glibc code.
71079         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
71080         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
71081
71082 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71083
71084         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
71085         HP's ANSI C compiler.
71086         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
71087         Declaring int functions causes warnings on some modern systems and
71088         shouldn't be needed to compile on ancient ones.
71089         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
71090         defined.
71091
71092         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
71093         with the following changes.
71094         (__set_errno): Parenthesize properly.
71095         Include <stdbool.h>.
71096         (MIN, MAX, MATCHING_INO): New macros.
71097         (__getcwd): Define with prototype, not K&R form.
71098         Use heuristics to allocate default buffer on stack if possible.
71099         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
71100         behavior, and to avoid the PATH_MAX limit when computing
71101         ../../../../...
71102         Use MATCHING_INO to compare inode number to file.
71103         Check for arithmetic overflow in size calculations.
71104         Fix bug in reallocation of dot array that caused getcwd to fail
71105         on directories nested deeper than 75.
71106         Be more careful about saving errno on error.
71107         Do not use realloc; use only free+malloc, as this is a bit
71108         more flexible and avoids a needless copy operation.
71109         Do not inspect st_dev and st_ino for symbolic links; POSIX
71110         doesn't specify the latter.
71111         Check for closedir errors.
71112         Avoid needless casts.
71113         Use "#ifdef weak_alias" around weak_alias, to be like other
71114         glibc code.
71115         The following changes to getcwd.c have effect only when used in
71116         gnulib; they have no effect inside glibc proper.
71117         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
71118         as alloca isn't used.
71119         (alloca, __alloca): Likewise.
71120         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
71121         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71122         unconditionally, as gnulib assumes C89 or better.
71123         Do not include <sys/param.h>.
71124         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
71125         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
71126         better.
71127         (NULL) [!defined NULL]: Remove; we assume C89 or better.
71128         Include <dirent.h> in a way that is compatible with modern Autoconf.
71129         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
71130         New macros, if not already defined.
71131         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
71132         Use "_LIBC", not "defined _LIBC", for consistency.
71133         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
71134         a mempcpy module.
71135         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
71136         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
71137         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
71138         credit only to Jim Meyering and adjust the copyright dates.
71139         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
71140         <stdlib.h>, <unistd.h>, "pathmax.h".
71141         Instead, include "xgetcwd.h" (first) and "getcwd.h".
71142         (INITIAL_BUFFER_SIZE): Remove.
71143         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
71144
71145 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71146
71147         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
71148         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
71149         Use the _ONCE methods, for efficiency.
71150         Check for fcntl.h.  In test program, include <errno.h>
71151         and <fcntl.h> if available.  Remove old K&R cruft from
71152         test program.  Check for common errors in GNU/Linux,
71153         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
71154         don't do AC_LIBOBJ, as that's getcwd.m4's job.
71155         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
71156         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
71157         name accordingly.
71158         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
71159         accommodate new getcwd.c.
71160         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
71161         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
71162         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
71163         that's all we need now.
71164
71165 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71166
71167         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
71168         argp-parse.c depends on getopt internals, that means we should
71169         always use our getopt, to be on the safe side.
71170         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
71171         order not to spoil the result of an eventual previous invocation
71172         of gl_GETOPT_SUBSTITUTE.
71173
71174 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71175
71176         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
71177         redefinition warnings. To avoid them, include the defines
71178         in `#if !defined __need_getopt ... #endif'. The only place
71179         where __getopt_argv_const is used is in definitions
71180         of getopt_long and getopt_long_only below, which are as well
71181         protected by `#ifndef __need_getopt'.
71182         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
71183         __need_getopt after including <stdio.h> and <unistd.h> These
71184         headers might have defined it.
71185
71186 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71187
71188         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
71189
71190 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71191
71192         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
71193         (futimens): New function, which uses futimes if available.
71194         (futimens, utimens): Support timespec==NULL, with same semantics
71195         as utime and utimens.
71196         * lib/utimens.h (futimens): New decl.
71197
71198 2004-11-23  Jim Meyering  <jim@meyering.net>
71199
71200         * lib/getopt_.h: Remove trailing blanks.
71201
71202 2004-11-23  Jim Meyering  <jim@meyering.net>
71203
71204         * lib/__fpending.c: Add comment.
71205
71206 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
71207
71208         * modules/canonicalize (Depends-on): Add xreadlink.
71209         Problem reported by James Youngman.
71210
71211 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71212
71213         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
71214         New macros.
71215         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
71216         optopt): Use them instead of invoking ## directly; otherwise, the
71217         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
71218
71219 2004-11-19  Bruno Haible  <bruno@clisp.org>
71220
71221         * lib/strtok_r.c: Move comments from here...
71222         * lib/strtok_r.h: ... to here.
71223
71224 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71225
71226         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
71227         implementations that mishandle size_t overflow.
71228
71229 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71230
71231         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
71232         might fail.  Problem reported by Yoann Vandoorselaere.
71233         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
71234         implementations that mishandle size_t overflow.
71235
71236 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71237
71238         * modules/canon-host (Depends-on): Add strdup.
71239
71240 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71241
71242         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
71243
71244 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71245
71246         * lib/canon-host.c: Include "strdup.h".
71247         (canon_host): Use getaddrinfo if available, so that IPv6 works.
71248         Use strdup instead of malloc/strcpy to duplicate strings.
71249
71250         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
71251         (human_space_before_unit): New constant.
71252         * lib/human.c (human_readable): Support it.
71253
71254         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
71255         (xgetcwd): Set errno correctly when failing.
71256         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
71257         the failure is actually due to a PATH_MAX problem.
71258
71259         Further getopt changes to make it more likely that glibc will
71260         buy the changes back.
71261         * lib/getopt.c (POSIXLY_CORRECT): New constant.
71262         (getopt): Use it, so to preserve glibc semantic
71263         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
71264         when compiling for libc.
71265         * lib/getopt_.h (__getopt_argv_const): Bring it back.
71266         (getopt_long, getopt_long_only): Use it.
71267
71268         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71269         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
71270         (getopt): Argv is now char * const *, as per standard.
71271         (_getopt_internal_r, _getopt_internal): Argv is now char **,
71272         not char *__getopt_argv_const *.
71273         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71274         _getopt_long_only_r): Likewise.
71275         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
71276         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71277         _getopt_long_r, _getopt_long_only_r): Likewise.
71278         * lib/getopt_.h (__getopt_argv_const): Remove.
71279         (getopt): Argv is now char * const *, as per standard.
71280
71281         * lib/getdate.y (tORDINAL): New token.
71282         (day, relunit): Allow it for relative times.
71283         (relative_time_table): Use tORDINAL for ordinals.
71284
71285 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71286
71287         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
71288         Document that "second" isn't allowed as an ordinal number.
71289
71290 2004-11-16  Jim Meyering  <jim@meyering.net>
71291
71292         * modules/closeout (Depends-on): Add fpending.
71293
71294 2004-11-15  Jim Meyering  <jim@meyering.net>
71295
71296         * lib/closeout.c: Include "__fpending.h" once again.
71297         Include <stdbool.h>.
71298         (close_stdout): Don't fail just because stdout was closed initially,
71299         since some programs don't write to stdout in the normal course of
71300         operation (other than --version and --help), and we don't want this
71301         function to make e.g. `touch file >&-' fail.
71302         But do fail if it was closed and someone has tried to write to it.
71303         E.g., `printf foo >&-' must fail.
71304
71305 2004-11-13  Jim Meyering  <jim@meyering.net>
71306
71307         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
71308
71309 2004-11-12  Simon Josefsson  <jas@extundo.com>
71310
71311         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
71312         small doc fix is still pending.
71313
71314 2004-11-11  Simon Josefsson  <jas@extundo.com>
71315
71316         * modules/strtok_r: New file.
71317
71318         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71319         strtok_r.
71320
71321 2004-11-11  Simon Josefsson  <jas@extundo.com>
71322
71323         * m4/strtok_r.m4: New file.
71324
71325         * m4/getopt.m4: Replace opterr.
71326
71327 2004-11-11  Simon Josefsson  <jas@extundo.com>
71328
71329         * lib/strtok_r.h, strtok_r.c: New file.
71330
71331 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71332
71333         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
71334         of replacing opterr, getopt, etc.  This should handle the
71335         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
71336
71337 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71338
71339         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
71340         we can stop lying to compilers about the constness of argv when we
71341         are compiled outside glibc.
71342         (getopt, getopt_long, getopt_long_only): Use it.
71343         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71344         _getopt_internal, getopt): Likewise.
71345         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71346         _getopt_long_only_r): Likewise.
71347         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71348         _getopt_long_r, _getopt_long_only_r): Likewise.
71349
71350         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
71351         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
71352         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
71353         the other external symbols.
71354         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
71355         declaration, since the above renaming now works around collisions.
71356
71357 2004-11-11  Jim Meyering  <jim@meyering.net>
71358
71359         * lib/linebreak.c: Remove trailing blanks.
71360         * lib/alloca_.h: Likewise.
71361         * lib/acosl.c: Likewise.
71362         * lib/euidaccess.c: Likewise.
71363         * lib/allocsa.h: Likewise.
71364
71365 2004-11-10  Simon Josefsson  <jas@extundo.com>
71366
71367         * m4/getaddrinfo.m4: New file.
71368
71369 2004-11-10  Simon Josefsson  <jas@extundo.com>
71370
71371         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
71372
71373 2004-11-10  Simon Josefsson  <jas@extundo.com>
71374
71375         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71376         getaddrinfo.
71377
71378         * modules/getaddrinfo: New file.
71379
71380 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71381
71382         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
71383
71384 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71385
71386         * lib/mktime.c (SHR): New macro, which is a portable
71387         substitute for >> that should work even on Crays.
71388         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
71389         Problem reported by Mark D. Baushke in
71390         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
71391         * lib/getdate.y (SHR): Likewise.
71392         (tm_diff): Use it.
71393         * lib/strftime.c (SHR): Likewise.
71394         (tm_diff): Use it.
71395         * lib/quotearg.c (struct quoting_options): Use unsigned int for
71396         quote_these_too, so that right shifts are well defined.  All uses
71397         changed.
71398
71399 2004-11-10  Jim Meyering  <jim@meyering.net>
71400
71401         Ensure that no close failure goes unreported.
71402         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
71403         return early when it seems there's nothing to flush.
71404         Don't include __fpending.h.
71405
71406 2004-11-10  Jim Meyering  <jim@meyering.net>
71407
71408         * modules/closeout (Depends-on): Remove fpending.
71409
71410 2004-11-10  Jim Meyering  <jim@meyering.net>
71411
71412         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
71413
71414 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71415
71416         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
71417         gl_FUNC_STRFTIME.
71418         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
71419         and AC_REQUIRE when possible, to avoid duplicate checks.
71420         Check for <wchar.h>.
71421
71422 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71423
71424         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
71425
71426 2004-11-09  Bruno Haible  <bruno@clisp.org>
71427
71428         * m4/sockpfaf.m4: New file.
71429
71430 2004-11-05  Bruno Haible  <bruno@clisp.org>
71431
71432         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
71433         Reported by Mark D. Baushke <mdb@cvshome.org>.
71434
71435 2004-11-04  Bruno Haible  <bruno@clisp.org>
71436
71437         2004-09-11  Bruno Haible  <bruno@clisp.org>
71438                 * allocsa.valgrind: New file.
71439         2004-02-06  Bruno Haible  <bruno@clisp.org>
71440                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
71441                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
71442                 Reported by Christopher Seip <chris.seip@hp.com>.
71443
71444 2004-11-04  Bruno Haible  <bruno@clisp.org>
71445
71446         * modules/allocsa (Files): Add lib/allocsa.valgrind.
71447         (Makefile.am): Distribute it.
71448
71449 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71450
71451         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
71452         with errno == ERANGE if the buffer is too small.
71453         Problem reported by Mark D. Baushke.
71454
71455 2004-11-03  Albert Chin  <china@thewrittenword.com>
71456             Paul Eggert  <eggert@cs.ucla.edu>
71457
71458         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
71459         equivalent, substitute $ac_type for equivalent type rather than
71460         blindly using uint32_t *always* which won't work if uint32_t is not
71461         available.  Define _UINT32_T to work around typedef of uint32_t if
71462         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
71463         2.5.1.
71464
71465 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71466
71467         * m4/jm-macros.m4: Sync from coreutils.
71468         (gl_MACROS): Check for mbrlen, for pathchk.
71469         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
71470
71471 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71472
71473         * lib/xreadlink.c (MAXSIZE): New macro.
71474         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
71475         size does not exceed MAXSIZE.  Avoid cast.
71476         As suggested by Mark D. Baushke in
71477         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
71478         if readlink fails with buffer size just under MAXSIZE, try again
71479         with MAXSIZE.
71480
71481 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71482
71483         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
71484
71485 2004-11-02  Derek R. Price  <derek@ximbiot.com>
71486         and  Paul Eggert  <eggert@cs.ucla.edu>
71487
71488         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
71489         (get_date): Overparenthesize to avoid GCC warning.
71490
71491 2004-11-02  Bruno Haible  <bruno@clisp.org>
71492
71493         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
71494         returns void.
71495
71496 2004-11-02  Bruno Haible  <bruno@clisp.org>
71497
71498         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
71499         function returns void.
71500
71501 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
71502
71503         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
71504         fflush_unlocked, flockfile, funlockfile, funlockfile,
71505         fputs_unlocked, putc_unlocked.
71506
71507 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
71508
71509         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
71510         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
71511         already declared.
71512
71513 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71514
71515         * modules/getdate (Files): Add doc/getdate.texi.
71516         (Depends-on): Add setenv, xalloc.
71517
71518 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71519
71520         * lib/getdate.y: Add support for TZ="foo" within a date string.
71521         Fix some bugs near time_t boundaries.  Reject dates with
71522         out-of-range components, e.g., "Sept 31".
71523         Include <stdlib.h>, "setenv.h", "xalloc.h".
71524         (ISDIGIT_LOCALE): Remove; unused.
71525         Note that the TZ and time functions used here are not reentrant.
71526         (mktime_ok, get_tz): New functions.
71527         (TZBUFSIZE): New constant.
71528         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
71529         This requires that we sometimes generate our own TZ="XXX..." setting.
71530
71531 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71532
71533         * doc/getdate.texi: New file, from coreutils with modifications for
71534         the new TZ parsing.
71535
71536 2004-10-27  Derek R. Price  <derek@ximbiot.com>
71537
71538         * lib/mktime.c (not_equal_tm): Remove redundant check.
71539
71540 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71541
71542         * modules/regex (lib_SOURCES): Add regex.c.
71543         Reported by James Youngman in
71544         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
71545
71546 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71547
71548         * lib/getdate.y: Use Bison 1.875 features, and some minor
71549         code cleanups.  This change does not affect semantics.
71550         Don't include <stdlib.h>; no longer needed.
71551         Don't include unlocked-io.h; only the "#if TEST" code uses
71552         stdio, and performance isn't crucial there.
71553         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
71554         Bison 1.875 features as described below.
71555         All uses of "PC." replaced by "pc->".
71556         (YYSTYPE): Add a forward declaration.
71557         (yylex, yyerror): Use full prototypes in forward decls.
71558         Use "%pure-parser" rather than obsolescent "%pure_parser".
71559         Use %parse-param and %lex-param instead of obsolescent
71560         YYPARSE_PARAM and YYLEX_PARAM.
71561         (meridian_table, month_and_day_table, time_units_table,
71562         relative_time_table, time_zone_table, military_table,
71563         lookup_zone, lookup_word, get_date):
71564         Use NULL instead of 0 where appropriate.
71565         (to_hour): Avoid abort (), to avoid a dependency on
71566         stdlib.h.
71567         (yyerror, yylex): Now accepts parser_control * arg.
71568         (main) [TEST]: Use '\0' rather than 0 for char.
71569
71570 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
71571
71572         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
71573
71574 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
71575
71576         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
71577         It's now the caller's responsibility to handle the case where
71578         !HAVE_GETPAGESIZE && !defined getpagesize.
71579
71580         * lib/mktime.c (leapyear): Arg is long int, not int.
71581
71582 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
71583
71584         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
71585
71586 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71587
71588         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
71589         missing.  Problem reported by James Youngman.
71590
71591 2004-10-16  Simon Josefsson  <jas@extundo.com>
71592
71593         * gnulib-tool: Fix comments.  Fix parse problem.
71594         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
71595
71596 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
71597
71598         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
71599         implementation of getopt_long.  Problem reported by Alexander Taler in:
71600         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
71601
71602 2004-10-15  Bruno Haible  <bruno@clisp.org>
71603
71604         * gnulib-tool: Untabify. Initialize supplied_libname.
71605         (func_usage): More homogenous output.
71606         (func_modules_transitive_closure, func_modules_to_filelist,
71607         func_emit_lib_Makefile_am): New functions.
71608         (func_import): New function, extracted from big case statement. Use
71609         func_get_license, func_modules_transitive_closure,
71610         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
71611         opt_lgpl. Don't use test -a, as it's not portable.
71612         (func_create_testdir): Use func_modules_transitive_closure,
71613         func_modules_to_filelist, func_emit_lib_Makefile_am.
71614
71615 2004-10-15  Bruno Haible  <bruno@clisp.org>
71616
71617         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
71618
71619 2004-10-15  Bruno Haible  <bruno@clisp.org>
71620
71621         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
71622         the portions belonging to each module.
71623         Suggested by Derek Robert Price <derek@ximbiot.com>.
71624
71625 2004-10-12  Simon Josefsson  <jas@extundo.com>
71626
71627         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
71628         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
71629         to real functions.
71630
71631 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71632
71633         * modules/vsnprintf: New file.
71634
71635 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71636
71637         * m4/vsnprintf.m4: New file.
71638
71639 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71640
71641         * lib/vsnprintf.h: New file.
71642         * lib/vsnprintf.c: New file.
71643
71644 2004-10-11  Bruno Haible  <bruno@clisp.org>
71645
71646         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
71647         vsnprintf.
71648
71649 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71650
71651         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
71652
71653 2004-10-07  Bruno Haible  <bruno@clisp.org>
71654
71655         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
71656         fits into the provided buffer.
71657
71658 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71659
71660         * lib/diacrit.c, diacrit.h: Add GPL notice.
71661
71662         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
71663         notice.
71664         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
71665         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
71666         This avoids a potential constant-folding bug.
71667
71668 2004-10-05  Bruno Haible  <bruno@clisp.org>
71669
71670         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
71671         for the declaration of strsep.
71672
71673 2004-10-05  Bruno Haible  <bruno@clisp.org>
71674
71675         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
71676
71677 2004-10-04  Simon Josefsson  <jas@extundo.com>
71678
71679         * modules/memmem: New file.
71680         * tests/test-memmem.c: New file.
71681         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
71682
71683 2004-10-04  Simon Josefsson  <jas@extundo.com>
71684
71685         * m4/memmem.m4: New file.
71686
71687 2004-10-04  Simon Josefsson  <jas@extundo.com>
71688
71689         * lib/memmem.h: New file.
71690         * lib/memmem.c: New file, taken from glibc.
71691
71692 2004-10-04  Simon Josefsson  <jas@extundo.com>
71693
71694         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
71695         '#ifdef USE_UNLOCKED_IO'.
71696
71697 2004-10-04  Simon Josefsson  <jas@extundo.com>
71698
71699         * config/srclist.txt: Add memmem from glibc.
71700
71701 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71702
71703         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
71704
71705         * modules/argmatch, modules/argp, modules/closeout, modules/error,
71706         modules/exclude, modules/getdate, modules/getline,
71707         modules/getndelim2, modules/getpass, modules/getpass-gnu,
71708         modules/getusershell, modules/linebuffer, modules/md5,
71709         modules/mountlist, modules/posixtm, modules/readtokens,
71710         modules/readutmp, modules/regex, modules/sha1,
71711         modules/version-etc, modules/yesno:
71712         Remove dependency on unlocked-io.
71713
71714 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71715
71716         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
71717
71718         * m4/unlocked-io.m4: Add copyright notice.
71719         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
71720
71721 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71722
71723         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
71724         * lib/xmalloc.c (xmemdup): Likewise.
71725         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
71726         XFREE): Remove these long-obsolescent macros.
71727         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
71728         * lib/xstrdup.c: Remove.
71729
71730         * lib/regex.c (re_comp): Cast gettext return value to char *,
71731         Problem reported by Martin Neitzel via Mark D. Baushke.
71732
71733 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71734
71735         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
71736         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
71737         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
71738         regex.c, sha1.c, version-etc.c, yesno.c:
71739         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
71740         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
71741         the includer's responsibility.
71742
71743         Sync from coreutils.
71744
71745         * lib/modechange.c (mode_compile): Don't decrement a pointer that
71746         points to the start of a string, as the C Standard says the
71747         resulting behavior is undefined.
71748
71749         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
71750         simple -> simple_backups, numbered_existing ->
71751         numbered_existing_backups, numbered -> numbered_backups
71752         to avoid shadowing problems.  All uses changed.
71753         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
71754         * lib/backupfile.c (check_extension, numbered_backup):
71755         Rename locals to avoid shadowing 'basename'.
71756         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
71757         once.
71758
71759         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
71760         * lib/.cvsignore: Add getopt.h.
71761
71762 2004-10-04  Bruno Haible  <bruno@clisp.org>
71763
71764         * modules/README: New file.
71765         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
71766         not a module.
71767
71768 2004-10-02  Jim Meyering  <jim@meyering.net>
71769
71770         * lib/dirfd.h, getpagesize.h: Add copyright notice.
71771
71772 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71773
71774         * modules/strsep: New file.
71775
71776 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71777
71778         * m4/strsep.m4: New file.
71779
71780 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71781
71782         * lib/strsep.h: New file.
71783         * lib/strsep.c: New file.
71784
71785 2004-10-01  Simon Josefsson  <jas@extundo.com>
71786
71787         * lib/snprintf.c (snprintf): Handle size==0.
71788
71789 2004-10-01  Simon Josefsson  <jas@extundo.com>
71790             Bruno Haible  <bruno@clisp.org>
71791
71792         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
71793         (snprintf): Declare 'args'.
71794
71795 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
71796
71797         * lib/snprintf.c: Remove comments as to why each header is needed.
71798
71799 2004-10-01  Bruno Haible  <bruno@clisp.org>
71800
71801         * MODULES.html.sh: Add strsep.
71802
71803 2004-09-30  Simon Josefsson  <jas@extundo.com>
71804
71805         * modules/snprintf: New file.
71806
71807 2004-09-30  Simon Josefsson  <jas@extundo.com>
71808
71809         * m4/snprintf.m4: New file.
71810
71811 2004-09-30  Simon Josefsson  <jas@extundo.com>
71812
71813         * lib/snprintf.h, lib/snprintf.c: New files.
71814
71815 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71816
71817         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
71818         (hol_entry_help): Never translate an empty string.
71819         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
71820         * lib/argp.h (OPTION_NO_TRANS): New option.
71821
71822 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71823
71824         * modules/argp (Maintainer): Replace Simon Josefsson
71825         by Sergey Poznyakoff.
71826
71827 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71828
71829         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
71830         changes merged back into glibc.
71831
71832 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71833
71834         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
71835
71836 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71837
71838         * lib/xvasprintf.c: Include xalloc.h.
71839         (xvasprintf): Use xalloc_die, not xmalloc_die.
71840
71841 2004-09-29  Bruno Haible  <bruno@clisp.org>
71842
71843         * modules/alloca-opt: New file, derived from modules/alloca.
71844         * modules/allocsa: Depend on alloca-opt instead of alloca.
71845         * modules/setenv: Likewise.
71846         * modules/vasnprintf: Likewise.
71847         * MODULES.html.sh: Add alloca-opt.
71848
71849 2004-09-28  Simon Josefsson  <jas@extundo.com>
71850
71851         * gnulib-tool: New parameter --lgpl, to asseert that modules are
71852         LGPL, and to replace license template from GPL to LGPL.
71853
71854 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
71855
71856         * modules/dummy: Change license to LGPL.
71857
71858 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
71859
71860         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
71861
71862 2004-09-24  Simon Josefsson  <jas@extundo.com>
71863
71864         * modules/minmax (License): Change from GPL to LGPL.
71865
71866 2004-09-23  Simon Josefsson  <jas@extundo.com>
71867
71868         * gnulib-tool (--import): Typo.
71869
71870 2004-09-23  Simon Josefsson  <jas@extundo.com>
71871
71872         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
71873
71874 2004-09-22  Bruno Haible  <bruno@clisp.org>
71875
71876         * modules/*: Add 'License' field.
71877         * gnulib-tool: Accept --extract-license option.
71878         (func_get_license): New function.
71879
71880 2004-09-21  Bruno Haible  <bruno@clisp.org>
71881
71882         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
71883         Reported by Simon Josefsson.
71884
71885 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
71886
71887         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
71888         gl_AC_TYPE_LONG_LONG.
71889
71890 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
71891
71892         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
71893
71894 2004-09-18  Simon Josefsson  <jas@extundo.com>
71895         and  Paul Eggert  <eggert@cs.ucla.edu>
71896
71897         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
71898         calls with autoreconf.  Define GL_LIB.
71899
71900 2004-09-14  Karl Berry  <karl@gnu.org>
71901
71902         * config/srclist.txt: unsync setenv.c, sigh.
71903
71904 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71905
71906         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
71907         Problem reported by Bruno Haible in:
71908         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
71909
71910 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71911
71912         * config/srclist.txt: Comment out argp-pvh.c.
71913
71914 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
71915
71916         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
71917         in case some system header has #define'd it.  Problem reported by
71918         Soeren D. Schulze in
71919         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
71920
71921 2004-09-09  Karl Berry  <karl@gnu.org>
71922
71923         * regex.[ch]: delete from the root.  These were supposed to be
71924                 synced with emacs cvs, but this has not happened for about
71925                 a year, and anyway nothing else uses emacs regex.[ch].
71926                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
71927                 lib/regex[.ch] is untouched.
71928
71929 2004-09-09  Bruno Haible  <bruno@clisp.org>
71930
71931         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
71932
71933 2004-09-09  Bruno Haible  <bruno@clisp.org>
71934
71935         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
71936         modifications.
71937         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
71938
71939 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
71940
71941         * modules/xvasprintf: New file.
71942         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
71943
71944 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
71945
71946         * lib/xvasprintf.h: New file.
71947         * lib/xvasprintf.c: New file.
71948         * lib/xasprintf.c: New file.
71949
71950 2004-09-08  Bruno Haible  <bruno@clisp.org>
71951
71952         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
71953
71954 2004-09-08  Bruno Haible  <bruno@clisp.org>
71955
71956         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
71957         length is > INT_MAX.
71958         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
71959         more.
71960
71961 2004-09-08  Bruno Haible  <bruno@clisp.org>
71962
71963         * lib/stdint_.h: New file, taken from GNU clisp.
71964
71965 2004-09-08  Bruno Haible  <bruno@clisp.org>
71966             Oskar Liljeblad  <oskar@osk.mine.nu>
71967
71968         * modules/stdint: New file.
71969         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
71970
71971 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71972
71973         Import from coreutils.
71974         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
71975         strings on unbounded length.  alloca's performance benefits aren't
71976         that important here.
71977         (V_STRDUP): Remove.
71978         (parse_with_separator): New function, with most of the internals
71979         of the old parse_user_spec.  Allow user to omit both user and group,
71980         for compatibility with FreeBSD.
71981         Clone only the user name, not the entire spec.
71982         Do not set *uid, *gid unless entirely successful.
71983         Avoid memory leak in some failing cases.
71984         Fix regression for USER.GROUP reported by Dmitry V. Levin in
71985         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
71986         (parse_user_spec): Rewrite to use parse_with_separator.
71987
71988 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71989
71990         * modules/userspec: Don't depend on alloca.
71991
71992 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71993
71994         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
71995
71996 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71997
71998         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
71999         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
72000         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
72001
72002 2004-08-16  Simon Josefsson  <jas@extundo.com>
72003
72004         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
72005         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
72006         Add --dry-run for --import.
72007         Let user provided command line parameters override configure.ac
72008         settings.
72009
72010 2004-08-12  Simon Josefsson  <jas@extundo.com>
72011
72012         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
72013         as discussed with Paul Eggert in threads rooted at
72014         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
72015         and
72016         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
72017         Before, the test was empty, and relied on ELIDE_CODE in source
72018         code.)
72019         (gl_PREREQ_GETOPT): New macro.
72020         (gl_GETOPT): Use them.
72021
72022 2004-08-12  Simon Josefsson  <jas@extundo.com>
72023
72024         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
72025         * lib/getopt_.h: Renamed from getopt.h.
72026
72027 2004-08-12  Simon Josefsson  <jas@extundo.com>
72028
72029         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
72030         Change default library name from libfoo to libgnu.
72031         Now, if you have a configure.ac that says:
72032                 gl_SOURCE_BASE(gl)
72033                 gl_M4_BASE(gl/m4)
72034                 gl_MODULES(error getopt etcetera)
72035                 gl_INIT
72036         you can import all you need by running:
72037                 ../gnulib/gnulib-tool --import
72038
72039         * modules/getopt (Files): Rename getopt.h to getopt_.h.
72040         (Makefile.am): Rewrite, use logic from argz.
72041         (Include): Use <getopt.h> instead of "getopt.h".
72042
72043 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72044
72045         * modules/argp (Files): Add m4/unlocked-io.m4.
72046         (Depends-on): Add extensions.
72047
72048 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72049
72050         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
72051         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
72052         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
72053         Check for program_invocation_name, program_invocation_short_name,
72054         flockfile, funlockfile, features.h, _getopt_long_only_r.
72055
72056 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72057
72058         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
72059         its complicated substitute.
72060         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
72061         and program_invocation_name.
72062         (__argp_basename) [!_LIBC]: Remove; the only use was
72063         replaced by its body.
72064         (__argp_short_program_name): Change condition from
72065         !defined __argp_short_program_name to
72066         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
72067         to match argp-namefrob.h.
72068         (__argp_failure): Don't assume strerror_r returns char *.
72069         * lib/argp-parse.c (N_): Define unconditionally.
72070         (argp_default_options): Fill out initializers with 0 to avoid
72071         gcc warnings.
72072
72073 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72074
72075         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
72076         getopt1.c.
72077
72078 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72079
72080         Merge from coreutils.
72081
72082         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
72083
72084         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
72085         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
72086
72087 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72088
72089         Merge from coreutils.
72090
72091         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
72092         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
72093         for Reliant Unix 5.43.
72094
72095         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
72096         (union fooround): Use uintmax_t, not long int.
72097         The rest is a merge from libc:
72098         [defined _LIBC]: Include <shlib-compat.h>.
72099         (_obstack) [defined _LIBC]: Remove after 2.3.4.
72100
72101         * lib/settime.c (settime): Recode to avoid warning with
72102         Sun Forte C 6U2.
72103
72104         * lib/strverscmp.c: Convert to UTF-8.
72105
72106 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72107
72108         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
72109         m4/uintmax_t.m4.
72110
72111 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72112
72113         * modules/xalloc-die: New file.
72114         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
72115
72116         * modules/md5 (Files): Add m4/uint32_t.m4.
72117         * modules/sha1: Renamed from modules/sha.
72118         (Files):
72119         Rename lib/sha.h to lib/sha1.h.
72120         Rename lib/sha.c to lib/sha1.c.
72121         Rename m4/sha.m4 to m4/sha1.m4.
72122         (lib_SOURCES): Likewise.
72123         (configure.ac): Rename gl_SHA to gl_SHA1.
72124         (Include): sha.h -> sha1.h.
72125
72126 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72127
72128         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
72129         * m4/sha1.m4: Renamed from sha.m4.
72130         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
72131
72132 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72133
72134         * lib/obstack.h (obstack_empty_p):
72135         Don't assume that chunk->contents is suitably aligned.
72136         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
72137         Likewise. Problem reported by Benno in
72138         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
72139
72140         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
72141         readable.  This could be improved further but it'd take some work.
72142
72143 2004-08-08  Simon Josefsson  <jas@extundo.com>
72144
72145         * modules/xgethostname (Depends-on): Remove exit and error (not
72146         used).
72147
72148         * modules/getpass-gnu: Add getpass.h.
72149         (Depends-on): Add stdbool.
72150         * modules/getpass: Add getpass.h.
72151
72152 2004-08-08  Simon Josefsson  <jas@extundo.com>
72153
72154         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
72155         Check getpass declaration.
72156
72157 2004-08-08  Simon Josefsson  <jas@extundo.com>
72158
72159         * lib/xgethostname.c: Don't include error.h (not used).
72160
72161         * lib/getpass.h: Add.
72162         * lib/getpass.c: Include getpass.h first.
72163
72164 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
72165
72166         * lib/xalloc-die.c: New file.
72167         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
72168         All uses removed.
72169         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
72170         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
72171         xalloc-die.c.
72172         (_, N_, xalloc_die): Move to xalloc-die.c.
72173         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
72174         so that we needn't mess with xalloc_msg_memory_exhausted.
72175
72176         * lib/sha1.h: Renamed from sha.h.
72177         (SHA1_H): Renamed from _SHA_H.
72178         (sha1_ctx): Renamed from sha_ctx.
72179         (sha1_init_ctx): Renamed from sha_init_ctx.
72180         (sha1_process_block): Renamed from sha_process_block.
72181         (sha1_process_bytes): Renamed from sha_process_bytes.
72182         (sha1_finish_ctx): Renamed from sha_finish_ctx.
72183         (sha1_read_ctx): Renamed from sha_read_ctx.
72184         (sha1_stream): Renamed from sha_stream.
72185         (sha1_buffer): Renamed from sha_buffer.
72186         * lib/sha1.c: Likewise; renamed from sha.c.
72187         Do not include <sys/types.h>.
72188         Include <stddef.h> rather than <stdlib.h>.
72189
72190 2004-08-08  Bruno Haible  <bruno@clisp.org>
72191
72192         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
72193         FILESYSTEM_PREFIX_LEN.
72194         * lib/progreloc.c: Likewise.
72195         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
72196
72197 2004-08-06  Simon Josefsson  <jas@extundo.com>
72198
72199         * modules/progname (Depends-on): Don't depend on stdbool.
72200
72201 2004-08-06  Simon Josefsson  <jas@extundo.com>
72202
72203         * modules/getsubopt: New file.
72204         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72205         getsubopt.
72206
72207 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72208
72209         More merge from coreutils.
72210
72211         * m4/utimens.m4, m4/utimecmp.m4: New files.
72212         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
72213         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
72214         prereq.m4, sha.m4: Import changes from coreutils.
72215
72216 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72217
72218         More merge from coreutils.
72219         * modules/raise, modules/readtokens0, modules/utimens:
72220         * modules/utimecmp, module/xnanosleep: New files.
72221         * modules/strftime: Add lib/strftime.h.
72222         Change include from <time.h> to "strftime.h".
72223         * modules/yesno: Add lib/yesno.h.
72224         * modules/backupfile: Remove lib/addext.c.
72225         * modules/euidaccess: Add stat-macros.h.
72226         * modules/canonicalize, modules/euidaccess,
72227         modules/filemode, modules/lchown, modules/makepath,
72228         modules/rmdir, modules/stat: Likewise.
72229
72230 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72231
72232         Merge from tar.
72233         * lib/argp-help.c (make_hol, hol_append): Don't assume that
72234         SIZE_MAX is a valid preprocessor constant.
72235         (__argp_basename): Change from "#ifndef _LIBC"
72236         to "#ifndef __argp_short_program_name", so that
72237         we don't compile these functions for tar.
72238
72239         More merges from coreutils.
72240         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
72241         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
72242         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
72243         * lib/addext.c: Remove; no longer needed.
72244         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
72245         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
72246         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
72247         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
72248         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
72249         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
72250         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
72251         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
72252         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
72253         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
72254         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
72255         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
72256         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
72257         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
72258         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
72259         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
72260         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
72261         Import changes from coreutils.
72262
72263 2004-08-05  Simon Josefsson  <jas@extundo.com>
72264
72265         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
72266
72267 2004-08-05  Simon Josefsson  <jas@extundo.com>
72268
72269         * m4/getsubopt.m4: New file.
72270
72271 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72272
72273         Merge from coreutils.
72274
72275         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
72276         * m4/getcwd-path-max.m4: New files.
72277
72278         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
72279         FILESYSTEM_PREFIX_LEN ->
72280         FILE_SYSTEM_PREFIX_LEN.
72281         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
72282         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
72283         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
72284         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
72285
72286         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
72287         prerequisite modules now handle the DOS stuff.
72288         Don't check for unistd.h.
72289
72290 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72291
72292         Merge from coreutils.
72293
72294         * lib/.gdb-history: Remove; this doesn't belong here.
72295
72296         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
72297         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
72298         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
72299         * lib/getcwd.c: New files.
72300
72301         * lib/dirname.h: Include <stdbool.h>.
72302         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
72303         for consistency with POSIX terminology.  All uses changed.
72304         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
72305         (strip_trailing_slashes): Use bool for booleans.
72306         * lib/stripslash.c (strip_trailing_slashes): Likewise.
72307
72308         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
72309         sometimes returns a positive errno value even when it succeeds.
72310         (print_errno_message) [!LIBC]: Fall back on strerror if
72311         __strerror_r fails.
72312
72313         * lib/path-concat.c (mempcpy): Don't define if a system header defines
72314         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
72315         (longest_relative_suffix): New function.
72316         (path_concat): Use it.  Assume first argument is not NULL.
72317         Port to DOS.  Omit redundant separators.
72318         Report an error instead of returning NULL.
72319         Use mempcpy instead of memcpy.
72320         (xpath_concat): Remove: not declared or used.
72321
72322         * lib/same.h: Include <stdbool.h>
72323         (same_name): Return bool, not int.
72324         * lib/same.c (same_name): Likewise.
72325         (errno): Don't declare; we assume C89 or better now.
72326
72327         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
72328         if not already defined.
72329
72330         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
72331         * lib/dup-safer.c (errno): Likewise.
72332
72333 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72334
72335         Merge from coreutils.
72336         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
72337         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
72338         * modules/path-concat: Don't depend on strdup.
72339
72340 2004-08-03  Simon Josefsson  <jas@extundo.com>
72341
72342         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
72343         * lib/progname.h: Don't include stdbool.h.
72344
72345 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72346
72347         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
72348         * MODULES.html.sh (func_all_modules): Remove fatal.
72349
72350 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72351
72352         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
72353
72354 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72355
72356         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
72357         working.
72358
72359 2004-08-02  Simon Josefsson  <jas@extundo.com>
72360
72361         * lib/getsubopt.h: New file, with comments from Bruno Haible.
72362         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
72363         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
72364
72365 2004-08-01  Simon Josefsson  <jas@extundo.com>
72366
72367         * lib/xgetdomainname.c: Include stdlib.h, for free().
72368
72369 2004-07-19  Bruno Haible  <bruno@clisp.org>
72370
72371         * MODULES.html.sh (func_all_modules): Add dummy.
72372
72373 2004-07-16  Simon Josefsson  <jas@extundo.com>
72374
72375         * modules/dummy: New file.
72376
72377 2004-07-16  Simon Josefsson  <jas@extundo.com>
72378
72379         * lib/dummy.c: New file.
72380
72381 2004-07-16  Bruno Haible  <bruno@clisp.org>
72382
72383         * lib/backupfile.h: Add extern "C" for C++.
72384         * lib/closeout.h: Likewise.
72385         * lib/copy-file.h: Likewise.
72386         * lib/findprog.h: Likewise.
72387         * lib/full-write.h: Likewise.
72388         * lib/pathname.h: Likewise.
72389         * lib/progname.h: Likewise.
72390         * lib/stpcpy.h: Likewise.
72391         * lib/stpncpy.h: Likewise.
72392         * lib/strcase.h: Likewise.
72393         * lib/strstr.h: Likewise.
72394         * lib/xalloc.h: Likewise.
72395
72396         * lib/mbswidth.h: Add extern "C" for C++.
72397         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
72398
72399 2004-07-13  Robert Millan  <robertmh@gnu.org>
72400
72401         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
72402
72403 2004-07-09  Simon Josefsson  <jas@extundo.com>
72404
72405         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
72406         failed without this.)
72407
72408 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72409
72410         * modules/chown (Files): Add lib/fchown-stub.c, since
72411         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
72412
72413 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72414
72415         * lib/fchown-stub.c: New file.
72416
72417 2004-06-24  Jim Meyering  <jim@meyering.net>
72418
72419         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
72420
72421 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72422
72423         * modules/argz: Omit "#include".
72424
72425         * MODULES.html.sh (func_all_modules): Add calloc, to match
72426         2004-06-01 addition of calloc module.
72427
72428 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72429
72430         * m4/argz.m4: New file, which is autoupdated from libtool.
72431
72432 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72433
72434         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
72435         libtool.
72436
72437 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72438
72439         * config/srclist-update: Don't insist on "USA." before the
72440         close-comment, as libtool omits the period and puts the */ on a
72441         separate line.
72442         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
72443         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
72444
72445 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
72446
72447         * modules/argz: New file.
72448         * MODULES.html.sh (func_all_modules): Add argz.
72449
72450 2004-06-12  Jim Meyering  <jim@meyering.net>
72451         and  Paul Eggert  <eggert@cs.ucla.edu>
72452
72453         * modules/hash (Files): Add lib/xalloc.h.
72454         * modules/pipe (Depends-on): Add wait-process.
72455         * modules/stat (Depends-on): Add xalloc.
72456         * modules/userspec (Files): Add lib/userspec.h.
72457         * modules/xstrto
72458
72459         Upgrade from gettext-0.13.
72460         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
72461         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
72462         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
72463
72464 2004-06-10  Jim Meyering  <jim@meyering.net>
72465
72466         * lib/calloc.c: New file.
72467
72468 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
72469
72470         * lib/getdate.y (yylex): Allow space between sign and number.
72471         Problem reported by Dan Jacobson.
72472
72473 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72474
72475         Merge from coreutils CVS.
72476
72477         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
72478         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
72479         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
72480         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
72481         xstrtol.m4: Fix copyright date and/or serial number.
72482
72483         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
72484         See if we need an fchown replacement.
72485         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
72486         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
72487         and use the replacement function if we detect either defect.
72488
72489         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
72490         gl_UTIMECMP.
72491
72492 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72493         and  Jim Meyering  <jim@meyering.net>
72494
72495         Merge from coreutils CVS.
72496
72497         * lib/stat-macros.h: New file, with contents from file-type.h
72498         and coreutils' system.h.
72499         * lib/file-type.c: Include "stat-macros.h".
72500         * lib/file-type.h (file_type): Move all macro definitions to new file,
72501         stat-macros.h.
72502
72503         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
72504         Wrap old code with this conditional.
72505         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
72506         function that does not dereference symlinks.
72507         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
72508
72509         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
72510         dependency problems.
72511         (xreadlink): Accept new arg SIZE, for efficiency.
72512         All decls and uses changed.
72513         * lib/xreadlink.h: Include <stddef.h>, for size_t.
72514
72515         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
72516         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
72517
72518         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
72519         sysexits.h.
72520
72521 2004-06-01  Jim Meyering  <jim@meyering.net>
72522
72523         * m4/calloc.m4: New file.
72524
72525 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
72526
72527         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
72528         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
72529         Also, fix a typo in a diagnostic.
72530
72531 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
72532
72533         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
72534         or AC_FUNC_REALLOC.
72535
72536 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
72537
72538         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
72539         macros to be defined.
72540         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
72541         the allocator returns NULL because the requested size is zero.
72542
72543 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72544
72545         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
72546         var.  Add comment explaining why libc still defines it.  This
72547         merges the following patch from glibc:
72548         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
72549
72550 2004-05-20  Andreas Schwab  <schwab@suse.de>
72551
72552         * m4/free.m4: Replace free if it not known to work, not the other
72553         way round.
72554
72555 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72556
72557         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
72558         present in glibc since revision 1.1 of this file.
72559         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
72560         obstack_alignment_mask, obstack_alloc, obstack_base,
72561         obstack_blank, obstack_blank_fast, obstack_chunk_size,
72562         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
72563         obstack_grow0, obstack_init, obstack_int_grow,
72564         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
72565         obstack_next_free, obstack_object_size, obstack_ptr_grow,
72566         obstack_ptr_grow_fast, obstack_room): Remove declarations of
72567         nonexistent functions.
72568
72569 2004-05-18  Karl Berry  <karl@gnu.org>
72570
72571         * config/srclist.txt: break link for vasnprintf.c.
72572
72573 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
72574
72575         Port obstack to the AS/400, where pointers are 16 bytes wide and
72576         you cannot cast an integer to a valid pointer.  This patch is
72577         currently waiting to be integrated into glibc; see
72578         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
72579
72580         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
72581         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
72582         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
72583         (struct obstack): temp member is now a union of a pointer and
72584         an integer, instead of an integer.  All integer uses changed.
72585         This does not affect the physical layout of struct obstack,
72586         except on hosts (like the AS/400) where the size or alignment of
72587         void * is greater than that of ptrdiff_t.
72588         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
72589         __STDC__)]: Store temporary in pointer member of union, not
72590         integer member.
72591         * lib/obstack.c: Include <stddef.h>, for offsetof.
72592         (struct fooalign): Remove; it doesn't need a name.
72593         (union fooround): Change double to long double, and add void *.
72594         (DEFAULT_ALIGNMENT): Use offsetof to compute.
72595         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
72596         not a macro.  Hence the values are always int; so remove all
72597         casts-to-int in uses.
72598
72599 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
72600
72601         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
72602         we can get this patch merged into glibc.
72603
72604 2004-05-17  Derek R. Price  <derek@ximbiot.com>
72605             Paul Eggert  <eggert@cs.ucla.edu>
72606
72607         * m4/argp: Depend on alloca.
72608
72609 2004-05-17  Derek R. Price  <derek@ximbiot.com>
72610             Paul Eggert  <eggert@cs.ucla.edu>
72611
72612         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
72613         freecoding.
72614
72615 2004-05-17  Bruno Haible  <bruno@clisp.org>
72616
72617         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
72618         precision that consists of a '.' followed by an empty digit string.
72619         Patch by Tor Lillqvist <tml@iki.fi>.
72620
72621 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
72622
72623         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
72624         for backward compatibility with older code.  We need our own
72625         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
72626         it under some other name, and our alloca.h will define it.
72627
72628 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
72629             Derek Price  <derek@ximbiot.com>
72630
72631         * lib/alloca.c: Include <alloca.h>, to get our interface.
72632         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
72633         include <alloca.h> first.  Use C89 prototype for alloca; this
72634         requires including <stddef.h> for size_t.  Use extern "C" if C++.
72635         Use #elif for simplicity, since we can assume C89 now.
72636         Don't try to source the system alloca.h since it will not be found
72637         and to prevent recursively including its replacement.
72638         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
72639         * lib/regex.c: Likewise.
72640
72641 2004-05-16  Derek Price  <derek@ximbiot.com>
72642             Paul Eggert  <eggert@cs.ucla.edu>
72643
72644         getline cleanup.  This changes the getndelim2 API: both order of
72645         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
72646         no delimiter).
72647
72648         * lib/getline.c: Don't include stddef.h or stdio.h, since our
72649         interface does that.
72650         (getline): Always use getdelim, so that we don't have two
72651         copies of this code.
72652         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
72653         if available.
72654         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
72655         (GETNDELIM2_MAXIMUM): New macro.
72656         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
72657         instead of the old practice of delim2==0.  All callers changed.
72658         Return -1 on overflow, instead of returning junk.
72659         Do not set *linesize unless allocation succeeds.
72660         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
72661         that we include sys/types.h.
72662         * lib/getnline.h: Likewise.
72663         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
72664         (getndelim2): Reorder arguments.
72665         * lib/getnline.c (getnline, getndelim):
72666         Don't discard the NMAX argument.
72667         (getnline): Invoke getndelim, to avoid code duplication.
72668         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
72669         of (size_t) -1 by callers of the getnline family.
72670
72671 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72672
72673         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
72674         Check for gettimeofday.
72675         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
72676         Check for settimeofday, stime.
72677
72678 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72679
72680         * lib/nanosleep.c (suspended): Change its type from int to
72681         sig_atomic_t volatile.
72682         (first_call): Make it private to rpl_nanosleep, and have it
72683         be zero initially as that's a bit faster.
72684         (my_usleep): Round up fractional times instead of truncating them,
72685         as this is the usual meaning for 'sleep'.
72686
72687         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
72688         doesn't work.
72689         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
72690         (ENOSYS): Define if not defined.
72691         (settime): Fall back on stime if it exists and settimeofday fails.
72692         But don't bother with fallbacks if a method fails with errno == EPERM.
72693
72694 2004-05-11  Jim Meyering  <jim@meyering.net>
72695
72696         Prior to this change, the save_cwd caller required read access to the
72697         current directory on most systems (ones with the fchdir function).
72698
72699         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
72700         fails, try write-only, and finally, resort to using xgetcwd.
72701
72702 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
72703
72704         * lib/obstack.c, obstack.h: Import changes from libc.
72705
72706 2004-04-28  Bruno Haible  <bruno@clisp.org>
72707
72708         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
72709         also implicitly appends .exe to executables.
72710         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
72711         accepts Windows pathnames.
72712         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
72713         Treat Cygwin like Windows, since it now accepts Windows pathnames.
72714         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
72715         Treat Cygwin like Windows, since it now accepts Windows pathnames.
72716         Reported by Derek Robert Price <derek@ximbiot.com>.
72717
72718 2004-04-21  Karl Berry  <karl@gnu.org>
72719
72720         * config/srclist.txt (localcharset.c): break sync.
72721
72722 2004-04-20  Paul Eggert  <eggert@twinsun.com>
72723
72724         * m4/host-os.m4: Add a copyright notice.
72725
72726 2004-04-20  Jim Meyering  <jim@meyering.net>
72727
72728         Change UTILS_ to gl_ in AC_DEFINE'd names.
72729         Change utils_- and jm_-prefixed variables, too.
72730         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
72731         UTILS_FUNC_MKDIR_TRAILING_SLASH.
72732         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
72733
72734         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
72735         Don't emit trailing blanks.
72736         Also rename jm_-prefixed variables to have gl_ prefix.
72737
72738         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
72739         Also rename jm_-prefixed variables to have gl_ prefix.
72740
72741         * m4/jm-macros.m4: Reflect the renamings.
72742         * m4/prereq.m4: Likewise.
72743
72744 2004-04-20  Jim Meyering  <jim@meyering.net>
72745
72746         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
72747         memory.
72748
72749 2004-04-20  Jim Meyering  <jim@meyering.net>
72750             Bruno Haible  <bruno@clisp.org>
72751
72752         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
72753         memory when realloc fails.
72754
72755 2004-04-19  Jim Meyering  <jim@meyering.net>
72756
72757         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
72758         now that readutmp.c may call `free (0)'.
72759
72760 2004-04-19  Bruno Haible  <bruno@clisp.org>
72761
72762         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
72763         * m4/inttypes_h.m4: Likewise.
72764         * m4/stdint_h.m4: Likewise.
72765         * m4/intmax_t.m4: Likewise.
72766         * m4/uintmax_t.m4: Likewise.
72767
72768 2004-04-18  Jim Meyering  <jim@meyering.net>
72769
72770         * m4/prereq.m4: Don't forbid jm_ prefix.
72771
72772         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
72773         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
72774         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
72775         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
72776         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
72777         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
72778         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
72779         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
72780         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
72781         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
72782         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
72783         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
72784         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
72785         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
72786         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
72787         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
72788         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
72789         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
72790         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
72791
72792 2004-04-18  Jim Meyering  <jim@meyering.net>
72793
72794         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
72795         failure, don't leak memory and do call END_UTMP_ENT.
72796
72797 2004-04-16  Jim Meyering  <jim@meyering.net>
72798
72799         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
72800         coreutils' stat program.
72801         (gl_PREREQ): Don't require jm_PREREQ_STAT.
72802
72803 2004-04-11  Paul Eggert  <eggert@twinsun.com>
72804
72805         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
72806         C89.
72807         (CHAR_BIT): Remove, since we assume C89.
72808         Include <stdint.h> if available, as per current Autoconf CVS advice.
72809
72810 2004-03-31  Jim Meyering  <jim@meyering.net>
72811
72812         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
72813         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
72814         * m4/xalloc.m4: Likewise.
72815
72816 2004-03-30  Paul Eggert  <eggert@twinsun.com>
72817
72818         Merge from coreutils.
72819
72820         * m4/inttostr.m4: New file.
72821         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
72822         Require AM_STDBOOL_H and gl_TIMESPEC instead.
72823         Require gl_CLOCK_TIME.
72824         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
72825
72826 2004-03-30  Paul Eggert  <eggert@twinsun.com>
72827
72828         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
72829         not bool, to be more consistent with Unix conventions.
72830         Suggested by Bruno Haible.
72831
72832         Merge from coreutils.
72833
72834         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
72835         * lib/umaxtostr.c: New files.
72836
72837         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
72838         the usual <time.h> dance.
72839         (get_date): Change signature to support fractional time stamps.
72840         All callers changed.
72841         * lib/getdate.y: Include "getdate.h" first, as we can now
72842         assume C89 and don't need to worry about 'const'.
72843         Similarly, include "unlocked-io.h" near start, not in middle.
72844         Include <limits.h>.
72845         (textint.value): Use long int rather than int.
72846         (textint.digits): Use size_t rather than int.
72847         (BILLION, LOG10_BILLION): New constants.
72848         (parser_control): New member rel_ns.  Members day_ordinal,
72849         time_zone, month, day, hour, minutes, rel_year, rel_month,
72850         rel_day, rel_hour, rel_minutes, rel_seconds
72851         are now long int, not int.  Member seconds is now struct timespec,
72852         not int.  New member timespec_seen.  Members dates_seen, days_seen,
72853         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
72854         not int.
72855         (%union.intval): Now long int, not int.
72856         New member timespec.
72857         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
72858         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
72859         (spec): Now is a timespec or an item list.
72860         (timespec, items): New nonterminals.
72861         (time, rel, relunit, number, get_date):
72862         Add support for fractional seconds.
72863         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
72864         (gmtime, localtime, mktime): Remove decls; not needed with C89.
72865         (to_hour): First arg is now long int, not int.
72866         (to_year): Returns long int, not int.
72867         Don't treat year -70 like 70.
72868         (tm_diff): Returns long int, not int.
72869         (lookup_word): Use bool instead of int when appropriate.
72870         (yylex): Use size_t for count, not int.
72871         Detect overflow when parsing large integer constants.
72872         Add support for fractions.
72873         (get_date): Make pointers 'const' if possible.
72874         Use more-portable code to detect integer overflow.
72875         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
72876         Don't use ctime; it's not reliable if the year has >4 digits.
72877
72878         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
72879         This is for compatibility with BSD.
72880
72881         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
72882         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
72883         From coreutils' system.h.
72884
72885         * lib/userspec.c: Don't include "posixver.h".
72886         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
72887         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
72888         compatible extension.  Simplify code by removing a boolean int
72889         that was always nonzero if a string was nonnull.
72890
72891 2004-03-30  Jim Meyering  <jim@meyering.net>
72892
72893         Merge from coreutils.
72894
72895         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
72896         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
72897         on some systems one must include <grp.h> before it.
72898         Reported by Christian Krackowizer.
72899
72900 2004-03-30  Jim Meyering  <jim@meyering.net>
72901
72902         Merge from coreutils.
72903
72904         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
72905
72906         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
72907         an empty input stream.
72908
72909         * lib/readtokens.c: Include <stdbool.h>.
72910         (readtoken): Use `size_t' rather than int/long.
72911         All callers adjusted.
72912         Use `bool' rather than `int' where appropriate.
72913         Use memset rather than an explicit loop.
72914         Use x2nrealloc rather than xrealloc.
72915         Allow the use of `\0' as a delimiter.
72916         (readtokens): Likewise.
72917         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
72918
72919 2004-03-30  Jim Meyering  <jim@meyering.net>
72920
72921         * m4/realloc.m4: Remove file, since now it does no more than
72922         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
72923         the `configure.ac' section of module/realloc.
72924         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
72925
72926 2004-03-30  Bruno Haible  <bruno@clisp.org>
72927
72928         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
72929         nonnull.
72930
72931 2004-03-29  Paul Eggert  <eggert@twinsun.com>
72932
72933         Merge changes to getloadavg.c from coreutils and Emacs.
72934
72935         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
72936         Define to an expression, not to the empty string.
72937         Include cloexec.h and xalloc.h.
72938         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
72939         Use set_cloexec_flag rather than rolling our own.
72940         * lib/cloexec.c, lib/cloexec.h: New files.
72941
72942 2004-03-29  Paul Eggert  <eggert@twinsun.com>
72943
72944         * m4/cloexec.m4: New file.
72945
72946 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72947
72948         * lib/getopt.h: Sync with libc CVS.
72949
72950 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72951             Bruno Haible  <bruno@clisp.org>
72952
72953         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
72954         mbswidth.
72955
72956 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72957             Bruno Haible  <bruno@clisp.org>
72958
72959         * lib/mbswidth.h: Include <wchar.h> only if
72960         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
72961         <wchar.h>.
72962         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
72963
72964 2004-03-09  Paul Eggert  <eggert@twinsun.com>
72965
72966         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
72967         Sync with libc CVS.
72968         * lib/getopt_int.h: New file, also synced from libc.
72969
72970 2004-03-09  Paul Eggert  <eggert@twinsun.com>
72971
72972         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
72973         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
72974         Bring back getopt.c, getopt.h, getopt1.c.
72975
72976 2004-03-07  Paul Eggert  <eggert@twinsun.com>
72977
72978         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
72979         All uses changed.  Check for sa_sigaction member; this fixes
72980         a bug first reported by Jason Andrade in
72981         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
72982
72983 2004-03-07  Paul Eggert  <eggert@twinsun.com>
72984
72985         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
72986         '#if' expressions.  Unlike the code it replaces, it does not
72987         depend on (defined _SC_PAGESIZE).  However, it does depend on
72988         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
72989         first reported by Jason Andrade in
72990         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
72991
72992 2004-02-25  Simon Josefsson  <jas@extundo.com>
72993
72994         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
72995
72996 2004-02-25  Simon Josefsson  <jas@extundo.com>
72997
72998         * lib/strdup.h: New file.
72999         * lib/strdup.c: Include it.
73000         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
73001         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
73002
73003 2004-02-23  Karl Berry  <karl@gnu.org>
73004
73005         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
73006         (from fencepost.gnu.org:/gd/gnuorg).
73007
73008 2004-02-23  Karl Berry  <karl@gnu.org>
73009
73010         * config/srclistvars.sh (GNUORG) [karl]: redefine.
73011         * config/srclist.txt: add maintain/standards documents.
73012
73013 2004-02-18  Bruno Haible  <bruno@clisp.org>
73014
73015         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
73016         Reported by Derek Robert Price <derek@ximbiot.com>.
73017
73018 2004-02-16  Karl Berry  <karl@gnu.org>
73019
73020         * config/mkinstalldirs, install-sh: update from automake.
73021
73022 2004-02-06  Karl Berry  <karl@gnu.org>
73023
73024         * m4/po.m4: update from gettext 0.14.1.
73025
73026 2004-02-06  Karl Berry  <karl@gnu.org>
73027
73028         * lib/config.charset: update from gettext 0.14.1.
73029
73030 2004-02-05  Paul Eggert  <eggert@twinsun.com>
73031
73032         Add comments and code, prompted by suggestions from Bruno Haible
73033         for sh-quote.
73034         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
73035         describing the enum quoting_style values.
73036         * lib/quotearg.c (quotearg_alloc): New function.
73037         (quotearg_buffer_restyled): Treat lone { and } as special.
73038         Treat = as special.  Work around bug with older shells
73039         that "see" a '\' that is really the 2nd byte of a multibyte char.
73040         Quote empty string with shell_quoting_style.
73041
73042 2004-02-03  Bruno Haible  <bruno@clisp.org>
73043
73044         * m4/pipe.m4: New file, from GNU gettext.
73045
73046 2004-02-03  Bruno Haible  <bruno@clisp.org>
73047
73048         * lib/pipe.h: New file, from GNU gettext.
73049         * lib/pipe.c: New file, from GNU gettext.
73050
73051 2004-01-27  Bruno Haible  <bruno@clisp.org>
73052
73053         * m4/execute.m4: New file, from GNU gettext.
73054
73055 2004-01-27  Bruno Haible  <bruno@clisp.org>
73056
73057         * lib/execute.h: New file, from GNU gettext.
73058         * lib/execute.c: New file, from GNU gettext.
73059         * lib/w32spawn.h: New file, from GNU gettext.
73060
73061 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73062
73063         Merge from diffutils.
73064
73065         * lib/file-type.c (file_type): Add typed memory objects.
73066         * lib/file-type.h (S_TYPEISTMO): New macro.
73067
73068         * lib/c-stack.h (c_stack_action): Remove argv argument.
73069         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
73070         (die): Don't calculate message unless segv_action returns.
73071         (get_stack_location, min_address_from_argv, max_address_from_argv,
73072         volatile stack_base, volatile_stack_size): Remove.
73073         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
73074         that every segmentation violation is a stack overflow.  (Ouch!)
73075         See Debian bug 136249 (still outstanding) for more info about why
73076         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
73077
73078 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73079
73080         Exit-status fix from coreutils.
73081
73082         Use exit_failure consistently in place of EXIT_FAILURE,
73083         so that program exit statuses are consistent on failure.
73084
73085         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
73086         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
73087         * lib/argmatch.h: Comment fix to match the above.
73088         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
73089         Now a macro referring to exit_failure, instead of a separate
73090         variable.  Include "exitfail.h" to get it.
73091         * lib/xstrtol.h: Include "exitfail.h".
73092         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
73093
73094         * lib/long-options.c (parse_long_options): Use prototype
73095         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
73096         for clarity.
73097
73098 2004-01-21  Jim Meyering  <jim@meyering.net>
73099
73100         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
73101         so as not to conflict with a different-sized __mktime_internal
73102         function in GNU libc.
73103         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
73104         Problem building statically-linked `ls' reported by Michael Brunnbauer.
73105
73106 2004-01-20  Karl Berry  <karl@gnu.org>
73107
73108         * config/config.guess: update from config.
73109
73110         * config/srclistvars.sh: GNUWWWLICENSES for karl.
73111
73112 2004-01-20  Bruno Haible  <bruno@clisp.org>
73113
73114         Safer stack allocation.
73115         * lib/setenv.c: Include allocsa.h.
73116         (alloca): Remove fallback definition.
73117         (freea): Remove macro.
73118         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
73119         instead of freea.
73120
73121 2004-01-20  Bruno Haible  <bruno@clisp.org>
73122
73123         * m4/eealloc.m4: New file, from GNU gettext.
73124
73125 2004-01-20  Bruno Haible  <bruno@clisp.org>
73126
73127         * m4/allocsa.m4: New file, from GNU gettext.
73128
73129 2004-01-20  Bruno Haible  <bruno@clisp.org>
73130
73131         * lib/xallocsa.h: New file, from GNU gettext.
73132         * lib/xallocsa.c: New file, from GNU gettext.
73133
73134 2004-01-20  Bruno Haible  <bruno@clisp.org>
73135
73136         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
73137
73138 2004-01-20  Bruno Haible  <bruno@clisp.org>
73139
73140         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
73141         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
73142         specially.
73143
73144 2004-01-20  Bruno Haible  <bruno@clisp.org>
73145
73146         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
73147         patch.
73148
73149 2004-01-20  Bruno Haible  <bruno@clisp.org>
73150
73151         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
73152
73153 2004-01-20  Bruno Haible  <bruno@clisp.org>
73154
73155         * lib/eealloc.h: New file.
73156
73157 2004-01-20  Bruno Haible  <bruno@clisp.org>
73158
73159         * lib/binary-io.h: Avoid warnings on Cygwin.
73160
73161 2004-01-20  Bruno Haible  <bruno@clisp.org>
73162
73163         * lib/allocsa.h: New file, from GNU gettext.
73164         * lib/allocsa.c: New file, from GNU gettext.
73165
73166 2004-01-18  Karl Berry  <karl@gnu.org>
73167
73168         * doc/gpl.texi, doc/lgpl.texi: new files.
73169
73170 2004-01-18  Karl Berry  <karl@gnu.org>
73171
73172         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
73173         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
73174
73175 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73176
73177         Merge from coreutils.
73178
73179         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
73180         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
73181         (gl_DEFAULT_POSIX2_VERSION): Move
73182         the documentation from 'configure' into 'config.hin',
73183         so that 'configure --help' isn't burdened by it and
73184         we don't have to worry about its formatting there.
73185         Reword the documentation so that it's more succinct
73186         and can be run together into a single paragraph.
73187         * m4/same.m4 (gl_SAME): Check for pathconf.
73188
73189 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73190
73191         Merge from coreutils.
73192
73193         * lib/posixver.c: Include posixver.h.
73194
73195         * lib/same.c: Include <stdbool.h>, <limits.h>.
73196         (_POSIX_NAME_MAX): Define if not defined.
73197         (MIN): New macro.
73198         (same_name): If file names are silently truncated, report
73199         that the file names are the same if they are the same after
73200         the silent truncation.
73201
73202         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
73203         conversion function.
73204         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
73205         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
73206         longer needed.
73207
73208 2004-01-15  Jim Meyering  <jim@meyering.net>
73209
73210         Merge from coreutils.
73211
73212         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
73213         if no library is required.
73214         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
73215         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
73216         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
73217         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
73218         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
73219         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
73220         value, $ac_cv_search_crypt, if it's "none required".
73221         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
73222         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
73223         not gl_FUNC_GETLOADAVG.
73224         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
73225         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
73226
73227 2004-01-15  Jim Meyering  <jim@meyering.net>
73228
73229         Merge from coreutils.
73230
73231         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
73232         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
73233         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
73234
73235         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
73236         optional configure-time default.
73237
73238         * lib/version-etc.c (version_etc_copyright): Update copyright date.
73239
73240         * lib/xreadlink.c (xreadlink): Correct outdated comment.
73241
73242 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
73243
73244         Merge from coreutils.
73245
73246         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
73247         value, $ac_cv_search_nanosleep, if it's "none required".
73248
73249 2004-01-14  Paul Eggert  <eggert@twinsun.com>
73250
73251         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
73252         with like-named macro in fnmatch.c.
73253         (EXT): Use an internal constant instead.
73254
73255         Merge fnmatch patches from glibc.
73256         * lib/fnmatch.c (mbsinit): Remove define.
73257         Add libc_hidden_ver (__fnmatch, fnmatch).
73258         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
73259         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
73260
73261 2004-01-14  Karl Berry  <karl@gnu.org>
73262
73263         * config/install-sh: update from automake.
73264
73265 2004-01-13  Karl Berry  <karl@gnu.org>
73266
73267         * config/install-sh: update from automake.
73268
73269 2004-01-09  Karl Berry  <karl@gnu.org>
73270
73271         * config/install-sh: update from automake.
73272
73273 2004-01-05  Karl Berry  <karl@gnu.org>
73274
73275         * config/config.{sub,guess}: update from config.
73276
73277 2003-12-31  Karl Berry  <karl@gnu.org>
73278
73279         * config/depcomp: update from automake.
73280
73281 2003-12-14  Karl Berry  <karl@gnu.org>
73282
73283         * lib/config.charset: update from gettext-runtime.
73284
73285 2003-12-03  Paul Eggert  <eggert@twinsun.com>
73286
73287         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
73288         Bug reported by Alfred M. Szmidt.
73289
73290 2003-12-03  Bruno Haible  <bruno@clisp.org>
73291
73292         * m4/gettext.m4: Upgrade from gettext-0.13.
73293         * m4/po.m4: Upgrade from gettext-0.13.
73294         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
73295         * m4/intmax.m4: New file, from gettext-0.13.
73296         * m4/printf-posix.m4: New file, from gettext-0.13.
73297
73298 2003-11-29  Karl Berry  <karl@gnu.org>
73299
73300         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
73301
73302 2003-11-25  Paul Eggert  <eggert@twinsun.com>
73303             Bruno Haible  <bruno@clisp.org>
73304
73305         * lib/printf-parse.h: Don't include sys/types.h.
73306         (ARG_NONE): New macro.
73307         (char_directive): Change type of *arg_index fields to size_t.
73308         * lib/printf-parse.c: Don't include sys/types.h.
73309         (SSIZE_MAX): Remove macro.
73310         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
73311         Remove unnecessary overflow check.
73312         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
73313         fields.
73314
73315 2003-11-25  Bruno Haible  <bruno@clisp.org>
73316
73317         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
73318
73319 2003-11-25  Bruno Haible  <bruno@clisp.org>
73320
73321         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
73322         gt_TYPE_SSIZE_T.
73323
73324 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73325
73326         * modules/alloca: Remove dependency on xalloc.
73327
73328 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73329
73330         * lib/alloca.c: Remove dependency on xalloc module.
73331         (xalloc_die): Remove.
73332         (memory_full) [!defined emacs]: New macro.
73333         [!defined emacs]: Don't include xalloc.h.
73334         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
73335         address arithmetic overflows.  Change datatypes a bit to avoid
73336         unnecessary casts.
73337
73338 2003-11-22  Jim Meyering  <jim@meyering.net>
73339
73340         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
73341         s/size/size_t/.
73342
73343 2003-11-21  Karl Berry  <karl@gnu.org>
73344
73345         * config/config.{sub,guess}: update from config.
73346
73347 2003-11-18  Karl Berry  <karl@gnu.org>
73348
73349         * config/config.{sub,guess}: update from config.
73350
73351         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
73352
73353 2003-11-17  Paul Eggert  <eggert@twinsun.com>
73354
73355         * README: Mention that S+T cannot overflow if S is the size of
73356         an existing object and T is sufficiently small.
73357
73358 2003-11-17  Jim Meyering  <jim@meyering.net>
73359
73360         On systems without utime and without a utimes function capable of
73361         dealing with a NULL struct utimbuf* argument, this utime replacement
73362         could -- in unusual circumstances -- leak a file descriptor.
73363         * lib/utime.c: Include <unistd.h> and <errno.h>.
73364         (utime_null): Be sure to close `fd' and to preserve errno.
73365         Reported by Geoff Collyer via Arnold Robbins.
73366
73367 2003-11-17  Bruno Haible  <bruno@clisp.org>
73368
73369         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
73370         (Depends-on): Add xsize.
73371
73372 2003-11-17  Bruno Haible  <bruno@clisp.org>
73373
73374         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
73375
73376 2003-11-17  Bruno Haible  <bruno@clisp.org>
73377
73378         * lib/vasnprintf.c (alloca): Remove fallback definition.
73379         (freea): Remove definition.
73380         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
73381         Reported by Paul Eggert.
73382
73383 2003-11-16  Paul Eggert  <eggert@twinsun.com>
73384             Bruno Haible  <bruno@clisp.org>
73385
73386         Protect against address arithmetic overflow.
73387         * lib/printf-args.h: Include stddef.h.
73388         (arguments): Change type of field 'count' to size_t.
73389         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
73390         'unsigned int' where appropriate.
73391         * lib/printf-parse.h: Include sys/types.h.
73392         (char_directive): Change type of *arg_index fields to ssize_t.
73393         (char_directives): Change type of fields 'count', max_*_length to
73394         size_t.
73395         * lib/printf-parse.c: Include sys/types.h and xsize.h.
73396         (SSIZE_MAX): Define fallback value.
73397         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
73398         instead of 'int' where appropriate. Check a_allocated, d_allocated
73399         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
73400         * lib/vasnprintf.c: Include xsize.h.
73401         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
73402         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
73403         overflow. Avoid wraparound when converting a width or precision from
73404         decimal to binary.
73405
73406 2003-11-16  Bruno Haible  <bruno@clisp.org>
73407
73408         Update from GNU gettext.
73409         * lib/printf-parse.c: Generalize to it can be compiled for wide
73410         strings.
73411         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
73412         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
73413         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
73414         SNPRINTF): New macros.
73415         Don't include <alloca.h> if the file is used inside libintl.
73416         (local_wcslen): New function, for Solaris 2.5.1.
73417         (VASNPRINTF): Use it instead of wcslen.
73418
73419 2003-11-16  Bruno Haible  <bruno@clisp.org>
73420
73421         * lib/xsize.h (xmax): New function.
73422         (xsum, xsum3, xsum4): Declare as "pure" functions.
73423
73424 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73425
73426         * modules/xalloc (Files): Undo latest change, since xalloc.h
73427         no longer needs SIZE_MAX or PTRDIFF_MAX.
73428
73429 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73430
73431         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
73432         gl_PTRDIFF_MAX.
73433
73434 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73435
73436         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
73437         "return", to pacify some unknown compiler.  Problem reported
73438         by Joerg Schilling.
73439
73440 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73441
73442         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
73443         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
73444         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
73445         heuristic is just as accurate as far as we know, and it removes a
73446         dependency on size_max.m4 and ptrdiff_max.m4.
73447
73448 2003-11-11  Bruno Haible  <bruno@clisp.org>
73449
73450         * modules/xsize (Files): Add m4/size_max.m4.
73451         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
73452
73453 2003-11-11  Bruno Haible  <bruno@clisp.org>
73454
73455         * m4/size_max.m4: New file.
73456         * m4/ptrdiff_max.m4: New file.
73457         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
73458         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
73459         (gl_XALLOC): Invoke it.
73460
73461 2003-11-11  Bruno Haible  <bruno@clisp.org>
73462
73463         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
73464         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
73465         defined.
73466
73467 2003-11-10  Paul Eggert  <eggert@twinsun.com>
73468
73469         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
73470         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
73471         rejected some allocations of exactly SIZE_MAX - 2 bytes.
73472         From Bruno Haible.
73473         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
73474         not (size_t) -1, since it's defined here.
73475
73476 2003-11-09  Karl Berry  <karl@gnu.org>
73477
73478         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
73479
73480 2003-11-06  Paul Eggert  <eggert@twinsun.com>
73481
73482         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
73483         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
73484         Reject sizes of exactly SIZE_MAX bytes.
73485         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
73486         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
73487
73488 2003-11-05  Bruno Haible  <bruno@clisp.org>
73489
73490         * lib/xsize.h: Include limits.h, to avoid a possible collision with
73491         SIZE_MAX defined in <limits.h> on Solaris.
73492
73493 2003-11-04  Jim Meyering  <jim@meyering.net>
73494
73495         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
73496         variable names, rather than @VAR@.
73497         * modules/poll: Likewise.
73498
73499 2003-11-04  Bruno Haible  <bruno@clisp.org>
73500
73501         * modules/xsize: New file.
73502         * modules/linebreak: Depend on xsize.
73503         * MODULES.html.sh (func_all_modules): Add xsize.
73504
73505 2003-11-04  Bruno Haible  <bruno@clisp.org>
73506
73507         * m4/xsize.m4: New file.
73508
73509 2003-11-04  Bruno Haible  <bruno@clisp.org>
73510
73511         * lib/xsize.h: New file.
73512         * lib/linebreak.c: Include xsize.h.
73513         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
73514         argument for overflow.
73515         Suggested by Paul Eggert.
73516
73517 2003-11-03  Karl Berry  <karl@gnu.org>
73518
73519         * config/config.{guess,sub}: update from config.
73520
73521 2003-11-03  Jim Meyering  <jim@meyering.net>
73522
73523         * modules/userspec (lib_SOURCES): Add userspec.h.
73524         (Include): Add "userspec.h".
73525         Improve description.
73526
73527 2003-11-03  Jim Meyering  <jim@meyering.net>
73528
73529         * lib/userspec.c: Include "userspec.h".
73530         * lib/userspec.h: New file.
73531
73532 2003-11-03  Bruno Haible  <bruno@clisp.org>
73533
73534         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
73535
73536 2003-11-03  Bruno Haible  <bruno@clisp.org>
73537
73538         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
73539         available, to avoid (extremely rare) race condition.
73540         Suggested by Paul Eggert.
73541
73542 2003-11-02  Karl Berry  <karl@gnu.org>
73543
73544         * config/srclist.txt (vasprintf.c): sync broken, sigh.
73545
73546 2003-10-31  Paul Eggert  <eggert@twinsun.com>
73547
73548         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
73549         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
73550         (read_filesystem_list): Set and use me_type_malloced.
73551         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
73552         whatever the type happens to be), for brevity and consistency.
73553         Check for size calculation overflow on Alphas running OSF/1.
73554
73555 2003-10-31  Jim Meyering  <jim@meyering.net>
73556
73557         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
73558
73559         * lib/linebuffer.c: Include <string.h> for declaration of memset.
73560
73561 2003-10-30  Paul Eggert  <eggert@twinsun.com>
73562             Bruno Haible  <bruno@clisp.org>
73563
73564         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
73565         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
73566
73567 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73568
73569         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
73570         netbsd*-gnu*.  Suggested by Robert Millan.
73571
73572 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73573
73574         * modules/group-member: Depend on stdbool.
73575
73576 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73577
73578         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
73579
73580 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73581
73582         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
73583         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
73584         after the 'gnu' in these cases.  This fixes some bugs in the
73585         previous change, and is based on suggestions by Robert Millan.
73586
73587 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73588
73589         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
73590         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
73591         no longer needed.
73592         * lib/quotearg.c (quotearg_n_options): Use it.
73593         * lib/group-member.c: Include <stdbool.h>.
73594         (free_group_info): Arg is now const *; don't free arg.
73595         (get_group_info): Now returns bool and accepts struct group_info *,
73596         rather than returning a malloc'ed struct group_info *.
73597         All uses changed.  Check for overflow in internal size calculation.
73598
73599         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
73600         rather than xmalloc/xrealloc.
73601         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
73602         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
73603         conformance bug: the old code used a pointer after freeing the
73604         storage that it addressed.
73605         * lib/hash.c (hash_initialize): Simplify the code by using
73606         xalloc_oversized rather than doing it by hand.
73607         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
73608         the buffer preserved.  Use free and xmalloc instead.
73609         * lib/quotearg.c (quotearg_n_options): Likewise.
73610         Use a simpler test for size overflow.  Don't use xalloc_oversized
73611         because unsigned int might be wider than size_t (!); this suggests
73612         that we should switch from unsigned int to size_t for slot numbers.
73613
73614 2003-10-28  Paul Eggert  <eggert@twinsun.com>
73615
73616         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
73617         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
73618         NetBSD kernels.  Requested by Richard Stallman.
73619
73620 2003-10-27  Paul Eggert  <eggert@twinsun.com>
73621
73622         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
73623         to allocate the returned structure.  Do not allocate a subarray,
73624         as x2nrealloc will do that.
73625         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
73626         instead of xnrealloc.
73627         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
73628
73629 2003-10-27  Bruno Haible  <bruno@clisp.org>
73630
73631         * lib/stdbool_.h: Better support for BeOS.
73632
73633 2003-10-26  Paul Eggert  <eggert@twinsun.com>
73634
73635         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
73636         now uses inline.
73637
73638 2003-10-26  Paul Eggert  <eggert@twinsun.com>
73639
73640         * lib/xalloc.h (xalloc_oversized): New static inline function, for
73641         callers that want to do their own size-overflow checking.  Include
73642         <stdbool.h>, since xalloc_oversized returns bool.
73643         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
73644         to use xalloc_oversized.
73645
73646         Add two functions x2realloc, x2nrealloc, for programs that grow
73647         arrays dynamically by doubling their sizes.
73648         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
73649         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
73650         New functions.
73651
73652         Port to C99 semantics for 'inline' of external functions.
73653         Bug reported by Bruno Haible.
73654         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
73655         with the old contents of xnmalloc.
73656         (xnmalloc, xmalloc): Use it.
73657         (xnrealloc_inline): New static inline function,
73658         with the old contents of xnrealloc.
73659         (xnrealloc, xrealloc): Use it.
73660
73661         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
73662         that.
73663
73664 2003-10-26  Karl Berry  <karl@gnu.org>
73665
73666         * config/srclist.txt (COPYING.DOC): no longer available from
73667         /gd/gnuorg; don't know where the ultimate source is.
73668
73669 2003-10-25  Paul Eggert  <eggert@twinsun.com>
73670
73671         Fix several address-calculation bugs in the hash modules,
73672         plus some minor code cleanup.
73673
73674         * lib/hash.h: Include <stdbool.h>, for bool.
73675         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
73676         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
73677         hash_get_n_entries, hash_get_max_bucket_length,
73678         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
73679         hash_rehash): Use size_t rather than unsigned.
73680         * lib/hash.c (struct hash_table, hash_get_n_buckets,
73681         hash_get_n_buckets_used, hash_get_n_entries,
73682         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
73683         hash_get_entries, hash_do_for_each, hash_string, is_prime,
73684         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
73685         Likewise.
73686         (SIZE_MAX): Define if not defined.
73687         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
73688         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
73689         hash_print):
73690         Use const * when possible.
73691         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
73692         (check_tuning): Fix bug: if tuning parameters were very close to
73693         0 or 1, rounding errors could have caused subscript violations.
73694         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
73695         (hash_initialize): Add 'fail:' label
73696         to free table and return NULL, and use it to simplify code.
73697         Use calloc rather than clearing the storage ourself.
73698         (hash_initialize, hash_rehash): Check for arithmetic overflow in
73699         buffer size calculations.
73700         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
73701         Include <stddef.h>, for size_t.
73702         * lib/hash-pjw.c (hash_pjw): Likewise.
73703         Switch to method described by Bruno Haible.
73704         Include <limits.h>, for CHAR_BIT.
73705         (SIZE_BITS): New macro.
73706
73707 2003-10-23  Paul Eggert  <eggert@twinsun.com>
73708
73709         * m4/getline.m4 (AM_FUNC_GETLINE):
73710         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
73711         hosts.  Problem reported by Derek Robert Price in
73712         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
73713         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
73714         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
73715
73716 2003-10-21  Paul Eggert  <eggert@twinsun.com>
73717
73718         * lib/getndelim2.c (getndelim2): When size calculation overflows,
73719         ceiling the allocation at NMAX bytes rather than silently
73720         discarding input bytes before NMAX is reached.  This makes
73721         a difference only if NMAX exceeds SIZE_MAX / 2.
73722
73723         * lib/obstack.c: Merge from glibc.
73724         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
73725         Add libc_hidden_def (_obstack_newchunk).
73726         (_obstack_free) [! defined _LIBC]: Remove.
73727         [defined _LIBC]: Make a strong alias from obstack_free, rather than
73728         a clone of the function body.
73729         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
73730         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
73731
73732         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
73733         glibc.
73734         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
73735         arg to memcpy.
73736
73737         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
73738         (obstack_ptr_grow_fast, obstack_int_grow_fast):
73739         Don't use lvalue casts, as GCC plans to remove support for them
73740         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
73741         was also present in the non-GCC version, indicating that this
73742         code had always been buggy and had never been widely used.
73743         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
73744         Use the fast variant of each macro, rather than copying the
73745         definiens of the fast variant; that way, we'll be more likely to
73746         catch future bugs in the fast variants.
73747
73748 2003-10-20  Bruno Haible  <bruno@clisp.org>
73749
73750         * modules/wait-process: New file.
73751         * MODULES.html.sh (func_all_modules): Add wait-process.
73752
73753 2003-10-20  Bruno Haible  <bruno@clisp.org>
73754
73755         * m4/wait-process.m4: New file.
73756
73757 2003-10-20  Bruno Haible  <bruno@clisp.org>
73758
73759         * lib/wait-process.h: New file, from GNU gettext.
73760         * lib/wait-process.c: New file, from GNU gettext.
73761
73762 2003-10-19  Jim Meyering  <jim@meyering.net>
73763
73764         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
73765         HPUX 10.20.
73766
73767 2003-10-18  Karl Berry  <karl@gnu.org>
73768
73769         * config/config.guess: update from config.
73770
73771 2003-10-16  Paul Eggert  <eggert@twinsun.com>
73772
73773         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
73774         (getgroups): First arg is int, not size_t.
73775         Don't let 'free' mangle errno.
73776
73777 2003-10-16  Paul Eggert  <eggert@twinsun.com>
73778
73779         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
73780
73781 2003-10-16  Karl Berry  <karl@gnu.org>
73782
73783         * config/config.{guess,sub}: update from config.
73784
73785 2003-10-16  Jim Meyering  <jim@meyering.net>
73786
73787         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
73788         memcpy.
73789
73790 2003-10-15  Paul Eggert  <eggert@twinsun.com>
73791
73792         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
73793         (SIZE_MAX): Remove.
73794         (new_exclude, add_exclude_file): Initial size no longer needs to
73795         be a power of 2.
73796         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
73797         our own address arithmetic overflow checking.
73798
73799         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
73800         (fnmatch): Do not alloca more than 2000 wide characters;
73801         instead, use malloc for large buffers.
73802         Check for address arithmetic overflow, and return -1
73803         with errno set to ENOMEM in that case.
73804         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
73805         (NEW_PATTERN): Do not alloca more than 8000 bytes;
73806         instead, return -1.  Check for address arithmetic overflow.
73807
73808 2003-10-14  Paul Eggert  <eggert@twinsun.com>
73809
73810         Handle invalid suffixes and overflow independently, so that
73811         callers can treat them independently as needed.  Fix some bugs in
73812         suffix handling, e.g., "100k@" was not diagnosed as an invalid
73813         suffix for a human-readable blocksize.  The major caller-visible
73814         change is the addition of a new
73815         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
73816         that both overflow and suffix chars were found.
73817
73818         * lib/human.c (humblock): Don't check separately for invalid suffix
73819         char; that is xstrtoumax's job (now that its bug is fixed).
73820         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
73821         INTMAX_MAX]: New macros.
73822         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
73823         TYPE_MAXIMUM): New macros.
73824         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
73825         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
73826         if overflow occurs, as it's what __strtol does and it's more useful
73827         in practice.
73828         (__xstrtol): If __strtol reports some error other than ERANGE,
73829         reflect it to the caller as LONGINT_INVALID.  If it reports
73830         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
73831         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
73832         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
73833         value.
73834         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
73835         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
73836         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
73837         [defined UINTMAX_MAX]: New macros.
73838
73839 2003-10-14  Bruno Haible  <bruno@clisp.org>
73840
73841         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
73842
73843 2003-10-14  Bruno Haible  <bruno@clisp.org>
73844
73845         * m4/sig_atomic_t: New file, from GNU gettext.
73846         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
73847
73848 2003-10-14  Bruno Haible  <bruno@clisp.org>
73849
73850         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
73851         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
73852         Also use volatile where needed.
73853
73854 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73855
73856         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
73857         Change maintainer from Bruno Haible to 'all'.
73858
73859 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73860
73861         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
73862
73863 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73864
73865         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
73866         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
73867         and define in terms of the other primitives.
73868         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
73869         (SIZE_MAX): Define if not already defined.
73870         (array_size_overflow): New function.
73871         (xalloc_die): Abort instead of exiting if 'error' returns.
73872         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
73873         (xmalloc, xrealloc): Use them.
73874         (xcalloc): Check for address arithmetic overflow.
73875         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
73876         a bit faster than strcpy.
73877
73878 2003-10-10  Simon Josefsson  <jas@extundo.com>
73879
73880         * modules/argp (Depends-on): Add restrict and strcase.
73881
73882 2003-10-10  Simon Josefsson  <jas@extundo.com>
73883
73884         * m4/argp.m4: Add AC_C_INLINE.
73885
73886 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73887
73888         Merge getpass from libc, plus a few fixes.
73889
73890         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
73891         Include <stdbool.h>.
73892         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
73893         __fsetlocking to empty.
73894         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
73895         do include <bits/libc-lock.h>.
73896         Do not include <fcntl.h>; not needed.
73897         [_LIBC]: Include <wchar.h>.
73898         (NOTCANCEL_MODE): New macro.
73899         (flockfile, funlockfile) [_LIBC]: New macros.
73900         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
73901         [!_LIBC]: New macros.
73902         (call_fclose): New function.
73903         (getpass): Use it.  Save tty stream separately; this simplifies the
73904         code and makes it more reliable if stdin happens to equal stdout.
73905         Invoke __fsetlocking on tty.
73906         Handle thread cancellation if needed.
73907         Namespace cleanup (use __tcgetattr, __getline).
73908         Use bool for Booleans.
73909         [USE_IN_LIBIO]: Handle wide streams.
73910         [!_LIBC]: Unconditionally do the fseek, since we don't know what
73911         stream might go where.
73912
73913         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
73914         doesn't have to include <stdio.h> before us.
73915         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
73916         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
73917         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
73918         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
73919         if not declared, so that we can use getpass.c code from libc without
73920         rewriting it.
73921         (flockfile, ftrylockfile, funlockfile): New macros.
73922
73923 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73924
73925         * modules/getpass: Depend on stdbool.
73926
73927 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73928
73929         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
73930
73931 2003-10-07  Karl Berry  <karl@gnu.org>
73932
73933         * config/config.{guess,sub}: update from config.
73934
73935 2003-10-06  Jim Meyering  <jim@meyering.net>
73936             Bruno Haible  <bruno@clisp.org>
73937
73938         This lets translators provide better translations for the
73939         "Written by ..." part of --version output.
73940         * lib/version-etc.h: Include stdarg.h.
73941         (version_etc_copyright): Declare as readonly.
73942         (version_etc): Make this function variadic with a NULL-terminated list
73943         of author name strings.
73944         (version_etc_va): New declaration.
73945         * lib/version-etc.c: Include stdarg.h, stdlib.h.
73946         (version_etc_copyright): Declare as readonly.
73947         (version_etc_va): New function. Provide a different translatable string
73948         for each possible number of authors < 10. Abbreviate when there are 10
73949         authors or more.
73950         (version_etc): Make this function variadic. Call version_etc_va.
73951         Suggestion from Gary V. Vaughan.
73952
73953         * lib/long-options.h (parse_long_options): Change prototype: the
73954         authors string is moved to the end and becomes variadic.
73955         * lib/long-options.c: Include stdarg.h.
73956         (parse_long_options): Make this function variadic, too.
73957         Call version_etc_va, not version_etc.
73958
73959 2003-10-06  Bruno Haible  <bruno@clisp.org>
73960
73961         * modules/version-etc-2: Remove file.
73962         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
73963
73964 2003-10-06  Bruno Haible  <bruno@clisp.org>
73965
73966         * modules/fatal-signal: New file.
73967         * MODULES.html.sh (func_all_modules): Add fatal-signal.
73968
73969 2003-10-06  Bruno Haible  <bruno@clisp.org>
73970
73971         * m4/fatal-signal.m4: New file.
73972         * m4/signalblocking.m4: New file, from GNU gettext.
73973
73974 2003-10-06  Bruno Haible  <bruno@clisp.org>
73975
73976         * lib/version-etc-2.h: Remove file.
73977         * lib/version-etc-2.c: Remove file.
73978
73979 2003-10-06  Bruno Haible  <bruno@clisp.org>
73980
73981         * lib/fatal-signal.h: New file, from GNU gettext.
73982         * lib/fatal-signal.c: New file, from GNU gettext.
73983
73984 2003-10-05  Paul Eggert  <eggert@twinsun.com>
73985
73986         * README: Rework advice for preventing empty .o files.
73987         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
73988         not <sys/types.h>.
73989
73990 2003-10-04  Karl Berry  <karl@gnu.org>
73991
73992         * lib/argp*: update from libc.
73993
73994 2003-10-04  Karl Berry  <karl@gnu.org>
73995
73996         * config/config.{guess,sub}: update from config.
73997
73998 2003-10-02  Bruno Haible  <bruno@clisp.org>
73999
74000         * modules/lchown (Include): Add lchown.h.
74001         * modules/time_r (Include): Use "..." syntax.
74002         * modules/xgetdomainname (Include): Add xgetdomainname.h.
74003
74004 2003-10-01  Simon Josefsson  <jas@extundo.com>
74005
74006         * MODULES.html.sh (func_all_modules): Move gethostname from section
74007         'based on' to section 'lacking' POSIX:2001.
74008
74009 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
74010
74011         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
74012         to output mode on the same stream.
74013
74014 2003-09-29  Paul Eggert  <eggert@twinsun.com>
74015
74016         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
74017         Fix arg typo in previous patch.
74018
74019 2003-09-28  Jim Meyering  <jim@meyering.net>
74020
74021         * lib/error.c: Correct cpp indentation.
74022
74023 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74024
74025         * modules/free: New file.
74026
74027 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74028
74029         * m4/free.m4: New file.
74030
74031 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74032
74033         * lib/minmax.h (MIN, MAX)
74034         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
74035         Omit the special code that used __typeof__, since we worry that
74036         it could be more trouble than it's worth.  See:
74037         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
74038         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
74039
74040         * lib/free.c: New file.
74041
74042 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
74043
74044         Trivial fixes to Makefile.am parts of module listings.
74045         * modules/strstr: Append strstr.h to lib_SOURCES.
74046         * modules/strcase: Likewise, for strcase.h.
74047
74048 2003-09-27  Karl Berry  <karl@gnu.org>
74049
74050         * config/mkinstalldirs: update from automake.
74051
74052 2003-09-26  Paul Eggert  <eggert@twinsun.com>
74053
74054         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
74055         (error_tail): Do not loop, reallocating temporary buffer, since
74056         the output cannot contain more wide characters than the input
74057         contains bytes, the size must be big enough already.  This avoids
74058         one potential size overflow calculation.  Check for size overflow
74059         when calculating temporary buffer size.  Free temporary buffer
74060         when done, if it was allocated with malloc; this plugs a memory
74061         leak.  Remove casts from void * to pointers, that are no longer
74062         needed now that we're assuming C89 or better.
74063
74064         Merge error changes from glibc.
74065
74066         * lib/error.c, error.h: Update copyright notice header to match glibc.
74067         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
74068         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
74069         Disable cancellation while printing error.
74070         * lib/error.h: Prepend __ to parameter names.
74071
74072 2003-09-26  Jim Meyering  <jim@meyering.net>
74073
74074         * lib/error.c (error_tail): Move some declarations
74075         into inner scope where the local variables are used.
74076
74077 2003-09-26  Bruno Haible  <bruno@clisp.org>
74078
74079         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
74080         stpncpy().
74081         Don't define stpncpy through config.h; it's now done through stpncpy.h.
74082
74083 2003-09-26  Bruno Haible  <bruno@clisp.org>
74084
74085         * lib/stpncpy.h (gnu_stpncpy): New declaration.
74086         (stpncpy): Define as alias for gnu_stpncpy.
74087         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
74088
74089 2003-09-25  Simon Josefsson  <jas@extundo.com>
74090
74091         * lib/xgetdomainname.h: New file.
74092         * lib/xgetdomainname.c: New file.
74093
74094 2003-09-25  Simon Josefsson  <jas@extundo.com>
74095             Bruno Haible  <bruno@clisp.org>
74096
74097         * modules/getdomainname: New file.
74098         * modules/xgetdomainname: New file.
74099         * MODULES.html.sh (func_all_modules): Add getdomainname,
74100         xgetdomainname.
74101
74102 2003-09-25  Simon Josefsson  <jas@extundo.com>
74103             Bruno Haible  <bruno@clisp.org>
74104
74105         * m4/getdomainname.m4: New file.
74106
74107 2003-09-25  Simon Josefsson  <jas@extundo.com>
74108             Bruno Haible  <bruno@clisp.org>
74109
74110         * lib/getdomainname.h: New file.
74111         * lib/getdomainname.c: New file.
74112
74113 2003-09-25  Karl Berry  <karl@gnu.org>
74114
74115         * lib/argp-fmtstream.c, argp-help.c: update from libc.
74116
74117 2003-09-25  Karl Berry  <karl@gnu.org>
74118
74119         * config/install-sh: update from automake.
74120
74121 2003-09-25  Bruno Haible  <bruno@clisp.org>
74122
74123         * modules/version-etc-2: New file, from modules/version-etc with
74124         modifications.
74125         * MODULES.html.sh (func_all_modules): Add version-etc-2.
74126
74127 2003-09-25  Bruno Haible  <bruno@clisp.org>
74128
74129         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
74130         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
74131
74132 2003-09-24  Simon Josefsson  <jas@extundo.com>
74133
74134         * modules/xgethostname: Add xgethostname.h.
74135
74136 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74137
74138         * lib/linebuffer.c (freebuffer): Don't free the argument, just
74139         the buffer associated with the argument.  Bug reported by
74140         Simon Josefsson.
74141
74142 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74143
74144         * README: Document assumptions that 'int' is at least 32 bits
74145         wide, that integer arithmetic is 2's complement without overflow,
74146         that there are no holes in integer values, that adding sizes of
74147         two nonoverlapping objects can't overflow, and that all-bits-zero
74148         yields scalar zero.  Fix spelling and capitalization typos.
74149
74150 2003-09-19  Karl Berry  <karl@gnu.org>
74151
74152         * lib/argp.h: update from libc.
74153
74154 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74155
74156         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
74157         to avoid spurious warnings like "AC_RUN_IFELSE was called before
74158         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
74159
74160 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74161
74162         * gnulib-tool: Use "test -h", not "test -L", for portability
74163         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
74164         (tags_regexp): Remove, since \| doesn't conform to POSIX.
74165         (sed_extract_prog): Issue s commands one-by-one, rather than
74166         using \| in one s command.
74167
74168 2003-09-16  Paul Eggert  <eggert@twinsun.com>
74169
74170         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
74171         input error, instead of returning NULL the next time we are called
74172         (and therefore losing track of errno).
74173
74174 2003-09-16  Bruno Haible  <bruno@clisp.org>
74175
74176         * gnulib-tool (func_create_testdir): Warn about duplicated
74177         dependencies.
74178
74179 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74180
74181         * modules/argmatch, modules/fatal, modules/obstack,
74182         modules/xalloc, modules/xgethostname: Sort dependencies by
74183         importance, not alphabetically.
74184
74185 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74186
74187         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
74188         fails, so that the caller gets the proper errno.
74189
74190         * lib/readutmp.c (read_utmp): Likewise.
74191         Check for fstat error.  Close stream and free storage
74192         when failing.
74193
74194 2003-09-14  Karl Berry  <karl@gnu.org>
74195
74196         * config/srclist.txt (strdup.c): disable for c89 changes.
74197
74198 2003-09-14  Jim Meyering  <jim@meyering.net>
74199
74200         * lib/getloadavg.c: Correct cpp indentation.
74201         * lib/strdup.c: Likewise.
74202         * lib/vasnprintf.c: Likewise.
74203
74204 2003-09-14  Bruno Haible  <bruno@clisp.org>
74205
74206         * modules/fwriteerror: New file.
74207         * MODULES.html.sh (func_all_modules): Add fwriteerror.
74208
74209 2003-09-14  Bruno Haible  <bruno@clisp.org>
74210
74211         * lib/fwriteerror.h: New file.
74212         * lib/fwriteerror.c: New file.
74213
74214 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74215
74216         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
74217         modules/xgethostname, modules/xalloc: Depend on exit.
74218
74219 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74220
74221         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
74222
74223         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
74224         and AC_MINIX, too, so that their extensions are available.
74225
74226         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
74227         This macro has been superseded by gl_BACKUPFILE.
74228
74229         More patches to assume C89 or better.
74230
74231         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
74232
74233         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
74234         unconditionally.
74235         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
74236         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
74237         Include <string.h>, <stdlib.h> unconditionally.
74238         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
74239         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
74240         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
74241         headers or for string.h.
74242         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
74243         or strtoul.
74244
74245         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
74246         headers.
74247         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
74248         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74249         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
74250         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
74251         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74252         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
74253         memcpy, memset.
74254         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
74255         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
74256         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
74257         strtol.
74258         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
74259         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
74260         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
74261         strtoul.
74262
74263 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74264
74265         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
74266         * lib/obstack.c [!defined _LIBC]: Likewise.
74267         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
74268         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
74269         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
74270
74271         More changes to assume C89 or better.
74272
74273         * lib/error.c (error_tail): Assume vprintf.
74274
74275         * lib/argmatch.c (getenv): Remove decl.
74276         * lib/progreloc.c (get_full_program_name): Define via prototype.
74277         * lib/setenv.c (clearenv): Likewise.
74278         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
74279         needed.
74280         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
74281         (malloc, memcpy): Remove decls.
74282         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
74283         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
74284         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74285         (memcpy): Remove macro.
74286         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
74287         (__P): Remove.  All uses removed.
74288         (PTR): Remove.  All uses changed to void *.
74289         (CHAR_BIT, NULL): Remove.
74290         (spaces, zeros, memset_space, memset_zero)
74291         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
74292         Remove.
74293         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
74294         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
74295         Define with prototype.
74296         Remove now-unnecessary prototype decl.
74297         (extra_args_spec): Assume ANSI C.  All uses changed.
74298         (extra_args_spec_iso): Remove.
74299         (my_strftime, emacs_strftimeu): Define via prototype.
74300         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
74301         unconditionally.
74302         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
74303         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
74304         (strtoul, strtol): Remove decls.
74305         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
74306         LONG_MAX): Remove.
74307         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74308         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
74309         (LOCALE_PARAM_PROTO): New macro.
74310         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
74311         (INTERNAL (strtol), strtol): Define with a prototype.
74312         (PARAMS): Remove.  All uses removed.
74313         * lib/tempname.c: Include <string.h> unconditionally.
74314         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
74315         * lib/xgethostname.c (main): Define with a prototype.
74316         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
74317         Include <stdlib.h> unconditionally.
74318         (calloc, malloc, realloc, free): Remove decls.
74319         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
74320         Include <stdlib.h> unconditionally.  Sort include file names.
74321         (strtod): Remove.
74322         (xstrtod): Define with a prototype.
74323         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
74324         (strtol, strtoul): Remove decls.
74325
74326 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74327
74328         More patches to assume C89 or better.
74329         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
74330         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
74331         string.h, memchr, STDC_HEADERS.
74332
74333 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74334
74335         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
74336         Include <stdlib.h>, <string.h> unconditionally.
74337         Remove now-unnecessary cast to char *.
74338         * lib/strnlen.c: Include <string.h> unconditionally.
74339         * lib/yesno.c (yesno): Define with a prototype.
74340
74341 2003-09-11  Bruno Haible  <bruno@clisp.org>
74342
74343         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
74344
74345 2003-09-10  Jim Meyering  <jim@meyering.net>
74346
74347         * lib/error.c: Correct indentation of cpp directives.
74348
74349 2003-09-10  Bruno Haible  <bruno@clisp.org>
74350
74351         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
74352         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
74353         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
74354         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
74355         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
74356         <stdlib.h> and <string.h> checks.
74357         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
74358         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
74359
74360 2003-09-10  Bruno Haible  <bruno@clisp.org>
74361
74362         * lib/strcspn.c: Include <string.h> unconditionally.
74363         * lib/strpbrk.c: Include <string.h> unconditionally.
74364         * lib/strstr.c: Include <string.h> unconditionally.
74365         * lib/unicodeio.c: Include <string.h> unconditionally.
74366         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
74367         * lib/unsetenv.c: Likewise.
74368         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
74369         * lib/yesno.c: Include <stdlib.h> unconditionally.
74370         (rpmatch): Add prototype.
74371
74372 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74373
74374         More patches to assume C89 or better.
74375         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
74376         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
74377         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
74378         or for string.h.
74379         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
74380         stdlib.h.
74381         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
74382         C headers.
74383         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
74384         string.h.
74385         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
74386         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
74387         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
74388         or for string.h.
74389         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
74390         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
74391         C headers.
74392         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
74393         memcpy.
74394         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
74395         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
74396         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
74397         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
74398         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
74399         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
74400         string.h, free.
74401         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
74402         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
74403         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
74404         C headers, or for string.h.
74405         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
74406         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
74407         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
74408         headers, memory.h, stdlib.h, string.h, strings.h.
74409         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
74410         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
74411         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
74412         strchr.
74413         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
74414         headers, memory.h, string.h.
74415         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
74416         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
74417         free.
74418         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
74419         headers.
74420         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
74421         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
74422         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
74423         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
74424         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
74425
74426 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74427
74428         More K&R removal.
74429
74430         * lib/acosl.c (main): Use a prototype.
74431         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
74432         tanl.c: Likewise.
74433
74434         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
74435
74436         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
74437         (getopt, etopt_long, getopt_long_only, _getopt_internal)
74438         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
74439         with a prototype.
74440         * lib/getopt.c (const): Remove macro.
74441         Include <string.h> unconditionally.
74442         (my_index): Remove; all uses changed to strchr.
74443         (strlen): Remove decl.
74444         (exchange): Remove forward decl; no longer needed.
74445         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
74446         Define with prototype.
74447         * lib/getopt1.c (const): Remove macro.
74448         (getopt_long, getopt_long_only, main): Define with prototype.
74449
74450         * lib/getugroups.c: Include <string.h> unconditionally.
74451
74452         * lib/getusershell.c: Include <stdlib.h> unconditionally.
74453         (getusershell, setusershell, endusershell, readname, main):
74454         Define with prototypes.
74455
74456         * lib/group-member.c: Include group-member.h first.
74457         Include <stdlib.h> unconditionally.
74458
74459         * lib/hard-locale.c: Include hard-locale.h first.
74460         Include <stdlib.h>, <string.h> unconditionally.
74461
74462         * lib/hash.c (free, malloc): Remove decls.
74463         Include <stdlib.h> unconditionally.
74464
74465         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
74466         (getenv): Do not declare.
74467
74468         * lib/idcache.c: Include <string.h> unconditionally.
74469
74470         * lib/long-options.c: Include long-options.h first, to test interface.
74471         Include <stdlib.h> unconditionally.
74472
74473         * lib/makepath.c: Include makepath.h first, to test interface.
74474         Include <stdlib.h> and <string.h> unconditionally.
74475
74476         * lib/linebuffer.c: Include <stdlib.h>.
74477         (free): Remove decl.
74478
74479         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
74480         stddef.h. rpl_malloc returns void *, not char *.
74481         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
74482         prototype.
74483
74484         * lib/md5.h: Include <limits.h> unconditionally.
74485         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
74486         (__P): Remove; all uses removed.
74487         * lib/md5.c: Include "md5.h" first.
74488         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
74489         md5_buffer, md5_process_bytes, md5_process_block):
74490         Define with prototypes.
74491         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
74492         * lib/sha.c: Include "sha.h" first.
74493         Include <stdlib.h>, <string.h> unconditionally.
74494
74495         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
74496         * lib/memcmp.c (__ptr_t): Likewise.
74497         * lib/memrchr.c (__ptr_t): Likewise.
74498         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
74499         Include <string.h> unconditionally.
74500         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
74501         * lib/memchr.c: Include <stdlib.h> unconditionally.
74502         * lib/memchr.c (LONG_MAX): Remove.
74503         * lib/memrchr.c (LONG_MAX): Likewise.
74504         * lib/memchr.c (__memchr): Define via a prototype.
74505         * lib/memrchr.c (__memrchr): Likewise.
74506         * lib/memcmp.c (__P): Remove, and remove all uses.
74507         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
74508         Remove forward decls; no longer needed.
74509         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
74510         Use types required by C89 in prototype.
74511
74512         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
74513         * lib/savedir.c: Likewise.
74514         * lib/mkdir.c (free): Remove decl.
74515         * lib/rmdir.c (rmdir): Define with a prototype.
74516         * lib/savedir.c: Include savedir.h first, to test interface.
74517
74518         * lib/mktime.c (STDC_HEADERS): Remove.
74519         Include <stdlib.h>, <string.h> unconditionally.
74520
74521         * lib/modechange.c: Include <stdlib.h> unconditionally.
74522         (malloc): Remove decl.
74523
74524         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
74525         (free): Remove decl.
74526
74527         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
74528         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
74529         (This type really should be intptr_t, but that's a C99ism.)
74530         (_obstack_memcpy): Remove: all uses changed to memcpy.
74531         Include <string.h> unconditionally.
74532         (struct obstack): Assume __STDC__ for types of members
74533         chunkfun, freefun, extra_arg.
74534         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
74535         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
74536         obstack_begin, obstack_specify_allocation,
74537         obstack_specify_allocation_with_arg, obstack_chunkfun,
74538         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
74539         Remove unprototyped decls and the macros that use them.
74540         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
74541         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
74542         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
74543         (defined __STDC__ && __STDC__)]:
74544         Remove nonprototyped code.
74545         Include <stdlib.h> unconditionally.
74546         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
74547         _obstack_allocated_p, _obstack_free, obstack_free,
74548         _obstack_memory_used, print_and_abort):
74549         Define using prototypes.
74550         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
74551         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
74552         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
74553         obstack_next_free, obstack_object_size, obstack_room) [0]:
74554         Remove unused, unprototyped code.
74555
74556         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
74557
74558         * lib/physmem.c (physmem_total, physmem_available, main): Define
74559         with prototypes.
74560
74561         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
74562         (main): Define with a prototype.
74563
74564         * lib/posixver.c (getenv): Remove decl.
74565
74566         * lib/putenv.c (malloc): Returns void *, not char *.
74567         Include <string.h> unconditionally.
74568         (strchr, memcpy, NULL): Do not define.
74569
74570         * lib/readtokens.c: Include readtokens.h first, to test interface.
74571         Include <stdlib.h>, <string.h> unconditionally.
74572         (init_tokenbuffer): Define with a prototype.
74573
74574         * lib/regex.c (PARAMS): Remove.  All uses removed.
74575         All uses of _RE_ARGS removed, too.
74576         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74577         unconditionally.
74578         (bzero): Assume memset exists.
74579         (memcmp, memcpy, NULL): Remove.
74580         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
74581         char, or assignments to local vars of type signed char.
74582         (init_syntax_once, PREFIX(extract_number_and_incr),
74583         PREFIX(print_partial_compiled_pattern),
74584         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
74585         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
74586         PREFIX(regex_grow_registers), PREFIX(regex_compile),
74587         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
74588         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
74589         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
74590         wcs_compile_range, byte_compile_range, truncate_wchar,
74591         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
74592         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
74593         count_mbs_length, wcs_re_match_2_internal,
74594         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
74595         PREFIX(alt_match_null_string_p),
74596         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
74597         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
74598         regfree, PREFIX(extract_number)): Define with prototype.  Remove
74599         now-unnecessary declaration, if any.
74600         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
74601         regcomp, regexec):
74602         Remove now-unnecessary casts among pointer types.
74603         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
74604
74605         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
74606         (free): Remove decl.
74607
74608         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
74609
74610         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
74611         (free): Remove decl.
74612
74613         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
74614         * lib/xgetcwd.c: Likewise.
74615
74616         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
74617         (free): Remove decl.
74618
74619         * lib/strchrnul.c (strchrnul): Define with a prototype.
74620         Fix bug: c_in was not converted to char before searching.
74621
74622         The following changes are not K&R related:
74623
74624         * lib/group-member.h: Include <sys/types.h>, so that this file is
74625         self-contained.
74626         * lib/makepath.h: Likewise.
74627
74628         * lib/getusershell.c (readname, default_index, line_size, readname):
74629         Use size_t, not int, for sizes.
74630         (readname): If the size overflows, report an error instead of
74631         looping forever.
74632
74633 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74634
74635         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
74636         libc.
74637
74638 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74639
74640         * README: New section: portability guidelines.
74641
74642 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
74643
74644         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
74645         C89 spec.
74646
74647 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
74648
74649         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
74650
74651 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74652
74653         Assume C89 or better; remove K&R cruft.
74654         A few of these changes were first proposed by Derek Robert Price
74655         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
74656
74657         * lib/addext.c: Include <string.h> unconditionally.
74658         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
74659         Don't declare getenv or malloc.
74660
74661         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
74662         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
74663         (NULL): Remove.
74664         (find_stack_direction, alloca): Use prototypes.
74665
74666         * lib/atexit.c (atexit): Define using a prototype.
74667
74668         * lib/basename.c, dirname.c, stripslash.c:
74669         Include <string.h> unconditionally.
74670
74671         * lib/bcopy.c: Include <stddef.h>.
74672         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
74673
74674         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
74675
74676         * lib/error.h (error, error_at_line, error_print_progname)
74677         [! (defined (__STDC__) && __STDC__)]: Remove decls.
74678         * lib/error.c: Include error.h first, to check interface.
74679         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
74680         (VA_START): Remove; all uses changeed to va_start.
74681         (exit, strerror): Remove decls.
74682         (error_print_progname): Prototype uncondionally.
74683         Don't include <errno.h>; no longer needed.
74684         (private_strerror): Remove.
74685         (error_tail): Always define.
74686         (error, error_at_line): Assume C89 or better; always use prototypes.
74687         * lib/fatal.c: Include "fatal.h" first, to test interface.
74688         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
74689         (VA_START): Remove; all uses changed to va_start.
74690         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
74691         this case.
74692         (exit): Remove decl.
74693         (fatal): Prototype unconditionally.  Assume va_start works.
74694         Abort at end, to pacify gcc.
74695
74696         * lib/euidaccess.c (main): Define with a prototype.
74697
74698         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
74699
74700         * lib/exitfail.c: Include <stdlib.h> unconditionally.
74701
74702         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
74703         prototypes.
74704         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
74705         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
74706         (getenv): Remove decl.
74707         (fnmatch): Define using a prototype.
74708         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
74709         (FCT): Define using a prototype.
74710
74711         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
74712
74713         * lib/gethostname.c: Include <stddef.h>.
74714         (gethostname): Define with prototype.  Length is size_t, not int.
74715
74716 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74717
74718         Assume C89 or better; remove K&R cruft.
74719         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
74720         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
74721         string.h, getenv, malloc.
74722         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
74723         headers.
74724         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
74725         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
74726         do not check for strerror.
74727         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
74728         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
74729         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
74730         do not check for doprnt or vprintf.
74731         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
74732         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
74733
74734 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74735
74736         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
74737         getversion.c should have been removed then, but was accidentally
74738         preserved.
74739
74740         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
74741         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
74742
74743 2003-09-08  Karl Berry  <karl@gnu.org>
74744
74745         * config/config.sub, config.guess, srclistvars.sh: update from savannah
74746                 config, forget about prep.
74747
74748         * config/depcomp, missing: update from automake.
74749
74750 2003-09-07  Paul Eggert  <eggert@twinsun.com>
74751
74752         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
74753         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
74754
74755 2003-09-07  Paul Eggert  <eggert@twinsun.com>
74756
74757         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
74758         copy_tm_result.  Bug reported by Simon Josefsson in
74759         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
74760
74761 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74762
74763         * m4/time_r.m4: New file.
74764         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
74765         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
74766         is. Check for timegm declaration.
74767         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
74768         Do not check for gmtime_r.
74769         Replace mktime if __mktime_internal does not exist and if mktime
74770         hasn't been replaced already.
74771
74772 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74773
74774         * lib/time_r.c, lib/time_r.h: New files.
74775
74776         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
74777         __localtime_r.
74778         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
74779         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
74780
74781         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
74782         __gmtime_r.
74783         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
74784         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
74785         Include <time_r.h>.
74786
74787         * lib/timegm.c: Switch to glibc implementation, with the following
74788         changes:
74789         [defined HAVE_CONFIG_H]: Include <config.h>.
74790         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
74791         (__mktime_internal) [!defined _LIBC]: New decl.
74792         (__gmtime_r) [!defined _LIBC]: New macro and function.
74793         (timegm): Use a prototype, since gnulib assumes C89.
74794         Do not bother declaring tmp to be const, as it's not really usefu.
74795         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
74796         (timegm): Declare only if HAVE_DECL_TIMEGM.
74797
74798 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74799
74800         * MODULES.html.sh (func_all_modules): Add time_r.
74801         * modules/time_r: New file.
74802         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
74803         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
74804
74805 2003-09-03  Paul Eggert  <eggert@twinsun.com>
74806
74807         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
74808         Bug reported by Lute Kamstra in
74809         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
74810
74811         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
74812         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
74813         course with correspondingly smaller numbers for tomorrow and
74814         yesterday.  From Tadayoshi Funaba.  Originally installed into
74815         sh-utils on 1999-08-07, but the patch got lost (I guess during the
74816         coreutils merge?).
74817
74818 2003-08-31  Simon Josefsson  <jas@extundo.com>
74819
74820         * modules/timegm: New file.
74821         * MODULES.html.sh (func_all_modules): Add timegm.
74822
74823 2003-08-31  Simon Josefsson  <jas@extundo.com>
74824
74825         * m4/timegm.m4: New file.
74826
74827 2003-08-31  Simon Josefsson  <jas@extundo.com>
74828
74829         * lib/timegm.h: New file.
74830         * lib/timegm.c: New file.  Based on
74831         wget-1.8.2/src/http.c:mktime_from_utc.
74832
74833 2003-08-31  Karl Berry  <karl@gnu.org>
74834
74835         * lib/argp.h: update from libc.
74836
74837 2003-08-28  Bruno Haible  <bruno@clisp.org>
74838
74839         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
74840         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
74841         followed by '#define fnmatch fnmatch_posix' gives an error.
74842
74843 2003-08-28  Bruno Haible  <bruno@clisp.org>
74844
74845         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
74846         warning on QNX, which defines O_BINARY to 000000.
74847
74848 2003-08-27  Jim Meyering  <jim@meyering.net>
74849
74850         * m4/mkstemp.m4: Require that the system mkstemp be able to create
74851         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
74852         would fail after 32.  Reported by Danny Levinson.  Details here:
74853         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
74854
74855 2003-08-24  Bruno Haible  <bruno@clisp.org>
74856
74857         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
74858         MSVC7 <stdio.h> is included later.
74859
74860 2003-08-22  Simon Josefsson  <jas@extundo.com>
74861
74862         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
74863
74864 2003-08-20  Karl Berry  <karl@gnu.org>
74865
74866         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
74867
74868 2003-08-20  Bruno Haible  <bruno@clisp.org>
74869
74870         * modules/progname: New file.
74871         * MODULES.html.sh (func_all_modules): Add progname.
74872
74873 2003-08-20  Bruno Haible  <bruno@clisp.org>
74874
74875         * lib/progname.h: New file, from GNU gettext.
74876         * lib/progname.c: New file, from GNU gettext.
74877         * lib/progreloc.c: New file, from GNU gettext.
74878
74879 2003-08-19  Jim Meyering  <jim@meyering.net>
74880
74881         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
74882         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
74883
74884 2003-08-19  Bruno Haible  <bruno@clisp.org>
74885
74886         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
74887         more.
74888
74889 2003-08-19  Bruno Haible  <bruno@clisp.org>
74890
74891         * lib/xstrdup.c: Assume <string.h> exists.
74892
74893 2003-08-18  Paul Eggert  <eggert@twinsun.com>
74894
74895         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
74896         in makefile rules.
74897
74898 2003-08-18  Jim Meyering  <jim@meyering.net>
74899
74900         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
74901         * m4/lib-ld.m4: Likewise.
74902
74903 2003-08-18  Jim Meyering  <jim@meyering.net>
74904
74905         * lib/setenv.h: Indent nested cpp directive.
74906         * lib/vasnprintf.c: Remove trailing blanks.
74907
74908 2003-08-17  Simon Josefsson  <jas@extundo.com>
74909
74910         * modules/xstrndup: New file.
74911         * MODULES.html.sh (func_all_modules): Add xstrndup.
74912
74913 2003-08-17  Simon Josefsson  <jas@extundo.com>
74914
74915         * modules/argp: Fix autoconf macro name. Add more dependencies.
74916
74917 2003-08-17  Simon Josefsson  <jas@extundo.com>
74918
74919         * m4/xstrndup.m4: New file.
74920
74921 2003-08-17  Simon Josefsson  <jas@extundo.com>
74922
74923         * m4/argp.m4: New file.
74924
74925 2003-08-17  Simon Josefsson  <jas@extundo.com>
74926             Bruno Haible  <bruno@clisp.org>
74927
74928         * lib/xstrndup.h: New file.
74929         * lib/xstrndup.c: New file.
74930
74931 2003-08-17  Bruno Haible  <bruno@clisp.org>
74932
74933         * modules/strndup (Files, Include): Add lib/strndup.h.
74934
74935 2003-08-17  Bruno Haible  <bruno@clisp.org>
74936
74937         * modules/euidaccess (Files): Add lib/euidaccess.h.
74938
74939 2003-08-17  Bruno Haible  <bruno@clisp.org>
74940
74941         * lib/strndup.h: New file.
74942
74943 2003-08-17  Bruno Haible  <bruno@clisp.org>
74944
74945         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
74946         like AC_GNU_SOURCE.
74947         * modules/extensions (configure.ac): Comment out the invocation of
74948         gl_USE_SYSTEM_EXTENSIONS.
74949
74950 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74951
74952         Merges from coreutils, etc.
74953         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
74954         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
74955         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
74956         fixing a typo.
74957         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
74958         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
74959
74960 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74961
74962         Document merge from coreutils.
74963         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
74964         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
74965         * modules/utime: Add m4/utimes-null.m4.
74966
74967 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74968
74969         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
74970         space, undoing this 2003-08-12 change:
74971         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
74972
74973 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74974
74975         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
74976         strtoul.c from libc, undoing this 2003-08-12 change:
74977         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
74978
74979 2003-08-16  Jim Meyering  <jim@meyering.net>
74980
74981         Merges from coreutils.
74982         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
74983         prefix.  Adjust cache variables similarly.  Create 500 rather than
74984         just 300 files, to exercise bug on Darwin6.5, too.
74985         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
74986         $missing_dir.
74987         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
74988         AM_SYS_POSIX_TERMIOS.
74989         Reported by mkc@mathdogs.com.
74990         Also change use of $am_cv_sys_posix_termios
74991         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
74992         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
74993         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
74994         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
74995         in /proc/mounts until it finds one with matching device number.  This
74996         is unnecessary when the FILE argument *is* a mount point.  No stat call
74997         is necessary in that case.  So, disable the statvfs-testing code on
74998         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
74999         as RedHat bug# 84846.
75000         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75001         to 1MB, so as not to render systems with no stack size limit (e.g.,
75002         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75003         Include <unistd.h>.  On some systems,
75004         it is required for the definition of _SC_PAGESIZE.
75005
75006 2003-08-16  Jim Meyering  <jim@meyering.net>
75007
75008         Merge from coreutils.
75009         * lib/xstrtoimax.c: #else #if -> #elif.
75010         * lib/xstrtoumax.c: Likewise.
75011
75012 2003-08-16  Jim Meyering  <jim@meyering.net>
75013
75014         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
75015         * m4/utimes.m4: Removed.
75016         * m4/utimes-null.m4: Renamed from utimes.m4.
75017
75018         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75019         to 1MB, so as not to render systems with no stack size limit (e.g.,
75020         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75021         Include <unistd.h>.  On some systems,
75022         it is required for the definition of _SC_PAGESIZE.
75023
75024 2003-08-16  Jim Meyering  <jim@meyering.net>
75025         and Paul Eggert  <eggert@cs.ucla.edu>
75026
75027         Merges from coreutils, etc.
75028
75029         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
75030         using the latest version from cvs.  This avoids problems with #line
75031         directives using a vendor (Sun) compiler.
75032         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
75033         Don't set GETGROUPS_LIB here; now it's
75034         done via getgroups.m4's wrapper function.
75035         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
75036         rather than just in sh-util/configure.in, so that the
75037         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
75038         same.
75039         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
75040         AC_FUNC_GETLOADAVG where to find getloadavg.c.
75041         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
75042         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
75043         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
75044         Remove code that is now done by the newly-required macros.
75045         Append $(EXEEXT) to DF_PROG.
75046         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
75047         Do not invoke or require the following here,
75048         since prereq.m4 or some gnulib .m4 now does this for us:
75049         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
75050         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
75051         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
75052         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
75053         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
75054         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
75055         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
75056         AC_FUNC_OBSTACK.
75057         Do not replace the following functions, as this is now the job
75058         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
75059         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
75060         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
75061         atexit getpass, strdup, getpagesize.
75062         Replace 'raise'.
75063         Do not check for the following functions, as this is now the job
75064         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
75065         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
75066         setregid.
75067         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
75068         Check for sys/sysctl.h.
75069         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
75070         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
75071         of checking for ssize_t ourselves.
75072
75073         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
75074         Require every macro that gnulib/modules/* suggests for us.
75075         (jm_PREREQ_ADDEXT): New macro.
75076         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
75077         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
75078
75079         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
75080         (gl_PHYSMEM): Use it.
75081         Also check for `table' function.
75082         Check for new headers and functions.
75083         Add check for sys/sysmp.h.
75084         With suggestions from Kaveh Ghazi.
75085         Ignore headers that are present but cannot be compiled.  This
75086         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
75087         C 5.4.
75088
75089 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75090
75091         Document merge from coreutils.
75092         * modules/userspec: Depend on posixver.
75093         * modules/strftime: Depend on tzset.
75094
75095 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75096
75097         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
75098         rather than tab, after '#' in shell-script copyright notices.
75099         Suggested by Bruno Haible.
75100
75101 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75102
75103         * config/srclist-update: Use three spaces, rather than tab, after '#'
75104         in shell-script copyright notices.  Suggested by Bruno Haible.
75105         Remove unnecessary parenthesization in regular expression.
75106
75107 2003-08-15  Jim Meyering  <jim@meyering.net>
75108
75109         Merge from coreutils.
75110         * lib/xgethostname.c: Include <stdlib.h>.
75111         (xghostname): Don't exit for anything other than memory-related
75112         failure; just return NULL.
75113         * lib/userspec.c: Include "posixver.h".
75114         (parse_user_spec): Accept `.' as a separator only
75115         in pre-POSIX-200112 mode.
75116         * lib/strtoimax.c: Use #elif rather than #else #if.
75117         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
75118         Remove function, now that we can rely on a working tzset function.
75119         [!_LIBC]: Ensure that the required autoconf test has been run.
75120         [!defined _NL_CURRENT && HAVE_STRFTIME]:
75121         Use underlying_strftime for %r.
75122         * lib/sha.c: Merge in some clean-up and optimization changes from
75123         glibc.
75124         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
75125         Ensure that it is a multiple of 64.
75126         Rearrange loop exit tests so as to avoid performing an
75127         additional fread after encountering an error or EOF.
75128         * lib/realloc.c: Update copyright date.
75129
75130 2003-08-15  Jim Meyering  <jim@meyering.net>
75131         and Paul Eggert  <eggert@twinsun.com>
75132
75133         Merge from coreutils.
75134         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
75135         member but strut utmpx does not.  Needed for AIX 4.3.3.
75136         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
75137
75138 2003-08-15  Jim Meyering  <jim@meyering.net>
75139         and Paul Eggert  <eggert@cs.ucla.edu>
75140
75141         Merges from coreutils, etc.
75142         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
75143         Require gl_FUNC_TZSET_CLOBBER.
75144         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
75145         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
75146         members.
75147
75148 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75149
75150         Help the merge from coreutils.
75151         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
75152         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
75153         * m4/tzset.m4: Use it too.
75154
75155 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75156
75157         * modules/tzset: New file.
75158
75159 2003-08-14  Jim Meyering  <jim@meyering.net>
75160
75161         Merges from coreutils.
75162         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
75163         variable names, rather than @FNMATCH_H@.
75164         * modules/alloca: Likewise for $(ALLOCA_H).
75165
75166         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
75167         the three copies of the literal target, `fnmatch.h'.
75168         * modules/alloca (alloca.h): Likewise.
75169
75170 2003-08-14  Jim Meyering  <jim@meyering.net>
75171
75172         Merge from coreutils.
75173         * m4/tzset.m4: New file.
75174         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
75175         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
75176         otherwise, AIX 5.1 systems would end up using the latter.
75177         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
75178         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
75179         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
75180         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
75181
75182 2003-08-14  Jim Meyering  <jim@meyering.net>
75183
75184         Merge from coreutils.
75185         * lib/obstack.h: Whitespace changes.
75186         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
75187         and xcalloc return values.
75188         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
75189         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
75190         hang on OSF/1 5.1 for DIR on both local and remote file systems.
75191         Reported by (and fix confirmed by) Nelson H. F. Beebe.
75192         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75193         error from mntctl.
75194         Use mntctl's return value to drive the entry-processing loop, since
75195         we can't rely on the value of the vmt_length member in the last
75196         entry.  On some systems doing so could result in exhausting
75197         virtual memory.  Based in part on a patch from Mike Jetzer.
75198
75199 2003-08-14  Jim Meyering  <jim@meyering.net>
75200         and Paul Eggert  <eggert@twinsun.com>
75201
75202         Merges from coreutils, plus other fixes.
75203         * lib/physmem.c: Merge in portability changes from gcc/libiberty
75204         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
75205         for credits and details.  Thanks to Kaveh Ghazi for helping
75206         to keep these files in sync.
75207         (ARRAY_SIZE): Define it.
75208         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
75209         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
75210         (memcasecmp): Don't assume size_t fits in unsigned int.
75211         Remove casts and duplicate code.
75212         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
75213         (memcpy): Remove definition.
75214         Merge in some clean-up and optimization changes from glibc.
75215         [BLOCKSIZE]: Move definition to top of file.
75216         Ensure that it is a multiple of 64.
75217         Rearrange loop exit tests so as to avoid performing an
75218         additional fread after encountering an error or EOF.
75219         * lib/md5.h (md5_uintptr): Define.
75220         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
75221         return to the initial working directory.  Preserve errno
75222         for caller.
75223         * lib/idcache.c: Include "xalloc.h".
75224         (xmalloc, xrealloc): Remove decls.
75225         (getuser): Remove casts no longer required in C89.
75226         * lib/human.c: Include stdio.h, for sprintf.
75227         * lib/group-member.c: Include "xalloc.h".
75228         (xmalloc, xrealloc): Remove decls.
75229         (get_group_info): Remove casts no longer required in C89.
75230         * lib/getusershell.c (readname): Remove casts no longer required in
75231         C89.
75232         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
75233         * lib/getline.c: Whitespace fix, from coreutils.
75234
75235 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75236
75237         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
75238         Check for isascii.
75239
75240         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75241         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75242         Undo previous (whitespace-only) change.
75243
75244 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75245
75246         * lib/exclude.c: Include <ctype.h>
75247         (IN_CTYPE_DOMAIN): New macro.
75248         (is_space): New fn.
75249         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
75250         and empty lines.
75251
75252         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75253         Undo previous (whitespace-only) change.
75254
75255 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75256
75257         * config/srclist-update: Change update back to the old behavior,
75258         leaving whitespace alone.  Use one 'sed' command rather than a
75259         pipeline.
75260         (fixlicense): Now a variable, not a function.
75261         (remove_trailing_blanks): Remove.
75262         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
75263         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75264         Undo previous (whitespace-only) change.
75265
75266 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75267
75268         Merge from coreutils.
75269         * modules/euidaccess: Add lib_SOURCES, include for new
75270         file euidaccess.h
75271
75272 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75273
75274         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75275         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75276         Normalize leading white space and remove trailing white space.
75277
75278         Merge from coreutils
75279         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
75280
75281         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
75282         0.12.1.  These files are now being upgraded automatically by
75283         ../config/srclist-update.
75284
75285 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75286
75287         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75288         Normalize leading white space and remove trailing white space.
75289         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
75290         notice, as per ../config/srclist-update.
75291
75292         Merge from coreutils.
75293         * lib/euidaccess.h: New file.
75294         * lib/euidaccess.c: Include it.
75295         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
75296         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
75297         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
75298
75299 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75300
75301         * config/srclist-update: Add copyright notice.
75302         (remove_id_lines, remove_trailing_blanks): New constants.
75303         (fixfile): Use them to normalize spacing a bit in copied files.
75304         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75305         Normalize leading white space and remove trailing white space.
75306
75307         * config/texinfo.tex: Sync with texinfo.
75308
75309         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
75310         strtoul.c from libc, to merge coreutils whitespace changes.
75311
75312         * config/srclist.txt: Get the following m4 files from gettext:
75313         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
75314         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
75315         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
75316         wint_t.m4.
75317
75318 2003-08-12  Karl Berry  <karl@gnu.org>
75319
75320         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
75321         been made.
75322
75323 2003-08-11  Paul Eggert  <eggert@twinsun.com>
75324
75325         * modules/gnu-source, m4/gnu-source.m4:
75326         Remove; we're assuming Autoconf 2.54 or later now.
75327         Suggested by Bruno Haible.
75328         * MODULES.html.sh (func_all_modules): Remove gnu-source.
75329
75330 2003-08-11  Bruno Haible  <bruno@clisp.org>
75331
75332         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
75333
75334 2003-08-11  Bruno Haible  <bruno@clisp.org>
75335
75336         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
75337         (vasnprintf): Use it instead of wcslen.
75338
75339 2003-08-11  Bruno Haible  <bruno@clisp.org>
75340
75341         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
75342         value to ensure that _Bool promotes to int. Use #define for _Bool when
75343         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
75344
75345 2003-08-10  Karl Berry  <karl@gnu.org>
75346
75347         * lib/regex.h: update from libc (whitespace fix).
75348
75349 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75350
75351         Merge some files from coreutils.  These changes were
75352         originally made by Jim Meyering.
75353         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
75354         many older Unixes require this.
75355         * lib/alloca.c (alloca): Remove cast to argument of free;
75356         no longer needed in C89.
75357         * lib/alloca_.h, regex.h: Fix white space to match
75358         what GNU indent does.
75359
75360 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75361
75362         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
75363         apparently Emacs's Unicode mode got confused before my 2003-08-05
75364         checkin.
75365
75366 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75367
75368         * m4/extensions.m4: New file.
75369         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
75370         Require gl_USE_SYSTEM_EXTENSIONS.
75371         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
75372         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
75373
75374 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75375
75376         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
75377         * modules/extensions, modules/gnu-source: New files.
75378         * modules/timespec, modules/unlocked-io: Depend on extensions.
75379
75380 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75381
75382         * modules/restrict: New file.
75383         * MODULES.html.sh (func_all_modules): Add restrict.
75384         * modules/regex: Depend on restrict.
75385
75386 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75387
75388         * m4/restrict.m4: New file.
75389         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
75390
75391 2003-08-07  Bruno Haible  <bruno@clisp.org>
75392
75393         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
75394         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
75395
75396 2003-08-07  Bruno Haible  <bruno@clisp.org>
75397
75398         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
75399         makes the module 'getndelim2' compatible with the module 'getline'.
75400
75401 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75402
75403         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
75404         byte with "\201" to avoid glitches when editing that source file
75405         with multi-gnome-terminal.
75406
75407 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75408
75409         * lib/bumpalloc.h: Remove.
75410
75411 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75412
75413         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
75414         * modules/bumpalloc: Remove.
75415
75416 2003-08-04  Paul Eggert  <eggert@twinsun.com>
75417
75418         * lib/getloadavg.c: Change copyright notice and spacing to conform to
75419         GNU coding style.
75420
75421         Merge from coreutils.
75422         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
75423         1. From glibc.
75424         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
75425         from Karl Berry, implemented by Jim Meyering.
75426         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
75427         from Dmitry V. Levin.
75428         Remove anachronistic cast of xrealloc.
75429         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
75430         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
75431         type. Otherwise, it wouldn't compile with at least /bin/cc on
75432         ymp-cray-unicos9.0.2.X.
75433         Combine two mostly-identical uses of alloca into one.
75434         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
75435
75436 2003-08-04  Dave Love  <d.love@dl.ac.uk>
75437
75438         [From Emacs.]
75439
75440         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
75441         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
75442         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
75443         obsolete NLIST_NAME_UNION.
75444         [__GNU__]: Undef BSD and FSCALE.
75445         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
75446
75447 2003-08-03  Paul Eggert  <eggert@twinsun.com>
75448
75449         * lib/stdbool_.h (_Bool): Make it signed char, instead of
75450         an enum type, so that it's guaranteed to promote to int.  See:
75451         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
75452
75453 2003-08-03  Karl Berry  <karl@gnu.org>
75454
75455         * config/depcomp: update from automake.
75456
75457 2003-07-31  Paul Eggert  <eggert@twinsun.com>
75458
75459         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
75460         (strerror): Don't assume that a printable int fits in 14 bytes.
75461
75462 2003-07-31  Bruno Haible  <bruno@clisp.org>
75463
75464         * modules/getpass-gnu: New file.
75465         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
75466
75467 2003-07-31  Bruno Haible  <bruno@clisp.org>
75468
75469         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
75470
75471 2003-07-24  Karl Berry  <karl@gnu.org>
75472
75473         * config/missing: update from automake.
75474
75475 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
75476             Bruno Haible  <bruno@clisp.org>
75477
75478         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
75479         * lib/getline.c (getline, getdelim): Likewise.
75480         Remove _GNU_SOURCE define; now it's defined in config.h through
75481         m4/getline.m4.
75482
75483 2003-07-23  Karl Berry  <karl@gnu.org>
75484
75485         * config/config.sub: update from prep.
75486
75487 2003-07-22  Paul Eggert  <eggert@twinsun.com>
75488
75489         * modules/xalloc (Depends-on): Add exitfail.
75490         * modules/xmemcoll: Likewise.
75491
75492 2003-07-22  Paul Eggert  <eggert@twinsun.com>
75493
75494         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
75495         over-parenthesization in macros.
75496
75497         Sync with coreutils.
75498
75499         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
75500         required by C99.
75501
75502         Use `exit_failure' for xalloc and xmemcoll instead of their own
75503         private exit-failure variables.
75504         * lib/xalloc.h (xalloc_exit_failure): Remove.
75505         * lib/xmalloc.c: Likewise.  Include exitfail.h.
75506         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
75507         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
75508         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
75509         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
75510
75511 2003-07-20  Jim Meyering  <jim@meyering.net>
75512
75513         * modules/closeout (Depends-on): Add exitfail.
75514         Suggestion from Bruno Haible.
75515
75516 2003-07-19  Karl Berry  <karl@gnu.org>
75517
75518         * config/config.sub: update from prep.
75519
75520 2003-07-18  Paul Eggert  <eggert@twinsun.com>
75521
75522         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
75523         Remove.
75524         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
75525         to test that it can stand by itself.  Include "exitfail.h".
75526         Clients should set exit_failure instead.
75527         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
75528
75529 2003-07-18  Bruno Haible  <bruno@clisp.org>
75530
75531         * modules/getndelim2: New file.
75532         * modules/getline: Share files with module getndelim2.
75533         * modules/getnline: Depend on getndelim2 instead of sharing files with
75534         it. Add getnline.c to lib_SOURCES.
75535         * MODULES.html.sh (func_all_modules): Add getndelim2.
75536
75537 2003-07-18  Bruno Haible  <bruno@clisp.org>
75538
75539         * m4/getndelim2.m4: New file.
75540         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
75541         invoke gl_PREREQ_GETNDELIM2.
75542         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
75543         gl_PREREQ_GETNDELIM2.
75544         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
75545         gl_GETNDELIM2.
75546
75547 2003-07-18  Bruno Haible  <bruno@clisp.org>
75548
75549         * lib/getndelim2.h: New file.
75550         * lib/getndelim2.c: Make into a module of its own. Include config.h,
75551         getndelim2.h.
75552         (getndelim2): Make non-static. Change return type to ssize_t.
75553         * lib/getline.h: Change argument names.
75554         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
75555         * lib/getnline.c: Include getndelim2.h.
75556
75557 2003-07-18  Andreas Schwab  <schwab@suse.de>
75558
75559         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
75560
75561 2003-07-17  Karl Berry  <karl@gnu.org>
75562
75563         * config/config.sub: update from prep.
75564
75565 2003-07-17  Bruno Haible  <bruno@clisp.org>
75566
75567         * modules/getnline: New file.
75568         * modules/getline: Add lib/getndelim2.c to source file list.
75569         * MODULES.html.sh (func_all_modules): Add getnline.
75570
75571 2003-07-17  Bruno Haible  <bruno@clisp.org>
75572
75573         * m4/getnline.m4: New file.
75574
75575 2003-07-17  Bruno Haible  <bruno@clisp.org>
75576
75577         * m4/Makefile.am.in: Remove file.
75578         * m4/Makefile.am: Remove file.
75579         * m4/Makefile.in: Remove file.
75580
75581 2003-07-17  Bruno Haible  <bruno@clisp.org>
75582
75583         * lib/getnline.h: New file.
75584         * lib/getnline.c: New file.
75585         * lib/getndelim2.c: New file, extracted from getline.c.
75586         (getndelim2): Renamed from getdelim2, with added nmax argument.
75587         * lib/getline.c: Include getndelim2.c.
75588         (getdelim2): Moved out to getndelim2.c.
75589         (getline, getdelim): Update.
75590
75591 2003-07-17  Bruno Haible  <bruno@clisp.org>
75592
75593         * lib/Makefile.am: Remove file.
75594         * lib/Makefile.in: Remove file.
75595
75596 2003-07-17  Bruno Haible  <bruno@clisp.org>
75597
75598         * configure.in: Remove file.
75599         * Makefile.in: Remove file.
75600
75601 2003-07-17  Bruno Haible  <bruno@clisp.org>
75602
75603         * MODULES.html.sh: Put the </BODY> right before </HTML>.
75604
75605 2003-07-16  Karl Berry  <karl@gnu.org>
75606
75607         * config/srclist-update: was running fixlicense twice, which caused
75608                 texinfo.tex to be nullified for some reason.  Simplify,
75609                 $gplsrc is no longer needed as far as I can see?
75610
75611 2003-07-16  Jim Meyering  <jim@meyering.net>
75612
75613         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
75614
75615 2003-07-15  Paul Eggert  <eggert@twinsun.com>
75616
75617         * config/srclist.txt: Get the following files from gettext-runtime/intl
75618         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
75619         ref-del.sin.  From Bruno Haible.
75620         * config/srclist-update (fixfile): Change grep pattern again, since the
75621         previous fix didn't work (there was another trailing $).  Use
75622         '[$]' to escape the $s.
75623
75624 2003-07-15  Karl Berry  <karl@gnu.org>
75625
75626         * lib/vasnprintf.c: update from gettext.
75627
75628 2003-07-15  Karl Berry  <karl@gnu.org>
75629
75630         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
75631         gets expanded when surrounded by '$'.
75632
75633 2003-07-15  Jim Meyering  <jim@meyering.net>
75634
75635         * modules/save-cwd: Don't depend on error.  From Derek Price.
75636
75637 2003-07-15  Jim Meyering  <jim@meyering.net>
75638
75639         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
75640
75641 2003-07-14  Simon Josefsson  <jas@extundo.com>
75642
75643         * modules/mempcpy: New file.
75644         * MODULES.html.sh (func_all_modules): Add mempcpy.
75645
75646 2003-07-14  Simon Josefsson  <jas@extundo.com>
75647
75648         * m4/mempcpy.m4: New file.
75649
75650 2003-07-14  Simon Josefsson  <jas@extundo.com>
75651
75652         * lib/mempcpy.h: New file.
75653         * lib/mempcpy.c: New file.
75654
75655 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75656
75657         * modules/getdate, modules/posixtm: Depend on mktime.
75658
75659 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75660
75661         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
75662         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
75663         unicodeio.c, unicodeio.h, unlocked-io.h:
75664         Switch from LGPL to GPL.
75665
75666 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75667
75668         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
75669         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
75670         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
75671         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
75672         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
75673         updated automatically by ../config/srclist-update.  This changes
75674         their license from LPGL to GPL.
75675
75676 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75677
75678         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
75679         assumed to refer to the root of the most recent stable gettext version.
75680         * config/srclistvars.sh: Add defaults for eggert.
75681         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
75682         Match "This program" as well as "The program".  This is needed
75683         for gettext.
75684
75685 2003-07-14  Jim Meyering  <jim@meyering.net>
75686
75687         Don't emit diagnostics.  Let callers do that.
75688         * lib/save-cwd.c: Don't include "error.h".
75689         (save_cwd): Don't call error.  Ensure that errno is valid
75690         when returning nonzero.
75691
75692         * lib/save-cwd.h (restore_cwd): Update prototype.
75693         * lib/save-cwd.c (restore_cwd): Remove two parameters.
75694         Simplify.  Don't call error upon failure.  Let callers do that.
75695         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
75696         when auditing is enabled.  But don't bother updating the #if.
75697
75698 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
75699
75700         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
75701         it breaks C++ compilation.
75702         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
75703
75704 2003-07-10  Simon Josefsson  <jas@extundo.com>
75705
75706         * modules/strchrnul (Makefile.am): Add strchrnul.h.
75707
75708 2003-07-10  Jim Meyering  <jim@meyering.net>
75709
75710         * m4/clock_time.m4: Remove trailing blank.
75711         * m4/intmax_t.m4: Likewise.
75712
75713 2003-07-10  Jim Meyering  <jim@meyering.net>
75714
75715         * lib/vasnprintf.c: Remove trailing blanks.
75716         Make cpp indentation consistent.
75717
75718 2003-07-09  Paul Eggert  <eggert@twinsun.com>
75719
75720         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
75721         posixver.c, strftime.c, strnlen.c, strverscmp.c:
75722         Switch from LGPL to GPL.
75723
75724 2003-07-09  Paul Eggert  <eggert@twinsun.com>
75725
75726         * config/srclist.txt: Sort sublists.  Add
75727         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
75728         that differ from gnulib for one reason or another; we'd like this list
75729         to be smaller but for now let's document what we have.
75730
75731 2003-07-08  Paul Eggert  <eggert@twinsun.com>
75732
75733         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
75734         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
75735         and sweeter "eval x=$x".
75736         * config/srclist.txt: Get lib/argp* from glibc.
75737
75738 2003-07-07  Paul Eggert  <eggert@twinsun.com>
75739
75740         * lib/mktime.c: Fix some boundary cases and remove need for floating
75741         point.
75742
75743         Issue a compile-time diagnostic if time_t is floating point, or if
75744         two's complement arithmetic is not in effect, or if arithmetic
75745         right shift does not propagate the sign.  These assumptions were
75746         all in the original code but they weren't checked.
75747
75748         (TIME_T_MIDPOINT, verify): New macros.
75749         (__isleap): Remove; it has integer overflow problems.
75750         (leapyear): New function, without those problems.
75751         (ydhms_tm_diff): Remove; splitting into two parts.
75752         (ydhms_diff): New function, containing the arithmetic part of
75753         the old ydhms_tm_diff function.  Issue a compile-time
75754         diagnostic if we are not using C99 integer division.
75755         Avoid casts when possible.
75756         (guess_time_tm): New function, containing the checking part of
75757         the old ydhms_tm_diff function.  Return the new value, rather than
75758         the difference between it and the old.  Accept a new argument T
75759         so that *T specifies the old value.  Check for overflow in the result.
75760
75761         (__mktime_internal): Use a time_t offset, not a long int offset.
75762         This undoes the 2003-06-04 change, which is no longer needed now
75763         that we have better overflow checking.
75764         (localtime_offset): Likewise.
75765
75766         (__mktime_internal): Avoid harmful overflow on hosts where time_t
75767         and long are 64-bit but int is only 32-bit.
75768         (ydhms_diff): Use long int to store year1 and yday1.
75769         Issue a compile-time diagnostic if long int is not wide enough.
75770
75771         (__mktime_internal): Use long int to store adjusted year and yday.
75772         Use plain C rather than preprocessor commands, if that doesn't
75773         affect efficiency.
75774         Check for overflow (and try to repair) after each probe
75775         rather than checking only at the very end.  This avoids some bugs
75776         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
75777         does not equal GMT offset at maximum time).
75778         Use integer to check for overflow rather than floating point; this
75779         is more portable to non-IEEE hosts, and is a tad faster.
75780         When we detect that we are oscillating between two values,
75781         don't check whether tm_isdst has the requested value, since
75782         we already know the answer.  When tm_isdst has the wrong value,
75783         use a different heuristic to find the right one, based on the
75784         extreme values actually observed in practice in tz2003a,
75785         rather than the (overly optimistic) "previous 3 calendar quarters".
75786
75787         (not_equal_tm, print_tm, check_result): Use "const T" rather than
75788         "T const" to accommodate glibc style.
75789         (check_result): Use less-confusing report format.  "long" -> "long int.
75790         (main): Likewise.
75791         Don't loop if the iteration overflows time_t.
75792         Allow a negative step in the iteration.
75793
75794 2003-07-06  Karl Berry  <karl@gnu.org>
75795
75796         * config/depcomp: update from automake.
75797         * config/config.sub: update from prep.
75798
75799 2003-07-03  Karl Berry  <karl@gnu.org>
75800
75801         * config/config.guess: update from prep.
75802
75803 2003-07-01  Paul Eggert  <eggert@twinsun.com>
75804
75805         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
75806         xreadlink.c now includes it unconditionally.
75807
75808 2003-07-01  Paul Eggert  <eggert@twinsun.com>
75809
75810         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
75811         having it depend on HAVE_SYS_TYPES_H.
75812
75813 2003-07-01  Bruno Haible  <bruno@clisp.org>
75814
75815         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
75816         <sys/types.h> should be sufficient.
75817         Reported by Paul Eggert.
75818
75819 2003-06-26  Karl Berry  <karl@gnu.org>
75820
75821         * config/depcomp: update from automake.
75822
75823 2003-06-26  Bruno Haible  <bruno@clisp.org>
75824
75825         * modules/human: Depend on module stdbool.
75826
75827 2003-06-25  Bruno Haible  <bruno@clisp.org>
75828
75829         * modules/readlink: New file.
75830         * modules/xreadlink: Depend on it.
75831         * MODULES.html.sh (func_all_modules): Add readlink.
75832
75833 2003-06-25  Bruno Haible  <bruno@clisp.org>
75834
75835         * m4/readlink.m4: New file.
75836
75837 2003-06-25  Bruno Haible  <bruno@clisp.org>
75838
75839         * lib/readlink.c: New file.
75840
75841 2003-06-22  Karl Berry  <karl@gnu.org>
75842
75843         * config/srclist.txt: update mkinstalldirs from automake.
75844         * config/mkinstalldirs: update.
75845
75846 2003-06-22  Bruno Haible  <bruno@clisp.org>
75847
75848         Portability to mingw32.
75849         * m4/ssize_t.m4: New file, from GNU gettext.
75850         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
75851         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
75852
75853 2003-06-22  Bruno Haible  <bruno@clisp.org>
75854
75855         * modules/safe-read: Add m4/ssize_t.m4.
75856         * modules/xreadlink: Add m4/ssize_t.m4.
75857
75858 2003-06-20  Bruno Haible  <bruno@clisp.org>
75859
75860         Assume C89, so PARAMS isn't needed.
75861         * lib/unicodeio.h (PARAMS): Remove.
75862         * lib/unicodeio.c: Don't use PARAMS.
75863
75864 2003-06-18  Karl Berry  <karl@gnu.org>
75865
75866         * config/config.{guess,sub}: update from prep.
75867
75868 2003-06-18  Jim Meyering  <jim@meyering.net>
75869
75870         Merge changes from coreutils.
75871         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
75872         Remove explicit declarations of xmalloc and realloc.
75873         Include xalloc.h.
75874         (read_utmp): Remove anachronistic cast of xmalloc.
75875
75876 2003-06-17  Paul Eggert  <eggert@twinsun.com>
75877
75878         Assume C89, so PARAMS isn't needed.
75879         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
75880         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
75881         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
75882         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
75883         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
75884         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
75885         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
75886         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
75887         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
75888         lib/xstrtod.h, lib/xstrtol.h: Likewise.
75889         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
75890         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
75891         no longer needed. Anyway, config.h should always be included before any
75892         other file.
75893
75894 2003-06-11  Simon Josefsson  <jas@extundo.com>
75895
75896         * modules/sysexits: New file.
75897         * MODULES.html.sh (func_all_modules): Add sysexits.
75898
75899 2003-06-11  Simon Josefsson  <jas@extundo.com>
75900
75901         * lib/sysexit_.h: New file.
75902
75903 2003-06-11  Derek Price  <derek@ximbiot.com>
75904
75905         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
75906         necessary.
75907
75908 2003-06-11  Bruno Haible  <bruno@clisp.org>
75909
75910         * m4/sysexits.m4: New file.
75911
75912 2003-06-10  Simon Josefsson  <jas@extundo.com>
75913
75914         * lib/argp.h: New file, from glibc.
75915         * lib/argp-ba.c: New file, from glibc.
75916         * lib/argp-eexst.c: New file, from glibc.
75917         * lib/argp-fmtstream.c: New file, from glibc.
75918         * lib/argp-fmtstream.h: New file, from glibc.
75919         * lib/argp-fs-xinl.c: New file, from glibc.
75920         * lib/argp-help.c: New file, from glibc.
75921         * lib/argp-namefrob.h: New file, from glibc.
75922         * lib/argp-parse.c: New file, from glibc.
75923         * lib/argp-pv.c: New file, from glibc.
75924         * lib/argp-pvh.c: New file, from glibc.
75925         * lib/argp-xinl.c: New file, from glibc.
75926
75927 2003-06-10  Simon Josefsson  <jas@extundo.com>
75928
75929         * modules/strchrnul: New file.
75930
75931 2003-06-10  Simon Josefsson  <jas@extundo.com>
75932
75933         * modules/argp: New file.
75934
75935 2003-06-10  Simon Josefsson  <jas@extundo.com>
75936
75937         * m4/strchrnul.m4: New file.
75938
75939 2003-06-10  Simon Josefsson  <jas@extundo.com>
75940
75941         * lib/strchrnul.h: New file.
75942         * lib/strchrnul.c: New file.
75943
75944 2003-06-10  Bruno Haible  <bruno@clisp.org>
75945
75946         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
75947
75948 2003-06-07  Karl Berry  <karl@gnu.org>
75949
75950         * config/config.{guess,sub}: update from prep.
75951
75952 2003-06-07  Jim Meyering  <jim@meyering.net>
75953
75954         * modules/strtod: Use $(...) notation, not @...@ for
75955         AC_REPLACE'd variables.
75956         * modules/localcharset: Likewise.
75957
75958 2003-06-07  Jim Meyering  <jim@meyering.net>
75959
75960         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
75961         in place of my name in the copyright comment.
75962         Remove definition and uses of __P.
75963
75964         From coreutils.
75965         * lib/stat.c: Don't declare xmalloc explicitly.
75966         Instead, include "xalloc.h".
75967         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
75968         xrealloc, and xcalloc return values.
75969         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
75970         Improve comment.
75971         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
75972
75973 2003-06-07  Bruno Haible  <bruno@clisp.org>
75974
75975         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
75976         avoid AC_CONFIG_LINKS.
75977         * modules/fnmatch (Makefile.am): Use explicit creation rule for
75978         fnmatch.h, to avoid AC_CONFIG_LINKS.
75979         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
75980
75981 2003-06-07  Bruno Haible  <bruno@clisp.org>
75982
75983         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
75984         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
75985         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
75986         directory.
75987         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
75988         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
75989         directory.
75990
75991 2003-06-06  Jim Meyering  <jim@meyering.net>
75992
75993         Merge from coreutils.
75994         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
75995         Consolidate declarations and initializations of *_base* locals.
75996
75997         Merge from coreutils.
75998         This avoids a core dump on systems without GNU putenv,
75999         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
76000         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
76001         (unsetenv): New static function, from GNU libc.
76002         (rpl_putenv): Use it.
76003
76004         * lib/modechange.c: Remove trailing blanks.
76005
76006         Merge from coreutils.
76007         * lib/fsusage.c: Remove declaration of statfs.
76008         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
76009
76010         * lib/posixtm.c: Include <stdbool.h> unconditionally.
76011
76012 2003-06-06  Jim Meyering  <jim@meyering.net>
76013
76014         * lib/stdbool_.h: Renamed from stdbool.h.in.
76015
76016 2003-06-06  Jim Meyering  <jim@meyering.net>
76017             Bruno Haible  <bruno@clisp.org>
76018
76019         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
76020         Adjust Makefile.am snippet not to redirect directly to target.
76021         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
76022
76023 2003-06-05  Paul Eggert  <eggert@twinsun.com>
76024
76025         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
76026         mismatch, look in future quarters as well as past.  This fixes a
76027         bug when processing fall-backwards gaps immediately after a long
76028         period of daylight-saving time.
76029
76030         * lib/mktime.c: Assume freestanding C89 or better.
76031         (HAVE_LIMITS_H): Remove.  Assume it's 1.
76032         (__P): Remove; not used.
76033         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
76034         (mktime, not_equal_tm, print_tm, check_result,
76035         main): Use prototypes.  Use const * where appropriate.
76036         (main): Fix typo in testing code that uncovered by above changes.
76037         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
76038
76039 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76040
76041         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
76042         locale.h, localeconv.  This merges changes from coreutils.
76043
76044         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
76045         It can be removed after the next Autoconf is released.
76046         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
76047         needed.
76048
76049 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76050
76051         * lib/mktime.c: Fix Debian bug 177940
76052         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
76053         (localtime_offset): Now long int, not time_t, because we want it
76054         to be guaranteed to be signed.  All uses changed.
76055         (__mktime_internal): If overflow would occur when adding offset,
76056         don't add it.
76057
76058         Merge 'human' changes from coreutils.  Rewrite to support
76059         locale-specific notations like thousands separators.
76060         * lib/human.c: Simplify authorship notice.
76061         Include human.h immediately after config.h.
76062         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
76063         <limits.h>: Do not include, since human.h does.
76064         (SIZE_MAX, UINTMAX_MAX): New macros.
76065         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
76066         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
76067         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
76068         (power_letter): Renamed from suffixes.
76069         (generate_suffix_backwards): Remove.
76070         (adjust_value): Now takes int style (because of human.h changes)
76071         and long double value (for greater precision on some platforms).
76072         (group_number): New function.
76073         (human_readable): Use it.  Use integer options, not enum.
76074         Put the options before the sizes in the arg list.
76075         Support all the new options.
76076         The old human_readable function has been removed;
76077         use inttostr.h instead.
76078         (human_readable, default_block_size, humblock):
76079         Use uintmax_t, not int, for block sizes.
76080         (human_readable_inexact, block_size_types): Remove.
76081         (block_size_opts): New constant.
76082         (human_options): Renamed from human_block_size, with new signature
76083         that allows block sizes up to UINTMAX_MAX.  All callers changed.
76084         * lib/human.h: Add copyright and authorship notice.
76085         Include <limits.h> and <stdbool.h> unconditionally.
76086         (PARAMS): Remove.  All uses removed.
76087         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
76088         (enum human_inexact_style): Remove tag; now a nameless enum.
76089         (human_floor, human_ceiling, human_round_to_even): Now have
76090         values 2, 0, 1 rather than -1, 1, 0.
76091         (human_group_digits, human_suppress_point_zero, human_autoscale,
76092         human_base_1024, human_SI, human_B): New constants.
76093         (human_readable_inexact, human_block_size): Remove.
76094         (human_readable): Size args are now uintmax_t, not int.
76095         (human_options): New decl.
76096
76097         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
76098         unnecessary now that we assume C89 or better.  This change
76099         imported from coreutils.
76100
76101         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76102         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
76103         in the 2003-05-30 sync from glibc.
76104
76105         .h files should stand alone, but we shouldn't include <sys/types.h>
76106         if we can get away with just <stddef.h>.
76107
76108         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
76109         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
76110         rather than <sys/types.h>, as we merely need size_t.
76111         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
76112         to get size_t.
76113         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
76114         Include <stdio.h>, to get FILE.
76115         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
76116         memcasecmp.h has included <stddef.h> and all we need is size_t.
76117         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
76118         our interface, instead of including <sys/types.h>
76119
76120 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76121
76122         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
76123         now, as glibc mktime is buggy on non-glibc systems.
76124
76125 2003-06-03  Karl Berry  <karl@gnu.org>
76126
76127         * config/config.sub: update from prep.
76128
76129 2003-06-02  Paul Eggert  <eggert@twinsun.com>
76130
76131         [from coreutils]
76132         Fix some minor time-related bugs with POSIX time arguments.
76133         Some valid time stamps were being rejected (notably -1, and
76134         time stamps before 1900 on 64-bit hosts).  And some invalid
76135         time stamps were being accepted, e.g. September 31.
76136
76137         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
76138         that we can return (time_t) -1 successfully.
76139         * lib/posixtm.c: Likewise.
76140         [HAVE_STDBOOL_H]: Include <stdbool.h>.
76141         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
76142         (t): Remove static var.
76143         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
76144         of static var.  All uses changed.
76145         (year): Do not reject years before 1900; they can occur with
76146         64-bit time_t.
76147         (posix_time_parse): Do not check for out-of-range components;
76148         that is now the caller's responsibility, since our checks were
76149         only approximations.
76150         (posixtime): Use mktime to check for out-of-range components,
76151         since it knows them exactly.
76152         If mktime returns (time_t) -1, check whether an error actually occurred
76153         by invoking localtime on -1.
76154         (main) [TEST_POSIXTIME]: Check for input data errors, and report
76155         posixtime failures better.
76156         Improve the test data (in comments only).
76157
76158 2003-06-02  Karl Berry  <karl@gnu.org>
76159
76160         * config/mkinstalldirs (version): new variable.
76161         (--version): new option.
76162         (usage): improve message.
76163
76164 2003-05-30  Karl Berry  <karl@gnu.org>
76165
76166         * lib/mktime.c: update from libc.
76167
76168 2003-05-30  Bruno Haible  <bruno@clisp.org>
76169
76170         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
76171         * config/config.rpath: Upgrade to gettext-0.12.1.
76172
76173 2003-05-30  Bruno Haible  <bruno@clisp.org>
76174
76175         * m4/gettext.m4: Upgrade to gettext-0.12.1.
76176         * m4/nls.m4: New file, from gettext-0.12.1.
76177         * m4/po.m4: New file, from gettext-0.12.1.
76178         * m4/progtest.m4: Upgrade to gettext-0.12.1.
76179
76180 2003-05-30  Bruno Haible  <bruno@clisp.org>
76181
76182         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
76183         * lib/localcharset.h: Likewise.
76184         * lib/localcharset.c: Likewise.
76185
76186 2003-05-29  Karl Berry  <karl@gnu.org>
76187
76188         * config/config.rpath: update from gettext.
76189
76190 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76191
76192         Assume the headers required for C89 freestanding compilers.
76193         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
76194         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
76195         * m4/human.m4 (gl_HUMAN): Likewise.
76196         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
76197         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
76198         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76199         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
76200         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76201         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
76202
76203 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76204
76205         Assume the headers required for C89 freestanding compilers.
76206         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
76207         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
76208         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
76209         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
76210         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
76211         define, since <limits.h> is guaranteed to do that.
76212         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
76213         * lib/exclude.c: Include <stdbool.h> unconditionally.
76214         * lib/tempname.c: Include <stddef.h> unconditionally.
76215         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
76216         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
76217         <stddef.h> does that.
76218         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
76219         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
76220         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
76221         needed.
76222         * lib/xstrtol.c: Likewise.
76223         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
76224         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
76225
76226         * lib/addext.c (addext): Use assignment rather than cast, to avoid
76227         warnings on some platforms.
76228
76229         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76230         arbitrarily.
76231
76232 2003-05-26  Jim Meyering  <jim@meyering.net>
76233
76234         Merge in a change from coreutils:
76235         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
76236         that is guaranteed to be `no'.  Use `no_such_member' to indicate
76237         that condition, rather than `-1' which is slightly misleading.
76238         Change the name of the cache variable to have the gl_ prefix.
76239         Prompted by a patch from Richard Dawe for DJGPP.
76240
76241 2003-05-24  Karl Berry  <karl@gnu.org>
76242
76243         * config/config.guess: update from prep.
76244
76245 2003-05-22  Karl Berry  <karl@gnu.org>
76246
76247         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
76248
76249 2003-05-20  Karl Berry  <karl@gnu.org>
76250
76251         * config/config.guess: update from prep.
76252
76253 2003-05-18  Karl Berry  <karl@gnu.org>
76254
76255         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
76256         might actually be set by the user.
76257
76258         * config/depcomp, install-sh, mdate-sh: update from automake.
76259
76260 2003-05-17  Bruno Haible  <bruno@clisp.org>
76261
76262         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
76263         invalid expansion for AC_EGREP_CPP.
76264         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
76265         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
76266         Suggested by Akim Demaille <akim@epita.fr> in
76267         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
76268
76269 2003-05-12  Jim Meyering  <jim@meyering.net>
76270
76271         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
76272         the space-padded-by-default conversion specifiers, %e, %k, %l.
76273
76274 2003-05-12  Bruno Haible  <bruno@clisp.org>
76275
76276         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
76277         the string is longer than 4 KB.
76278
76279 2003-05-11  Karl Berry  <karl@gnu.org>
76280
76281         * config/config.{guess,sub}: update from prep.
76282
76283 2003-05-09  Bruno Haible  <bruno@clisp.org>
76284
76285         * modules/error: Add m4/strerror_r.m4 to file list.
76286
76287 2003-05-03  Bruno Haible  <bruno@clisp.org>
76288
76289         Upgrade to Unicode-4.0.
76290         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
76291         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
76292         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
76293         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
76294         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
76295         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
76296         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
76297         Change width of U+E0100..U+E01EF from 1 to 0.
76298
76299 2003-04-25  Jim Meyering  <jim@meyering.net>
76300
76301         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
76302         of type size_t, not int.
76303
76304 2003-04-25  Bruno Haible  <bruno@clisp.org>
76305
76306         * lib/copy-file.c: Include <stddef.h>, for size_t.
76307
76308 2003-04-21  Paul Eggert  <eggert@twinsun.com>
76309
76310         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
76311         code which expansion is under static control.  Patch imported from
76312         Akim Demaille's patch to Bison; see
76313         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
76314
76315 2003-04-14  Bruno Haible  <bruno@clisp.org>
76316
76317         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
76318
76319 2003-04-11  Jim Meyering  <jim@meyering.net>
76320
76321         Merge changes from Coreutils.
76322
76323         2003-03-22  Jim Meyering  <jim@meyering.net>
76324
76325         * lib/strftime.c (widen): Cast alloca return value to proper type.
76326
76327         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
76328
76329         From GNU libc.
76330         * lib/strftime.c (my_strftime): Handle very large width
76331         specifications for numeric values correctly.  Improve checks for
76332         overflow.
76333
76334         2003-01-19  Jim Meyering  <jim@meyering.net>
76335
76336         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
76337         definitions.
76338         (nl_get_alt_digit) [! defined my_strftime]: Define.
76339         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
76340         _nl_get_alt_digit and _nl_get_walt_digit.
76341
76342         * lib/strftime.c (my_strftime): Merge in locale-related changes from
76343         libc. These changes have no effect outside of _LIBC.
76344
76345 2003-04-10  Bruno Haible  <bruno@clisp.org>
76346
76347         * modules/findprog: New file.
76348         * MODULES.html.sh (func_all_modules): Add it.
76349
76350 2003-04-10  Bruno Haible  <bruno@clisp.org>
76351
76352         * m4/findprog.m4: New file.
76353         * m4/eaccess.m4: New file.
76354
76355 2003-04-10  Bruno Haible  <bruno@clisp.org>
76356
76357         * lib/findprog.h: New file, from GNU gettext.
76358         * lib/findprog.c: New file, from GNU gettext.
76359
76360 2003-04-05  Jim Meyering  <jim@meyering.net>
76361
76362         Merge changes from Coreutils.
76363
76364         * lib/exclude.h (PARAMS): Remove definition and uses.
76365         * lib/exclude.c: Remove uses of `PARAMS'.
76366
76367         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
76368         Add test-cases for DOS filenames. Declare program_name.
76369         (main): Set up program_name.  Patch by Rich Dawe.
76370
76371         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
76372         error from mntctl.
76373         Use mntctl's return value to drive the entry-processing loop, since
76374         we can't rely on the value of the vmt_length member in the last
76375         entry.  On some systems doing so could result in exhausting
76376         virtual memory.  Based in part on a patch from Mike Jetzer.
76377
76378 2003-04-04  Bruno Haible  <bruno@clisp.org>
76379
76380         * modules/linebreak: New file.
76381         * MODULES.html.sh (func_all_modules): Add it.
76382
76383 2003-04-04  Bruno Haible  <bruno@clisp.org>
76384
76385         * m4/linebreak.m4: New file.
76386
76387 2003-04-04  Bruno Haible  <bruno@clisp.org>
76388
76389         * lib/linebreak.h: New file, from GNU gettext.
76390         * lib/linebreak.c: New file, from GNU gettext with slight
76391         modifications.
76392         * lib/lbrkprop.h: New file, from GNU gettext.
76393
76394 2003-04-03  Bruno Haible  <bruno@clisp.org>
76395
76396         * modules/utf8-ucs4: New file.
76397         * modules/utf16-ucs4: New file.
76398         * modules/ucs4-utf8: New file.
76399         * modules/ucs4-utf16: New file.
76400         * MODULES.html.sh (func_all_modules): Add them.
76401
76402 2003-04-03  Bruno Haible  <bruno@clisp.org>
76403
76404         * m4/utf-ucs4.m4: New file.
76405         * m4/ucs4-utf.m4: New file.
76406
76407 2003-04-03  Bruno Haible  <bruno@clisp.org>
76408
76409         * lib/utf8-ucs4.h: New file, from GNU gettext.
76410         * lib/utf16-ucs4.h: New file, from GNU gettext.
76411         * lib/ucs4-utf8.h: New file, from GNU gettext.
76412         * lib/ucs4-utf16.h: New file, from GNU gettext.
76413
76414 2003-04-02  Bruno Haible  <bruno@clisp.org>
76415
76416         * modules/binary-io: New file.
76417         * MODULES.html.sh (func_all_modules): Add it.
76418
76419 2003-04-02  Bruno Haible  <bruno@clisp.org>
76420
76421         * lib/binary-io.h: New file, from GNU gettext.
76422
76423 2003-04-01  Bruno Haible  <bruno@clisp.org>
76424
76425         * modules/pathname: New file.
76426         * MODULES.html.sh (func_all_modules): Add it.
76427
76428 2003-04-01  Bruno Haible  <bruno@clisp.org>
76429
76430         * lib/pathname.h: New file, from GNU gettext.
76431         * lib/concatpath.c: New file, from GNU gettext.
76432
76433 2003-03-30  Bruno Haible  <bruno@clisp.org>
76434
76435         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
76436
76437 2003-03-30  Bruno Haible  <bruno@clisp.org>
76438
76439         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
76440         function chown() doesn't exist.
76441
76442 2003-03-28  Bruno Haible  <bruno@clisp.org>
76443
76444         * modules/copy-file: New file.
76445         * MODULES.html.sh (func_all_modules): Add it.
76446
76447 2003-03-28  Bruno Haible  <bruno@clisp.org>
76448
76449         * m4/copy-file.m4: New file.
76450
76451 2003-03-28  Bruno Haible  <bruno@clisp.org>
76452
76453         * lib/copy-file.h: New file, from GNU gettext.
76454         * lib/copy-file.c: New file, from GNU gettext.
76455
76456 2003-03-18  Jim Meyering  <jim@meyering.net>
76457
76458         * lib/quote.c (quote_n): Fix typo in comment.
76459
76460 2003-03-18  Bruno Haible  <bruno@clisp.org>
76461
76462         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
76463         checking.
76464         * m4/onceonly_2_57.m4: Likewise.
76465
76466 2003-03-17  Bruno Haible  <bruno@clisp.org>
76467
76468         * m4/onceonly.m4: Require autoconf 2.54 or newer.
76469         (m4_quote): Remove macro.
76470         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
76471
76472 2003-03-14  Jim Meyering  <jim@meyering.net>
76473
76474         Merge changes from Coreutils.
76475         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
76476         to be const, in order to avoid warnings.
76477         (obstack_room): Likewise.
76478         (obstack_empty_p): Likewise.
76479
76480 2003-03-14  Bruno Haible  <bruno@clisp.org>
76481
76482         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
76483         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
76484
76485 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76486
76487         Merge changes from Bison.
76488         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
76489         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
76490         when compiling Bison 1.875's `bitset bset = obstack_alloc
76491         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
76492         * lib/hash.c: Include <stdbool.h> unconditionally.
76493
76494 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76495
76496         * m4/onceonly.m4 (m4_quote): New macro.
76497         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
76498         Quote AC_FOREACH variable-expansions properly.
76499
76500 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76501
76502         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
76503
76504 2003-03-09  Paul Eggert  <eggert@twinsun.com>
76505
76506         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
76507         Reported by Bruce Becker; see:
76508         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
76509
76510 2003-03-03  Paul Eggert  <eggert@twinsun.com>
76511             Bruno Haible  <bruno@clisp.org>
76512
76513         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
76514         Reported by John Hughes, see
76515         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
76516
76517 2003-02-20  Bruno Haible  <bruno@clisp.org>
76518
76519         * MODULES.html.sh (func_all_modules): Add poll.
76520
76521 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76522
76523         * modules/poll: New file.
76524
76525 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76526
76527         * lib/poll_.h: New file.
76528         * lib/poll.c: New file.
76529
76530 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76531
76532         * m4/poll.m4: New file.
76533
76534 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76535
76536         * modules/mathl: New file.
76537
76538 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76539
76540         * lib/mathl.h: New file.
76541         * lib/acosl.c: New file.
76542         * lib/asinl.c: New file.
76543         * lib/atanl.c: New file.
76544         * lib/ceill.c: New file.
76545         * lib/cosl.c: New file.
76546         * lib/expl.c: New file.
76547         * lib/floorl.c: New file.
76548         * lib/frexpl.c: New file.
76549         * lib/ldexpl.c: New file.
76550         * lib/logl.c: New file.
76551         * lib/sincosl.c: New file.
76552         * lib/sinl.c: New file.
76553         * lib/sqrtl.c: New file.
76554         * lib/tanl.c: New file.
76555         * lib/trigl.c: New file.
76556         * lib/trigl.h: New file.
76557
76558 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76559
76560         * m4/mathl.m4: New file.
76561
76562 2003-02-18  Bruno Haible  <bruno@clisp.org>
76563
76564         * MODULES.html.sh (func_all_modules): Add mathl.
76565
76566 2003-02-17  Bruno Haible  <bruno@clisp.org>
76567
76568         * modules/mkdtemp: New module.
76569         * MODULES.html.sh (func_all_modules): Add it.
76570
76571 2003-02-17  Bruno Haible  <bruno@clisp.org>
76572
76573         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
76574
76575 2003-02-17  Bruno Haible  <bruno@clisp.org>
76576
76577         * lib/mkdtemp.h: New file, from GNU gettext.
76578         * lib/mkdtemp.c: New file, from GNU gettext.
76579
76580 2003-02-02  Jim Meyering  <jim@meyering.net>
76581
76582         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
76583         e.g. glibc-2.2.93.
76584
76585 2003-01-31  Bruno Haible  <bruno@clisp.org>
76586
76587         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
76588         'rpl_rename'.
76589         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
76590         'rpl_strnlen'.
76591         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
76592         'rpl_strtod'.
76593         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
76594         'rpl_utime'.
76595
76596 2003-01-31  Bruno Haible  <bruno@clisp.org>
76597
76598         * lib/rename.c: #undef rename before defining rpl_rename.
76599         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
76600
76601 2003-01-30  Bruno Haible  <bruno@clisp.org>
76602
76603         * modules/vasnprintf, modules/vasprintf: New modules.
76604         * MODULES.html.sh (func_all_modules): Add them.
76605
76606 2003-01-30  Bruno Haible  <bruno@clisp.org>
76607
76608         * m4/signed.m4: New file, from GNU gettext.
76609         * m4/longdouble.m4: New file, from GNU gettext.
76610         * m4/wchar_t.m4: New file, from GNU gettext.
76611         * m4/wint_t.m4: New file, from GNU gettext.
76612         * m4/vasnprintf.m4: New file.
76613         * m4/vasprintf.m4: New file.
76614
76615 2003-01-30  Bruno Haible  <bruno@clisp.org>
76616
76617         * lib/printf-args.h: New file, from GNU gettext.
76618         * lib/printf-args.c: New file, from GNU gettext.
76619         * lib/printf-parse.h: New file, from GNU gettext.
76620         * lib/printf-parse.c: New file, from GNU gettext.
76621         * lib/vasnprintf.h: New file, from GNU gettext.
76622         * lib/vasnprintf.c: New file, from GNU gettext.
76623         * lib/asnprintf.c: New file, from GNU gettext.
76624         * lib/vasprintf.h: New file, from GNU gettext with modifications.
76625         * lib/vasprintf.c: New file, from GNU gettext.
76626         * lib/asprintf.c: New file, from GNU gettext.
76627
76628 2003-01-29  Bruno Haible  <bruno@clisp.org>
76629
76630         * modules/stpncpy: New module.
76631         * MODULES.html.sh (func_all_modules): Add it.
76632
76633 2003-01-29  Bruno Haible  <bruno@clisp.org>
76634
76635         * m4/stpncpy.m4: New file.
76636
76637 2003-01-29  Bruno Haible  <bruno@clisp.org>
76638
76639         * lib/stpncpy.h: New file, from GNU gettext with modifications.
76640         * lib/stpncpy.c: New file, from GNU gettext with modifications.
76641
76642 2003-01-28  Bruno Haible  <bruno@clisp.org>
76643
76644         * modules/c-ctype: New module.
76645         * MODULES.html.sh (func_all_modules): Add it.
76646
76647 2003-01-28  Bruno Haible  <bruno@clisp.org>
76648
76649         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
76650         Paul Eggert.
76651         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
76652         Paul Eggert.
76653
76654 2003-01-27  Bruno Haible  <bruno@clisp.org>
76655
76656         * modules/xsetenv: New module.
76657         * MODULES.html.sh (func_all_modules): Add it.
76658
76659 2003-01-27  Bruno Haible  <bruno@clisp.org>
76660
76661         * lib/xsetenv.h: New file, from GNU gettext.
76662         * lib/xsetenv.c: New file, from GNU gettext.
76663
76664 2003-01-23  Jim Meyering  <jim@meyering.net>
76665
76666         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
76667         from working on systems without dirfd (at least Irix and OSF1/Tru64).
76668
76669 2003-01-23  Bruno Haible  <bruno@clisp.org>
76670
76671         * modules/minmax: New module.
76672         * MODULES.html.sh (func_all_modules): Add it.
76673
76674 2003-01-23  Bruno Haible  <bruno@clisp.org>
76675
76676         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
76677         Eggert.
76678
76679 2003-01-22  Bruno Haible  <bruno@clisp.org>
76680
76681         * modules/exit: New module.
76682         * MODULES.html.sh (func_all_modules): Add it.
76683
76684 2003-01-22  Bruno Haible  <bruno@clisp.org>
76685
76686         * lib/exit.h: New file, from GNU gettext.
76687
76688 2003-01-19  Bruno Haible  <bruno@clisp.org>
76689
76690         * gnulib-tool: Recognize option --extract-maintainer.
76691         (func_get_maintainer): New function.
76692         * modules/*: Add Maintainer entry.
76693
76694 2003-01-16  Jim Meyering  <jim@meyering.net>
76695
76696         * m4/regex.m4: The `regex' struct is both input and output.
76697         Initialize it before each use.  Patch by Tim Waugh.
76698
76699 2003-01-16  Bruno Haible  <bruno@clisp.org>
76700
76701         * MODULES.html.sh: Add a table of contents. Add the module name as
76702         leftmost column. Add hyperlinks.
76703
76704 2003-01-15  Bruno Haible  <bruno@clisp.org>
76705
76706         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
76707
76708 2003-01-15  Bruno Haible  <bruno@clisp.org>
76709
76710         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
76711         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
76712         suffix.
76713
76714 2003-01-15  Bruno Haible  <bruno@clisp.org>
76715
76716         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
76717
76718 2003-01-15  Bruno Haible  <bruno@clisp.org>
76719
76720         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
76721         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
76722
76723 2003-01-14  Jim Meyering  <jim@meyering.net>
76724
76725         * lib/same.c (same_name): Tweak a comment.
76726
76727 2003-01-14  Bruno Haible  <bruno@clisp.org>
76728
76729         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
76730         when a string comparison is sufficient.
76731
76732 2003-01-14  Bruno Haible  <bruno@clisp.org>
76733
76734         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
76735         'unsigned int'.
76736
76737 2003-01-14  Bruno Haible  <bruno@clisp.org>
76738
76739         * lib/hash-pjw.c: Add comment about low quality of this function.
76740
76741 2003-01-13  Bruno Haible  <bruno@clisp.org>
76742
76743         * modules/stpcpy: Distribute lib/stpcpy.h.
76744         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
76745
76746 2003-01-13  Bruno Haible  <bruno@clisp.org>
76747
76748         * modules/*: Add a description.
76749         * modules/strpbrk: Fix Makefile.am snippet.
76750         * modules/strtoimax: Fix dependencies.
76751         * modules/strtoumax: Likewise.
76752
76753 2003-01-13  Bruno Haible  <bruno@clisp.org>
76754
76755         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
76756         * modules/alloca (Makefile.am): All object files depend on alloca.h.
76757         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
76758
76759 2003-01-13  Bruno Haible  <bruno@clisp.org>
76760
76761         * gnulib-tool (func_create_testdir): Store config/* files in the main
76762         directory.
76763         * config.rpath: Move to ...
76764         * config/config.rpath: ... here.
76765         * modules/gettext: Contains config/config.rpath, not config.rpath.
76766         * modules/iconv: Likewise.
76767
76768 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76769
76770         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76771         to avoid collisions with libcurses and libreadline.
76772
76773         * m4/getstr.m4: Remove.
76774         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
76775
76776 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76777
76778         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76779         to avoid collisions with libcurses and libreadline.
76780
76781         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
76782         * lib/getstr.h, getstr.c: Remove.
76783         * lib/getline.c: Include "getline.h", to check interface.
76784         Move body of old getstr.c here: this defines MIN_CHUNK and
76785         declares getdelim2, which is renamed from getstr.
76786         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
76787
76788         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
76789         All uses changed.
76790         * lib/linebuffer.h: Likewise.
76791         (readline): Remove backward-compatibility macro.
76792
76793 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76794
76795         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76796         to avoid collisions with libcurses and libreadline.
76797         * getstr: Remove.
76798         * MODULES.html.sh: Remove getstr.
76799         * modules/getline: Depend on unlocked-io, not getstr.
76800
76801 2003-01-12  Jim Meyering  <jim@meyering.net>
76802
76803         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
76804
76805 2003-01-10  Bruno Haible  <bruno@clisp.org>
76806
76807         * modules/alloca: Change Makefile.am requirements. Simplify Include
76808         requirements. Add lib/alloca_.h to file list.
76809
76810 2003-01-10  Bruno Haible  <bruno@clisp.org>
76811
76812         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
76813
76814 2003-01-10  Bruno Haible  <bruno@clisp.org>
76815
76816         * lib/alloca_.h: New file.
76817         * lib/getdate.y: Unconditionally include alloca.h.
76818         * lib/makepath.c: Likewise.
76819         * lib/setenv.c: Likewise.
76820         * lib/userspec.c: Likewise.
76821
76822 2003-01-09  Karl Berry  <karl@gnu.org>
76823
76824         * MODULES.html.sh: include `dirname $0` in PATH, to find
76825         gnulib-tool.
76826
76827 2003-01-09  Bruno Haible  <bruno@clisp.org>
76828
76829         * modules/stdbool: Change configure.ac, Makefile.am requirements.
76830         Simplify Include requirements. Add lib/stdbool.h.in to file list.
76831
76832 2003-01-09  Bruno Haible  <bruno@clisp.org>
76833
76834         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
76835
76836 2003-01-09  Bruno Haible  <bruno@clisp.org>
76837
76838         * lib/stdbool.h.in: New file.
76839
76840 2003-01-09  Bruno Haible  <bruno@clisp.org>
76841
76842         * gnulib-tool (func_all_modules): Ignore files ending in ~.
76843         * MODULES.html.sh: Likewise.
76844
76845 2003-01-08  Jim Meyering  <jim@meyering.net>
76846
76847         * lib/full-write.c: Undefine and define-away `const' after inclusion
76848         of errno.h, not before.  Suggestion from Bruno Haible.
76849
76850 2003-01-08  Bruno Haible  <bruno@clisp.org>
76851
76852         * modules/full-read: Depend on full-write.
76853
76854 2003-01-08  Bruno Haible  <bruno@clisp.org>
76855
76856         * lib/safe-read.c: Include specification header first, to ensure its
76857         selfcontainedness.
76858         * lib/full-write.c: Likewise.
76859
76860 2003-01-07  Jim Meyering  <jim@meyering.net>
76861
76862         * lib/full-write.c: Rework so that it may serve to define full_read,
76863         too.
76864         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
76865
76866 2003-01-07  Bruno Haible  <bruno@clisp.org>
76867
76868         * lib/strtoimax.c: Include <stdint.h> as an alternative to
76869         <inttypes.h>.
76870         * lib/xstrtol.h: Likewise.
76871         * lib/xstrtoimax.c: Likewise.
76872         * lib/xstrtoumax.c: Likewise.
76873         * lib/human.h: Likewise.
76874
76875         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
76876         on systems that have <inttypes.h> but not <stdint.h>.
76877
76878 2003-01-07  Bruno Haible  <bruno@clisp.org>
76879
76880         * MODULES.html.sh: Add copyright notice.
76881         (missed_files): Omit CVS directory entries.
76882         (func_module): Make it work with sed-3.02.
76883         * MODULES.txt: Remove file.
76884
76885 2003-01-06  Jim Meyering  <jim@meyering.net>
76886
76887         * lib/version-etc.c: Update year in translatable copyright string.
76888
76889 2003-01-03  Karl Berry  <karl@gnu.org>
76890
76891         * config/config.{guess,sub}: update from prep.
76892
76893 2003-01-02  Karl Berry  <karl@gnu.org>
76894
76895         * doc/COPYING.DOC: belatedly updated to 1.2.
76896
76897 2003-01-01  Karl Berry  <karl@gnu.org>
76898
76899         * gnulib-tool (func_verify_module): report module name $module in
76900         error message, not $1.
76901         * gnulib-tool (create-testdir): don't complain if destdir couldn't
76902         be created, only if it doesn't exist.
76903         * gnulib-tool (last_checkin_date): don't expand the $Date here.
76904
76905 2002-12-31  Paul Eggert  <eggert@twinsun.com>
76906
76907         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
76908
76909 2002-12-31  Paul Eggert  <eggert@twinsun.com>
76910
76911         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
76912         memcmp if strcoll doesn't work.
76913
76914 2002-12-31  Bruno Haible  <bruno@clisp.org>
76915
76916         * lib/utime.c (utime_null): No need to call ftruncate if the file was
76917         nonempty.
76918
76919 2002-12-31  Bruno Haible  <bruno@clisp.org>
76920
76921         * lib/memcoll.c (STRCOLL): New macro.
76922         (memcoll): Use it.
76923
76924 2002-12-31  Bruno Haible  <bruno@clisp.org>
76925
76926         * lib/localcharset.h: New file.
76927         * lib/localcharset.c: Include it.
76928         * lib/unicodeio.c: Likewise.
76929
76930 2002-12-31  Bruno Haible  <bruno@clisp.org>
76931
76932         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
76933         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
76934
76935 2002-12-31  Bruno Haible  <bruno@clisp.org>
76936
76937         * lib/getline.h: Include <stddef.h>, for size_t.
76938
76939         * lib/unicodeio.h: Include <stddef.h>, for size_t.
76940         * lib/unicodeio.c: Don't include <stddef.h>.
76941
76942 2002-12-31  Bruno Haible  <bruno@clisp.org>
76943
76944         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
76945         HAVE_TM_ZONE.
76946
76947 2002-12-24  Karl Berry  <karl@gnu.org>
76948
76949         * config/config.guess: update from prep.
76950
76951 2002-12-24  Bruno Haible  <bruno@clisp.org>
76952
76953         General infrasructure.
76954         * m4/README: Rewritten.
76955         * m4/onceonly.m4: New file.
76956         * m4/onceonly_2_57.m4: New file.
76957
76958         Module atexit.
76959         * m4/atexit.m4: New file.
76960
76961         Module strtod.
76962         * m4/strtod.m4: New file.
76963
76964         Module strtol.
76965         * m4/strtol.m4: New file.
76966
76967         Module strtoul.
76968         * m4/strtoul.m4: New file.
76969
76970         Module memchr.
76971         * m4/memchr.m4: New file.
76972
76973         Module memcmp.
76974         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
76975         (jm_FUNC_MEMCMP): Invoke it.
76976
76977         Module memcpy.
76978         * m4/memcpy.m4: New file.
76979
76980         Module memmove.
76981         * m4/memmove.m4: New file.
76982
76983         Module memset.
76984         * m4/memset.m4: New file.
76985
76986         Module strcspn.
76987         * m4/strcspn.m4: New file.
76988
76989         Module strpbrk.
76990         * m4/strpbrk.m4: New file.
76991
76992         Module strstr.
76993         * m4/strstr.m4: New file.
76994
76995         Module strerror.
76996         * m4/strerror.m4: New file.
76997
76998         Module mktime.
76999         * m4/mktime.m4: Renamed from jm-mktime.m4.
77000         (gl_PREREQ_MKTIME): New macro.
77001         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
77002
77003         Module malloc.
77004         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
77005         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
77006         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
77007
77008         Module realloc.
77009         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
77010         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
77011         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
77012
77013         Module strftime.
77014         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
77015         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
77016         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
77017         gl_TM_GMTOFF.
77018         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
77019
77020         Module xalloc.
77021         * m4/xalloc.m4: New file.
77022
77023         Module alloca.
77024         * m4/alloca.m4: New file.
77025
77026         Module putenv.
77027         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
77028         (jm_FUNC_PUTENV): Invoke it.
77029
77030         Module setenv.
77031         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
77032         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
77033         when invoked twice.
77034         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
77035         gt_FUNC_SETENV.
77036
77037         Module memrchr.
77038         * m4/memrchr.m4: New file.
77039
77040         Module stpcpy.
77041         * m4/stpcpy.m4: New file.
77042
77043         Module strcase.
77044         * m4/strcase.m4: New file.
77045
77046         Module strdup.
77047         * m4/strdup.m4: New file.
77048
77049         Module strnlen.
77050         * m4/strnlen.m4: New file.
77051
77052         Module strndup.
77053         * m4/strndup.m4: New file.
77054
77055         Module xstrtod.
77056         * m4/xstrtod.m4: New file.
77057
77058         Module xstrtol.
77059         * m4/xstrtol.m4: New file.
77060
77061         Module getdate.
77062         * m4/getdate.m4: New file.
77063
77064         Module unlocked-io.
77065         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
77066         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
77067         * m4/jm-glibc-io.m4n: Remove file.
77068
77069         Module long-options.
77070         * m4/long-options.m4: New file.
77071
77072         Module md5.
77073         * m4/md5.m4: New file.
77074
77075         Module sha.
77076         * m4/sha.m4: New file.
77077
77078         Module getstr.
77079         * m4/getstr.m4: New file.
77080
77081         Module getline.
77082         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
77083         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
77084         <sys/types.h>, for size_t. Use the function name gnu_getline, not
77085         simply getline. Infoke gl_PREREQ_GETLINE.
77086
77087         Module obstack.
77088         * m4/obstack.m4: New file.
77089
77090         Module hash.
77091         * m4/hash.m4: New file.
77092
77093         Module readtokens.
77094         * m4/readtokens.m4: New file.
77095
77096         Module strverscmp.
77097         * m4/strverscmp.m4: New file.
77098
77099         Module stdbool.
77100         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
77101         OSF/1.
77102
77103         Module strtoll.
77104         * m4/strtoll.m4: New file.
77105
77106         Module strtoull.
77107         * m4/strtoull.m4: New file.
77108
77109         Module strtoimax.
77110         * m4/strtoimax.m4: New file.
77111
77112         Module strtoumax.
77113         * m4/strtoumax.m4: New file.
77114
77115         Module xstrtoimax.
77116         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
77117         jm_AC_PREREQ_XSTRTOIMAX.
77118         Moved the strtol prerequisites to strtol.m4.
77119         Moved the strtoll prerequisites to strtoll.m4.
77120         Moved the strtoimax prerequisites to strtoimax.m4.
77121
77122         Module xstrtoumax.
77123         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
77124         jm_AC_PREREQ_XSTRTOUMAX.
77125         Moved the strtoul prerequisites to strtoul.m4.
77126         Moved the strtoull prerequisites to strtoull.m4.
77127         Moved the strtoumax prerequisites to strtoumax.m4.
77128
77129         Module chown.
77130         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
77131         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
77132
77133         Module dup2.
77134         * m4/dup2.m4: New file.
77135
77136         Module ftruncate.
77137         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
77138         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
77139
77140         Module getgroups.
77141         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
77142         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
77143
77144         Module gettimeofday.
77145         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
77146         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
77147         gl_PREREQ_GETTIMEOFDAY.
77148
77149         Module mkdir.
77150         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
77151         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
77152
77153         Module mkstemp.
77154         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
77155         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
77156         jm_AC_TYPE_UINTMAX_T.
77157         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
77158
77159         Module stat.
77160         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
77161         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
77162
77163         Module lstat.
77164         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
77165         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
77166
77167         Module timespec.
77168         * m4/timespec.m4 (gl_TIMESPEC): New macro.
77169         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
77170         * m4/st_mtim.m4: Indentation.
77171
77172         Module nanosleep.
77173         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
77174         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
77175         gl_PREREQ_NANOSLEEP.
77176
77177         Module regex.
77178         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
77179         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
77180         (gl_REGEX): New macro.
77181
77182         Module rename.
77183         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
77184         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
77185
77186         Module rmdir.
77187         * m4/rmdir.m4: New file.
77188
77189         Module utime.
77190         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
77191         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
77192         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
77193
77194         Module dirname.
77195         * m4/dirname.m4: New file.
77196
77197         Module getopt.
77198         * m4/getopt.m4: New file.
77199
77200         Module unistd-safer.
77201         * m4/unistd-safer.m4: New file.
77202
77203         Module fnmatch.
77204         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
77205         declaration.
77206         (gl_PREREQ_FNMATCH_EXTRA): New macro.
77207         (gl_FUNC_FNMATCH_POSIX): New macro.
77208         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
77209         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
77210         simply fnmatch.
77211
77212         Module exclude.
77213         * m4/exclude.m4: New file.
77214
77215         Module human.
77216         * m4/human.m4: New file.
77217
77218         Module acl.
77219         * m4/acl.m4: Nop.
77220
77221         Module backupfile.
77222         * m4/backupfile.m4: New file.
77223         * m4/d-ino.m4: Indentation.
77224
77225         Module fsusage.
77226         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
77227         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
77228         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
77229
77230         Module dirfd.
77231         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
77232         requirements.
77233
77234         Module euidaccess.
77235         * m4/euidaccess.m4: New file.
77236
77237         Module file-type.
77238         * m4/file-type.m4: New file.
77239
77240         Module fileblocks.
77241         * m4/fileblocks.m4: New file.
77242
77243         Module filemode.
77244         * m4/filemode.m4: New file.
77245
77246         Module isdir.
77247         * m4/isdir.m4: New file.
77248
77249         Module lchown.
77250         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
77251         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
77252
77253         Module makepath.
77254         * m4/makepath.m4: New file.
77255
77256         Module modechange.
77257         * m4/modechange.m4: New file.
77258
77259         Module mountlist.
77260         * m4/mountlist.m4: New file.
77261         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
77262         Indentation.
77263
77264         Module path-concat.
77265         * m4/path-concat.m4: New file.
77266
77267         Module pathmax.
77268         * m4/pathmax.m4: New file.
77269
77270         Module same.
77271         * m4/same.m4: New file.
77272
77273         Module save-cwd.
77274         * m4/save-cwd.m4: New file.
77275
77276         Module savedir.
77277         * m4/savedir.m4: New file.
77278
77279         Module xgetcwd.
77280         * m4/xgetcwd.m4: New file.
77281         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
77282
77283         Module xreadlink.
77284         * m4/xreadlink.m4: New file.
77285
77286         Module safe-read.
77287         * m4/safe-read.m4: New file.
77288
77289         Module safe-write.
77290         * m4/safe-write.m4: New file.
77291
77292         Module closeout.
77293         * m4/closeout.m4: New file.
77294
77295         Module stdio-safer.
77296         * m4/stdio-safer.m4: New file.
77297
77298         Module getpass.
77299         * m4/getpass.m4: New file.
77300
77301         Module getugroups.
77302         * m4/getugroups.m4: New file.
77303
77304         Module group-member.
77305         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
77306         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
77307
77308         Module idcache.
77309         * m4/idcache.m4: New file.
77310
77311         Module userspec.
77312         * m4/userspec.m4: New file.
77313
77314         Module gettime.
77315         * m4/clock_time.m4: New file.
77316         * m4/gettime.m4: New file.
77317
77318         Module settime.
77319         * m4/settime.m4: New file.
77320
77321         Module posixtm.
77322         * m4/posixtm.m4: New file.
77323
77324         Module gethostname.
77325         * m4/gethostname.m4: New file.
77326
77327         Module canon-host.
77328         * m4/canon-host.m4: New file.
77329
77330         Module gettext.
77331         * m4/codeset.m4: New file, from gettext-0.11.5.
77332         * m4/gettext.m4: New file, from gettext-0.11.5.
77333         * m4/glibc21.m4: New file, from gettext-0.11.5.
77334         * m4/iconv.m4: New file, from gettext-0.11.5.
77335         * m4/intdiv0.m4: New file, from gettext-0.11.5.
77336         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
77337         * m4/inttypes.m4: New file, from gettext-0.11.5.
77338         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
77339         * m4/isc-posix.m4: New file, from gettext-0.11.5.
77340         * m4/lcmessage.m4: New file, from gettext-0.11.5.
77341         * m4/lib-ld.m4: New file, from gettext-0.11.5.
77342         * m4/lib-link.m4: New file, from gettext-0.11.5.
77343         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
77344         * m4/progtest.m4: New file, from gettext-0.11.5.
77345         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
77346         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
77347         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
77348
77349         Module localcharset.
77350         * m4/localcharset.m4: New file.
77351
77352         Module hard-locale.
77353         * m4/hard-locale.m4: New file.
77354
77355         Module mbswidth.
77356         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
77357         onceonly macros.
77358         * m4/mbrtowc.m4: Add comment.
77359
77360         Module memcasecmp.
77361         * m4/memcasecmp.m4: New file.
77362
77363         Module memcoll.
77364         * m4/memcoll.m4: New file.
77365
77366         Module unicodeio.
77367         * m4/unicodeio.m4: New file.
77368
77369         Module rpmatch.
77370         * m4/rpmatch.m4: New file.
77371
77372         Module yesno.
77373         * m4/yesno.m4: New file.
77374
77375         Module exitfail.
77376         * m4/exitfail.m4: New file.
77377
77378         Module c-stack.
77379         * m4/c-stack.m4 (gl_C_STACK): New macro.
77380         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
77381
77382         Module error.
77383         * m4/error.m4 (gl_ERROR): New macro.
77384         (jm_PREREQ_ERROR): Use onceonly macros.
77385
77386         Module fatal.
77387         * m4/fatal.m4: New file.
77388
77389         Module getloadavg.
77390         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
77391         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
77392
77393         Module getpagesize.
77394         * m4/getpagesize.m4: New file.
77395
77396         Module getusershell.
77397         * m4/getusershell.m4: New file.
77398
77399         Module physmem.
77400         * m4/physmem.m4: New file.
77401
77402         Module posixver.
77403         * m4/posixver.m4: New file.
77404
77405         Module quotearg.
77406         * m4/quotearg.m4: New file.
77407
77408         Module quote.
77409         * m4/quote.m4: New file.
77410
77411         Module readutmp.
77412         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
77413
77414         Module sig2str.
77415         * m4/sig2str.m4: New file.
77416
77417         Other.
77418         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
77419         ulonglong.m4.
77420         * m4/intmax_t.m4: New file.
77421         * m4/d-type.m4: Indentation.
77422         * m4/jm-macros.m4: Update.
77423         * m4/prereq.m4 (jm_PREREQ): Update.
77424         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
77425         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
77426         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
77427         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
77428         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
77429         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
77430         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
77431         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
77432         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
77433         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
77434         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
77435         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
77436         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
77437         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
77438         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
77439         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
77440         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
77441         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
77442         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
77443
77444 2002-12-24  Bruno Haible  <bruno@clisp.org>
77445
77446         * MODULES.txt: Update according to m4/ changes.
77447
77448         Module gettext.
77449         * config.rpath: New file, from gettext-0.11.5.
77450
77451         * modules/*: New module descriptions.
77452         * gnulib-tool: New file.
77453         * MODULES.html.sh: New file.
77454
77455 2002-12-21  Karl Berry  <karl@gnu.org>
77456
77457         * doc/fdl.texi: update to version 1.2.
77458
77459 2002-12-19  Karl Berry  <karl@gnu.org>
77460
77461         * config/config.guess: update from prep.
77462
77463 2002-12-18  Bruno Haible  <bruno@clisp.org>
77464
77465         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
77466         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
77467
77468 2002-12-17  Bruno Haible  <bruno@clisp.org>
77469
77470         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
77471         stdlib.h, string.h.
77472
77473 2002-12-17  Bruno Haible  <bruno@clisp.org>
77474
77475         * lib/canon-host.c (strdup): Remove unused declaration.
77476
77477         * lib/fsusage.c: Include full_read.h.
77478         (get_fs_usage): Use full_read instead of safe_read.
77479
77480         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
77481
77482 2002-12-12  Karl Berry  <karl@gnu.org>
77483
77484         * config/config.guess: update from prep.
77485
77486 2002-12-11  Bruno Haible  <bruno@clisp.org>
77487
77488         * m4/setenv.m4: New file, from gettext-0.11.5.
77489
77490 2002-12-11  Bruno Haible  <bruno@clisp.org>
77491
77492         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
77493         not unsetenv().
77494         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
77495         modifications:
77496
77497         2002-12-11  Bruno Haible  <bruno@clisp.org>
77498
77499                 * setenv.c (alloca): Fall back to malloc.
77500                 (freea): New macro.
77501                 (setenv): Use freea() to free memory allocated with alloca().
77502
77503         2002-11-13  Bruno Haible  <bruno@clisp.org>
77504
77505                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
77506                 function declarations.
77507                 * unsetenv.c (unsetenv): Likewise.
77508
77509         2002-03-04  Bruno Haible  <bruno@clisp.org>
77510
77511                 Portability to AIX 4.3.3.
77512                 * unsetenv.c: New file, extracted from setenv.c.
77513                 * setenv.c: Move the unsetenv() function to unsetenv.c.
77514
77515         2001-12-20  Bruno Haible  <bruno@clisp.org>
77516
77517                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
77518                 use malloc instead. For SunOS 4.
77519
77520         2001-12-11  Bruno Haible  <bruno@clisp.org>
77521
77522                 * setenv.c: Declare alloca.
77523                 (compar_fn_t): New typedef.
77524                 (KNOWN_VALUE, STORE_VALUE): Use it.
77525
77526         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
77527         setenv.h.
77528
77529 2002-12-10  Paul Eggert  <eggert@twinsun.com>
77530
77531         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
77532         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
77533         Choose values that are less likely to collide with system fnmatch
77534         options.
77535         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
77536         defined (e.g., a pure POSIX system).
77537         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
77538         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
77539
77540 2002-12-06  Paul Eggert  <eggert@twinsun.com>
77541
77542         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
77543         a pain in practice to deal with generated m4 files.  This change
77544         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
77545
77546         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
77547         and jm-glibc-io.m4, as they are no longer a special case.
77548         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
77549         kludge and the auto-generation stuff.  Check only whether the
77550         functions are declared, not whether they exist, since older hosts
77551         that don't declare the functions can't use the optimization anyway.
77552
77553 2002-12-06  Jim Meyering  <jim@meyering.net>
77554
77555         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
77556
77557         Merge in changes from libc's misc/error.c, in preparation
77558         for the merge of gnulib's changes back into libc.
77559
77560         * lib/error.c (_): Define only if not already defined.
77561         Move definition to follow all #include directives.
77562         Include unlocked-io.h only if !_LIBC.
77563         [_LIBC]: Include <libio/libioP.h>.
77564         [USE_IN_LIBIO]: Include <libio/iolibio.h>
77565         (fflush): Tweak definition to use INTUSE.
77566         (putc): Define.
77567
77568 2002-12-05  Paul Eggert  <eggert@twinsun.com>
77569
77570         * lib/alloca.c [defined emacs]: Include "lisp.h".
77571         (xalloc_die) [defined emacs]: New macro.
77572         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
77573         [! defined emacs]: Include <xalloc.h>.
77574         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
77575         (pointer): Typedef to POINTER_TYPE *.
77576         (malloc): Remove decl; we now always use xmalloc.
77577         (alloca): Use old-style definition, since Emacs needs this.
77578         Check for arithmetic overflow when computing combined size.
77579
77580 2002-12-04  Paul Eggert  <eggert@twinsun.com>
77581
77582         Do not generate unlocked-io.h automatically, since it's easier to
77583         maintain it by hand.
77584
77585         * lib/unlocked-io.h: New file, from GNU diffutils,
77586         but with proper copyright notice and attribution.
77587         * lib/gen-uio: Remove.
77588         * lib/Makefile.am: Add copyright notice.
77589         (libfetish_a_SOURCES): Add unlocked-io.h.
77590         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
77591         (DISTCLEANFILES, io_functions): Remove macros.
77592         (EXTRA_DIST): Remove gen_uio.
77593         (unlocked-io.h): Remove rule.
77594
77595 2002-12-04  Jim Meyering  <jim@meyering.net>
77596
77597         Reflect the fact that stat.c and lstat.c are no longer generated.
77598         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
77599         (DISTCLEANFILES): Likewise.
77600         (EXTRA_DIST): Likewise.
77601         (all_local): Don't depend on stat.c or lstat.c.
77602         (stat.c, lstat.c): Remove rules.
77603         (EXTRA_DIST): Remove xstat.in.
77604
77605         * lib/xstat.in: Remove file.  Contents moved into stat.c.
77606         * lib/stat.c: New file.  Contents mostly from xstat.in.
77607         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
77608         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
77609
77610         * lib/safe-read.c: Rework so that it may serve to define safe_write,
77611         too.
77612         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
77613
77614 2002-12-03  Jim Meyering  <jim@meyering.net>
77615
77616         * lib/safe-read.c, safe-write.c: Change variable names and comments,
77617         but not semantics, to minimize the differences between these two files.
77618         (safe_read): Change comment to mention SAFE_READ_ERROR.
77619
77620         * lib/safe-read.c (IS_EINTR): Define.
77621         (safe_read): Use IS_EINTR in place of in-function cpp directives.
77622
77623 2002-12-02  Jim Meyering  <jim@meyering.net>
77624
77625         * lib/safe-read.c (EINTR): Define.
77626         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
77627         (INT_MAX): Provide fallback.
77628         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
77629
77630         * lib/safe-read.h (SAFE_READ_ERROR): Define.
77631
77632 2002-12-02  Bruno Haible  <bruno@clisp.org>
77633
77634         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
77635         Define, taken from safe-read.c.
77636         (INT_MAX): Provide fallback.
77637         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
77638         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
77639
77640         * lib/safe-read.c (EINTR): Remove definition.
77641         (safe_read): Don't use EINTR if it is absent.
77642
77643 2002-12-01  Jim Meyering  <jim@meyering.net>
77644
77645         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
77646         zero.
77647         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
77648
77649 2002-11-27  Paul Eggert  <eggert@twinsun.com>
77650
77651         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
77652         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
77653         with `if (! (value < limit)) abort ();', for readability.
77654
77655 2002-11-26  Karl Berry  <karl@gnu.org>
77656
77657         * lib/strdup.c: copy from libc again, with jim's ok.
77658         * lib/.cppi-disable: re-add strdup.c
77659
77660 2002-11-25  Karl Berry  <karl@gnu.org>
77661
77662         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
77663         instead of "strtol.c".
77664
77665 2002-11-25  Karl Berry  <karl@gnu.org>
77666
77667         * config/install-sh: update from automake for variable quoting, $0 in
77668         error msgs, etc.
77669
77670         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
77671         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
77672         entry.
77673
77674 2002-11-25  Jim Meyering  <jim@meyering.net>
77675
77676         * lib/mktime.c: Sync from libc, now that it has the latest fix.
77677
77678 2002-11-24  Karl Berry  <karl@gnu.org>
77679
77680         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
77681         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
77682
77683 2002-11-24  Jim Meyering  <jim@meyering.net>
77684
77685         Update from coreutils:
77686
77687         * lib/mktime.c: Merge in changes from libc.
77688
77689         Avoid a link-time failure on some Linux systems.
77690         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
77691         (otherwise).
77692         (__mon_yday): Declare with the STATIC attribute.
77693         (__mktime_internal): Likewise.
77694         Based on a report from Greg Schafer.
77695
77696 2002-11-23  Jim Meyering  <jim@meyering.net>
77697
77698         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
77699         Use `unsigned', not `int', as type of index.
77700
77701         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
77702
77703         * lib/fsusage.c: Remove unneeded parentheses around operands of
77704         `defined'.
77705
77706 2002-11-22  Paul Eggert  <eggert@twinsun.com>
77707
77708         * lib/quotearg.h: Allow multiple inclusion by surrounding with
77709         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
77710         so that we can be included first.
77711         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
77712         * lib/quotearg.c: Include quotearg.h immediately after config.h.
77713         No need to include stddef.h or sys/types.h any more.
77714         Surround local include files with "", not "<>".
77715         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
77716         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
77717         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
77718         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
77719         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
77720         (ISPRINT): Remove; no longer needed now that we assume C89.
77721
77722         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
77723         Preserve errno.
77724
77725         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
77726         quotearg_char): Use SIZE_MAX rather than
77727         (size_t) -1 when we are talking about "infinity".
77728
77729         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
77730
77731 2002-11-22  Paul Eggert  <eggert@twinsun.com>
77732
77733         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
77734         hint that one should use `if (! x) abort ();' rather than `assert
77735         (x);', and anyway it's one less thing to worry about configuring.
77736         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
77737         hash_rehash, hash_insert): Use abort rather than assert.
77738
77739 2002-11-22  Bruno Haible  <bruno@clisp.org>
77740
77741         * lib/safe-read.h: Assume C89. Add comments.
77742         (safe_read): Change return type to size_t.
77743         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
77744         byte counts > SSIZE_MAX correctly.
77745         * lib/safe-write.h: New file.
77746         * lib/safe-write.c: New file.
77747         * lib/full-read.h: New file.
77748         * lib/full-read.c: New file.
77749         * lib/full-write.h: Assume C89. Add comments.
77750         * lib/full-write.c: Include safe-write.h.
77751         (full_write): Rewritten to use safe_write.
77752         Suggested by Jim Meyering and Paul Eggert.
77753
77754 2002-11-21  Jim Meyering  <jim@meyering.net>
77755
77756         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
77757
77758         Merge in changes from the coreutils.
77759
77760         2002-09-25  Paul Eggert  <eggert@twinsun.com>
77761         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
77762         <stdint.h>.
77763         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
77764         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
77765         int.  Work more efficiently if X is the same width as uintmax_t.
77766         Do not compare X to -1, to avoid bogus compiler warning.
77767         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
77768         Don't assume that f_frsize and f_bsize are the same type.
77769
77770         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
77771         warning on FreeBSD.
77772
77773         * lib/makepath.c (make_path): Restore umask *before* creating the final
77774         component.
77775         (make_path): Minor reformatting.
77776
77777         * lib/xmalloc.c: Adjust to work with new autoconf macros,
77778         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
77779         HAVE_MALLOC/HAVE_REALLOC.
77780
77781         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
77782         dummy ones.  At least on GNU/Linux systems, `auto' means something
77783         else.
77784         From Michael Stone.
77785
77786 2002-11-21  Bruno Haible  <bruno@clisp.org>
77787
77788         Remove case insensitive option matching.
77789         * lib/argmatch.h (argcasematch): Remove declaration.
77790         (ARGCASEMATCH): Remove macro.
77791         (__xargmatch_internal): Remove case_sensitive argument.
77792         (XARGMATCH): Update.
77793         (XARGCASEMATCH): Remove macro.
77794         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
77795         case_sensitive argument.
77796         (argcasematch): Remove function.
77797         (__xargmatch_internal): Remove case_sensitive argument.
77798         (main): Use XARGMATCH instead of XARGCASEMATCH.
77799
77800         * lib/xmalloc.c: Change compile-time error message. Add comment about
77801         required autoconf version.
77802
77803 2002-11-20  Paul Eggert  <eggert@twinsun.com>
77804
77805         Merge argmatch cleanups from Bison.  Assume C89.
77806
77807         * lib/argmatch.c: Include config.h here, not in argmatch.h.
77808         Include stdlib.h, for EXIT_FAILURE.
77809         Always include <string.h>, since we assume C89.
77810         (EXIT_FAILURE): Remove pre-C89 bug workaround.
77811         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
77812         Include <stddef.h> instead, since it's all we need for size_t.
77813         (PARAMS): Remove.  All uses removed.
77814         (ARRAY_CARDINALITY): Do not bother to #undef.
77815         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
77816         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
77817         Remove unnecessary parentheses.
77818         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
77819         Insert necessary parentheses.
77820         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
77821         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
77822
77823 2002-11-19  Bruno Haible  <bruno@clisp.org>
77824
77825         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
77826         * lib/mbswidth.h: Include <stddef.h>, for size_t.
77827
77828         * lib/mbswidth.h (PARAMS): Remove macro.
77829         (mbswidth, mbsnwidth): Use ANSI C function declarations.
77830         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
77831
77832         * lib/gcd.h (PARAMS): Remove macro.
77833         (gcd): Use ANSI C function declarations.
77834         * lib/gcd.c (gcd): Likewise.
77835
77836 2002-11-15  Bruno Haible  <bruno@clisp.org>
77837
77838         * lib/strcspn.c: Include <stddef.h>.
77839         (strcspn): Use ANSI C function declaration. Change return type to
77840         size_t. Use NULL.
77841         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
77842         (strpbrk): Use NULL.
77843         * lib/strpbrk.h (PARAMS): Remove macro.
77844         (strpbrk): Use ANSI C function declaration.
77845         * lib/strstr.c: Don't include <sys/types.h>.
77846         * lib/strstr.h (PARAMS): Remove macro.
77847         (strstr): Use ANSI C function declarations.
77848
77849 2002-11-14  Karl Berry  <karl@gnu.org>
77850
77851         * config/mkinstalldirs: `do' on separate line, instead of
77852         `for var; do'.
77853
77854 2002-11-06  Bruno Haible  <bruno@clisp.org>
77855
77856         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
77857         * lib/gcd.c (gcd): Likewise.
77858
77859 2002-11-05  Bruno Haible  <bruno@clisp.org>
77860
77861         * lib/gcd.h: New file, from gettext-0.11.5.
77862         * lib/gcd.c: New file, from gettext-0.11.5.
77863
77864 2002-11-05  Bruno Haible  <bruno@clisp.org>
77865
77866         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77867         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77868         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77869         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77870
77871         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
77872         <libintl.h>.
77873         * lib/makepath.c: Include gettext.h instead of <locale.h> and
77874         <libintl.h>.
77875
77876         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
77877         * lib/human.c: Include gettext.h instead of <libintl.h>.
77878         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
77879         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
77880         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
77881         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
77882         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
77883         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
77884         (textdomain): Remove definition.
77885         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
77886
77887         * lib/long-options.c: Remove include of <libintl.h> and definition of
77888         _.
77889         * lib/same.c: Remove include of <libintl.h> and definition of _.
77890
77891 2002-11-04  Owen Taylor  <otaylor@redhat.com>
77892
77893         * lib/config.charset: A few additions for Solaris.
77894
77895 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
77896
77897         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
77898         * lib/localcharset.c (locale_charset): Declare as extern "C".
77899
77900 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
77901
77902         * lib/config.charset: msdos in uk_UA uses CP1125.
77903
77904 2002-11-04  Bruno Haible  <bruno@clisp.org>
77905
77906         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
77907         * lib/strcase.h: New file, from GNU gettext-0.11.5.
77908         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
77909         * lib/strstr.h: New file, from GNU gettext-0.11.5.
77910         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
77911
77912 2002-11-04  Bruno Haible  <bruno@clisp.org>
77913
77914         * lib/localcharset.c (locale_charset): Don't return an empty string.
77915
77916 2002-11-04  Bruno Haible  <bruno@clisp.org>
77917
77918         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
77919         aliases.
77920
77921 2002-11-04  Bruno Haible  <bruno@clisp.org>
77922
77923         * lib/config.charset: Update for newest glibc. Add canonical names
77924         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
77925
77926 2002-11-04  Bruno Haible  <bruno@clisp.org>
77927
77928         * lib/config.charset: Add support for NetBSD.
77929
77930 2002-11-04  Bruno Haible  <bruno@clisp.org>
77931
77932         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
77933
77934 2002-11-01  Bruno Haible  <bruno@clisp.org>
77935
77936         * configure.in: Add AC_CONFIG_AUX_DIR call.
77937         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
77938         test/Makefile.
77939         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
77940
77941 2002-09-28  Karl Berry  <karl@gnu.org>
77942
77943         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
77944         installed automake until the next release, since changes have been
77945         made.
77946
77947 2002-09-25  Karl Berry  <karl@gnu.org>
77948
77949         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
77950         * lib/getopt*: copy from libc/posix.
77951         * lib/gettext.h: copy from gettext.
77952         * lib/.cppi-disable: add strdup.c, gettext.h.
77953
77954 2002-09-25  Karl Berry  <karl@gnu.org>
77955
77956         * config/srclist.txt: enable gettext.h check.
77957         * config/config.{guess,sub}: update from prep.
77958         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
77959                 from automake 1.6.3.
77960         See srclist*.
77961
77962 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
77963
77964         * regex.c (PATFETCH): Remove the translating fetch.
77965         (PATFETCH_RAW): Rename to PATFETCH.
77966         (set_image_of_range): New fun.
77967         (SET_RANGE_TABLE_WORK_AREA): Use it.
77968         (regex_compile): Don't translate the pattern chars so eagerly.
77969         Only do it when inserting an `exactn' bytecode or when handling
77970         a char-range.
77971         (mutually_exclusive_p): Avoid empty statement.
77972
77973 2002-07-06  Jim Meyering  <meyering@lucent.com>
77974
77975         * m4/README: Don't mention Makefile.am.in.
77976         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
77977
77978 2002-07-01  Jim Meyering  <meyering@lucent.com>
77979
77980         * lib/c-stack.c: Include sys/time.h.
77981         From Volker Borchert.
77982
77983 2002-06-26  Paul Eggert  <eggert@twinsun.com>
77984
77985         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
77986
77987 2002-06-26  Paul Eggert  <eggert@twinsun.com>
77988
77989         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
77990         New macro.  Use it uniformly instead of
77991         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
77992         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
77993         reported by Vin Shelton.
77994
77995 2002-06-22  Paul Eggert  <eggert@twinsun.com>
77996
77997         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
77998         Do not assume SA_SIGINFO behavior.
77999         Bug reported by Jim Meyering on NetBSD 1.5.2.
78000
78001 2002-06-22  Jim Meyering  <meyering@lucent.com>
78002
78003         * m4/c-stack.m4: New file, from diffutils-2.8.2.
78004         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
78005
78006         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
78007         now that configure.ac uses AC_GNU_SOURCE.
78008         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
78009         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
78010
78011         Update to latest tools.  Suggestions from Paul Eggert.
78012         * m4/stdbool.m4: New file, from diffutils-2.8.2.
78013         * m4/gnu-source.m4: Update from diffutils-2.8.2.
78014         * m4/fnmatch.m4: Likewise.
78015         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
78016         to AC_HEADER_STDBOOL
78017
78018 2002-06-22  Jim Meyering  <meyering@lucent.com>
78019
78020         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
78021         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
78022
78023 2002-06-22  Jim Meyering  <meyering@lucent.com>
78024
78025         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
78026
78027         * lib/exitfail.c, exitfail.h: Likewise.
78028         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
78029
78030         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
78031         of fnmatch.h.
78032         (EXTRA_DIST): Add fnmatch_loop.c.
78033         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
78034
78035         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
78036         * lib/fnmatch.c: Update from diffutils-2.8.2.
78037         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
78038         * lib/fnmatch.h: Remove file.
78039
78040 2002-06-21  Jim Meyering  <meyering@lucent.com>
78041
78042         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
78043         * m4/mbrtowc.m4: Likewise.
78044
78045         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
78046         * m4/mbswidth.m4: Reflect name change:
78047         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
78048         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78049
78050         * m4/lib-link.m4: Update from gettext-0.11.2.
78051         * m4/gettext.m4: Likewise.
78052
78053         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
78054         From Alfred M. Szmidt.
78055
78056 2002-06-18  Paul Eggert  <eggert@twinsun.com>
78057
78058         * lib/file-type.h: Report an error if neither S_ISREG nor
78059         S_IFREG is defined, instead of using a test specific to glibc
78060         2.2.  This should be safe, since POSIX requires S_ISREG and
78061         Unix Version 7 had S_IFREG.  We don't need to check for
78062         <sys/types.h> since we don't use any symbols that it defines.
78063
78064 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
78065
78066         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
78067         $@-t, so that each temporary file name is unique and valid in the first
78068         8 characters, for operation under DOS.
78069
78070 2002-06-15  Paul Eggert  <eggert@twinsun.com>
78071
78072         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
78073
78074 2002-06-15  Jim Meyering  <meyering@lucent.com>
78075
78076         Work even with DJGPP 2.03, which lacks support for symlinks.
78077         From Richard Dawe.
78078         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
78079         is defined.
78080         * lib/lchown.c (S_ISLNK): Likewise.
78081
78082 2002-06-15  Jim Meyering  <meyering@lucent.com>
78083
78084         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
78085         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
78086         have been included before this file.
78087
78088 2002-06-14  Jim Meyering  <meyering@lucent.com>
78089
78090         * lib/file-type.h: Use the version from diffutils-2.8.2.
78091         * lib/file-type.c: Likewise.
78092
78093 2002-06-07  Jim Meyering  <meyering@lucent.com>
78094
78095         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
78096         They're needed at least for NetBSD 1.5.2.
78097         ($statxfs_includes): Include those same headers.
78098         ($statxfs_includes): Include sys/vfs.h if available.
78099         ($statxfs_includes): Likewise for sys/statvfs.h.
78100         Check for the following members in both structs statfs and statvfs:
78101         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
78102
78103 2002-06-01  Jim Meyering  <meyering@lucent.com>
78104
78105         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
78106         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
78107
78108 2002-05-28  Jim Meyering  <meyering@lucent.com>
78109
78110         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
78111         Reported by Volker Borchert.
78112
78113 2002-05-27  Jim Meyering  <meyering@lucent.com>
78114
78115         Fix a problem seen only on nonconforming systems whereby ls.c's
78116         use of localtime, and then of gettimeofday would cause trouble:
78117         the localtime call used to initialize rpl_gettimeofday's save
78118         mechanism would clobber ls's current local time information so
78119         that in any long listing the first file would always be listed
78120         with date 1970-01-01.  Analysis by Volker Borchert.
78121
78122         * lib/gettimeofday.c (localtime): Undefine.
78123         (rpl_localtime): New function.
78124
78125 2002-05-27  Jim Meyering  <meyering@lucent.com>
78126
78127         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
78128         localtime.
78129
78130         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
78131         use the replacement function; it wouldn't resolve at link time.
78132         Reported by Volker Borchert.
78133
78134 2002-05-22  Jim Meyering  <meyering@lucent.com>
78135
78136         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
78137         file-type.h.
78138         * lib/file-type.h: New file.
78139         * lib/file-type.c (file_type): New file/function.  Extracted from
78140         diffutils.
78141
78142 2002-04-30  Jim Meyering  <meyering@lucent.com>
78143
78144         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
78145
78146 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78147
78148         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
78149
78150 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78151
78152         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
78153         Do not check for alloca.h (no longer used) or stdbool.h (was never
78154         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
78155
78156 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78157
78158         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
78159
78160 2002-04-29  Jim Meyering  <meyering@lucent.com>
78161
78162         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
78163         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
78164         Use AC_FUNC_STRNLEN here instead.
78165
78166         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
78167         With autoconf-2.53a, it's part of AC_PROG_CC.
78168
78169 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78170
78171         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
78172         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
78173
78174 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78175
78176         * lib/sig2str.h, lib/sig2str.c: New files.
78177         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
78178
78179 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78180
78181         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
78182         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
78183         of 127, since 64 is the largest conceivable number for ancient
78184         nonstandard hosts.
78185         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
78186
78187 2002-04-28  Jim Meyering  <meyering@lucent.com>
78188
78189         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
78190
78191 2002-04-24  Jim Meyering  <meyering@lucent.com>
78192
78193         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
78194         (jm_PREREQ): Use it.
78195
78196         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
78197         mach/mach.h fcntl.h.
78198         Check for this function: setlocale.
78199
78200 2002-04-24  Jim Meyering  <meyering@lucent.com>
78201
78202         * lib/gettext.h: New file, from Gettext.
78203         * lib/Makefile.am (INCLUDES): Remove -I../intl.
78204         (libfetish_a_SOURCES): Add gettext.h.
78205
78206 2002-04-16  Jim Meyering  <meyering@lucent.com>
78207
78208         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
78209         ut_pid, ut_id, ut_exit.
78210
78211 2002-04-16  Jim Meyering  <meyering@lucent.com>
78212
78213         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
78214         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
78215         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
78216
78217 2002-04-12  Jim Meyering  <meyering@lucent.com>
78218
78219         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
78220         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
78221         existence of the getmntinfo function.  Needed for Darwin 5.3.
78222
78223         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
78224         This is necessary at least on Darwin 5.3.
78225
78226         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
78227         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
78228         strnlen.o in the library, and that makes some versions of ranlib
78229         object.
78230
78231 2002-04-12  Jim Meyering  <meyering@lucent.com>
78232
78233         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
78234
78235 2002-04-09  Jim Meyering  <meyering@lucent.com>
78236
78237         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
78238         to be more precise.  Rather than saying we're checking whether the
78239         function `works', say what we're testing.
78240         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
78241         Reported by Bruno Haible.
78242
78243 2002-03-10  Jim Meyering  <meyering@lucent.com>
78244
78245         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
78246         Suggestion from Santiago Vila.
78247
78248 2002-03-08  Jim Meyering  <meyering@lucent.com>
78249
78250         * lib/rename.c: Mention that this wrapper is needed also on
78251         mips-dec-ultrix4.4 systems.
78252
78253 2002-03-02  Jim Meyering  <meyering@lucent.com>
78254
78255         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
78256         not HAVE_CLOCK_SETTIME.
78257
78258 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78259
78260         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
78261         Check for clock_settime.
78262
78263 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78264
78265         * lib/nanosleep.h: Rename to....
78266         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
78267
78268         * lib/gettime.c: New file.
78269         * lib/settime.c: New file.
78270         * lib/stime.c: Remove.
78271
78272         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
78273         timespec.h.  Remove nanosleep.h.
78274
78275 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78276
78277         * m4/acl.m4: New file.
78278         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
78279         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
78280
78281 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78282
78283         * lib/acl.c, lib/acl.h: New files.
78284         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
78285
78286 2002-02-24  Jim Meyering  <meyering@lucent.com>
78287
78288         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
78289         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
78290         cause trouble.  Reported by Nelson Beebe.
78291
78292 2002-02-23  Paul Eggert  <eggert@twinsun.com>
78293
78294         * lib/path-concat.c (xpath_concat): Reorder code to pacify
78295         compilers that don't know that xalloc_die never returns.
78296
78297 2002-02-20  Jim Meyering  <meyering@lucent.com>
78298
78299         * lib/getdate.c: Regenerate using bison-1.33.
78300
78301 2002-02-17  Jim Meyering  <meyering@lucent.com>
78302
78303         * config/config.guess (main): Don't use `head -1'; it's no longer
78304         portable. Use `sed 1q' instead.
78305
78306 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
78307
78308         * m4/codeset.m4: Upgrade to gettext-0.11.
78309         * m4/gettext.m4: Upgrade to gettext-0.11.
78310         * m4/glibc21.m4: Upgrade to gettext-0.11.
78311         * m4/iconv.m4: Upgrade to gettext-0.11.
78312         * m4/isc-posix.m4: Upgrade to gettext-0.11.
78313         * m4/lcmessage.m4: Upgrade to gettext-0.11.
78314         * m4/lib-ld.m4: New file, from gettext-0.11.
78315         * m4/lib-link.m4: New file, from gettext-0.11.
78316         * m4/lib-prefix.m4: New file, from gettext-0.11.
78317         * m4/progtest.m4: Upgrade to gettext-0.11.
78318
78319 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78320
78321         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
78322         (jm_PREREQ): Use it.
78323
78324 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78325
78326         * lib/posixver.c, lib/posixver.h: New files.
78327         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78328
78329 2002-02-02  Paul Eggert  <eggert@twinsun.com>
78330             Bruno Haible  <bruno@clisp.org>
78331
78332         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
78333         (fwrite_success_callback): New declaration.
78334         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
78335         print_unicode_char. Call failure callback instead of error.
78336         (fwrite_success_callback): New function.
78337         (exit_failure_callback): New function.
78338         (fallback_failure_callback): New function.
78339         (print_unicode_char): Call unicode_to_mb.
78340
78341 2002-01-26  Jim Meyering  <meyering@lucent.com>
78342
78343         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
78344         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
78345
78346 2002-01-26  Jim Meyering  <meyering@lucent.com>
78347
78348         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
78349
78350 2002-01-22  Paul Eggert  <eggert@twinsun.com>
78351
78352         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
78353
78354 2002-01-22  Jim Meyering  <meyering@lucent.com>
78355
78356         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
78357         Otherwise, some versions of automake would omit the rule that makes
78358         Makefile from Makefile.in.
78359
78360 2002-01-21  Paul Eggert  <eggert@twinsun.com>
78361
78362         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
78363         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78364         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
78365         (memcoll): Set errno to zero if there is no error.
78366
78367         * lib/quotearg.c (quotearg_buffer_restyled):
78368         Fix bug with quoting buffers containing NUL when backslashing escapes.
78369         This bug was exposed by the other changes in this patch.
78370         (quotearg_n_options): New arg ARGSIZE.
78371         All callers changed.
78372         (quoting_options_from_style): New function.
78373         (quotearg_n_style): Use it.
78374         (quotearg_n_style_mem): New function.
78375
78376         * lib/quotearg.h (quotearg_n_style_mem): New function.
78377
78378 2002-01-19  Jim Meyering  <meyering@lucent.com>
78379
78380         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
78381         Remove useless quotes: DF_PROG="df".
78382         * m4/strnlen.m4: New file.
78383
78384 2002-01-16  Paul Eggert  <eggert@twinsun.com>
78385
78386         * lib/backupfile.c (ISDIGIT): Comment fix.
78387         * lib/getdate.y (ISDIGIT): Likewise.
78388         * lib/posixtm.c (ISDIGIT, year): Likewise.
78389         * lib/strverscmp.c (ISDIGIT): Likewise.
78390         * lib/userspec.c (ISDIGIT): Likewise.
78391
78392 2002-01-16  Jim Meyering  <meyering@lucent.com>
78393
78394         * lib/getdate.y: Add three semicolons, each just before a closing
78395         brace. Bison (as of version 1.31) no longer papers over that mistake.
78396
78397 2002-01-05  Jim Meyering  <meyering@lucent.com>
78398
78399         * lib/version-etc.c (version_etc_copyright): Update copyright year.
78400
78401 2001-12-19  Paul Eggert  <eggert@twinsun.com>
78402
78403         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
78404         not silently exit merely because the output buffer happens to
78405         have nothing pending.
78406
78407 2001-12-18  Paul Eggert  <eggert@twinsun.com>
78408
78409         See the big note in ../ChangeLog.
78410         * lib/human.c (suffixes): Prefer K to k for 1024.
78411         (generate_suffix_backwards): New function.
78412         (human_readable_inexact): Use it.
78413         * lib/xstrtol.c (__xstrtol): If there is no number but there
78414         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
78415         Accept 'K' as well as 'k'.
78416
78417 2001-12-15  Jim Meyering  <meyering@lucent.com>
78418
78419         * lib/regex.h (__restrict_arr): Update from libc.
78420
78421         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
78422         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
78423         (STREQ): Define.
78424
78425 2001-12-14  Jim Meyering  <meyering@lucent.com>
78426
78427         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
78428         Suggestion from Bruno Haible.
78429
78430 2001-12-10  Jim Meyering  <meyering@lucent.com>
78431
78432         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
78433         xrealloc, Instead, include "xalloc.h".
78434         (initbuffer): Don't cast xmalloc return value to char*.
78435         (readline): Reword comment.
78436         Don't cast xrealloc return value to char*
78437         Return NULL, not 0.
78438
78439 2001-12-09  Jim Meyering  <meyering@lucent.com>
78440
78441         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
78442         about `signed and unsigned type in conditional expression'.
78443         * lib/posixtm.c (posix_time_parse): Likewise.
78444
78445         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
78446
78447         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
78448         to avoid a pedantic warning.
78449
78450         * lib/getstr.c: Don't include assert.h.
78451         (getstr): Remove warning-evoking assertions.
78452         Return -1 if offset parameter is out of bounds.
78453         Change the type of a local from int to size_t.
78454
78455         * lib/strftime.c (my_strftime_localtime_r): Include this function
78456         definition in the `#if ! HAVE_TM_GMTOFF' block.
78457
78458         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
78459         Include xalloc.h instead.
78460
78461 2001-12-02  Jim Meyering  <meyering@lucent.com>
78462
78463         * lib/tempname.c: Don't declare getenv, thus reverting the change of
78464         2001-11-18.  It's no longer necessary, now that stdlib.h is always
78465         included.
78466
78467         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
78468         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
78469
78470 2001-11-30  Akim Demaille  <akim@epita.fr>
78471
78472         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
78473         before being defined.
78474
78475 2001-11-27  Paul Eggert  <eggert@twinsun.com>
78476
78477         * lib/quotearg.h (quotearg_n, quotearg_n_style):
78478         First arg is int, not unsigned.
78479         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
78480         (SIZE_MAX, UINT_MAX): New macros.
78481         (quotearg_n_options): Abort if N is negative.
78482         Avoid overflow check on hosts where size_t is 64 bits and int
78483         is 32 bits, as overflow is impossible there.
78484         Fix off-by-one typo that caused unnecessary reallocation.
78485
78486 2001-11-27  Jim Meyering  <meyering@lucent.com>
78487
78488         * lib/tempname.c: Merge with version from libc.
78489         * lib/regex.c: Likewise.
78490
78491         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
78492         systems for which STDC_HEADERS is 0, it was not included, resulting in
78493         a warning about an integer-to-pointer conversion problem with getenv.
78494         Reported by Volker Borchert.
78495
78496 2001-11-26  Jim Meyering  <meyering@lucent.com>
78497
78498         * lib/gtod.h: Remove file.
78499         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
78500         * lib/gettimeofday.c: Don't include gtod.h.
78501         (GTOD_init): Remove function.
78502         (rpl_gettimeofday): Do its job here instead, rather than aborting.
78503         Suggestion from Volker Borchert.
78504
78505 2001-11-23  Jim Meyering  <meyering@lucent.com>
78506
78507         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
78508         it.
78509         * lib/hash.c (struct hash_table): Define it here instead.
78510
78511 2001-11-22  Jim Meyering  <meyering@lucent.com>
78512
78513         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
78514
78515 2001-11-20  Jim Meyering  <meyering@lucent.com>
78516
78517         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
78518         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
78519
78520 2001-11-19  Jim Meyering  <meyering@lucent.com>
78521
78522         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
78523         directory.  Use "conftestXXXXXX" as the template.
78524         Suggestion from Paul Eggert.
78525
78526         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
78527         immediately, so the test doesn't mistakenly hit the max-open-files
78528         limit.
78529
78530 2001-11-18  Paul Eggert  <eggert@twinsun.com>
78531
78532         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
78533         (TEMPORARIES): New macro.
78534         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
78535         removes an artificial limitation (e.g. HP-UX 10.20, where
78536         TMP_MAX is 17576).
78537
78538 2001-11-18  Jim Meyering  <meyering@lucent.com>
78539
78540         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
78541
78542 2001-11-18  Jim Meyering  <meyering@lucent.com>
78543
78544         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
78545         on SunOS 4.
78546
78547         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
78548         files will be created before anything else.
78549
78550 2001-11-17  Paul Eggert  <eggert@twinsun.com>
78551
78552         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
78553         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
78554
78555 2001-11-17  Jim Meyering  <meyering@lucent.com>
78556
78557         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
78558         Prompted by a report from Bob Proulx.
78559
78560         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
78561         Instead, require UTILS_FUNC_MKSTEMP.
78562
78563 2001-11-17  Jim Meyering  <meyering@lucent.com>
78564
78565         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
78566         Now, that's done as part of AC_FUNC_STRTOD.
78567
78568 2001-11-17  Jim Meyering  <meyering@lucent.com>
78569
78570         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
78571         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
78572         rather than group writable.  Patch by Juan F. Codagnone.
78573
78574         * lib/readtokens.c: Remove explicit declarations of xmalloc and
78575         xrealloc, Instead, include "xalloc.h".
78576
78577         * lib/mountlist.c: Include unlocked-io.h after all system headers.
78578         Remove explicit declarations of xmalloc, xrealloc,
78579         and xstrdup.  Instead, include "xalloc.h".
78580
78581         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
78582         unlocked-io.h.
78583         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
78584         Likewise.
78585         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
78586
78587         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
78588         Reported by Padraig Brady.
78589
78590         * lib/mkstemp.c: #undef mkstemp.
78591         Include config.h.
78592         (rpl_mkstemp): Rename from mkstemp.
78593         Protoize.
78594
78595 2001-11-16  Jim Meyering  <meyering@lucent.com>
78596
78597         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
78598         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
78599         determine the amount of total physical memory, use pstat_getstatic.
78600         HPUX-11 doesn't define _SC_PHYS_PAGES.
78601         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
78602         If sysconf couldn't be used to determine the amount of available
78603         physical memory, use both pstat_getstatic and pstat_getdynamic.
78604         Based on a patch from Bob Proulx.
78605
78606 2001-11-10  Jim Meyering  <meyering@lucent.com>
78607
78608         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
78609         (jm_PREREQ): Use it.
78610
78611 2001-11-09  Jim Meyering  <meyering@lucent.com>
78612
78613         * m4/jm-macros.m4: Require autoconf-2.52f.
78614         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
78615         Use these AC_-prefixed names, not the AM_-prefixed ones.
78616
78617         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
78618
78619 2001-11-05  Jim Meyering  <meyering@lucent.com>
78620
78621         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
78622
78623 2001-11-04  Jim Meyering  <meyering@lucent.com>
78624
78625         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
78626         $DEFS.
78627
78628 2001-11-03  Jim Meyering  <meyering@lucent.com>
78629
78630         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
78631         of AC_DEFUN.
78632
78633         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
78634         know the name of the variable in the macro definition.
78635
78636 2001-11-03  Jim Meyering  <meyering@lucent.com>
78637
78638         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
78639         in argmatch_to_argument call.
78640
78641         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
78642         argument.
78643
78644         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
78645         e.g., a fault due to an attempt to free a NULL pointer.
78646
78647 2001-11-01  Jim Meyering  <meyering@lucent.com>
78648
78649         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
78650         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
78651
78652 2001-11-01  Jim Meyering  <meyering@lucent.com>
78653
78654         * lib/dirfd.c, lib/dirfd.h: New files.
78655         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
78656
78657         * lib/hash.c (hash_print) [TESTING]: Clean up.
78658
78659 2001-10-22  Paul Eggert  <eggert@twinsun.com>
78660
78661         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
78662         to avoid a warning if -Wall.
78663
78664 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
78665
78666         * README: New file
78667         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
78668         (per RMS's instructions, this is now the canonical source)
78669         * lgpl/, gpl/: New directories.
78670
78671 2001-10-21  Paul Eggert  <eggert@twinsun.com>
78672
78673         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
78674
78675 2001-10-21  Jim Meyering  <meyering@lucent.com>
78676
78677         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
78678         this code would end up calling gettext even in packages built
78679         with --disable-nls.
78680         * lib/getopt.c (_): Likewise.
78681         * lib/regex.c (_): Likewise.
78682
78683 2001-10-20  Paul Eggert  <eggert@twinsun.com>
78684
78685         * m4/error.m4 (jm_PREREQ_ERROR):
78686         Do not invoke AC_CHECK_FUNCS with strerror_r, as
78687         AC_FUNC_STRERROR_R does that.
78688         Check for strerror declaration.
78689
78690         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
78691         are supposed to have them these days.
78692         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
78693         Merge changes from latest Autoconf CVS.
78694         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
78695         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
78696         POSIX decided to standardize on the int flavor of strerror_r.
78697
78698 2001-10-20  Paul Eggert  <eggert@twinsun.com>
78699
78700         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
78701         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
78702         Use strerror_r that is only a macro, even if it is not a function.
78703         (strerror): Check for HAVE_DECL_STRERROR before declaring.
78704         (private_strerror): Use prototypes, not old-style function definition.
78705         (print_errno_message): New function.
78706         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
78707         char*-flavored one.
78708         (error_tail, error, error_at_line): Use it.
78709
78710 2001-10-11  Jim Meyering  <meyering@lucent.com>
78711
78712         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
78713         and quote_n (1, ... to avoid clobbering a buffer.
78714
78715 2001-10-05  Jim Meyering  <meyering@lucent.com>
78716
78717         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
78718         hash-pjw.h.
78719         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
78720         * lib/hash-pjw.h: New file.
78721
78722 2001-09-30  Jim Meyering  <meyering@lucent.com>
78723
78724         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
78725         `struct fsstat' has the `f_fstypename' member.
78726         Use that to define FS_TYPE, which is now used to make
78727         the getfsstat link test tighter.
78728
78729 2001-09-30  Jim Meyering  <meyering@lucent.com>
78730
78731         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
78732         Include <sys/ucred.h>, for Apple Darwin.
78733         Include sys/mount.h and sys/fs_types.h only if available.
78734         (FS_TYPE): Define.
78735         (read_filesystem_list): Use FS_TYPE.
78736
78737 2001-09-29  Paul Eggert  <eggert@twinsun.com>
78738
78739         * lib/exclude.c (excluded_filename): 0 -> false, since it's
78740         a boolean context.
78741
78742 2001-09-29  Jim Meyering  <meyering@lucent.com>
78743
78744         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
78745         [one-argument getmntent function]): Include stdio.h before mntent.h.
78746         SunOS 4.1.x needs it for the declaration of `FILE'.
78747         Patch by Volker Borchert.
78748
78749         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
78750         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
78751         sys/fs_types.h, and make the link-test for getfsstat guard #include
78752         directives with appropriate #if HAVE_*_H tests so that we can
78753         detect getfsstat on Apple Darwin1.3.7 systems.
78754         Reported by Nelson Beebe.
78755         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
78756
78757 2001-09-28  Paul Eggert  <eggert@twinsun.com>
78758
78759         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
78760         #defines strtoimax.  Also treat the other strto* functions
78761         like strtoimax.
78762
78763         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
78764         Check for strtoul and strtoumax,
78765         as those declarations are made even in the signed case.
78766         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
78767         Likewise, for strtol and strtoimax.
78768
78769 2001-09-28  Paul Eggert  <eggert@twinsun.com>
78770
78771         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
78772         #defines strtoimax.  Also treat the other strto* functions
78773         like strtoimax.
78774
78775         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
78776         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
78777         (strtoimax, strtoumax): Do not declare if already defined as a macro.
78778
78779 2001-09-26  Jim Meyering  <meyering@lucent.com>
78780
78781         Most macros in unlocked-io.h had the wrong number of arguments.
78782         * lib/gen-uio: New script.
78783         (USE_UNLOCKED_IO): Define to 1 if not already defined.
78784         * lib/unlocked-io.hin: Remove file.
78785         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
78786         rather than trying to embed it here.
78787         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
78788         Reported by Padraig Brady.
78789
78790 2001-09-25  Volker Borchert  <bt@teknon.de>
78791
78792         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
78793         `result'.
78794
78795 2001-09-24  Jim Meyering  <meyering@lucent.com>
78796
78797         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
78798
78799 2001-09-23  Jim Meyering  <meyering@lucent.com>
78800
78801         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
78802         instead of the mere test for existence of mntent.h.  The latter
78803         would get a false-positive on AIX 3.4 systems.
78804         In the outer getmntent if-block, don't die if neither of the getmntent
78805         tests succeeds.  Instead, just fall through and continue with the
78806         remaining tests.
78807
78808 2001-09-23  Jim Meyering  <meyering@lucent.com>
78809
78810         * lib/mountlist.c: Remove useless parentheses in #if directives.
78811         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
78812         the deprecated MOUNTED symbol is no longer defined in mntent.h.
78813
78814 2001-09-22  Jim Meyering  <meyering@lucent.com>
78815
78816         * m4/gettext.m4: New file.  From gettext.
78817         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
78818         * m4/progtest.m4: Likewise
78819         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
78820         * m4/glibc21.m4: Likewise.
78821
78822         * m4/libintl.m4: Remove.  No longer used.
78823
78824 2001-09-22  Jim Meyering  <meyering@lucent.com>
78825
78826         * lib/localcharset.c: Update from latest gettext.
78827         * lib/config.charset: Likewise.
78828
78829 2001-09-20  Jim Meyering  <meyering@lucent.com>
78830
78831         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
78832         strtoimax.
78833         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
78834         strtoumax.
78835
78836 2001-09-20  Jim Meyering  <meyering@lucent.com>
78837
78838         * lib/xstrtol.c (strtoimax): Guard declaration with
78839         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
78840         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
78841         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
78842         (strtoumax): Likewise, for completeness (it wasn't necessary).
78843
78844 2001-09-17  Paul Eggert  <eggert@twinsun.com>
78845
78846         * lib/strtoimax.c (HAVE_LONG_LONG):
78847         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
78848         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
78849         to work around bug in IBM C compiler.
78850
78851 2001-09-17  Jim Meyering  <meyering@lucent.com>
78852
78853         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
78854         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
78855         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
78856         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
78857         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
78858         whenever the right hand side need not be expanded by the shell.
78859
78860 2001-09-16  Paul Eggert  <eggert@twinsun.com>
78861
78862         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
78863         library.  It's not correct, as some older glibcs are buggy.
78864         fnmatch wasn't fixed until glibc 2.2.
78865
78866         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
78867         special shell magic here.
78868
78869 2001-09-16  Jim Meyering  <meyering@lucent.com>
78870
78871         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
78872         * m4/jm-macros.m4: Require it.
78873
78874 2001-09-16  Jim Meyering  <meyering@lucent.com>
78875
78876         * lib/mkdir.c: New file.
78877
78878 2001-09-15  Jim Meyering  <meyering@lucent.com>
78879
78880         * m4/jm-macros.m4: Check for help2man.
78881
78882 2001-09-11  Jim Meyering  <meyering@lucent.com>
78883
78884         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
78885         The body, by Paul Eggert, was moved here from configure.in.
78886         * m4/jm-macros.m4: Require UTILS_HOST_OS.
78887
78888 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78889
78890         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
78891         (jm_PREREQ): Use it.
78892
78893 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78894
78895         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
78896         Use ssize_t, not int, to store result of readlink.
78897         Check for ssize_t overflow as well as size_t overflow,
78898         as POSIX says the result of readlink is implementation-defined
78899         when ssize_t overflows.
78900         Remove unnecessary cast to char*.
78901         Use free+malloc instead of realloc, as the storage doesn't need
78902         to be preserved and it's clearer and can be more efficient that way.
78903         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
78904         * lib/xreadlink.h (xreadlink): Update prototype.
78905
78906 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78907
78908         * lib/xgetcwd.c: Revert some of the previous change; intead,
78909         fix the HAVE_GETCWD_NULL code to behave more like the
78910         !HAVE_GETCWD_NULL code used to.
78911
78912         Include "xalloc.h".
78913         (xgetcwd): Do not return NULL when memory is exhausted; instead,
78914         invoke xalloc_die.
78915
78916 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78917
78918         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
78919         sys/param.h, as pathmax.h includes them.
78920
78921 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78922
78923         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
78924         (jm_PREREQ_XGETCWD): New macro.
78925
78926         * m4/getcwd.m4: New file.
78927
78928 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78929
78930         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
78931         like the HAVE_GETCWD_NULL code.
78932         Include pathmax.h if not HAVE_GETCWD.
78933         Do not include xalloc.h.
78934         (INITIAL_BUFFER_SIZE): New symbol.
78935         Do not use xmalloc / xrealloc, since the caller is responsible for
78936         handling errors.  Preserve errno around `free' during failure.
78937         Do not overrun buffer when using getwd.
78938
78939 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78940
78941         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
78942         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
78943         getcwd (NULL, 0).
78944
78945 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78946
78947         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
78948         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
78949         spotted by Jim Meyering.
78950
78951 2001-09-03  Jim Meyering  <meyering@lucent.com>
78952
78953         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
78954         failure.
78955
78956 2001-09-02  Jim Meyering  <meyering@lucent.com>
78957
78958         * lib/error.c: Update from GNU libc.
78959
78960 2001-09-01  Jim Meyering  <meyering@lucent.com>
78961
78962         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
78963         Used by df.
78964
78965 2001-09-01  Jim Meyering  <meyering@lucent.com>
78966
78967         * lib/xreadlink.c: New file.
78968         * lib/xreadlink.h: New file.
78969         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
78970         xreadlink.h.
78971
78972         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
78973         doesn't conflict with sparc Solaris 7's definition in
78974         /usr/include/sys/int_types.h.
78975
78976         * lib/exclude.c: Use `""', not `<>' to #include non-system header
78977         files.
78978         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
78979         and strncasecmp as r-values.  Unixware didn't have declarations.
78980
78981 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78982
78983         * lib/xstrtol.h: Add copyright notice.
78984         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
78985         LONGINT_INVALID_SUFFIX_CHAR.
78986
78987 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78988
78989         * lib/xstrtol.c (strtoimax): New decl.
78990
78991 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78992
78993         * lib/xgetcwd.c: Don't include pathmax.h.
78994         Include stdlib.h and unistd.h if available.
78995         Include xalloc.h.
78996         (xmalloc, xstrdup, free): Remove decls.
78997         (xgetcwd): Don't assume sizes fit in unsigned.
78998         Check for overflow when computing sizes.
78999         Simplify reallocation code.
79000
79001 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79002
79003         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
79004         a directory's st_size can have an arbitrary value, so the old
79005         usage could waste an arbitrary amount of memory.  All uses
79006         changed.
79007         * lib/savedir.h: Update prototype.
79008
79009 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79010
79011         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
79012
79013         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
79014         old strtoimax.c.
79015
79016         Also, make the following further changes to make this file's
79017         configuration more similar to that of strtol.c:
79018         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
79019         (strtoumax, uintmax_t, strtoull, strtol): Remove.
79020         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
79021         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
79022         changed to signed values.
79023
79024         And make the following changes as well:
79025         Fix copyright notice, as 1999 was missing.
79026         (verify): New macro.
79027         (strtoimax): Check sizes at compile-time, not run-time.
79028         Prefer strtol to strtoll if both work.
79029         (main): Remove; it was not that useful and was a pain to maintain.
79030
79031         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
79032
79033 2001-08-31  Jim Meyering  <meyering@lucent.com>
79034
79035         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
79036         Use an initial, malloc'd, buffer of length 128 rather than
79037         a statically allocated one of length 1024.
79038
79039 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79040
79041         Simplify code, partly by assuming autoconf 2.52 semantics.
79042
79043         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
79044
79045         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
79046         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
79047         All uses removed.
79048         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
79049         Move AC_REQUIRE to next-to-top level, to avoid confusion.
79050         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
79051         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
79052         jm_AC_HEADER_INTTYPES_H.
79053         * m4/jm-macros.m4 (jm_MACROS): Likewise.
79054
79055         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
79056
79057         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
79058         Quote first arg of AC_DEFUN.
79059         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
79060         since they are needed to parse the include file even if we need
79061         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
79062         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
79063         but with opposite signedness.
79064
79065 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79066
79067         Merge 'exclude' changes from tar 1.13.22.
79068         This fixes one or two unlikely storage allocation overflow bugs,
79069         but doesn't change user-visible behavior otherwise.
79070
79071 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79072
79073         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
79074         (jm_PREREQ_EXCLUDE): New macro.
79075
79076 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79077
79078         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
79079         tm to be declared.
79080
79081 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79082
79083         * lib/hash.c: Remove '2001' from copyright notice.
79084
79085 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79086
79087         * lib/full-write.h: New file.
79088         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
79089         * lib/full-write.c: Correct credits, as cccp.c no longer
79090         exists and anyway it was so heavily changed from the old cccp
79091         code as to be unrecognizable.  Include full-write.h.
79092         (full_write): Return size_t, with short writes meaning failure.
79093         All callers changed.  This fixes a bug with large buffers
79094         on 64-bit hosts.
79095         * lib/utime.c: Include full-write.h.
79096
79097 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79098
79099         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
79100         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
79101         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
79102         Include if available.
79103         (<xalloc.h>): Include
79104         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
79105         (verify): New macro.  Use it to verify that EXCLUDE macros do not
79106         collide with FNM macros.
79107         (struct patopts): New struct.
79108         (struct exclude): Use it, as exclude patterns now come with options.
79109         (new_exclude): Support above changes.
79110         (new_exclude, add_exclude_file):
79111         Initial size must now be a power of two to simplify overflow checking.
79112         (free_exclude, fnmatch_no_wildcards): New function.
79113         (excluded_filename): No longer requires options arg, as the options
79114         are determined by add_exclude.  Now returns bool, not int.
79115         (excluded_filename, add_exclude):
79116         Add support for the fancy new exclusion options.
79117         (add_exclude, add_exclude_file): Now takes int options arg.
79118         Check for arithmetic overflow when computing sizes.
79119         (add_exclude_file): xrealloc might modify errno, so don't
79120         realloc until after errno might be used.
79121
79122         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
79123         New macros.
79124         (free_exclude): New decl.
79125         (add_exclude, add_exclude_file): Now takes int options arg.
79126         (excluded_filename): No longer requires options arg, as the options
79127         are determined by add_exclude.  Now returns bool, not int.
79128
79129 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79130
79131         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
79132
79133 2001-08-27  Jim Meyering  <meyering@lucent.com>
79134
79135         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
79136
79137         * lib/version-etc.c (N_): Remove definition.
79138         Revert most of last change.
79139         Instead, simply don't mark the `Copyright...' string for translation.
79140         Based on advice from Paul Eggert.
79141
79142         * lib/strtoxmax.c: Tweak comment.
79143
79144 2001-08-26  Jim Meyering  <meyering@lucent.com>
79145
79146         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
79147
79148         * m4/xstrtoimax.m4: New file.
79149         * m4/xstrtoumax.m4: Add comments explaining why we
79150         AC_REPLACE_FUNCS(strtol).
79151
79152 2001-08-26  Jim Meyering  <meyering@lucent.com>
79153
79154         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
79155         of copyright with `%s' so translators don't get an untranslated
79156         message in 2002.
79157         (COPYRIGHT_YEAR): Define.
79158         (version_etc): Use fprintf rather than fputs.
79159         Suggestion from Ulrich Drepper.
79160
79161         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
79162
79163         * lib/strtoll.c: New file, from GNU libc.
79164         * lib/xstrtoimax.c: New file.
79165
79166         * lib/xstrtol.h: Add xstrtoimax.
79167         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
79168         * lib/strtoimax.c: New file.  Likewise, but first define
79169         STRTOUXMAX_SIGNED.
79170
79171         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
79172         ...
79173         * lib/strtoxmax.c: ... then renamed to this.
79174
79175 2001-08-18  Paul Eggert  <eggert@twinsun.com>
79176
79177         * m4/inttypes.m4: Add AC_PREREQ(2.13).
79178         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
79179         (jm_AC_TYPE_INTMAX_T): New macro.
79180         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
79181
79182         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
79183
79184         * m4/longlong.m4: Renamed from ulonglong.m4.
79185         * m4/inttypes.m4: Renamed from inttypes_h.m4.
79186         * m4/uintmax_t.m4: Removed.
79187
79188 2001-08-13  Paul Eggert  <eggert@twinsun.com>
79189
79190         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
79191         Port to Solaris 8, where 'sed' requires a space after the 'r'
79192         command, and where sh dislikes "$/".  Clean up the spacing a bit.
79193         Redirect output to $tmp just once.
79194
79195 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
79196
79197         * lib/addext.c (<errno.h>): Include.
79198         (errno): Declare if not defined.
79199         (addext): Work correctly when pathconf returns -1 and leaves
79200         errno alone because there is no limit.  Also, work even if
79201         pathconf returns a value greater than SIZE_MAX.
79202
79203 2001-08-12  Jim Meyering  <meyering@lucent.com>
79204
79205         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
79206         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
79207         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
79208         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
79209         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
79210         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
79211         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
79212         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
79213         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
79214         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
79215         utime.m4, utimes.m4, xstrtoumax.m4:
79216         Quote the first argument in each use of AC_DEFUN.
79217
79218 2001-08-12  Jim Meyering  <meyering@lucent.com>
79219
79220         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
79221         Simply `return getcwd (NULL, 0);'.
79222         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
79223         Use 1300 as initial value for length, not PATH_MAX.
79224
79225         * lib/pathmax.h: Clean up cpp syntax.
79226
79227 2001-08-12  Jim Meyering  <meyering@lucent.com>
79228
79229         * lib/gettimeofday.c: New file.
79230         * lib/gtod.h: New file.
79231         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
79232
79233 2001-08-05  Jim Meyering  <meyering@lucent.com>
79234
79235         * m4/jm-macros.m4: Require autoconf-2.52.
79236
79237 2001-08-04  Jim Meyering  <meyering@lucent.com>
79238
79239         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
79240         stmt, to get in sync with glibc.
79241
79242 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79243
79244         The following changes are from gettext 0.10.39 as maintained by
79245         Bruno Haible.
79246
79247         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
79248         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
79249         with inverted sense.  All uses changed.
79250
79251         * lib/mbswidth.c: Don't include <limits.h>.
79252         Include <stdlib.h> and <string.h> unconditionally.
79253         (iswcntrl, mbsinit, ISCNTRL): New macros.
79254         (mbsnwidth): Use K&R style function declarations.
79255         Don't bother checking for MB_LEN_MAX == 1, since the compiler
79256         can optimize it when MB_CUR_MAX == 1.
79257         The width of control characters is zero, not 1.
79258
79259 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79260
79261         The following changes are from gettext 0.10.39 as maintained by
79262         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
79263
79264         * m4/codeset.m4: Upgrade to serial AM1.
79265         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
79266         all uses changed.  Quote first arg of AC_DEFUN.
79267         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
79268
79269         * m4/iconv.m4: Upgrade to serial AM2.
79270         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
79271         Add --with-libconv-prefix.
79272         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
79273         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
79274         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
79275         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
79276         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
79277
79278         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
79279         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
79280         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
79281         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
79282         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
79283         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
79284         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
79285         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
79286         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79287
79288         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
79289         string.h any more.
79290
79291         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
79292         not the default value.
79293
79294         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
79295         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
79296         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
79297         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
79298         Also check for iswcntrl, used for wcwidth fallback.
79299         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
79300         to Autoconf 2.13.
79301
79302 2001-08-03  Jim Meyering  <meyering@lucent.com>
79303
79304         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
79305         as it was in the original.  Reported by Paul Eggert.
79306
79307 2001-07-16  Jim Meyering  <meyering@lucent.com>
79308
79309         * m4/gettimeofday.m4: New file.
79310         Prompted by a report from Bernhard Baehr.
79311
79312 2001-07-15  Jim Meyering  <meyering@lucent.com>
79313
79314         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
79315         stuff. Now it's in ../Makefile.cfg.
79316
79317 2001-07-15  Jim Meyering  <meyering@lucent.com>
79318
79319         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
79320         (BUILT_SOURCES): Add unlocked-io.h.
79321         (io_functions): Define.
79322         (unlocked-io.h): New rule.
79323         (DISTCLEANFILES): Add unlocked-io.h.
79324         (all-local): Depend on unlocked-io.h, to ensure it is created.
79325
79326         * lib/unlocked-io.hin: New file
79327
79328         * lib/regex.c: Update from glibc.
79329
79330 2001-07-05  Jim Meyering  <meyering@lucent.com>
79331
79332         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
79333         recommendation.
79334         (libfetish_a_SOURCES): Put all .h files here instead.
79335         Remove a thus-exposed (better checks in automake) duplicate and
79336         two unnecessary .h files.
79337
79338 2001-07-04  Jim Meyering  <meyering@lucent.com>
79339
79340         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
79341         that generates jm-glibc-io.m4 so that it doesn't trigger any make
79342         distcheck failure.
79343
79344 2001-07-02  Jim Meyering  <meyering@lucent.com>
79345
79346         The following changes were prompted by suggestions from Bruno Haible.
79347
79348         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
79349         is now generated.
79350         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
79351         definition of EXTRA_DIST.
79352         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
79353         ensure that the generated file is created/updated whenever the list
79354         of $(unlocked_functions) is changed.
79355         (jm-glibc-io.m4): New rule.
79356         (unlocked-io.h): New rule -- currently unused.
79357
79358 2001-06-24  Jim Meyering  <meyering@lucent.com>
79359
79360         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
79361         unmatched right bracket, rather than kludging it with an extra,
79362         falsely-matching quote in a comment.  Patch by Akim Demaille.
79363
79364 2001-06-11  Jim Meyering  <meyering@lucent.com>
79365
79366         * lib/regex.c: Update from GNU libc.
79367
79368 2001-05-27  Jim Meyering  <meyering@lucent.com>
79369
79370         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
79371         Check for ut_type in struct utmp.
79372
79373 2001-05-27  Jim Meyering  <meyering@lucent.com>
79374
79375         * lib/readutmp.h (UT_TYPE): Define.
79376
79377 2001-05-24  Jim Meyering  <meyering@lucent.com>
79378
79379         * lib/argmatch.c: Include "quote.h".
79380         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
79381         quote function.  Reported by Göran Uddeborg.
79382
79383 2001-05-22  Jim Meyering  <meyering@lucent.com>
79384
79385         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
79386         now that we use the package-supplied version unconditionally.
79387         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
79388
79389 2001-05-21  Jim Meyering  <meyering@lucent.com>
79390
79391         * m4/regex.m4: Change a couple backticks to single quotes to avoid
79392         shell syntax errors.
79393
79394 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79395
79396         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
79397
79398 2001-05-20  Paul Eggert  <eggert@twinsun.com>
79399
79400         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
79401         Don't bother to check library strftime, since
79402         we'll be using our own my_strftime function anyway.
79403         Define my_strftime instead of strftime.
79404
79405 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
79406
79407         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
79408         which is not yet declared.
79409
79410 2001-05-15  Jim Meyering  <meyering@lucent.com>
79411
79412         * m4/regex.m4: Use proper quoting so brackets appear in the test
79413         program.
79414         Reported by, and with help from, Bruno Haible.
79415
79416 2001-05-13  Jim Meyering  <meyering@lucent.com>
79417
79418         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
79419         undefined.
79420
79421 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79422
79423         dirname code cleanup.  base_name now behaves more compatibly
79424         with POSIX basename when given file names that have trailing
79425         slashes, and similarly for dir_name.  Add new primitives
79426         base_len and dir_len.  Put the directory-name-related decls
79427         into dirname.h.
79428
79429         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
79430         * lib/backupfile.c (base_name): Likewise.
79431         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
79432         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
79433         * lib/makepath.c (strip_trailing_slashes): Likewise.
79434         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
79435         ISSLASH): Likewise.
79436         * lib/rename.c (strip_trailing_slashes): Likewise.
79437         * lib/same.c (base_name): Likewise.
79438         * lib/stripslash.c (ISSLASH): Likewise.
79439
79440         * lib/addext.c: Include <dirname.h> after size_t is defined.
79441         * lib/backupfile.c: Likewise.
79442
79443         * lib/addext.c (addext): Use base_len to trim redundant
79444         trailing slashes instead of doing it ourselves.
79445         But do not trim the last slash if it is not redundant.
79446
79447         * lib/backupfile.c (find_backup_file_name,
79448         max_backup_version): Use base_len instead of rolling it ourselves.
79449         Handle the case of "" and (on DOS) "C:" correctly.
79450
79451         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
79452         needed. Include <string.h>, <dirname.h>.
79453         (base_name): Allow file names ending in slashes, other than names
79454         that are all slashes.  In this case, return the basename followed
79455         by the slashes.  This is more general, and can be used in places
79456         where the original base_name purposely had an assertion failure.
79457         (base_len): New function.
79458
79459         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
79460         Do not include <assert.h>; no longer needed.
79461         Include xalloc.h.
79462         (memrchr): Remove decl.
79463         (dir_name_r): Remove.
79464         (dir_len): Renamed from dirlen.  All callers changed.
79465         Rewrite in terms of base_name, for simplicity and consistency.
79466         (dir_name): Never return NULL.  All callers changed.
79467         Do not include <stdlib.h> in test program; no longer needed.
79468         return 0; is fine for test program.
79469
79470         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
79471         New macros.
79472         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
79473
79474         * lib/path-concat.c (path_concat): Use base_len to compute
79475         base length, not strlen; this means we cannot rely on memcpy
79476         to null-terminate.
79477
79478         * lib/same.c (STREQ): Remove.
79479         (same_name): Handle the case where the basename ends in trailing '/'.
79480
79481         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
79482         a slash was stripped.  Do not strip the last slash after a
79483         file system prefix.
79484
79485 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79486
79487         * lib/Makefile.am (libfetish_a_SOURCES):
79488         Add strftime.c, since we now compile it on all hosts.
79489
79490         * lib/strftime.c (my_strftime):
79491         Define to nstrftime if emacs, but only if my_strftime is not defined.
79492         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
79493         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
79494         Add one more extra argument: a nanoseconds value.
79495         All uses changed.
79496         (ns): New macro.
79497         (my_strftime function): Add %N format.
79498         (emacs_strftimeu): Renamed from emacs_strftime,
79499         with extra ut argument.
79500
79501 2001-05-09  Paul Eggert  <eggert@twinsun.com>
79502
79503         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
79504
79505 2001-04-21  Jim Meyering  <meyering@lucent.com>
79506
79507         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
79508         doesn't interfere.
79509
79510 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79511
79512         * m4/ftruncate.m4: Check for chsize.
79513         Link with ftruncate.o unconditionally if ftruncate is missing.
79514         This was required when cross-compiling to i586-mingw32msvc.
79515
79516 2001-04-08  Jim Meyering  <meyering@lucent.com>
79517
79518         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
79519         recomputed; that's necessary when the offset spans a DST transition.
79520         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
79521
79522 2001-04-02  Jim Meyering  <meyering@lucent.com>
79523
79524         * lib/regex.h, regex.c: Update from GNU libc.
79525
79526 2001-03-24  Jim Meyering  <meyering@lucent.com>
79527
79528         * m4/jm-macros.m4: Require autoconf-2.49d.
79529
79530 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
79531
79532         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
79533
79534 2001-03-19  Paul Eggert  <eggert@twinsun.com>
79535
79536         * lib/version-etc.c (version_etc_copyright): Update to 2001.
79537
79538 2001-03-17  Jim Meyering  <meyering@lucent.com>
79539
79540         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
79541         now that the version in autoconf is equivalent.
79542         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
79543
79544         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
79545         Suggestion from Akim Demaille.
79546
79547         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
79548         (jm_PREREQ_TEMPNAME): New function.
79549
79550 2001-03-16  Paul Eggert  <eggert@twinsun.com>
79551
79552         * lib/tempname.c (uint64_t): Define to uintmax_t if
79553         not defined, and if UINT64_MAX is not defined.
79554         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
79555         Reported by John David Anglin.
79556
79557 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
79558
79559         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
79560         resolve alias if codeset is empty.
79561         * lib/config.charset (BeOS): Use wildcard syntax.
79562
79563 2001-03-13  Jim Meyering  <meyering@lucent.com>
79564
79565         * lib/path-concat.c (path_concat)
79566         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
79567         concatenating e.g., `C:' and `foo'.
79568         From Bruno Haible.
79569
79570 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
79571
79572         * lib/localcharset.c (locale_charset): Don't use
79573         setlocale(LC_CTYPE,NULL). Don't return NULL.
79574         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
79575
79576 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
79577
79578         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
79579         support for DOS/DJGPP.
79580
79581 2001-03-01  Paul Eggert  <eggert@twinsun.com>
79582
79583         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
79584         lacks mkstemp.  Compile our own tempname.c if we compile our own
79585         mkstemp.c, as mkstemp relies on tempname.
79586
79587 2001-03-01  Jim Meyering  <meyering@lucent.com>
79588
79589         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
79590         AH_VERBATIM really does output its argument verbatim.
79591
79592 2001-02-28  Paul Eggert  <eggert@twinsun.com>
79593
79594         * lib/Makefile.am (libfetish_a_SOURCES):
79595         Add dup-safer.c, fopen-safer.c.
79596         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
79597
79598         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
79599         * lib/unistd-safer.h: New files.
79600
79601 2001-02-25  Paul Eggert  <eggert@twinsun.com>
79602
79603         The mkstemp replacement is taken from glibc 2.2.2, with some
79604         portability fixes for use outside glibc, as follows:
79605
79606         * lib/tempname.c (struct_stat64): New macro.
79607         (direxists, __gen_tempname): Use it.
79608         This avoids a portability problem with Solaris 8.
79609
79610         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
79611         (<stddef.h>, <stdint.h>, <string.h>):
79612         Include only if STDC_HEADERS || _LIBC.
79613         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
79614         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
79615         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
79616         (__set_errno): Define this macro if <errno.h> doesn't.
79617         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
79618         Define these macros if <stdio.h> doesn't.
79619         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
79620         Define these macros if <sys/stat.h>
79621         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
79622         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
79623         __xstat64): Define if not _LIBC.
79624         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
79625         (__gen_tempname): Invoke gettimeofday only if
79626         HAVE_GETTIMEOFDAY || _LIBC;
79627         otherwise, fall back on plain "time".
79628         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
79629
79630         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
79631
79632         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
79633
79634 2001-02-18  Paul Eggert  <eggert@twinsun.com>
79635
79636         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
79637
79638 2001-02-17  Paul Eggert  <eggert@twinsun.com>
79639
79640         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
79641         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
79642         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
79643         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
79644
79645 2001-02-17  Paul Eggert  <eggert@twinsun.com>
79646
79647         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
79648         Remove workaround macros for hosts that have mbrtowc but not
79649         mbstate_t, as we now insist on proper declarations for both
79650         before using mbrtowc.
79651
79652 2001-02-17  Jim Meyering  <meyering@lucent.com>
79653
79654         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
79655         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
79656         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
79657         UnixWare 7.1.1.
79658
79659         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
79660         rather than AC_CACHE_VAL.
79661
79662 2001-02-17  Jim Meyering  <meyering@lucent.com>
79663
79664         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
79665         around included file name.
79666
79667         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
79668
79669         * lib/strftime.c: Update from GNU libc (the only changes were to
79670         comments).
79671
79672 2001-02-17  Jim Meyering  <meyering@lucent.com>
79673
79674         * lib/regex.c: Update from libc.
79675
79676 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
79677
79678         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
79679         clash.
79680
79681 2001-02-16  Paul Eggert  <eggert@twinsun.com>
79682
79683         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
79684         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
79685         Reported by Mark Hounschell via Paul Eggert.
79686
79687 2001-02-07  Jim Meyering  <meyering@lucent.com>
79688
79689         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
79690
79691 2001-02-05  Jim Meyering  <meyering@lucent.com>
79692
79693         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
79694         it includes the patch required for `large file' support with at least
79695         HP-UX's 10.20 /bin/cc.
79696
79697 2001-02-03  Jim Meyering  <meyering@lucent.com>
79698
79699         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
79700         AS_IF, now that it works once again (mysteriously).
79701         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
79702
79703 2001-01-30  Jim Meyering  <meyering@lucent.com>
79704
79705         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
79706         * m4/chown.m4: Rename conftestchown to conftest.chown.
79707         * m4/rename.m4: s/conftestdir/conftest.d1/ and
79708         s/conftestdir2/conftest.d2/.
79709         * m4/utimes.m4: s/conftestdata/conftest.data/
79710         Inspired by Pavel Roskin's change in autoconf.
79711
79712 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
79713
79714         * lib/config.charset: Update for FreeBSD 4.2.
79715
79716 2001-01-27  Jim Meyering  <meyering@lucent.com>
79717
79718         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
79719         a use of AS_IF.
79720         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
79721
79722 2001-01-26  Jim Meyering  <meyering@lucent.com>
79723
79724         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
79725         quotearg.c includes it.
79726
79727 2001-01-26  Jim Meyering  <meyering@lucent.com>
79728
79729         * lib/quotearg.c: Include stddef.h.
79730         * lib/quote.c: Include stddef.h.
79731         Reported by Axel Kittenberger.
79732
79733         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
79734         line in double quotes so that it evokes a better diagnostic.
79735         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
79736         Reported by Axel Kittenberger.
79737
79738 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
79739
79740         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
79741         as if it was a `charset'.
79742
79743 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
79744
79745         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
79746         has const.
79747
79748 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
79749
79750         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
79751         to avoid a warning.  Add back 'const' to inptr.
79752
79753 2001-01-20  Jim Meyering  <meyering@lucent.com>
79754
79755         Be sure that headers are checked before used in code compiled
79756         for the type checks.
79757         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
79758         In place of that, invoke jm_CHECK_ALL_TYPES.
79759         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
79760         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
79761         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
79762         The check for ssize_t was mistakenly run before the test for unistd.h.
79763
79764         The configure-time check for stdbool.h was missing.
79765         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
79766         (jm_PREREQ_HASH): New function.
79767
79768 2001-01-17  Jim Meyering  <meyering@lucent.com>
79769
79770         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
79771         for autoconf-2.49c.
79772         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
79773
79774 2001-01-16  Jim Meyering  <meyering@lucent.com>
79775
79776         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
79777         From Bruno Haible.
79778
79779 2001-01-14  Jim Meyering  <meyering@lucent.com>
79780
79781         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
79782         foo and bar.  Create conftestdir/ in the script, not in the C code.
79783         Remove directories in the script, not in the C code.
79784         Remove conftestdir{,2} before trying to create the directory.
79785         Make the entire configure script fail if the mkdir fails.
79786
79787 2001-01-14  Jim Meyering  <meyering@lucent.com>
79788
79789         * lib/rename.c: New file.  From Volker Borchert.
79790         Include stdlib.h, string.h or strings.h, and xalloc.h.
79791         Use strip_trailing_slashes rather than open-coding it.
79792
79793 2001-01-03  Paul Eggert  <eggert@twinsun.com>
79794
79795         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
79796
79797 2001-01-03  Jim Meyering  <meyering@lucent.com>
79798
79799         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
79800         of local `inptr' to avoid warning with some system declarations of
79801         iconv.
79802
79803 2001-01-02  Volker Borchert  <bt@teknon.de>
79804
79805         * m4/rename.m4: New file.
79806         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
79807
79808 2001-01-01  Jim Meyering  <meyering@lucent.com>
79809
79810         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
79811         even on systems with utmpx.h.  It's necessary for the declaration of
79812         utmp's ut_user member.  Reported by Andreas Jaeger.
79813
79814         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
79815         available. They are required for the declarations of getgrgid and
79816         getpwuid resp.
79817         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
79818         Reported by Andreas Jaeger.
79819
79820 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
79821
79822         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
79823         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
79824         so `make install' also works in VPATH builds.
79825
79826 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
79827
79828         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
79829         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
79830         can be used in subdirectories.
79831
79832 2000-12-29  Paul Eggert  <eggert@twinsun.com>
79833
79834         * lib/modechange.c: Do not assume that mode_t uses the
79835         traditional octal encoding.  E.g. "chmod 1 FOO" should set
79836         the other-execute bit of FOO even if S_IXOTH != 1.
79837
79838         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
79839         WOTH, XOTH, ALLM): New macros.
79840         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
79841          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
79842         Use them.
79843         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
79844         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
79845         (mode_compile):
79846         No need to use uintmax_t; unsigned long is long enough.
79847         Don't bother to get suffix since we don't use it.
79848
79849 2000-12-26  Jim Meyering  <meyering@lucent.com>
79850
79851         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
79852         better with autoheader.
79853
79854 2000-12-24  Jim Meyering  <meyering@lucent.com>
79855
79856         * lib/hash.c (is_prime): Return explicit boolean values.
79857         (hash_get_first): Return NULL to appease Irix5.6's 89.
79858         Reported by Nelson Beebe.
79859
79860 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
79861
79862         * lib/localcharset.c (locale_charset): Add support for Win32.
79863
79864 2000-12-18  Paul Eggert  <eggert@twinsun.com>
79865
79866         * lib/physmem.h, lib/physmem.c: New files.
79867
79868         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
79869         (noinst_HEADERS): Add physmem.h.
79870
79871         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
79872         't' for compatibility with Solaris 8 sort.
79873
79874 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
79875
79876         * lib/config.charset: Add support for BeOS.
79877
79878 2000-12-17  Jim Meyering  <meyering@lucent.com>
79879
79880         * m4/dos.m4 (jm_AC_DOS): New file and macro.
79881         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
79882
79883 2000-12-16  Jim Meyering  <meyering@lucent.com>
79884
79885         This bug had a serious impact on chown: `chown N:M FILE' (for integer
79886         N and M) would have treated it like `chown N:N FILE'.
79887
79888         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
79889
79890 2000-12-16  Jim Meyering  <meyering@lucent.com>
79891
79892         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
79893         SHELLS_FILE to a file name that's useful on djgpp systems.
79894         Include stdlib.h.
79895         (ADDITIONAL_DEFAULT_SHELLS): Define.
79896         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
79897         Based mostly on a patch from Prashant TR.
79898
79899 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
79900
79901         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
79902         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
79903         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
79904
79905 2000-12-08  Andreas Schwab  <schwab@suse.de>
79906
79907         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
79908         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
79909
79910 2000-12-07  Jim Meyering  <meyering@lucent.com>
79911
79912         * lib/stripslash.c (ISSLASH): Define.
79913         (strip_trailing_slashes): Use ISSLASH rather than comparing against
79914         `/'.
79915         From Prashant TR.
79916
79917         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
79918         (dir_name_r): Declare this function as static.
79919         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
79920         manifest itself on a name containing a mix of slashes and
79921         backslashes.
79922         Make this function work with names starting with a DOS-style
79923         drive letter and colon prefix.
79924         (dir_name): Append `.' if necessary.
79925         Based mostly on patches from Prashant TR and Eli Zaretskii.
79926
79927         * lib/dirname.h (dir_name_r): Remove prototype.
79928
79929 2000-12-06  Paul Eggert  <eggert@twinsun.com>
79930
79931         * m4/off_t-format.m4: Remove this file.
79932         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
79933
79934 2000-12-06  Jim Meyering  <meyering@lucent.com>
79935
79936         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
79937         replacement strtoull, we may well need the replacement strtoul, too.
79938         Check for declarations of strtoul and strtoull.
79939         Check for strtol.  Mainly as a cue to cause automake to include
79940         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
79941         Check for limits.h -- strtol.c needs it.
79942
79943 2000-12-05  Jim Meyering  <meyering@lucent.com>
79944
79945         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
79946
79947 2000-12-04  Jim Meyering  <meyering@lucent.com>
79948
79949         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
79950         Also include memory.h, stdlib.h, unistd.h if appropriate.
79951         Reported by Andreas Jaeger (conflicting declaration of malloc).
79952
79953 2000-12-02  Jim Meyering  <meyering@lucent.com>
79954
79955         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
79956         * m4/jm-macros.m4 (jm_MACROS): require it.
79957
79958 2000-12-02  Jim Meyering  <meyering@lucent.com>
79959
79960         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
79961
79962 2000-12-01  Paul Eggert  <eggert@twinsun.com>
79963
79964         * lib/memrchr.c: Include <config.h> before any system include file.
79965
79966 2000-11-30  Jim Meyering  <meyering@lucent.com>
79967
79968         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
79969
79970 2000-11-30  Jim Meyering  <meyering@lucent.com>
79971
79972         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
79973
79974 2000-11-29  Paul Eggert  <eggert@twinsun.com>
79975
79976         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
79977
79978 2000-11-26  Jim Meyering  <meyering@lucent.com>
79979
79980         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
79981
79982 2000-11-22  Paul Eggert  <eggert@twinsun.com>
79983
79984         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
79985         size of (size_t) -1; it's not portable.
79986
79987 2000-11-17  Jim Meyering  <meyering@lucent.com>
79988
79989         * lib/strstr.c: Update from GNU libc.
79990
79991 2000-11-17  Akim Demaille  <akim@epita.fr>
79992
79993         * lib/obstack.h: Formatting changes.
79994         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
79995         prevent type checking.
79996         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
79997         cast the value to (void *): assigning a `foo *' to a `void *'
79998         variable is valid.
79999         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
80000
80001 2000-11-16  Jim Meyering  <meyering@lucent.com>
80002
80003         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
80004
80005 2000-11-11  Jim Meyering  <meyering@lucent.com>
80006
80007         * lib/error.c: Add a couple #includes, merging from GNU libc version.
80008
80009 2000-11-10  Jim Meyering  <meyering@lucent.com>
80010
80011         * lib/obstack.h: Update from GNU libc.
80012         * lib/obstack.c: Likewise.
80013
80014 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
80015
80016         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
80017
80018 2000-11-06  Paul Eggert  <eggert@twinsun.com>
80019
80020         * lib/getusershell.c (setusershell): Use rewind rather than
80021         fseek/fseeko, to avoid configuration hassles with fseeko.
80022         Don't bother opening SHELLS_FILE if shellstream is NULL;
80023         it's not necessary.
80024
80025 2000-11-05  Jim Meyering  <meyering@lucent.com>
80026
80027         * lib/makepath.h (make_dir): Declare.
80028         * lib/makepath.c (make_dir): Remove `static' attribute.
80029         Tweak a comment.
80030
80031 2000-11-04  Jim Meyering  <meyering@lucent.com>
80032
80033         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
80034
80035 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
80036
80037         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
80038         last one in a bucket, advance to the next bucket.
80039
80040 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
80041
80042         * lib/fnmatch.c: Do not comment out all the code if we are using
80043         the GNU C library, because in some cases we are replacing buggy
80044         code in the GNU C library itself.
80045
80046 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
80047
80048         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
80049         (regex_compile): Catch bogus \(\1\).
80050
80051 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80052
80053         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
80054         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
80055         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
80056
80057 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80058
80059         * lib/error.h, getline.h, modechange.h:
80060         Remove "2000" from Copyright line, as the file hasn't been
80061         changed this year other than in the copyright notice.
80062
80063         * lib/xalloc.h: Add "2000" to Copyright line, as this file
80064         was changed this year.
80065
80066 2000-10-29  Jim Meyering  <meyering@lucent.com>
80067
80068         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
80069         renaming.
80070         * m4/ls-mntd-fs.m4: Likewise
80071
80072 2000-10-29  Jim Meyering  <meyering@lucent.com>
80073
80074         * lib/xstat.in: Fix grammar in comment.
80075
80076 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
80077
80078         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
80079         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
80080         doesn't define __restrict_arr.
80081
80082 2000-10-28  Jim Meyering  <meyering@lucent.com>
80083
80084         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
80085         (jm_PREREQ_MEMCHR): New function.
80086
80087 2000-10-28  Jim Meyering  <meyering@lucent.com>
80088
80089         * lib/memchr.c: Update from libc.
80090         Adjust for portability:
80091         [HAVE_STDLIB_H]: Include stdlib.h.
80092         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
80093         Undef __memchr, too.
80094         [!weak_alias]: Define __memchr to memchr.
80095
80096         * lib/regex.c: Update from libc.
80097         * lib/regex.h: Likewise.
80098         * lib/getopt1.c: Likewise.
80099         * lib/memcmp.c: Likewise.
80100
80101         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
80102         Avoid using fseek, when possible -- it's broken by design.
80103         Patch by Ulrich Drepper.
80104
80105 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
80106
80107         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
80108         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
80109         Giving in to popular pressure to shut up the compiler with casts.
80110
80111 2000-10-26  Jim Meyering  <meyering@lucent.com>
80112
80113         * lib/strftime.c: Update from libc.
80114
80115 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
80116
80117         * regex.c: More `unsigned char' -> `re_char' changes.
80118         Also change several `int' into `re_wchar_t'.
80119         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
80120         (PUSH_FAILURE_POINTER): Don't cast any more.
80121         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
80122         We want GCC to complain, since this piece of code makes
80123         re_match non-reentrant, which *should* be fixed.
80124         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
80125         (EXTEND_BUFFER): Use RETALLOC.
80126         (SET_LIST_BIT): Don't cast.
80127         (re_wchar_t): New type.
80128         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
80129         that those two functions will always properly return.
80130         (IMMEDIATE_QUIT_CHECK): Cast to void.
80131         (analyse_first): Use recursion rather than an explicit stack.
80132         (re_compile_fastmap): Can't fail anymore.
80133         (re_search_2): Don't check re_compile_fastmap for failure.
80134         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
80135         Now also sets the new value (passed in a new argument).
80136         (re_match_2_internal): Use it.
80137         Also, use a new var `reg' of type size_t when looping through regs
80138         rather than reuse the inappropriate `mcnt'.
80139
80140 2000-10-25  Jim Meyering  <meyering@lucent.com>
80141
80142         * lib/obstack.c: Update from libc.
80143
80144 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
80145
80146         * regex.c (regex_compile): Change the way of handling a range from
80147         a char less than 256 to a char not less than 256.
80148
80149 2000-10-24  Andrew Innes  <andrewi@gnu.org>
80150
80151         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
80152         NT-Emacs only.
80153         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
80154         so that re_search functions only quit when callers expect them to.
80155
80156 2000-10-23  Jim Meyering  <meyering@lucent.com>
80157
80158         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
80159         wrong.  That set_locale call must not have any side effects.
80160         From Paul Eggert.
80161
80162 2000-10-22  Jim Meyering  <meyering@lucent.com>
80163
80164         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
80165         [CYCLIC]: Remove now-unused definition.
80166
80167         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
80168         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
80169         Suggestion from Ulrich Drepper.
80170
80171 2000-10-21  Jim Meyering  <meyering@lucent.com>
80172
80173         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
80174         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
80175         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
80176
80177 2000-10-21  Jim Meyering  <meyering@lucent.com>
80178
80179         * lib/dirname.c (memrchr): Declare if necessary.
80180         (dir_name): Remove the restriction that there be no
80181         trailing slashes.  Now, this code skips past them, effectively
80182         ignoring them.
80183         [TEST_DIRNAME] (main): New unit tests.
80184
80185         * lib/memrchr.c: New file from GNU libc.
80186         Undef __memrchr, too.
80187         [!weak_alias]: Define __memrchr to memrchr.
80188         Guard weak_alias use with `#ifdef weak_alias'.
80189
80190 2000-10-21  Jim Meyering  <meyering@lucent.com>
80191
80192         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
80193         (dir_name): Use dir_name_r.
80194         * lib/dirname.h (dir_name_r): Declare it.
80195
80196 2000-10-17  Jim Meyering  <meyering@lucent.com>
80197
80198         * lib/quote.h (PARAMS): Define and use.
80199         Reported by Akim Demaille.
80200
80201         * lib/getopt.c: Update from libc.
80202
80203 2000-10-16  Jim Meyering  <meyering@lucent.com>
80204
80205         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
80206         setlocale.
80207         From Jan Fedak.
80208
80209 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
80210
80211         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
80212
80213 2000-09-25  Jim Meyering  <meyering@lucent.com>
80214
80215         * lib/md5.h (rol): Define (from GnuPG).
80216
80217         * lib/sha.c: Give credit (GnuPG) where due.
80218         (M): Use rol rather than open-coding it.
80219         Add a FIXME comment.
80220
80221 2000-09-21  Jim Meyering  <meyering@lucent.com>
80222
80223         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
80224         Reported by Michael Stone.
80225
80226 2000-09-20  Jim Meyering  <meyering@lucent.com>
80227
80228         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
80229         (noinst_HEADERS): Add sha.h.
80230         Based on code from Scott G. Miller and from GnuPG.
80231
80232 2000-09-18  Jim Meyering  <meyering@lucent.com>
80233
80234         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
80235         LIBS. Otherwise, everyone ends up linking with -lelf for some
80236         configurations.
80237         Reported by Mike Stone.
80238
80239 2000-09-15  Jim Meyering  <meyering@lucent.com>
80240
80241         * lib/regex.c: Update from libc.
80242
80243 2000-09-10  Jim Meyering  <meyering@lucent.com>
80244
80245         * lib/getopt.c (_getopt_internal): Update from glibc.
80246
80247 2000-09-09  Jim Meyering  <meyering@lucent.com>
80248
80249         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
80250         think it should be used as a general replacement for isascii.
80251         * lib/fnmatch.c: Likewise.
80252         * lib/mbswidth.c: Likewise
80253         * lib/regex.c: Likewise.
80254
80255         Don't use atoi.
80256         * lib/userspec.c: Include sys/param.h and limits.h.
80257         Include xstrtol.h.
80258         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
80259         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
80260         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
80261         UID, GID.  Check range.
80262
80263 2000-09-06  Jim Meyering  <meyering@lucent.com>
80264
80265         * lib/getopt.c (_getopt_internal): Update from glibc.
80266
80267 2000-08-30  Jim Meyering  <meyering@lucent.com>
80268
80269         * lib/strftime.c: Merge in changes from GNU libc.
80270
80271 2000-08-26  Jim Meyering  <meyering@lucent.com>
80272
80273         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
80274         * m4/fpending.m4: New file.
80275
80276 2000-08-26  Jim Meyering  <meyering@lucent.com>
80277
80278         * lib/closeout.c: Include "__fpending.h".
80279         (close_stdout_status): Return right away if there's nothing to flush.
80280
80281         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
80282         * lib/__fpending.c: New file.
80283         * lib/__fpending.h: New file.
80284
80285 2000-08-20  Jim Meyering  <meyering@lucent.com>
80286
80287         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
80288         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
80289         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
80290
80291 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
80292
80293         Improve fileutils installation on systems where running
80294         programs (like install) can't be unlinked.
80295         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
80296         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
80297
80298 2000-08-07  Paul Eggert  <eggert@twinsun.com>
80299
80300         Standardize on "memory exhausted" instead of "Memory exhausted"
80301         or "virtual memory exhausted".
80302         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
80303         "virtual memory exhausted".
80304         * lib/same.c (same_name): Invoke xalloc_die instead of printing
80305         our own message.
80306         * lib/userspec.c (parse_user_spec): Likewise.
80307         * lib/bumpalloc.h: comment fix
80308         * lib/same.c, userspec.c: Include xalloc.h.
80309
80310         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
80311         not char *const and pointing to a constant array.
80312         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
80313         (xrealloc): Comment fix.
80314
80315         * lib/userspec.c (parse_user_spec):
80316         Don't translate a message until just before returning,
80317         to avoid unnecessary translation.
80318
80319 2000-08-07  Jim Meyering  <meyering@lucent.com>
80320
80321         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
80322         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
80323         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
80324         getgroups.c, gethostname.c, getopt.h, group-member.c,
80325         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
80326         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
80327         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
80328         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
80329         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
80330         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
80331         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
80332         yesno.c: Back out Copyright date changes for each file with no change
80333         this year.  This eases coordination with other programs using the same
80334         source code modules.  From Paul Eggert.
80335
80336 2000-08-06  Paul Eggert  <eggert@twinsun.com>
80337
80338         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
80339         not char, for compatibility with glibc 2.1.3 strftime.c.
80340
80341 2000-08-03  Greg McGary  <greg@mcgary.org>
80342
80343         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
80344         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
80345         (EXTEND_BUFFER): Use them.
80346
80347 2000-08-01  Jim Meyering  <meyering@lucent.com>
80348
80349         * lib/dirname.c (ISSLASH): Define.
80350         (BACKSLASH_IS_PATH_SEPARATOR): Define.
80351         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
80352         both `\' and `/' may be use as path separators.
80353         Based on a patch from Prashant TR.
80354
80355 2000-07-31  Paul Eggert  <eggert@twinsun.com>
80356
80357         * lib/quotearg.c (quotearg_n_options): Don't make the initial
80358         slot vector a constant, since it might get modified.
80359
80360 2000-07-31  Jim Meyering  <meyering@lucent.com>
80361
80362         * lib/xmalloc.c: Use `virtual memory exhausted', not
80363         `Memory exhausted'.
80364         * lib/obstack.c (print_and_abort): Likewise.
80365
80366 2000-07-30  Paul Eggert  <eggert@twinsun.com>
80367
80368         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
80369         buffer, so that the caller can always quote one small
80370         component of a "memory exhausted" message in slot 0.
80371         From a suggestion by Jim Meyering.
80372
80373 2000-07-30  Jim Meyering  <meyering@lucent.com>
80374
80375         * lib/makepath.c (make_path): Quote the other instance, too.
80376
80377         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
80378         (STATIC_BUF_SIZE): Define.
80379         (quotearg_n_options): Use only statically allocated storage when
80380         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
80381         than STATIC_BUF_SIZE.
80382
80383 2000-07-29  Jim Meyering  <meyering@lucent.com>
80384
80385         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
80386         * lib/dirname.c (dir_name): Likewise.
80387
80388         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
80389         `/'.
80390
80391         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
80392         (dir_name): Assert that there are no trailing slashes.
80393
80394 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
80395
80396         * lib/mbswidth.h (mbswidth): Add a flags argument.
80397         (mbswidth): New declaration.
80398         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
80399         * lib/mbswidth.c (mbswidth): Add a flags argument.
80400         (mbsnwidth): New function.
80401
80402 2000-07-24  Jim Meyering  <meyering@lucent.com>
80403
80404         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
80405
80406 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80407
80408         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
80409
80410 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80411
80412         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
80413         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
80414         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
80415         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
80416         invoke multibyte primitives.
80417
80418 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80419
80420         * lib/quotearg.c:
80421         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
80422         so that mbstate_t is always defined.
80423
80424         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
80425         be 1 in at least one GCC installation, and this configuration
80426         error is likely to be common.  Ignoring MB_LEN_MAX hurts
80427         performance on hosts that have mbrtowc but have only unibyte
80428         locales, but I assume these hosts are rare.
80429
80430 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80431
80432         * lib/mbswidth.c (_XOPEN_SOURCE):
80433         Don't define; this causes problems on Solaris 7.
80434         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
80435
80436 2000-07-23  Jim Meyering  <meyering@lucent.com>
80437
80438         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
80439         too: getgrgid, getpwuid, getuid.
80440
80441 2000-07-23  Jim Meyering  <meyering@lucent.com>
80442
80443         * lib/basename.c (base_name): Add an assertion.
80444
80445 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
80446
80447         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
80448         shadow its mbsinit function.
80449
80450 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80451
80452         * lib/mbswidth.h: New file.
80453         * lib/mbswidth.c: New file.
80454         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
80455         (noinst_HEADERS): Add mbswidth.h.
80456
80457 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80458
80459         * lib/config.charset: Add support for FreeBSD. Improve support for
80460         HP-UX and IRIX 6.
80461
80462 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
80463
80464         * m4/mbswidth.m4: New file.
80465         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
80466
80467 2000-07-15  Jim Meyering  <meyering@lucent.com>
80468
80469         * lib/makepath.c: Include quote.h.
80470         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
80471         corresponding argument in a `quote (...)' call.
80472         Give better diagnostics.
80473
80474         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
80475         (noinst_HEADERS): Add quote.h.
80476
80477         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
80478         from tar's src/misc.c.
80479         * lib/quote.h: New file.  Prototypes for same.
80480
80481 2000-07-14  Paul Eggert  <eggert@twinsun.com>
80482
80483         From a suggestion by Bruno Haible.
80484         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
80485         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
80486         to decide whether to define the BeOS workaround macro;
80487         this adjusts to the change to AC_MBSTATE_T.
80488
80489 2000-07-14  Jim Meyering  <meyering@lucent.com>
80490
80491         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
80492         jm_AC_TYPE_UINTMAX_T.
80493
80494 2000-07-13  Paul Eggert  <eggert@twinsun.com>
80495
80496         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
80497
80498         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
80499         quotearg_buffer_restyled): Add support for
80500         clocale_quoting_style.  Undo previous change to
80501         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
80502         and "{RIGHT QUOTATION MARK}" msgids.
80503
80504 2000-07-10  Paul Eggert  <eggert@twinsun.com>
80505
80506         From a suggestion by Bruno Haible.
80507         * m4/mbstate_t.m4 (AC_MBSTATE_T):
80508         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
80509         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
80510         and mbstate_t, to a single-part test that simply defines mbstate_t.
80511         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
80512         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
80513
80514 2000-07-10  Jim Meyering  <meyering@lucent.com>
80515
80516         * m4/strerror_r.m4: Mirror the correction made in autoconf.
80517
80518         * m4/gnu-source.m4: Output to confdefs.h directly.
80519         Suggestion from Akim Demaille.
80520
80521 2000-07-09  Paul Eggert  <eggert@twinsun.com>
80522
80523         The old behavior of quoting `like this' doesn't look good with
80524         newer, ISO-style fonts.  See:
80525         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
80526
80527         Instead, quote "like this" by default.  Let the translator
80528         tailor the locale-specific quoting behavior by providing
80529         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
80530
80531         * lib/quotearg.c (N_): New macro.
80532         (gettext_default): New function.
80533         (quotearg_buffer_restyled): Use
80534         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
80535         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
80536
80537 2000-07-09  Jim Meyering  <meyering@lucent.com>
80538
80539         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
80540         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
80541
80542         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
80543         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
80544
80545 2000-07-09  Jim Meyering  <meyering@lucent.com>
80546
80547         * lib/Most files: Update copyright dates to include 2000.
80548
80549 2000-07-08  Jim Meyering  <meyering@lucent.com>
80550
80551         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
80552         if not defined.
80553         (xgethostname): Remove now-unnecessary #ifdef.
80554         Move declaration of `err' into loop where it's used.
80555
80556 2000-07-05  Paul Eggert  <eggert@twinsun.com>
80557         and Bruno Haible  <haible@clisp.cons.org>
80558
80559         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
80560         only if the test for an object-type mbstate_t fails.  This
80561         prevents us from mistakenly reporting that mbstate_t is a
80562         system object type after we "#define mbstate_t int" to work
80563         around its lack.
80564
80565 2000-07-05  Paul Eggert  <eggert@twinsun.com>
80566         and Bruno Haible  <haible@clisp.cons.org>
80567
80568         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
80569
80570 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80571
80572         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
80573         to strerror_r.
80574         Include <ctype.h> for use of isalpha.
80575
80576 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80577
80578         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
80579         by allocating a larger buffer. Test the gethostname return value for
80580         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
80581         returns an error and ENAMETOOLONG isn't defined.
80582
80583 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80584
80585         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
80586         dimension.
80587
80588 2000-07-04  Jim Meyering  <meyering@lucent.com>
80589
80590         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
80591         of the deprecated AC_CHECKING.
80592
80593 2000-07-04  Jim Meyering  <meyering@lucent.com>
80594
80595         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
80596         Reported by Bruno Haible.
80597
80598 2000-07-04  Jim Meyering  <meyering@lucent.com>
80599
80600         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
80601         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
80602         lacks mbrtowc.
80603
80604 2000-07-03  Paul Eggert  <eggert@twinsun.com>
80605
80606         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
80607         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
80608
80609 2000-07-03  Paul Eggert  <eggert@twinsun.com>
80610         and Bruno Haible  <haible@clisp.cons.org>
80611
80612         * lib/quotearg.c (mbrtowc):
80613         Assign to *pwc, and return 1 only if result is nonzero.
80614         (iswprint): Use ISPRINT when substituting our own mbrtowc.
80615
80616 2000-07-03  Jim Meyering  <meyering@lucent.com>
80617
80618         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
80619
80620 2000-07-03  Jim Meyering  <meyering@lucent.com>
80621
80622         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
80623         This is necessary to get a definition of e.g., UTMP_FILE on
80624         HP-UX 10.20.
80625         From Bob Proulx.
80626
80627 2000-07-02  Jim Meyering  <meyering@lucent.com>
80628
80629         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
80630
80631         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
80632         AC_LIBOBJ(function_name).
80633         * m4/chown.m4: Likewise.
80634         * m4/fnmatch.m4: Likewise.
80635         * m4/ftruncate.m4: Likewise.
80636         * m4/getgroups.m4: Likewise.
80637         * m4/getline.m4: Likewise.
80638         * m4/group-member.m4: Likewise.
80639         * m4/jm-macros.m4: Likewise.
80640         * m4/lstat.m4: Likewise.
80641         * m4/malloc.m4: Likewise.
80642         * m4/memcmp.m4: Likewise.
80643         * m4/nanosleep.m4: Likewise.
80644         * m4/putenv.m4: Likewise.
80645         * m4/realloc.m4: Likewise.
80646         * m4/regex.m4: Likewise.
80647         * m4/stat.m4: Likewise.
80648         * m4/strftime.m4: Likewise.
80649
80650 2000-07-02  Jim Meyering  <meyering@lucent.com>
80651
80652         * lib/quotearg.c (mbstate_t): Don't define here.
80653
80654 2000-07-02  Jim Meyering  <meyering@lucent.com>
80655
80656         * lib/nanosleep.c (SIGCONT): Define if not already defined.
80657
80658 2000-07-01  Jim Meyering  <meyering@lucent.com>
80659
80660         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
80661
80662 2000-07-01  Jim Meyering  <meyering@lucent.com>
80663
80664         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
80665         problem.
80666
80667 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
80668
80669         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
80670         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
80671
80672 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
80673
80674         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
80675         per change in ../m4/ls-mntd-fs.m4.
80676         (read_filesystem_list): Ignore symbolic links.
80677
80678 2000-06-29  Jim Meyering  <meyering@lucent.com>
80679
80680         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
80681         for declaration of strcmp.
80682
80683         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
80684
80685         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
80686         Avoid warning by casting result to `char *' to remove `const'.
80687
80688 2000-06-28  Jim Meyering  <meyering@lucent.com>
80689
80690         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
80691         included by quotearg.c, for which we perform this test.  From
80692         Bruno Haible.
80693
80694 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
80695
80696         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
80697         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
80698         <utmpx.h> exists, put readutmp.o into LIBOBJS.
80699
80700 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
80701
80702         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
80703
80704 2000-06-26  Paul Eggert  <eggert@twinsun.com>
80705
80706         savedir now sets errno on failure and invokes xmalloc to get memory.
80707         Fix a couple of other minor bugs while we're at it.
80708
80709         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
80710         (NAMLEN): Remove macro.
80711         (malloc, realloc): Remove decls.
80712         (stpcpy): Likewise.
80713         ("xalloc.h"): Include.
80714         (NAME_SIZE_DEFAULT): New macro.
80715         (savedir): Use xmalloc / xrealloc to allocate memory.
80716         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
80717         Skip "" directory entries.
80718         Use strlen to calculate directory entry length, since the old method
80719         is rarely used these days and isn't worth supporting.
80720         Don't use a pointer after freeing it.
80721         Check for integer overflow when calculating allocation size.
80722         Use memcpy to copy entries, instead of stpcpy.
80723         Set errno properly when returning NULL.
80724         Check for readdir error.
80725
80726 2000-06-26  Jim Meyering  <meyering@lucent.com>
80727
80728         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
80729
80730 2000-06-25  Jim Meyering  <meyering@lucent.com>
80731
80732         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
80733         Linux header bug when _XOPEN_SOURCE is defined to 500.
80734
80735 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
80736
80737         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
80738         deficiency.
80739
80740 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
80741
80742         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
80743         Include xalloc.h.
80744         Don't include <stdlib.h>.  Don't declare malloc, realloc.
80745
80746 2000-06-24  Jim Meyering  <meyering@lucent.com>
80747
80748         * m4/strerror_r.m4: Revive this file -- to try out an experimental
80749         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
80750         for which strerror does return char*, but which lacks a conveniently
80751         accessible declaration of the function.  If the compile-test says
80752         strerror_r doesn't work, then resort to a `run'-test that works on
80753         BeOS and segfaults on DEC Unix.
80754
80755 2000-06-24  Jim Meyering  <meyering@lucent.com>
80756
80757         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
80758
80759 2000-06-23  Paul Eggert  <eggert@twinsun.com>
80760
80761         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
80762         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
80763
80764 2000-06-23  Paul Eggert  <eggert@twinsun.com>
80765
80766         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
80767         (mbrtowc, mbstate_t): Define substitutes if
80768         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
80769         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
80770         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
80771
80772 2000-06-23  Jim Meyering  <meyering@lucent.com>
80773
80774         * m4/afs.m4: Add missing AC_MSG_RESULT.
80775         Reported by Bruno Haible.
80776
80777         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
80778         Suggestion from Bruno Haible.
80779
80780 2000-06-23  Jim Meyering  <meyering@lucent.com>
80781
80782         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
80783
80784 2000-06-21  Jim Meyering  <meyering@lucent.com>
80785
80786         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
80787
80788 2000-06-21  Jim Meyering  <meyering@lucent.com>
80789
80790         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
80791         (noinst_HEADERS): Add getstr.h.
80792
80793         * lib/getline.c (getstr): Move into a separate file.
80794         * lib/getstr.c (getstr): New file, extracted from getline.c, with
80795         the following changes: new parameter, delim2; both delim[12]
80796         parameters have type `int', not `char'.  The latter would lose
80797         with 8-bit delimiters.
80798         * lib/getstr.h: New file.
80799
80800 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80801
80802         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
80803         than 1024, return a memory chunk of least possible size, instead
80804         of size PATH_MAX + 2. In the loop, increment the size proportionally.
80805         Use free/xmalloc instead of xrealloc to avoid copying for very long
80806         paths.
80807
80808 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80809
80810         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
80811         the empty string.
80812
80813 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80814
80815         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
80816         address, not strdup.  Include <stdlib.h> and don't declare free().
80817
80818 2000-06-19  Jim Meyering  <meyering@lucent.com>
80819
80820         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
80821
80822 2000-06-18  Jim Meyering  <meyering@lucent.com>
80823
80824         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
80825
80826         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
80827         `checking whether...' message to be consistent with that of the
80828         lstat test.
80829
80830 2000-06-18  Jim Meyering  <meyering@lucent.com>
80831
80832         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
80833         Besides, these days every porting target provides a mkdir function.
80834
80835         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
80836         needed. (this snippet comes from src/system.h).
80837
80838 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
80839
80840         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
80841
80842 2000-06-15  Paul Eggert  <eggert@twinsun.com>
80843
80844         * lib/human.c (adjust_value): New function.
80845         (human_readable_inexact): Apply rounding style even when
80846         printing approximate values.
80847
80848 2000-06-14  Paul Eggert  <eggert@twinsun.com>
80849
80850         * lib/human.c (human_readable_inexact): Allow an input block
80851         size that is not a multiple of the output block size, and vice versa.
80852         Reported by Piergiorgio Sartor.
80853
80854 2000-06-14  Paul Eggert  <eggert@twinsun.com>
80855
80856         * lib/getdate.y (get_date): Apply relative times after time
80857         zone indicator, not before.  Reported by Todd A. Jacobs.
80858
80859 2000-06-13  Jim Meyering  <meyering@lucent.com>
80860
80861         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
80862
80863         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
80864
80865 2000-06-12  Paul Eggert  <eggert@twinsun.com>
80866
80867         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
80868
80869 2000-06-12  Jim Meyering  <meyering@lucent.com>
80870
80871         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
80872         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
80873         optional argument.
80874         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
80875         the optional argument, `lib'.
80876
80877 2000-06-08  Jim Meyering  <meyering@lucent.com>
80878
80879         * m4/largefile.m4: Remove file (now that it's part of autoconf).
80880
80881 2000-06-04  Paul Eggert  <eggert@twinsun.com>
80882
80883         Rewrite largefile configuration so that we don't need to run
80884         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
80885         AC_CANONICAL_HOST in configure.in -- jmm]
80886
80887         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
80888         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
80889         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
80890         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
80891         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
80892         All uses changed.
80893         Instead of inspecting the output of getconf, try to compile the
80894         test program without and with the macro definition.
80895         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
80896         for getconf.  Instead, check for the needed flags by compiling
80897         test programs.
80898
80899 2000-06-04  Paul Eggert  <eggert@twinsun.com>
80900
80901         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
80902
80903 2000-06-04  Jim Meyering  <meyering@lucent.com>
80904
80905         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
80906         SunOS 4.1.4 for which gid_t is an unsigned type.
80907
80908 2000-06-03  Jim Meyering  <meyering@lucent.com>
80909
80910         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
80911         now that autoconf requires that.
80912
80913         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
80914         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
80915         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
80916
80917 2000-06-03  Jim Meyering  <meyering@lucent.com>
80918
80919         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
80920
80921 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
80922
80923         * m4/glibc21.m4: New file.
80924         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
80925
80926 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
80927
80928         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
80929         newer, don't install charset.alias.
80930         * lib/config.charset: Change the Linux/glibc rules so they become empty
80931         on glibc-2.1 or newer.
80932
80933 2000-06-02  Jim Meyering  <meyering@lucent.com>
80934
80935         * lib/mountlist.c: Back out last change.  Instead, do this...
80936         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
80937         me_dummy member using the same `ignore'-testing code.
80938         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
80939         fs_type strings.
80940         From Mark D. Roth.
80941
80942 2000-05-29  Jim Meyering  <meyering@lucent.com>
80943
80944         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
80945         mounts with the `ignore' attribute.  Based on a patch from
80946         Mark D. Roth.
80947
80948 2000-05-28  Jim Meyering  <meyering@lucent.com>
80949
80950         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
80951         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80952         * m4/stat.m4: Likewise.
80953         * m4/lstat.m4: Likewise.
80954         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
80955
80956         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
80957         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
80958
80959 2000-05-26  Jim Meyering  <meyering@lucent.com>
80960
80961         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
80962
80963 2000-05-24  Jim Meyering  <meyering@lucent.com>
80964
80965         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
80966         autoconf requires that.
80967         * m4/lib-check.m4: Likewise.
80968         * m4/jm-macros.m4: Likewise.
80969         * m4/strftime.m4: Likewise.
80970
80971         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
80972         AC_CHECK_DECLS, now that autoconf requires that.
80973
80974 2000-05-22  Jim Meyering  <meyering@lucent.com>
80975
80976         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80977         * m4/lstat.m4: Likewise.
80978
80979 2000-05-22  Jim Meyering  <meyering@lucent.com>
80980
80981         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
80982
80983 2000-05-20  Jim Meyering  <meyering@lucent.com>
80984
80985         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
80986         (jm_PREREQ): Use it.
80987
80988 2000-05-18  Jim Meyering  <meyering@lucent.com>
80989
80990         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
80991         back, too, since it may have been modified by allocate_entry.
80992         (hash_delete): Rewrite to use neither the assignment operator
80993         nor the comma operator in an if-expression.
80994
80995 2000-05-15  Paul Eggert  <eggert@twinsun.com>
80996
80997         * lib/closeout.c:
80998         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
80999         Remove; no longer needed.
81000         "quotearg.h": Add include.
81001         (file_name): Do not bother to explicitly initialize to NULL; it's less
81002         efficient on some hosts.
81003         (close_stdout_status): Remove test as to whether stdout was already
81004         closed; it breaks for the case "echo x | sort >&-".
81005         Quote file name colons.
81006         Do not assume that _("write error") lacks format strings.
81007
81008 2000-05-15  Jim Meyering  <meyering@lucent.com>
81009
81010         * lib/version-etc.c (version_etc_copyright): Update the copyright
81011         string used in all --version output.
81012
81013 2000-05-14  Jim Meyering  <meyering@lucent.com>
81014
81015         * lib/closeout.c (close_stdout_set_file_name): New function.
81016         (close_stdout_status): Use new file-scoped global.
81017         Return right away if fstat says the stdout file descriptor is invalid.
81018         * lib/closeout.h (close_stdout_set_file_name): Declare.
81019
81020 2000-05-10  Jim Meyering  <meyering@lucent.com>
81021
81022         * lib/closeout.c [default_exit_status]: New file-scoped variable.
81023         (close_stdout_set_status): New function.
81024         * lib/closeout.h (close_stdout_set_status): Declare.
81025
81026 2000-05-09  Jim Meyering  <meyering@lucent.com>
81027
81028         * m4/gettext.m4: Rename this...
81029         * m4/libintl.m4: ...to this.
81030
81031 2000-05-08  Jim Meyering  <meyering@lucent.com>
81032
81033         * lib/long-options.c: Don't include closeout.h.
81034         (parse_long_options): Don't call close_stdout for --version.
81035
81036 2000-05-06  Paul Eggert  <eggert@twinsun.com>
81037
81038         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
81039         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
81040         2.1.3 bug.  This avoids a clash when files like regex.c define
81041         _GNU_SOURCE.
81042
81043 2000-05-06  Jim Meyering  <meyering@lucent.com>
81044
81045         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
81046         (AC_REPLACE_FUNCS): Add strnlen.
81047
81048         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
81049         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
81050
81051         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
81052         AC_SEARCH_LIBS call for nanosleep.
81053         (LIB_NANOSLEEP): Set and AC_SUBST.
81054
81055 2000-05-06  Jim Meyering  <meyering@lucent.com>
81056
81057         * lib/strnlen.c: Undefine __strnlen and strnlen.
81058         [!weak_alias]: Define __strnlen to strnlen.
81059
81060         * lib/atexit.c: New file, from libiberty.
81061
81062 2000-05-06  Jim Meyering  <meyering@lucent.com>
81063
81064         * lib/closeout.c (close_stdout_status): Also check for errors on the
81065         stderr stream.
81066
81067 2000-05-05  Jim Meyering  <meyering@lucent.com>
81068
81069         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
81070         AC_SEARCH_LIBS call for clock_gettime.
81071         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
81072
81073         * m4/search-libs.m4: Update from autoconf.
81074
81075         su doesn't work on Solaris 2.6.
81076         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
81077         <shadow.h>.  Reported by Dragos Harabor.
81078
81079 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
81080
81081         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
81082         memcpy instead of xmalloc, xrealloc, path_concat.
81083         (locale_charset): Treat empty environment variables as absent.
81084         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
81085
81086 2000-05-04  Jim Meyering  <meyering@lucent.com>
81087
81088         * lib/getopt.c: Update from glibc.
81089         * lib/obstack.c: Likewise.
81090         * lib/obstack.h: Likewise.
81091         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
81092         file
81093
81094         * lib/regex.h: Likewise.
81095         * lib/strndup.c: Likewise.
81096         * lib/strnlen.c: New file, from glibc.
81097
81098 2000-05-03  Jim Meyering  <meyering@lucent.com>
81099
81100         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
81101
81102 2000-05-02  Paul Eggert  <eggert@twinsun.com>
81103
81104         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
81105         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
81106         compile-time test, rather than inspecting host and OS, to
81107         decide whether to define _LARGEFILE_SOURCE.
81108
81109 2000-05-01  Jim Meyering  <meyering@lucent.com>
81110
81111         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
81112
81113         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
81114         Based on a patch from Bruno Haible.
81115
81116 2000-05-01  Jim Meyering  <meyering@lucent.com>
81117
81118         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
81119
81120 2000-04-29  Jim Meyering  <meyering@lucent.com>
81121
81122         * lib/path-concat.c: Declare strdup only if it's not defined.
81123         * lib/canon-host.c: Likewise.
81124
81125 2000-04-28  Jim Meyering  <meyering@lucent.com>
81126
81127         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
81128         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
81129         is included first, then limits.h is included by locale.h by libintl.h.
81130         From John David Anglin.
81131
81132 2000-04-25  Jim Meyering  <meyering@lucent.com>
81133
81134         * lib/makepath.c (S_IRWXUGO): Define.
81135         (make_path): Always perform explicit chmod if MODE specifies any
81136         of the `special' permission bits.  Prompted by a bug report against
81137         install from Mate Wierdl and Joost van Baal.
81138
81139 2000-04-18  Jim Meyering  <meyering@lucent.com>
81140
81141         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
81142         (jm_PREREQ): Use it.
81143
81144 2000-04-18  Jim Meyering  <meyering@lucent.com>
81145
81146         * lib/README: New file.
81147
81148         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
81149         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
81150
81151 2000-04-17  Jim Meyering  <meyering@lucent.com>
81152
81153         Get it right :-)
81154         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
81155         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
81156         Suggestion from Akim Demaille.
81157
81158 2000-04-17  Jim Meyering  <meyering@lucent.com>
81159
81160         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
81161         the definition of it to rpl_strftime also defined-away the system's
81162         declaration.
81163
81164 2000-04-15  Jim Meyering  <meyering@lucent.com>
81165
81166         Use `C' to denote so-called `contiguous' files, the same way
81167         that tar does.
81168         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
81169         (ftypelet): Use S_ISCTG.
81170         From Michael Deutschmann.
81171
81172 2000-04-14  Jim Meyering  <meyering@lucent.com>
81173
81174         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
81175         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
81176         clobbered.
81177
81178 2000-04-14  Jim Meyering  <meyering@lucent.com>
81179
81180         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
81181
81182 2000-04-13  Jim Meyering  <meyering@lucent.com>
81183
81184         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
81185         AH_VERBATIM to insert required #ifndef into config.h.in.
81186         Suggestion from Akim Demaille.
81187
81188 2000-04-12  Jim Meyering  <meyering@lucent.com>
81189
81190         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
81191         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
81192         Christian Krackowizer.
81193
81194         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
81195         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
81196         (AC_SYS_LARGEFILE): Require.
81197         (AM_C_PROTOTYPES): Require.
81198
81199 2000-04-08  Jim Meyering  <meyering@lucent.com>
81200
81201         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
81202         names don't conflict.  Reported by Eli Zaretskii.
81203
81204 2000-04-07  Jim Meyering  <meyering@lucent.com>
81205
81206         * lib/putenv.c: Move inclusion of errno.h so it follows that of
81207         sys/types.h, to work around system header problems on AIX 3.2.5.
81208         From Bruno Haible.
81209
81210 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
81211
81212         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
81213         bug.  Deal with the different error behavior of Irix iconv.
81214
81215 2000-04-05  Paul Eggert  <eggert@twinsun.com>
81216
81217         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
81218         IRIX if the installer said otherwise.
81219
81220 2000-04-05  Jim Meyering  <meyering@lucent.com>
81221
81222         Portability tweaks required for ultrix4.3.
81223         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
81224         (jm_CHECK_DECLS): Add getutent to the list of functions.
81225         (_jm_DECL_HEADERS): Add utmpx.h.
81226         From John David Anglin.
81227
81228         * m4/strftime.m4: Back out the 2000-04-02 change.
81229         Instead of that change, simply undefine putenv in the test program.
81230
81231 2000-04-05  Jim Meyering  <meyering@lucent.com>
81232
81233         Portability tweaks required for ultrix4.3.
81234         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
81235         getutent.
81236         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
81237         * lib/canon-host.c: Declare strdup.
81238         * lib/path-concat.c: Likewise.
81239         From John David Anglin.
81240
81241 2000-04-04  Jim Meyering  <meyering@lucent.com>
81242
81243         Be more DOS 8.3-friendly.
81244         * lib/ref-add.sin: Renamed from ref-add.sed.in.
81245         * lib/ref-del.sin: Renamed from ref-del.sed.in.
81246         * lib/Makefile.am: Reflect renaming.
81247         Reported by Eli Zaretskii.
81248
81249         Use a temporary file name that won't clash with `charset.alias'
81250         in the DOS 8.3 name space.
81251         * lib/Makefile.am (charset_tmp): Define.
81252         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
81253         (uninstall-local): Likewise.
81254         Reported by Eli Zaretskii.
81255
81256 2000-04-03  Jim Meyering  <meyering@lucent.com>
81257
81258         * m4/gettext.m4: Fix typo in comment.
81259
81260         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
81261         textutils/configure.in).  Suggestion from Paul Eggert.
81262         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
81263
81264 2000-04-02  Paul Eggert  <eggert@twinsun.com>
81265
81266         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
81267         variable in the shell rather than using putenv, which isn't
81268         portable.  This avoids the configure-time inter-test dependency
81269         on the potentially-renamed putenv function.
81270
81271 2000-03-30  Paul Eggert  <eggert@twinsun.com>
81272
81273         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
81274         before checking struct stat.st_blksize, so that
81275         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
81276
81277 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81278
81279         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
81280         since strftime.c uses HAVE_STRFTIME to decide whether to use
81281         the underlying strftime.
81282
81283 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81284
81285         * lib/time/strftime.c (my_strftime): Make sure we call the system
81286         strftime, not ourselves, when invoking the underlying strftime.
81287
81288 2000-03-24  Jim Meyering  <meyering@lucent.com>
81289
81290         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
81291         (charset_alias): Define.
81292         (install-exec-local): Factor out common code.
81293         (uninstall-local): Split lines longer than 80.
81294         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
81295         (SUFFIXES): Define.
81296         (.sed.in.sed): New rule.  Don't redirect directly to $@.
81297         (CLEANFILES): Add ref-add.sed and ref-del.sed.
81298
81299 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
81300
81301         * lib/config.charset: Output a line containing "Packages using this
81302         file".
81303         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
81304         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
81305         ref-del.sed): New rules.
81306
81307 2000-03-17  Jim Meyering  <meyering@lucent.com>
81308
81309         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
81310         Otherwise, include <strings.h>
81311
81312 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
81313
81314         * lib/unicodeio.c (utf8_wctomb): New function.
81315         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
81316         format instead of in UCS-4 with platform dependent endianness.
81317
81318 2000-03-10  Jim Meyering  <meyering@lucent.com>
81319
81320         * m4/lib-check.m4: Look for getspnam in -lgen, too.
81321         From Marco Franzen.
81322
81323 2000-03-07  Paul Eggert  <eggert@twinsun.com>
81324
81325         * lib/savedir.c (savedir): Work even if directory size is
81326         negative; this can happen with some screwy NFS configurations.
81327
81328 2000-03-06  Jim Meyering  <meyering@lucent.com>
81329
81330         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
81331         if it's NULL (because we ran out of memory).  From Bruno Haible.
81332
81333 2000-03-05  Jim Meyering  <meyering@lucent.com>
81334
81335         * lib/localcharset.c ("path-concat.h"): Include.
81336         (get_charset_aliases): Use path_concat instead of ANSI string
81337         concatenation.
81338
81339         * lib/unicodeio.h (PARAMS): Define.
81340         Use it to guard prototype.
81341
81342 2000-03-04  Jim Meyering  <meyering@lucent.com>
81343
81344         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
81345         for lib/localcharset.c.
81346
81347 2000-03-04  Jim Meyering  <meyering@lucent.com>
81348
81349         * lib/Makefile.am (install-exec-local): Create $(libdir) before
81350         installing into it.
81351         (uninstall-local): Uncomment this rule so `make distcheck' works
81352         once again.
81353
81354         * lib/unicodeio.c (<errno.h>): Include it.
81355         (errno): Declare if not defined.
81356
81357         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
81358
81359         * lib/config.charset: New version, incorporating remarks from a linux
81360         i18n mailing list.  From Bruno Haible.
81361
81362 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
81363
81364         * m4/codeset.m4: New file.
81365         * m4/iconv.m4: New file.
81366         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
81367
81368 2000-03-03  Jim Meyering  <meyering@lucent.com>
81369
81370         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
81371
81372 2000-03-02  Jim Meyering  <meyering@lucent.com>
81373
81374         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
81375         the messages come out on separate lines.
81376
81377         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
81378         rather than jm_CHECK_DECLARATIONS.
81379         * m4/decl.m4: Remove now-unused file.
81380
81381         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
81382         geteuid.
81383
81384 2000-03-02  Jim Meyering  <meyering@lucent.com>
81385
81386         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
81387
81388 2000-03-01  Jim Meyering  <meyering@lucent.com>
81389
81390         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
81391         * lib/unicodeio.c: Likewise.
81392
81393 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
81394
81395         * lib/config.charset: New file.
81396         * lib/localcharset.c: New file.
81397         * lib/unicodeio.h, lib/unicodeio.c: New files.
81398         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
81399         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
81400         (noinst_HEADERS): Add unicodeio.h.
81401         (all-local, install-exec-local, charset.alias): New targets.
81402
81403 2000-02-28  Paul Eggert  <eggert@twinsun.com>
81404
81405         * lib/quotearg.c (ALERT_CHAR): New macro.
81406         (quotearg_buffer_restyled): Use it.
81407
81408 2000-02-27  Jim Meyering  <meyering@lucent.com>
81409
81410         * m4/check-decl.m4: Add getenv to the list.
81411
81412 2000-02-27  Jim Meyering  <meyering@lucent.com>
81413
81414         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
81415         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
81416
81417         * lib/backupfile.c: Guard inclusion of stdlib.h with
81418         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
81419         Declare malloc if needed.
81420
81421         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
81422         `#ifndef HAVE_DECL..'
81423         now that autoconf always defines the HAVE_DECL_ symbols.
81424         * lib/human.c: Likewise.
81425         * lib/same.c: Likewise.
81426         * lib/strtoumax.c: Likewise.
81427
81428         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
81429         declaration check was not run.
81430         * lib/hash.c: Likewise.
81431         * lib/human.c: Likewise.
81432         * lib/same.c: Likewise.
81433         * lib/strtoumax.c: Likewise.
81434
81435         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
81436         `.', then first look up the entire `.'-containing string as a login
81437         name.
81438
81439 2000-02-23  Jim Meyering  <meyering@lucent.com>
81440
81441         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
81442         in place of my hack.
81443
81444 2000-02-18  Paul Eggert  <eggert@twinsun.com>
81445
81446         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
81447         (textint): New typedef.
81448         (parser_control): Member year changed from int to textint.
81449         All uses changed.
81450         (YYSTYPE): Removed; replaced by %union with int and textint members.
81451         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
81452         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
81453         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
81454         (tSNUMBER, tUNUMBER): Now of type <textintval>.
81455         (date, number, to_year): Use width of number in digits, not its value,
81456         to determine whether it's a 2-digit year, or a 2-digit time.
81457         (yylex): Store number of digits of numeric tokens.
81458         Reported by John Kendall.
81459
81460         (parser_control): Changed from struct parser_control to typedef (for
81461         consistency).  All uses changed.
81462
81463         (tID): Removed; not used.
81464         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
81465
81466 2000-02-14  Paul Eggert  <eggert@twinsun.com>
81467
81468         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
81469         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
81470
81471 2000-02-12  Jim Meyering  <meyering@lucent.com>
81472
81473         * lib/userspec.c (ISDIGIT): Define it.
81474         (isdigit): Remove definition.
81475         (is_number): Use ISDIGIT, not isdigit.
81476         <libintl.h>: Include.
81477         (_ and N_): Define.
81478         (parse_user_spec): Mark translatable strings.
81479
81480 2000-02-10  Jim Meyering  <meyering@lucent.com>
81481
81482         With these changes, nanosleep.[ch] are finally enough like the other
81483         lib/* replacement files to compile on a few more losing systems.
81484
81485         * lib/nanosleep.h: Don't include config.h.
81486         Remove prototype from declaration of nanosleep.
81487         (PARAMS): Remove now-unneeded definition.
81488         * lib/nanosleep.c: #undef nanosleep.
81489         (rpl_nanosleep): Rename from nanosleep.
81490
81491 2000-02-10  Jim Meyering  <meyering@lucent.com>
81492
81493         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
81494         gnu_nanosleep to rpl_nanosleep.
81495
81496 2000-02-09  Jim Meyering  <meyering@lucent.com>
81497
81498         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
81499         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
81500
81501 2000-02-08  Akim Demaille  <akim@epita.fr>
81502
81503         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
81504         `[' and `]' and remove uses of `changequote'.
81505         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
81506         (AC_SYS_LARGEFILE): Likewise.
81507         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
81508         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
81509         of changequote.
81510         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
81511         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
81512         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
81513         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
81514
81515 2000-02-05  Jim Meyering  <meyering@lucent.com>
81516
81517         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
81518         Remove explicit use of AC_HEADER_TIME.  It is required by
81519         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
81520         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
81521         in autoconf whereby the expansion of the latter ended up preceding
81522         the expansion of its prerequisite, AC_HEADER_TIME.
81523         Reported by Volker Borchert.
81524
81525 2000-02-03  Jim Meyering  <meyering@lucent.com>
81526
81527         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
81528
81529 2000-02-03  Jim Meyering  <meyering@lucent.com>
81530
81531         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
81532         rather than with `#if HAVE_UTMPNAME'.
81533
81534 2000-02-02  Jim Meyering  <meyering@lucent.com>
81535
81536         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
81537         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
81538         Reported by Eli Zaretskii.
81539
81540 2000-02-01  Jim Meyering  <meyering@lucent.com>
81541
81542         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
81543
81544 2000-01-31  Jim Meyering  <meyering@lucent.com>
81545
81546         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
81547         functions.  Add the time.h and sys/time.h headers along with the
81548         AC_REQUIRE'ment of AC_HEADER_TIME.
81549
81550 2000-01-31  Jim Meyering  <meyering@lucent.com>
81551
81552         * lib/nanosleep.h (nanosleep): Guard declaration with
81553         `#if ! HAVE_DECL_NANOSLEEP'.
81554         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
81555         the declaration in that vendor's sys/timers.h.
81556         Reported by Christian Krackowizer.
81557
81558         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
81559         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
81560         (ISPRINT): Likewise.
81561         Reported by Tom Tromey.
81562
81563 2000-01-30  Jim Meyering  <meyering@lucent.com>
81564
81565         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
81566
81567         * m4/prereq.m4 (utmp_includes): Define.
81568         Check for ut_user and ut_name members in both struct utmpx
81569         and struct utmp.
81570
81571 2000-01-30  Jim Meyering  <meyering@lucent.com>
81572
81573         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
81574         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
81575         header files where only utmpx.ut_user is declared.
81576
81577         * lib/readutmp.h (UT_USER): Define.
81578
81579 2000-01-29  Jim Meyering  <meyering@lucent.com>
81580
81581         * m4/lib-check.m4: New file containing library-related checks from
81582         fileutils and sh-utils (textutils had none).
81583
81584 2000-01-28  Jim Meyering  <meyering@lucent.com>
81585
81586         * m4/perl.m4: Change format of warning message to look more like that
81587         from the missing script.  Suggestion from François Pinard.
81588
81589 2000-01-25  Jim Meyering  <meyering@lucent.com>
81590
81591         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
81592         well as time.h in the compile check.
81593         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
81594         Fix typo in cross-compiling case: s/yes/no/.
81595
81596 2000-01-23  Jim Meyering  <meyering@lucent.com>
81597
81598         * m4/jm-macros.m4: Move df-related tests here from
81599         fileutils/configure.in
81600
81601         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
81602         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
81603
81604         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
81605         s/space/ac_fsusage_space/.
81606         (jm_FILE_SYSTEM_USAGE): Take two parameters.
81607
81608         * m4/ftruncate.m4: New file (derived from part of
81609         fileutils/configure.in).
81610         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
81611         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
81612
81613         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
81614         AC_SUBST these here, rather than just in sh-util/configure.in, so
81615         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
81616         all the same.
81617         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
81618         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
81619         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
81620         (AC_SUBST(POW_LIBM)): Likewise.
81621         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
81622
81623 2000-01-23  Jim Meyering  <meyering@lucent.com>
81624
81625         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
81626         obstack.c.
81627
81628 2000-01-22  Jim Meyering  <meyering@lucent.com>
81629
81630         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
81631
81632         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
81633
81634         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
81635         configure.in
81636         (AC_CHECK_HEADERS): Likewise for sh-utils.
81637         (AC_CHECK_HEADERS): Likewise for textutils.
81638         Merge the three lists of headers.
81639
81640         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
81641         from fileutils' configure.in.
81642
81643         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
81644         code. Moved tests into their own function (_jm_DECL_HEADERS) in
81645         check-decl.m4.
81646
81647         * m4/check-decl.m4: Use #if rather than #ifdef.
81648         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
81649         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
81650         (_jm_DECL_HEADERS): Define new function.
81651         (jm_CHECK_DECLARATIONS): Require it.
81652
81653 2000-01-22  Jim Meyering  <meyering@lucent.com>
81654
81655         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
81656         [! HAVE_DECL_STRTOULL]: Declare strtoull.
81657         Required for some AIX systems.  Reported by Christian Krackowizer.
81658         [TESTING] (main): New function.
81659
81660         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
81661         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
81662         letters.
81663
81664         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
81665         iswprint.
81666
81667         * lib/strverscmp.c (ISDIGIT): Define.
81668         (strverscmp): Use ISDIGIT, not isdigit.
81669
81670 2000-01-19  Jim Meyering  <meyering@lucent.com>
81671
81672         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
81673         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
81674         defines `struct timespec' in <sys/time.h>
81675
81676         * m4/c-bs-a.m4: Remove uses of changequote altogether.
81677         Thanks to Akim for explaining.
81678
81679 2000-01-17  Paul Eggert  <eggert@twinsun.com>
81680
81681         * lib/nanosleep.c (nanosleep):
81682         Don't use SA_INTERRUPT to decide whether to call sigaction, as
81683         POSIX.1 doesn't require SA_INTERRUPT and some systems
81684         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
81685         it's been part of POSIX.1 since day 1 (in 1988).
81686
81687 2000-01-17  Jim Meyering  <meyering@lucent.com>
81688
81689         * lib/interlock: Remove unused file.  Reported by François Pinard.
81690
81691 2000-01-16  Paul Eggert  <eggert@twinsun.com>
81692
81693         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
81694         alert, backslash, formfeed, and vertical tab unnecessarily in
81695         shell quoting style.
81696
81697 2000-01-16  Jim Meyering  <meyering@lucent.com>
81698
81699         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
81700         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
81701         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
81702         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
81703
81704 2000-01-16  Jim Meyering  <meyering@lucent.com>
81705
81706         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
81707         because the latter didn't work.
81708
81709 2000-01-15  Jim Meyering  <meyering@lucent.com>
81710
81711         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
81712         (AC_REPLACE_FUNCS): Add memcpy and memset.
81713         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
81714         Add strpbrk.
81715         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
81716
81717 2000-01-12  Jim Meyering  <meyering@lucent.com>
81718
81719         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
81720         (jm_PREREQ): Use it.
81721         (jm_PREREQ_READUTMP): New macro.
81722         (jm_PREREQ): Use it.
81723
81724 2000-01-11  Paul Eggert  <eggert@twinsun.com>
81725
81726         Quote multibyte characters correctly.
81727         * m4/c-bs-a.m4: New file.
81728         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
81729         (jm_PREREQ): Use it.
81730
81731 2000-01-11  Paul Eggert  <eggert@twinsun.com>
81732
81733         * m4/uintmax_t.m4: Port to autoconf 2.13.
81734
81735 2000-01-08  Jim Meyering  <meyering@ascend.com>
81736
81737         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
81738         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
81739
81740 2000-01-04  Jim Meyering  <meyering@ascend.com>
81741
81742         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
81743         jm_STRUCT_DIRENT_D_TYPE.
81744         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
81745         jm_STRUCT_DIRENT_D_INO.
81746         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
81747         jm_STRUCT_UTIMBUF.
81748         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
81749         renamings.
81750         * m4/utime.m4: Likewise.
81751
81752         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
81753         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
81754
81755 2000-01-03  Paul Eggert  <eggert@twinsun.com>
81756
81757         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
81758         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
81759
81760 2000-01-02  Jim Meyering  <meyering@ascend.com>
81761
81762         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
81763         remember if this is necessary.
81764
81765 1999-12-26  Jim Meyering  <meyering@ascend.com>
81766
81767         * m4/jm-macros.m4: Use it here.
81768         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
81769
81770 1999-12-23  Jim Meyering  <meyering@ascend.com>
81771
81772         * m4/jm-macros.m4: Check for clock_gettime (moved from
81773         fileutils/configure.in)
81774         Check for gettimeofday.
81775
81776 1999-12-20  Jim Meyering  <meyering@ascend.com>
81777
81778         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
81779         autoconf-2.14a-1999-12-20.
81780
81781 1999-12-19  Jim Meyering  <meyering@ascend.com>
81782
81783         * m4/lstat-slash.m4: New file.
81784         * m4/jm-macros.m4: Use the new macro:
81785         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81786
81787 1999-12-07  Jim Meyering  <meyering@ascend.com>
81788
81789         * m4/perl.m4: Require that File::Compare be available, too.
81790         Too many systems seem to lack it.
81791
81792         * m4/strftime.m4: Add checks for most of the cpp macros tested in
81793         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
81794
81795 1999-11-18  Paul Eggert  <eggert@twinsun.com>
81796
81797         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
81798         problem with the QNX 4.25 shell, which doesn't propagate exit
81799         status of failed commands inside shell assignments.
81800
81801 1999-11-17  Jim Meyering  <meyering@ascend.com>
81802
81803         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
81804
81805 1999-11-07  Jim Meyering  <meyering@ascend.com>
81806
81807         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
81808
81809 1999-11-06  Jim Meyering  <meyering@ascend.com>
81810
81811         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
81812         * m4/jm-macros.m4 (jm_MACROS): Use it here.
81813
81814 1999-11-05  Jim Meyering  <meyering@ascend.com>
81815
81816         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
81817         configure.in of textutils, fileutils, and sh-utils into this one
81818         (shared between those packages) file.
81819         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
81820         AC_STRUCT_ST_BLKSIZE.
81821
81822 1999-11-03  Jim Meyering  <meyering@ascend.com>
81823
81824         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
81825         of AC_CHECK_TYPE checks includes unistd.h.
81826         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
81827         Suggestion from Akim Demaille.
81828
81829 1999-10-30  Jim Meyering  <meyering@ascend.com>
81830
81831         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
81832         m4-quoted string.
81833         * m4/ls-mntd-fs.m4: Likewise.
81834         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
81835         * m4/jm-winsz1.m4: Likewise.
81836
81837         * m4/const.m4: Remove file, since the fix made it into the experimental
81838         version of autoconf.
81839         * m4/mktime.m4: Likewise.
81840
81841         * m4/check-type.m4: Remove file, now that the latest version of
81842         AC_CHECK_TYPE takes a third arg to specify additional #includes.
81843
81844         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
81845         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
81846         AC_CHECK_TYPE.
81847
81848 1999-10-04  Jim Meyering  <meyering@ascend.com>
81849
81850         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
81851
81852 1999-09-22  Paul Eggert  <eggert@twinsun.com>
81853
81854         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
81855         2.95.1 bug with HP-UX 10.20.
81856
81857 1999-09-17  Jim Meyering  <meyering@ascend.com>
81858
81859         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
81860         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
81861         due to missing strdup (against sh-utils-2.0).
81862
81863 1999-08-29  Jim Meyering  <meyering@ascend.com>
81864
81865         * m4/jm-macros.m4: Require jm_BISON.
81866         * m4/bison.m4: New file.
81867
81868 1999-08-17  Paul Eggert  <eggert@twinsun.com>
81869
81870         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
81871         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
81872
81873 1999-08-05  Jim Meyering  <meyering@ascend.com>
81874
81875         * m4/getline.m4: Rename test file from conftestdata to conftest.data
81876         to avoid conflicts with `conftest' on 8+3 filesystems.
81877         Suggestion from Eli Zaretskii.
81878
81879 1999-08-04  Jim Meyering  <meyering@ascend.com>
81880
81881         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
81882         fileutils and sh-utils (textutils's getline test was inadequate).
81883         (AM_FUNC_GETLINE): Run this test.
81884         (AC_CHECK_FUNCS): Check for getdelim.
81885         Reported by Bob Proulx.
81886
81887 1999-08-02  Jim Meyering  <meyering@ascend.com>
81888
81889         * m4/jm-macros.m4: Add a comment.
81890
81891 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81892
81893         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
81894         <inttypes.h> defines strtoumax as a macro (and not as a
81895         function).
81896
81897 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81898
81899         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
81900         that we can shift, multiply and divide unsigned long long
81901         values; Ultrix cc can't do it.
81902
81903 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81904
81905         * m4/mktime.m4: New file, which is a preview of what should appear
81906         in the next public autoconf release.
81907
81908 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81909
81910         * m4/lfs.m4: Remove this file.
81911         * m4/largefile.m4: New file.  It contains the old contents of
81912         lfs.m4, except that all names with prefix AC_LFS have been
81913         changed to use the prefix AC_SYS_LARGEFILE instead, to be
81914         compatible with future autoconf versions.  Also, some minor m4
81915         quoting problems have been fixed.
81916
81917 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81918
81919         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
81920         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
81921         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
81922         and simplify the shell code.
81923
81924 1999-08-01  Jim Meyering  <meyering@ascend.com>
81925
81926         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
81927         m4.
81928
81929 1999-07-20  Jim Meyering  <meyering@ascend.com>
81930
81931         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
81932
81933 1999-07-15  Jim Meyering  <meyering@ascend.com>
81934
81935         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
81936
81937 1999-05-22  Jim Meyering  <meyering@ascend.com>
81938
81939         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
81940
81941 1999-05-20  Jim Meyering  <meyering@ascend.com>
81942
81943         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
81944         Add a colon after each `then' in case $4 is empty.
81945
81946 1999-05-16  Jim Meyering  <meyering@ascend.com>
81947
81948         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
81949
81950 1999-05-10  Jim Meyering  <meyering@ascend.com>
81951
81952         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
81953
81954         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
81955         AC_FUNC_MKTIME.
81956
81957 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
81958
81959         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
81960
81961 1999-05-04  Paul Eggert  <eggert@twinsun.com>
81962
81963         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
81964         not CPPFLAGS, so that linking works correctly in IRIX.
81965
81966 1999-04-30  Paul Eggert  <eggert@twinsun.com>
81967
81968         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
81969
81970 1999-04-20  Paul Eggert  <eggert@twinsun.com>
81971
81972         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
81973         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
81974         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
81975         jm_AC_TYPE_UNSIGNED_LONG_LONG.
81976         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
81977
81978         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
81979
81980 1999-04-20  Jim Meyering  <meyering@ascend.com>
81981
81982         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
81983         AC_REPLACE xstroull if necessary.  From Paul Eggert.
81984         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
81985
81986 1999-04-18  Jim Meyering  <meyering@ascend.com>
81987
81988         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
81989         * m4/jm-macros.m4: Use it.
81990
81991 1999-04-06  Jim Meyering  <meyering@ascend.com>
81992
81993         * m4/strftime.m4: Remove test for %f.
81994
81995 1999-03-29  Jim Meyering  <meyering@ascend.com>
81996
81997         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
81998         superset of the AC_TYPE_* checks in the textutils, fileutils,
81999         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
82000         AC_TYPE_PID_T.
82001
82002 1999-03-28  Jim Meyering  <meyering@ascend.com>
82003
82004         * m4/jm-macros.m4: Define GNU_PACKAGE here.
82005         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
82006         replaced e.g., in the *.sh files of the sh-utils.
82007
82008 1999-03-20  Jim Meyering  <meyering@ascend.com>
82009
82010         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
82011         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
82012         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
82013
82014 1999-03-19  Jim Meyering  <meyering@ascend.com>
82015
82016         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
82017
82018 1999-03-12  Jim Meyering  <meyering@ascend.com>
82019
82020         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
82021
82022 1999-03-07  Jim Meyering  <meyering@ascend.com>
82023
82024         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
82025         declared.
82026
82027 1999-02-17  Jim Meyering  <meyering@ascend.com>
82028
82029         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
82030         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
82031
82032 1999-02-07  Jim Meyering  <meyering@ascend.com>
82033
82034         * m4/group-member.m4: New file -- extracted from sh-utils'
82035         configure.in.
82036
82037         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
82038         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
82039
82040 1999-02-06  Jim Meyering  <meyering@ascend.com>
82041
82042         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
82043         * m4/fnmatch.m4: Likewise.
82044         * m4/getgroups.m4: Likewise.
82045         * m4/lstat.m4: Likewise.
82046         * m4/malloc.m4: Likewise.
82047         * m4/putenv.m4: Likewise.
82048         * m4/realloc.m4: Likewise.
82049         * m4/regex.m4: Likewise.
82050         * m4/stat.m4: Likewise.
82051         * m4/strftime.m4: Likewise.
82052         Suggestion from Alain Magloire.
82053
82054         * m4/chown.m4: Use `.$ac_objext', not `.o'.
82055         * m4/fnmatch.m4: Likewise.
82056         * m4/getgroups.m4: Likewise.
82057         * m4/getline.m4: Likewise.
82058         * m4/lstat.m4: Likewise.
82059         * m4/malloc.m4: Likewise.
82060         * m4/memcmp.m4: Likewise.
82061         * m4/putenv.m4: Likewise.
82062         * m4/realloc.m4: Likewise.
82063         * m4/regex.m4: Likewise.
82064         * m4/stat.m4: Likewise.
82065         * m4/strftime.m4: Likewise.
82066         Suggestion from Alain Magloire.
82067
82068         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
82069         an argument.
82070
82071         * m4/regex.m4: Add a run-time Test for proper operation of
82072         re_compile_pattern.
82073
82074 1999-01-31  Jim Meyering  <meyering@ascend.com>
82075
82076         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
82077
82078 1999-01-30  Jim Meyering  <meyering@ascend.com>
82079
82080         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
82081
82082         * m4/jm-mktime.m4: Make this a wrapper around the official
82083         AM_FUNC_MKTIME rather than my private copy, now that the official one
82084         is up to date.
82085         * m4/mktime.m4: Remove file.
82086
82087         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
82088         * m4/uptime.m4: Likewise.
82089         * m4/uintmax_t.m4: Likewise.
82090
82091 1999-01-28  Jim Meyering  <meyering@ascend.com>
82092
82093         * m4/jm-macros.m4: Use jm_AFS.
82094         * m4/afs.m4: New file (from fileutils' configure.in).
82095
82096         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
82097         * m4/chown.m4: Likewise.
82098         * m4/d-ino.m4: Likewise.
82099         * m4/d-type.m4: Likewise.
82100         * m4/fnmatch.m4: Likewise.
82101         * m4/getgroups.m4: Likewise.
82102         * m4/gettext.m4: Likewise.
82103         * m4/jm-mktime.m4: Likewise.
82104         * m4/jm-winsz2.m4: Likewise.
82105         * m4/lcmessage.m4: Likewise.
82106         * m4/ls-mntd-fs.m4: Likewise.
82107         * m4/malloc.m4: Likewise.
82108         * m4/memcmp.m4: Likewise.
82109         * m4/putenv.m4: Likewise.
82110         * m4/realloc.m4: Likewise.
82111         * m4/st_mtim.m4: Likewise.
82112         * m4/strftime.m4: Likewise.
82113
82114 1999-01-16  Jim Meyering  <meyering@ascend.com>
82115
82116         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
82117         (ARGMATCH_DIE_DECL): Define.
82118
82119 1999-01-12  Jim Meyering  <meyering@ascend.com>
82120
82121         * m4/Makefile.am.in: Rewrite to avoid using fmt.
82122         Reported by Lars Hecking.
82123
82124 1999-01-10  Jim Meyering  <meyering@ascend.com>
82125
82126         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
82127         gross kludge.
82128         * m4/inttypes_h.m4: Likewise.
82129         * m4/lstat.m4: Likewise.
82130         * m4/malloc.m4: Likewise.
82131         * m4/readdir.m4: Likewise.
82132         * m4/realloc.m4: Likewise.
82133         * m4/st_dm_mode.m4: Likewise.
82134         * m4/stat.m4: Likewise.
82135         * m4/utimbuf.m4: Likewise.
82136         * m4/utimes.m4: Likewise.
82137
82138         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
82139         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
82140         comments in config.h.in are meaningful.
82141
82142         * m4/jm-macros.m4: Require autoconf-2.13 here.
82143
82144         * m4/regex.m4: By default, don't use the included regex.c on systems
82145         with glibc 2.  Suggestion from Uli Drepper.
82146
82147 1999-01-02  Jim Meyering  <meyering@ascend.com>
82148
82149         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
82150
82151 1998-12-18  Jim Meyering  <meyering@ascend.com>
82152
82153         * m4/Makefile.am.in (Makefile.am): Simplify rule.
82154         Based on a suggestion from Lars Hecking.
82155
82156 1998-11-16  Paul Eggert  <eggert@twinsun.com>
82157
82158         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
82159
82160 1998-11-16  Jim Meyering  <meyering@ascend.com>
82161
82162         * m4/lfs.m4: Double-quote the `uname...` expression.
82163
82164 1998-11-14  Jim Meyering  <meyering@ascend.com>
82165
82166         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
82167         * m4/stat.m4: Likewise.
82168
82169 1998-11-03  Jim Meyering  <meyering@ascend.com>
82170
82171         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
82172         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
82173
82174 1998-10-18  Jim Meyering  <meyering@ascend.com>
82175
82176         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
82177
82178 1998-10-17  Jim Meyering  <meyering@ascend.com>
82179
82180         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
82181         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
82182         calls for those previously hard-coded headers.  Instead, take a new
82183         parameter.
82184         (jm_CHECK_DECLARATIONS): Reflect interface change.
82185         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
82186         (jm_CHECK_DECL_LOCALTIME_R): New macro.
82187
82188         * m4/mktime.m4: Test for spring-forward gap before long-running test.
82189
82190 1998-10-14  Jim Meyering  <meyering@ascend.com>
82191
82192         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
82193         instead of "TZ=America/Vancouver".  From Paul Eggert.
82194
82195 1998-10-11  Jim Meyering  <meyering@ascend.com>
82196
82197         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
82198         This adds a test for a recently added compatibility fix for mktime.c.
82199         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
82200
82201 1998-09-27  Jim Meyering  <meyering@ascend.com>
82202
82203         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
82204
82205         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
82206         ../configure.in, including a change from Gordon Matzigkeit to allow
82207         cross-compiling for the Hurd.
82208
82209         * m4/glibc.m4: New file/macro to test for the GNU C Library
82210         versions 1 and 2.  From Gordon Matzigkeit.
82211         Indent.
82212
82213 1998-09-21  Jim Meyering  <meyering@ascend.com>
82214
82215         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
82216
82217 1998-08-18  Paul Eggert  <eggert@twinsun.com>
82218
82219         Port nanosecond-resolution times to UnixWare 2.1.2 and
82220         pedantic Solaris 2.6.
82221
82222         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
82223         AC_STRUCT_ST_MTIM.
82224         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
82225         Generate name of ns member, instead of just 1 or undef.
82226         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
82227
82228 1998-08-15  Jim Meyering  <meyering@ascend.com>
82229
82230         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
82231         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
82232         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
82233         instead of jm_TYPE_SSIZE_T.
82234
82235 1998-08-12  Jim Meyering  <meyering@ascend.com>
82236
82237         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
82238
82239 1998-08-02  Jim Meyering  <meyering@ascend.com>
82240
82241         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
82242         in acconfig.h manually.
82243
82244 1998-07-31  Paul Eggert  <eggert@twinsun.com>
82245
82246         * m4/st_mtim.m4: New file.
82247
82248 1998-07-28  Jim Meyering  <meyering@ascend.com>
82249
82250         * m4/utimes.m4: Undef stat.
82251
82252 1998-07-25  Jim Meyering  <meyering@ascend.com>
82253
82254         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
82255         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
82256
82257 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
82258
82259         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
82260         uid and gid actually remain unchanged.
82261
82262 1998-07-07  Jim Meyering  <meyering@ascend.com>
82263
82264         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
82265
82266 1998-07-04  Jim Meyering  <meyering@ascend.com>
82267
82268         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
82269         to prove that this macro can be used in packages without regex.c.
82270
82271 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
82272
82273         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
82274         is to be used.
82275
82276 1998-07-03  Jim Meyering  <meyering@ascend.com>
82277
82278         * m4/gettext.m4: Add -lintl if it's found to be necessary.
82279
82280         * m4/gettext.m4: New file -- from gettext-0.10.35.
82281         * m4/lcmessage.m4: Likewise.
82282         * m4/progtest.m4: Likewise.
82283
82284         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
82285         * m4/jm-macros.m4: Require the new macro.
82286
82287 1998-06-29  Jim Meyering  <meyering@ascend.com>
82288
82289         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
82290         for the definition of NGROUPS (used in a system header included
82291         by sys/mount.h).
82292
82293 1998-06-28  Jim Meyering  <meyering@ascend.com>
82294
82295         * m4/ls-mntd-fs.m4: New file.
82296         * m4/fstypename.m4: New file.
82297
82298         * m4/jm-macros.m4: Require the new macro.
82299         * m4/jm-glibc-io.m4: New file.
82300
82301 1998-05-19  Jim Meyering  <meyering@ascend.com>
82302
82303         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
82304         * m4/lchown.m4: New file.
82305
82306         * m4/Makefile.am.in: New file.
82307         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
82308
82309 1998-05-14  Jim Meyering  <meyering@ascend.com>
82310
82311         * m4/Makefile.am (EXTRA_DIST): Add them.
82312         * m4/jm-macros.m4: New file.
82313         * m4/utimbuf.m4: New file.
82314
82315 1998-05-12  Jim Meyering  <meyering@ascend.com>
82316
82317         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
82318
82319 1998-05-11  Jim Meyering  <meyering@ascend.com>
82320
82321         * m4/isc-posix.m4: New file.
82322
82323 1998-05-10  Jim Meyering  <meyering@ascend.com>
82324
82325         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
82326
82327 1998-05-09  Jim Meyering  <meyering@ascend.com>
82328
82329         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
82330         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
82331         with automake.
82332
82333         * m4/ssize_t.m4: New file.
82334         * m4/mktime.m4: Remove file -- the new automake has this now.
82335
82336 1998-04-26  Jim Meyering  <meyering@ascend.com>
82337
82338         * m4/assert.m4: New file.
82339         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
82340
82341 1998-04-05  Jim Meyering  <meyering@ascend.com>
82342
82343         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
82344         (jm_PREREQ): Use it here.
82345
82346 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
82347
82348         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
82349         in acconfig.h.
82350
82351 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
82352
82353         * m4/prereq.m4: New file.
82354         * m4/error.m4: New file.
82355         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
82356
82357 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
82358
82359         * m4/getline.m4: Don't set am_cv_func_working_getline before the
82360         cache-check for the same variable -- that defeated the purpose of
82361         the test; the test program was never run.  This was a problem only
82362         on systems with losing getline functions -- HP-UX 10.20 is one.
82363         Reported by Bjorn Helgaas.
82364
82365 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
82366
82367         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
82368
82369 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
82370
82371         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
82372
82373         * m4/const.m4: New file.  Use an initializer in this declaration
82374         typedef int charset[2]; const charset x;
82375         Reported by Bob Glickstein.
82376
82377 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
82378
82379         * m4/chown.m4: Fix reversed types on -1 args to chown.
82380         From Kaveh Ghazi.
82381
82382 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
82383
82384         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
82385         Add lseek and memchr.
82386
82387         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
82388         T.E.Dickey <dickey@clark.net> said that some older preprocessors
82389         have a 20-character limit on names.
82390
82391 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
82392
82393         * m4/inttypes_h.m4: New file.
82394         * m4/uintmax_t.m4: New file.
82395         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
82396
82397
82398         -----
82399
82400         Local Variables:
82401         coding: utf-8
82402         End:
82403
82404         Copyright (C) 1997-2011 Free Software Foundation, Inc.
82405
82406         Copying and distribution of this file, with or without
82407         modification, are permitted provided the copyright notice
82408         and this notice are preserved.