wcsncmp: Move AC_LIBOBJ invocations to module description.
[gnulib.git] / ChangeLog
1 2011-05-22  Bruno Haible  <bruno@clisp.org>
2
3         wcsncmp: Move AC_LIBOBJ invocations to module description.
4         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
5         here...
6         * modules/wcsncmp (configure.ac): ... to here.
7
8 2011-05-22  Bruno Haible  <bruno@clisp.org>
9
10         wcsncat: Move AC_LIBOBJ invocations to module description.
11         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
12         here...
13         * modules/wcsncat (configure.ac): ... to here.
14
15 2011-05-22  Bruno Haible  <bruno@clisp.org>
16
17         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
18         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
19         from here...
20         * modules/wcsncasecmp (configure.ac): ... to here.
21
22 2011-05-22  Bruno Haible  <bruno@clisp.org>
23
24         wcslen: Move AC_LIBOBJ invocations to module description.
25         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
26         * modules/wcslen (configure.ac): ... to here.
27
28 2011-05-22  Bruno Haible  <bruno@clisp.org>
29
30         wcsdup: Move AC_LIBOBJ invocations to module description.
31         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
32         * modules/wcsdup (configure.ac): ... to here.
33
34 2011-05-22  Bruno Haible  <bruno@clisp.org>
35
36         wcscspn: Move AC_LIBOBJ invocations to module description.
37         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
38         here...
39         * modules/wcscspn (configure.ac): ... to here.
40
41 2011-05-22  Bruno Haible  <bruno@clisp.org>
42
43         wcscpy: Move AC_LIBOBJ invocations to module description.
44         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
45         * modules/wcscpy (configure.ac): ... to here.
46
47 2011-05-22  Bruno Haible  <bruno@clisp.org>
48
49         wcscoll: Move AC_LIBOBJ invocations to module description.
50         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
51         here...
52         * modules/wcscoll (configure.ac): ... to here.
53
54 2011-05-22  Bruno Haible  <bruno@clisp.org>
55
56         wcscmp: Move AC_LIBOBJ invocations to module description.
57         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
58         * modules/wcscmp (configure.ac): ... to here.
59
60 2011-05-22  Bruno Haible  <bruno@clisp.org>
61
62         wcschr: Move AC_LIBOBJ invocations to module description.
63         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
64         * modules/wcschr (configure.ac): ... to here.
65
66 2011-05-22  Bruno Haible  <bruno@clisp.org>
67
68         wcscat: Move AC_LIBOBJ invocations to module description.
69         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
70         * modules/wcscat (configure.ac): ... to here.
71
72 2011-05-22  Bruno Haible  <bruno@clisp.org>
73
74         wcscasecmp: Move AC_LIBOBJ invocations to module description.
75         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
76         here...
77         * modules/wcscasecmp (configure.ac): ... to here.
78
79 2011-05-22  Bruno Haible  <bruno@clisp.org>
80
81         wcrtomb: Move AC_LIBOBJ invocations to module description.
82         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
83         invocations from here...
84         * modules/wcrtomb (configure.ac): ... to here.
85
86 2011-05-22  Bruno Haible  <bruno@clisp.org>
87
88         wcpncpy: Move AC_LIBOBJ invocations to module description.
89         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
90         here...
91         * modules/wcpncpy (configure.ac): ... to here.
92
93 2011-05-22  Bruno Haible  <bruno@clisp.org>
94
95         wcpcpy: Move AC_LIBOBJ invocations to module description.
96         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
97         * modules/wcpcpy (configure.ac): ... to here.
98
99 2011-05-22  Bruno Haible  <bruno@clisp.org>
100
101         waitpid: Move AC_LIBOBJ invocations to module description.
102         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
103         invocation from here...
104         * modules/waitpid (configure.ac): ... to here.
105
106 2011-05-22  Bruno Haible  <bruno@clisp.org>
107
108         utimensat: Move AC_LIBOBJ invocations to module description.
109         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
110         here...
111         * modules/utimensat (configure.ac): ... to here.
112
113 2011-05-22  Bruno Haible  <bruno@clisp.org>
114
115         usleep: Move AC_LIBOBJ invocations to module description.
116         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
117         here...
118         * modules/usleep (configure.ac): ... to here.
119
120 2011-05-22  Bruno Haible  <bruno@clisp.org>
121
122         unlockpt: Move AC_LIBOBJ invocations to module description.
123         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
124         gl_PREREQ_UNLOCKPT invocations from here...
125         * modules/unlockpt (configure.ac): ... to here.
126
127 2011-05-22  Bruno Haible  <bruno@clisp.org>
128
129         unlink: Respect rules for use of AC_LIBOBJ.
130         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
131         * modules/unlink (configure.ac): ... to here.
132
133 2011-05-22  Bruno Haible  <bruno@clisp.org>
134
135         uname: Move AC_LIBOBJ invocations to module description.
136         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
137         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
138         here...
139         * modules/uname (configure.ac): ... to here.
140
141 2011-05-22  Bruno Haible  <bruno@clisp.org>
142
143         ttyname_r: Move AC_LIBOBJ invocations to module description.
144         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
145         gl_PREREQ_TTYNAME_R invocations from here...
146         * modules/ttyname_r (configure.ac): ... to here.
147
148 2011-05-22  Bruno Haible  <bruno@clisp.org>
149
150         tsearch: Move AC_LIBOBJ invocations to module description.
151         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
152         invocations from here...
153         * modules/tsearch (configure.ac): ... to here.
154
155 2011-05-22  Bruno Haible  <bruno@clisp.org>
156
157         towctrans: Move AC_LIBOBJ invocations to module description.
158         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
159         AC_LIBOBJ invocation from here...
160         * modules/towctrans (configure.ac): ... to here.
161
162 2011-05-22  Bruno Haible  <bruno@clisp.org>
163
164         tmpfile: Move AC_LIBOBJ invocations to module description.
165         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
166         invocations from here...
167         * modules/tmpfile (configure.ac): ... to here.
168
169 2011-05-22  Bruno Haible  <bruno@clisp.org>
170
171         times: Move AC_LIBOBJ invocations to module description.
172         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
173         * modules/times (configure.ac): ... to here.
174
175 2011-05-22  Bruno Haible  <bruno@clisp.org>
176
177         time_r: Move AC_LIBOBJ invocations to module description.
178         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
179         invocations from here...
180         * modules/time_r (configure.ac): ... to here.
181
182 2011-05-22  Bruno Haible  <bruno@clisp.org>
183
184         timegm: Move AC_LIBOBJ invocations to module description.
185         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
186         invocations from here...
187         * modules/timegm (configure.ac): ... to here.
188
189 2011-05-22  Bruno Haible  <bruno@clisp.org>
190
191         tcgetsid: Move AC_LIBOBJ invocations to module description.
192         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
193         and gl_PREREQ_TCGETSID invocations from here...
194         * modules/tcgetsid (configure.ac): ... to here.
195         (Depends-on): Update conditions.
196
197 2011-05-22  Bruno Haible  <bruno@clisp.org>
198
199         symlinkat: Move AC_LIBOBJ invocations to module description.
200         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
201         here...
202         * modules/symlinkat (configure.ac): ... to here.
203
204 2011-05-22  Bruno Haible  <bruno@clisp.org>
205
206         symlink: Move AC_LIBOBJ invocations to module description.
207         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
208         here...
209         * modules/symlink (configure.ac): ... to here.
210
211 2011-05-22  Bruno Haible  <bruno@clisp.org>
212
213         strverscmp: Move AC_LIBOBJ invocations to module description.
214         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
215         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
216         from here...
217         * modules/strverscmp (configure.ac): ... to here.
218
219 2011-05-22  Bruno Haible  <bruno@clisp.org>
220
221         strtok_r: Move AC_LIBOBJ invocations to module description.
222         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
223         and gl_PREREQ_STRTOK_R invocations from here...
224         * modules/strtok_r (configure.ac): ... to here.
225         (Depends-on): Update conditions.
226
227 2011-05-22  Bruno Haible  <bruno@clisp.org>
228
229         strtoumax: Move AC_LIBOBJ invocations to module description.
230         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
231         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
232         from here...
233         * modules/strtoumax (configure.ac): ... to here.
234
235 2011-05-22  Bruno Haible  <bruno@clisp.org>
236
237         strtoimax: Move AC_LIBOBJ invocations to module description.
238         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
239         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
240         from here...
241         * modules/strtoimax (configure.ac): ... to here.
242
243 2011-05-22  Bruno Haible  <bruno@clisp.org>
244
245         strtoull: Move AC_LIBOBJ invocations to module description.
246         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
247         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
248         from here...
249         * modules/strtoull (configure.ac): ... to here.
250
251 2011-05-22  Bruno Haible  <bruno@clisp.org>
252
253         strtoll: Move AC_LIBOBJ invocations to module description.
254         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
255         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
256         here...
257         * modules/strtoll (configure.ac): ... to here.
258
259 2011-05-22  Bruno Haible  <bruno@clisp.org>
260
261         strtoul: Move AC_LIBOBJ invocations to module description.
262         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
263         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
264         * modules/strtoul (configure.ac): ... to here.
265
266 2011-05-22  Bruno Haible  <bruno@clisp.org>
267
268         strtol: Move AC_LIBOBJ invocations to module description.
269         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
270         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
271         * modules/strtol (configure.ac): ... to here.
272
273 2011-05-22  Bruno Haible  <bruno@clisp.org>
274
275         strtod: Move AC_LIBOBJ invocations to module description.
276         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
277         invocations from here...
278         * modules/strtod (configure.ac): ... to here.
279
280 2011-05-22  Bruno Haible  <bruno@clisp.org>
281
282         strstr*: Move AC_LIBOBJ invocations to module description.
283         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
284         invocations from here...
285         * modules/strstr-simple (configure.ac): ... to here.
286         * modules/strstr (configure.ac): ... and here.
287
288 2011-05-22  Bruno Haible  <bruno@clisp.org>
289
290         strsignal: Move AC_LIBOBJ invocations to module description.
291         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
292         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
293         * modules/strsignal (configure.ac): ... to here.
294         (Depends-on): Update conditions.
295
296 2011-05-22  Bruno Haible  <bruno@clisp.org>
297
298         strsep: Move AC_LIBOBJ invocations to module description.
299         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
300         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
301         here...
302         * modules/strsep (configure.ac): ... to here.
303
304 2011-05-22  Bruno Haible  <bruno@clisp.org>
305
306         strptime: Move AC_LIBOBJ invocations to module description.
307         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
308         gl_PREREQ_STRPTIME invocations from here...
309         * modules/strptime (configure.ac): ... to here.
310
311 2011-05-22  Bruno Haible  <bruno@clisp.org>
312
313         strpbrk: Move AC_LIBOBJ invocations to module description.
314         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
315         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
316         here...
317         * modules/strpbrk (configure.ac): ... to here.
318
319 2011-05-22  Bruno Haible  <bruno@clisp.org>
320
321         strnlen: Move AC_LIBOBJ invocations to module description.
322         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
323         invocations from here...
324         * modules/strnlen (configure.ac): ... to here.
325
326 2011-05-22  Bruno Haible  <bruno@clisp.org>
327
328         strndup: Move AC_LIBOBJ invocations to module description.
329         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
330         invocations from here...
331         * modules/strndup (configure.ac): ... to here.
332         (Depends-on): Update conditions.
333
334 2011-05-22  Bruno Haible  <bruno@clisp.org>
335
336         strncat: Move AC_LIBOBJ invocations to module description.
337         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
338         invocations from here...
339         * modules/strncat (configure.ac): ... to here.
340
341 2011-05-22  Bruno Haible  <bruno@clisp.org>
342
343         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
344         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
345         invocations from here...
346         * modules/strdup (configure.ac): ... to here.
347         * modules/strdup-posix (configure.ac): ... and here.
348
349 2011-05-22  Bruno Haible  <bruno@clisp.org>
350
351         strcspn: Move AC_LIBOBJ invocations to module description.
352         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
353         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
354         here...
355         * modules/strcspn (configure.ac): ... to here.
356
357 2011-05-22  Bruno Haible  <bruno@clisp.org>
358
359         strchrnul: Move AC_LIBOBJ invocations to module description.
360         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
361         gl_PREREQ_STRCHRNUL invocations from here...
362         * modules/strchrnul (configure.ac): ... to here.
363
364 2011-05-22  Bruno Haible  <bruno@clisp.org>
365
366         strcasestr*: Move AC_LIBOBJ invocations to module description.
367         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
368         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
369         * modules/strcasestr-simple (configure.ac): ... to here.
370         * modules/strcasestr (configure.ac): ... and here.
371
372 2011-05-22  Bruno Haible  <bruno@clisp.org>
373
374         strcase: Move AC_LIBOBJ invocations to module description.
375         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
376         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
377         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
378         gl_PREREQ_STRNCASECMP invocations from here...
379         * modules/strcase (configure.ac): ... to here.
380
381 2011-05-22  Bruno Haible  <bruno@clisp.org>
382
383         stpncpy: Move AC_LIBOBJ invocations to module description.
384         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
385         here...
386         * modules/stpncpy (configure.ac): ... to here.
387
388 2011-05-22  Bruno Haible  <bruno@clisp.org>
389
390         stpcpy: Move AC_LIBOBJ invocations to module description.
391         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
392         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
393         here...
394         * modules/stpcpy (configure.ac): ... to here.
395
396 2011-05-21  Bruno Haible  <bruno@clisp.org>
397
398         stat: Move AC_LIBOBJ invocations to module description.
399         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
400         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
401         here...
402         * modules/stat (configure.ac): ... to here.
403
404 2011-05-21  Bruno Haible  <bruno@clisp.org>
405
406         sleep: Move AC_LIBOBJ invocations to module description.
407         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
408         * modules/sleep (configure.ac): ... to here.
409
410 2011-05-21  Bruno Haible  <bruno@clisp.org>
411
412         signbit: Move AC_LIBOBJ invocations to module description.
413         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
414         * modules/signbit (configure.ac): ... to here.
415
416 2011-05-21  Bruno Haible  <bruno@clisp.org>
417
418         sigprocmask: Move AC_LIBOBJ invocations to module description.
419         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
420         gl_PREREQ_SIGPROMASK invocations from here...
421         * modules/sigprocmask (configure.ac): ... to here.
422
423 2011-05-21  Bruno Haible  <bruno@clisp.org>
424
425         sigaction: Move AC_LIBOBJ invocations to module description.
426         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
427         gl_PREREQ_SIGACTION invocations from here...
428         * modules/sigaction (configure.ac): ... to here.
429
430 2011-05-21  Bruno Haible  <bruno@clisp.org>
431
432         sig2str: Move AC_LIBOBJ invocations to module description.
433         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
434         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
435         here...
436         * modules/sig2str (configure.ac): ... to here.
437
438 2011-05-21  Bruno Haible  <bruno@clisp.org>
439
440         setlocale: Move AC_LIBOBJ invocations to module description.
441         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
442         gl_PREREQ_SETLOCALE invocations from here...
443         * modules/setlocale (configure.ac): ... to here.
444
445 2011-05-21  Bruno Haible  <bruno@clisp.org>
446
447         unsetenv: Move AC_LIBOBJ invocations to module description.
448         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
449         and gl_PREREQ_UNSETENV invocations from here...
450         * modules/unsetenv (configure.ac): ... to here.
451         (Depends-on): Update.
452
453 2011-05-21  Bruno Haible  <bruno@clisp.org>
454
455         setenv: Move AC_LIBOBJ invocations to module description.
456         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
457         here...
458         * modules/setenv (configure.ac): ... to here.
459
460 2011-05-21  Bruno Haible  <bruno@clisp.org>
461
462         selinux-h: Move AC_LIBOBJ invocations to module description.
463         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
464         AC_LIBOBJ invocation from here...
465         * modules/selinux-h (configure.ac): ... to here.
466
467 2011-05-21  Bruno Haible  <bruno@clisp.org>
468
469         select: Respect rules for use of AC_LIBOBJ.
470         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
471         here...
472         * modules/select (configure.ac): ... to here.
473
474 2011-05-21  Bruno Haible  <bruno@clisp.org>
475
476         scandir: Move AC_LIBOBJ invocations to module description.
477         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
478         invocations from here...
479         * modules/scandir (configure.ac): ... to here.
480
481 2011-05-21  Bruno Haible  <bruno@clisp.org>
482
483         rpmatch: Move AC_LIBOBJ invocations to module description.
484         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
485         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
486         here...
487         * modules/rpmatch (configure.ac): ... to here.
488
489 2011-05-21  Bruno Haible  <bruno@clisp.org>
490
491         rmdir: Respect rules for use of AC_LIBOBJ.
492         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
493         * modules/rmdir (configure.ac): ... to here.
494
495 2011-05-21  Bruno Haible  <bruno@clisp.org>
496
497         renameat: Move AC_LIBOBJ invocations to module description.
498         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
499         here...
500         * modules/renameat (configure.ac): ... to here.
501
502 2011-05-21  Bruno Haible  <bruno@clisp.org>
503
504         rename: Respect rules for use of AC_LIBOBJ.
505         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
506         here...
507         * modules/rename (configure.ac): ... to here.
508
509 2011-05-21  Bruno Haible  <bruno@clisp.org>
510
511         remove: Move AC_LIBOBJ invocations to module description.
512         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
513         here...
514         * modules/remove (configure.ac): ... to here.
515
516 2011-05-21  Bruno Haible  <bruno@clisp.org>
517
518         relocatable-lib: Move AC_LIBOBJ invocations to module description.
519         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
520         macro.
521         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
522         * modules/relocatable-lib (configure.ac): ... to here.
523         * modules/relocatable-prog-wrapper (configure.ac): Invoke
524         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
525
526 2011-05-21  Bruno Haible  <bruno@clisp.org>
527
528         relocatable-prog: Move AC_LIBOBJ invocations to module description.
529         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
530         here...
531         * modules/relocatable-prog (configure.ac): ... to here.
532
533 2011-05-21  Bruno Haible  <bruno@clisp.org>
534
535         regex: Move AC_LIBOBJ invocations to module description.
536         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
537         invocations from here...
538         * modules/regex (configure.ac): ... to here.
539
540 2011-05-21  Bruno Haible  <bruno@clisp.org>
541
542         realloc-*: Move AC_LIBOBJ invocations to module description.
543         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
544         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
545         AC_LIBOBJ invocations from here...
546         * modules/realloc-gnu (configure.ac): ... to here.
547         * modules/realloc-posix (configure.ac): ... and here.
548
549 2011-05-21  Bruno Haible  <bruno@clisp.org>
550
551         readutmp: Move AC_LIBOBJ invocations to module description.
552         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
553         * modules/readutmp (configure.ac): ... to here.
554
555 2011-05-21  Bruno Haible  <bruno@clisp.org>
556
557         readlinkat: Move AC_LIBOBJ invocations to module description.
558         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
559         here...
560         * modules/readlinkat (configure.ac): ... to here.
561
562 2011-05-21  Bruno Haible  <bruno@clisp.org>
563
564         readlink: Move AC_LIBOBJ invocations to module description.
565         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
566         gl_PREREQ_READLINK invocations from here...
567         * modules/readlink (configure.ac): ... to here.
568
569 2011-05-21  Bruno Haible  <bruno@clisp.org>
570
571         readline: Move AC_LIBOBJ invocations to module description.
572         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
573         gl_PREREQ_READLINE invocations from here...
574         * modules/readline (configure.ac): ... to here.
575
576 2011-05-21  Bruno Haible  <bruno@clisp.org>
577
578         read: Move AC_LIBOBJ invocations to module description.
579         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
580         * modules/read (configure.ac): ... to here.
581
582 2011-05-21  Bruno Haible  <bruno@clisp.org>
583
584         rawmemchr: Move AC_LIBOBJ invocations to module description.
585         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
586         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
587         from here...
588         * modules/rawmemchr (configure.ac): ... to here.
589
590 2011-05-21  Bruno Haible  <bruno@clisp.org>
591
592         random_r: Move AC_LIBOBJ invocations to module description.
593         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
594         gl_PREREQ_RANDOM_R invocations from here...
595         * modules/random_r (configure.ac): ... to here.
596
597 2011-05-21  Bruno Haible  <bruno@clisp.org>
598
599         pwrite: Move AC_LIBOBJ invocations to module description.
600         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
601         * modules/pwrite (configure.ac): ... to here.
602
603 2011-05-21  Bruno Haible  <bruno@clisp.org>
604
605         putenv: Move AC_LIBOBJ invocations to module description.
606         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
607         * modules/putenv (configure.ac): ... to here.
608
609 2011-05-21  Bruno Haible  <bruno@clisp.org>
610
611         login_tty: Move AC_LIBOBJ invocations to module description.
612         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
613         * modules/login_tty (configure.ac): ... to here.
614
615 2011-05-21  Bruno Haible  <bruno@clisp.org>
616
617         openpty: Move AC_LIBOBJ invocations to module description.
618         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
619         * modules/openpty (configure.ac): ... to here.
620
621 2011-05-21  Bruno Haible  <bruno@clisp.org>
622
623         forkpty: Move AC_LIBOBJ invocations to module description.
624         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
625         * modules/forkpty (configure.ac): ... to here.
626
627 2011-05-21  Bruno Haible  <bruno@clisp.org>
628
629         ptsname: Move AC_LIBOBJ invocations to module description.
630         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
631         invocations from here...
632         * modules/ptsname (configure.ac): ... to here.
633
634 2011-05-21  Bruno Haible  <bruno@clisp.org>
635
636         pread: Move AC_LIBOBJ invocations to module description.
637         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
638         * modules/pread (configure.ac): ... to here.
639
640 2011-05-21  Bruno Haible  <bruno@clisp.org>
641
642         posix_spawn*: Move AC_LIBOBJ invocations to module description.
643         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
644         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
645         * modules/posix_spawn (configure.ac): ... to here.
646         * modules/posix_spawnp (configure.ac): ... and here.
647
648 2011-05-21  Bruno Haible  <bruno@clisp.org>
649
650         popen: Move AC_LIBOBJ invocations to module description.
651         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
652         invocations from here...
653         * modules/popen (configure.ac): ... to here.
654
655 2011-05-21  Bruno Haible  <bruno@clisp.org>
656
657         poll: Move AC_LIBOBJ invocations to module description.
658         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
659         invocations from here...
660         * modules/poll (configure.ac): ... to here.
661
662 2011-05-21  Bruno Haible  <bruno@clisp.org>
663
664         pipe-posix: Move AC_LIBOBJ invocations to module description.
665         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
666         * modules/pipe-posix (configure.ac): ... to here.
667
668 2011-05-21  Bruno Haible  <bruno@clisp.org>
669
670         openat: Respect rules for use of AC_LIBOBJ.
671         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
672         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
673         * modules/openat (configure.ac): ... to here.
674
675 2011-05-21  Bruno Haible  <bruno@clisp.org>
676
677         obstack-printf*: Move AC_LIBOBJ invocations to module description.
678         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
679         invocation from here...
680         * modules/obstack-printf (configure.ac): ... to here.
681         * modules/obstack-printf-posix (configure.ac): ... and here.
682
683 2011-05-21  Bruno Haible  <bruno@clisp.org>
684
685         nl_langinfo: Move AC_LIBOBJ invocations to module description.
686         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
687         from here...
688         * modules/nl_langinfo (configure.ac): ... to here.
689
690 2011-05-21  Bruno Haible  <bruno@clisp.org>
691
692         nanosleep: Move AC_LIBOBJ invocations to module description.
693         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
694         gl_PREREQ_NANOSLEEP invocations from here...
695         * modules/nanosleep (configure.ac): ... to here.
696
697 2011-05-21  Bruno Haible  <bruno@clisp.org>
698
699         mountlist: Move AC_LIBOBJ invocations to module description.
700         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
701         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
702         * modules/mountlist (configure.ac): ... to here.
703
704 2011-05-21  Bruno Haible  <bruno@clisp.org>
705
706         mktime: Respect rules for use of AC_LIBOBJ.
707         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
708         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
709         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
710         (gl_FUNC_MKTIME_INTERNAL): ... and here...
711         * modules/mktime (configure.ac): ... to here.
712         * modules/mktime-internal (configure.ac): ... and here.
713         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
714
715 2011-05-21  Bruno Haible  <bruno@clisp.org>
716
717         mkstemps: Move AC_LIBOBJ invocations to module description.
718         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
719         here...
720         * modules/mkstemps (configure.ac): ... to here.
721
722 2011-05-21  Bruno Haible  <bruno@clisp.org>
723
724         mkstemp: Move AC_LIBOBJ invocations to module description.
725         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
726         gl_PREREQ_MKSTEMP invocations from here...
727         * modules/mkstemp (configure.ac): ... to here.
728
729 2011-05-21  Bruno Haible  <bruno@clisp.org>
730
731         mkostemps: Move AC_LIBOBJ invocations to module description.
732         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
733         here...
734         * modules/mkostemps (configure.ac): ... to here.
735
736 2011-05-21  Bruno Haible  <bruno@clisp.org>
737
738         mkostemp: Move AC_LIBOBJ invocations to module description.
739         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
740         gl_PREREQ_MKOSTEMP invocations from here...
741         * modules/mkostemp (configure.ac): ... to here.
742
743 2011-05-21  Bruno Haible  <bruno@clisp.org>
744
745         mknod: Move AC_LIBOBJ invocations to module description.
746         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
747         * modules/mknod (configure.ac): ... to here.
748
749 2011-05-21  Bruno Haible  <bruno@clisp.org>
750
751         mkfifoat: Move AC_LIBOBJ invocations to module description.
752         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
753         here...
754         * modules/mkfifoat (configure.ac): ... to here.
755
756 2011-05-21  Bruno Haible  <bruno@clisp.org>
757
758         mkfifo: Respect rules for use of AC_LIBOBJ.
759         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
760         here...
761         * modules/mkfifo (configure.ac): ... to here.
762
763 2011-05-21  Bruno Haible  <bruno@clisp.org>
764
765         mkdtemp: Move AC_LIBOBJ invocations to module description.
766         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
767         invocations from here...
768         * modules/mkdtemp (configure.ac): ... to here.
769
770 2011-05-21  Bruno Haible  <bruno@clisp.org>
771
772         mkdir: Move AC_LIBOBJ invocations to module description.
773         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
774         * modules/mkdir (configure.ac): ... to here.
775
776 2011-05-21  Bruno Haible  <bruno@clisp.org>
777
778         memset: Move AC_LIBOBJ invocations to module description.
779         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
780         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
781         here...
782         * modules/memset (configure.ac): ... to here.
783
784 2011-05-21  Bruno Haible  <bruno@clisp.org>
785
786         memrchr: Move AC_LIBOBJ invocations to module description.
787         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
788         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
789         here...
790         * modules/memrchr (configure.ac): ... to here.
791
792 2011-05-21  Bruno Haible  <bruno@clisp.org>
793
794         mempcpy: Move AC_LIBOBJ invocations to module description.
795         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
796         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
797         here...
798         * modules/mempcpy (configure.ac): ... to here.
799
800 2011-05-21  Bruno Haible  <bruno@clisp.org>
801
802         memmove: Move AC_LIBOBJ invocations to module description.
803         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
804         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
805         here...
806         * modules/memmove (configure.ac): ... to here.
807
808 2011-05-21  Bruno Haible  <bruno@clisp.org>
809
810         memmem*: Move AC_LIBOBJ invocations to module description.
811         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
812         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
813         here...
814         (gl_FUNC_MEMMEM): ... and here...
815         * modules/memmem-simple (configure.ac): ... to here.
816         * modules/memmem (configure.ac): ... and here.
817
818 2011-05-21  Bruno Haible  <bruno@clisp.org>
819
820         memcpy: Move AC_LIBOBJ invocations to module description.
821         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
822         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
823         here...
824         * modules/memcpy (configure.ac): ... to here.
825
826 2011-05-21  Bruno Haible  <bruno@clisp.org>
827
828         memcmp: Simplify autoconf macro.
829         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
830         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
831         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
832
833 2011-05-21  Bruno Haible  <bruno@clisp.org>
834
835         memcmp: Move AC_LIBOBJ invocations to module description.
836         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
837         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
838         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
839         * modules/memcmp (configure.ac): ... to here.
840         (Depends-on): Update conditions.
841
842 2011-05-21  Bruno Haible  <bruno@clisp.org>
843
844         memchr: Respect rules for use of AC_LIBOBJ.
845         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
846         invocations from here...
847         * modules/memchr (configure.ac): ... to here.
848
849 2011-05-21  Bruno Haible  <bruno@clisp.org>
850
851         mbtowc: Move AC_LIBOBJ invocations to module description.
852         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
853         invocations from here...
854         * modules/mbtowc (configure.ac): ... to here.
855
856 2011-05-21  Bruno Haible  <bruno@clisp.org>
857
858         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
859         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
860         gl_PREREQ_MBSRTOWCS invocations from here...
861         * modules/mbsrtowcs (configure.ac): ... to here.
862
863 2011-05-21  Bruno Haible  <bruno@clisp.org>
864
865         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
866         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
867         gl_PREREQ_MBSNRTOWCS invocations from here...
868         * modules/mbsnrtowcs (configure.ac): ... to here.
869
870 2011-05-21  Bruno Haible  <bruno@clisp.org>
871
872         mbsinit: Move AC_LIBOBJ invocations to module description.
873         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
874         invocations from here...
875         * modules/mbsinit (configure.ac): ... to here.
876
877 2011-05-21  Bruno Haible  <bruno@clisp.org>
878
879         mbrlen: Move AC_LIBOBJ invocations to module description.
880         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
881         invocations from here...
882         * modules/mbrlen (configure.ac): ... to here.
883
884 2011-05-21  Bruno Haible  <bruno@clisp.org>
885
886         mbrtowc: Respect rules for use of AC_LIBOBJ.
887         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
888         invocations from here...
889         * modules/mbrtowc (configure.ac): ... to here.
890
891 2011-05-21  Bruno Haible  <bruno@clisp.org>
892
893         malloc-*: Move AC_LIBOBJ invocations to module description.
894         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
895         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
896         AC_LIBOBJ invocations from here...
897         * modules/malloc-gnu (configure.ac): ... to here.
898         * modules/malloc-posix (configure.ac): ... and here.
899
900 2011-05-21  Bruno Haible  <bruno@clisp.org>
901
902         lstat, openat: Respect rules for use of AC_LIBOBJ.
903         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
904         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
905         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
906         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
907         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
908         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
909         here.
910         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
911
912 2011-05-21  Bruno Haible  <bruno@clisp.org>
913
914         lseek: Move AC_LIBOBJ invocations to module description.
915         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
916         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
917         * modules/lseek (configure.ac): ... to here.
918
919 2011-05-21  Bruno Haible  <bruno@clisp.org>
920
921         linkat: Move AC_LIBOBJ invocations to module description.
922         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
923         here...
924         * modules/linkat (configure.ac): ... to here.
925
926 2011-05-21  Bruno Haible  <bruno@clisp.org>
927
928         link: Respect rules for use of AC_LIBOBJ.
929         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
930         * modules/link (configure.ac): ... to here.
931
932 2011-05-21  Bruno Haible  <bruno@clisp.org>
933
934         lchown: Move AC_LIBOBJ invocations to module description.
935         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
936         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
937         * modules/lchown (configure.ac): ... to here.
938
939 2011-05-21  Bruno Haible  <bruno@clisp.org>
940
941         iswctype: Move AC_LIBOBJ invocations to module description.
942         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
943         here...
944         * modules/iswctype (configure.ac): ... to here.
945
946 2011-05-21  Bruno Haible  <bruno@clisp.org>
947
948         iswblank: Move AC_LIBOBJ invocations to module description.
949         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
950         here...
951         * modules/iswblank (configure.ac): ... to here.
952
953 2011-05-21  Bruno Haible  <bruno@clisp.org>
954
955         atanl: Move AC_LIBOBJ invocations to module description.
956         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
957         * modules/atanl (configure.ac): ... to here.
958
959 2011-05-21  Bruno Haible  <bruno@clisp.org>
960
961         acosl: Move AC_LIBOBJ invocations to module description.
962         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
963         * modules/acosl (configure.ac): ... to here.
964
965 2011-05-21  Bruno Haible  <bruno@clisp.org>
966
967         asinl: Respect rules for use of AC_LIBOBJ.
968         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
969         * modules/asinl (configure.ac): ... to here.
970
971 2011-05-21  Bruno Haible  <bruno@clisp.org>
972
973         tanl: Move AC_LIBOBJ invocations to module description.
974         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
975         * modules/tanl (configure.ac): ... to here.
976
977 2011-05-21  Bruno Haible  <bruno@clisp.org>
978
979         cosl: Move AC_LIBOBJ invocations to module description.
980         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
981         * modules/cosl (configure.ac): ... to here.
982
983 2011-05-21  Bruno Haible  <bruno@clisp.org>
984
985         sinl: Move AC_LIBOBJ invocations to module description.
986         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
987         * modules/sinl (configure.ac): ... to here.
988
989 2011-05-21  Bruno Haible  <bruno@clisp.org>
990
991         logl: Move AC_LIBOBJ invocations to module description.
992         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
993         * modules/logl (configure.ac): ... to here.
994
995 2011-05-21  Bruno Haible  <bruno@clisp.org>
996
997         expl: Move AC_LIBOBJ invocations to module description.
998         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
999         * modules/expl (configure.ac): ... to here.
1000
1001 2011-05-21  Bruno Haible  <bruno@clisp.org>
1002
1003         roundl: Move AC_LIBOBJ invocations to module description.
1004         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
1005         * modules/roundl (configure.ac): ... to here.
1006
1007 2011-05-21  Bruno Haible  <bruno@clisp.org>
1008
1009         round: Move AC_LIBOBJ invocations to module description.
1010         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
1011         * modules/round (configure.ac): ... to here.
1012
1013 2011-05-21  Bruno Haible  <bruno@clisp.org>
1014
1015         roundf: Move AC_LIBOBJ invocations to module description.
1016         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
1017         * modules/roundf (configure.ac): ... to here.
1018
1019 2011-05-21  Bruno Haible  <bruno@clisp.org>
1020
1021         truncl: Move AC_LIBOBJ invocations to module description.
1022         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
1023         * modules/truncl (configure.ac): ... to here.
1024
1025 2011-05-21  Bruno Haible  <bruno@clisp.org>
1026
1027         trunc: Move AC_LIBOBJ invocations to module description.
1028         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
1029         * modules/trunc (configure.ac): ... to here.
1030
1031 2011-05-21  Bruno Haible  <bruno@clisp.org>
1032
1033         truncf: Move AC_LIBOBJ invocations to module description.
1034         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
1035         * modules/truncf (configure.ac): ... to here.
1036
1037 2011-05-21  Bruno Haible  <bruno@clisp.org>
1038
1039         ceill: Move AC_LIBOBJ invocations to module description.
1040         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
1041         * modules/ceill (configure.ac): ... to here.
1042
1043 2011-05-21  Bruno Haible  <bruno@clisp.org>
1044
1045         ceil: Move AC_LIBOBJ invocations to module description.
1046         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
1047         * modules/ceil (configure.ac): ... to here.
1048
1049 2011-05-21  Bruno Haible  <bruno@clisp.org>
1050
1051         ceilf: Move AC_LIBOBJ invocations to module description.
1052         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
1053         * modules/ceilf (configure.ac): ... to here.
1054
1055 2011-05-21  Bruno Haible  <bruno@clisp.org>
1056
1057         floorl: Respect rules for use of AC_LIBOBJ.
1058         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
1059         * modules/floorl (configure.ac): ... to here.
1060
1061 2011-05-21  Bruno Haible  <bruno@clisp.org>
1062
1063         floor: Respect rules for use of AC_LIBOBJ.
1064         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
1065         * modules/floor (configure.ac): ... to here.
1066
1067 2011-05-21  Bruno Haible  <bruno@clisp.org>
1068
1069         floorf: Move AC_LIBOBJ invocations to module description.
1070         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
1071         * modules/floorf (configure.ac): ... to here.
1072
1073 2011-05-20  Bruno Haible  <bruno@clisp.org>
1074
1075         sqrtl: Respect rules for use of AC_LIBOBJ.
1076         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
1077         * modules/sqrtl (configure.ac): ... to here.
1078
1079 2011-05-20  Bruno Haible  <bruno@clisp.org>
1080
1081         ldexpl: Respect rules for use of AC_LIBOBJ.
1082         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
1083         * modules/ldexpl (configure.ac): ... to here.
1084
1085 2011-05-20  Bruno Haible  <bruno@clisp.org>
1086
1087         frexpl*: Respect rules for use of AC_LIBOBJ.
1088         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
1089         invocation from here...
1090         * modules/frexpl (configure.ac): ... to here.
1091         * modules/frexpl-nolibm (configure.ac): ... and here.
1092
1093 2011-05-20  Bruno Haible  <bruno@clisp.org>
1094
1095         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
1096         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
1097         invocation from here...
1098         * modules/frexp (configure.ac): ... to here.
1099         * modules/frexp-nolibm (configure.ac): ... and here.
1100
1101 2011-05-20  Bruno Haible  <bruno@clisp.org>
1102
1103         isnan: Respect rules for use of AC_LIBOBJ.
1104         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
1105         invocations here.
1106         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
1107         REPLACE_ISNAN.
1108         * modules/isnand (configure.ac): Likewise.
1109         * modules/isnanl (configure.ac): Likewise.
1110
1111 2011-05-20  Bruno Haible  <bruno@clisp.org>
1112
1113         isnanl*: Respect rules for use of AC_LIBOBJ.
1114         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
1115         invocation from here...
1116         * modules/isnanl (configure.ac): ... to here.
1117         * modules/isnanl-nolibm (configure.ac): ... and here.
1118
1119 2011-05-20  Bruno Haible  <bruno@clisp.org>
1120
1121         isnand*: Move AC_LIBOBJ invocations to module description.
1122         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
1123         invocation from here...
1124         * modules/isnand (configure.ac): ... to here.
1125         * modules/isnand-nolibm (configure.ac): ... and here.
1126
1127 2011-05-20  Bruno Haible  <bruno@clisp.org>
1128
1129         isnanf*: Move AC_LIBOBJ invocations to module description.
1130         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
1131         invocation from here...
1132         * modules/isnanf (configure.ac): ... to here.
1133         * modules/isnanf-nolibm (configure.ac): ... and here.
1134
1135 2011-05-20  Bruno Haible  <bruno@clisp.org>
1136
1137         isnan*: Separate the AC_LIBOBJ invocations.
1138         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
1139         AC_LIBOBJ invocation.
1140         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
1141         here.
1142         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
1143         AC_LIBOBJ invocation.
1144         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
1145         here.
1146         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
1147         AC_LIBOBJ invocation.
1148         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
1149         here.
1150         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
1151
1152 2011-05-08  Bruno Haible  <bruno@clisp.org>
1153
1154         isinf: Move AC_LIBOBJ invocations to module description.
1155         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
1156         * modules/isinf (configure.ac): ... to here.
1157
1158 2011-05-08  Bruno Haible  <bruno@clisp.org>
1159
1160         isfinite: Move AC_LIBOBJ invocations to module description.
1161         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
1162         * modules/isfinite (configure.ac): ... to here.
1163
1164 2011-05-08  Bruno Haible  <bruno@clisp.org>
1165
1166         isblank: Move AC_LIBOBJ invocations to module description.
1167         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
1168         here...
1169         * modules/isblank (configure.ac): ... to here.
1170
1171 2011-05-08  Bruno Haible  <bruno@clisp.org>
1172
1173         isapipe: Move AC_LIBOBJ invocations to module description.
1174         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
1175         gl_PREREQ_ISAPIPE invocations from here...
1176         * modules/isapipe (configure.ac): ... to here.
1177         (Depends-on): Update condition.
1178
1179 2011-05-08  Bruno Haible  <bruno@clisp.org>
1180
1181         ioctl: Move AC_LIBOBJ invocations to module description.
1182         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
1183         invocations from here...
1184         * modules/ioctl (configure.ac): ... to here.
1185         (Depends-on): Update condition.
1186
1187 2011-05-08  Bruno Haible  <bruno@clisp.org>
1188
1189         imaxdiv: Move AC_LIBOBJ invocations to module description.
1190         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
1191         invocations from here...
1192         * modules/imaxdiv (configure.ac): ... to here.
1193
1194 2011-05-08  Bruno Haible  <bruno@clisp.org>
1195
1196         imaxabs: Move AC_LIBOBJ invocations to module description.
1197         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
1198         invocations from here...
1199         * modules/imaxabs (configure.ac): ... to here.
1200
1201 2011-05-08  Bruno Haible  <bruno@clisp.org>
1202
1203         getaddrinfo: Move AC_LIBOBJ invocations to module description.
1204         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
1205         AC_LIBOBJ invocations from here...
1206         * modules/getaddrinfo (configure.ac): ... to here.
1207         (Depends-on): Add conditions.
1208
1209 2011-05-08  Bruno Haible  <bruno@clisp.org>
1210
1211         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1212         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
1213         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1214         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
1215         (gl_PREREQ_INET_PTON): ... from here.
1216         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
1217         gl_PREREQ_INET_PTON here.
1218         (Depends-on): Update condition.
1219
1220 2011-05-08  Bruno Haible  <bruno@clisp.org>
1221
1222         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1223         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
1224         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1225         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
1226         (gl_PREREQ_INET_NTOP): ... from here.
1227         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
1228         gl_PREREQ_INET_NTOP here.
1229         (Depends-on): Update condition.
1230
1231 2011-05-08  Bruno Haible  <bruno@clisp.org>
1232
1233         iconv_open: Move AC_LIBOBJ invocations to module description.
1234         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
1235         AC_LIBOBJ invocations from here...
1236         * modules/iconv_open (configure.ac): ... to here.
1237
1238 2011-05-08  Bruno Haible  <bruno@clisp.org>
1239
1240         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
1241         If module 'iconv_open' is among the main modules and module
1242         'iconv_open-utf' is among the tests dependencies, then
1243         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
1244         return the special iconv_t values. Therefore iconv() and iconv_close()
1245         must support these special iconv_t values, already in lib, not only in
1246         tests.
1247         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
1248         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
1249         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
1250         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
1251         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
1252         (Depends-on): Add the dependencies of iconv_open-utf.
1253         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
1254         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
1255         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
1256
1257 2011-05-08  Bruno Haible  <bruno@clisp.org>
1258
1259         group-member: Move AC_LIBOBJ invocations to module description.
1260         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
1261         gl_PREREQ_GROUP_MEMBER invocations from here...
1262         * modules/group-member (configure.ac): ... to here.
1263
1264 2011-05-08  Bruno Haible  <bruno@clisp.org>
1265
1266         grantpt: Move AC_LIBOBJ invocations to module description.
1267         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
1268         invocations from here...
1269         * modules/grantpt (configure.ac): ... to here.
1270
1271 2011-05-08  Bruno Haible  <bruno@clisp.org>
1272
1273         glob: Move AC_LIBOBJ invocations to module description.
1274         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
1275         from here...
1276         * modules/glob (configure.ac): ... to here.
1277
1278 2011-05-08  Bruno Haible  <bruno@clisp.org>
1279
1280         getusershell: Move AC_LIBOBJ invocations to module description.
1281         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
1282         Move AC_LIBOBJ invocation from here...
1283         * modules/getusershell (configure.ac): ... to here.
1284         (Depends-on): Update condition.
1285
1286 2011-05-08  Bruno Haible  <bruno@clisp.org>
1287
1288         gettimeofday: Move AC_LIBOBJ invocations to module description.
1289         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
1290         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
1291         gl_PREREQ_GETTIMEOFDAY invocations from here...
1292         * modules/gettimeofday (configure.ac): ... to here.
1293
1294 2011-05-08  Bruno Haible  <bruno@clisp.org>
1295
1296         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
1297         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
1298         just gl_FUNC_TZSET.
1299         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
1300         (gl_FUNC_TZSET_CLOBBER): Remove actions.
1301         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
1302         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
1303
1304 2011-05-08  Bruno Haible  <bruno@clisp.org>
1305
1306         getsubopt: Move AC_LIBOBJ invocations to module description.
1307         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
1308         gl_PREREQ_GETSUBOPT invocations from here...
1309         * modules/getsubopt (configure.ac): ... to here.
1310
1311 2011-05-08  Bruno Haible  <bruno@clisp.org>
1312
1313         getpass-gnu: Move AC_LIBOBJ invocations to module description.
1314         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
1315         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
1316         * modules/getpass-gnu (configure.ac): ... to here.
1317
1318 2011-05-08  Bruno Haible  <bruno@clisp.org>
1319
1320         getpass: Move AC_LIBOBJ invocations to module description.
1321         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
1322         gl_PREREQ_GETPASS invocations from here...
1323         * modules/getpass (configure.ac): ... to here.
1324
1325 2011-05-08  Bruno Haible  <bruno@clisp.org>
1326
1327         getpagesize: Move AC_LIBOBJ invocations to module description.
1328         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
1329         from here...
1330         * modules/getpagesize (configure.ac): ... to here.
1331
1332 2011-05-08  Bruno Haible  <bruno@clisp.org>
1333
1334         getopt: Move AC_LIBOBJ invocations to module description.
1335         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
1336         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
1337         invocations from here...
1338         * modules/getopt-gnu (configure.ac): ... to here.
1339         * modules/getopt-posix (configure.ac): ... and here.
1340         (Depends-on): Update condition.
1341
1342 2011-05-08  Bruno Haible  <bruno@clisp.org>
1343
1344         getopt, argp: Respect rules for use of AC_LIBOBJ.
1345         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
1346         (gl_REPLACE_GETOPT_ALWAYS): New macro.
1347         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
1348         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
1349
1350 2011-05-08  Bruno Haible  <bruno@clisp.org>
1351
1352         getlogin_r: Move AC_LIBOBJ invocations to module description.
1353         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
1354         gl_PREREQ_GETLOGIN_R invocations from here...
1355         * modules/getlogin_r (configure.ac): ... to here.
1356
1357 2011-05-08  Bruno Haible  <bruno@clisp.org>
1358
1359         getlogin: Move AC_LIBOBJ invocations to module description.
1360         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
1361         here...
1362         * modules/getlogin (configure.ac): ... to here.
1363
1364 2011-05-08  Bruno Haible  <bruno@clisp.org>
1365
1366         getloadavg: Move AC_LIBOBJ invocations to module description.
1367         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
1368         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
1369         * modules/getloadavg (configure.ac): ... to here.
1370
1371 2011-05-08  Bruno Haible  <bruno@clisp.org>
1372
1373         gethrxtime: Move AC_LIBOBJ invocations to module description.
1374         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
1375         LIB_GETHRXTIME from here...
1376         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
1377         invocations from here...
1378         * modules/gethrxtime (configure.ac): ... to here.
1379
1380 2011-05-08  Bruno Haible  <bruno@clisp.org>
1381
1382         gethostname: Move AC_LIBOBJ invocations to module description.
1383         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
1384         gl_PREREQ_GETHOSTNAME invocations from here...
1385         * modules/gethostname (configure.ac): ... to here.
1386
1387 2011-05-08  Bruno Haible  <bruno@clisp.org>
1388
1389         getgroups: Move AC_LIBOBJ invocations to module description.
1390         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
1391         here...
1392         * modules/getgroups (configure.ac): ... to here.
1393
1394 2011-05-08  Bruno Haible  <bruno@clisp.org>
1395
1396         getdtablesize: Move AC_LIBOBJ invocations to module description.
1397         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
1398         invocation from here...
1399         * modules/getdtablesize (configure.ac): ... to here.
1400
1401 2011-05-08  Bruno Haible  <bruno@clisp.org>
1402
1403         getdomainname: Move AC_LIBOBJ invocations to module description.
1404         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
1405         gl_PREREQ_GETDOMAINNAME invocations from here...
1406         * modules/getdomainname (configure.ac): ... to here.
1407
1408 2011-05-08  Bruno Haible  <bruno@clisp.org>
1409
1410         getline: Move AC_LIBOBJ invocations to module description.
1411         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
1412         invocations from here...
1413         * modules/getline (configure.ac): ... to here.
1414
1415 2011-05-08  Bruno Haible  <bruno@clisp.org>
1416
1417         getline: Simplify.
1418         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
1419         It's already handled through the module dependency.
1420
1421 2011-05-08  Bruno Haible  <bruno@clisp.org>
1422
1423         getdelim: Move AC_LIBOBJ invocations to module description.
1424         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
1425         and gl_PREREQ_GETDELIM invocations from here...
1426         * modules/getdelim (configure.ac): ... to here.
1427         (Depends-on): Fix condition.
1428
1429 2011-05-08  Bruno Haible  <bruno@clisp.org>
1430
1431         getcwd: Move AC_LIBOBJ invocations to module description.
1432         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
1433         invocations from here...
1434         * modules/getcwd (configure.ac): ... to here.
1435
1436 2011-05-08  Bruno Haible  <bruno@clisp.org>
1437
1438         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
1439         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
1440         here...
1441         * modules/getcwd-lgpl (configure.ac): ... to here.
1442
1443 2011-05-07  Bruno Haible  <bruno@clisp.org>
1444
1445         crypto/gc: Move AC_LIBOBJ invocations to module description.
1446         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
1447         * modules/crypto/gc (configure.ac): ... to here.
1448
1449 2011-05-07  Bruno Haible  <bruno@clisp.org>
1450
1451         fwriting: Move AC_LIBOBJ invocations to module description.
1452         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
1453         here...
1454         * modules/fwriting (configure.ac): ... to here.
1455
1456 2011-05-07  Bruno Haible  <bruno@clisp.org>
1457
1458         fwritable: Move AC_LIBOBJ invocations to module description.
1459         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
1460         here...
1461         * modules/fwritable (configure.ac): ... to here.
1462
1463 2011-05-07  Bruno Haible  <bruno@clisp.org>
1464
1465         futimens: Move AC_LIBOBJ invocations to module description.
1466         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
1467         here...
1468         * modules/futimens (configure.ac): ... to here.
1469
1470 2011-05-07  Bruno Haible  <bruno@clisp.org>
1471
1472         ftruncate: Move AC_LIBOBJ invocations to module description.
1473         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
1474         gl_PREREQ_FTRUNCATE invocations from here...
1475         * modules/ftruncate (configure.ac): ... to here.
1476
1477 2011-05-07  Bruno Haible  <bruno@clisp.org>
1478
1479         fsync: Move AC_LIBOBJ invocations to module description.
1480         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
1481         invocations from here...
1482         * modules/fsync (configure.ac): ... to here.
1483
1484 2011-05-07  Bruno Haible  <bruno@clisp.org>
1485
1486         fsusage: Move AC_LIBOBJ invocations to module description.
1487         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
1488         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
1489         * modules/fsusage (configure.ac): ... to here.
1490
1491 2011-05-07  Bruno Haible  <bruno@clisp.org>
1492
1493         freopen: Move AC_LIBOBJ invocations to module description.
1494         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
1495         invocations from here...
1496         * modules/freopen (configure.ac): ... to here.
1497
1498 2011-05-07  Bruno Haible  <bruno@clisp.org>
1499
1500         free: Move AC_LIBOBJ invocations to module description.
1501         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
1502         invocations from here...
1503         * modules/free (configure.ac): ... to here.
1504
1505 2011-05-07  Bruno Haible  <bruno@clisp.org>
1506
1507         freadable: Move AC_LIBOBJ invocations to module description.
1508         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
1509         here...
1510         * modules/freadable (configure.ac): ... to here.
1511
1512 2011-05-07  Bruno Haible  <bruno@clisp.org>
1513
1514         fpurge: Move AC_LIBOBJ invocations to module description.
1515         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
1516         invocations from here...
1517         * modules/fpurge (configure.ac): ... to here.
1518
1519 2011-05-07  Bruno Haible  <bruno@clisp.org>
1520
1521         fpending: Move AC_LIBOBJ invocations to module description.
1522         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
1523         gl_FUNC_FPENDING.
1524         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
1525         invocations from here...
1526         * modules/fpending (configure.ac): ... to here.
1527
1528 2011-05-07  Bruno Haible  <bruno@clisp.org>
1529
1530         fopen: Move AC_LIBOBJ invocations to module description.
1531         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
1532         invocations from here...
1533         * modules/fopen (configure.ac): ... to here.
1534
1535 2011-05-07  Bruno Haible  <bruno@clisp.org>
1536
1537         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
1538         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
1539         gl_FUNC_FNMATCH_POSIX.
1540         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
1541         invocations from here...
1542         * modules/fnmatch (configure.ac): ... to here.
1543         * modules/fnmatch-gnu (configure.ac): ... and here.
1544
1545 2011-05-07  Bruno Haible  <bruno@clisp.org>
1546
1547         flock: Move AC_LIBOBJ invocations to module description.
1548         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
1549         invocations from here...
1550         * modules/flock (configure.ac): ... to here.
1551
1552 2011-05-07  Bruno Haible  <bruno@clisp.org>
1553
1554         fileblocks: Move AC_LIBOBJ invocations to module description.
1555         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
1556         gl_PREREQ_FILEBLOCKS invocations from here...
1557         * modules/fileblocks (configure.ac): ... to here.
1558
1559 2011-05-06  Bruno Haible  <bruno@clisp.org>
1560
1561         fflush: Move AC_LIBOBJ invocations to module description.
1562         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
1563         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
1564         invocations from here...
1565         * modules/fflush (configure.ac): ... to here.
1566
1567 2011-05-06  Bruno Haible  <bruno@clisp.org>
1568
1569         fdopendir: Move AC_LIBOBJ invocations to module description.
1570         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
1571         here...
1572         * modules/fdopendir (configure.ac): ... to here.
1573         (Depends-on): Improve conditions.
1574
1575 2011-05-06  Bruno Haible  <bruno@clisp.org>
1576
1577         _Exit: Move AC_LIBOBJ invocations to module description.
1578         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
1579         invocations from here...
1580         * modules/_Exit (configure.ac): ... to here.
1581
1582 2011-05-21  Bruno Haible  <bruno@clisp.org>
1583
1584         euidaccess: Respect rules for use of AC_LIBOBJ.
1585         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
1586         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
1587         from here...
1588         * modules/euidaccess (configure.ac): ... to here.
1589
1590 2011-05-06  Bruno Haible  <bruno@clisp.org>
1591
1592         error: Move AC_LIBOBJ invocations to module description.
1593         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
1594         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
1595         invocations from here...
1596         * modules/error (configure.ac): ... to here.
1597
1598 2011-05-06  Bruno Haible  <bruno@clisp.org>
1599
1600         duplocale: Move AC_LIBOBJ invocations to module description.
1601         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
1602         gl_PREREQ_DUPLOCALE invocations from here...
1603         * modules/duplocale (configure.ac): ... to here.
1604
1605 2011-05-05  Bruno Haible  <bruno@clisp.org>
1606
1607         dirfd: Move AC_LIBOBJ invocations to module description.
1608         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
1609         gl_FUNC_DIRFD.
1610         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
1611         here...
1612         * modules/dirfd (configure.ac): ... to here.
1613         (Depends-on): Fix condition.
1614
1615 2011-05-05  Bruno Haible  <bruno@clisp.org>
1616
1617         chown: Respect rules for use of AC_LIBOBJ.
1618         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
1619         * modules/chown (configure.ac): ... to here.
1620
1621 2011-05-05  Bruno Haible  <bruno@clisp.org>
1622
1623         chdir-long: Move AC_LIBOBJ invocations to module description.
1624         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
1625         gl_PREREQ_CHDIR_LONG invocations from here...
1626         * modules/chdir-long (configure.ac): ... to here.
1627
1628 2011-05-05  Bruno Haible  <bruno@clisp.org>
1629
1630         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
1631         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
1632         from here...
1633         * modules/canonicalize-lgpl (configure.ac): ... to here.
1634
1635 2011-05-05  Bruno Haible  <bruno@clisp.org>
1636
1637         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
1638         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
1639         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
1640         REPLACE_CALLOC.
1641         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
1642         * modules/calloc-gnu (configure.ac): Likewise.
1643
1644 2011-05-05  Bruno Haible  <bruno@clisp.org>
1645
1646         btowc: Move AC_LIBOBJ invocations to module description.
1647         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
1648         invocations from here...
1649         * modules/btowc (configure.ac): ... to here.
1650
1651 2011-05-21  Bruno Haible  <bruno@clisp.org>
1652
1653         atexit: Move AC_LIBOBJ invocations to module description.
1654         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
1655         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
1656         here...
1657         * modules/atexit (configure.ac): ... to here.
1658
1659 2011-05-05  Bruno Haible  <bruno@clisp.org>
1660
1661         atoll: Move AC_LIBOBJ invocations to module description.
1662         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
1663         invocations from here...
1664         * modules/atoll (configure.ac): ... to here.
1665
1666 2011-05-05  Bruno Haible  <bruno@clisp.org>
1667
1668         argz: Move AC_LIBOBJ invocations to module description.
1669         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
1670         * modules/argz (configure.ac): ... to here.
1671
1672 2011-05-05  Bruno Haible  <bruno@clisp.org>
1673
1674         alphasort: Move AC_LIBOBJ invocations to module description.
1675         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
1676         gl_PREREQ_ALPHASORT invocations from here...
1677         * modules/alphasort (configure.ac): ... to here.
1678
1679 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
1680
1681         verify: new macro verify_expr; verify_true deprecated
1682         * NEWS: Mention this.
1683         * doc/verify.texi (Compile-time Assertions): Document this.
1684         * lib/verify.h (verify_true): Deprecate.
1685         (verify_expr): New macro.
1686         * tests/test-verify.c (function): Test verify_expr.
1687
1688 2011-06-14  Jim Meyering  <meyering@redhat.com>
1689
1690         init.sh: give more portable redirection-related advice in a comment
1691         * tests/init.sh (stderr_fileno_): Update the advice in comments.
1692         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
1693         for lots of discussion.  Stefano Lattarini suggested the solution
1694         of putting "9>&2" after the command.  Reported by Bruno Haible.
1695
1696 2011-06-13  Bruno Haible  <bruno@clisp.org>
1697
1698         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
1699         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
1700         'none'.
1701
1702 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
1703
1704         ftoastr: use strtof only if HAVE_STRTOF
1705         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
1706         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
1707         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
1708         * modules/ftoastr (configure.ac): Check for strtof.
1709
1710 2011-06-13  Bruno Haible  <bruno@clisp.org>
1711
1712         gnulib-tool: Addendum to 2011-06-08 commit.
1713         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
1714         and --witness-c-macro have been given, augment AM_CPPFLAGS.
1715
1716 2011-06-13  Bruno Haible  <bruno@clisp.org>
1717
1718         fseeko: Provide a non-inline replacement of fseek().
1719         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
1720         * modules/fseeko (Depends-on): Add fseek.
1721         * modules/fseek (License): Change to LGPLv2+.
1722
1723 2011-06-13  Bruno Haible  <bruno@clisp.org>
1724
1725         ftello: Provide a non-inline replacement of ftell().
1726         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
1727         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
1728         not have ftello() (such as on mingw).
1729         * modules/ftello (Depends-on): Add ftell.
1730         * modules/ftell (License): Change to LGPLv2+.
1731
1732 2011-05-07  Bruno Haible  <bruno@clisp.org>
1733
1734         ftell: Move AC_LIBOBJ invocations to module description.
1735         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
1736         * modules/ftell (configure.ac): ... to here.
1737
1738 2011-05-07  Bruno Haible  <bruno@clisp.org>
1739
1740         ftello: Respect rules for use of AC_LIBOBJ.
1741         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
1742         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
1743         here...
1744         * modules/ftello (configure.ac): ... to here.
1745
1746 2011-05-07  Bruno Haible  <bruno@clisp.org>
1747
1748         fseeko: Simplify.
1749         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
1750         (gl_FUNC_FSEEKO): Inline it here.
1751
1752 2011-05-07  Bruno Haible  <bruno@clisp.org>
1753
1754         fseek: Move AC_LIBOBJ invocations to module description.
1755         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
1756         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
1757         * modules/fseek (configure.ac): ... to here.
1758
1759 2011-05-07  Bruno Haible  <bruno@clisp.org>
1760
1761         fseek: Respect rules for use of AC_LIBOBJ.
1762         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
1763         here...
1764         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
1765
1766 2011-05-07  Bruno Haible  <bruno@clisp.org>
1767
1768         fseeko: Respect rules for use of AC_LIBOBJ.
1769         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
1770         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
1771         here...
1772         * modules/fseeko (configure.ac): ... to here.
1773
1774 2011-06-13  Bruno Haible  <bruno@clisp.org>
1775
1776         gnulib-tool: Allow comments in the 'Depends-on' section.
1777         * doc/gnulib.texi (Module description): Mention comment syntax in the
1778         Depends-on section.
1779         * gnulib-tool (func_get_dependencies): Filter out comment lines.
1780
1781 2011-06-13  Bruno Haible  <bruno@clisp.org>
1782
1783         file-set.h: guard __attibute__ use, now that it's not always defined
1784         * lib/file-set.h (record_file): Use __attribute__ only with compiler
1785         versions that support it.  This fixes a coreutils build failure with
1786         the vendor cc on HP-UX 11.31.
1787
1788 2011-06-12  Bruno Haible  <bruno@clisp.org>
1789
1790         acl: Add support for HP-UX >= 11.11 JFS ACLs.
1791         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
1792         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
1793         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
1794         (acl, aclsort): New declarations.
1795         (aclv_nontrivial): New declaration.
1796         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
1797         (file_has_acl): Read also the second kind of HP-UX ACLs.
1798         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
1799         kind of HP-UX ACLs if the first kind fails.
1800         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
1801         second kind of HP-UX ACLs.
1802         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
1803         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
1804         agree.
1805         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
1806         hpuxjfs.
1807         Handle hpuxjfs.
1808         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
1809         hpuxjfs.
1810         Handle hpuxjfs.
1811         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
1812         (func_test_same_acls): Use both lsacl and getacl.
1813         Handle hpuxjfs.
1814         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
1815         (func_test_same_acls): Use both lsacl and getacl.
1816         Handle hpuxjfs.
1817
1818 2011-06-12  Bruno Haible  <bruno@clisp.org>
1819
1820         acl: Complete the 2010-08-10 fix.
1821         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
1822         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
1823         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
1824         explicitly.
1825         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
1826         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
1827
1828 2011-06-12  Bruno Haible  <bruno@clisp.org>
1829
1830         spawn-pipe tests: Comments.
1831         * tests/test-spawn-pipe-child.c (main): Update comment.
1832         Reported by James Youngman <jay@gnu.org>.
1833
1834 2011-06-11  James Youngman  <jay@gnu.org>
1835
1836         New module 'stat-size'.
1837         * modules/stat-size: New module.  Provides macros for accessing
1838         file size information in instances of struct stat.  Depends on the
1839         fileblocks module because it calls st_blocks.
1840         * lib/stat-size.h: New file, adapted from coreutils' system.h.
1841         * doc/gnulib.texi: Include stat-size.texi.
1842         * doc/stat-size.texi: Documentation for this module.
1843         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
1844         * m4/fileblocks.m4: Mention that stat-size depends on the call to
1845         AC_STRUCT_ST_BLOCKS.
1846
1847 2011-06-09  Bruno Haible  <bruno@clisp.org>
1848
1849         thread: Support pthreads-win32.
1850         * lib/glthread/thread.h (gl_thread_self): Define differently on
1851         pthreads-win32.
1852         (gl_null_thread): New declaration.
1853         (gl_thread_self_pointer): New macro.
1854         * lib/glthread/thread.c (gl_null_thread): New constant.
1855         * tests/test-lock.c: Use gl_thread_self_pointer instead of
1856         gl_thread_self.
1857         * tests/test-tls.c: Likewise.
1858         Suggested by Paul Eggert. Reported by Eric Blake.
1859
1860 2011-06-09  Bruno Haible  <bruno@clisp.org>
1861
1862         thread: Fix confusion between NULL and 0.
1863         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
1864         Reported by Paul Eggert.
1865
1866 2011-06-09  Bruno Haible  <bruno@clisp.org>
1867
1868         spawn-pipe tests: Avoid test failure on HP-UX 11.
1869         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
1870         is closed.
1871
1872 2011-06-09  Bruno Haible  <bruno@clisp.org>
1873
1874         acl tests: Fix compilation error on HP-UX 11.
1875         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
1876
1877 2011-06-09  Bruno Haible  <bruno@clisp.org>
1878
1879         rmdir: Avoid test failure on HP-UX 10.20.
1880         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
1881         EEXIST.
1882
1883 2011-06-08  Eric Blake  <eblake@redhat.com>
1884
1885         perror: fix test on mingw
1886         * modules/perror-tests (Depends-on): Add dup2.
1887
1888         strerror_r-posix: fix on MacOS
1889         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
1890         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
1891         logic bug.
1892         * lib/strerror_r.c (strerror_r): Fix the bug.
1893         * lib/strerror.c (strerror): Likewise.
1894         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
1895         problem.
1896         * doc/posix-functions/strerror.texi (strerror): Likewise.
1897         * doc/posix-functions/perror.texi (perror): Likewise.
1898         * tests/test-strerror.c (main): Enhance test.
1899         * tests/test-strerror_r.c (main): Likewise.
1900
1901 2011-06-08  Bruno Haible  <bruno@clisp.org>
1902
1903         gnulib-tool: Better isolation between different gnulib-tool invocations.
1904         * gnulib-tool: New option --witness-c-macro.
1905         (witness_c_macro): New variable.
1906         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
1907         AM_CPPFLAGS define it as a C macro.
1908         (func_emit_tests_Makefile_am): Likewise.
1909         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
1910         read it from there.
1911         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
1912         m4_define, not AC_DEFUN.
1913         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
1914         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
1915         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
1916         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
1917         s|...|...|, to substitute the values of the GNULIB_* module indicator
1918         variables.
1919         * modules/dirent (Makefile.am): Likewise.
1920         * modules/fcntl-h (Makefile.am): Likewise.
1921         * modules/iconv-h (Makefile.am): Likewise.
1922         * modules/langinfo (Makefile.am): Likewise.
1923         * modules/locale (Makefile.am): Likewise.
1924         * modules/math (Makefile.am): Likewise.
1925         * modules/netdb (Makefile.am): Likewise.
1926         * modules/poll-h (Makefile.am): Likewise.
1927         * modules/pty (Makefile.am): Likewise.
1928         * modules/search (Makefile.am): Likewise.
1929         * modules/signal (Makefile.am): Likewise.
1930         * modules/spawn (Makefile.am): Likewise.
1931         * modules/stdio (Makefile.am): Likewise.
1932         * modules/stdlib (Makefile.am): Likewise.
1933         * modules/string (Makefile.am): Likewise.
1934         * modules/sys_ioctl (Makefile.am): Likewise.
1935         * modules/sys_select (Makefile.am): Likewise.
1936         * modules/sys_socket (Makefile.am): Likewise.
1937         * modules/sys_stat (Makefile.am): Likewise.
1938         * modules/sys_times (Makefile.am): Likewise.
1939         * modules/sys_utsname (Makefile.am): Likewise.
1940         * modules/sys_wait (Makefile.am): Likewise.
1941         * modules/termios (Makefile.am): Likewise.
1942         * modules/time (Makefile.am): Likewise.
1943         * modules/unistd (Makefile.am): Likewise.
1944         * modules/wchar (Makefile.am): Likewise.
1945
1946 2011-06-08  Eric Blake  <eblake@redhat.com>
1947
1948         strerror: simplify replacement
1949         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
1950         * modules/strerror (configure.ac): No prereqs needed here...
1951         * modules/strerror-override (configure.ac): ...but this needs it.
1952         (Files): Add file for needed prereq macro.
1953
1954 2011-06-08  Bruno Haible  <bruno@clisp.org>
1955
1956         strerror_r-posix: Tweaks.
1957         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
1958         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
1959         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
1960         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
1961         (gl_FUNC_STRERROR_R): ... to here.
1962         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
1963
1964 2011-06-07  Eric Blake  <eblake@redhat.com>
1965
1966         perror: document fixed bugs
1967         * doc/posix-functions/perror.texi (perror): Document recent
1968         patches.
1969
1970 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
1971
1972         stat-time: get_stat_birthtime failure is better-defined
1973         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
1974         return a timestamp whose tv_sec and tv_nsec values are both -1.
1975         Previously, the spec said only that the tv_nsec value was negative.
1976         This upward-compatible change simplifies GNU tar a bit.
1977
1978 2011-06-07  Eric Blake  <eblake@redhat.com>
1979
1980         strerror_r-posix: work around cygwin 1.7.9
1981         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
1982         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
1983         bug without replacing strerror_r.
1984         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
1985         strerror_r is buggy, but without requiring strerror_r compilation.
1986         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
1987
1988         test-perror: relax test to ignore cygwin bug
1989         * tests/test-perror2.c (main): Relax test on requiring detection
1990         of stream errors, and use unbuffered stream.
1991         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
1992         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
1993         * doc/posix-functions/fputc.texi (fputc): Likewise.
1994         * doc/posix-functions/fputs.texi (fputs): Likewise.
1995         * doc/posix-functions/fputws.texi (fputws): Likewise.
1996         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
1997         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
1998         * doc/posix-functions/getopt.texi (getopt): Likewise.
1999         * doc/posix-functions/perror.texi (perror): Likewise.
2000         * doc/posix-functions/printf.texi (printf): Likewise.
2001         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
2002         * doc/posix-functions/psignal.texi (psignal): Likewise.
2003         * doc/posix-functions/putc.texi (putc): Likewise.
2004         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
2005         Likewise.
2006         * doc/posix-functions/putchar.texi (putchar): Likewise.
2007         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
2008         Likewise.
2009         * doc/posix-functions/puts.texi (puts): Likewise.
2010         * doc/posix-functions/putwc.texi (putwc): Likewise.
2011         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
2012         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
2013         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2014         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
2015         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2016         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
2017         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
2018         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
2019
2020 2011-05-22  Bruno Haible  <bruno@clisp.org>
2021
2022         strerror: Move AC_LIBOBJ invocations to module description.
2023         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
2024         gl_PREREQ_STRERROR invocations from here...
2025         * modules/strerror (configure.ac): ... to here.
2026
2027 2011-05-21  Bruno Haible  <bruno@clisp.org>
2028
2029         perror: Use common idiom.
2030         * modules/perror (configure.ac): Reorder statements.
2031
2032 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2033
2034         tests: fix usage message in 'mktempd_'
2035         * tests/init.sh (mktempd_): In the usage message, use literal
2036         'mktempd_', not '$ME' (which is even undefined), as the name of
2037         the subroutine.
2038
2039 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2040
2041         tests init: new function 'fatal_', for hard errors
2042         Before this patch, the only way offered by tests/init.sh to
2043         properly signal a hard error was the `framework_failure_'
2044         function.  But the error message issued by that function,
2045         as its name would suggest, refers to a set-up failure in the
2046         testsuite, while hard errors can obviously also be due to
2047         other reasons.  The best way to fix this inconsistency is to
2048         introduce a new function with a more general error message.
2049         * tests/init.sh (fatal_): New function.
2050
2051 2011-06-06  Eric Blake  <eblake@redhat.com>
2052
2053         canonicalize-lgpl: use common idiom
2054         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
2055         over newer POSIX -Rf.
2056         Reported by Bruno Haible.
2057
2058         canonicalize-lgpl: work around AIX realpath bug
2059         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
2060         * doc/posix-functions/realpath.texi (realpath): Document it.
2061         Reported by Bruno Haible.
2062
2063         strerror: work around FreeBSD bug
2064         * lib/strerror.c (strerror): Special case 0.
2065         Reported by Bruno Haible.
2066
2067         strerror-override: avoid bloating errno module
2068         * modules/errno (Files, configure.ac): Move replacement strings...
2069         * modules/strerror-override: ...to new module.
2070         * modules/strerror (Depends-on): Add strerror-override.
2071         * modules/strerror_r-posix (Depends-on): Likewise.
2072         * MODULES.html.sh: Document new module.
2073         Reported by Bruno Haible.
2074
2075 2011-06-06  Bruno Haible  <bruno@clisp.org>
2076
2077         spawn-pipe tests: Rename program.
2078         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
2079         * tests/test-spawn-pipe-child.c: Update comment.
2080         * tests/test-spawn-pipe.sh: Update.
2081         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
2082
2083         spawn-pipe tests: Link the child program only against libc.
2084         * tests/test-spawn-pipe-child.c: New file, extracted from
2085         tests/test-spawn-pipe.c.
2086         (main): Expect only one argument.
2087         (is_open): New function, copied from tests/test-pipe.c.
2088         * tests/test-spawn-pipe.c: Don't include <errno.h>.
2089         (child_main): Remove function.
2090         (test_pipe): Pass only one argument to the child program.
2091         (main): Remove child process code. Expect the child program's name as
2092         first argument.
2093         * tests/test-spawn-pipe.sh: Pass the child program's name as first
2094         argument.
2095         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
2096         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
2097         test-spawn-pipe-child against no libraries.
2098
2099 2011-06-06  Bruno Haible  <bruno@clisp.org>
2100
2101         careadlinkat: Avoid mismatch between ssize_t and int.
2102         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
2103         * lib/careadlinkat.c (careadlinkatcwd): Define always.
2104
2105 2011-06-06  Jim Meyering  <meyering@redhat.com>
2106
2107         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
2108         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
2109         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
2110
2111 2011-06-05  Bruno Haible  <bruno@clisp.org>
2112
2113         ansi-c++-opt: Interoperability with libtool.
2114         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
2115         set the variable to "no", not to ":".
2116         * NEWS: Mention the change.
2117
2118 2011-06-05  Bruno Haible  <bruno@clisp.org>
2119
2120         acl: Fix test failure on AIX 7.
2121         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
2122         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
2123
2124 2011-06-05  Bruno Haible  <bruno@clisp.org>
2125
2126         pipe-filter-ii: Fix test failure on AIX and IRIX.
2127         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
2128         with EAGAIN, retry with a smaller buffer size.
2129
2130 2011-06-05  Bruno Haible  <bruno@clisp.org>
2131
2132         localename: Fix link dependencies.
2133         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
2134         * modules/localename-tests (Makefile.am): Link test-localename with
2135         $(LIBTHREAD).
2136
2137 2011-06-05  Bruno Haible  <bruno@clisp.org>
2138
2139         error: Avoid gcc warning.
2140         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
2141
2142 2011-06-05  Bruno Haible  <bruno@clisp.org>
2143
2144         unsetenv: Avoid gcc warning.
2145         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
2146
2147 2011-06-05  Bruno Haible  <bruno@clisp.org>
2148
2149         setenv: Avoid gcc warning.
2150         * lib/setenv.c (setenv): Provide declaration if system lacks it.
2151
2152 2011-06-05  Bruno Haible  <bruno@clisp.org>
2153
2154         sys_select: Ensure memset is declared also on AIX 7.
2155         * lib/sys_select.in.h: Include <string.h> also on AIX.
2156         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
2157         self-contained also on AIX 7.1.
2158
2159 2011-06-04  Jim Meyering  <meyering@redhat.com>
2160
2161         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
2162         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
2163         function name, "error".
2164         (_gl_translatable_diag_func_re): New configurable variable.
2165
2166 2011-06-04  Bruno Haible  <bruno@clisp.org>
2167
2168         getopt: Avoid gcc warning.
2169         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
2170
2171 2011-06-04  Bruno Haible  <bruno@clisp.org>
2172
2173         strerror_r: Fix comments.
2174         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
2175         commit.
2176
2177 2011-06-04  Bruno Haible  <bruno@clisp.org>
2178
2179         perror: Fix compilation error.
2180         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
2181         Undefine fprintf, not sprintf.
2182         * modules/perror (Depends-on): Remove intprops, verify.
2183
2184 2011-06-04  Bruno Haible  <bruno@clisp.org>
2185
2186         setlocale: Enable replacement on Cygwin 1.5.
2187         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
2188         Cygwin 1.5.x.
2189         * doc/posix-functions/setlocale.texi: Mention that the problem with the
2190         LC_CTYPE category also exists on Cygwin 1.5.x.
2191
2192 2011-06-04  Bruno Haible  <bruno@clisp.org>
2193
2194         strerror-override: Don't disable symbol renamings.
2195         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
2196         * lib/strerror-override.c: Include config.h.
2197         (strerror_override): Don't undefine.
2198
2199 2011-06-03  Bruno Haible  <bruno@clisp.org>
2200
2201         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
2202         * lib/localename.h: Update copyright header.
2203         * lib/localename.c: Likewise.
2204         * lib/relocatable.h: Likewise.
2205         * lib/relocatable.c: Likewise.
2206
2207 2011-06-02  Bruno Haible  <bruno@clisp.org>
2208
2209         doc: Fix a module name.
2210         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
2211
2212 2011-06-02  Bruno Haible  <bruno@clisp.org>
2213
2214         pipe2: Remove dependency on 'nonblocking' module.
2215         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
2216         O_NONBLOCK is defined by gnulib.
2217         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
2218         is zero.
2219         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
2220         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
2221         defined by gnulib.
2222         (get_nonblocking_flag): New function.
2223         (main): Test O_NONBLOCK flag only if it is nonzero.
2224         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
2225
2226 2011-06-03  Jim Meyering  <meyering@redhat.com>
2227
2228         maint: three new prohibit-header-without-use rules
2229         Prohibit use of cloexec.h, posixver.h, same.h without use.
2230         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
2231         (sc_prohibit_posixver_without_use): Likewise.
2232         (sc_prohibit_same_without_use): Likewise.
2233
2234 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
2235
2236         allocator: 'die' routine is now given requested size
2237         * lib/allocator.h (struct allocator.die): New size arg.
2238         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
2239         If the actual problem is an ssize_t limitation, not a size_t or
2240         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
2241
2242 2011-06-01  Eric Blake  <eblake@redhat.com>
2243
2244         strerror: drop strerror_r dependency
2245         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
2246         * lib/strerror-override.c (strerror_override): ...to new file.
2247         * lib/strerror-override.h: Add prototype.
2248         * lib/strerror-impl.h: Delete.
2249         * lib/strerror.c (strerror): New implementation.
2250         * modules/errno (Files): Add new files.
2251         (configure.ac): Compile new file as appropriate.
2252         * modules/strerror (Files): Drop unused file.
2253         (Depends-on): Drop strerror_r-posix.
2254         * MODULES.html.sh: Document strerror_r-posix.
2255         Requested by Sam Steingold.
2256
2257         perror: call strerror_r directly
2258         * modules/perror (Files): Drop strerror-impl.h.
2259         * lib/perror.c (perror): Use our own stack buffer, rather than
2260         calling a wrapper that uses static storage.
2261         * doc/posix-functions/perror.texi (perror): Document a limitation
2262         of our replacement.
2263
2264         strerror_r: fix includes for FreeBSD
2265         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
2266         since we use abort on some platforms.
2267         Reported by Matthias Bolte.
2268
2269 2011-05-31  Bruno Haible  <bruno@clisp.org>
2270
2271         Fix link errors in tests: openat-die uses gettext-h.
2272         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
2273         against $(LIBINTL).
2274         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
2275         against $(LIBINTL).
2276         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
2277         $(LIBINTL).
2278         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
2279         against $(LIBINTL).
2280         * modules/linkat-tests (Makefile.am): Link test-linkat against
2281         $(LIBINTL).
2282         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
2283         $(LIBINTL).
2284         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
2285         against $(LIBINTL).
2286         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
2287         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
2288         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
2289         $(LIBINTL).
2290         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
2291         $(LIBINTL).
2292         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
2293         $(LIBINTL).
2294         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2295
2296 2011-05-31  Bruno Haible  <bruno@clisp.org>
2297
2298         Fix link errors in tests: wait-process uses gettext-h.
2299         * modules/nonblocking-pipe-tests (Makefile.am): Set
2300         test_nonblocking_pipe_main_LDADD.
2301         * modules/nonblocking-socket-tests (Makefile.am): Link
2302         test-nonblocking-socket-main against $(LIBINTL).
2303         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2304
2305 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2306
2307         assert-h: work around 'verify' incompatibility
2308         * lib/verify.h: Use @...@ directives, not ifdef.
2309         * modules/assert-h (assert.h): Implement the directives.
2310         (assert.h): Substitute the symbol-prefix more consistently.
2311
2312 2011-05-29  Jim Meyering  <meyering@redhat.com>
2313
2314         trim: remove three superfluous assignments
2315         * lib/trim.c (trim2): Remove three superfluous assignments
2316         and correct brace positioning.
2317
2318 2011-05-29  Bruno Haible  <bruno@clisp.org>
2319
2320         wctype-h: Avoid namespace pollution on Solaris 2.6.
2321         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
2322         identifiers.
2323         * doc/posix-headers/wctype.texi: Mention the problem.
2324         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2325
2326 2011-05-28  Jim Meyering  <meyering@redhat.com>
2327
2328         parse-datetime.y: accommodate -Wstrict-overflow
2329         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
2330         placate -Wstrict-overflow.
2331
2332         trim: avoid a warning from -O2 -Wstrict-overflow
2333         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
2334
2335 2011-05-29  Bruno Haible  <bruno@clisp.org>
2336
2337         gnulib-tool: Fix bug in yesterday's commit.
2338         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
2339         twice.
2340
2341 2011-05-29  Bruno Haible  <bruno@clisp.org>
2342
2343         Allow multiple gnulib generated include files to be combined.
2344         * gnulib-tool (func_compute_include_guard_prefix): New function.
2345         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
2346         ${gl_include_guard_prefix} references.
2347         (func_import, func_create_testdir): Invoke
2348         func_compute_include_guard_prefix.
2349         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
2350         * lib/ctype.in.h: Likewise.
2351         * lib/dirent.in.h: Likewise.
2352         * lib/errno.in.h: Likewise.
2353         * lib/fcntl.in.h: Likewise.
2354         * lib/float.in.h: Likewise.
2355         * lib/getopt.in.h: Likewise.
2356         * lib/iconv.in.h: Likewise.
2357         * lib/langinfo.in.h: Likewise.
2358         * lib/locale.in.h: Likewise.
2359         * lib/math.in.h: Likewise.
2360         * lib/netdb.in.h: Likewise.
2361         * lib/netinet_in.in.h: Likewise.
2362         * lib/poll.in.h: Likewise.
2363         * lib/pthread.in.h: Likewise.
2364         * lib/pty.in.h: Likewise.
2365         * lib/sched.in.h: Likewise.
2366         * lib/se-selinux.in.h: Likewise.
2367         * lib/search.in.h: Likewise.
2368         * lib/signal.in.h: Likewise.
2369         * lib/spawn.in.h: Likewise.
2370         * lib/stdarg.in.h: Likewise.
2371         * lib/stddef.in.h: Likewise.
2372         * lib/stdint.in.h: Likewise.
2373         * lib/stdio.in.h: Likewise.
2374         * lib/stdlib.in.h: Likewise.
2375         * lib/string.in.h: Likewise.
2376         * lib/strings.in.h: Likewise.
2377         * lib/sys_file.in.h: Likewise.
2378         * lib/sys_ioctl.in.h: Likewise.
2379         * lib/sys_select.in.h: Likewise.
2380         * lib/sys_socket.in.h: Likewise.
2381         * lib/sys_stat.in.h: Likewise.
2382         * lib/sys_time.in.h: Likewise.
2383         * lib/sys_times.in.h: Likewise.
2384         * lib/sys_uio.in.h: Likewise.
2385         * lib/sys_utsname.in.h: Likewise.
2386         * lib/sys_wait.in.h: Likewise.
2387         * lib/sysexits.in.h: Likewise.
2388         * lib/termios.in.h: Likewise.
2389         * lib/time.in.h: Likewise.
2390         * lib/unistd.in.h: Likewise.
2391         * lib/wchar.in.h: Likewise.
2392         * lib/wctype.in.h: Likewise.
2393         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
2394         * modules/ctype (Makefile.am): Likewise.
2395         * modules/dirent (Makefile.am): Likewise.
2396         * modules/errno (Makefile.am): Likewise.
2397         * modules/fcntl-h (Makefile.am): Likewise.
2398         * modules/float (Makefile.am): Likewise.
2399         * modules/getopt-posix (Makefile.am): Likewise.
2400         * modules/iconv-h (Makefile.am): Likewise.
2401         * modules/langinfo (Makefile.am): Likewise.
2402         * modules/locale (Makefile.am): Likewise.
2403         * modules/math (Makefile.am): Likewise.
2404         * modules/netdb (Makefile.am): Likewise.
2405         * modules/netinet_in (Makefile.am): Likewise.
2406         * modules/poll-h (Makefile.am): Likewise.
2407         * modules/pthread (Makefile.am): Likewise.
2408         * modules/pty (Makefile.am): Likewise.
2409         * modules/sched (Makefile.am): Likewise.
2410         * modules/search (Makefile.am): Likewise.
2411         * modules/selinux-h (Makefile.am): Likewise.
2412         * modules/signal (Makefile.am): Likewise.
2413         * modules/spawn (Makefile.am): Likewise.
2414         * modules/stdarg (Makefile.am): Likewise.
2415         * modules/stddef (Makefile.am): Likewise.
2416         * modules/stdint (Makefile.am): Likewise.
2417         * modules/stdio (Makefile.am): Likewise.
2418         * modules/stdlib (Makefile.am): Likewise.
2419         * modules/string (Makefile.am): Likewise.
2420         * modules/strings (Makefile.am): Likewise.
2421         * modules/sys_file (Makefile.am): Likewise.
2422         * modules/sys_ioctl (Makefile.am): Likewise.
2423         * modules/sys_select (Makefile.am): Likewise.
2424         * modules/sys_socket (Makefile.am): Likewise.
2425         * modules/sys_stat (Makefile.am): Likewise.
2426         * modules/sys_time (Makefile.am): Likewise.
2427         * modules/sys_times (Makefile.am): Likewise.
2428         * modules/sys_uio (Makefile.am): Likewise.
2429         * modules/sys_utsname (Makefile.am): Likewise.
2430         * modules/sys_wait (Makefile.am): Likewise.
2431         * modules/sysexits (Makefile.am): Likewise.
2432         * modules/termios (Makefile.am): Likewise.
2433         * modules/time (Makefile.am): Likewise.
2434         * modules/unistd (Makefile.am): Likewise.
2435         * modules/wchar (Makefile.am): Likewise.
2436         * modules/wctype-h (Makefile.am): Likewise.
2437         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
2438
2439 2011-05-29  Bruno Haible  <bruno@clisp.org>
2440
2441         assert-h: Allow multiple gnulib generated replacements to coexist.
2442         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
2443
2444 2011-05-29  Bruno Haible  <bruno@clisp.org>
2445
2446         argp: Allow coexistence with strerror_r-posix module.
2447         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
2448         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
2449         by gnulib's <string.h> replacement), assume it has the POSIX signature,
2450         not the glibc signature.
2451
2452 2011-05-28  Bruno Haible  <bruno@clisp.org>
2453
2454         gnulib-tool: Alternative structure of testdirs, similar to --import.
2455         * gnulib-tool: New option --single-configure.
2456         (func_usage): Document it.
2457         (single_configure): New variable.
2458         (func_modules_transitive_closure_separately,
2459         func_modules_transitive_closure_separately,
2460         func_determine_use_libtests, func_modules_add_dummy_separately,
2461         func_modules_to_filelist_separately): New functions, extracted from
2462         func_import.
2463         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
2464         (func_import): Use the new functions.
2465         (func_create_testdir): Set final_modules. Handle $single_configure =
2466         true case.
2467
2468 2011-05-28  Bruno Haible  <bruno@clisp.org>
2469
2470         getloadavg: Remove an unreliable safety check.
2471         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
2472         getloadavg.c is in place.
2473         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
2474         Reported by Sam Steingold <sds@gnu.org>.
2475
2476 2011-05-28  Bruno Haible  <bruno@clisp.org>
2477
2478         doc: Cleanup yet another file produced by texinfo.tex.
2479         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
2480
2481 2011-05-28  Bruno Haible  <bruno@clisp.org>
2482
2483         Finish the conditional dependencies mechanism.
2484         * gnulib-tool: New option --no-conditional-dependencies.
2485         (func_usage): Document it. Don't mark --conditional-dependencies as
2486         experimental.
2487         (cond_dependencies): The possible values can now be true, false, empty.
2488         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
2489         (func_import): Store setting in gnulib-cache.m4 and read it from there.
2490         * doc/gnulib-tool.texi (Conditional dependencies): New section.
2491
2492 2011-05-28  Bruno Haible  <bruno@clisp.org>
2493
2494         doc: Use a recent texinfo.tex.
2495         * doc/Makefile (tex_opts): New variable.
2496         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
2497
2498 2011-05-28  Jim Meyering  <meyering@redhat.com>
2499
2500         intprops.h: adjust comment to match code change
2501         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
2502         only once, it *may* have side effects.  Also fix an unrelated typo.
2503         (_GL_INT_SIGNED): Likewise.
2504
2505 2011-05-26  Simon Josefsson  <simon@josefsson.org>
2506
2507         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
2508
2509 2011-05-26  Bruno Haible  <bruno@clisp.org>
2510
2511         mbsrchr: Avoid collision with system function on Interix.
2512         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
2513         Reported by Markus Duft <mduft@gentoo.org>.
2514
2515 2011-05-15  James Youngman  <jay@gnu.org>
2516
2517         getopt: for ambiguous options, enumerate the possibilities.
2518         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
2519         the ambiguous options when an ambiguous prefix is given. This was
2520         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
2521         glibc change was
2522         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
2523
2524 2011-05-25  Eric Blake  <eblake@redhat.com>
2525
2526         getcwd: work around mingw bug
2527         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
2528         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2529         Reported by Matthias Bolte.
2530
2531 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
2532
2533         test-intprops: disable -Wtype-limits diagnostics
2534         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
2535         diagnostics.  Otherwise, the integer overflow macros generate many
2536         diagnostics.  Reported by Jim Meyering in
2537         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
2538
2539         intprops: shorten, to pacify gcc -Woverlength-strings
2540         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
2541         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
2542         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
2543         likely to run afoul of C compiler limits for string constant lengths.
2544         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
2545
2546 2011-05-24  Eric Blake  <eblake@redhat.com>
2547
2548         docs: document recently fixed glibc printf bug
2549         * doc/posix-functions/fprintf.texi (fprintf): Document it.
2550         * doc/posix-functions/printf.texi (printf): Likewise.
2551         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2552         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2553
2554         closein-tests: convert to init.sh
2555         * modules/closein-tests (Files): Add init.sh
2556         * tests/test-closein.sh Use it.
2557
2558         yesno-tests: convert to init.sh
2559         * modules/yesno-tests (Files): Add init.sh.
2560         * tests/test-yesno.sh: Use it.
2561
2562         atexit-tests: ensure reliable exit status
2563         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
2564         Reported by Bruno Haible.
2565
2566 2011-05-24  Bruno Haible  <bruno@clisp.org>
2567
2568         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
2569         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
2570         gl_PREREQ_STRERROR_R invocations from here...
2571         * modules/strerror_r-posix (configure.ac): ... to here.
2572
2573 2011-05-24  Eric Blake  <eblake@redhat.com>
2574
2575         strerror_r: fix missing header
2576         * lib/strerror_r.c: Avoid compiler warning about snprintf.
2577
2578         strerror_r: fix AIX test failures
2579         * lib/strerror_r.c (strerror_r): Convert silent truncation to
2580         ERANGE failure.
2581
2582         strerror_r: fix Solaris test failures
2583         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
2584         failures.
2585         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
2586
2587         strerror_r: enforce POSIX recommendations
2588         * lib/strerror_r.c (safe_copy): New helper method.
2589         (strerror_r): Guarantee a non-empty string.
2590         * tests/test-strerror_r.c (main): Enhance tests to incorporate
2591         recent POSIX rulings and to match our strerror guarantees.
2592         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
2593
2594 2011-05-24  Jim Meyering  <meyering@redhat.com>
2595
2596         test-perror2.c: avoid warning about unused variable
2597         * tests/test-perror2.c (main): Remove declaration of unused "fp".
2598
2599 2011-05-24  Eric Blake  <eblake@redhat.com>
2600
2601         perror: avoid spurious test failure on HP-UX
2602         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
2603
2604         tests: fix logic bug in init.sh
2605         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
2606         shell.
2607
2608 2011-05-24  Jim Meyering  <meyering@redhat.com>
2609
2610         utimensat: do not reference an out-of-scope buffer
2611         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
2612         declared in an inner scope, yet "times" would be dereferenced outside
2613         the scope in which "ts" was valid.
2614         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
2615         of ts[2] "out/up", so that the use of aliased "times" (via
2616         "times = ts;") does not end up referencing an out-of-scope "ts"
2617
2618         opendir-safer.c: don't clobber errno; don't close negative FD
2619         * lib/opendir-safer.c (opendir_safer):
2620         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
2621         file descriptor, and more importantly, don't clobber the
2622         offending errno value with EINVAL.  Before, upon failure
2623         of dup_safer, we would pass the negative file descriptor to
2624         fdopendir, which would clobber errno.
2625
2626 2011-05-23  Bruno Haible  <bruno@clisp.org>
2627
2628         idcache: Fix module description.
2629         * modules/idcache (Include): Set to "idcache.h".
2630
2631 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2632
2633         gnulib-tool: fix portability problem with MacOS sed
2634         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
2635         before the "}".  Problem reported by Leo in
2636         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
2637         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
2638         sed_extract_condition1, sed_extract_condition2.
2639
2640 2011-05-23  Bruno Haible  <bruno@clisp.org>
2641
2642         hash: Simplify autoconf macro.
2643         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
2644
2645 2011-05-23  Bruno Haible  <bruno@clisp.org>
2646
2647         getugroups: Fix module description.
2648         * modules/getugroups (Include): Set to "getugroups.h".
2649
2650 2011-05-23  Bruno Haible  <bruno@clisp.org>
2651
2652         linkat: Simplify autoconf macro.
2653         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
2654
2655 2011-05-23  Bruno Haible  <bruno@clisp.org>
2656             Eric Blake  <eblake@redhat.com>
2657
2658         linkat, renameat: Update dependencies.
2659         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
2660         * modules/linkat (Depends-on): Likewise. Remove also readlink,
2661         symlinkat.
2662
2663 2011-05-23  Jim Meyering  <meyering@redhat.com>
2664
2665         maint.mk: more tight_scope improvements
2666         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
2667         (_gl_TS_headers): Define only in if-0'd block.
2668         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
2669         sometimes we must *not* use it.  Adjust uses accordingly.
2670         (sc_tight_scope): Use much simpler grep-based test to determine
2671         whether we skip this rule.
2672
2673         maint.mk: generalize/improve the tight-scope rule
2674         * top/maint.mk: Emit a warning when the test is skipped.
2675         (_gl_TS_dir): Add $(srcdir)/ prefix.
2676         (_gl_TS_function_match): Simplify, rather than trying
2677         to enumerate common types.  Otherwise, it would fail to match an
2678         "extern unsigned char const *" declaration in idutils.
2679         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
2680         a way to support use of that type of macro.
2681         (_gl_TS_var_match): Simplify regexp.
2682         (_gl_TS_obj_files): New configurable variable.
2683         (_gl_TS_headers): Likewise.
2684
2685 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
2686
2687         verify: fix bug when gnulib <assert.h> is also included
2688         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
2689         is defined, not if _GL_STATIC_ASSERT_H is not defined.
2690         Perhaps there's a better way, but this fixes the immediate problem.
2691         Problem reported by Bruno Haible in
2692         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
2693
2694 2011-05-22  Bruno Haible  <bruno@clisp.org>
2695
2696         xgetcwd: Simplify autoconf macro.
2697         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
2698
2699 2011-05-22  Bruno Haible  <bruno@clisp.org>
2700
2701         New module 'mktime-internal'.
2702         * modules/mktime-internal: New file.
2703         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
2704         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
2705         mktime_internal as a C macro if libc has __mktime_internal.
2706         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
2707         conditions.
2708         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
2709
2710 2011-05-22  Bruno Haible  <bruno@clisp.org>
2711
2712         timegm: Correct mktime replacement statements.
2713         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
2714         defining mktime as a C macro. This completes a 2009-07-28 commit.
2715
2716 2011-05-22  Bruno Haible  <bruno@clisp.org>
2717
2718         timegm: Simplify autoconf macro.
2719         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
2720
2721 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
2722
2723         clock-time: change to LGPLv2+.
2724         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
2725         BSD-like but we have no mark for that; this is good enough for now.
2726
2727 2011-05-21  Bruno Haible  <bruno@clisp.org>
2728
2729         strerror_r: Fix comments.
2730         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
2731
2732 2011-05-21  Bruno Haible  <bruno@clisp.org>
2733
2734         relocatable-prog-wrapper: Fix possible link error.
2735         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
2736         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
2737         (gl_FUNC_SETENV): ... to here.
2738         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
2739         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
2740
2741 2011-05-21  Bruno Haible  <bruno@clisp.org>
2742
2743         relocatable-prog-wrapper: Assume strerror() exists.
2744         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
2745         m4/strerror.m4.
2746         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
2747         * lib/relocwrapper.c: Remove mention of strerror module.
2748         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
2749         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
2750         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
2751         C macro.
2752
2753 2011-05-21  Bruno Haible  <bruno@clisp.org>
2754
2755         select: Simplify replacement idiom.
2756         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
2757         Win32 platforms.
2758         * lib/sys_select.in.h (select): Simplify accordingly.
2759         * modules/select (Depends-on): Likewise.
2760
2761 2011-05-21  Bruno Haible  <bruno@clisp.org>
2762
2763         mkdir-p: Simplify autoconf macro.
2764         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
2765         gl_FUNC_LCHOWN.
2766
2767 2011-05-21  Eric Blake  <eblake@redhat.com>
2768
2769         strerror_r: avoid clobbering strerror on cygwin
2770         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
2771         fall back instead to sys_errlist.
2772         * modules/strerror (configure.ac): Add witness.
2773         * tests/test-strerror_r.c (main): Enhance test.
2774         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2775         * tests/test-perror2.c (main): Free memory before exit.
2776
2777 2011-05-21  Bruno Haible  <bruno@clisp.org>
2778
2779         mkdtemp: Use gnulib naming conventions.
2780         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
2781         * modules/mkdtemp (configure.ac): Update.
2782
2783 2011-05-20  Eric Blake  <eblake@redhat.com>
2784
2785         strerror_r: avoid corrupting errno on Solaris
2786         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
2787         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2788
2789         strerror_r: avoid compiler warning
2790         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
2791
2792         strerror_r: simplify AIX code
2793         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
2794
2795         test-perror: avoid spurious failure on FreeBSD
2796         * modules/perror-tests (Depends-on): Add strerror, now that
2797         strerror_r no longer pulls it in.
2798
2799 2011-05-20  Bruno Haible  <bruno@clisp.org>
2800
2801         strerror_r-posix: Remove unused dependencies.
2802         * modules/strerror_r-posix (Depends-on): Remove strerror.
2803         Reported by Eric Blake.
2804
2805 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
2806
2807         intprops: remove assumption about A|B representation
2808         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
2809         is a valid integer if both A and B are.  Although this is true for
2810         all known practical hosts, the C standard doesn't guarantee it,
2811         and the code need not assume it.  Also, this change may work around
2812         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
2813         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
2814
2815 2011-05-20  Eric Blake  <eblake@redhat.com>
2816
2817         perror: work around FreeBSD bug
2818         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
2819         is broken.  Move AC_LIBOBJ...
2820         * modules/perror (configure.ac): Here.
2821         * doc/posix-functions/perror.texi (perror): Document this.
2822         * tests/test-perror2.c (main): Enhance test.
2823
2824         test-perror: check for strerror interactions
2825         * tests/macros.h (STREQ): Add macro.
2826         * modules/perror-tests (Files): Add second test.
2827         * tests/test-perror2.c (main): New file.
2828         * doc/posix-functions/perror.texi (perror): Document glibc bug.
2829
2830         test-perror: rewrite to use init script
2831         * modules/perror-tests (Files): Add init.sh.
2832         * tests/test-perror.sh: Use temporary directory.
2833
2834 2011-05-20  Jim Meyering  <meyering@redhat.com>
2835
2836         maint: replace misused "a" with "an"
2837         * doc/intprops.texi: "a integer"
2838         * doc/regex.texi: "a explanation"
2839         * lib/alignof.h: "a object"
2840         * lib/argmatch.h: "a explanation"
2841         * lib/argp-help.c: "a option" and "a OPTION_DOC"
2842         * lib/stdint.in.h: "a integer"
2843         * lib/userspec.c: "a owner"
2844         * doc/gnulib.texi: Fix "a idea", and reword.
2845
2846 2011-05-19  Jim Meyering  <meyering@redhat.com>
2847
2848         maint: correct misuse of "a" and "an"
2849         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
2850         * lib/argp-help.c: "an docum...": s/an/a/
2851         * lib/argp-parse.c: "An vector": s/An/A/
2852         * lib/execute.c: "an native": s/an/a/
2853         * lib/spawn-pipe.c: Likewise.
2854         * lib/gc.h: "an Gc_rc": s/an/a/
2855         * lib/unigbrk.in.h: "an grapheme": s/an/a/
2856         * lib/fts.c: "an stat.st_dev": s/an/a/
2857
2858 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2859
2860         intprops-tests: work around HP-UX 11.23 cc bug with constants
2861         * tests/test-intprops.c (VERIFY): New macro.
2862         (main): Use it, instead of verify, to work around the compiler bug; see
2863         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2864
2865         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
2866         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
2867         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
2868         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
2869         (_GL_REMAINDER_OVERFLOW): Use it.
2870
2871         intprops-tests: revert unsigned part of previous change
2872         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
2873         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
2874         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
2875         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
2876
2877 2011-05-19  Bruno Haible  <bruno@clisp.org>
2878
2879         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
2880         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
2881         strerror_r() returned without filling the buffer.
2882         Reported by Eric Blake.
2883
2884 2011-05-19  Eric Blake  <eblake@redhat.com>
2885
2886         strerror_r: guarantee unchanged errno
2887         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
2888         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
2889         failure.
2890         * tests/test-strerror_r.c (main): Enhance test.
2891
2892 2011-05-19  Bruno Haible  <bruno@clisp.org>
2893
2894         strerror_r: Reorder #if blocks.
2895         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
2896         for consistency with the previous commit.
2897
2898 2011-05-19  Bruno Haible  <bruno@clisp.org>
2899
2900         perror: Avoid clobbering the strerror buffer when possible.
2901         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
2902         * lib/strerror.c: Include it.
2903         * modules/strerror (Files): Add lib/strerror-impl.h.
2904         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
2905         (my_strerror): New function, defined through lib/strerror-impl.h.
2906         (perror): Use it instead of strerror.
2907         * modules/perror (Files): Add lib/strerror-impl.h.
2908         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
2909
2910 2011-05-19  Eric Blake  <eblake@redhat.com>
2911
2912         strerror_r: fix on newer cygwin
2913         * lib/strerror_r.c (strerror_r): Cygwin now has
2914         __xpg_strerror_r, use it.
2915
2916 2011-05-19  Bruno Haible  <bruno@clisp.org>
2917
2918         strerror_r: Avoid clobbering the strerror buffer when possible.
2919         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
2920         (sys_nerr, sys_errlist): New declarations.
2921         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
2922         HP-UX, native Win32, IRIX, and 32-bit Solaris.
2923         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
2924
2925 2011-05-19  Bruno Haible  <bruno@clisp.org>
2926
2927         strerror_r: Fix test failure on mingw.
2928         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
2929         EXTEND_STRERROR_R.
2930         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
2931         macros from errno.in.h instead.
2932
2933 2011-05-19  Eric Blake  <eblake@redhat.com>
2934
2935         strerror: relax test for Solaris
2936         * tests/test-strerror.c (main): Permit Solaris behavior.
2937         * tests/test-strerror_r.c (main): Likewise.
2938
2939         strerror: enforce POSIX ruling on strerror(0)
2940         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
2941         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
2942         * lib/strerror_r.c (rpl_strerror_r): Work around it.
2943         * doc/posix-functions/strerror.texi (strerror): Document it.
2944         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
2945         * tests/test-strerror.c (main): Strengthen test.
2946         * tests/test-strerror_r.c (main): Likewise.
2947
2948 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2949
2950         intprop-tests: port to older and more-pedantic compilers
2951         * modules/intprops-tests (Files): Add tests/macros.h.
2952         * tests/test-intprops.c: Include macros.h.
2953         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
2954         it's no longer documented to expand to an integer constant expression.
2955         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
2956         argument is floating point, as it's no longer documented to expand
2957         to an integer constant expression in that case.
2958         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
2959         compiler bugs reported by Bruno Haible.  See
2960         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2961         (U0, U1): New constants, to work around the same bugs.  Also,
2962         in tests, use e.g., "(unsigned int) 39" rather than "39u".
2963
2964         intprops: work around C compiler bugs
2965         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
2966         bug in Sun C 5.11 2010/08/13 and other compilers; see
2967         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2968
2969         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
2970         * doc/intprops.texi (Integer Type Determination): Fix
2971         documentation for TYPE_IS_INTEGER: it returns an constant
2972         expression, not an integer constant expression.  Fix doc for
2973         TYPE_SIGNED: it returns an integer constant expression only if its
2974         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
2975         hardly worth documented that way....)
2976
2977 2011-05-18  Bruno Haible  <bruno@clisp.org>
2978
2979         strerror_r: Avoid clobbering the strerror buffer when possible.
2980         * lib/strerror_r.c (strerror_r): Merge the three implementations.
2981         Handle gnulib defined errno values here. When strerror() returns NULL
2982         or an empty string, return EINVAL.
2983         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
2984         gnulib defined errno values here.
2985         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
2986
2987 2011-05-18  Eric Blake  <eblake@redhat.com>
2988
2989         fnmatch: avoid compiler warning
2990         * lib/fnmatch_loop.c (FCT): Use correct type.
2991         Reported by Matthias Bolte.
2992
2993 2011-05-13  Jim Meyering  <meyering@redhat.com>
2994
2995         maint.mk: three new prohibit_<HDR>_without_use rules
2996         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
2997         (sc_prohibit_stdio-safer_without_use): Likewise.
2998         (sc_prohibit_xfreopen_without_use): Likewise.
2999
3000 2011-05-17  Jim Meyering  <meyering@redhat.com>
3001
3002         announce-gen: fail if the NEWS delta is empty
3003         If there's nothing noteworthy in NEWS, then either you forgot
3004         or you shouldn't be releasing.
3005         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
3006
3007 2011-05-17  Pádraig Brady <P@draigBrady.com>
3008
3009         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
3010         reserved symbols starting with double underscore from the check.
3011
3012 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
3013
3014         intprops: add doc
3015         * doc/intprops.texi: New file, documenting intprops.
3016         * doc/gnulib.texi (Particular Modules): Include it.
3017
3018         verify: add doc to gnulib manual and fix example
3019         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
3020         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
3021         (Compile-time Assertions): Fix example so it can't overflow.
3022
3023 2011-05-17  Jim Meyering  <meyering@redhat.com>
3024
3025         warnings.m4: don't usurp save_CPPFLAGS variable name
3026         * m4/warnings.m4: Prefix local temporary variable name with gl_.
3027
3028         doc: fix typo
3029         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
3030
3031 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3032             Bruno Haible  <bruno@clisp.org>
3033
3034         doc: Tweak recent change.
3035         * README (Portability guidelines): Tweak new text.
3036         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
3037         Interix 6.1.
3038
3039 2011-05-16  Eric Blake  <eblake@redhat.com>
3040
3041         inttypes: avoid autoconf warning
3042         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
3043         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3044
3045 2011-05-16  Sam Steingold <sds@gnu.org>
3046         and Eric Blake  <eblake@redhat.com>
3047
3048         vc-list-files: accept multiple directory operands
3049         * build-aux/vc-list-files: Iterate over all remaining operands.
3050
3051 2011-05-16  Bruno Haible  <bruno@clisp.org>
3052
3053         Fix confusion regarding deprecated modules.
3054         * modules/calloc (Status, Notice): Mark module as deprecated, not
3055         obsolete.
3056         * modules/fnmatch-posix (Status, Notice): Likewise.
3057         * modules/getdate (Status, Notice): Likewise.
3058         * modules/getopt (Status, Notice): Likewise.
3059         * modules/malloc (Status, Notice): Likewise.
3060         * modules/pipe (Status, Notice): Likewise.
3061         * modules/realloc (Status, Notice): Likewise.
3062         * modules/rename-dest-slash (Status, Notice): Likewise.
3063         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
3064         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
3065         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
3066         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
3067         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
3068
3069 2011-05-16  Bruno Haible  <bruno@clisp.org>
3070
3071         doc: List the target platforms.
3072         * doc/gnulib-intro.texi (Target Platforms): New section.
3073         * doc/gnulib.texi (Introduction): Update menu.
3074         * README (Portability guidelines): Refer to the new section. Update
3075         statement about oldest supported environment. Remove rationale why
3076         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
3077         unportable C89 function.
3078         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
3079         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
3080
3081 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3082
3083         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
3084
3085 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
3086
3087         intprops-tests: new module
3088         * modules/intprops-tests, tests/test-intprops.c: New files.
3089
3090         intprops: add safe, portable integer overflow checking
3091         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
3092         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
3093         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
3094         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
3095         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
3096         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
3097         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
3098         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
3099         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
3100         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
3101         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
3102
3103 2011-05-12  James Youngman  <jay@gnu.org>
3104
3105         Add a test for glibc's Bugzilla bug #12378.
3106         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
3107         doesn't allow the literal matching of a lone "[" (which is
3108         required by POSIX).
3109         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
3110
3111 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
3112
3113         Sync glibc change fixing Bugzilla bug #12378.
3114         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
3115         beginning and fall back to matching as normal character if the
3116         string ends before the matching ']' is found.  This is what POSIX
3117         requires.
3118
3119 2011-05-13  Eric Blake  <eblake@redhat.com>
3120
3121         getcwd-lgpl: relax test for FreeBSD
3122         * doc/posix-functions/getcwd.texi (getcwd): Document portability
3123         issue.
3124         * tests/test-getcwd-lgpl.c (main): Relax test.
3125         Reported by Matthias Bolte.
3126
3127 2011-05-11  Eric Blake  <eblake@redhat.com>
3128
3129         test-fflush: silence compiler warning
3130         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
3131
3132 2011-05-11  Bruno Haible  <bruno@clisp.org>
3133
3134         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
3135         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
3136         * modules/canonicalize (Depends-on): Add 'nocrash'.
3137         * modules/canonicalize-lgpl (Depends-on): Likewise.
3138         * doc/posix-functions/realpath.texi: Update platforms list.
3139         Reported by Ryan Schmidt <ryandesign@macports.org>.
3140
3141 2011-05-11  Bruno Haible  <bruno@clisp.org>
3142
3143         group-member: Declare function in <unistd.h>.
3144         * lib/unistd.in.h (group_member): New declaration.
3145         * lib/group-member.h: Remove file.
3146         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
3147         * tests/test-unistd-c++.cc: Check signature of group_member.
3148         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
3149         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
3150         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
3151         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
3152         HAVE_GROUP_MEMBER.
3153         * modules/group-member (Files): Remove lib/group-member.h.
3154         (Depends-on): Add unistd. Specify conditions.
3155         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3156         (Include): Change to <unistd.h>.
3157         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
3158         HAVE_GROUP_MEMBER.
3159         * NEWS: Mention the change.
3160         * lib/euidaccess.c: Don't include group-member.h.
3161
3162 2011-05-11  Bruno Haible  <bruno@clisp.org>
3163
3164         group-member: Document module.
3165         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
3166         module.
3167
3168 2011-05-11  Bruno Haible  <bruno@clisp.org>
3169
3170         fclose: Fix mistake earlier today.
3171         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
3172
3173 2011-05-11  Eric Blake  <eblake@redhat.com>
3174
3175         fclose: preserve fflush errors
3176         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
3177         Reported by Jim Meyering.
3178
3179         bootstrap: support a prereq of 'rpcgen -' on RHEL5
3180         * build-aux/bootstrap (check_versions): When no specific version
3181         is required, merely check that the app produces an exit status
3182         that indicates its existence.
3183
3184         maint.mk: drop redundant check
3185         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
3186         the same but better.
3187
3188 2011-05-11  Bruno Haible  <bruno@clisp.org>
3189
3190         fclose: Fix possible link error.
3191         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
3192         unregister_shadow_fd. Improve comments.
3193         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
3194         Eric Blake.
3195
3196 2011-05-11  Jim Meyering  <meyering@redhat.com>
3197
3198         maint.mk: improve "can not" detection and generalize rule name
3199         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
3200         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
3201         Use the same technique as in sc_prohibit_doubled_word, so that
3202         we recognize "can not" also when the words are separated by a newline.
3203         Suggested by Eric Blake.
3204         (perl_filename_lineno_text_): Define.  Factored out of...
3205         (prohibit_doubled_word_): ...here.  Use the new definition.
3206         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
3207         (prohibit_undesirable_word_seq_RE_): New overridable variable.
3208         (ignore_undesirable_word_sequence_RE_): New overridable variable.
3209
3210 2011-05-10  Eric Blake  <eblake@redhat.com>
3211
3212         fclose: avoid double close race when possible
3213         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
3214         all but WINDOWS_SOCKETS.
3215
3216 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
3217
3218         openat: correct new comment
3219         * lib/openat-proc.c (openat_proc_name): Correct the comment.
3220
3221 2011-05-10  Jim Meyering  <meyering@redhat.com>
3222
3223         openat: add comments
3224         * lib/openat-proc.c (openat_proc_name): Add comments,
3225         mostly from Eric Blake.
3226
3227 2011-05-09  Eric Blake  <eblake@redhat.com>
3228
3229         openat: reduce syscalls in first probe of /proc
3230         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
3231         be a directory.  Simplify the probe for .. bugs.
3232         * modules/openat (Depends-on): Drop same-inode.
3233         Reported by Bastien ROUCARIES.
3234
3235 2011-05-09  Jim Meyering  <meyering@redhat.com>
3236
3237         maint.mk: change semantics/name of tight_scope variables
3238         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
3239         Rename variables to align with semantics that make them more useful.
3240
3241         maint.mk: tweak new rule's name not to impinge
3242         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
3243         (sc_tight_scope): Use new rule name rather than $@-0.
3244
3245         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
3246         * top/maint.mk (sc_tight_scope): New rule.
3247         (sc_tight_scope-0): New rule, ifdef'd out.
3248         (_gl_TS_dir): Default.
3249         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
3250         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
3251
3252 2011-05-09  Simon Josefsson  <simon@josefsson.org>
3253
3254         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
3255         Haible <bruno@clisp.org>.
3256
3257 2011-05-08  Bruno Haible  <bruno@clisp.org>
3258
3259         Comments.
3260         * m4/isnanf.m4: Add comment.
3261         * m4/isnanl.m4: Likewise.
3262
3263 2011-05-08  Bruno Haible  <bruno@clisp.org>
3264
3265         glob: Remove obsolete macro.
3266         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
3267
3268 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
3269
3270         intprops: Sun C 5.11 supports __typeof__
3271         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
3272         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
3273         which is new.
3274         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
3275
3276         intprops: switch to usual gnulib indenting and naming
3277         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
3278         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
3279
3280         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
3281
3282 2011-05-08  Jim Meyering  <meyering@redhat.com>
3283
3284         maint.mk: suppress "Entering/Leaving directory" diag in announcement
3285         * top/maint.mk (release-prep): Use make's --no-print-directory
3286         option when generating the announcement.  This eliminates the
3287         pesky "make[2]: Entering/Leaving directory" diagnostics in the
3288         generated announcement template.
3289
3290 2011-05-08  Bruno Haible  <bruno@clisp.org>
3291
3292         tzset: Fix gettimeofday wrapper on Solaris 2.6.
3293         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
3294         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
3295
3296 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3297
3298         ignore-value, verify: Omit include files from lib_SOURCES.
3299         * modules/ignore-value, modules/verify (Makefile.am):
3300         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
3301         that leads Automake to duplicate use of am__objects_... variables
3302         in Makefile.in.  See
3303         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
3304
3305 2011-05-07  Bruno Haible  <bruno@clisp.org>
3306
3307         fclose: Simplify autoconf macro.
3308         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
3309         defined.
3310
3311 2011-05-07  Bruno Haible  <bruno@clisp.org>
3312
3313         canonicalize-lgpl: Fix autoconf macro ordering bug.
3314         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
3315         gl_STDLIB_H_DEFAULTS.
3316
3317 2011-05-06  Eric Blake  <eblake@redhat.com>
3318
3319         maintainer-makefile: make sc_po_check easier to tune
3320         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
3321         to probe for strings, such as an alternate location for gnulib.
3322
3323         fclose: guarantee behavior on seekable stdin
3324         * modules/fclose (Depends-on): Add fflush.
3325         * doc/posix-functions/fclose.texi (fclose): Document this.
3326         * tests/test-fclose.c (main): Make test for this unconditional.
3327
3328 2011-05-06  Bruno Haible  <bruno@clisp.org>
3329
3330         fflush, fpurge: Relicense under LGPLv2+.
3331         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
3332         * modules/fpurge (License): Likewise.
3333         With permission from Eric Blake and Jim Meyering.
3334         Suggested by Eric Blake.
3335
3336 2011-05-06  Karl Berry  <karl@gnu.org>
3337
3338         * MODULES.html.sh (func_all_modules): remove exit.
3339
3340 2011-05-06  Jim Meyering  <meyering@redhat.com>
3341
3342         maint.mk: use info-gnu@ as the default only for a stable release
3343         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
3344         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
3345         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
3346         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
3347
3348 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3349
3350         assert-h: new module, which supports C1X-style static_assert
3351         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
3352         * lib/verify.h: Revamp so that this can be copied into assert.h,
3353         while retaining the ability to use it standalone as before.
3354         Rename private identifiers so as not to encroach on the
3355         standard C namespace, since this is now used by assert.h.
3356         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
3357         the old verify_true.
3358         (_GL_VERIFY_TRUE): New macro, with much of the contents of
3359         the old verify_true.  Use _GL_VERIFY_TYPE.
3360         (_GL_VERIFY): New macro, with much of the contents of the old verify.
3361         (static_assert): New macro, if _GL_STATIC_ASSERT_H
3362         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
3363         defined when this file is copied into the replacement assert.h.
3364         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
3365         and _Static_assert is not built in.
3366         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
3367         defined, and use the new macros mentioned above.
3368         * doc/posix-headers/assert.texi: Document this.
3369
3370 2011-05-05  Bruno Haible  <bruno@clisp.org>
3371
3372         fclose, fflush: Respect rules for use of AC_LIBOBJ.
3373         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
3374         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
3375         gl_REPLACE_FCLOSE here.
3376         * modules/fflush (Depends-on): Remove fclose.
3377         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
3378         combination with module 'fclose'.
3379
3380 2011-05-05  Bruno Haible  <bruno@clisp.org>
3381
3382         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
3383         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
3384         gl_FUNC_FFLUSH.
3385         (gl_FUNC_FFLUSH): Use it.
3386         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
3387         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
3388         gl_REPLACE_FSEEKO here.
3389
3390 2011-05-05  Bruno Haible  <bruno@clisp.org>
3391
3392         tzset: Relicense under LGPL.
3393         * modules/tzset (License): Change to LGPL.
3394         No agreement needed; it's a no-op.
3395
3396         strtoimax, strtoumax: Relicense under LGPL.
3397         * modules/strtoimax (License): Change to LGPL.
3398         * modules/strtoumax (License): Likewise.
3399         With permission from Jim Meyering, Paul Eggert:
3400         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
3401         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
3402
3403         getgroups: Relicense under LGPL.
3404         * modules/getgroups (License): Change to LGPL.
3405         With permission from Jim Meyering, Paul Eggert, Eric Blake:
3406         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3407         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3408         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3409
3410         nanosleep: Relicense under LGPL.
3411         * modules/nanosleep (License): Change to LGPL.
3412         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
3413         Haible:
3414         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3415         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3416         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3417         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3418
3419         futimens: Relicense under LGPL.
3420         * modules/futimens (License): Change to LGPL.
3421         With permission from Eric Blake:
3422         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3423
3424         fflush: Relicense under LGPL.
3425         * modules/fflush (License): Change to LGPL.
3426         With permission from Eric Blake, Bruno Haible, Jim Meyering:
3427         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3428         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3429         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
3430
3431         tmpfile: Relicense under LGPL.
3432         * modules/tmpfile (License): Change to LGPL.
3433         With permission from Ben Pfaff:
3434         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3435
3436         isfinite: Relicense under LGPL.
3437         * modules/isfinite (License): Change to LGPL.
3438         With permission from Ben Pfaff, Bruno Haible:
3439         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3440         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
3441
3442         acosl..tanl: Relicense under LGPL.
3443         * modules/acosl (License): Change to LGPL.
3444         * modules/asinl (License): Likewise.
3445         * modules/atanl (License): Likewise.
3446         * modules/cosl (License): Likewise.
3447         * modules/expl (License): Likewise.
3448         * modules/logl (License): Likewise.
3449         * modules/sinl (License): Likewise.
3450         * modules/sqrtl (License): Likewise.
3451         * modules/tanl (License): Likewise.
3452         Source code originally from glibc and Paolo Bonzini. Agreements:
3453         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
3454         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
3455
3456 2011-05-05  Bruno Haible  <bruno@clisp.org>
3457
3458         signal: Define sighandler_t.
3459         * lib/signal.in.h (sighandler_t): New type.
3460         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
3461         whether sighandler_t is defined.
3462         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
3463         * modules/signal (Depends-on): Add extensions.
3464         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
3465         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
3466         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
3467
3468 2011-05-05  Eric Blake  <eblake@redhat.com>
3469
3470         maint: remove useless REPLACE_*_H macros
3471         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
3472         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3473         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3474         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
3475         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3476         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3477         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
3478         * m4/btowc.m4: Update callers.
3479         * m4/dirfd.m4: Likewise.
3480         * m4/duplocale.m4: Likewise.
3481         * m4/fchdir.m4: Likewise.
3482         * m4/fdopendir.m4: Likewise.
3483         * m4/inet_ntop.m4: Likewise.
3484         * m4/inet_pton.m4: Likewise.
3485         * m4/ioctl.m4: Likewise.
3486         * m4/mbrlen.m4: Likewise.
3487         * m4/mbrtowc.m4: Likewise.
3488         * m4/mbsinit.m4: Likewise.
3489         * m4/mbsnrtowcs.m4: Likewise.
3490         * m4/mbsrtowcs.m4: Likewise.
3491         * m4/poll.m4: Likewise.
3492         * m4/setlocale.m4: Likewise.
3493         * m4/wcrtomb.m4: Likewise.
3494         * m4/wcsnrtombs.m4: Likewise.
3495         * m4/wcsrtombs.m4: Likewise.
3496         * m4/wctob.m4: Likewise.
3497         * m4/wcwidth.m4: Likewise.
3498         * modules/posix_spawn: Likewise.
3499         * modules/posix_spawn_file_actions_addclose: Likewise.
3500         * modules/posix_spawn_file_actions_adddup2: Likewise.
3501         * modules/posix_spawn_file_actions_addopen: Likewise.
3502         * modules/posix_spawn_file_actions_destroy: Likewise.
3503         * modules/posix_spawn_file_actions_init: Likewise.
3504         * modules/posix_spawnattr_destroy: Likewise.
3505         * modules/posix_spawnattr_getflags: Likewise.
3506         * modules/posix_spawnattr_getpgroup: Likewise.
3507         * modules/posix_spawnattr_getschedparam: Likewise.
3508         * modules/posix_spawnattr_getschedpolicy: Likewise.
3509         * modules/posix_spawnattr_getsigdefault: Likewise.
3510         * modules/posix_spawnattr_getsigmask: Likewise.
3511         * modules/posix_spawnattr_init: Likewise.
3512         * modules/posix_spawnattr_setflags: Likewise.
3513         * modules/posix_spawnattr_setpgroup: Likewise.
3514         * modules/posix_spawnattr_setschedparam: Likewise.
3515         * modules/posix_spawnattr_setschedpolicy: Likewise.
3516         * modules/posix_spawnattr_setsigdefault: Likewise.
3517         * modules/posix_spawnattr_setsigmask: Likewise.
3518         * modules/posix_spawnp: Likewise.
3519
3520 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
3521
3522         Add option to do-release-commit-and-tag to specify branch.
3523         * build-aux/do-release-commit-and-tag: Add --branch.
3524
3525 2011-05-03  Bruno Haible  <bruno@clisp.org>
3526
3527         Avoid unnecessary compilation units, through conditional dependencies.
3528         * modules/accept (Depends-on): Add conditions to the dependencies.
3529         * modules/acosl (Depends-on): Likewise.
3530         * modules/argz (Depends-on): Likewise.
3531         * modules/asinl (Depends-on): Likewise.
3532         * modules/atanl (Depends-on): Likewise.
3533         * modules/atoll (Depends-on): Likewise.
3534         * modules/bind (Depends-on): Likewise.
3535         * modules/btowc (Depends-on): Likewise.
3536         * modules/canonicalize-lgpl (Depends-on): Likewise.
3537         * modules/ceil (Depends-on): Likewise.
3538         * modules/ceilf (Depends-on): Likewise.
3539         * modules/ceill (Depends-on): Likewise.
3540         * modules/chdir-long (Depends-on): Likewise.
3541         * modules/chown (Depends-on): Likewise.
3542         * modules/close (Depends-on): Likewise.
3543         * modules/connect (Depends-on): Likewise.
3544         * modules/cosl (Depends-on): Likewise.
3545         * modules/dirfd (Depends-on): Likewise.
3546         * modules/dprintf (Depends-on): Likewise.
3547         * modules/dprintf-posix (Depends-on): Likewise.
3548         * modules/error (Depends-on): Likewise.
3549         * modules/euidaccess (Depends-on): Likewise.
3550         * modules/expl (Depends-on): Likewise.
3551         * modules/faccessat (Depends-on): Likewise.
3552         * modules/fchdir (Depends-on): Likewise.
3553         * modules/fclose (Depends-on): Likewise.
3554         * modules/fcntl (Depends-on): Likewise.
3555         * modules/fdopendir (Depends-on): Likewise.
3556         * modules/fflush (Depends-on): Likewise.
3557         * modules/floor (Depends-on): Likewise.
3558         * modules/floorf (Depends-on): Likewise.
3559         * modules/floorl (Depends-on): Likewise.
3560         * modules/fnmatch (Depends-on): Likewise.
3561         * modules/fopen (Depends-on): Likewise.
3562         * modules/fprintf-posix (Depends-on): Likewise.
3563         * modules/frexp (Depends-on): Likewise.
3564         * modules/frexp-nolibm (Depends-on): Likewise.
3565         * modules/frexpl (Depends-on): Likewise.
3566         * modules/frexpl-nolibm (Depends-on): Likewise.
3567         * modules/fseek (Depends-on): Likewise.
3568         * modules/fsusage (Depends-on): Likewise.
3569         * modules/ftell (Depends-on): Likewise.
3570         * modules/ftello (Depends-on): Likewise.
3571         * modules/futimens (Depends-on): Likewise.
3572         * modules/getcwd (Depends-on): Likewise.
3573         * modules/getcwd-lgpl (Depends-on): Likewise.
3574         * modules/getdelim (Depends-on): Likewise.
3575         * modules/getdomainname (Depends-on): Likewise.
3576         * modules/getgroups (Depends-on): Likewise.
3577         * modules/gethostname (Depends-on): Likewise.
3578         * modules/getline (Depends-on): Likewise.
3579         * modules/getlogin_r (Depends-on): Likewise.
3580         * modules/getopt-posix (Depends-on): Likewise.
3581         * modules/getpeername (Depends-on): Likewise.
3582         * modules/getsockname (Depends-on): Likewise.
3583         * modules/getsockopt (Depends-on): Likewise.
3584         * modules/getsubopt (Depends-on): Likewise.
3585         * modules/getusershell (Depends-on): Likewise.
3586         * modules/glob (Depends-on): Likewise.
3587         * modules/grantpt (Depends-on): Likewise.
3588         * modules/iconv_open (Depends-on): Likewise.
3589         * modules/iconv_open-utf (Depends-on): Likewise.
3590         * modules/inet_ntop (Depends-on): Likewise.
3591         * modules/inet_pton (Depends-on): Likewise.
3592         * modules/ioctl (Depends-on): Likewise.
3593         * modules/isapipe (Depends-on): Likewise.
3594         * modules/isfinite (Depends-on): Likewise.
3595         * modules/isinf (Depends-on): Likewise.
3596         * modules/lchown (Depends-on): Likewise.
3597         * modules/ldexpl (Depends-on): Likewise.
3598         * modules/link (Depends-on): Likewise.
3599         * modules/linkat (Depends-on): Likewise.
3600         * modules/listen (Depends-on): Likewise.
3601         * modules/logl (Depends-on): Likewise.
3602         * modules/lstat (Depends-on): Likewise.
3603         * modules/mbrlen (Depends-on): Likewise.
3604         * modules/mbrtowc (Depends-on): Likewise.
3605         * modules/mbsinit (Depends-on): Likewise.
3606         * modules/mbsnrtowcs (Depends-on): Likewise.
3607         * modules/mbsrtowcs (Depends-on): Likewise.
3608         * modules/mbtowc (Depends-on): Likewise.
3609         * modules/memcmp (Depends-on): Likewise.
3610         * modules/mkdir (Depends-on): Likewise.
3611         * modules/mkdtemp (Depends-on): Likewise.
3612         * modules/mkfifo (Depends-on): Likewise.
3613         * modules/mkfifoat (Depends-on): Likewise.
3614         * modules/mknod (Depends-on): Likewise.
3615         * modules/mkostemp (Depends-on): Likewise.
3616         * modules/mkostemps (Depends-on): Likewise.
3617         * modules/mkstemp (Depends-on): Likewise.
3618         * modules/mkstemps (Depends-on): Likewise.
3619         * modules/mktime (Depends-on): Likewise.
3620         * modules/nanosleep (Depends-on): Likewise.
3621         * modules/open (Depends-on): Likewise.
3622         * modules/openat (Depends-on): Likewise.
3623         * modules/perror (Depends-on): Likewise.
3624         * modules/poll (Depends-on): Likewise.
3625         * modules/popen (Depends-on): Likewise.
3626         * modules/posix_spawn (Depends-on): Likewise.
3627         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
3628         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
3629         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
3630         * modules/posix_spawnp (Depends-on): Likewise.
3631         * modules/pread (Depends-on): Likewise.
3632         * modules/printf-posix (Depends-on): Likewise.
3633         * modules/ptsname (Depends-on): Likewise.
3634         * modules/putenv (Depends-on): Likewise.
3635         * modules/pwrite (Depends-on): Likewise.
3636         * modules/readline (Depends-on): Likewise.
3637         * modules/readlink (Depends-on): Likewise.
3638         * modules/readlinkat (Depends-on): Likewise.
3639         * modules/recv (Depends-on): Likewise.
3640         * modules/recvfrom (Depends-on): Likewise.
3641         * modules/regex (Depends-on): Likewise.
3642         * modules/remove (Depends-on): Likewise.
3643         * modules/rename (Depends-on): Likewise.
3644         * modules/renameat (Depends-on): Likewise.
3645         * modules/rmdir (Depends-on): Likewise.
3646         * modules/round (Depends-on): Likewise.
3647         * modules/roundf (Depends-on): Likewise.
3648         * modules/roundl (Depends-on): Likewise.
3649         * modules/rpmatch (Depends-on): Likewise.
3650         * modules/select (Depends-on): Likewise.
3651         * modules/send (Depends-on): Likewise.
3652         * modules/sendto (Depends-on): Likewise.
3653         * modules/setenv (Depends-on): Likewise.
3654         * modules/setlocale (Depends-on): Likewise.
3655         * modules/setsockopt (Depends-on): Likewise.
3656         * modules/shutdown (Depends-on): Likewise.
3657         * modules/sigaction (Depends-on): Likewise.
3658         * modules/signbit (Depends-on): Likewise.
3659         * modules/sigprocmask (Depends-on): Likewise.
3660         * modules/sinl (Depends-on): Likewise.
3661         * modules/sleep (Depends-on): Likewise.
3662         * modules/snprintf (Depends-on): Likewise.
3663         * modules/snprintf-posix (Depends-on): Likewise.
3664         * modules/socket (Depends-on): Likewise.
3665         * modules/sprintf-posix (Depends-on): Likewise.
3666         * modules/sqrtl (Depends-on): Likewise.
3667         * modules/stat (Depends-on): Likewise.
3668         * modules/strchrnul (Depends-on): Likewise.
3669         * modules/strdup-posix (Depends-on): Likewise.
3670         * modules/strerror (Depends-on): Likewise.
3671         * modules/strerror_r-posix (Depends-on): Likewise.
3672         * modules/strndup (Depends-on): Likewise.
3673         * modules/strnlen (Depends-on): Likewise.
3674         * modules/strptime (Depends-on): Likewise.
3675         * modules/strsep (Depends-on): Likewise.
3676         * modules/strsignal (Depends-on): Likewise.
3677         * modules/strstr-simple (Depends-on): Likewise.
3678         * modules/strtod (Depends-on): Likewise.
3679         * modules/strtoimax (Depends-on): Likewise.
3680         * modules/strtok_r (Depends-on): Likewise.
3681         * modules/strtoumax (Depends-on): Likewise.
3682         * modules/symlink (Depends-on): Likewise.
3683         * modules/symlinkat (Depends-on): Likewise.
3684         * modules/tanl (Depends-on): Likewise.
3685         * modules/tcgetsid (Depends-on): Likewise.
3686         * modules/tmpfile (Depends-on): Likewise.
3687         * modules/trunc (Depends-on): Likewise.
3688         * modules/truncf (Depends-on): Likewise.
3689         * modules/truncl (Depends-on): Likewise.
3690         * modules/uname (Depends-on): Likewise.
3691         * modules/unlink (Depends-on): Likewise.
3692         * modules/unlockpt (Depends-on): Likewise.
3693         * modules/unsetenv (Depends-on): Likewise.
3694         * modules/usleep (Depends-on): Likewise.
3695         * modules/utimensat (Depends-on): Likewise.
3696         * modules/vasprintf (Depends-on): Likewise.
3697         * modules/vdprintf (Depends-on): Likewise.
3698         * modules/vdprintf-posix (Depends-on): Likewise.
3699         * modules/vfprintf-posix (Depends-on): Likewise.
3700         * modules/vprintf-posix (Depends-on): Likewise.
3701         * modules/vsnprintf (Depends-on): Likewise.
3702         * modules/vsnprintf-posix (Depends-on): Likewise.
3703         * modules/vsprintf-posix (Depends-on): Likewise.
3704         * modules/wcrtomb (Depends-on): Likewise.
3705         * modules/wcscasecmp (Depends-on): Likewise.
3706         * modules/wcscspn (Depends-on): Likewise.
3707         * modules/wcsdup (Depends-on): Likewise.
3708         * modules/wcsncasecmp (Depends-on): Likewise.
3709         * modules/wcsnrtombs (Depends-on): Likewise.
3710         * modules/wcspbrk (Depends-on): Likewise.
3711         * modules/wcsrtombs (Depends-on): Likewise.
3712         * modules/wcsspn (Depends-on): Likewise.
3713         * modules/wcsstr (Depends-on): Likewise.
3714         * modules/wcstok (Depends-on): Likewise.
3715         * modules/wcswidth (Depends-on): Likewise.
3716         * modules/wctob (Depends-on): Likewise.
3717         * modules/wctomb (Depends-on): Likewise.
3718         * modules/wctype (Depends-on): Likewise.
3719         * modules/wcwidth (Depends-on): Likewise.
3720         * modules/write (Depends-on): Likewise.
3721
3722 2011-05-03  Bruno Haible  <bruno@clisp.org>
3723
3724         Support for conditional dependencies.
3725         * doc/gnulib.texi (Module description): Document the syntax of
3726         conditional dependencies.
3727         * gnulib-tool: New option --conditional-dependencies.
3728         (func_usage): Document it.
3729         (cond_dependencies): New variable.
3730         (func_get_automake_snippet_conditional,
3731         func_get_automake_snippet_unconditional): New functions, extracted from
3732         func_get_automake_snippet.
3733         (func_get_automake_snippet): Use them.
3734         (sed_first_32_chars): New variable.
3735         (func_module_shellfunc_name): New function.
3736         (func_module_shellvar_name): New function.
3737         (func_module_conditional_name): New function.
3738         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
3739         func_cond_module_condition): New functions.
3740         (func_modules_transitive_closure): Add support for conditional
3741         dependencies.
3742         (func_emit_lib_Makefile_am): For a conditional module, enclose the
3743         conditional automake snippet in an automake conditional.
3744         (func_emit_autoconf_snippets): Emit shell functions that contain the
3745         code for conditional modules.
3746         (func_import, func_create_testdir): Update specification.
3747
3748 2011-05-03  Eric Blake  <eblake@redhat.com>
3749
3750         test-getaddrinfo: report error information
3751         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
3752
3753 2011-05-03  Jim Meyering  <meyering@redhat.com>
3754
3755         bootstrap: avoid build failure when $GZIP is set
3756         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
3757         program name.  If defined at all, it is supposed to list gzip options.
3758         Reported by Alan Curry in http://debbugs.gnu.org/8609
3759
3760 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
3761
3762         readme-release: new module with release instructions
3763         * modules/readme-release: New module.
3764         * top/README-release: New file, from coreutils, grep, diffutils.
3765         * MODULES.html.sh (Support for maintaining and releasing): Add it.
3766
3767 2011-05-02  Eric Blake  <eblake@redhat.com>
3768
3769         fflush: also replace fclose when fixing fflush
3770         * modules/fflush (Depends-on): Add fclose.
3771         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
3772         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
3773         memstreams with no backing fd.
3774         * doc/posix-functions/fclose.texi (fclose): Document the use of
3775         fflush module to fix the bug.
3776         * tests/test-fclose.c (main): Relax test when fclose is used in
3777         isolation.
3778
3779         fclose: add some tests
3780         * modules/fclose-tests: New test module.
3781         * tests/test-fclose.c: New file.
3782         * doc/posix-functions/fclose.texi (fclose): Document the bug.
3783
3784         fclose: reduced dependencies
3785         * modules/fclose (Depends-on): Switch from fflush/fseeko to
3786         simpler lseek.
3787         * lib/fclose.c (rpl_fclose): Likewise.
3788         Reported by Simon Josefsson.
3789
3790         exit: drop remaining clients
3791         * modules/argmatch (Depends-on): Replace exit with stdlib.
3792         * modules/copy-file (Depends-on): Likewise.
3793         * modules/execute (Depends-on): Likewise.
3794         * modules/exitfail (Depends-on): Likewise.
3795         * modules/obstack (Depends-on): Likewise.
3796         * modules/pagealign_alloc (Depends-on): Likewise.
3797         * modules/pipe-filter-gi (Depends-on): Likewise.
3798         * modules/pipe-filter-ii (Depends-on): Likewise.
3799         * modules/savewd (Depends-on): Likewise.
3800         * modules/spawn-pipe (Depends-on): Likewise.
3801         * modules/wait-process (Depends-on): Likewise.
3802         * modules/xsetenv (Depends-on): Likewise.
3803         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
3804         * modules/git-merge-changelog (Depends-on): Likewise.
3805         * modules/long-options (Depends-on): Likewise.
3806         * modules/pt_chown (Depends-on): Likewise.
3807         * modules/sysexits (Depends-on): Likewise.
3808
3809         freading: relax license from LGPLv3+ to LGPLv2+
3810         * modules/freading (License): Relax LGPL version.
3811
3812 2011-05-02  Bruno Haible  <bruno@clisp.org>
3813
3814         fchdir: Remove unused dependencies.
3815         * modules/fchdir (Depends-on): Remove include_next.
3816
3817 2011-05-02  Bruno Haible  <bruno@clisp.org>
3818
3819         gnulib-tool: Refactor.
3820         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
3821         from func_emit_autoconf_snippets.
3822         (func_emit_autoconf_snippets): Use it.
3823
3824 2011-05-02  Simon Josefsson  <simon@josefsson.org>
3825
3826         * NEWS: Document removal of 'exit'.
3827         * modules/exit: Remove file.
3828
3829 2011-05-01  Bruno Haible  <bruno@clisp.org>
3830
3831         Update DEPENDENCIES.
3832         * DEPENDENCIES (gettext): Recommend the newest release.
3833         Reported by Simon Josefsson.
3834
3835 2011-05-01  Bruno Haible  <bruno@clisp.org>
3836
3837         gnulib-tool: Reduce code duplication.
3838         * gnulib-tool (func_emit_autoconf_snippets): New function.
3839         (func_import, func_create_testdir): Use it.
3840
3841 2011-04-30  Eric Blake  <eblake@redhat.com>
3842
3843         fclose: don't fail on non-seekable input stream
3844         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
3845         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
3846         since fflush is allowed to fail in that case.
3847
3848 2011-04-30  Bruno Haible  <bruno@clisp.org>
3849
3850         dup3: cleanup
3851         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
3852
3853 2011-04-30  Bruno Haible  <bruno@clisp.org>
3854
3855         netdb: Make it work in C++ mode.
3856         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
3857         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
3858         module.
3859         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
3860         gl_MODULE_INDICATOR_FOR_TESTS.
3861         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
3862         * modules/netdb-c++-tests: New file.
3863         * tests/test-netdb-c++.cc: New file.
3864
3865 2011-04-30  Bruno Haible  <bruno@clisp.org>
3866
3867         New modules 'vfscanf', 'vscanf'.
3868         * modules/vfscanf: New file.
3869         * modules/vscanf: New file.
3870         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
3871         here.
3872         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
3873         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
3874
3875 2011-04-30  Bruno Haible  <bruno@clisp.org>
3876
3877         passfd: Add comments.
3878         * lib/passfd.c: Add comments about platforms.
3879
3880 2011-04-30  Bruno Haible  <bruno@clisp.org>
3881
3882         sys_uio: Make <sys/uio.h> self-contained.
3883         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
3884         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
3885
3886 2011-04-30  Bruno Haible  <bruno@clisp.org>
3887
3888         sys_socket: Ensure 'struct iovec' definition.
3889         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
3890         <sys/socket.h>.
3891         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
3892
3893 2011-04-30  Bruno Haible  <bruno@clisp.org>
3894
3895         sys_uio: Protect definition of 'struct iovec'.
3896         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
3897         it as a C struct.
3898
3899 2011-04-30  Bruno Haible  <bruno@clisp.org>
3900
3901         manywarnings: fix indentation
3902         * m4/manywarnings.m4: Indent by 2 spaces consistently.
3903
3904 2011-04-30  Pádraig Brady <P@draigBrady.com>
3905
3906         manywarnings: add -Wno-missing-field-initializers if needed.
3907         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
3908         option if it's needed to allow initialization with { 0, }
3909
3910 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
3911
3912         announce-gen: cosmetic improvement
3913         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
3914
3915 2011-04-29  Jim Meyering  <meyering@redhat.com>
3916
3917         vc-list-files: indent with spaces, not TABs
3918         * build-aux/vc-list-files: Convert leading TABs to spaces,
3919         to match the style of most other files in gnulib.
3920
3921         announce-gen: indent with spaces, not TABs
3922         * build-aux/announce-gen: Convert all TABs to spaces, to match
3923         the style of most other files in gnulib.
3924
3925 2011-04-29  Eric Blake  <eblake@redhat.com>
3926
3927         quotearg: avoid uninitialized variable use
3928         * lib/quotearg.c (quoting_options_from_style): Initialize
3929         remaining fields, and ensure that custom styles are only used via
3930         quoting_options rather than quoting_style.
3931
3932 2011-04-29  Jim Meyering  <meyering@redhat.com>
3933
3934         maint.mk: remove unused VC-tag variable
3935         * top/maint.mk (VC-tag): Remove unused variable.
3936
3937 2011-04-29  Bruno Haible  <bruno@clisp.org>
3938
3939         netdb: fix gai_strerror replacements
3940         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
3941         * modules/netdb: Substitute it.
3942
3943 2011-04-29  Jim Meyering  <meyering@redhat.com>
3944
3945         test-getcwd.c: avoid new set-but-not-used warning
3946         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
3947         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
3948         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
3949         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
3950
3951         test-hash.c: avoid a new shadowing warning
3952         * tests/test-hash.c (main): Don't shadow "dup".
3953
3954 2011-04-28  Eric Blake  <eblake@redhat.com>
3955
3956         getaddrinfo: fix gai_strerror signature
3957         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
3958         and work around mingw with UNICODE defined.
3959         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
3960         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
3961         * modules/netdb (Makefile.am): Substitute it.
3962         * lib/netdb.in.h (gai_strerror): Declare replacement.
3963         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
3964         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
3965         the fix.
3966
3967         getsockopt: avoid compiler warning
3968         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
3969         Reported by Matthias Bolte.
3970
3971         tests: drop unused link dependency
3972         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
3973         * modules/dirent-safer-tests (Makefile.am): Likewise.
3974         * modules/fdopendir-tests (Makefile.am): Likewise.
3975         * modules/mkfifoat-tests (Makefile.am): Likewise.
3976         * modules/openat-safer-tests (Makefile.am): Likewise.
3977         * modules/openat-tests (Makefile.am): Likewise.
3978         * modules/readlinkat-tests (Makefile.am): Likewise.
3979         * modules/symlinkat-tests (Makefile.am): Likewise.
3980         * modules/linkat-tests (Makefile.am): Likewise.
3981         (Depends-on): Switch to filenamecat-lgpl.
3982         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
3983         LIBINTL.
3984         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
3985         * tests/test-linkat.c (main): Don't require xalloc.
3986
3987         hash, mgetgroups: drop xalloc dependency
3988         * lib/hash.c (includes): Adjust includes.
3989         * lib/mgetgroups.c (includes): Likewise.
3990         (xgetgroups): Move...
3991         * lib/xgetgroups.c: ...to new file.
3992         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
3993         * modules/xgetgroups: New file, split from...
3994         * modules/mgetgroups: ...here.
3995         (Depends-on): Add xalloc-oversized.
3996         * modules/hash (Depends-on): Likewise.
3997         * modules/hash-tests (Depends-on): Drop xalloc.
3998         (test_hash_LDADD): Drop unused library.
3999         * tests/test-hash.c (main): Break xalloc dependency.
4000         (includes): Drop unused include.
4001
4002         xalloc-oversized: new module
4003         * modules/xalloc-oversized: New module.
4004         * modules/xalloc (Depends-on): Add it.
4005         * lib/xalloc.h (xalloc_oversized): Move...
4006         * lib/xalloc-oversized.h: ...into new file.
4007
4008         utimecmp: drop dependency on xmalloc
4009         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
4010         due to memory pressure.
4011         * modules/utimecmp (Depends-on): Drop xalloc.
4012
4013 2011-04-27  Eric Blake  <eblake@redhat.com>
4014
4015         getcwd: fix mingw bugs
4016         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
4017         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
4018         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
4019
4020 2011-04-27  Bruno Haible  <bruno@clisp.org>
4021
4022         mkstemps: Ensure declaration on MacOS X 10.5.
4023         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
4024         * doc/glibc-functions/mkstemps.texi: Document header file problem on
4025         MacOS X.
4026
4027 2011-04-27  Bruno Haible  <bruno@clisp.org>
4028
4029         mkstemp: More documentation.
4030         * doc/posix-functions/mkstemp.texi: Document header file problem on
4031         MacOS X.
4032
4033 2011-04-27  Bruno Haible  <bruno@clisp.org>
4034
4035         mkstemp: Tweak configure message when cross-compiling.
4036         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
4037         result as a guess.
4038
4039 2011-04-27  Bruno Haible  <bruno@clisp.org>
4040
4041         clean-temp: Clarify what it does.
4042         * lib/clean-temp.h: Add more comments.
4043         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
4044         module.
4045         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
4046         * doc/glibc-functions/mkstemps.texi: Likewise.
4047         * doc/glibc-functions/mkostemps.texi: Likewise.
4048
4049 2011-04-27  Eric Blake  <eblake@redhat.com>
4050
4051         fchdir: avoid extra chdir and fix test
4052         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
4053         getcwd-lgpl.
4054         * lib/fchdir.c (get_name): Any absolute name will do; it does not
4055         have to be canonical.
4056         (canonicalize_file_name): Drop unused macro.
4057         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
4058
4059         filenamecat-lgpl: fix licence
4060         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
4061         when it was first created.
4062
4063         linkat, renameat: add missing dependency
4064         * modules/linkat (Depends-on): Require getcwd-lgpl.
4065         * modules/renameat (Depends-on): Likewise.
4066
4067         tests: reduce dependencies
4068         * tests/test-linkat.c (main): Use lighter-weight getcwd.
4069         * tests/test-renameat.c (main): Likewise.
4070         * modules/linkat-tests (Depends-on): Relax dependency.
4071         * modules/renameat-tests (Depends-on): Likewise.
4072         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
4073         dependency explicit.
4074
4075         save-cwd: reduce default dependency
4076         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
4077         * lib/save-cwd.c: Update comments.
4078         * NEWS: Document the semantic change.
4079
4080         getcwd: enhance tests
4081         * tests/test-getcwd-lgpl.c: New file, taken from...
4082         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
4083         repeat long path stress tests from m4 probe.
4084         * modules/getcwd-lgpl-tests: New module.
4085         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
4086         * m4/getcwd-abort-bug.m4: Update comment.
4087         * m4/getcwd-path-max.m4: Likewise.
4088
4089         getcwd-lgpl: new module
4090         * modules/getcwd-lgpl: New module.
4091         * lib/getcwd-lgpl.c: New file.
4092         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4093         * MODULES.html.sh (lacking POSIX:2008): Likewise.
4094         * modules/getcwd (configure.ac): Set C witness.
4095         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
4096
4097         getcwd: tweak comments
4098         * m4/getcwd-abort-bug.m4: Fix comments.
4099         * m4/getcwd-path-max.m4: Likewise.
4100         * m4/getcwd.m4: Likewise.
4101
4102 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4103         and Eric Blake  <eblake@redhat.com>
4104
4105         mkstemp: replace if system version uses wrong permissions
4106         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
4107         read/write mode bits set in file created by mkstemp.
4108         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
4109
4110 2011-04-27  Eric Blake  <eblake@redhat.com>
4111
4112         passfd: avoid compiler warning
4113         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
4114         Reported by Laine Stump.
4115
4116 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
4117
4118         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
4119         required by the NetBSD (and perhaps other 4.4BSD derived) join.
4120
4121 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4122         and Eric Blake  <eblake@redhat.com>
4123
4124         mkstemp: mention clean-temp module
4125         * lib/mkstemp.c: Add comment.
4126         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
4127
4128 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
4129
4130         inttypes: also provide default values for 32-bit tests
4131         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
4132         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
4133
4134 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
4135
4136         strtoumax: remove dependency on strtoimax
4137         This is like the strtoull change of yesterday.
4138         * modules/strtoumax (Files): Add lib/strtoimax.c.
4139         (Depends-on): Remove strtoimax and add verify.
4140
4141         inttypes-incomplete: new module
4142         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
4143         all but the PRI* and SCN* parts of gl_INTTYPES_H.
4144         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
4145         of gl_INTTYPES_H.
4146         (gl_INTTYPES_H): Rewrite in terms of these new macros.
4147         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
4148         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
4149         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
4150         * modules/strtoumax, modules/xstrtol (Depends-on):
4151         Depend on inttypes-incomplete, not inttypes.
4152         * modules/inttypes-incomplete: New module, containing the contents
4153         of the old modules/inttypes module, except that the Files: section
4154         omits m4/inttypes-pri.m4, and the configure.ac section invokes
4155         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
4156         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
4157         (Depends-on): Depend only on inttypes-incomplete.
4158         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
4159
4160         inttypes: omit now-redundant strtoimax and strtoumax work
4161         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
4162         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
4163
4164         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
4165         This supports apps that need pointers to strtoimax and strtoumax,
4166         and ports to HP-UX 11.00 64.bit, which has macros that expand to
4167         nonexistent functions.  See
4168         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
4169         et seq.
4170         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
4171         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
4172         a macro.
4173         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
4174
4175 2011-04-25  Simon Josefsson  <simon@josefsson.org>
4176
4177         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
4178
4179 2011-04-25  Bruno Haible  <bruno@clisp.org>
4180
4181         strtol, strtoul: Mark modules as obsolete.
4182         * modules/strtol (Status, Notice): New sections.
4183         * modules/strtoul (Status, Notice): New sections.
4184
4185 2011-04-25  Bruno Haible  <bruno@clisp.org>
4186
4187         strtod: Remove check for strtod, unless supporting old platforms.
4188         * modules/strtod-obsolete: New file.
4189         * m4/strtod-obsolete.m4: New file.
4190         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
4191         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
4192         * modules/strtod (Depends-on): Add strtod-obsolete.
4193         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
4194
4195 2011-04-25  Bruno Haible  <bruno@clisp.org>
4196
4197         strcase: Make module obsolete.
4198         * modules/strcase (Status, Notice): New sections.
4199
4200 2011-04-25  Bruno Haible  <bruno@clisp.org>
4201
4202         dup2: Remove check for dup2, unless supporting old obsolete platforms.
4203         * modules/dup2-obsolete: New file.
4204         * m4/dup2-obsolete.m4: New file.
4205         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
4206         gl_FUNC_DUP2_OBSOLETE is not also defined.
4207         * modules/dup2 (Depends-on): Add dup2-obsolete.
4208         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
4209
4210 2011-04-25  Bruno Haible  <bruno@clisp.org>
4211
4212         strnlen: Avoid memchr related link error on old obsolete platforms.
4213         * modules/memchr-obsolete: New file.
4214         * m4/memchr-obsolete.m4: New file.
4215         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
4216         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
4217         * modules/memchr (Depends-on): Add memchr-obsolete.
4218         * modules/strnlen (Depends-on): Likewise.
4219         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
4220
4221 2011-04-25  Jim Meyering  <meyering@redhat.com>
4222
4223         maint.mk: makefile_at_at_check extend and clean up
4224         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
4225         in addition to */Makefile.am.
4226         Exempt legitimate uses of @VAR@ notation, e.g.,
4227         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
4228         Remove obsolete coreutils-specific comment.
4229         Prompted by discussion here:
4230         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
4231
4232 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
4233
4234         strtoul: remove dependency on strtol
4235         This is so that 'configure' need not check for strtol merely because
4236         the application needs strtoul.
4237         * modules/strtoul (Files): Add lib/strtol.c.
4238         (Depends-on): Remove strtol.
4239
4240         strtoull: remove dependency on strtoul
4241         This is like the strtoll change.
4242         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
4243         (Depends-on): Remove strtoul.
4244
4245         strtoll: remove dependency on strtol
4246         This is so that 'configure' need not check for strtol merely because
4247         the application needs strtoll.
4248         * modules/strtoll (Files): Add lib/strtol.c.
4249         (Depends-on): Remove strtol.
4250
4251 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4252
4253         inttypes: Move some configure check to module 'imaxdiv'.
4254         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
4255         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
4256         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
4257
4258 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4259
4260         inttypes: Move some configure check to module 'imaxabs'.
4261         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
4262         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
4263         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
4264
4265 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4266
4267         inttypes: Remove configure tests that are not needed since 2009-12-31.
4268         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
4269         gl_cv_header_working_inttypes_h.
4270
4271 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4272
4273         * modules/strnlen (Depends-on): Remove memchr.
4274         The strnlen implementation doesn't need the memchr module's fixes; see
4275         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
4276
4277         strtol: remove dependency on wchar
4278         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
4279         * modules/strtol (Depends-on): Remove wchar.
4280
4281 2011-04-21  Eric Blake  <eblake@redhat.com>
4282
4283         passfd: fix test regression on Linux
4284         * modules/passfd-tests (configure.ac): Correct socketpair check.
4285
4286         passfd: speed up configure and drop unused code
4287         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
4288         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
4289         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
4290         Instead of probing at configure for unix_scm_rights_bsd44_way,
4291         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
4292         check to a struct member probe.
4293         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
4294         (sendfd, recvfd): Update preprocessor checks.
4295         * modules/passfd (Files): Reflect rename, and drop unused file.
4296         (Depends-on): Drop unused dependency.
4297
4298         passfd: allow compilation on mingw
4299         * modules/sys_socket (Depends-on): Add sys_uio.
4300         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
4301         iovec and a minimal struct msghdr.
4302         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
4303         * tests/test-sys_socket.c (main): Enhance test.
4304         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
4305         guaranteed to provide what we need.
4306         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
4307         * modules/passfd-tests (Depends-on): Add sys_wait.
4308         * tests/test-passfd.c (main): Skip test on mingw, for now.
4309         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
4310         partial 'struct msghdr' implementation.
4311
4312         sys_uio: new module
4313         * modules/sys_uio: New module.
4314         * modules/sys_uio-tests: Likewise.
4315         * lib/sys_uio.in.h: New file.
4316         * m4/sys_uio_h.m4: Likewise.
4317         * tests/test-sys_uio.c: Likewise.
4318         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
4319         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
4320
4321 2011-04-20  Jim Meyering  <meyering@redhat.com>
4322
4323         useless-if-before-free: avoid false-positive
4324         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
4325         disjunct so that it too requires a terminating ";".  Without that,
4326         this script would identify as useless one statement from gcc that
4327         was not:
4328           if (aligned_ptr)
4329             free (((void **) aligned_ptr) [-1]);
4330
4331 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
4332
4333         doc: update users.txt.
4334         * users.txt: Add barcode.
4335
4336 2011-04-19  Bruno Haible  <bruno@clisp.org>
4337
4338         ioctl: Remove link dependency on native Windows.
4339         * lib/fd-hook.h: Renamed from lib/close-hook.h.
4340         (gl_close_fn, gl_ioctl_fn): New types.
4341         (struct fd_hook): Renamed from struct close_hook. Change type of
4342         private_close_fn field. Add private_ioctl_fn field.
4343         (close_hook_fn): Add parameter for primary close method.
4344         (execute_close_hooks, execute_all_close_hooks): Likewise.
4345         (ioctl_hook_fn): New type.
4346         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
4347         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4348         argument.
4349         (unregister_fd_hook): Renamed from unregister_close_hook.
4350         * lib/fd-hook.c: Renamed from lib/close-hook.c.
4351         Don't include <unistd.h>.
4352         (close): Remove undef.
4353         (anchor): Update.
4354         (execute_close_hooks): Add argument for primary close method.
4355         (execute_all_close_hooks): Likewise.
4356         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
4357         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4358         argument. Allow each argument to be NULL.
4359         (unregister_fd_hook): Renamed from unregister_close_hook.
4360         * lib/close.c (rpl_close): Pass 'close' function pointer to
4361         execute_all_close_hooks.
4362         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
4363         (primary_ioctl): New function.
4364         (ioctl): Don't call ioctlsocket here. Instead, call
4365         execute_all_ioctl_hooks.
4366         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
4367         close method.
4368         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
4369         (fd_sockets_hook): Renamed from close_sockets_hook.
4370         (gl_sockets_startup, gl_sockets_cleanup): Update.
4371         * modules/fd-hook: Renamed from modules/close-hook. Update.
4372         * modules/close (Depends-on): Add fd-hook, remove close-hook.
4373         * modules/sockets (Depends-on): Likewise.
4374         * modules/ioctl (Depends-on): Add fd-hook.
4375         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
4376         GNULIB_SOCKET.
4377
4378 2011-04-19  Bruno Haible  <bruno@clisp.org>
4379
4380         Move the support of O_NONBLOCK in open() to the 'open' module.
4381         * modules/nonblocking (Depends-on): Remove 'open'.
4382         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
4383         gl_cv_have_open_O_NONBLOCK.
4384         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
4385         O_NONBLOCK support.
4386         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
4387
4388 2011-04-17  Bruno Haible  <bruno@clisp.org>
4389
4390         pipe2: Simplify code.
4391         * lib/pipe2.c (pipe2): Reduce code duplication.
4392
4393 2011-04-17  Bruno Haible  <bruno@clisp.org>
4394
4395         nonblocking: Add comment.
4396         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
4397
4398 2011-04-17  Bruno Haible  <bruno@clisp.org>
4399
4400         nonblocking: Add tests for sockets.
4401         * tests/test-nonblocking-socket.sh: New file.
4402         * tests/test-nonblocking-socket-main.c: New file.
4403         * tests/test-nonblocking-socket-child.c: New file.
4404         * tests/test-nonblocking-socket.h: New file.
4405         * tests/socket-server.h: New file.
4406         * tests/socket-client.h: New file.
4407         * modules/nonblocking-socket-tests: New file.
4408         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
4409
4410 2011-04-17  Bruno Haible  <bruno@clisp.org>
4411
4412         nonblocking: Add tests for pipes.
4413         * tests/test-nonblocking-pipe.sh: New file.
4414         * tests/test-nonblocking-pipe-main.c: New file.
4415         * tests/test-nonblocking-pipe-child.c: New file.
4416         * tests/test-nonblocking-pipe.h: New file.
4417         * tests/test-nonblocking-writer.h: New file.
4418         * tests/test-nonblocking-reader.h: New file.
4419         * tests/test-nonblocking-misc.h: New file.
4420         * modules/nonblocking-pipe-tests: New file.
4421         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
4422
4423 2011-04-16  Bruno Haible  <bruno@clisp.org>
4424
4425         gettext: Clarify the needed programmer actions.
4426         * modules/gettext (Notice): New field.
4427         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
4428
4429 2011-04-16  Bruno Haible  <bruno@clisp.org>
4430
4431         strchrnul: Tweak last commit.
4432         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
4433         bug.
4434         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
4435         as in _GL_FUNCDECL_SYS.
4436         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
4437         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
4438
4439 2011-04-15  Eric Blake  <eblake@redhat.com>
4440
4441         strchrnul: work around cygwin bug
4442         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
4443         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
4444         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
4445         * modules/string (Makefile.am): Substitute it.
4446         * lib/string.in.h (strchrnul): Use it.
4447
4448 2011-04-15  Bruno Haible  <bruno@clisp.org>
4449
4450         Don't require lib/stdio-write.c when only module 'stdio' is used.
4451         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
4452         invocation.
4453         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
4454
4455 2011-04-14  Bruno Haible  <bruno@clisp.org>
4456
4457         Support non-blocking pipe I/O in read() on native Windows.
4458         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
4459         (read): New declaration.
4460         * lib/read.c: New file.
4461         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
4462         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
4463         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
4464         vscanf): New declarations.
4465         * lib/stdio-read.c: New file.
4466         * m4/read.m4: New file.
4467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
4468         REPLACE_READ.
4469         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
4470         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4471         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
4472         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
4473         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
4474         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4475         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4476         * modules/read: New file.
4477         * modules/nonblocking (Files): Add lib/stdio-read.c.
4478         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
4479         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
4480         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4481         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4482         * modules/pread (Depends-on): Add read.
4483         * modules/safe-read (Depends-on): Likewise.
4484         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
4485         gets, scanf, vfscanf, vscanf): Verify signatures.
4486         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
4487         problem with non-blocking pipes.
4488         * doc/posix-functions/fgetc.texi: Likewise.
4489         * doc/posix-functions/fgets.texi: Likewise.
4490         * doc/posix-functions/fread.texi: Likewise.
4491         * doc/posix-functions/fscanf.texi: Likewise.
4492         * doc/posix-functions/getc.texi: Likewise.
4493         * doc/posix-functions/getchar.texi: Likewise.
4494         * doc/posix-functions/gets.texi: Likewise.
4495         * doc/posix-functions/scanf.texi: Likewise.
4496         * doc/posix-functions/vfscanf.texi: Likewise.
4497         * doc/posix-functions/vscanf.texi: Likewise.
4498
4499 2011-04-14  Bruno Haible  <bruno@clisp.org>
4500
4501         Support non-blocking pipe I/O in write() on native Windows.
4502         * lib/write.c (rpl_write): Split a write request that failed merely
4503         because the byte count was larger than the pipe buffer's size.
4504         * doc/posix-functions/write.texi: Mention the problem with large byte
4505         counts.
4506
4507 2011-04-14  Bruno Haible  <bruno@clisp.org>
4508
4509         wchar: Ensure that wchar_t gets defined on uClibc.
4510         * lib/wchar.in.h: On uClibc, include <stddef.h>.
4511         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
4512
4513 2011-04-13  Bruno Haible  <bruno@clisp.org>
4514
4515         safe-write, full-read: Avoid unnecessary compilation units.
4516         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
4517         (Depends-on): Remove safe-read. Add ssize_t.
4518         * modules/full-read (Files): Add lib/full-write.c.
4519         (Depends-on): Add full-write.
4520
4521 2011-04-13  Bruno Haible  <bruno@clisp.org>
4522
4523         Support non-blocking pipe I/O and SIGPIPE in pwrite().
4524         * modules/pwrite (Depends-on): Add 'write'.
4525
4526 2011-04-13  Bruno Haible  <bruno@clisp.org>
4527
4528         Support non-blocking pipe I/O in write() on native Windows.
4529         * lib/unistd.in.h (write): Enable replacement also if
4530         GNULIB_UNISTD_H_NONBLOCKING is 1.
4531         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
4532         (rpl_write): When failing to write on a non-blocking pipe, change
4533         errno from ENOSPC to EAGAIN.
4534         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
4535         putchar, puts, vfprintf, vprintf): Enable replacement also if
4536         GNULIB_STDIO_H_NONBLOCKING is 1.
4537         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
4538         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
4539         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
4540         CALL_WITH_SIGPIPE_EMULATION.
4541         (CALL_WITH_SIGPIPE_EMULATION): Use them.
4542         * m4/nonblocking.m4: New file.
4543         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
4544         for non-blocking I/O support.
4545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4546         GNULIB_UNISTD_H_NONBLOCKING.
4547         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
4548         required for non-blocking I/O support.
4549         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
4550         * modules/nonblocking (Files): Add m4/nonblocking.m4,
4551         lib/stdio-write.c, m4/asm-underscore.m4.
4552         (Depends-on): Add stdio, unistd.
4553         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
4554         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
4555         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
4556         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
4557         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
4558         problem with non-blocking pipes.
4559         * doc/posix-functions/fputc.texi: Likewise.
4560         * doc/posix-functions/fputs.texi: Likewise.
4561         * doc/posix-functions/fwrite.texi: Likewise.
4562         * doc/posix-functions/printf.texi: Likewise.
4563         * doc/posix-functions/putc.texi: Likewise.
4564         * doc/posix-functions/putchar.texi: Likewise.
4565         * doc/posix-functions/puts.texi: Likewise.
4566         * doc/posix-functions/vfprintf.texi: Likewise.
4567         * doc/posix-functions/vprintf.texi: Likewise.
4568         * doc/posix-functions/write.texi: Likewise.
4569
4570 2011-04-10  Jim Meyering  <meyering@redhat.com>
4571
4572         maint.mk: prohibit doubled words
4573         Detect them also when they're separated by a newline.
4574         There are 3 ways to customize it:
4575           - disable the test on a per file basis, as usual with rules using
4576             $(VC_LIST_EXCEPT)
4577           - replace the default doubled-word-selecting regexp (affects all files)
4578           - ignore a particular file-vs-doubled-word match
4579         I nearly used that last one to ignore the "is is" match in
4580         coreutils' NEWS file, since the text was "ls -is is ..."
4581         To do that, I would have added this line to cfg.mk:
4582           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
4583         but it would have ignored any "is is" match in NEWS.
4584         Low probability, but still...
4585         Instead, I changed the text, slightly:
4586           -  ls -is is now consistent with ls -lis in ignoring values returned
4587           +  "ls -is" is now consistent with ls -lis in ignoring values returned
4588         * top/maint.mk (prohibit_double_word_RE_): Provide default.
4589         (prohibit_doubled_word_): Define.
4590         (sc_prohibit_doubled_word): New rule.
4591         (sc_prohibit_the_the): Remove.  Subsumed by the above.
4592
4593 2011-04-10  Jim Meyering  <meyering@redhat.com>
4594
4595         maint: fix doubled-word typo in comment
4596         * m4/gethostname.m4: s/is is/it is/
4597         * m4/getdomainname.m4: Likewise.
4598
4599 2011-04-10  Jim Meyering  <meyering@redhat.com>
4600
4601         maint: remove doubled word: s/it it/it/
4602         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
4603
4604 2011-04-10  Jim Meyering  <meyering@redhat.com>
4605
4606         maint.mk: remove useless semicolon and backslash
4607         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
4608         semicolon and backslash.
4609
4610 2011-04-10  Bruno Haible  <bruno@clisp.org>
4611
4612         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
4613         * modules/stdint-tests (Depends-on): Add wchar.
4614
4615 2011-04-10  Jim Meyering  <meyering@redhat.com>
4616
4617         maint: remove doubled words in comments, e.g., s/a a/a/
4618         * lib/strptime.c (day_of_the_week): s/the the/the/
4619         * tests/test-chown.h (test_chown): s/a a/a/
4620
4621         test-chown.h: correct a cast
4622         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
4623         when the destination is a stat.st_gid.
4624
4625 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
4626
4627         getaddrinfo: Fix test for sa_len member.
4628         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
4629         include <sys/types.h> before <sys/socket.h>.
4630
4631 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
4632
4633         maint: change "can not" to "cannot"
4634         * doc/posix-functions/iconv.texi (iconv): This one crossed line
4635         boundaries.
4636
4637 2011-04-09  Jim Meyering  <meyering@redhat.com>
4638
4639         maint: change "a a" to "a"
4640         * tests/test-lchown.h (test_lchown): s/a a/a/
4641
4642         maint.mk: prohibit \<the the\>
4643         * top/maint.mk (sc_prohibit_the_the): New rule.
4644
4645         maint: fix "the the" in comment
4646         * lib/count-one-bits.h: s/the the/the/
4647
4648         maint: change "can not" to "cannot"
4649         But do not change the occurrences in maintain.texi or in
4650         build-aux/po/Makefile.in.in, which I presume comes from gettext.
4651         * doc/gnulib-tool.texi: s/can not/cannot/
4652         * doc/posix-functions/accept.texi (accept): Likewise.
4653         * doc/posix-functions/socket.texi (socket): Likewise.
4654         * lib/mbrtowc.c: Likewise.
4655
4656         maint.mk: prohibit use of "can not"
4657         * top/maint.mk (sc_prohibit_can_not): New rule.
4658         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
4659
4660 2011-04-09  Bruno Haible  <bruno@clisp.org>
4661
4662         careadlinkat: Guard against misuse of careadlinkatcwd.
4663         * lib/careadlinkat.c: Include <stdlib.h>.
4664         (careadlinkatcwd): Check that the fd argument is as expected.
4665
4666 2011-04-09  Bruno Haible  <bruno@clisp.org>
4667
4668         careadlinkat: Use common coding style.
4669         * lib/careadlinkat.c: Move gnulib includes after system includes.
4670
4671 2011-04-09  Bruno Haible  <bruno@clisp.org>
4672
4673         careadlinkat: Clarify specification.
4674         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
4675         (careadlinkatcwd): Add comment.
4676         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
4677
4678 2011-04-09  Bruno Haible  <bruno@clisp.org>
4679
4680         areadlinkat: Avoid link error on many platforms.
4681         * modules/areadlinkat (Depends-on): Add areadlink.
4682
4683 2011-04-09  Bruno Haible  <bruno@clisp.org>
4684
4685         allocator, careadlinkat: Fix double-inclusion guard.
4686         * lib/allocator.h: Fix double-inclusion guard.
4687         * lib/careadlinkat.h: Likewise.
4688
4689 2011-04-09  Bruno Haible  <bruno@clisp.org>
4690
4691         relocatable-prog-wrapper: Update after module 'areadlink' changed.
4692         * lib/relocwrapper.c: Update dependencies hierarchy.
4693         * build-aux/install-reloc: Update list of files to be compiled.
4694         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
4695         lib/allocator.[hc].
4696
4697 2011-04-08  Eric Blake  <eblake@redhat.com>
4698
4699         strftime: silence gnulib-tool warning
4700         * modules/strftime-tests (Depends-on): Drop automatic dependency.
4701
4702 2011-04-08  Bruno Haible  <bruno@clisp.org>
4703
4704         verify: Fix syntax error with GCC 4.6 in C++ mode.
4705         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
4706         (HAVE_STATIC_ASSERT): New macro.
4707         (verify_true, verify): Use 'static_assert' if it is supported and
4708         '_Static_assert' is not supported.
4709
4710 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
4711
4712         allocator: New module.
4713         * modules/allocator, lib/allocator.c: New files.
4714         * lib/allocator.h (stdlib_allocator): New decl.
4715         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
4716         Remove.  Do not include <stdlib.h>.
4717         (careadlinkat): Use stdlib_allocator instead of rolling our own.
4718         * modules/careadlinkat (Files): Remove lib/allocator.h.
4719         (Depends-on): Add allocator.
4720
4721         stdlib: let modules use system malloc, realloc
4722         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
4723         if !_GL_USE_STDLIB_ALLOC.
4724         (malloc, realloc): Limit this change to a smaller scope.
4725
4726         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
4727         (malloc, realloc): Don't #undef; no longer needed.
4728         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4729         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4730         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
4731         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4732         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4733         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4734         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4735         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
4736
4737         careadlinkat: rename members to avoid problem
4738         * lib/allocator.h (struct allocator): Rename members from
4739         malloc/realloc to allocate/reallocate, to avoid problems if malloc
4740         and realloc are #define'd.  Reported by Eric Blake in
4741         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
4742         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
4743
4744 2011-04-08  Eric Blake  <eblake@redhat.com>
4745
4746         nonblocking: reduce dependency
4747         * tests/test-nonblocking.c: Only test sockets when in use.
4748         * modules/nonblocking-tests (Depends-on): Drop socket.
4749         (Makefile.am): Link even if sockets are not present.
4750         * modules/pipe2-tests (Makefile.am): Likewise.
4751         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
4752
4753         pipe2: fix O_NONBLOCK support on mingw
4754         * modules/pipe2 (Depends-on): Add nonblocking.
4755         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
4756         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
4757         * tests/test-nonblocking.c (main): Likewise.
4758         * modules/pipe2-tests (Makefile.am): Avoid link failure.
4759
4760         fcntl-h: fix O_ACCMODE on cygwin
4761         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
4762         * lib/fcntl.in.h (O_ACCMODE): Fix it.
4763
4764         pipe-filter: drop O_NONBLOCK workarounds
4765         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
4766         * modules/pipe-filter-ii (Depends-on): Likewise.
4767         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
4768
4769         nonblocking: provide O_NONBLOCK for mingw
4770         * modules/nonblocking (Depends-on): Add open.
4771         (configure.ac): Set new witness macro.
4772         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
4773         * modules/fcntl-h (Makefile.am): Substitute it.
4774         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
4775         nonblocking module is in use.
4776         * lib/nonblocking.c: Adjust portability test.
4777         * lib/open.c (open): Don't let native open see gnulib flag.
4778         * tests/test-fcntl-h.c (main): Enhance test.
4779         * tests/test-open.h (test_open): Likewise.
4780         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
4781
4782         careadlinkat: fix compilation error on mingw
4783         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
4784         within struct allocator.
4785
4786 2011-04-06  Eric Blake  <eblake@redhat.com>
4787
4788         binary-io: relicense under LGPLv2+
4789         * modules/binary-io (License): Relax to LGPLv2+.
4790         Requested for libvirt, and required by pipe2.
4791
4792 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
4793
4794         verify: use _Static_assert if available
4795         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
4796         (verify_true, verify): Use it if available.  This generates better
4797         diagnostics with GCC 4.6.0 and later.
4798
4799 2011-04-05  Bruno Haible  <bruno@clisp.org>
4800
4801         Remove leftover generated .h files after config.status changed.
4802
4803         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
4804         GL_GENERATE_ALLOCA_H.
4805         * modules/alloca-opt (Makefile.am): Remove alloca.h if
4806         GL_GENERATE_ALLOCA_H evaluates to false.
4807
4808         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
4809         GL_GENERATE_ARGZ_H.
4810         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
4811         evaluates to false.
4812
4813         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
4814         GL_GENERATE_BYTESWAP_H.
4815         * modules/byteswap (Makefile.am): Remove byteswap.h if
4816         GL_GENERATE_BYTESWAP_H evaluates to false.
4817
4818         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
4819         GL_GENERATE_ERRNO_H.
4820         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
4821         evaluates to false.
4822
4823         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
4824         GL_GENERATE_FLOAT_H.
4825         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
4826         evaluates to false.
4827
4828         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
4829         GL_GENERATE_FNMATCH_H.
4830         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
4831         GL_GENERATE_FNMATCH_H evaluates to false.
4832
4833         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
4834         GL_GENERATE_GLOB_H.
4835         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
4836         evaluates to false.
4837
4838         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
4839         automake conditional GL_GENERATE_ICONV_H.
4840         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
4841         evaluates to false.
4842
4843         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
4844         GL_GENERATE_NETINET_IN_H.
4845         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
4846         GL_GENERATE_NETINET_IN_H evaluates to false.
4847
4848         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
4849         conditional GL_GENERATE_PTHREAD_H.
4850         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
4851         * modules/pthread (Makefile.am): Remove pthread.h if
4852         GL_GENERATE_PTHREAD_H evaluates to false.
4853
4854         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
4855         GL_GENERATE_SCHED_H.
4856         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
4857         evaluates to false.
4858
4859         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
4860         conditional GL_GENERATE_SELINUX_CONTEXT_H.
4861         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
4862         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
4863
4864         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
4865         GL_GENERATE_STDARG_H.
4866         * modules/stdarg (Makefile.am): Remove stdarg.h if
4867         GL_GENERATE_STDARG_H evaluates to false.
4868
4869         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
4870         GL_GENERATE_STDBOOL_H.
4871         * modules/stdbool (Makefile.am): Remove stdbool.h if
4872         GL_GENERATE_STDBOOL_H evaluates to false.
4873
4874         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
4875         conditional GL_GENERATE_STDDEF_H.
4876         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
4877         * modules/stddef (Makefile.am): Remove stddef.h if
4878         GL_GENERATE_STDDEF_H evaluates to false.
4879
4880         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
4881         GL_GENERATE_STDINT_H.
4882         * modules/stdint (Makefile.am): Remove stdint.h if
4883         GL_GENERATE_STDINT_H evaluates to false.
4884
4885         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
4886         GL_GENERATE_SYSEXITS_H.
4887         * modules/sysexits (Makefile.am): Remove sysexits.h if
4888         GL_GENERATE_SYSEXITS_H evaluates to false.
4889
4890         Reported by Karl Berry and Ralf Wildenhues.
4891
4892 2011-04-05  Bruno Haible  <bruno@clisp.org>
4893
4894         Ensure to rebuild generated .h files when config.status has changed.
4895         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
4896         config.status.
4897         * modules/ctype (Makefile.am): Likewise.
4898         * modules/dirent (Makefile.am): Likewise.
4899         * modules/errno (Makefile.am): Likewise.
4900         * modules/fcntl-h (Makefile.am): Likewise.
4901         * modules/float (Makefile.am): Likewise.
4902         * modules/getopt-posix (Makefile.am): Likewise.
4903         * modules/glob (Makefile.am): Likewise.
4904         * modules/iconv-h (Makefile.am): Likewise.
4905         * modules/inttypes (Makefile.am): Likewise.
4906         * modules/langinfo (Makefile.am): Likewise.
4907         * modules/locale (Makefile.am): Likewise.
4908         * modules/math (Makefile.am): Likewise.
4909         * modules/netdb (Makefile.am): Likewise.
4910         * modules/netinet_in (Makefile.am): Likewise.
4911         * modules/poll-h (Makefile.am): Likewise.
4912         * modules/pthread (Makefile.am): Likewise.
4913         * modules/pty (Makefile.am): Likewise.
4914         * modules/sched (Makefile.am): Likewise.
4915         * modules/search (Makefile.am): Likewise.
4916         * modules/selinux-h (Makefile.am): Likewise.
4917         * modules/signal (Makefile.am): Likewise.
4918         * modules/spawn (Makefile.am): Likewise.
4919         * modules/stdarg (Makefile.am): Likewise.
4920         * modules/stdbool (Makefile.am): Likewise.
4921         * modules/stddef (Makefile.am): Likewise.
4922         * modules/stdint (Makefile.am): Likewise.
4923         * modules/stdio (Makefile.am): Likewise.
4924         * modules/stdlib (Makefile.am): Likewise.
4925         * modules/string (Makefile.am): Likewise.
4926         * modules/strings (Makefile.am): Likewise.
4927         * modules/sys_file (Makefile.am): Likewise.
4928         * modules/sys_ioctl (Makefile.am): Likewise.
4929         * modules/sys_select (Makefile.am): Likewise.
4930         * modules/sys_socket (Makefile.am): Likewise.
4931         * modules/sys_stat (Makefile.am): Likewise.
4932         * modules/sys_time (Makefile.am): Likewise.
4933         * modules/sys_times (Makefile.am): Likewise.
4934         * modules/sys_utsname (Makefile.am): Likewise.
4935         * modules/sys_wait (Makefile.am): Likewise.
4936         * modules/sysexits (Makefile.am): Likewise.
4937         * modules/termios (Makefile.am): Likewise.
4938         * modules/time (Makefile.am): Likewise.
4939         * modules/unistd (Makefile.am): Likewise.
4940         * modules/wchar (Makefile.am): Likewise.
4941         * modules/wctype-h (Makefile.am): Likewise.
4942         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
4943
4944 2011-04-05  Bruno Haible  <bruno@clisp.org>
4945
4946         pipe2: Relicense under LGPLv2+.
4947         * modules/pipe2 (License): Change to LGPLv2+.
4948         Requested by Eric Blake, for libvirt.
4949
4950 2011-04-05  Bruce Korb  <bkorb@gnu.org>
4951
4952         bootstrap: compute gnulib_extra_files after updating build_aux
4953         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
4954         change build_aux or also supply gnulib_extra_files.  Handle correctly.
4955
4956 2011-04-05  Eric Blake  <eblake@redhat.com>
4957
4958         bootstrap: preserve git whitelist item sorting
4959         * build-aux/bootstrap (sort_patterns): New function.
4960         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
4961
4962 2011-04-05  Simon Josefsson  <simon@josefsson.org>
4963
4964         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
4965         sc_space_tab check.
4966
4967 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
4968
4969         areadlink, areadlinkat: rewrite in terms of careadlinkat
4970         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
4971         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
4972         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
4973         (malloc, realloc): Remove #undefs.
4974         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
4975         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
4976         readlink, ssize_t, stdint, unistd.
4977         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
4978         areadlink, stdint.
4979
4980         careadlinkat: new module
4981         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
4982         * modules/careadlinkat: New files, written by me with
4983         a review and feedback from Ben Pfaff in
4984         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
4985
4986 2011-04-01  Bruno Haible  <bruno@clisp.org>
4987
4988         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
4989         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
4990         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
4991         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
4992         Reported by Bruce Korb <bruce.korb@gmail.com>.
4993
4994 2011-04-01  Bruno Haible  <bruno@clisp.org>
4995
4996         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
4997         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
4998         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
4999         * modules/wcpcpy (Depends-on): Add extensions.
5000         * modules/wcpncpy (Depends-on): Likewise.
5001         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
5002         systems.
5003         * doc/posix-functions/wcpncpy.texi: Likewise.
5004         * doc/posix-functions/wcwidth.texi: Likewise.
5005
5006 2011-03-31  Eric Blake  <eblake@redhat.com>
5007
5008         nonblocking: fix mingw test failures
5009         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
5010         non-blocking flag on regular file.
5011         (get_nonblocking_flag): Set errno on invalid fd.
5012         * tests/test-nonblocking.c (main): Avoid test failure on
5013         directories if fchdir is not active.
5014         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
5015
5016 2011-03-31  Bruno Haible  <bruno@clisp.org>
5017
5018         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
5019         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
5020         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
5021         Reported by Simon Josefsson <simon@josefsson.org>.
5022
5023 2011-03-31  Bruno Haible  <bruno@clisp.org>
5024         and Eric Blake  <eblake@redhat.com>
5025
5026         nonblocking: new module
5027         * modules/nonblocking: New module.
5028         * modules/nonblocking-tests: Likewise.
5029         * lib/nonblocking.h: New file.
5030         * lib/nonblocking.c: Likewise.
5031         * tests/test-nonblocking.c: New test.
5032         * lib/ioctl.c (ioctl) [mingw]: Update comment.
5033
5034 2011-03-30  Bruno Haible  <bruno@clisp.org>
5035
5036         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
5037         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
5038         instead of 'printf' format for GCC >= 4.4.
5039         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
5040         (fprintf, printf, vfprintf, vprintf): Declare with
5041         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
5042         the system's vfprintf() function.
5043         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
5044
5045 2011-03-30  Eric Blake  <eblake@redhat.com>
5046
5047         passfd: fix scoping bug
5048         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
5049         before sendmsg/recvmsg.
5050
5051         passfd: standardize coding conventions
5052         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
5053         can be learned at compile time.
5054         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
5055         ifdefs.
5056         (sendfd, recvfd): Follow gnulib code conventions.
5057
5058         passfd: fix incorrect sendmsg arguments
5059         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
5060         incorrect msg_controllen value.
5061         * modules/passfd-tests (Depends-on): Check for alarm.
5062         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
5063         Reported by Bastien ROUCARIES.
5064
5065 2011-03-30  Bruno Haible  <bruno@clisp.org>
5066
5067         c-strcasestr: Relicense under LGPLv2+.
5068         * modules/c-strcasestr (License): Change to LGPLv2+.
5069         Requested by Eric Blake, for libvirt.
5070
5071 2011-03-30  Simon Josefsson  <simon@josefsson.org>
5072
5073         * users.txt: Add libidn2.  Fix libtasn1 link.
5074
5075 2011-03-30  Jim Meyering  <meyering@redhat.com>
5076
5077         tests: readlink* ("",... fails with EINVAL on newer kernels
5078         readlink and readlinkat have typically failed with ENOENT for
5079         the invalid, empty file name,  "".  However, with the advent
5080         of linux-2.6.39, they fail with EINVAL.
5081         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
5082         when operating on the empty file name.
5083         * tests/test-readlink.h (test_readlink): Likewise.
5084
5085 2011-03-29  Bruno Haible  <bruno@clisp.org>
5086
5087         Relicense some modules under LGPLv2+, for libidn2.
5088         * modules/array-mergesort (License): Change to LGPLv2+.
5089         * modules/c-strcaseeq (License): Likewise.
5090         * modules/striconveh (License): Likewise.
5091         * modules/striconveha (License): Likewise.
5092         * modules/uniconv/base (License): Likewise.
5093         * modules/uniconv/u8-conv-from-enc (License): Likewise.
5094         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
5095         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
5096         * modules/unictype/base (License): Likewise.
5097         * modules/unictype/bidiclass-of (License): Likewise.
5098         * modules/unictype/category-M (License): Likewise.
5099         * modules/unictype/category-none (License): Likewise.
5100         * modules/unictype/category-of (License): Likewise.
5101         * modules/unictype/category-test (License): Likewise.
5102         * modules/unictype/category-test-withtable (License): Likewise.
5103         * modules/unictype/combining-class (License): Likewise.
5104         * modules/unictype/joiningtype-of (License): Likewise.
5105         * modules/unictype/scripts (License): Likewise.
5106         * modules/uninorm/base (License): Likewise.
5107         * modules/uninorm/canonical-decomposition (License): Likewise.
5108         * modules/uninorm/composition (License): Likewise.
5109         * modules/uninorm/decompose-internal (License): Likewise.
5110         * modules/uninorm/decomposition-table (License): Likewise.
5111         * modules/uninorm/nfc (License): Likewise.
5112         * modules/uninorm/nfd (License): Likewise.
5113         * modules/uninorm/u32-normalize (License): Likewise.
5114         * modules/unistr/base (License): Likewise.
5115         * modules/unistr/u32-cpy (License): Likewise.
5116         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
5117         * modules/unistr/u32-to-u8 (License): Likewise.
5118         * modules/unistr/u32-uctomb (License): Likewise.
5119         * modules/unistr/u8-check (License): Likewise.
5120         * modules/unistr/u8-mblen (License): Likewise.
5121         * modules/unistr/u8-mbtouc (License): Likewise.
5122         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
5123         * modules/unistr/u8-mbtoucr (License): Likewise.
5124         * modules/unistr/u8-prev (License): Likewise.
5125         * modules/unistr/u8-strlen (License): Likewise.
5126         * modules/unistr/u8-to-u32 (License): Likewise.
5127         * modules/unistr/u8-uctomb (License): Likewise.
5128         * modules/unitypes (License): Likewise.
5129         Requested by Simon Josefsson.
5130
5131 2011-03-29  Simon Josefsson  <simon@josefsson.org>
5132
5133         lib-symbol-visibility: Add a notice.
5134         * modules/lib-symbol-visibility (Notice): New field.
5135
5136 2011-03-29  Bruno Haible  <bruno@clisp.org>
5137
5138         getaddrinfo: Doc fix.
5139         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
5140         section "fixed in Gnulib".
5141
5142 2011-03-28  Simon Josefsson  <simon@josefsson.org>
5143
5144         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
5145         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
5146
5147 2011-03-26  Bruno Haible  <bruno@clisp.org>
5148
5149         unictype/property-byname: Reduce the number of load-time relocations.
5150         * lib/unictype/pr_byname.c: Include <stdlib.h>.
5151         (UC_PROPERTY_INDEX_*): New enumeration values.
5152         (uc_property_byname): Convert an index from the lookup table to an
5153         uc_property_t.
5154         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
5155         values.
5156
5157 2011-03-26  Bruno Haible  <bruno@clisp.org>
5158
5159         unictype/property-byname: Allow omitted word separators and aliases.
5160         * lib/unictype/pr_byname.gperf: Add property names without word
5161         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
5162         for 'space'.
5163
5164 2011-03-26  Bruno Haible  <bruno@clisp.org>
5165
5166         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
5167         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
5168         also hyphens to space.
5169         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
5170         without spaces.
5171         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
5172
5173 2011-03-26  Bruno Haible  <bruno@clisp.org>
5174
5175         unictype/joiningtype-byname: Recognize long names as well.
5176         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
5177         a long name.
5178         * lib/unictype/joiningtype_byname.c: Include <string.h>,
5179         unictype/joiningtype_byname.h.
5180         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
5181         * lib/unictype/joiningtype_byname.gperf: New file.
5182         * modules/unictype/joiningtype-byname (Files): Add
5183         lib/unictype/joiningtype_byname.gperf.
5184         (Depends-on): Add gperf.
5185         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
5186         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
5187         long names.
5188
5189         Tests for module 'unictype/joiningtype-longname'.
5190         * modules/unictype/joiningtype-longname-tests: New file.
5191         * tests/unictype/test-joiningtype_longname.c: New file.
5192
5193         New module 'unictype/joiningtype-longname'.
5194         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
5195         * lib/unictype/joiningtype_longname.c: New file.
5196         * modules/unictype/joiningtype-longname: New file.
5197         * modules/unictype/joiningtype-all (Depends-on): Add
5198         unictype/joiningtype-longname.
5199
5200 2011-03-26  Bruno Haible  <bruno@clisp.org>
5201
5202         unictype/bidiclass-byname: Recognize long names as well.
5203         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
5204         name.
5205         * lib/unictype/bidi_byname.c: Include <string.h>,
5206         unictype/bidi_byname.h.
5207         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
5208         * lib/unictype/bidi_byname.gperf: New file.
5209         * modules/unictype/bidiclass-byname (Files): Add
5210         lib/unictype/bidi_byname.gperf.
5211         (Depends-on): Add gperf.
5212         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
5213         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
5214         long names.
5215
5216         Tests for module 'unictype/bidiclass-longname'.
5217         * modules/unictype/bidiclass-longname-tests: New file.
5218         * tests/unictype/test-bidi_longname.c: New file.
5219
5220         New module 'unictype/bidiclass-longname'.
5221         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
5222         * lib/unictype/bidi_longname.c: New file.
5223         * modules/unictype/bidiclass-longname: New file.
5224         * modules/unictype/bidiclass-all (Depends-on): Add
5225         unictype/bidiclass-longname.
5226
5227 2011-03-26  Bruno Haible  <bruno@clisp.org>
5228
5229         unictype/bidi*: Rename modules.
5230         * modules/unictype/bidiclass-all: Renamed from
5231         modules/unictype/bidicategory-all.
5232         * modules/unictype/bidiclass-name: Renamed from
5233         modules/unictype/bidiclass-name.
5234         (Description): Update.
5235         * modules/unictype/bidiclass-name-tests: Renamed from
5236         modules/unictype/bidicategory-name-tests.
5237         * modules/unictype/bidiclass-byname: Renamed from
5238         modules/unictype/bidicategory-byname.
5239         (Description): Update.
5240         * modules/unictype/bidiclass-byname-tests: Renamed from
5241         modules/unictype/bidicategory-byname-tests.
5242         * modules/unictype/bidiclass-of: Renamed from
5243         modules/unictype/bidicategory-of.
5244         (Description): Update.
5245         * modules/unictype/bidiclass-of-tests: Renamed from
5246         modules/unictype/bidicategory-of-tests.
5247         * modules/unictype/bidiclass-test: Renamed from
5248         modules/unictype/bidicategory-test.
5249         (Description): Update.
5250         * modules/unictype/bidiclass-test-tests: Renamed from
5251         modules/unictype/bidicategory-test-tests.
5252         * modules/unictype/bidicategory-all: New file, a simple redirection.
5253         * modules/unictype/bidicategory-name: Likewise.
5254         * modules/unictype/bidicategory-byname: Likewise.
5255         * modules/unictype/bidicategory-of: Likewise.
5256         * modules/unictype/bidicategory-test: Likewise.
5257         * modules/unictype/property-bidi-* (Dependencies): Update.
5258         * lib/unictype/bidi_*.c: Update comment.
5259
5260 2011-03-26  Bruno Haible  <bruno@clisp.org>
5261
5262         unictype/bidi*: Rename functions, part 2.
5263         * modules/unictype/bidicategory-name (configure.ac): Update required
5264         libunistring version.
5265         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
5266
5267 2011-03-25  Bruno Haible  <bruno@clisp.org>
5268
5269         New module 'unictype/combining-class-all'.
5270         * modules/unictype/combining-class-all: New file.
5271
5272         Tests for module 'unictype/combining-class-byname'.
5273         * modules/unictype/combining-class-byname-tests: New file.
5274         * tests/unictype/test-combiningclass_byname.c: New file.
5275
5276         New module 'unictype/combining-class-byname'.
5277         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
5278         * lib/unictype/combiningclass_byname.c: New file.
5279         * lib/unictype/combiningclass_byname.gperf: New file.
5280         * modules/unictype/combining-class-byname: New file.
5281
5282         Tests for module 'unictype/combining-class-longname'.
5283         * modules/unictype/combining-class-longname-tests: New file.
5284         * tests/unictype/test-combiningclass_longname.c: New file.
5285
5286         New module 'unictype/combining-class-longname'.
5287         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
5288         * lib/unictype/combiningclass_longname.c: New file.
5289         * modules/unictype/combining-class-longname: New file.
5290
5291         Tests for module 'unictype/combining-class-name'.
5292         * modules/unictype/combining-class-name-tests: New file.
5293         * tests/unictype/test-combiningclass_name.c: New file.
5294
5295         New module 'unictype/combining-class-name'.
5296         * lib/unictype.in.h (uc_combining_class_name): New declaration.
5297         * lib/unictype/combiningclass_name.c: New file.
5298         * modules/unictype/combining-class-name: New file.
5299
5300 2011-03-25  Bruno Haible  <bruno@clisp.org>
5301
5302         unictype/combining-class: Rename source files.
5303         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
5304         of unictype/combining.h.
5305         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
5306         Update.
5307         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
5308         * modules/unictype/combining-class (Description): Fix.
5309         (Files, Makefile.am): Update.
5310         * tests/unictype/test-combiningclass.c: Renamed from
5311         tests/unictype/test-combining.c.
5312         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
5313
5314 2011-03-25  Bruno Haible  <bruno@clisp.org>
5315
5316         unictype: Update list of canonical combining classes.
5317         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
5318
5319 2011-03-25  Bruno Haible  <bruno@clisp.org>
5320
5321         unictype/category-byname: Recognize long names as well.
5322         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
5323         a long name.
5324         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
5325         unictype/categ_byname.h.
5326         (UC_CATEGORY_INDEX_*): New enumeration values.
5327         (uc_general_category_byname): Use uc_general_category_lookup and
5328         convert from index to value.
5329         * lib/unictype/categ_byname.gperf: New file.
5330         * modules/unictype/category-byname (Files): Add
5331         lib/unictype/categ_byname.gperf.
5332         (Depends-on): Add gperf.
5333         (Makefile.am): Add rule for generating unictype/categ_byname.h.
5334         * tests/unictype/test-categ_byname.c (main): Test the recognition of
5335         long names.
5336
5337         Tests for module 'unictype/category-longname'.
5338         * modules/unictype/category-longname-tests: New file.
5339         * tests/unictype/test-categ_longname.c: New file.
5340
5341         New module 'unictype/category-longname'.
5342         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
5343         * lib/unictype/categ_longname.c: New file.
5344         * modules/unictype/category-longname: New file.
5345         * modules/unictype/category-all (Depends-on): Add it.
5346
5347 2011-03-25  Bruno Haible  <bruno@clisp.org>
5348
5349         Tests for module 'unictype/category-LC'.
5350         * modules/unictype/category-LC-tests: New file.
5351         * tests/unictype/test-categ_LC.c: New file, automatically generated.
5352
5353         New module 'unictype/category-LC'.
5354         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
5355         (UC_CATEGORY_LC): New declaration.
5356         (UC_CASED_LETTER): New macro.
5357         * lib/gen-uni-tables.c (is_category_LC): New function.
5358         (output_categories): Also handle category LC.
5359         (UC_CATEGORY_MASK_LC): New enumeration value.
5360         (general_category_byname): Also handle category LC.
5361         * lib/unictype/categ_LC.c: New file.
5362         * lib/unictype/categ_LC.h: New file, automatically generated.
5363         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
5364         category LC.
5365         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
5366         * modules/unictype/category-LC: New file.
5367         * modules/unictype/category-byname (Depends-on): Add
5368         unictype/category-LC.
5369         * modules/unictype/category-all (Depends-on): Likewise.
5370
5371 2011-03-25  Eric Blake  <eblake@redhat.com>
5372
5373         xmalloc: revert yesterday's regression
5374         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
5375         realloc's underlying behavior (allowing allocation of zero-size
5376         objects, especially if malloc-gnu is also in use).
5377
5378 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
5379
5380         maint.mk: add missing version to VC-tag
5381         * top/maint.mk: git tag was missing actual tag name; add it.
5382
5383         valgrind: do leak checking, and exit with code 1 on error (not 0)
5384         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
5385         to VALGRIND.
5386
5387 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
5388
5389         posix-modules: say what it does.
5390         * posix-modules: Add a line to the --help output saying what it does.
5391
5392 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
5393
5394         xmalloc: Do not leak if underlying realloc is C99 compatible.
5395         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
5396         This avoids a leak on C99-based systems.  See
5397         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
5398
5399 2011-03-24  Eric Blake  <eblake@redhat.com>
5400
5401         realloc: document portability problem
5402         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
5403         passing 0 size to realloc.
5404
5405 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
5406
5407         doc: update users.txt
5408         * users.txt: Add cvsps, tmpwatch
5409
5410 2011-03-23  Matt Rice  <ratmice@gmail.com>
5411
5412         doc: update users.txt
5413         * users.txt: Add gdb.
5414
5415 2011-03-23  Jim Meyering  <meyering@redhat.com>
5416
5417         doc: update users.txt
5418         Looking through matches up to the following URL (there are still
5419         several more pages), I found several projects that use gnulib:
5420         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
5421         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
5422         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
5423
5424 2011-03-22  Bruno Haible  <bruno@clisp.org>
5425
5426         unictype/bidi*: Rename functions.
5427         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
5428         uc_bidi_class, uc_is_bidi_class): New declarations.
5429         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
5430         uc_bidi_category_byname.
5431         (uc_bidi_category_byname): New function.
5432         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
5433         u_bidi_category_name.
5434         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
5435         (uc_bidi_category_name): New function.
5436         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
5437         uc_bidi_category.
5438         (uc_bidi_category): New function.
5439         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
5440         uc_is_bidi_category. Invoke uc_bidi_class.
5441         (uc_is_bidi_category): New function.
5442         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
5443         instead of uc_bidi_category_byname.
5444         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
5445         instead of uc_bidi_category_name.
5446         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
5447         uc_bidi_category.
5448         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
5449         instead of uc_is_bidi_category.
5450
5451 2011-03-21  Bruno Haible  <bruno@clisp.org>
5452
5453         New module 'unictype/joininggroup-all'.
5454         * modules/unictype/joininggroup-all: New file.
5455
5456         Tests for module 'unictype/joininggroup-of'.
5457         * modules/unictype/joininggroup-of-tests: New file.
5458         * tests/unictype/test-joininggroup_of.c: New file.
5459         * tests/unictype/test-joininggroup_of.h: New file, automatically
5460         generated by gen-uni-tables.
5461
5462         New module 'unictype/joininggroup-of'.
5463         * modules/unictype/joininggroup-of: New file.
5464         * lib/unictype/joininggroup_of.c: New file.
5465         * lib/unictype/joininggroup_of.h: New file, automatically generated by
5466         gen-uni-tables.
5467
5468         Tests for module 'unictype/joininggroup-byname'.
5469         * modules/unictype/joininggroup-byname-tests: New file.
5470         * tests/unictype/test-joininggroup_byname.c: New file.
5471
5472         New module 'unictype/joininggroup-byname'.
5473         * modules/unictype/joininggroup-byname: New file.
5474         * lib/unictype/joininggroup_byname.c: New file.
5475         * lib/unictype/joininggroup_byname.gperf: New file.
5476
5477         Tests for module 'unictype/joininggroup-name'.
5478         * modules/unictype/joininggroup-name-tests: New file.
5479         * tests/unictype/test-joininggroup_name.c: New file.
5480
5481         New module 'unictype/joininggroup-name'.
5482         * modules/unictype/joininggroup-name: New file.
5483         * lib/unictype/joininggroup_name.c: New file.
5484         * lib/unictype/joininggroup_name.h: New file.
5485
5486         New module 'unictype/joiningtype-all'.
5487         * modules/unictype/joiningtype-all: New file.
5488
5489         Tests for module 'unictype/joiningtype-of'.
5490         * modules/unictype/joiningtype-of-tests: New file.
5491         * tests/unictype/test-joiningtype_of.c: New file.
5492         * tests/unictype/test-joiningtype_of.h: New file, automatically
5493         generated by gen-uni-tables.
5494
5495         New module 'unictype/joiningtype-of'.
5496         * modules/unictype/joiningtype-of: New file.
5497         * lib/unictype/joiningtype_of.c: New file.
5498         * lib/unictype/joiningtype_of.h: New file, automatically generated by
5499         gen-uni-tables.
5500
5501         Tests for module 'unictype/joiningtype-byname'.
5502         * modules/unictype/joiningtype-byname-tests: New file.
5503         * tests/unictype/test-joiningtype_byname.c: New file.
5504
5505         New module 'unictype/joiningtype-byname'.
5506         * modules/unictype/joiningtype-byname: New file.
5507         * lib/unictype/joiningtype_byname.c: New file.
5508
5509         Tests for module 'unictype/joiningtype-name'.
5510         * modules/unictype/joiningtype-name-tests: New file.
5511         * tests/unictype/test-joiningtype_name.c: New file.
5512
5513         New module 'unictype/joiningtype-name'.
5514         * modules/unictype/joiningtype-name: New file.
5515         * lib/unictype/joiningtype_name.c: New file.
5516
5517         unictype: Add support for Arabic shaping properties.
5518         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
5519         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
5520         declarations.
5521         (UC_JOINING_GROUP_*): New enumeration values.
5522         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
5523         declarations.
5524         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
5525         (unicode_joining_type): New variable.
5526         (UC_JOINING_GROUP_*): New enumeration values.
5527         (unicode_joining_group): New variable.
5528         (fill_arabicshaping, joining_type_as_c_identifier,
5529         output_joining_type_test, output_joining_type,
5530         joining_group_as_c_identifier, output_joining_group_test,
5531         output_joining_group): New functions.
5532         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
5533         fill_arabicshaping and output_joining_type_test, output_joining_type,
5534         output_joining_group_test, output_joining_group.
5535         Reported by Simon Josefsson.
5536
5537 2011-03-21  Jim Meyering  <meyering@redhat.com>
5538
5539         strftime: fix a bug in yesterday's change
5540         * lib/strftime.c (add): Accommodate width's initial value of -1.
5541         Otherwise, nstrftime would copy uninitialized data into
5542         the result buffer.
5543
5544 2011-03-21  Jim Meyering  <meyering@redhat.com>
5545
5546         tests: add strftime-tests module
5547         * tests/test-strftime.c: New file.
5548         * modules/strftime-tests: New module.
5549
5550 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5551
5552         strftime: don't assume a byte count fits in 'int'
5553         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
5554         found this problem by static analysis, using gcc -Wstrict-overflow
5555         (GCC 4.5.2, x86-64).  This reported an optimization that depended
5556         on an integer overflow having undefined behavior, but it turns out
5557         that the argument is a size, which might not fit in 'int' anyway,
5558
5559 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5560
5561         stdio: don't require ignore_value around fwrite
5562
5563         This patch works around libc bug 11959
5564         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
5565         Without this patch, applications must often write
5566         ignore_value (fwrite (...)) even though the ignore_value is
5567         not helpful here.  It's common to write many objects, using
5568         fwrite/printf/etc., and then use ferror to detect output error.
5569
5570         I considered making this patch optional, but decided against it,
5571         because libc is obviously being inconsistent here: there is no
5572         reason libc should insist that user code must inspect fwrite
5573         return's value without also insisting that it inspect printf's,
5574         putchar's, etc.  If user code wants to have a strict style where
5575         all these functions' values are checked (so that ferror need not
5576         be checked), we could add support for that style in a new gnulib
5577         module, but in the meantime it's better to be consistent and to
5578         support common usage.
5579
5580         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
5581         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
5582         that we are compiling in checking mode, and if not C++, and
5583         if not already wrapping fwrite for some other reason.
5584         (fwrite): #define to rpl_fwrite if the latter is defined.
5585
5586 2011-03-20  Bruno Haible  <bruno@clisp.org>
5587
5588         verror: Fix compilation error introduced on 2011-02-13.
5589         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
5590         instead of __attribute__.
5591         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5592
5593 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5594             Bruno Haible  <bruno@clisp.org>
5595
5596         socklen: do not depend on sys_socket
5597         While trying to modify Emacs to use gnulib's socklen module,
5598         I discovered a circular dependency: socklen depends on sys_socket
5599         and vice versa.  Emacs can use socklen, but it does not need
5600         sys_socket because it has its own substitute for sys/socket.h.
5601         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
5602         gl_TYPE_SOCKLEN_T.
5603         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
5604         gl_PREREQ_SYS_H_SOCKET.
5605         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
5606         gl_PREREQ_SYS_H_SOCKET.
5607         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
5608         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
5609         * modules/socklen (Depends-on): Do not depend on sys_socket.
5610         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
5611
5612 2011-03-20  Jim Meyering  <meyering@redhat.com>
5613
5614         maint.mk: sort file names *after* new transformation
5615         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
5616         prefix would have led to an unwarranted failure in GNU parted.
5617         Sort after that transformation.
5618
5619 2011-03-19  Jim Meyering  <meyering@redhat.com>
5620
5621         maint.mk: fix po-file syntax-check rule
5622         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
5623         Patch by Bruno Haible.
5624
5625 2011-03-19  Bruno Haible  <bruno@clisp.org>
5626
5627         socklen: Update comment.
5628         * m4/socklen.m4: Update comment about platforms.
5629
5630 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5631             Bruno Haible  <bruno@clisp.org>
5632
5633         inet_ntop, inet_pton: Simplify.
5634         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
5635         documented to provide socklen_t and we already depend on sys_socket.
5636         * modules/inet_pton (Depends-on): Likewise.
5637         * lib/arpa_inet.in.h: Adjust comment.
5638
5639 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5640             Bruno Haible  <bruno@clisp.org>
5641
5642         netdb: Simplify.
5643         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
5644         documented to provide socklen_t and we already depend on sys_socket.
5645         * lib/netdb.in.h: Adjust comment.
5646
5647 2011-03-19  Bruno Haible  <bruno@clisp.org>
5648
5649         sys_socket, netdb: Document problem with socklen_t.
5650         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
5651         platforms.
5652         * doc/posix-headers/netdb.texi: Likewise.
5653
5654 2011-03-18  Eric Blake  <eblake@redhat.com>
5655
5656         maint.mk: let po check work in VPATH build
5657         * top/maint.mk (po_file): Allow cfg.mk override.
5658         (sc_po_check): Allow VPATH use.
5659         Reported by Jiri Denemark.
5660
5661 2011-03-16  Jim Meyering  <meyering@redhat.com>
5662
5663         maint.mk: allow fine-grained syntax-check exclusion via Make variables
5664         Before, you would have had to create one .x-sc_ file per rule in order
5665         to exempt offending files.  Now, you may instead use a Make variable --
5666         usually defined in cfg.mk -- whose name identifies the affected rule.
5667         * top/maint.mk (_sc_excl): Define.
5668         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
5669         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
5670
5671 2011-03-13  Bruno Haible  <bruno@clisp.org>
5672
5673         ignore-value tests: Avoid warnings.
5674         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
5675         empty for gcc < 3.4.
5676
5677 2011-03-13  Bruno Haible  <bruno@clisp.org>
5678
5679         passfd: Fix link error on Solaris.
5680         * modules/passfd (Description): Correct.
5681         (Depends-on): Add socketlib.
5682         (Link): New section.
5683         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
5684
5685 2011-03-13  Bruno Haible  <bruno@clisp.org>
5686
5687         passfd: Fix link error on AIX 5.2.
5688         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
5689
5690 2011-03-13  Bruno Haible  <bruno@clisp.org>
5691
5692         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
5693         * lib/sys_socket.in.h: Include <stddef.h>.
5694         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
5695         CMSG_FIRSTHDR. Remove unused variable.
5696
5697 2011-03-13  Bruno Haible  <bruno@clisp.org>
5698
5699         passfd: Fix compilation error on OpenBSD.
5700         * lib/passfd.c: Include <sys/uio.h>.
5701
5702 2011-03-13  Bruno Haible  <bruno@clisp.org>
5703
5704         passfd test: Fix warnings.
5705         * tests/test-passfd.c: Include <sys/wait.h>.
5706         (main): Fix typo.
5707
5708 2011-03-13  Bruno Haible  <bruno@clisp.org>
5709
5710         passfd module, part 4, tweaks.
5711         * tests/test-passfd.c: Reorder includes.
5712         (main): Fix perror and printf calls.
5713
5714 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5715
5716         passfd module, part 4.
5717         * modules/passfd-tests: New file.
5718         * tests/test-passfd.c: New file.
5719
5720 2011-03-13  Jim Meyering  <meyering@redhat.com>
5721
5722         Makefile: rely on GNU make; derive syntax-check rule names
5723         Rather than requiring that each sc_ rule be listed as a dependent
5724         of "check", use features of GNU make to derive the list.
5725         * Makefile (syntax-check-rules): Define.
5726         (check): Depend on the new variable, not the hard-coded list.
5727
5728 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
5729             Bruno Haible  <bruno@clisp.org>
5730
5731         passfd module, part 3.
5732         * lib/passfd.h (recvfd): Add a flags argument.
5733         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
5734         (recvfd): Add a flags argument.
5735         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
5736         exists.
5737         * modules/passfd (Depends-on): Add cloexec.
5738         Suggested by Eric Blake.
5739
5740 2011-03-13  Bruno Haible  <bruno@clisp.org>
5741
5742         passfd module, part 2, tweaks.
5743         * modules/passfd (Files): Reorder.
5744         (Depends-on): Remove errno.
5745         (Include): Remove <sys/socket.h>, <sys/un.h>.
5746         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
5747         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
5748         specification header. Include <sys/socket.h> always. Don't include
5749         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
5750         (sendfd): Clarify that it sets errno when it fails.
5751         (recvfd): Fix specification.
5752
5753 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5754
5755         passfd module, part 2.
5756         * modules/passfd: New file.
5757         * lib/passfd.h: New file.
5758         * lib/passfd.c: New file.
5759
5760 2011-03-12  Bruno Haible  <bruno@clisp.org>
5761
5762         wcswidth, mbswidth: Avoid integer overflow.
5763         * lib/wcswidth.c: Include <limits.h>.
5764         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
5765         * lib/mbswidth.c: Include <limits.h>.
5766         (mbsnwidth): Avoid 'int' overflow.
5767         Reported by Jim Meyering.
5768
5769 2011-03-12  Bruno Haible  <bruno@clisp.org>
5770
5771         futimens, utimensat: Avoid endless recursion on Solaris 10.
5772         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
5773         Solaris.
5774         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
5775         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
5776
5777 2011-03-11  Jim Meyering  <meyering@redhat.com>
5778
5779         maint.mk: relax a regexp to accommodate other formatting styles
5780         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
5781         between "ngettext" and the following "(".
5782
5783 2011-03-11  Pádraig Brady <P@draigBrady.com>
5784
5785         maint.mk: suppress a false positive warning
5786         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
5787         diagnostics are marked with ngettext.
5788
5789 2011-03-10  Eric Blake  <eblake@redhat.com>
5790
5791         wchar: add explicit dependencies, for Tru64
5792         * modules/mbmemcasecoll (Depends-on): Add wchar.
5793         * modules/mbtowc (Depends-on): Likewise.
5794         * modules/vasnprintf (Depends-on): Likewise.
5795         * modules/unistdio/u-printf-args (Depends-on): Likewise.
5796         * modules/wctomb (Depends-on): Likewise.
5797         Reported by Peter O'Gorman.
5798
5799 2011-03-08  Bruno Haible  <bruno@clisp.org>
5800
5801         passfd module, part 1, tweaks.
5802         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
5803         Improve indentation. Improve AC_MSG_CHECKING messages.
5804         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
5805         gl_SOCKET_FAMILIES.
5806
5807 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5808
5809         passfd module, part 1.
5810         * m4/afunix.m4: New file.
5811         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
5812         sockets.
5813
5814 2011-03-08  Bruno Haible  <bruno@clisp.org>
5815
5816         regex-quote: New API.
5817         * lib/regex-quote.h: Include <stdbool.h>.
5818         (struct regex_quote_spec): New type.
5819         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
5820         New declarations.
5821         (regex_quote_length, regex_quote_copy, regex_quote): Take a
5822         'const struct regex_quote_spec *' argument.
5823         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
5824         (pcre_special): New constant.
5825         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
5826         New functions.
5827         (regex_quote_length, regex_quote_copy, regex_quote): Take a
5828         'const struct regex_quote_spec *' argument.
5829         * modules/regex-quote (Depends-on): Add stdbool.
5830         * tests/test-regex-quote.c (check): Update for new API. Add test for
5831         anchored results.
5832         * NEWS: Mention the API change.
5833         Reported by Reuben Thomas and Eric Blake.
5834
5835 2011-03-06  Bruno Haible  <bruno@clisp.org>
5836
5837         regex-quote: Fix creation of POSIX extended regular expressions.
5838         * lib/regex-quote.c (ere_special): Add grouping and alternation
5839         operators.
5840
5841 2011-03-05  Bruno Haible  <bruno@clisp.org>
5842
5843         doc: Improve doc regarding autopoint vs. gnulib.
5844         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
5845         disable autopoint while running autoreconf.
5846         Suggested by Ralf Wildenhues.
5847
5848 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5849
5850         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
5851         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
5852
5853 2011-03-03  Bruce Korb  <bkorb@gnu.org>
5854
5855         parse-duration: remove xalloc.h dependency
5856         * lib/parse-duration.c (parse_period): handle NULL return from
5857         strdup instead of calling xstrdup().
5858         * modules/parse-duration: remove "xalloc" dependency
5859
5860 2011-03-03  Matthew Booth  <mbooth@redhat.com>
5861
5862         bootstrap: honor m4_base when running aclocal
5863         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
5864
5865 2011-03-02  Jim Meyering  <meyering@redhat.com>
5866
5867         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
5868         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
5869         on request from Matt Booth.
5870
5871 2011-03-01  Eric Blake  <eblake@redhat.com>
5872
5873         test-link: work on Hurd
5874         * tests/test-link.h (test_link): Hurd rejects linking directories
5875         with EISDIR instead of the POSIX-mandated EPERM.
5876
5877 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
5878
5879         stdio: simplify by moving files to printf-posix, sigpipe
5880         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
5881         since this symbol is needed only if printf is replaced.
5882         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
5883         Require gl_ASM_SYMBOL_PREFIX.
5884         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
5885         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
5886         (Depends-on): Add 'raise'.
5887         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
5888         * modules/stdio (Files): Remove lib/stdio-write.c,
5889         m4/asm-underscore.m4.
5890         (Depends-on): Remove 'raise'.
5891
5892         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
5893         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
5894         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
5895         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
5896
5897 2011-02-28  Bruno Haible  <bruno@clisp.org>
5898
5899         localcharset: Assume ANSI C behaviour of free().
5900         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
5901         calling free().
5902         Suggested by Simon Josefsson <simon@josefsson.org>.
5903
5904 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
5905             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
5906             Bruno Haible  <bruno@clisp.org>  (tiny change)
5907
5908         On Cygwin, use /proc file system instead of win32 API.
5909         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
5910         Win32 file names.
5911         (DllMain): Simplify by removing Cygwin specific code.
5912         (find_shared_library_fullname): Use Linux specific implementation also
5913         for Cygwin.
5914         (get_shared_library_fullname): Update accordingly.
5915         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
5916         Win32 file names.
5917         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
5918         Cygwin specific code.
5919
5920 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
5921             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
5922
5923         Fix OpenMP flag detection for various Fortran compilers.
5924         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
5925         OpenMP-conditional compilation construct, to force compile
5926         failure with missing OpenMP flag.
5927         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
5928
5929 2011-02-25  Eric Blake  <eblake@redhat.com>
5930
5931         strstr: expand test coverage
5932         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
5933         compilation.
5934         * tests/test-memmem.c (main): Duplicate tests.
5935         * tests/test-strcasestr.c (main): Likewise.
5936         * tests/test-c-strcasestr.c (main): Likewise.
5937
5938 2011-02-25  Jim Meyering  <meyering@redhat.com>
5939
5940         maint.mk: detect missing-NL-at-EOF, too
5941         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
5942         it also detects when a file lacks a newline at EOF.
5943         (require_exactly_one_NL_at_EOF_): Renamed from
5944         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
5945         since people may well have .x-sc_... file names tied to the
5946         existing name.  Suggested by Eric Blake.
5947
5948 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
5949
5950         dirname: move m4/dos.m4 functionality into lib/dosname.h
5951
5952         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
5953         extracts symbols from it, puts them into config.h; but it's much
5954         easier to use the symbols directly.  filename.h already does this,
5955         but it disagrees with dos.m4 in some respects.  This patch
5956         introduces a different include file dosname.h that packages up
5957         dos.m4, and then later we can work on merging filename.h and
5958         dosname.h.  Applications that need only the easy-to-configure
5959         symbols should consider including dosname.h rather than dirname.h.
5960         * NEWS: Mention incompatible changes.
5961         * m4/dos.m4: Remove.
5962         * lib/dosname.h, modules/dosname: New files.
5963         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
5964         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
5965         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
5966         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
5967         Include dosname.h, not dirname.h.
5968         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
5969         Include dosname.h, for definitions of symbols like ISSLASH
5970         that used to be in config.h.
5971         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
5972         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
5973         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
5974         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
5975         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
5976         * modules/rmdir (Files): Likewise.
5977         * modules/stat (Files): Likewise.
5978         * modules/unlink (Files): Likewise.
5979         * modules/dirname-lgpl (Depends-on): Add dosname.
5980         * modules/lstat (Depends-on): Likewise.
5981         * modules/openat (Depends-on): Likewise.
5982         * modules/rmdir (Depends-on): Likewise.
5983         * modules/savewd (Depends-on): Likewise.
5984         * modules/stat (Depends-on): Likewise.
5985         * modules/unlink (Depends-on): Likewise.
5986         * modules/openat (Depends-on): Remove dirname-lgpl.
5987         * modules/savewd (Depends-on): Likewise.
5988         * tests/test-dirname.c: Do not use removed symbols like
5989         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
5990         the remaining symbols, e.g., ISSLASH ('\\').
5991
5992 2011-02-25  Eric Blake  <eblake@redhat.com>
5993
5994         strstr: revert patches that introduced bug and pessimization
5995         * lib/str-two-way.h: Add another reference.
5996         (two_way_short_needle, two_way_long_needle): Revert changes from
5997         2011-02-24; they pessimize search speed.
5998         (critical_factorization): Partially revert changes from
5999         2010-06-22; they violate the requirement that the left half of the
6000         needle be smaller than the period of the needle.
6001
6002 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6003
6004         filenamecat: remove unnecessary dependency on dirname-lgpl
6005         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
6006         is no direct dependency, just an indirect one via filenamecat-lgpl.
6007
6008         remove: remove unnecessary use of m4/dos.m4
6009         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
6010         * modules/remove (FILES): Remove m4/dos.m4.
6011
6012         * lib/openat-proc.c: Don't include dirname.h; not needed.
6013
6014         backupfile: remove unnecessary use of m4/dos.m4
6015         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
6016         of its symbols are used by the backupfile code.  backupfile.c does
6017         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
6018         for the rare case of programs that want all their backup file
6019         names to live within 8+3 limits, and dos.m4 doesn't address that.
6020         * modules/backupfile (Files): Remove m4/dos.m4.
6021
6022 2011-02-24  Jim Meyering  <meyering@redhat.com>
6023
6024         strstr: fix a bug whereby strstr would mistakenly return NULL
6025         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
6026         in period calculation.
6027         (two_way_long_needle): Likewise.
6028         The original problem was reported by Mike Stump in
6029         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
6030         Ralf Wildenhues provided the short needle and haystack.
6031         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
6032         Add a more involved test to trigger the bug in two_way_long_needle.
6033
6034 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
6035
6036         gnulib-tool: remove use of bold display in help screen
6037         * gnulib-tool (func_usage): Do not use bold display anymore in the
6038         help screen.  That was just meant to be a temporary emphasis for a
6039         backward-incompatible change.
6040
6041 2011-02-23  Bruno Haible  <bruno@clisp.org>
6042
6043         Fix misindentation of preprocessor directives.
6044         * lib/argp-namefrob.h: Reindent preprocessor directives.
6045         * lib/getopt_int.h (struct _getopt_data): Likewise.
6046         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
6047         * lib/vasnprintf.c (decode_long_double): Likewise.
6048         * tests/test-argmatch.c: Insert blank lines, for clarity.
6049         * tests/test-exclude.c: Likewise.
6050
6051 2011-02-22  Bruno Haible  <bruno@clisp.org>
6052
6053         ioctl: Fix for MacOS X in 64-bit mode.
6054         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
6055         value.
6056         Suggested by Eric Blake.
6057         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
6058
6059 2011-02-22  Jim Meyering  <meyering@redhat.com>
6060
6061         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
6062         * Makefile (sc_cpp_indent_check): Don't limit the check to files
6063         in lib/.
6064
6065 2011-02-22  Eric Blake  <eblake@redhat.com>
6066
6067         maint: avoid any CDPATH issue
6068         * Makefile (sc_cpp_indent_check): Anchor cd argument.
6069
6070         maint: adjust cpp indentation for my modules, as well
6071         * Makefile (sc_cpp_indent_check): Add my name.
6072         * lib/fbufmode.c: Filter through cppi.
6073         * lib/fpurge.c: Likewise.
6074         * lib/freadable.c: Likewise.
6075         * lib/freading.c: Likewise.
6076         * lib/fwritable.c: Likewise.
6077         * lib/fwriting.c: Likewise.
6078         * lib/sigaction.c: Likewise.
6079
6080 2011-02-22  Jim Meyering  <meyering@redhat.com>
6081
6082         maint: adjust cpp indentation to reflect nesting depth
6083         I.e., in a block of code that begins with an unnested "#if",
6084         put one space between the "#" in column 1 and following token.
6085         For example,
6086         -#include <sys/vfs.h>
6087         +# include <sys/vfs.h>
6088         Do this only in .c files that are part of a module I maintain.
6089         * lib/linkat.c: Filter through cppi.
6090         * lib/nanosleep.c: Likewise.
6091         * lib/openat.c: Likewise.
6092         * lib/openat-die.c: Likewise.
6093         * lib/dup3.c: Likewise.
6094         * lib/fchownat.c: Likewise.
6095         * lib/flock.c: Likewise.
6096         * lib/fsync.c: Likewise.
6097         * lib/fts.c: Likewise.
6098         * lib/getpass.c: Likewise.
6099         * lib/gettimeofday.c: Likewise.
6100         * lib/userspec.c: Likewise.
6101         * Makefile (sc_cpp_indent_check): New rule, to check this.
6102
6103 2011-02-22  Bruno Haible  <bruno@clisp.org>
6104
6105         New module 'wctomb'.
6106         * lib/stdlib.in.h (wctomb): New declaration.
6107         * lib/wctomb.c: New file.
6108         * lib/wctomb-impl.h: New file.
6109         * m4/wctomb.m4: New file.
6110         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
6111         REPLACE_WCTOMB.
6112         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
6113         REPLACE_WCTOMB.
6114         * modules/wctomb: New file.
6115         * tests/test-stdlib-c++.cc: Test signature of wctomb.
6116         * doc/posix-functions/wctomb.texi: Mention the new module.
6117         * modules/wctob (Depends-on): Add wctomb.
6118
6119 2011-02-22  Bruno Haible  <bruno@clisp.org>
6120
6121         New module 'mbtowc'.
6122         * lib/stdlib.in.h (mbtowc): New declaration.
6123         * lib/mbtowc.c: New file.
6124         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
6125         * m4/mbtowc.m4: New file.
6126         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
6127         REPLACE_MBTOWC.
6128         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
6129         REPLACE_MBTOWC.
6130         * modules/mbtowc: New file.
6131         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
6132         * doc/posix-functions/mbtowc.texi: Mention the new module.
6133         * modules/btowc (Depends-on): Add mbtowc.
6134
6135 2011-02-22  Bruno Haible  <bruno@clisp.org>
6136
6137         wcrtomb: Add more tests for native Windows platforms.
6138         * tests/test-wcrtomb-w32-1.sh: New file.
6139         * tests/test-wcrtomb-w32-2.sh: New file.
6140         * tests/test-wcrtomb-w32-3.sh: New file.
6141         * tests/test-wcrtomb-w32-4.sh: New file.
6142         * tests/test-wcrtomb-w32-5.sh: New file.
6143         * tests/test-wcrtomb-w32.c: New file.
6144         * modules/wcrtomb-tests (Files): Add them.
6145         (Makefile.am): Arrange to run these tests.
6146         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
6147         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
6148
6149 2011-02-20  Bruno Haible  <bruno@clisp.org>
6150
6151         wcrtomb: Enhance test.
6152         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
6153
6154 2011-02-20  Bruno Haible  <bruno@clisp.org>
6155
6156         mbrtowc: Tiny optimization.
6157         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
6158
6159 2011-02-20  Jim Meyering  <meyering@redhat.com>
6160
6161         test-exclude.c: remove unmatched #endif
6162         * tests/test-exclude.c: Remove stray #endif, left over from
6163         the change of a week ago.
6164
6165 2011-02-19  Jim Meyering  <meyering@redhat.com>
6166
6167         git-version-gen: skip "-dirty" check when appropriate
6168         * build-aux/git-version-gen: Don't run any git commands when the
6169         version string comes from .tarball-version.  Prior to this, we
6170         would run git update-index --refresh even from a just-unpacked
6171         tarball directory, and that could affect a .git/ directory in a
6172         parent of the build directory.  Reported by Mike Frysinger.
6173
6174 2011-02-19  Bruno Haible  <bruno@clisp.org>
6175
6176         unictype/property-byname: Reduce the size of the 'data' segment.
6177         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
6178
6179 2011-02-19  Bruno Haible  <bruno@clisp.org>
6180
6181         unictype/scripts: Reduce the size of the 'data' segment.
6182         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
6183         '%pic'.
6184         * lib/unictype/scripts_byname.gperf: Regenerated.
6185
6186 2011-02-19  Bruno Haible  <bruno@clisp.org>
6187
6188         stdint: Update documentation.
6189         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
6190
6191 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
6192
6193         stdint: omit redundant check for wchar.h
6194         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
6195         always tests whether wchar.h exists, so remove the now-redundant test.
6196
6197 2011-02-18  Bruno Haible  <bruno@clisp.org>
6198
6199         stdint: Cut dependency to module 'wchar'.
6200         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
6201         include the necessary prerequisites.
6202         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
6203         * modules/stdint (Depends-on): Remove wchar.
6204         (Makefile.am): Substitute HAVE_WCHAR_H.
6205         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
6206
6207 2011-02-18  Eric Blake  <eblake@redhat.com>
6208
6209         longlong: skip, rather than fail, on cross-compilation
6210         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
6211         when cross-compiling; regression from 2011-02-16.
6212
6213 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6214
6215         * NEWS: Mention 2011-02-08 change to stdlib.
6216
6217 2011-02-17  Bruno Haible  <bruno@clisp.org>
6218
6219         getloadavg: Add comments about platforms.
6220         * m4/getloadavg.m4: Add comment.
6221         * lib/getloadavg.c: Likewise.
6222
6223 2011-02-17  Bruno Haible  <bruno@clisp.org>
6224
6225         getloadavg: Fix link error on Solaris 2.6.
6226         * modules/getloadavg (Link): New section.
6227         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
6228         linking test-getloadavg.
6229         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
6230         getloadavg.
6231
6232 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6233
6234         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
6235         It was 'int', but this doesn't match the IRIX 6.5 manual.
6236         Suggested by Bruno Haible in
6237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
6238
6239 2011-02-17  Bruno Haible  <bruno@clisp.org>
6240
6241         havelib: Fix comments.
6242         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
6243         change.
6244
6245 2011-02-17  Bruno Haible  <bruno@clisp.org>
6246
6247         havelib: Update config.rpath.
6248         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
6249
6250 2011-02-17  Bruno Haible  <bruno@clisp.org>
6251
6252         getloadavg test: Add some plausibility checks.
6253         * tests/test-getloadavg.c (check_avg): Print a warning when the value
6254         is improbable.
6255
6256 2011-02-16  Eric Blake  <eblake@redhat.com>
6257
6258         maintainer-makefile: make syntax-check a no-op from tarballs
6259         * top/maint.mk (no-vc-detected): New rule.
6260         (local-checks-available): Use it to avoid hanging if someone tries
6261         'make syntax-check' from a tarball.  Also append to any non-syntax
6262         checks already defined in cfg.mk.
6263
6264 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
6265
6266         longlong: tune, particularly for common case of c99
6267
6268         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
6269         or running anything if c99, or if unsigned long long int does not
6270         work.  In either case, we know the answer without further tests.
6271         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
6272         it at most once, and use its results for both long long int and
6273         unsigned long long int.  This is more likely to be efficient in
6274         the common case where the program wants to check for both long
6275         long int and unsigned long long int.
6276         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
6277         since the answer is already known.
6278
6279 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
6280
6281         getloadavg: set errno
6282         * lib/getloadavg.c: Set errno when returning -1.  If no other
6283         error number looks appropriate, set it to ENOSYS if the getloadavg
6284         looks like it can't possibly ever work, ENOTSUP otherwise.
6285         Suggested by Bruno Haible in
6286         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
6287
6288         getloadavg: trim unused parts and speed up 'configure'
6289         * NEWS: Document this.
6290         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
6291         always compiled if getloadavg is absent.
6292         Move test code to ...
6293         * tests/test-getloadavg.c: New file, containing previous
6294         contents of test from lib/getloadavg.c.  It also contains
6295         suggestions by Bruno Haible in
6296         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
6297         * modules/getloadavg-tests: New file.
6298         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
6299         Do tests in the same order as they're needed for getloadavg.c.
6300         Omit setgid-related tests that generate symbols KMEM_GROUP,
6301         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
6302         Do only the tests that are needed to see whether the system has
6303         getloadavg, moving the other tests into ...
6304         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
6305         NLIST_NAME_UNION; nobody should be using it.  Do not define
6306         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
6307         relevant, as the user of this module shouldn't care how getloadavg
6308         is implemented.
6309
6310         getloadavg: omit unused var
6311         * lib/getloadavg.c (getloadavg): Omit unused local variable.
6312
6313 2011-02-15  Jim Meyering  <meyering@redhat.com>
6314
6315         doc: update users.txt
6316         * users.txt: Update iwhd's URL.
6317
6318 2011-02-13  Bruno Haible  <bruno@clisp.org>
6319
6320         Consistent macro naming for macros that use GCC __attribute__.
6321         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
6322         _ATTRIBUTE_NONNULL_.
6323         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
6324         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
6325         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
6326         ATTRIBUTE_DEPRECATED.
6327         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
6328         ATTRIBUTE_NORETURN.
6329         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6330         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6331         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6332         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6333         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
6334         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
6335         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
6336         ATTRIBUTE_SENTINEL.
6337         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
6338         ATTRIBUTE_RETURN_CHECK.
6339         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
6340         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
6341         ATTRIBUTE_NORETURN.
6342         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
6343         Reported by Paul Eggert.
6344
6345 2011-02-13  Bruno Haible  <bruno@clisp.org>
6346
6347         Don't interfere with a program's definition of __attribute__.
6348         * lib/argp.h (__attribute__): Remove definition.
6349         (_GL_ATTRIBUTE_FORMAT): New macro.
6350         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
6351         * lib/argp-fmtstream.h (__attribute__): Remove definition.
6352         (_GL_ATTRIBUTE_FORMAT): New macro.
6353         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
6354         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
6355         GCC 3 or newer.
6356         * lib/error.h (__attribute__): Remove definition.
6357         (_GL_ATTRIBUTE_FORMAT): New macro.
6358         (error, error_at_line): Use it.
6359         * lib/hash.h (__attribute__): Remove definition.
6360         (ATTRIBUTE_WUR): Update definition. Define always.
6361         * lib/openat.h (__attribute__): Remove definition.
6362         (ATTRIBUTE_NORETURN): Update definition. Define always.
6363         * lib/sigpipe-die.h (__attribute__): Remove definition.
6364         (ATTRIBUTE_NORETURN): Update definition. Define always.
6365         * lib/vasnprintf.h (__attribute__): Remove definition.
6366         (_GL_ATTRIBUTE_FORMAT): New macro.
6367         (asnprintf, vasnprintf): Use it.
6368         * lib/xalloc.h (__attribute__): Remove definition.
6369         (ATTRIBUTE_NORETURN): Update definition. Define always.
6370         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
6371         * lib/xmemdup0.h (__attribute__): Remove definition.
6372         (ATTRIBUTE_NORETURN): Update definition. Define always.
6373         * lib/xprintf.h (__attribute__): Remove definition.
6374         (_GL_ATTRIBUTE_FORMAT): New macro.
6375         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
6376         * lib/xstrtol.h (__attribute__): Remove definition.
6377         (ATTRIBUTE_NORETURN): Update definition. Define always.
6378         * lib/xvasprintf.h (__attribute__): Remove definition.
6379         (_GL_ATTRIBUTE_FORMAT): New macro.
6380         (xasprintf, xvasprintf): Use it.
6381         * tests/test-argmatch.c (__attribute__): Remove definition.
6382         (ATTRIBUTE_NORETURN): Update definition. Define always.
6383         * tests/test-exclude.c (__attribute__): Remove definition.
6384         (ATTRIBUTE_NORETURN): Update definition. Define always.
6385         Reported by Paul Eggert.
6386
6387 2011-02-13  Bruno Haible  <bruno@clisp.org>
6388
6389         mbrtowc: Add more tests for native Windows platforms.
6390         * tests/test-mbrtowc-w32-1.sh: New file.
6391         * tests/test-mbrtowc-w32-2.sh: New file.
6392         * tests/test-mbrtowc-w32-3.sh: New file.
6393         * tests/test-mbrtowc-w32-4.sh: New file.
6394         * tests/test-mbrtowc-w32-5.sh: New file.
6395         * tests/test-mbrtowc-w32.c: New file.
6396         * modules/mbrtowc-tests (Files): Add them.
6397         (Makefile.am): Arrange to run these tests.
6398         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
6399         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
6400
6401 2011-02-13  Bruno Haible  <bruno@clisp.org>
6402
6403         mbrtowc: Work around native Windows bug.
6404         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
6405         guess when no suitable locale for testing was found.
6406         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
6407
6408 2011-02-13  Bruno Haible  <bruno@clisp.org>
6409
6410         mbsinit: Work around mingw bug.
6411         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
6412         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
6413         Windows.
6414         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
6415
6416 2011-02-13  Bruno Haible  <bruno@clisp.org>
6417
6418         mbsinit: Don't crash for a NULL argument.
6419         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
6420         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
6421
6422 2011-02-13  Bruno Haible  <bruno@clisp.org>
6423
6424         Don't interfere with a program's definition of __attribute__.
6425         * lib/stdio.in.h (__attribute__): Remove definition.
6426         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
6427         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
6428         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
6429         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
6430         * lib/string.in.h (__attribute__): Remove definition.
6431         Reported by Paul Eggert.
6432
6433 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6434
6435         stdlib: don't get in the way of non-GCC __attribute__
6436         See thread starting at
6437         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
6438         Revert previous stdlib change, installing the following instead:
6439         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
6440         to get in the way of a non-GCC compiler that supports __attribute__.
6441         (_GL_ATTRIBUTE_RETURN): New macro.
6442         (_Exit): Use it instead of __attribute__.
6443
6444 2011-02-12  Bruno Haible  <bruno@clisp.org>
6445
6446         quotearg test: Avoid test failure on mingw.
6447         * tests/test-quotearg.sh: Convert the locale identifier from native
6448         Windows syntax to Unix syntax.
6449
6450 2011-02-12  Bruno Haible  <bruno@clisp.org>
6451
6452         setlocale: Prefer gnulib's override over libintl's override.
6453         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
6454         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
6455         GNULIB_defined_setlocale is set.
6456
6457 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6458
6459         stdlib: support non-GCC __attribute__
6460
6461         Fix a serious and tricky problem encountered when attempting to
6462         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
6463         5.5, but it crashed due to memory corruption on Solaris 10 with
6464         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
6465         bits that are otherwise zero.  This tagging is optional inside
6466         Emacs but is preferred and is used when __attribute__ ((__aligned
6467         (8))) works, as it does with both recent-enough GCC and with Sun C
6468         5.11.  However, Sun C 5.11 is not GCC and does not #define
6469         __GNUC__ and __GNUC_MINOR__.
6470
6471         When I added the getloadavg module to Emacs, it brought in
6472         stdlib.in.h, which contained this fragment:
6473
6474            #ifndef __attribute__
6475            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
6476            #  define __attribute__(Spec)   /* empty */
6477            # endif
6478            #endif
6479
6480         When files that include <stdlib.h> were compiled with Sun C 5.11,
6481         the above code disabled __attribute__ ((__aligned (8))), which
6482         caused variables to not be properly aligned, which eventually led
6483         to the pointer corruption mentioned above.  (This was a bit hard
6484         to diagnose, unfortunately.)
6485
6486         Several "#define __attribute__(X) /* empty */" code snippets need
6487         to be eradicated from Gnulib to work with non-GCC compilers that
6488         support __attribute__.  The Autoconf way to do this is to test for
6489         each kind of attribute that we want support for, and selectively
6490         enable that in source code.
6491
6492         Fix this problem just for stdlib.h, by adding a test for the
6493         __noreturn__ attribute, and change stdlib.in.h to use that test
6494         when needed.  This technique can be easily generalized to the
6495         other *.in.h files and attributes, and a similar technique can be
6496         used for *.h and *.c files.  This patch is enough to solve the
6497         problem for Emacs + getloadavg, and I thought I'd publish it for
6498         feedback before undertaking further, similar fixes in other
6499         modules.
6500
6501         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
6502         because it's not needed for stdlib.h.  It merely substitutes the
6503         value directly into stdlib.h.  We may well need to #define it, or
6504         similar symbols, for other modules, but it's nice to also have an
6505         option to not #define it for applications like Emacs that do not
6506         need it.
6507
6508         * lib/stdlib.in.h (__attribute__): Do not #define.
6509         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
6510         be defined only if the _Exit module is also used.
6511         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
6512         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
6513         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
6514         platforms.
6515         * modules/_Exit (Files): Add m4/attribute.m4.
6516         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
6517         * m4/attribute.m4: New file.
6518
6519 2011-02-12  Bruno Haible  <bruno@clisp.org>
6520
6521         wcsrtombs: Work around bug on native Windows.
6522         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
6523         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
6524         instead of len.
6525         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
6526
6527 2011-02-12  Bruno Haible  <bruno@clisp.org>
6528
6529         mbsrtowcs: Work around bug on native Windows.
6530         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
6531         against mingw bug.
6532         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
6533
6534 2011-02-12  Bruno Haible  <bruno@clisp.org>
6535
6536         Avoid setlocale bugs in tests.
6537         * modules/btowc (Dependencies): Add setlocale.
6538         * modules/c-strcase (Dependencies): Likewise.
6539         * modules/mbmemcasecmp (Dependencies): Likewise.
6540         * modules/mbmemcasecoll (Dependencies): Likewise.
6541         * modules/mbrtowc (Dependencies): Likewise.
6542         * modules/mbscasecmp (Dependencies): Likewise.
6543         * modules/mbscasestr (Dependencies): Likewise.
6544         * modules/mbschr (Dependencies): Likewise.
6545         * modules/mbscspn (Dependencies): Likewise.
6546         * modules/mbsinit (Dependencies): Likewise.
6547         * modules/mbsncasecmp (Dependencies): Likewise.
6548         * modules/mbsnrtowcs (Dependencies): Likewise.
6549         * modules/mbspbrk (Dependencies): Likewise.
6550         * modules/mbspcasecmp (Dependencies): Likewise.
6551         * modules/mbsrchr (Dependencies): Likewise.
6552         * modules/mbsrtowcs (Dependencies): Likewise.
6553         * modules/mbsspn (Dependencies): Likewise.
6554         * modules/mbsstr (Dependencies): Likewise.
6555         * modules/nl_langinfo (Dependencies): Likewise.
6556         * modules/quotearg (Dependencies): Likewise.
6557         * modules/unicase/locale-language (Dependencies): Likewise.
6558         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
6559         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
6560         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
6561         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
6562         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
6563         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
6564         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
6565         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
6566         * modules/vasnprintf-posix (Dependencies): Likewise.
6567         * modules/wcrtomb (Dependencies): Likewise.
6568         * modules/wcsnrtombs (Dependencies): Likewise.
6569         * modules/wcsrtombs (Dependencies): Likewise.
6570
6571 2011-02-12  Bruno Haible  <bruno@clisp.org>
6572
6573         setlocale: Workaround native Windows bug.
6574         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
6575         succeeds but sets LC_CTYPE to "C", report a failure.
6576         * tests/test-setlocale2.sh: New file.
6577         * tests/test-setlocale2.c: New file.
6578         * modules/setlocale-tests (Files): Add the new files.
6579         (Makefile.am): Enable test-setlocale2.sh test.
6580         * doc/posix-functions/setlocale.texi: Mention workaround.
6581
6582 2011-02-11  Bruno Haible  <bruno@clisp.org>
6583
6584         Tests for module 'setlocale'.
6585         * modules/setlocale-tests: New file.
6586         * tests/test-setlocale1.sh: New file.
6587         * tests/test-setlocale1.c: New file.
6588
6589         New module 'setlocale'.
6590         * lib/locale.in.h (setlocale): New declaration.
6591         * lib/setlocale.c: New file, based on
6592         gettext/gettext-runtime/intl/setlocale.c.
6593         * m4/setlocale.m4: New file.
6594         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
6595         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
6596         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
6597         REPLACE_SETLOCALE.
6598         * modules/setlocale: New file.
6599         * tests/test-locale-c++.cc: Test the declaration of setlocale.
6600         * doc/posix-functions/setlocale.texi: Mention the new module.
6601
6602 2011-02-11  Bruno Haible  <bruno@clisp.org>
6603
6604         Prepare for locale dependent tests on mingw.
6605         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
6606         because it has the wrong locale encoding.
6607         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
6608         French_France.1252 instead of "fr".
6609         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
6610         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
6611         because it has the wrong locale encoding.
6612         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
6613         native Windows, try Turkish_Turkey.65001.
6614         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
6615         Chinese_China.54936.
6616
6617         Prepare for locale dependent tests on mingw.
6618         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
6619         differently.
6620         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
6621         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
6622         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
6623         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6624
6625 2011-02-11  Eric Blake  <eblake@redhat.com>
6626
6627         strptime: avoid compiler warnings
6628         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
6629         compiler warnings about dead code.
6630         Reported by Daniel P. Berrange.
6631
6632 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
6633
6634         doc: update users.txt
6635         * users.txt: Add rcs.
6636
6637 2011-02-10  John W. Eaton  <jwe@gnu.org>
6638
6639         doc: update users.txt
6640         * users.txt: Add octave.
6641
6642 2011-02-10  Jim Meyering  <meyering@redhat.com>
6643
6644         doc: update users.txt
6645         * users.txt: Add iwhd.
6646
6647 2011-02-09  Bruno Haible  <bruno@clisp.org>
6648
6649         gnulib-tool: Make copyright notice adjustment more robust.
6650         * gnulib-tool (func_import): In sed_transform_main_lib_file,
6651         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
6652         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
6653         License".
6654         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
6655
6656 2011-02-06  Bruno Haible  <bruno@clisp.org>
6657
6658         New module 'towctrans'.
6659         * modules/towctrans: New file.
6660         * lib/wctype.in.h (towctrans): New declaration.
6661         * lib/towctrans.c: New file.
6662         * lib/towctrans-impl.h: New file.
6663         * m4/towctrans.m4: New file.
6664         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
6665         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
6666         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
6667         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
6668         * doc/posix-functions/towctrans.texi: Mention the new module.
6669
6670 2011-02-06  Bruno Haible  <bruno@clisp.org>
6671
6672         New module 'wctrans'.
6673         * modules/wctrans: New file.
6674         * lib/wctype.in.h (wctrans): New declaration.
6675         * lib/wctrans.c: New file.
6676         * lib/wctrans-impl.h: New file.
6677         * m4/wctrans.m4: New file.
6678         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
6679         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
6680         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
6681         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
6682         * doc/posix-functions/wctrans.texi: Mention the new module.
6683
6684 2011-02-06  Bruno Haible  <bruno@clisp.org>
6685
6686         New module 'iswctype'.
6687         * modules/iswctype: New file.
6688         * lib/wctype.in.h (iswctype): New declaration.
6689         * lib/iswctype.c: New file.
6690         * lib/iswctype-impl.h: New file.
6691         * m4/iswctype.m4: New file.
6692         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
6693         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
6694         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
6695         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
6696         * doc/posix-functions/iswctype.texi: Mention the new module and the
6697         HP-UX 11.00 problem.
6698
6699 2011-02-06  Bruno Haible  <bruno@clisp.org>
6700
6701         New module 'wctype'.
6702         * modules/wctype: Change to represent the wctype() substitute.
6703         * lib/wctype.in.h (wctype): New declaration.
6704         * lib/wctype.c: New file.
6705         * lib/wctype-impl.h: New file.
6706         * m4/wctype.m4: New file.
6707         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
6708         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
6709         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
6710         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
6711         * doc/posix-functions/wctype.texi: Mention the new module and the
6712         HP-UX 11.00 problem.
6713
6714 2011-02-06  Bruno Haible  <bruno@clisp.org>
6715
6716         wctype-h: Ensure wctype_t and wctrans_t are defined.
6717         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
6718         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
6719         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
6720         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
6721         HAVE_WCTRANS_T.
6722         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
6723
6724 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6725
6726         flock: fix license typo
6727
6728         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
6729         omitted.
6730
6731 2011-02-08  Bruno Haible  <bruno@clisp.org>
6732
6733         Split large sed scripts, for HP-UX sed.
6734         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
6735         to avoid HP-UX limit of 99 commands, in the near future.
6736         * modules/stdlib (Makefile.am): Likewise.
6737         * modules/unistd (Makefile.am): Likewise.
6738         * modules/wchar (Makefile.am): Likewise.
6739         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6740         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
6741         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
6742
6743 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6744             Bruno Haible  <bruno@clisp.org>
6745
6746         stdlib: improve random_r modularization
6747         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
6748         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
6749         you also need the random_r module to get this material right.
6750         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
6751         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
6752         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
6753
6754 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6755
6756         stdlib: don't depend on stdint
6757         * lib/stdlib.in.h: Don't include <stdint.h> merely because
6758         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
6759         be independent of whether stdint.h is needed.
6760         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
6761         here, instead of ...
6762         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
6763         struct random_data should be using the random_r module, not just
6764         the stdlib module (which wouldn't make sense: what package needs
6765         just struct random_data without also needing random_r?).
6766         * modules/stdlib (Depends-on): Remove stdint.
6767
6768         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
6769         See the thread rooted at
6770         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
6771         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
6772         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
6773         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
6774         __VMS)); previously it was always included (via fcntl--.h).
6775         (getloadavg): Do not use c_strtod.  Instead, approximate it by
6776         hand; this is good enough for load averages.  Also, do not use
6777         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
6778         flags directly if available and don't bother otherwise.  (Packages
6779         that need the extra reliability should use the modules that define
6780         these flags on older platforms that lack them.)
6781         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
6782         fcntl-safer.
6783
6784 2011-02-08  Jim Meyering  <meyering@redhat.com>
6785
6786         di-set.h, ino-map.h: add multiple-inclusion guard
6787         Technically, the guard is required only for ino-map.h, due to its
6788         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
6789         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
6790         * lib/ino-map.h: Likewise.
6791
6792 2011-02-06  Bruno Haible  <bruno@clisp.org>
6793
6794         iswblank: Ensure declaration on glibc systems.
6795         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
6796         * modules/iswblank (Dependencies): Add 'extensions'.
6797         * doc/posix-functions/iswblank.texi: Document the glibc problem.
6798
6799 2011-02-06  Bruno Haible  <bruno@clisp.org>
6800
6801         New module 'iswblank'.
6802         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
6803         * modules/iswblank: New file.
6804         * modules/wctype-h (Files): Remove lib/iswblank.c.
6805         (Makefile.am): Substitute GNULIB_ISWBLANK.
6806         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
6807         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
6808         (gl_WCTYPE_H_DEFAULTS): New macro.
6809         (gl_WCTYPE_H): Require it. Remove iswblank related code.
6810         * modules/iswblank-tests: New file.
6811         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
6812         * tests/test-wctype-h.c (main): Remove iswblank tests.
6813         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
6814         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
6815         of 'wctype-h'.
6816         * NEWS: Mention the change.
6817         * modules/mbchar (Depends-on): Add iswblank.
6818
6819 2011-02-08  Bruno Haible  <bruno@clisp.org>
6820
6821         di-set tests: Refactor.
6822         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
6823         unnecessary includes.
6824         (ASSERT): Remove macro.
6825         (main): Make C90 compliant by avoiding variable declaration after
6826         statement.
6827         * modules/di-set-tests (Files): Add tests/macros.h.
6828
6829 2011-02-08  Bruno Haible  <bruno@clisp.org>
6830
6831         ino-map tests: Refactor.
6832         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
6833         unnecessary includes.
6834         (ASSERT): Remove macro.
6835         (main): Make C90 compliant by avoiding variable declaration after
6836         statement.
6837         * modules/ino-map-tests (Files): Add tests/macros.h.
6838
6839 2011-02-08  Jim Meyering  <meyering@redhat.com>
6840
6841         di-set: add "const" to a cast
6842         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
6843         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
6844
6845 2011-02-06  Bruno Haible  <bruno@clisp.org>
6846
6847         Rename module 'wctype' to 'wctype-h'.
6848         * modules/wctype-h: Renamed from modules/wctype.
6849         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
6850         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
6851         (Files, Depends-on, Makefile.am): Update.
6852         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
6853         (Files, Makefile.am): Update.
6854         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
6855         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
6856         * doc/posix-headers/wctype.texi: Update.
6857         * doc/posix-functions/iswalnum.texi: Update.
6858         * doc/posix-functions/iswalpha.texi: Update.
6859         * doc/posix-functions/iswblank.texi: Update.
6860         * doc/posix-functions/iswcntrl.texi: Update.
6861         * doc/posix-functions/iswdigit.texi: Update.
6862         * doc/posix-functions/iswgraph.texi: Update.
6863         * doc/posix-functions/iswlower.texi: Update.
6864         * doc/posix-functions/iswprint.texi: Update.
6865         * doc/posix-functions/iswpunct.texi: Update.
6866         * doc/posix-functions/iswspace.texi: Update.
6867         * doc/posix-functions/iswupper.texi: Update.
6868         * doc/posix-functions/iswxdigit.texi: Update.
6869         * doc/posix-functions/towlower.texi: Update.
6870         * doc/posix-functions/towupper.texi: Update.
6871         * NEWS: Mention the change.
6872         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
6873         * modules/mbchar (Dependencies): Likewise.
6874         * modules/mbswidth (Dependencies): Likewise.
6875         * modules/quotearg (Dependencies): Likewise.
6876         * modules/regex (Dependencies): Likewise.
6877         * modules/wcscasecmp (Dependencies): Likewise.
6878         * modules/wcsncasecmp (Dependencies): Likewise.
6879         * modules/wcwidth (Dependencies): Likewise.
6880
6881 2011-02-06  Bruno Haible  <bruno@clisp.org>
6882
6883         New module 'wcswidth'.
6884         * modules/wcswidth: New file.
6885         * lib/wchar.in.h (wcswidth): New declaration.
6886         * lib/wcswidth.c: New file.
6887         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
6888         * m4/wcswidth.m4: New file.
6889         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
6890         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
6891         REPLACE_WCSWIDTH.
6892         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
6893         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
6894         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
6895         * doc/posix-functions/wcswidth.texi: Mention the new module.
6896
6897 2011-02-06  Bruno Haible  <bruno@clisp.org>
6898
6899         New module 'wcstok'.
6900         * modules/wcstok: New file.
6901         * lib/wchar.in.h (wcstok): New declaration.
6902         * lib/wcstok.c: New file.
6903         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
6904         * m4/wcstok.m4: New file.
6905         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
6906         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
6907         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
6908         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
6909         * doc/posix-functions/wcstok.texi: Mention the new module.
6910
6911 2011-02-06  Bruno Haible  <bruno@clisp.org>
6912
6913         New module 'wcsstr'.
6914         * modules/wcsstr: New file.
6915         * lib/wchar.in.h (wcsstr): New declaration.
6916         * lib/wcsstr.c: New file.
6917         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
6918         * m4/wcsstr.m4: New file.
6919         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
6920         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
6921         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
6922         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
6923         * doc/posix-functions/wcsstr.texi: Mention the new module.
6924
6925 2011-02-06  Bruno Haible  <bruno@clisp.org>
6926
6927         New module 'wcspbrk'.
6928         * modules/wcspbrk: New file.
6929         * lib/wchar.in.h (wcspbrk): New declaration.
6930         * lib/wcspbrk.c: New file.
6931         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
6932         * m4/wcspbrk.m4: New file.
6933         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
6934         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
6935         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
6936         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
6937         * doc/posix-functions/wcspbrk.texi: Mention the new module.
6938
6939 2011-02-06  Bruno Haible  <bruno@clisp.org>
6940
6941         New module 'wcsspn'.
6942         * modules/wcsspn: New file.
6943         * lib/wchar.in.h (wcsspn): New declaration.
6944         * lib/wcsspn.c: New file.
6945         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
6946         * m4/wcsspn.m4: New file.
6947         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
6948         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
6949         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
6950         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
6951         * doc/posix-functions/wcsspn.texi: Mention the new module.
6952
6953 2011-02-06  Bruno Haible  <bruno@clisp.org>
6954
6955         New module 'wcscspn'.
6956         * modules/wcscspn: New file.
6957         * lib/wchar.in.h (wcscspn): New declaration.
6958         * lib/wcscspn.c: New file.
6959         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
6960         * m4/wcscspn.m4: New file.
6961         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
6962         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
6963         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
6964         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
6965         * doc/posix-functions/wcscspn.texi: Mention the new module.
6966
6967 2011-02-06  Bruno Haible  <bruno@clisp.org>
6968
6969         New module 'wcsrchr'.
6970         * modules/wcsrchr: New file.
6971         * lib/wchar.in.h (wcsrchr): New declaration.
6972         * lib/wcsrchr.c: New file.
6973         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
6974         * m4/wcsrchr.m4: New file.
6975         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
6976         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
6977         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
6978         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
6979         * doc/posix-functions/wcsrchr.texi: Mention the new module.
6980
6981 2011-02-06  Bruno Haible  <bruno@clisp.org>
6982
6983         New module 'wcschr'.
6984         * modules/wcschr: New file.
6985         * lib/wchar.in.h (wcschr): New declaration.
6986         * lib/wcschr.c: New file.
6987         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
6988         * m4/wcschr.m4: New file.
6989         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
6990         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
6991         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
6992         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
6993         * doc/posix-functions/wcschr.texi: Mention the new module.
6994
6995 2011-02-06  Bruno Haible  <bruno@clisp.org>
6996
6997         New module 'wcsdup'.
6998         * modules/wcsdup: New file.
6999         * lib/wchar.in.h (wcsdup): New declaration.
7000         * lib/wcsdup.c: New file.
7001         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
7002         * m4/wcsdup.m4: New file.
7003         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
7004         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
7005         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
7006         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
7007         * doc/posix-functions/wcsdup.texi: Mention the new module.
7008
7009 2011-02-06  Bruno Haible  <bruno@clisp.org>
7010
7011         New module 'wcsxfrm'.
7012         * modules/wcsxfrm: New file.
7013         * lib/wchar.in.h (wcsxfrm): New declaration.
7014         * lib/wcsxfrm.c: New file.
7015         * lib/wcsxfrm-impl.h: New file.
7016         * m4/wcsxfrm.m4: New file.
7017         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
7018         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
7019         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
7020         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
7021         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
7022
7023 2011-02-06  Bruno Haible  <bruno@clisp.org>
7024
7025         New module 'wcscoll'.
7026         * modules/wcscoll: New file.
7027         * lib/wchar.in.h (wcscoll): New declaration.
7028         * lib/wcscoll.c: New file.
7029         * lib/wcscoll-impl.h: New file.
7030         * m4/wcscoll.m4: New file.
7031         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
7032         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
7033         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
7034         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
7035         * doc/posix-functions/wcscoll.texi: Mention the new module.
7036
7037 2011-02-06  Bruno Haible  <bruno@clisp.org>
7038
7039         New module 'wcsncasecmp'.
7040         * modules/wcsncasecmp: New file.
7041         * lib/wchar.in.h (wcsncasecmp): New declaration.
7042         * lib/wcsncasecmp.c: New file.
7043         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
7044         * m4/wcsncasecmp.m4: New file.
7045         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
7046         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
7047         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
7048         HAVE_WCSNCASECMP.
7049         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
7050         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
7051
7052 2011-02-06  Bruno Haible  <bruno@clisp.org>
7053
7054         New module 'wcscasecmp'.
7055         * modules/wcscasecmp: New file.
7056         * lib/wchar.in.h (wcscasecmp): New declaration.
7057         * lib/wcscasecmp.c: New file.
7058         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
7059         * m4/wcscasecmp.m4: New file.
7060         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
7061         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
7062         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
7063         HAVE_WCSCASECMP.
7064         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
7065         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
7066
7067 2011-02-05  Bruno Haible  <bruno@clisp.org>
7068
7069         New module 'wcsncmp'.
7070         * modules/wcsncmp: New file.
7071         * lib/wchar.in.h (wcsncmp): New declaration.
7072         * lib/wcsncmp.c: New file.
7073         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
7074         * m4/wcsncmp.m4: New file.
7075         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
7076         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
7077         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
7078         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
7079         * doc/posix-functions/wcsncmp.texi: Mention the new module.
7080
7081 2011-02-05  Bruno Haible  <bruno@clisp.org>
7082
7083         New module 'wcscmp'.
7084         * modules/wcscmp: New file.
7085         * lib/wchar.in.h (wcscmp): New declaration.
7086         * lib/wcscmp.c: New file.
7087         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
7088         * m4/wcscmp.m4: New file.
7089         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
7090         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
7091         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
7092         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
7093         * doc/posix-functions/wcscmp.texi: Mention the new module.
7094
7095 2011-02-05  Bruno Haible  <bruno@clisp.org>
7096
7097         New module 'wcsncat'.
7098         * modules/wcsncat: New file.
7099         * lib/wchar.in.h (wcsncat): New declaration.
7100         * lib/wcsncat.c: New file.
7101         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
7102         * m4/wcsncat.m4: New file.
7103         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
7104         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
7105         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
7106         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
7107         * doc/posix-functions/wcsncat.texi: Mention the new module.
7108
7109 2011-02-05  Bruno Haible  <bruno@clisp.org>
7110
7111         New module 'wcscat'.
7112         * modules/wcscat: New file.
7113         * lib/wchar.in.h (wcscat): New declaration.
7114         * lib/wcscat.c: New file.
7115         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
7116         * m4/wcscat.m4: New file.
7117         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
7118         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
7119         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
7120         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
7121         * doc/posix-functions/wcscat.texi: Mention the new module.
7122
7123 2011-02-05  Bruno Haible  <bruno@clisp.org>
7124
7125         New module 'wcpncpy'.
7126         * modules/wcpncpy: New file.
7127         * lib/wchar.in.h (wcpncpy): New declaration.
7128         * lib/wcpncpy.c: New file.
7129         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
7130         * m4/wcpncpy.m4: New file.
7131         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
7132         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
7133         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
7134         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
7135         * doc/posix-functions/wcpncpy.texi: Mention the new module.
7136
7137 2011-02-05  Bruno Haible  <bruno@clisp.org>
7138
7139         New module 'wcsncpy'.
7140         * modules/wcsncpy: New file.
7141         * lib/wchar.in.h (wcsncpy): New declaration.
7142         * lib/wcsncpy.c: New file.
7143         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
7144         * m4/wcsncpy.m4: New file.
7145         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
7146         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
7147         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
7148         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
7149         * doc/posix-functions/wcsncpy.texi: Mention the new module.
7150
7151 2011-02-05  Bruno Haible  <bruno@clisp.org>
7152
7153         New module 'wcpcpy'.
7154         * modules/wcpcpy: New file.
7155         * lib/wchar.in.h (wcpcpy): New declaration.
7156         * lib/wcpcpy.c: New file.
7157         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
7158         * m4/wcpcpy.m4: New file.
7159         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
7160         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
7161         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
7162         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
7163         * doc/posix-functions/wcpcpy.texi: Mention the new module.
7164
7165 2011-02-05  Bruno Haible  <bruno@clisp.org>
7166
7167         New module 'wcscpy'.
7168         * modules/wcscpy: New file.
7169         * lib/wchar.in.h (wcscpy): New declaration.
7170         * lib/wcscpy.c: New file.
7171         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
7172         * m4/wcscpy.m4: New file.
7173         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
7174         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
7175         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
7176         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
7177         * doc/posix-functions/wcscpy.texi: Mention the new module.
7178
7179 2011-02-05  Bruno Haible  <bruno@clisp.org>
7180
7181         New module 'wcsnlen'.
7182         * modules/wcsnlen: New file.
7183         * lib/wchar.in.h (wcsnlen): New declaration.
7184         * lib/wcsnlen.c: New file.
7185         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
7186         * m4/wcsnlen.m4: New file.
7187         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
7188         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
7189         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
7190         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
7191         * doc/posix-functions/wcsnlen.texi: Mention the new module.
7192
7193 2011-02-05  Bruno Haible  <bruno@clisp.org>
7194
7195         New module 'wcslen'.
7196         * modules/wcslen: New file.
7197         * lib/wchar.in.h (wcslen): New declaration.
7198         * lib/wcslen.c: New file.
7199         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
7200         * m4/wcslen.m4: New file.
7201         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
7202         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
7203         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
7204         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
7205         * doc/posix-functions/wcslen.texi: Mention the new module.
7206
7207 2011-02-05  Bruno Haible  <bruno@clisp.org>
7208
7209         New module 'wmemset'.
7210         * modules/wmemset: New file.
7211         * lib/wchar.in.h (wmemset): New declaration.
7212         * lib/wmemset.c: New file.
7213         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
7214         * m4/wmemset.m4: New file.
7215         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
7216         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
7217         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
7218         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
7219         * doc/posix-functions/wmemset.texi: Mention the new module.
7220
7221 2011-02-05  Bruno Haible  <bruno@clisp.org>
7222
7223         New module 'wmemmove'.
7224         * modules/wmemmove: New file.
7225         * lib/wchar.in.h (wmemmove): New declaration.
7226         * lib/wmemmove.c: New file.
7227         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
7228         * m4/wmemmove.m4: New file.
7229         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
7230         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
7231         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
7232         HAVE_WMEMMOVE.
7233         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
7234         * doc/posix-functions/wmemmove.texi: Mention the new module.
7235
7236 2011-02-05  Bruno Haible  <bruno@clisp.org>
7237
7238         New module 'wmemcpy'.
7239         * modules/wmemcpy: New file.
7240         * lib/wchar.in.h (wmemcpy): New declaration.
7241         * lib/wmemcpy.c: New file.
7242         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
7243         * m4/wmemcpy.m4: New file.
7244         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
7245         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
7246         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
7247         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
7248         * doc/posix-functions/wmemcpy.texi: Mention the new module.
7249
7250 2011-02-05  Bruno Haible  <bruno@clisp.org>
7251
7252         New module 'wmemcmp'.
7253         * modules/wmemcmp: New file.
7254         * lib/wchar.in.h (wmemcmp): New declaration.
7255         * lib/wmemcmp.c: New file.
7256         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
7257         * m4/wmemcmp.m4: New file.
7258         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
7259         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
7260         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
7261         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
7262         * doc/posix-functions/wmemcmp.texi: Mention the new module.
7263
7264 2011-02-07  Jim Meyering  <meyering@redhat.com>
7265
7266         di-set, ino-map: new modules, from coreutils
7267         * lib/di-set.c: New file.
7268         * lib/di-set.h: Likewise.
7269         * lib/ino-map.c: Likewise.
7270         * lib/ino-map.h: Likewise.
7271         * modules/di-set: Likewise.
7272         * modules/di-set-tests: Likewise.
7273         * modules/ino-map: Likewise.
7274         * modules/ino-map-tests: Likewise.
7275         * tests/test-di-set.c: Likewise.
7276         * tests/test-ino-map.c: Likewise.
7277
7278 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
7279
7280         getloadavg: merge minor changes from Emacs
7281
7282         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
7283         (getloadavg): Use memset, not bzero.
7284
7285         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
7286         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7287         clash (bug#86).
7288
7289 2010-11-14  Bruno Haible  <bruno@clisp.org>
7290
7291         Allow multiple gnulib generated replacements to coexist.
7292         * lib/getopt.in.h (struct option): Avoid identical redefinition.
7293         * lib/inttypes.in.h (imaxdiv_t): Likewise.
7294         * lib/langinfo.in.h (nl_item): Likewise.
7295         * lib/math.in.h (_NaN, NAN): Likewise.
7296         * lib/netdb.in.h (struct addrinfo): Likewise.
7297         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
7298         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
7299         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
7300         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
7301         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
7302         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
7303         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
7304         pthread_mutexattr_init, pthread_mutexattr_settype,
7305         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
7306         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
7307         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
7308         pthread_spin_trylock, pthread_spin_unlock): Likewise.
7309         * lib/sched.in.h (struct sched_param): Likewise.
7310         * lib/se-selinux.in.h (security_class_t, security_context_t,
7311         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
7312         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
7313         lsetfilecon, fsetfilecon, security_check_context,
7314         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
7315         Likewise.
7316         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
7317         Likewise.
7318         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
7319         _gl_function_taking_int_returning_void_t, union sigval,
7320         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
7321         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
7322         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
7323         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
7324         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
7325         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
7326         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
7327         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
7328         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
7329         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
7330         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
7331         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
7332         socklen_t, rpl_fd_isset): Likewise.
7333         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
7334         * lib/sys_time.in.h (struct timeval): Likewise.
7335         * lib/sys_times.in.h (struct tms): Likewise.
7336         * lib/sys_utsname.in.h (struct utsname):
7337         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
7338         * lib/unistd.in.h (getpagesize): Likewise.
7339         * lib/wchar.in.h (mbstate_t): Likewise.
7340         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
7341         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
7342         towlower, towupper): Likewise.
7343         Reported by Sam Steingold <sds@gnu.org>.
7344
7345 2011-02-05  Eric Blake  <eblake@redhat.com>
7346
7347         unsetenv: work around Haiku issues
7348         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
7349         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
7350
7351 2010-12-30  Bruce Korb  <bkorb@gnu.org>
7352
7353         libposix: avoid calling error() within libposix
7354         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
7355         is defined.
7356
7357 2011-02-05  Eric Blake  <eblake@redhat.com>
7358
7359         strerror_r-posix: port to cygwin
7360         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
7361         implementation.
7362         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
7363         * tests/test-strerror_r.c (main): Fix test.
7364         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
7365         issue.
7366
7367 2011-02-05  Bruno Haible  <bruno@clisp.org>
7368
7369         New module 'wmemchr'.
7370         * modules/wmemchr: New file.
7371         * lib/wchar.in.h (wmemchr): New declaration.
7372         * lib/wmemchr.c: New file.
7373         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
7374         * m4/wmemchr.m4: New file.
7375         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
7376         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
7377         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
7378         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
7379         * doc/posix-functions/wmemchr.texi: Mention the new module.
7380
7381 2011-02-04  Eric Blake  <eblake@redhat.com>
7382
7383         fdopendir: detect FreeBSD bug
7384         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
7385         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
7386
7387 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7388
7389         stdbool: do not define HAVE_STDBOOL_H
7390         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
7391         AC_HEADER_STDBOOL.  All uses changed.  Do not define
7392         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
7393         imported from the latest Autoconf git.  It was motivated by Emacs,
7394         which uses gnulib but does not need HAVE_STDBOOL_H.
7395
7396 2011-02-04  Bruno Haible  <bruno@clisp.org>
7397
7398         wcsnrtombs: Prepare for new module wwcsnrtombs.
7399         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
7400         * lib/wcsnrtombs.c: Include it.
7401         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
7402
7403         wcsrtombs: Prepare for new module wwcsrtombs.
7404         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
7405         * lib/wcsrtombs.c: Include it.
7406         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
7407
7408         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
7409         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
7410         * lib/mbsnrtowcs.c: Include it.
7411         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
7412
7413         mbsrtowcs: Prepare for new module mbsrtowwcs.
7414         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
7415         * lib/mbsrtowcs.c: Include it.
7416         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
7417
7418 2011-02-04  Bruno Haible  <bruno@clisp.org>
7419
7420         vasnprintf: Reduce use of malloc for small format strings.
7421         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
7422         (arguments): Add room for the first 7 arguments.
7423         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
7424         (char_directives, u8_directives, u16_directives, u32_directives): Add
7425         room for the first 7 directives.
7426         * lib/printf-parse.c: Include <string.h>.
7427         (PRINTF_PARSE): Change memory handling code so that it uses the first
7428         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
7429         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
7430         Reported by Pádraig Brady <P@draigbrady.com>.
7431
7432 2011-01-31  Eric Blake  <eblake@redhat.com>
7433
7434         dup2: work around Haiku bug
7435         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
7436         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
7437         * doc/posix-functions/dup2.texi (dup2): Document the bug.
7438         * tests/test-dup2.c (main): Enhance test.
7439
7440 2011-01-31  Simon Josefsson  <simon@josefsson.org>
7441
7442         doc: off_t is not available in eglibc 2.11.2 stdio.h.
7443         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
7444         declared by eglibc 2.11.2.
7445         * lib/stdio.in.h: Likewise.
7446
7447 2011-01-31  Eric Blake  <eblake@redhat.com>
7448
7449         ignore-value: add missing test dependency
7450         * tests/test-ignore-value.c: Revert previous change; stdio.h
7451         provides off_t.
7452         * modules/ignore-value-tests (Depends-on): Add missing dependency.
7453
7454 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
7455
7456         mktime: clarify long_int width checking
7457         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
7458         the top level, to make it clearer that the assumption about
7459         long_int width is being checked.  See
7460         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
7461
7462 2011-01-30  Simon Josefsson  <simon@josefsson.org>
7463
7464         ignore-value: Fix self-test.
7465         * tests/test-ignore-value.c: Include sys/types.h for off_t.
7466
7467 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
7468
7469         TYPE_MAXIMUM: avoid theoretically undefined behavior
7470         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
7471         negative number, which the C Standard says has undefined behavior.
7472         In practice this is not a problem, but might as well do it by the book.
7473         Reported by Rich Felker and Eric Blake; see
7474         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
7475         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
7476         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7477         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7478         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
7479         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7480         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
7481
7482         mktime: #undef mktime before #defining it
7483         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
7484
7485         mktime: systematically normalize tm_isdst comparisons
7486         * lib/mktime.c (isdst_differ): New function.
7487         (__mktime_internal): Use it systematically for all isdst comparisons.
7488         This completes the fix for libc BZ #6723, and removes the need for
7489         normalizing tm_isdst.  See
7490         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
7491         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
7492
7493         mktime: fix some integer overflow issues and sidestep the rest
7494
7495         This was prompted by a bug report by Benjamin Lindner for MinGW
7496         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
7497         His bug is due to signed integer overflow (0 - INT_MIN), and I
7498         I scanned through mktime.c looking for other integer overflow
7499         problems, fixing all the bugs I found.
7500
7501         Although the C Standard says the resulting code is still not safe
7502         in the presence of integer overflow, in practice it should be good
7503         enough for all real-world two's-complement implementations, except
7504         for debugging environments that deliberately trap on integer
7505         overflow (e.g., gcc -ftrapv).
7506
7507         * lib/mktime.c (WRAPV): New macro.
7508         (SHR): Also check that long_int and time_t shift right in the
7509         usual way, before using the fast-but-unportable method.
7510         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
7511         used.  The code already assumed two's complement, so there's
7512         no need to test for alternatives.  All uses removed.
7513         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
7514         the C standard.  Problem reported by Rich Felker in
7515         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
7516         (twos_complement_arithmetic): Also check long_int and time_t.
7517         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
7518         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
7519         (__mktime_internal): Avoid integer overflow with unary subtraction
7520         in two instances where -1 - X is an adequate replacement for -X,
7521         since the calculations are approximate.
7522
7523 2011-01-29  Eric Blake  <eblake@redhat.com>
7524
7525         mktime: avoid infinite loop
7526         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
7527         type; behavior is still undefined but portable to all known targets.
7528         Reported by Rich Felker.
7529
7530 2011-01-29  Simon Josefsson  <simon@josefsson.org>
7531
7532         rename, unlink, same-inode: Relicense.
7533         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
7534         * modules/unlink (License): Likewise.
7535         * modules/same-inode (License): Likewise.
7536
7537 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7538
7539         mktime: avoid problems on NetBSD 5 / i386
7540         * lib/mktime.c (long_int): New type.  This works around a problem
7541         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
7542         but time_t is 64 bits, and where I expect the existing code is
7543         wrong in some cases.
7544         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
7545         (ydhms_diff): Bring back the compile-time check for wide-enough
7546         year and yday.
7547
7548         mktime: fix misspelling in comment
7549         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
7550         This merges all recent glibc changes of importance.
7551
7552 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7553
7554         move-if-change: cope with concurrent mv of identical file.
7555         * build-aux/move-if-change (CMPPROG): Accept environment
7556         variable as an override for `cmp'.
7557         (usage): Document CMPPROG.
7558         Adjust comparison to drop stdout.  Cope with failure of mv if
7559         the target file exists and is identical to the source, for
7560         parallel builds.
7561         Report from H.J. Lu against binutils in PR binutils/12283.
7562
7563 2011-01-28  Bruce Korb  <bkorb@gnu.org>
7564
7565         * users.txt: Mention sharutils.
7566
7567 2011-01-28  Simon Josefsson  <simon@josefsson.org>
7568
7569         * users.txt: Mention OATH Toolkit.
7570
7571 2011-01-27  Bruno Haible  <bruno@clisp.org>
7572
7573         Prepare for supporting FreeBSD 10.
7574         * build-aux/config.libpath: Remove handling of freebsd1*.
7575
7576 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
7577
7578         Prepare for supporting FreeBSD 10.
7579         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
7580         match FreeBSD 10.0.
7581
7582 2011-01-27  Bruno Haible  <bruno@clisp.org>
7583
7584         vma-iter, get-rusage-as: Add OpenBSD support.
7585         * modules/vma-iter (configure.ac): Test for mquery.
7586         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
7587         * lib/vma-iter.c: Include <sys/mman.h>.
7588         (vma_iterate): Add an implementation based on mquery().
7589         * lib/resource-ext.h (get_rusage_as): Update comments.
7590         * lib/get-rusage-as.c: Likewise.
7591         * lib/get-rusage-data.c: Likewise.
7592
7593 2011-01-26  Karl Berry  <karl@gnu.org>
7594
7595         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
7596         variables to make it easier to override the makeinfo program used.
7597
7598 2011-01-26  Eric Blake  <eblake@redhat.com>
7599
7600         fcntl: work around Haiku F_DUPFD bugs
7601         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
7602         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
7603         cloexec bit on duplication.
7604         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
7605
7606 2011-01-26  Bruno Haible  <bruno@clisp.org>
7607
7608         Enable memory leak tests on AIX.
7609         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
7610         * tests/test-fprintf-posix3.c (main): Likewise.
7611
7612 2011-01-26  Bruno Haible  <bruno@clisp.org>
7613
7614         Tests for module 'get-rusage-data'.
7615         * modules/get-rusage-data-tests: New file.
7616         * tests/test-get-rusage-data.c: New file.
7617
7618         New module 'get-rusage-data'.
7619         * lib/resource-ext.h (get_rusage_data): New declaration.
7620         * lib/get-rusage-data.c: New file.
7621         * modules/get-rusage-data: New file.
7622
7623 2011-01-25  Bruno Haible  <bruno@clisp.org>
7624
7625         get-rusage-as: Allow for easier testing.
7626         * lib/resource-ext.h (get_rusage_as): Add comment.
7627         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
7628         (main): New function for interactive testing.
7629
7630 2011-01-25  Bruno Haible  <bruno@clisp.org>
7631
7632         vma-iter: Treat Haiku like BeOS.
7633         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
7634         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
7635
7636 2011-01-25  Eric Blake  <eblake@redhat.com>
7637
7638         c-stack: fix regression on cygwin when libsigsegv is present
7639         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
7640
7641 2011-01-24  Bruno Haible  <bruno@clisp.org>
7642
7643         vma-iter: Avoid empty intervals.
7644         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
7645         on an empty interval.
7646
7647 2011-01-24  Jim Meyering  <meyering@redhat.com>
7648
7649         u64: remove unnecessary #include
7650         * lib/u64.h: Don't include <stddef.h>.  It was not used.
7651
7652 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7653
7654         Allow the user to avoid the HAVE_RAW_DECL_* macros.
7655         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
7656
7657 2011-01-23  Bruno Haible  <bruno@clisp.org>
7658
7659         New module 'vma-iter'.
7660         * lib/vma-iter.h: New file.
7661         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
7662         * modules/vma-iter: New file.
7663         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
7664         for get_rusage_as_via_iterator.
7665         (vma_iterate_callback): New function.
7666         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
7667         * modules/get-rusage-as (Depends-on): Add vma-iter.
7668
7669 2011-01-23  Bruno Haible  <bruno@clisp.org>
7670
7671         uninorm: Tweak includes.
7672         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
7673         Reported by Jim Meyering.
7674
7675 2011-01-23  Bruno Haible  <bruno@clisp.org>
7676
7677         get-rusage-as: Improve on NetBSD.
7678         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
7679         /proc, like on FreeBSD.
7680
7681 2011-01-23  Jim Meyering  <meyering@redhat.com>
7682
7683         xreadlink.h: remove unnecessary #include
7684         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
7685
7686         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
7687         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
7688
7689 2011-01-23  Bruno Haible  <bruno@clisp.org>
7690
7691         get-rusage-as: Fix bug.
7692         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
7693         original limit when aborting the first loop.
7694
7695 2011-01-23  Bruno Haible  <bruno@clisp.org>
7696
7697         wctype: Ensure valid C syntax.
7698         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
7699         unconditionally, instead of gl_NEXT_HEADERS conditionally.
7700
7701 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
7702
7703         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
7704         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
7705         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
7706         as they are needed only for configure's test case.
7707         This removes two unnecessary symbols from config.h.
7708
7709         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
7710         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
7711         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
7712         AC_CHECK_HEADERS_ONCE on a header that we also invoke
7713         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
7714         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
7715         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
7716         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
7717         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7718         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7719         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
7720         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7721         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7722         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7723         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
7724         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7725         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7726         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
7727
7728 2011-01-21  Eric Blake  <eblake@redhat.com>
7729
7730         maintainer-makefile: work with older git for submodule check
7731         * top/maint.mk (public-submodule-commit): Rewrite to avoid
7732         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
7733         Reported by Matthias Bolte.
7734
7735         bootstrap: minor portability fixes
7736         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
7737         (usage): Omit leading capital and trailing . on help phrases, per
7738         GNU Coding Standards.
7739         (check_versions, top level): Prefix messages with script name.
7740
7741 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
7742
7743         bootstrap: support --no-git option
7744         * build-aux/bootstrap: Add --no-git option, to be used when
7745         --gnulib-srcdir points to the exact desired checkout.
7746
7747 2011-01-21  Eric Blake  <eblake@redhat.com>
7748
7749         strerror_r-posix: work with glibc 2.13
7750         * lib/strerror_r.c (strerror_r): Fix return type.
7751
7752 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7753             Bruno Haible  <bruno@clisp.org>
7754
7755         uN_strstr: New unit tests.
7756         * modules/unistr/u8-strstr-tests: New file.
7757         * modules/unistr/u16-strstr-tests: New file.
7758         * modules/unistr/u32-strstr-tests: New file.
7759         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
7760         * tests/unistr/test-u8-strstr.c: New file.
7761         * tests/unistr/test-u16-strstr.c: New file.
7762         * tests/unistr/test-u32-strstr.c: New file.
7763
7764 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7765             Bruno Haible  <bruno@clisp.org>
7766
7767         Make uN_strstr functions O(n) worst-case.
7768         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
7769         16-bit and 32-bit unit cases, use the unibyte algorithm from
7770         lib/mbsstr.c.
7771         * lib/unistr/u8-strstr.c: Include <string.h>.
7772         (UNIT_IS_UINT8_T): New macro.
7773         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
7774         (U_STRLEN, U_STRNLEN): New macros.
7775         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
7776         (U_STRLEN, U_STRNLEN): New macros.
7777         * modules/unistr/u8-strstr (Depends-on): Add strstr.
7778         (configure.ac): Update required libunistring version.
7779         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
7780         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
7781         malloca.
7782         (configure.ac): Update required libunistring version.
7783         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
7784         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
7785         malloca.
7786         (configure.ac): Update required libunistring version.
7787
7788 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7789             Bruno Haible  <bruno@clisp.org>
7790
7791         Prepare for faster uN_strstr functions.
7792         * lib/str-kmp.h: Support definable UNITs.
7793         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
7794         needle_len argument.
7795         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
7796         * lib/mbscasestr.c (mbscasestr): Likewise.
7797
7798 2011-01-21  Pádraig Brady <P@draigBrady.com>
7799
7800         malloca-tests: make faster by unsetting MALLOC_PERTURB_
7801         * tests/test-malloca.c (main): Unset the environment variable
7802         to greatly speed up the test.
7803         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
7804         * modules/malloca-tests: Depend on unsetenv.
7805
7806 2011-01-21  Pádraig Brady <P@draigBrady.com>
7807
7808         ignore-value: remove stdint dependency
7809         * lib/ignore-value.h: Remove <stdint.h>
7810         * modules/ignore-value: Remove stdint dependency.
7811
7812 2011-01-21  Jim Meyering  <meyering@redhat.com>
7813
7814         maint.mk: adjust variable name to be consistent with other gl_ vars
7815         * top/maint.mk (gl_public_submodule_commit): Rename the variable
7816         to be lower case.
7817
7818 2011-01-20  Jim Meyering  <meyering@redhat.com>
7819
7820         maint.mk: make "check" depend on public-submodule-commit by default
7821         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
7822
7823 2011-01-20  Bruno Haible  <bruno@clisp.org>
7824
7825         mbfile, mbiter: Complete change from 2008-12-21.
7826         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
7827         * m4/mbiter.m4 (gl_MBITER): Likewise.
7828
7829 2011-01-20  Jim Meyering  <meyering@redhat.com>
7830
7831         init.sh: insert space between each function name and "()"
7832         * tests/init.sh: Make it a little easier to see that a function's
7833         name is "warn_", and not "warn" when looking at the first part of
7834         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
7835
7836 2011-01-20  Jim Meyering  <meyering@redhat.com>
7837
7838         mountlist: clean up code formatting
7839         * lib/mountlist.c (read_file_system_list): Split a long line,
7840         correct bracing style, use NULL in place of "(struct statfs *)0",
7841         don't parenthesize return value, add spaces around "=" and after
7842         ";-in-for-stmt".
7843
7844 2011-01-14  Markus Duft <mduft@gentoo.org>
7845
7846         mountlist: add support for Interix
7847         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
7848         Apply statvfs to all entries of /dev/fs.
7849         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
7850         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
7851
7852 2011-01-20  Jim Meyering  <meyering@redhat.com>
7853
7854         maint.mk: improve the public-submodule-commit rule
7855         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
7856         to suppress printing of its commands... unless V=1.
7857         Add git submodule's --quiet option to suppress printing of e.g.,
7858         "Entering gnulib" output.
7859         "cd" into $(srcdir) before running git submodule.
7860
7861 2011-01-20  Bruno Haible  <bruno@clisp.org>
7862
7863         include_next: Fix bug introduced on 2011-01-18.
7864         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
7865         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
7866         ac_cv_header_... variable if the second argument is not 'check'.
7867         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
7868         gl_NEXT_HEADERS_INTERNAL.
7869
7870 2011-01-20  Bruno Haible  <bruno@clisp.org>
7871
7872         Allow the user to avoid the GNULIB_TEST_* macros.
7873         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
7874         Suggested by Paul Eggert.
7875
7876 2011-01-14  Jim Meyering  <meyering@redhat.com>
7877
7878         bootstrap: avoid failure when there is no .gitmodules file
7879         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
7880         has been assigned to, even when its value is the empty string.
7881         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
7882         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
7883         Reported by John W. Eaton <jwe@gnu.org>.
7884
7885 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
7886
7887         assume <ctype.h>, ..., <time.h> exist
7888         For years gnulib has been assuming the existence of the headers
7889         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
7890         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
7891         them, since they don't appear to be needed.
7892         * README (Portability guidelines): Document this.
7893         * lib/flock.c: Assume <fcntl.h> exists.
7894         * lib/regex_internal.h: Assume <locale.h> exists.
7895         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
7896         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
7897         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
7898         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
7899         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
7900         * m4/regex.m4 (gl_REGEX): Likewise.
7901         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
7902         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
7903         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
7904         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
7905         * tests/test-argp.c: Likewise.
7906         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
7907
7908         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
7909         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
7910         AA_APPLE_UNIVERSAL_BUILD.  See
7911         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
7912         * NEWS: Document this.
7913
7914 2011-01-19  Eric Blake  <eblake@redhat.com>
7915
7916         c-stack: assume stack overflow if SA_SIGINFO unsupported
7917         * lib/c-stack.c (SIGACTION_WORKS): Rename...
7918         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
7919         sigaction will work.
7920         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
7921         behavior match Linux.
7922         * tests/test-c-stack.c (main): Prefer NULL for pointers.
7923
7924         stdbool-tests: accomodate Haiku
7925         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
7926
7927         binary-io: fix O_TEXT on Haiku
7928         * modules/binary-io (Depends-on): Add fcntl-h.
7929         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
7930         than blindly undefining O_TEXT.
7931         Reported by Scott McCreary.
7932
7933 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
7934
7935         include_next: do not check for standard headers like stddef.h
7936
7937         I found this problem when modifying Emacs to use gnulib.
7938         I noticed that it added HAVE_STDDEF_H to config.h, even though
7939         gnulib always assumes <stddef.h> exists as per README and this
7940         symbol is unnecessary.
7941         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
7942         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
7943         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
7944         faster for headers like stddef.h that are known to exist.
7945         (gl_CHECK_NEXT_HEADERS): Use it.
7946         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
7947         rather than gl_CHECK_NEXT_HEADERS.
7948         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
7949         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
7950
7951 2011-01-18  Eric Blake  <eblake@redhat.com>
7952
7953         ansi-c++-opt: skip C++ dependency style if C++ is unused
7954         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
7955         tests when we know C++ compilation is not desired.
7956         Reported by Scott McCreary.
7957
7958 2011-01-18  Bruno Haible  <bruno@clisp.org>
7959
7960         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
7961         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
7962         (main): Perform test also when getrlimit and setrlimit don't exist or
7963         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
7964         limiting the address space size using setrlimit, compare the address
7965         space size before and after the the test.
7966         * tests/test-dprintf-posix2.c: Likewise.
7967         * tests/test-fprintf-posix3.sh: Update skip messages.
7968         * tests/test-dprintf-posix2.sh: Likewise.
7969         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
7970         * modules/dprintf-posix-tests (Depends-on): Likewise.
7971         Reported by Bruce Korb <bkorb@gnu.org> and
7972         Gary V. Vaughan <gary@gnu.org>.
7973
7974 2011-01-18  Bruno Haible  <bruno@clisp.org>
7975
7976         get-rusage-as: Improvement for Cygwin.
7977         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
7978         areas that are merely reserved.
7979
7980 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
7981
7982         strftime: remove dependencies on multibyte modules
7983
7984         strftime depended on mbrlen, mbsinit, and wchar, but these modules
7985         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
7986         only if __osf__ is defined, and I suspect OSF doesn't need these
7987         other modules.  If my guess is wrong, we'll need to come up with a
7988         variant of strftime that doesn't need the multibyte modules.
7989
7990         I discovered this problem when attempting modify Emacs to use the
7991         strftime module.  With the previous gnulib, this caused Emacs to
7992         need 31 new files, ranging from lib/config.charset to
7993         m4/wint_t.m4.  This was overkill and I expect would be offputting
7994         to the Emacs maintainers.  After this change, only 6 new files are
7995         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
7996         stdbool.m4, and tm_gmtoff.m4.
7997
7998         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
7999         Suggested by Bruno Haible in
8000         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
8001         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
8002         and do not check for wchar.h.
8003         * modules/strftime (Files): Remove m4/mbstate_t.m4.
8004         (Depends-on): Remove mbrlen, mbsinit, wchar.
8005
8006 2011-01-18  Bruno Haible  <bruno@clisp.org>
8007
8008         Tests for module 'get-rusage-as'.
8009         * modules/get-rusage-as-tests: New file.
8010         * tests/test-get-rusage-as.c: New file.
8011
8012         New module 'get-rusage-as'.
8013         * modules/get-rusage-as: New file.
8014         * lib/resource-ext.h: New file.
8015         * lib/get-rusage-as.c: New file.
8016
8017 2011-01-17  Eric Blake  <eblake@redhat.com>
8018
8019         sigaction: relax license from LGPLv3+ to LGPLv2+
8020         * modules/sigaction (License): Relax to LGPLv2+.
8021
8022 2011-01-14  Bruno Haible  <bruno@clisp.org>
8023
8024         filemode: Make function declarations usable in C++ mode.
8025         * lib/filemode.h: Enclose function declarations in extern "C" block.
8026         Reported by John W. Eaton <jwe@gnu.org>.
8027
8028 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
8029
8030         save-cwd: no longer include "xgetcwd.h"
8031         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
8032         This avoids a compilation failure in projects that use save-cwd
8033         without also using the xgetcwd module.
8034
8035 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8036
8037         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
8038         This is so that a program like Emacs, which needs only dtoastr,
8039         does not have to bother with distributing and compiling ftoastr
8040         and ldtoastr.
8041         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
8042         * modules/dtoastr, modules/ldtoastr: New files.
8043         * modules/ftoastr: Now works just for 'float'.
8044         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
8045         (Makefile.am): Remove ftoastr.h (not needed and no effect),
8046         dtoastr.c, ldtoastr.c.
8047
8048 2011-01-11  Jim Meyering  <meyering@redhat.com>
8049
8050         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
8051         There is no need to work around the lack of the fchdir function,
8052         since gnulib can now provide a replacement when required.
8053         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
8054         * modules/save-cwd (Depends-on): Add fchdir.
8055
8056 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8057
8058         openat, save-cwd: avoid xmalloc
8059
8060         This removes a direct (but undocumented) dependency of openat on
8061         xalloc, along with an indirect dependency via save-cwd.  It also
8062         removes a dependency of save-cwd on xgetcwd, and thereby
8063         indirectly on xalloc.  This change causes the openat substitute
8064         to fall back on save_cwd when memory is tight, and for save_cwd to
8065         fail instead of dying when memory is tight, but that's good enough.
8066         Problem and initial idea for fix reported by Bastien Roucaries in
8067         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
8068
8069         * lib/openat-proc.c: Include stdlib.h (for malloc), not
8070         xalloc.h (for xmalloc).
8071         (openat_proc_name): Use malloc, not xmalloc.
8072         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
8073         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
8074
8075         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
8076         This avoids heap allocation for file names whose lengths are in
8077         the range 512..1023, with the upper bound increasing to at most
8078         4031 depending on the platform's PATH_MAX.  (We do not want
8079         pathmax.h here as it might supply a non-constant PATH_MAX.)
8080         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
8081         Perhaps they should be moved to malloca.h?
8082         (OPENAT_BUFFER_SIZE): Use them.
8083
8084 2011-01-10  Bruno Haible  <bruno@clisp.org>
8085
8086         doc: Update users.txt.
8087         * users.txt: Add recutils.
8088
8089 2011-01-09  Karl Berry  <karl@gnu.org>
8090
8091         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
8092
8093         * doc/configmake.texi: New file.
8094         * doc/gnulib.texi: Include it.
8095         * modules/configmake: Move documentation from here.
8096
8097 2011-01-09  Bruno Haible  <bruno@clisp.org>
8098
8099         Update to Unicode 6.0.0.
8100         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
8101         (get_lbp): Update for Unicode 6.0.0.
8102         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
8103         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
8104         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
8105         U+11001, U+11038..U+11046. Remove U+06DE.
8106         (uc_width): Fix bounds of planes.
8107         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8108         lib/uniwidth/width.c.
8109         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
8110         trailing whitespace removed.
8111         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
8112         without comments, but with the original copyright notice.
8113         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
8114         * lib/unicase/ignorable.h: Likewise.
8115         * lib/unicase/tocasefold.h: Likewise.
8116         * lib/unicase/tolower.h: Likewise.
8117         * lib/unicase/totitle.h: Likewise.
8118         * lib/unicase/toupper.h: Likewise.
8119         * lib/unictype/bidi_of.h: Likewise.
8120         * lib/unictype/blocks.h: Likewise.
8121         * lib/unictype/categ_C.h: Likewise.
8122         * lib/unictype/categ_Cn.h: Likewise.
8123         * lib/unictype/categ_L.h: Likewise.
8124         * lib/unictype/categ_Ll.h: Likewise.
8125         * lib/unictype/categ_Lm.h: Likewise.
8126         * lib/unictype/categ_Lo.h: Likewise.
8127         * lib/unictype/categ_Lu.h: Likewise.
8128         * lib/unictype/categ_M.h: Likewise.
8129         * lib/unictype/categ_Mc.h: Likewise.
8130         * lib/unictype/categ_Me.h: Likewise.
8131         * lib/unictype/categ_Mn.h: Likewise.
8132         * lib/unictype/categ_N.h: Likewise.
8133         * lib/unictype/categ_Nd.h: Likewise.
8134         * lib/unictype/categ_No.h: Likewise.
8135         * lib/unictype/categ_P.h: Likewise.
8136         * lib/unictype/categ_Po.h: Likewise.
8137         * lib/unictype/categ_S.h: Likewise.
8138         * lib/unictype/categ_Sc.h: Likewise.
8139         * lib/unictype/categ_Sk.h: Likewise.
8140         * lib/unictype/categ_Sm.h: Likewise.
8141         * lib/unictype/categ_So.h: Likewise.
8142         * lib/unictype/categ_of.h: Likewise.
8143         * lib/unictype/combining.h: Likewise.
8144         * lib/unictype/ctype_alnum.h: Likewise.
8145         * lib/unictype/ctype_alpha.h: Likewise.
8146         * lib/unictype/ctype_graph.h: Likewise.
8147         * lib/unictype/ctype_lower.h: Likewise.
8148         * lib/unictype/ctype_print.h: Likewise.
8149         * lib/unictype/ctype_punct.h: Likewise.
8150         * lib/unictype/ctype_upper.h: Likewise.
8151         * lib/unictype/decdigit.h: Likewise.
8152         * lib/unictype/digit.h: Likewise.
8153         * lib/unictype/numeric.h: Likewise.
8154         * lib/unictype/pr_alphabetic.h: Likewise.
8155         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8156         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8157         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8158         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8159         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8160         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8161         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8162         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8163         * lib/unictype/pr_case_ignorable.h: Likewise.
8164         * lib/unictype/pr_cased.h: Likewise.
8165         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
8166         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
8167         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
8168         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
8169         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
8170         * lib/unictype/pr_combining.h: Likewise.
8171         * lib/unictype/pr_composite.h: Likewise.
8172         * lib/unictype/pr_currency_symbol.h: Likewise.
8173         * lib/unictype/pr_decimal_digit.h: Likewise.
8174         * lib/unictype/pr_deprecated.h: Likewise.
8175         * lib/unictype/pr_format_control.h: Likewise.
8176         * lib/unictype/pr_grapheme_base.h: Likewise.
8177         * lib/unictype/pr_grapheme_extend.h: Likewise.
8178         * lib/unictype/pr_grapheme_link.h: Likewise.
8179         * lib/unictype/pr_id_continue.h: Likewise.
8180         * lib/unictype/pr_id_start.h: Likewise.
8181         * lib/unictype/pr_ideographic.h: Likewise.
8182         * lib/unictype/pr_lowercase.h: Likewise.
8183         * lib/unictype/pr_math.h: Likewise.
8184         * lib/unictype/pr_numeric.h: Likewise.
8185         * lib/unictype/pr_other_alphabetic.h: Likewise.
8186         * lib/unictype/pr_other_id_continue.h: Likewise.
8187         * lib/unictype/pr_other_math.h: Likewise.
8188         * lib/unictype/pr_punctuation.h: Likewise.
8189         * lib/unictype/pr_sentence_terminal.h: Likewise.
8190         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8191         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8192         * lib/unictype/pr_unified_ideograph.h: Likewise.
8193         * lib/unictype/pr_uppercase.h: Likewise.
8194         * lib/unictype/pr_xid_continue.h: Likewise.
8195         * lib/unictype/pr_xid_start.h: Likewise.
8196         * lib/unictype/scripts.h: Likewise.
8197         * lib/unictype/scripts_byname.gperf: Likewise.
8198         * lib/unictype/sy_java_ident.h: Likewise.
8199         * lib/unigbrk/gbrkprop.h: Likewise.
8200         * lib/unilbrk/lbrkprop1.h: Likewise.
8201         * lib/unilbrk/lbrkprop2.h: Likewise.
8202         * lib/uninorm/decomposition-table2.h: Likewise.
8203         * lib/uniwbrk/wbrkprop.h: Likewise.
8204         * tests/unicase/test-cased.c: Likewise.
8205         * tests/unicase/test-ignorable.c: Likewise.
8206         * tests/unicase/test-uc_tolower.c: Likewise.
8207         * tests/unicase/test-uc_totitle.c: Likewise.
8208         * tests/unicase/test-uc_toupper.c: Likewise.
8209         * tests/unictype/test-categ_C.c: Likewise.
8210         * tests/unictype/test-categ_Cn.c: Likewise.
8211         * tests/unictype/test-categ_L.c: Likewise.
8212         * tests/unictype/test-categ_Ll.c: Likewise.
8213         * tests/unictype/test-categ_Lm.c: Likewise.
8214         * tests/unictype/test-categ_Lo.c: Likewise.
8215         * tests/unictype/test-categ_Lu.c: Likewise.
8216         * tests/unictype/test-categ_M.c: Likewise.
8217         * tests/unictype/test-categ_Mc.c: Likewise.
8218         * tests/unictype/test-categ_Me.c: Likewise.
8219         * tests/unictype/test-categ_Mn.c: Likewise.
8220         * tests/unictype/test-categ_N.c: Likewise.
8221         * tests/unictype/test-categ_Nd.c: Likewise.
8222         * tests/unictype/test-categ_No.c: Likewise.
8223         * tests/unictype/test-categ_P.c: Likewise.
8224         * tests/unictype/test-categ_Po.c: Likewise.
8225         * tests/unictype/test-categ_S.c: Likewise.
8226         * tests/unictype/test-categ_Sc.c: Likewise.
8227         * tests/unictype/test-categ_Sk.c: Likewise.
8228         * tests/unictype/test-categ_Sm.c: Likewise.
8229         * tests/unictype/test-categ_So.c: Likewise.
8230         * tests/unictype/test-ctype_alnum.c: Likewise.
8231         * tests/unictype/test-ctype_alpha.c: Likewise.
8232         * tests/unictype/test-ctype_graph.c: Likewise.
8233         * tests/unictype/test-ctype_lower.c: Likewise.
8234         * tests/unictype/test-ctype_print.c: Likewise.
8235         * tests/unictype/test-ctype_punct.c: Likewise.
8236         * tests/unictype/test-ctype_upper.c: Likewise.
8237         * tests/unictype/test-decdigit.h: Likewise.
8238         * tests/unictype/test-digit.h: Likewise.
8239         * tests/unictype/test-numeric.h: Likewise.
8240         * tests/unictype/test-pr_alphabetic.c: Likewise.
8241         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8242         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8243         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8244         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8245         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8246         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8247         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8248         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8249         * tests/unictype/test-pr_case_ignorable.c: Likewise.
8250         * tests/unictype/test-pr_cased.c: Likewise.
8251         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
8252         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
8253         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
8254         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
8255         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
8256         * tests/unictype/test-pr_combining.c: Likewise.
8257         * tests/unictype/test-pr_composite.c: Likewise.
8258         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8259         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8260         * tests/unictype/test-pr_deprecated.c: Likewise.
8261         * tests/unictype/test-pr_format_control.c: Likewise.
8262         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8263         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8264         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8265         * tests/unictype/test-pr_id_continue.c: Likewise.
8266         * tests/unictype/test-pr_id_start.c: Likewise.
8267         * tests/unictype/test-pr_ideographic.c: Likewise.
8268         * tests/unictype/test-pr_lowercase.c: Likewise.
8269         * tests/unictype/test-pr_math.c: Likewise.
8270         * tests/unictype/test-pr_numeric.c: Likewise.
8271         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8272         * tests/unictype/test-pr_other_id_continue.c: Likewise.
8273         * tests/unictype/test-pr_other_math.c: Likewise.
8274         * tests/unictype/test-pr_punctuation.c: Likewise.
8275         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8276         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8277         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8278         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8279         * tests/unictype/test-pr_uppercase.c: Likewise.
8280         * tests/unictype/test-pr_xid_continue.c: Likewise.
8281         * tests/unictype/test-pr_xid_start.c: Likewise.
8282         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
8283         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
8284         changes.
8285         * lib/unictype/categ_Cc.h: Likewise.
8286         * lib/unictype/categ_Cf.h: Likewise.
8287         * lib/unictype/categ_Co.h: Likewise.
8288         * lib/unictype/categ_Cs.h: Likewise.
8289         * lib/unictype/categ_Lt.h: Likewise.
8290         * lib/unictype/categ_Nl.h: Likewise.
8291         * lib/unictype/categ_Pc.h: Likewise.
8292         * lib/unictype/categ_Pd.h: Likewise.
8293         * lib/unictype/categ_Pe.h: Likewise.
8294         * lib/unictype/categ_Pf.h: Likewise.
8295         * lib/unictype/categ_Pi.h: Likewise.
8296         * lib/unictype/categ_Ps.h: Likewise.
8297         * lib/unictype/categ_Z.h: Likewise.
8298         * lib/unictype/categ_Zl.h: Likewise.
8299         * lib/unictype/categ_Zp.h: Likewise.
8300         * lib/unictype/categ_Zs.h: Likewise.
8301         * lib/unictype/ctype_blank.h: Likewise.
8302         * lib/unictype/ctype_cntrl.h: Likewise.
8303         * lib/unictype/ctype_digit.h: Likewise.
8304         * lib/unictype/ctype_space.h: Likewise.
8305         * lib/unictype/ctype_xdigit.h: Likewise.
8306         * lib/unictype/mirror.h: Likewise.
8307         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8308         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8309         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8310         * lib/unictype/pr_bidi_control.h: Likewise.
8311         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8312         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8313         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8314         * lib/unictype/pr_bidi_pdf.h: Likewise.
8315         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8316         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8317         * lib/unictype/pr_dash.h: Likewise.
8318         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8319         * lib/unictype/pr_diacritic.h: Likewise.
8320         * lib/unictype/pr_extender.h: Likewise.
8321         * lib/unictype/pr_hex_digit.h: Likewise.
8322         * lib/unictype/pr_hyphen.h: Likewise.
8323         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8324         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8325         * lib/unictype/pr_ignorable_control.h: Likewise.
8326         * lib/unictype/pr_iso_control.h: Likewise.
8327         * lib/unictype/pr_join_control.h: Likewise.
8328         * lib/unictype/pr_left_of_pair.h: Likewise.
8329         * lib/unictype/pr_line_separator.h: Likewise.
8330         * lib/unictype/pr_logical_order_exception.h: Likewise.
8331         * lib/unictype/pr_non_break.h: Likewise.
8332         * lib/unictype/pr_not_a_character.h: Likewise.
8333         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8334         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8335         * lib/unictype/pr_other_id_start.h: Likewise.
8336         * lib/unictype/pr_other_lowercase.h: Likewise.
8337         * lib/unictype/pr_other_uppercase.h: Likewise.
8338         * lib/unictype/pr_paired_punctuation.h: Likewise.
8339         * lib/unictype/pr_paragraph_separator.h: Likewise.
8340         * lib/unictype/pr_pattern_syntax.h: Likewise.
8341         * lib/unictype/pr_pattern_white_space.h: Likewise.
8342         * lib/unictype/pr_private_use.h: Likewise.
8343         * lib/unictype/pr_quotation_mark.h: Likewise.
8344         * lib/unictype/pr_radical.h: Likewise.
8345         * lib/unictype/pr_soft_dotted.h: Likewise.
8346         * lib/unictype/pr_space.h: Likewise.
8347         * lib/unictype/pr_titlecase.h: Likewise.
8348         * lib/unictype/pr_variation_selector.h: Likewise.
8349         * lib/unictype/pr_white_space.h: Likewise.
8350         * lib/unictype/pr_zero_width.h: Likewise.
8351         * lib/unictype/sy_c_ident.h: Likewise.
8352         * lib/unictype/sy_c_whitespace.h: Likewise.
8353         * lib/unictype/sy_java_whitespace.h: Likewise.
8354         * lib/uninorm/composition-table.gperf: Likewise.
8355         * lib/uninorm/decomposition-table1.h: Likewise.
8356         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
8357         LB8.
8358         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8359         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8360         * modules/unictype/*: Bump version number of expected libunistring
8361         version.
8362
8363 2011-01-09  Bruno Haible  <bruno@clisp.org>
8364
8365         Update to Unicode 5.2.0.
8366         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
8367         trailing whitespace removed.
8368
8369 2011-01-09  Bruno Haible  <bruno@clisp.org>
8370
8371         New Unicode character properties, from Unicode 5.2.0.
8372         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
8373         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
8374         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
8375         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
8376         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
8377         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
8378         uc_is_property_cased, uc_is_property_case_ignorable,
8379         uc_is_property_changes_when_lowercased,
8380         uc_is_property_changes_when_uppercased,
8381         uc_is_property_changes_when_titlecased,
8382         uc_is_property_changes_when_casefolded,
8383         uc_is_property_changes_when_casemapped): New declarations.
8384         * lib/unictype/pr_byname.gperf: Add the new properties.
8385         * modules/unictype/property-byname (Depends-on): Depend on the new
8386         properties modules.
8387         * modules/unictype/property-all (Depends-on): Likewise.
8388         * MODULES.html.sh (Unicode string functions): Add
8389         unictype/property-case-ignorable, unictype/property-cased,
8390         unictype/property-changes-when-casefolded,
8391         unictype/property-changes-when-casemapped,
8392         unictype/property-changes-when-lowercased,
8393         unictype/property-changes-when-titlecased,
8394         unictype/property-changes-when-uppercased.
8395
8396         New module 'unictype/property-changes-when-casemapped'.
8397         * modules/unictype/property-changes-when-casemapped: New file.
8398         * lib/unictype/pr_changes_when_casemapped.c: New file.
8399         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
8400         generated by gen-uni-tables.
8401         * modules/unictype/property-changes-when-casemapped-tests: New file.
8402         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
8403         automatically generated by gen-uni-tables.
8404
8405         New module 'unictype/property-changes-when-casefolded'.
8406         * modules/unictype/property-changes-when-casefolded: New file.
8407         * lib/unictype/pr_changes_when_casefolded.c: New file.
8408         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
8409         generated by gen-uni-tables.
8410         * modules/unictype/property-changes-when-casefolded-tests: New file.
8411         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
8412         automatically generated by gen-uni-tables.
8413
8414         New module 'unictype/property-changes-when-titlecased'.
8415         * modules/unictype/property-changes-when-titlecased: New file.
8416         * lib/unictype/pr_changes_when_titlecased.c: New file.
8417         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
8418         generated by gen-uni-tables.
8419         * modules/unictype/property-changes-when-titlecased-tests: New file.
8420         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
8421         automatically generated by gen-uni-tables.
8422
8423         New module 'unictype/property-changes-when-uppercased'.
8424         * modules/unictype/property-changes-when-uppercased: New file.
8425         * lib/unictype/pr_changes_when_uppercased.c: New file.
8426         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
8427         generated by gen-uni-tables.
8428         * modules/unictype/property-changes-when-uppercased-tests: New file.
8429         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
8430         automatically generated by gen-uni-tables.
8431
8432         New module 'unictype/property-changes-when-lowercased'.
8433         * modules/unictype/property-changes-when-lowercased: New file.
8434         * lib/unictype/pr_changes_when_lowercased.c: New file.
8435         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
8436         generated by gen-uni-tables.
8437         * modules/unictype/property-changes-when-lowercased-tests: New file.
8438         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
8439         automatically generated by gen-uni-tables.
8440
8441         New module 'unictype/property-case-ignorable'.
8442         * modules/unictype/property-case-ignorable: New file.
8443         * lib/unictype/pr_case_ignorable.c: New file.
8444         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
8445         by gen-uni-tables.
8446         * modules/unictype/property-case-ignorable-tests: New file.
8447         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
8448         generated by gen-uni-tables.
8449
8450         New module 'unictype/property-cased'.
8451         * modules/unictype/property-cased: New file.
8452         * lib/unictype/pr_cased.c: New file.
8453         * lib/unictype/pr_cased.h: New file, automatically generated by
8454         gen-uni-tables.
8455         * modules/unictype/property-cased-tests: New file.
8456         * tests/unictype/test-pr_cased.c: New file, automatically generated by
8457         gen-uni-tables.
8458
8459 2011-01-09  Bruno Haible  <bruno@clisp.org>
8460
8461         Update to Unicode 5.2.0.
8462         * lib/gen-uni-tables.c (output_predicate, output_category,
8463         output_combclass, output_bidi_category, output_decimal_digit_test,
8464         output_decimal_digit, output_digit_test, output_digit,
8465         output_numeric_test, output_numeric, output_mirror, output_scripts,
8466         output_scripts_byname, output_blocks, output_ident_category): Fix
8467         comment header.
8468         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
8469         get_wbp.
8470         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
8471         items.
8472         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
8473         Changes_When_Lowercased, Changes_When_Uppercased,
8474         Changes_When_Titlecased, Changes_When_Casefolded,
8475         Changes_When_Casemapped.
8476         (is_property_alphabetic, is_property_default_ignorable_code_point):
8477         Update for Unicode 5.2.0.
8478         (is_property_cased, is_property_case_ignorable,
8479         is_property_changes_when_lowercased,
8480         is_property_changes_when_uppercased,
8481         is_property_changes_when_titlecased,
8482         is_property_changes_when_casefolded,
8483         is_property_changes_when_casemapped): New functions.
8484         (output_properties): Output also the properties cased, case_ignorable,
8485         changes_when_lowercased, changes_when_uppercased,
8486         changes_when_titlecased, changes_when_casefolded,
8487         changes_when_casemapped.
8488         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
8489         Unicode TR#11 revision 17 -> 19.
8490         (LBP_CP): New enumeration value.
8491         (LBP_*): Adjust values accordingly.
8492         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8493         TR#14 revision 22 -> 24.
8494         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
8495         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
8496         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8497         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
8498         is_WBP_MIDLETTER.
8499         (output_composition_tables): Allow for 24 bits instead of 16 bits in
8500         the code1 and code2 of each composition rule.
8501         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
8502         * lib/unicase/ignorable.h: Likewise.
8503         * lib/unicase/tocasefold.h: Likewise.
8504         * lib/unicase/tolower.h: Likewise.
8505         * lib/unicase/totitle.h: Likewise.
8506         * lib/unicase/toupper.h: Likewise.
8507         * lib/unictype/bidi_of.h: Likewise.
8508         * lib/unictype/blocks.h: Likewise.
8509         * lib/unictype/categ_C.h: Likewise.
8510         * lib/unictype/categ_Cf.h: Likewise.
8511         * lib/unictype/categ_Cn.h: Likewise.
8512         * lib/unictype/categ_L.h: Likewise.
8513         * lib/unictype/categ_Ll.h: Likewise.
8514         * lib/unictype/categ_Lm.h: Likewise.
8515         * lib/unictype/categ_Lo.h: Likewise.
8516         * lib/unictype/categ_Lu.h: Likewise.
8517         * lib/unictype/categ_M.h: Likewise.
8518         * lib/unictype/categ_Mc.h: Likewise.
8519         * lib/unictype/categ_Mn.h: Likewise.
8520         * lib/unictype/categ_N.h: Likewise.
8521         * lib/unictype/categ_Nd.h: Likewise.
8522         * lib/unictype/categ_Nl.h: Likewise.
8523         * lib/unictype/categ_No.h: Likewise.
8524         * lib/unictype/categ_P.h: Likewise.
8525         * lib/unictype/categ_Pd.h: Likewise.
8526         * lib/unictype/categ_Po.h: Likewise.
8527         * lib/unictype/categ_S.h: Likewise.
8528         * lib/unictype/categ_Sc.h: Likewise.
8529         * lib/unictype/categ_So.h: Likewise.
8530         * lib/unictype/categ_of.h: Likewise.
8531         * lib/unictype/combining.h: Likewise.
8532         * lib/unictype/ctype_alnum.h: Likewise.
8533         * lib/unictype/ctype_alpha.h: Likewise.
8534         * lib/unictype/ctype_graph.h: Likewise.
8535         * lib/unictype/ctype_lower.h: Likewise.
8536         * lib/unictype/ctype_print.h: Likewise.
8537         * lib/unictype/ctype_punct.h: Likewise.
8538         * lib/unictype/ctype_upper.h: Likewise.
8539         * lib/unictype/decdigit.h: Likewise.
8540         * lib/unictype/digit.h: Likewise.
8541         * lib/unictype/numeric.h: Likewise.
8542         * lib/unictype/pr_alphabetic.h: Likewise.
8543         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8544         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8545         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8546         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8547         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8548         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8549         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8550         * lib/unictype/pr_combining.h: Likewise.
8551         * lib/unictype/pr_composite.h: Likewise.
8552         * lib/unictype/pr_currency_symbol.h: Likewise.
8553         * lib/unictype/pr_dash.h: Likewise.
8554         * lib/unictype/pr_decimal_digit.h: Likewise.
8555         * lib/unictype/pr_deprecated.h: Likewise.
8556         * lib/unictype/pr_diacritic.h: Likewise.
8557         * lib/unictype/pr_extender.h: Likewise.
8558         * lib/unictype/pr_grapheme_base.h: Likewise.
8559         * lib/unictype/pr_grapheme_extend.h: Likewise.
8560         * lib/unictype/pr_grapheme_link.h: Likewise.
8561         * lib/unictype/pr_id_continue.h: Likewise.
8562         * lib/unictype/pr_id_start.h: Likewise.
8563         * lib/unictype/pr_ideographic.h: Likewise.
8564         * lib/unictype/pr_ignorable_control.h: Likewise.
8565         * lib/unictype/pr_logical_order_exception.h: Likewise.
8566         * lib/unictype/pr_lowercase.h: Likewise.
8567         * lib/unictype/pr_numeric.h: Likewise.
8568         * lib/unictype/pr_other_alphabetic.h: Likewise.
8569         * lib/unictype/pr_punctuation.h: Likewise.
8570         * lib/unictype/pr_sentence_terminal.h: Likewise.
8571         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8572         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8573         * lib/unictype/pr_unified_ideograph.h: Likewise.
8574         * lib/unictype/pr_uppercase.h: Likewise.
8575         * lib/unictype/pr_xid_continue.h: Likewise.
8576         * lib/unictype/pr_xid_start.h: Likewise.
8577         * lib/unictype/pr_zero_width.h: Likewise.
8578         * lib/unictype/scripts.h: Likewise.
8579         * lib/unictype/scripts_byname.gperf: Likewise.
8580         * lib/unictype/sy_java_ident.h: Likewise.
8581         * lib/unigbrk/gbrkprop.h: Likewise.
8582         * lib/unilbrk/lbrkprop1.h: Likewise.
8583         * lib/unilbrk/lbrkprop2.h: Likewise.
8584         * lib/unilbrk/lbrktables.h: Likewise.
8585         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
8586         LBP_CP. Implement rule LB30.
8587         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
8588         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
8589         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
8590         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
8591         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
8592         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
8593         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
8594         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
8595         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
8596         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
8597         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
8598         bits instead of 16 bits in the code1 and code2 of each composition
8599         rule.
8600         (uc_composition): Update for Unicode 5.2.0.
8601         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
8602         * lib/uninorm/decomposition-table2.h: Likewise.
8603         * lib/uniwbrk/wbrkprop.h: Likewise.
8604         * tests/unicase/test-cased.c: Likewise.
8605         * tests/unicase/test-ignorable.c: Likewise.
8606         * tests/unicase/test-uc_tolower.c: Likewise.
8607         * tests/unicase/test-uc_totitle.c: Likewise.
8608         * tests/unicase/test-uc_toupper.c: Likewise.
8609         * tests/unictype/test-categ_C.c: Likewise.
8610         * tests/unictype/test-categ_Cf.c: Likewise.
8611         * tests/unictype/test-categ_Cn.c: Likewise.
8612         * tests/unictype/test-categ_L.c: Likewise.
8613         * tests/unictype/test-categ_Ll.c: Likewise.
8614         * tests/unictype/test-categ_Lm.c: Likewise.
8615         * tests/unictype/test-categ_Lo.c: Likewise.
8616         * tests/unictype/test-categ_Lu.c: Likewise.
8617         * tests/unictype/test-categ_M.c: Likewise.
8618         * tests/unictype/test-categ_Mc.c: Likewise.
8619         * tests/unictype/test-categ_Mn.c: Likewise.
8620         * tests/unictype/test-categ_N.c: Likewise.
8621         * tests/unictype/test-categ_Nd.c: Likewise.
8622         * tests/unictype/test-categ_Nl.c: Likewise.
8623         * tests/unictype/test-categ_No.c: Likewise.
8624         * tests/unictype/test-categ_P.c: Likewise.
8625         * tests/unictype/test-categ_Pd.c: Likewise.
8626         * tests/unictype/test-categ_Po.c: Likewise.
8627         * tests/unictype/test-categ_S.c: Likewise.
8628         * tests/unictype/test-categ_Sc.c: Likewise.
8629         * tests/unictype/test-categ_So.c: Likewise.
8630         * tests/unictype/test-ctype_alnum.c: Likewise.
8631         * tests/unictype/test-ctype_alpha.c: Likewise.
8632         * tests/unictype/test-ctype_graph.c: Likewise.
8633         * tests/unictype/test-ctype_lower.c: Likewise.
8634         * tests/unictype/test-ctype_print.c: Likewise.
8635         * tests/unictype/test-ctype_punct.c: Likewise.
8636         * tests/unictype/test-ctype_upper.c: Likewise.
8637         * tests/unictype/test-decdigit.h: Likewise.
8638         * tests/unictype/test-digit.h: Likewise.
8639         * tests/unictype/test-numeric.h: Likewise.
8640         * tests/unictype/test-pr_alphabetic.c: Likewise.
8641         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8642         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8643         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
8644         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8645         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8646         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8647         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8648         * tests/unictype/test-pr_combining.c: Likewise.
8649         * tests/unictype/test-pr_composite.c: Likewise.
8650         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8651         * tests/unictype/test-pr_dash.c: Likewise.
8652         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8653         * tests/unictype/test-pr_deprecated.c: Likewise.
8654         * tests/unictype/test-pr_diacritic.c: Likewise.
8655         * tests/unictype/test-pr_extender.c: Likewise.
8656         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8657         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8658         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8659         * tests/unictype/test-pr_id_continue.c: Likewise.
8660         * tests/unictype/test-pr_id_start.c: Likewise.
8661         * tests/unictype/test-pr_ideographic.c: Likewise.
8662         * tests/unictype/test-pr_ignorable_control.c: Likewise.
8663         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
8664         * tests/unictype/test-pr_lowercase.c: Likewise.
8665         * tests/unictype/test-pr_numeric.c: Likewise.
8666         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8667         * tests/unictype/test-pr_punctuation.c: Likewise.
8668         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8669         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8670         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8671         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8672         * tests/unictype/test-pr_uppercase.c: Likewise.
8673         * tests/unictype/test-pr_xid_continue.c: Likewise.
8674         * tests/unictype/test-pr_xid_start.c: Likewise.
8675         * tests/unictype/test-pr_zero_width.c: Likewise.
8676         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
8677         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
8678         changed behaviour: line breaking is now disallowed between a letter
8679         or '=' and '('.
8680         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8681         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8682         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
8683         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
8684         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8685         lib/uniwidth/width.c.
8686         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
8687         without comments, but with the original copyright notice.
8688         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
8689         changes.
8690         * lib/unictype/categ_Cc.h: Likewise.
8691         * lib/unictype/categ_Co.h: Likewise.
8692         * lib/unictype/categ_Cs.h: Likewise.
8693         * lib/unictype/categ_Lt.h: Likewise.
8694         * lib/unictype/categ_Me.h: Likewise.
8695         * lib/unictype/categ_Pc.h: Likewise.
8696         * lib/unictype/categ_Pe.h: Likewise.
8697         * lib/unictype/categ_Pf.h: Likewise.
8698         * lib/unictype/categ_Pi.h: Likewise.
8699         * lib/unictype/categ_Ps.h: Likewise.
8700         * lib/unictype/categ_Sk.h: Likewise.
8701         * lib/unictype/categ_Sm.h: Likewise.
8702         * lib/unictype/categ_Z.h: Likewise.
8703         * lib/unictype/categ_Zl.h: Likewise.
8704         * lib/unictype/categ_Zp.h: Likewise.
8705         * lib/unictype/categ_Zs.h: Likewise.
8706         * lib/unictype/ctype_blank.h: Likewise.
8707         * lib/unictype/ctype_cntrl.h: Likewise.
8708         * lib/unictype/ctype_digit.h: Likewise.
8709         * lib/unictype/ctype_space.h: Likewise.
8710         * lib/unictype/ctype_xdigit.h: Likewise.
8711         * lib/unictype/mirror.h: Likewise.
8712         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8713         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8714         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8715         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8716         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8717         * lib/unictype/pr_bidi_control.h: Likewise.
8718         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8719         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8720         * lib/unictype/pr_bidi_pdf.h: Likewise.
8721         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8722         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8723         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8724         * lib/unictype/pr_format_control.h: Likewise.
8725         * lib/unictype/pr_hex_digit.h: Likewise.
8726         * lib/unictype/pr_hyphen.h: Likewise.
8727         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8728         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8729         * lib/unictype/pr_iso_control.h: Likewise.
8730         * lib/unictype/pr_join_control.h: Likewise.
8731         * lib/unictype/pr_left_of_pair.h: Likewise.
8732         * lib/unictype/pr_line_separator.h: Likewise.
8733         * lib/unictype/pr_math.h: Likewise.
8734         * lib/unictype/pr_non_break.h: Likewise.
8735         * lib/unictype/pr_not_a_character.h: Likewise.
8736         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8737         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8738         * lib/unictype/pr_other_id_continue.h: Likewise.
8739         * lib/unictype/pr_other_id_start.h: Likewise.
8740         * lib/unictype/pr_other_lowercase.h: Likewise.
8741         * lib/unictype/pr_other_math.h: Likewise.
8742         * lib/unictype/pr_other_uppercase.h: Likewise.
8743         * lib/unictype/pr_paired_punctuation.h: Likewise.
8744         * lib/unictype/pr_paragraph_separator.h: Likewise.
8745         * lib/unictype/pr_pattern_syntax.h: Likewise.
8746         * lib/unictype/pr_pattern_white_space.h: Likewise.
8747         * lib/unictype/pr_private_use.h: Likewise.
8748         * lib/unictype/pr_quotation_mark.h: Likewise.
8749         * lib/unictype/pr_radical.h: Likewise.
8750         * lib/unictype/pr_soft_dotted.h: Likewise.
8751         * lib/unictype/pr_space.h: Likewise.
8752         * lib/unictype/pr_titlecase.h: Likewise.
8753         * lib/unictype/pr_variation_selector.h: Likewise.
8754         * lib/unictype/pr_white_space.h: Likewise.
8755         * lib/unictype/sy_c_ident.h: Likewise.
8756         * lib/unictype/sy_c_whitespace.h: Likewise.
8757         * lib/unictype/sy_java_whitespace.h: Likewise.
8758         * modules/uni*/*: Bump version number of expected libunistring version.
8759         Reported by Simon Josefsson.
8760
8761 2011-01-09  Karl Heuer  <kwzh@gnu.org>
8762
8763         useless-if-before-free: fix typo in --help and make the internal,
8764         automatic version date update process work once again.
8765         --help output contained a NUL character instead of the
8766         backslash-zero that was intended.  Also, the "must lie within
8767         the first 8 lines" line is on line 9, and hence not getting
8768         automatically updated.
8769         * build-aux/useless-if-before-free: Fix the former by adding a
8770         backslash, and the latter by condensing the three lines of what-it-does
8771         to a single line, leaving one line of slack for the future.
8772
8773 2011-01-09  Bruno Haible  <bruno@clisp.org>
8774
8775         uniwidth/width: Fix width of U+1D173..U+1D17A.
8776         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
8777         symbolic_width, output_width_property_test): New functions.
8778         (main): Invoke output_nonspacing_property, output_width_property_test.
8779         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
8780         U+1D173..U+1D17A.
8781         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
8782         1.
8783         * modules/uniwidth/*: Bump version number of expected libunistring
8784         version.
8785         * modules/unilbrk/*: Likewise.
8786
8787 2011-01-08  Bruno Haible  <bruno@clisp.org>
8788
8789         uninorm tests: Preserve copyright of Unicode data file.
8790         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
8791         Mention modifications.
8792
8793 2011-01-08  Bruno Haible  <bruno@clisp.org>
8794
8795         gen-uni-tables: Prepare for Unicode 5.2.0.
8796         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
8797         (debug_output_lbp, output_lbp): Update.
8798
8799 2011-01-08  Bruno Haible  <bruno@clisp.org>
8800
8801         unilbrk: Clarify gen-uni-tables.c code.
8802         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
8803         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
8804         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
8805
8806 2011-01-07  Bruno Haible  <bruno@clisp.org>
8807
8808         strtod: Restore errno when successfully parsing Infinity or NaN.
8809         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
8810         restore the original errno.
8811
8812 2011-01-07  Bruno Haible  <bruno@clisp.org>
8813
8814         remove test: Avoid failure on HP-UX 11.
8815         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
8816
8817 2011-01-07  Bruno Haible  <bruno@clisp.org>
8818
8819         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
8820         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
8821         error code.
8822
8823 2011-01-07  Pádraig Brady <P@draigBrady.com>
8824
8825         ignore-value: fixup comments, and add Eric Blake
8826         as an author since he rewrote the macros.
8827         * lib/ignore-value.h (ignore_value):  State that
8828         we now support aggregates.  Also specify exactly
8829         when the GCC warn_unused_result feature was added.
8830
8831 2011-01-06  Eric Blake  <eblake@redhat.com>
8832
8833         ignore-value: support aggregate types
8834         * lib/ignore-value.h (ignore_value): Provide separate gcc
8835         definition.
8836         * modules/ignore-value-tests: New test module.
8837         * tests/test-ignore-value.c: New test.
8838
8839         maint.mk: improve sc_prohibit_strcmp regex
8840         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
8841         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
8842         definition of STRNEQ.
8843
8844         signal: work around Haiku issue with SIGBUS
8845         * lib/siglist.h: Add comment.
8846         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
8847         strsignal's favoring of SIGSEGV.
8848         * tests/test-signal.c (main): Avoid test failure.
8849         * doc/posix-headers/signal.texi (signal.h): Document the issue.
8850         Reported by Scott McCreary.
8851
8852         maint.mk: add pre-release check to ensure submodule commits are public
8853         * top/maint.mk (public-submodule-commit): New rule.
8854         (submodule-checks): New variable.
8855         (alpha beta stable): Depend on the variable.
8856
8857 2011-01-05  Pádraig Brady <P@draigBrady.com>
8858         and Jim Meyering  <meyering@redhat.com>
8859
8860         ignore-value: make ignore_value more generic; deprecate ignore_ptr
8861         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
8862         (ATTRIBUTE_DEPRECATED): Define.
8863         (_ignore_case): New function.
8864         (ignore_value): New macro, to replace the old function.
8865         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
8866         * modules/ignore-value (Depends-on): Add stdint.
8867
8868 2011-01-04  Eric Blake  <eblake@redhat.com>
8869
8870         doc: regenerate INSTALL
8871         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
8872         @firstparagraphindent support, now that autoconf dropped it.
8873         (INSTALL_PRELUDE): Reinstate old macro.
8874         * doc/install.texi: Resync from autoconf.
8875         * doc/INSTALL: Reflect recent autoconf update.
8876         * doc/INSTALL.ISO: Likewise.
8877         * doc/INSTALL.UTF-8: Likewise.
8878         Reported by Karl Berry.
8879
8880 2011-01-04  Bruce Korb  <address@hidden>
8881
8882         git-version-gen: avoid a sub-shell
8883         * build-aux/git-version-gen: Redirect stderr in `...` via
8884         "exec 2>...", rather than via an added sub-shell.
8885
8886 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
8887
8888         git-version-gen: use (...) rather than sh -c '...'
8889         * build-aux/git-version-gen: Rather than hard-coding a shell's name
8890         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
8891
8892 2011-01-03  Jim Meyering  <meyering@redhat.com>
8893
8894         git-version-gen: convert leading TABs to spaces
8895         * build-aux/git-version-gen: Expand leading TABs.
8896
8897         git-version-gen: handle failed "git rev-list"
8898         * build-aux/git-version-gen: Rather than leaking a "fatal" error
8899         from git and proceeding as if it had succeeded but printed no SHA1
8900         checksums, suppress the diagnostic and handle the failure.
8901         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
8902
8903         git-version-gen: include command name in one more diagnostic
8904         * build-aux/git-version-gen: When the required .tarball-version file
8905         was missing or unreadable, you might see the diagnostic from "cat",
8906         but no trace of the name of the invoking script.  Now, you still see
8907         the diagnostic from cat, but also get one from "git-version-gen: ".
8908         Inspired by a patch from Bruce Korb.
8909
8910         update-copyright: adjust test to match changed code
8911         * tests/test-update-copyright.sh: Change test's expected output
8912         to match new actual output.
8913
8914 2011-01-02  Bruno Haible  <bruno@clisp.org>
8915
8916         getlogin_r: Avoid test failure on HP-UX 11.
8917         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
8918         ERANGE when the second argument is zero.
8919         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
8920         portability problem.
8921
8922 2011-01-02  Bruce Korb  <bkorb@gnu.org>
8923
8924         * build-aux/update-copyright: doc Simon's changes
8925
8926 2011-01-02  Simon Josefsson  <simon@josefsson.org>
8927
8928         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
8929         environment variable.
8930
8931 2011-01-02  Bruno Haible  <bruno@clisp.org>
8932
8933         unigbrk: Avoid gcc warnings.
8934         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
8935         unused variable.
8936         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
8937         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
8938         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
8939         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
8940         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
8941         Change type of first argument to 'const char *'.
8942         (main): Remove unused variable.
8943         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
8944         type of first argument to 'const char *'.
8945         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
8946         Likewise.
8947         (main): Change type of variable 's'.
8948         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
8949         to 'int'.
8950
8951 2011-01-02  Bruno Haible  <bruno@clisp.org>
8952
8953         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
8954         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
8955         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
8956         bug.
8957         * lib/pwrite.c: Undo 2010-12-31 patch.
8958         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
8959
8960 2011-01-02  Bruno Haible  <bruno@clisp.org>
8961
8962         pread: Fix test whether it works.
8963         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
8964
8965 2011-01-02  Bruno Haible  <bruno@clisp.org>
8966
8967         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
8968         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
8969         ends in "6". Don't require a specific month name. Try also the locale
8970         names found on HP-UX 11 and Solaris 7.
8971
8972 2011-01-02  Bruno Haible  <bruno@clisp.org>
8973
8974         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
8975         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
8976         C linkage.
8977         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
8978
8979 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8980
8981         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
8982         for consistency, since the "cluster" term is not used elsewhere.
8983         * lib/unigbrk.in.h: Update name.
8984         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
8985         * lib/unigbrk/u16-grapheme-next.c: Update name.
8986         * lib/unigbrk/u16-grapheme-prev.c: Update name.
8987         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
8988         * lib/unigbrk/u32-grapheme-next.c: Update name.
8989         * lib/unigbrk/u32-grapheme-prev.c: Update name.
8990         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
8991         * lib/unigbrk/u8-grapheme-next.c: Update name.
8992         * lib/unigbrk/u8-grapheme-prev.c: Update name.
8993         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
8994         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
8995         Suggested by Bruno Haible.
8996
8997 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8998
8999         Remove module 'u8-grapheme-len' as too redundant with
9000         'u8-grapheme-next'.
9001         * modules/unigbrk/u8-grapheme-len: Delete file.
9002         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
9003         * lib/unigbrk.in.h: Remove prototype for deleted function.
9004         * lib/unigbrk/u8-grapheme-len.c: Delete file.
9005         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
9006
9007         Remove module 'u16-grapheme-len' as too redundant with
9008         'u16-grapheme-next'.
9009         * modules/unigbrk/u16-grapheme-len: Delete file.
9010         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
9011         * lib/unigbrk.in.h: Remove prototype for deleted function.
9012         * lib/unigbrk/u16-grapheme-len.c: Delete file.
9013         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
9014
9015         Remove module 'u32-grapheme-len' as too redundant with
9016         'u32-grapheme-next'.
9017         * modules/unigbrk/u32-grapheme-len: Delete file.
9018         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
9019         * lib/unigbrk.in.h: Remove prototype for deleted function.
9020         * lib/unigbrk/u32-grapheme-len.c: Delete file.
9021         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
9022
9023         Suggested by Bruno Haible.
9024
9025 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9026
9027         * unigbrk.in.h: Fix typo: "ben" => "been".
9028         Reported by Bruno Haible.
9029
9030 2011-01-01  Jim Meyering  <meyering@redhat.com>
9031
9032         maint: update almost all copyright ranges to include 2011
9033         Run the new "make update-copyright" rule.
9034
9035 2011-01-01  Jim Meyering  <meyering@redhat.com>
9036
9037         maint: update-copyright: exempt doc/INSTALL*
9038         * Makefile (update-copyright): Also exclude doc/INSTALL*,
9039         since they are generated.  Suggested by Bruno Haible.
9040
9041 2011-01-01  Jim Meyering  <meyering@redhat.com>
9042
9043         maint: refine the update-copyright rule
9044         * Makefile (update-copyright): Also exclude any file that includes
9045         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
9046         code that merely generates the comment.
9047
9048 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9049
9050         New module 'u8-grapheme-len'.
9051         * modules/unigbrk/u8-grapheme-len: New file.
9052         * modules/unigbrk/u8-grapheme-len-tests: New file.
9053         * lib/unigbrk.in.h: Add prototype for new function.
9054         * lib/unigbrk/u8-grapheme-len.c: New file.
9055         * tests/unigbrk/test-u8-grapheme-len.c: New file.
9056
9057         New module 'u16-grapheme-len'.
9058         * modules/unigbrk/u16-grapheme-len: New file.
9059         * modules/unigbrk/u16-grapheme-len-tests: New file.
9060         * lib/unigbrk.in.h: Add prototype for new function.
9061         * lib/unigbrk/u16-grapheme-len.c: New file.
9062         * tests/unigbrk/test-u16-grapheme-len.c: New file.
9063
9064         New module 'u32-grapheme-len'.
9065         * modules/unigbrk/u32-grapheme-len: New file.
9066         * modules/unigbrk/u32-grapheme-len-tests: New file.
9067         * lib/unigbrk.in.h: Add prototype for new function.
9068         * lib/unigbrk/u32-grapheme-len.c: New file.
9069         * tests/unigbrk/test-u32-grapheme-len.c: New file.
9070
9071         New module 'u8-grapheme-next'.
9072         * modules/unigbrk/u8-grapheme-next: New file.
9073         * modules/unigbrk/u8-grapheme-next-tests: New file.
9074         * lib/unigbrk.in.h: Add prototype for new function.
9075         * lib/unigbrk/u8-grapheme-next.c: New file.
9076         * tests/unigbrk/test-u8-grapheme-next.c: New file.
9077
9078         New module 'u16-grapheme-next'.
9079         * modules/unigbrk/u16-grapheme-next: New file.
9080         * modules/unigbrk/u16-grapheme-next-tests: New file.
9081         * lib/unigbrk.in.h: Add prototype for new function.
9082         * lib/unigbrk/u16-grapheme-next.c: New file.
9083         * tests/unigbrk/test-u16-grapheme-next.c: New file.
9084
9085         New module 'u32-grapheme-next'.
9086         * modules/unigbrk/u32-grapheme-next: New file.
9087         * modules/unigbrk/u32-grapheme-next-tests: New file.
9088         * lib/unigbrk.in.h: Add prototype for new function.
9089         * lib/unigbrk/u32-grapheme-next.c: New file.
9090         * tests/unigbrk/test-u32-grapheme-next.c: New file.
9091
9092         New module 'u8-grapheme-prev'.
9093         * modules/unigbrk/u8-grapheme-prev: New file.
9094         * modules/unigbrk/u8-grapheme-prev-tests: New file.
9095         * lib/unigbrk.in.h: Add prototype for new function.
9096         * lib/unigbrk/u8-grapheme-prev.c: New file.
9097         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
9098
9099         New module 'u16-grapheme-prev'.
9100         * modules/unigbrk/u16-grapheme-prev: New file.
9101         * modules/unigbrk/u16-grapheme-prev-tests: New file.
9102         * lib/unigbrk.in.h: Add prototype for new function.
9103         * lib/unigbrk/u16-grapheme-prev.c: New file.
9104         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
9105
9106         New module 'u32-grapheme-prev'.
9107         * modules/unigbrk/u32-grapheme-prev: New file.
9108         * modules/unigbrk/u32-grapheme-prev-tests: New file.
9109         * lib/unigbrk.in.h: Add prototype for new function.
9110         * lib/unigbrk/u32-grapheme-prev.c: New file.
9111         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
9112
9113         New module 'u8-grapheme-breaks'.
9114         * modules/unigbrk/u8-grapheme-breaks: New file.
9115         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
9116         * lib/unigbrk.in.h: Add prototype for new function.
9117         * lib/unigbrk/u8-grapheme-breaks.c: New file.
9118         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
9119
9120         New module 'u16-grapheme-breaks'.
9121         * modules/unigbrk/u16-grapheme-breaks: New file.
9122         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
9123         * lib/unigbrk.in.h: Add prototype for new function.
9124         * lib/unigbrk/u16-grapheme-breaks.c: New file.
9125         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
9126
9127         New module 'u32-grapheme-breaks'.
9128         * modules/unigbrk/u32-grapheme-breaks: New file.
9129         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
9130         * lib/unigbrk.in.h: Add prototype for new function.
9131         * lib/unigbrk/u32-grapheme-breaks.c: New file.
9132         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
9133
9134         New module 'ulc-grapheme-breaks'.
9135         * modules/unigbrk/ulc-grapheme-breaks: New file.
9136         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
9137         * m4/locale-ar.m4: New file.
9138         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
9139         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
9140         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
9141
9142 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9143
9144         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
9145         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
9146         modified how this file was generated before I initially submitted
9147         the module, but failed to regenerate it.  This meant that several
9148         of the level2 entries were wrong.
9149         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
9150         Remove the division-by-2 that is folded into the table now that
9151         gbrkprop.h has been regenerated properly.  Now -1 entries are
9152         handled correctly.
9153
9154         New module 'unigbrk/uc-gbrk-prop-tests'.
9155         * modules/unigbrk/uc-gbrk-prop-tests: New file.
9156         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
9157         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
9158         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
9159
9160 2011-01-01  Bruno Haible  <bruno@clisp.org>
9161
9162         Avoid use of hexadecimal escapes.
9163         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
9164         instead of hexadecimal escapes.
9165
9166 2011-01-01  Jim Meyering  <meyering@redhat.com>
9167
9168         maint: new rule to update copyright year ranges
9169         * Makefile (update-copyright): New rule.
9170
9171         maint: indent with TABs in Makefile
9172         * Makefile: Expand leading sequences of spaces to TABs
9173
9174         version-etc: update the copyright year it reports
9175         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
9176
9177 2010-12-31  Bruno Haible  <bruno@clisp.org>
9178
9179         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
9180         * lib/isfinite.c (zerof, zerod, zerol): New variables.
9181         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
9182         zero.
9183
9184 2010-12-31  Bruno Haible  <bruno@clisp.org>
9185
9186         pwrite: Work around HP-UX 11.11 bug.
9187         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
9188         works and set REPLACE_PWRITE if not.
9189         * lib/pwrite.c (pwrite): Add an implementation that uses the system
9190         function.
9191         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
9192
9193 2010-12-31  Bruno Haible  <bruno@clisp.org>
9194
9195         pread: Work around HP-UX 11 bugs.
9196         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
9197         and set REPLACE_PREAD if not.
9198         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
9199
9200 2010-12-31  Eric Blake  <eblake@redhat.com>
9201
9202         nl_langinfo: fix YESEXPR on Irix 6.5
9203         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
9204         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
9205         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
9206         it.
9207
9208 2010-12-31  Bruno Haible  <bruno@clisp.org>
9209
9210         iconv: Document HP-UX 11 bug.
9211         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
9212
9213 2010-12-31  Bruno Haible  <bruno@clisp.org>
9214
9215         ldexpl: Fix link error on HP-UX 11.
9216         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
9217         LDEXPL_LIBM, using $ISNANL_LIBM.
9218
9219 2010-12-31  Eric Blake  <eblake@redhat.com>
9220
9221         ftello: avoid compilation failure with SunStudio c89
9222         * lib/ftello.c (ftello): Use lseek, not llseek.
9223
9224         tests: avoid failing coreutils tests on cygwin
9225         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
9226         (create_exe_shims_): Return 0 when skipping.
9227
9228 2010-12-31  Bruno Haible  <bruno@clisp.org>
9229
9230         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
9231         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
9232
9233 2010-12-31  Bruno Haible  <bruno@clisp.org>
9234
9235         waitpid: Fix link error in C++ mode.
9236         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
9237
9238 2010-12-31  Bruno Haible  <bruno@clisp.org>
9239
9240         isnan: Use GCC built-ins when possible.
9241         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
9242         __builtin_isnan.
9243         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
9244         (isnan): Define using GCC built-ins for GCC >= 4.0.
9245
9246 2010-12-31  Bruno Haible  <bruno@clisp.org>
9247
9248         isnand: Fix mistake.
9249         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
9250         __builtin_isnand.
9251
9252 2010-12-31  Bruno Haible  <bruno@clisp.org>
9253
9254         open: Avoid C++ error on HP-UX 11.
9255         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
9256
9257 2010-12-31  Bruno Haible  <bruno@clisp.org>
9258
9259         time_r: Add missing declarations on HP-UX 11.
9260         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
9261         instead of HAVE_LOCALTIME_R.
9262         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
9263         HAVE_LOCALTIME_R always.
9264         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
9265         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
9266         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
9267         HAVE_LOCALTIME_R.
9268         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
9269         * doc/posix-functions/localtime_r.texi: Likewise.
9270
9271 2010-12-29  Eric Blake  <eblake@redhat.com>
9272
9273         mountlist: tweak previous commit
9274         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
9275         Reported by Paul Eggert.
9276
9277         mountlist: fix local drive detection on cygwin
9278         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
9279         that works for cygwin.
9280
9281 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9282
9283         ftoastr, snprintf: ftoastr + snprintf module
9284         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
9285         since the snprintf module now should be good enough here.
9286         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
9287         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
9288         and gl_MODULE_INDICATOR([snprintf]), but the former enables
9289         GNULIB_SNPRINTF only for the test directory, and the latter
9290         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
9291         seems to suffice by itself.
9292
9293 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
9294
9295         alloca: one step towards thread-safety
9296         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
9297         need for a static variable.  All callers changed.  This does not
9298         make the alloca replacement thread-safe, but it's one step.
9299
9300         tests: minor indenting change
9301         * tests/init.sh: Sync from coreutils housekeeping patch
9302         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
9303         to keep lines within 80 columns.
9304
9305 2010-12-28  Jim Meyering  <meyering@redhat.com>
9306
9307         regex: don't infloop on persistent failing calloc
9308         * lib/regexec.c (build_trtable): Return failure indication upon
9309         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
9310         In glibc, this was fixed for version 2.13:
9311         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
9312
9313 2010-12-28  Bruno Haible  <bruno@clisp.org>
9314             Paul Eggert <eggert@cs.ucla.edu>
9315
9316         linkat: Make implementation robust against system behaviour variations.
9317         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
9318         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
9319         way, and to -2 if it needs a generic runtime test.
9320         * lib/linkat.c (solaris_optimized_link_immediate,
9321         solaris_optimized_link_follow): New functions.
9322         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
9323         (check_same_link): Use it.
9324
9325 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
9326
9327         New module 'unigbrk/base'.
9328         * modules/unigbrk/base: New file.
9329         * lib/unigbrk.in.h: New file.
9330
9331         New module 'unigbrk/uc-gbrk-prop'.
9332         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
9333         * modules/unigbrk/uc-gbrk-prop: New file.
9334         * lib/unigbrk/gbrkprop.h: New file.
9335         * lib/unigbrk/uc-gbrk-prop.c: New file.
9336
9337         New module 'unigbrk/uc-is-grapheme-break'.
9338         * modules/unigbrk/uc-is-grapheme-break: New file.
9339         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
9340         * lib/unigbrk/uc-is-grapheme-break.c: New file.
9341         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
9342         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
9343         * tests/unigbrk/GraphemeBreakTest.txt: New file.
9344
9345         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
9346
9347 2010-12-27  Bruno Haible  <bruno@clisp.org>
9348
9349         linkat test: Avoid failure on Solaris 11 2010-11.
9350         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
9351
9352 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9353
9354         utimens: work around glibc rounding bug on more platforms
9355         * lib/utimens.c (fdutimens): Work around rounding bug even if
9356         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
9357         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
9358
9359 2010-12-27  Bruno Haible  <bruno@clisp.org>
9360
9361         select tests: Improve comments.
9362         * tests/test-select.c (do_select): Add comments.
9363
9364 2010-12-27  Bruno Haible  <bruno@clisp.org>
9365
9366         select tests: Safer way of handling timeout.
9367         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
9368         at every invocation.
9369
9370 2010-12-27  Bruno Haible  <bruno@clisp.org>
9371
9372         select tests: Use 'bool' where appropriate.
9373         * tests/test-select.c (connect_to_socket): Change argument type to
9374         'bool'.
9375
9376 2010-12-27  Bruno Haible  <bruno@clisp.org>
9377
9378         select tests: Use existing modules.
9379         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
9380         (configure.ac): Don't test for unistd.h.
9381         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
9382         declared in <unistd.h>.
9383
9384 2010-12-27  Bruno Haible  <bruno@clisp.org>
9385
9386         mbrtowc: Work around a Solaris 7 bug.
9387         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
9388         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
9389         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
9390         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
9391         MBRTOWC_NULL_ARG1_BUG.
9392         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
9393         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
9394         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
9395         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
9396
9397 2010-12-27  Jim Meyering  <meyering@redhat.com>
9398
9399         read-file.c: tweak syntax
9400         * lib/read-file.c (fread_file): Remove space after "*" in function
9401         definitions.
9402
9403 2010-12-27  Bruno Haible  <bruno@clisp.org>
9404
9405         times test: Avoid gcc warnings on OSF/1.
9406         * tests/test-times.c (main): Cast printf arguments from clock_t to
9407         'long int'.
9408
9409 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9410
9411         utimens: work around glibc rounding bug on older Linux kernels
9412         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
9413         on Linux with a glibc whose utimes might not work, then work
9414         around a longstanding glibc bug involving rounding rather than
9415         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
9416         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9417
9418 2010-12-26  Bruno Haible  <bruno@clisp.org>
9419
9420         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
9421         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
9422         _GL_CXXALIAS_SYS.
9423         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9424
9425 2010-12-26  Bruno Haible  <bruno@clisp.org>
9426
9427         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
9428         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
9429         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9430         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
9431         looking for the declaration.
9432         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
9433         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
9434         problem.
9435         * doc/posix-functions/inet_pton.texi: Likewise.
9436
9437 2010-12-26  Bruno Haible  <bruno@clisp.org>
9438
9439         arpa_inet: Use the common idioms with C++ support.
9440         * lib/arpa_inet.in.h: Include c++defs.h.
9441         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
9442         support.
9443         * modules/arpa_inet (Depends-on): Add c++defs.
9444         (Makefile.am): Substitute the contents of c++defs.h.
9445         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
9446         * modules/arpa_inet-c++-tests: New file.
9447         * tests/test-arpa_inet-c++.cc: New file.
9448
9449 2010-12-25  Bruno Haible  <bruno@clisp.org>
9450
9451         Fix more C++ link errors on Solaris 8.
9452         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
9453         $(LIB_EACCESS).
9454         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
9455         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
9456         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
9457         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
9458         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
9459
9460 2010-12-25  Bruno Haible  <bruno@clisp.org>
9461
9462         printf-posix: Fix link error when a non-GCC compiler is used.
9463         * lib/stdio.in.h (printf): When not using GCC, override printf
9464         correctly.
9465         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9466
9467 2010-12-25  Bruno Haible  <bruno@clisp.org>
9468
9469         strerror_r-posix: Update doc.
9470         * doc/posix-functions/strerror_r.texi: Update doc about the return
9471         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
9472
9473 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9474
9475         utimens: simplify the logic of the previous change
9476         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
9477         This should not affect whether the test succeeds or fails.
9478
9479         utimens: configure better on hosts with NFS clock skew
9480         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
9481         uses the clock of the local host.  It might use the clock of the
9482         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
9483         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9484
9485 2010-12-25  Bruno Haible  <bruno@clisp.org>
9486
9487         ptsname test: Avoid failure on Solaris.
9488         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
9489         open a pseudo-terminal; don't use BSD-style ptys.
9490         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
9491
9492 2010-12-25  Bruno Haible  <bruno@clisp.org>
9493
9494         ptsname: Avoid ERANGE failure on some systems.
9495         * lib/ptsname.c (buffer): Increase size.
9496
9497 2010-12-25  Bruno Haible  <bruno@clisp.org>
9498
9499         rename, renameat: Avoid test failures at NFS mounted locations.
9500         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
9501         so that subsequent mkdir calls succeed.
9502
9503 2010-12-25  Bruno Haible  <bruno@clisp.org>
9504
9505         iswblank: Fix C++ link error on Solaris 8.
9506         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
9507         _GL_FUNCDECL_SYS.
9508
9509 2010-12-25  Bruno Haible  <bruno@clisp.org>
9510
9511         unistd: Fix C++ link error on Solaris 8.
9512         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
9513
9514 2010-12-25  Bruno Haible  <bruno@clisp.org>
9515
9516         readlink doc: Mention an old glibc bug.
9517         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
9518
9519 2010-12-25  Bruno Haible  <bruno@clisp.org>
9520
9521         fcntl-h: Fix for use of C++ on glibc systems.
9522         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9523         also on glibc systems in C++ mode.
9524         Reported by Gary V. Vaughan <gary@gnu.org>.
9525
9526 2010-12-25  Bruno Haible  <bruno@clisp.org>
9527
9528         roundl-ieee: Make it work on OSF/1 5.1 with cc.
9529         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
9530
9531 2010-12-25  Bruno Haible  <bruno@clisp.org>
9532
9533         truncl-ieee: Make it work on OSF/1 5.1 with cc.
9534         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
9535         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
9536         test whether truncl works according to ISO C 99 with IEC 60559.
9537         * m4/truncl-ieee.m4: New file.
9538         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
9539         m4/signbit.m4.
9540         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
9541
9542 2010-12-25  Bruno Haible  <bruno@clisp.org>
9543
9544         ceill-ieee: Make it work on OSF/1 5.1 with cc.
9545         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
9546         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
9547         test whether ceill works according to ISO C 99 with IEC 60559.
9548         * m4/ceill-ieee.m4: New file.
9549         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
9550         m4/signbit.m4.
9551         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
9552
9553 2010-12-25  Bruno Haible  <bruno@clisp.org>
9554
9555         Ensure all prerequisites of <wchar.h> are included.
9556         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
9557         before <wchar.h>.
9558         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
9559         gl_MBRLEN_NUL_RETVAL): Likewise.
9560         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9561         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
9562         AC_FUNC_MBRTOWC): Likewise.
9563         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9564         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
9565         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9566         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
9567         Likewise.
9568         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9569         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
9570         (gl_WCHAR_H): Improve comments.
9571         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9572
9573 2010-12-25  Bruno Haible  <bruno@clisp.org>
9574
9575         strtok_r: Fix C syntax error in autoconf macro.
9576         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
9577         characters in test program.
9578
9579 2010-12-24  Bruno Haible  <bruno@clisp.org>
9580
9581         ceil, trunc, round: Fix gcc warnings.
9582         * lib/ceil.c (MIN): Undefine before redefining.
9583         * lib/trunc.c (MIN): Likewise.
9584         * lib/round.c (MIN): Likewise.
9585         Include <math.h> first.
9586
9587 2010-12-24  Bruno Haible  <bruno@clisp.org>
9588
9589         select tests: Avoid failures on OSF/1 5.1.
9590         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
9591         failure of closing the last socket; it may fail with ECONNRESET.
9592
9593 2010-12-24  Eric Blake  <eblake@redhat.com>
9594
9595         stdint: avoid HP-UX 10.20 preprocessor bug
9596         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
9597         than #if.
9598         * tests/test-floor2.c (main): Likewise.
9599         Reported by Peter O'Gorman.
9600
9601         pipe: make obsoletion transition easier
9602         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
9603         * modules/pipe (Files): Include revived file.
9604         (Include): Drop reference, to mirror getdate's behavior.
9605
9606 2010-12-24  Bruno Haible  <bruno@clisp.org>
9607
9608         sys_socket: Hide mismatch of declarations on NonStop Kernel.
9609         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
9610         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
9611         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9612
9613 2010-12-24  Bruno Haible  <bruno@clisp.org>
9614
9615         gethostname: Ensure declaration on NonStop Kernel.
9616         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
9617         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9618
9619 2010-12-24  Bruno Haible  <bruno@clisp.org>
9620
9621         sys_select: Ensure all necessary types on NonStop Kernel.
9622         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
9623         include <sys/time.h>.
9624         * doc/posix-headers/sys_select.texi: Mention that it's missing on
9625         NonStop Kernel.
9626         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9627
9628 2010-12-24  Bruno Haible  <bruno@clisp.org>
9629
9630         sys_select: Remove unneeded include.
9631         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
9632         have <sys/select.h>.
9633
9634 2010-12-24  Bruno Haible  <bruno@clisp.org>
9635
9636         gethostname: Provide a fallback for HOST_NAME_MAX.
9637         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
9638         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
9639         instead.
9640         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9641
9642 2010-12-24  Bruno Haible  <bruno@clisp.org>
9643
9644         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
9645         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
9646         (SA_RESTART): Likewise.
9647         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9648
9649 2010-12-24  Bruno Haible  <bruno@clisp.org>
9650
9651         signal: Define NSIG.
9652         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
9653         * tests/test-signal.c (nsig): New variable.
9654         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9655
9656 2010-12-24  Bruno Haible  <bruno@clisp.org>
9657
9658         rename, renameat: Avoid test failures on OSF/1 5.1.
9659         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
9660         alternative error codes.
9661         * tests/test-renameat.c (main): Likewise.
9662
9663 2010-12-24  Bruno Haible  <bruno@clisp.org>
9664
9665         *printf: Detect large precisions bug on Solaris 10/SPARC.
9666         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
9667         by Paul Eggert.
9668         * tests/test-snprintf-posix.h (test_function): Add this test code here
9669         too.
9670         * tests/test-sprintf-posix.h (test_function): Likewise.
9671         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9672         * tests/test-vasprintf-posix.c (test_function): Likewise.
9673         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
9674         around by gnulib.
9675         * doc/posix-functions/printf.texi: Likewise.
9676         * doc/posix-functions/snprintf.texi: Likewise.
9677         * doc/posix-functions/sprintf.texi: Likewise.
9678         * doc/posix-functions/vfprintf.texi: Likewise.
9679         * doc/posix-functions/vprintf.texi: Likewise.
9680         * doc/posix-functions/vsnprintf.texi: Likewise.
9681         * doc/posix-functions/vsprintf.texi: Likewise.
9682         * doc/posix-functions/dprintf.texi: Undo last commit.
9683         * doc/posix-functions/vdprintf.texi: Likewise.
9684
9685 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
9686
9687         tests: port test-fdutimensat.c to Solaris 8
9688         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
9689         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
9690         On Solaris 8, it fails with errno == ENOSYS, because there is no
9691         futimens (so it can't use the fd), and there is no lutimens (so it
9692         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
9693
9694         vsnprintf: make more consistent with snprintf; doc fixes
9695
9696         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
9697         the byte count return problem was promoted from the snprintf-posix
9698         to the snprintf module.
9699         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
9700         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
9701         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
9702         * tests/test-snprintf.c (main): Check the byte count returned.
9703         * tests/test-vsnprintf.c (main): Likewise.
9704
9705 2010-12-23  Eric Blake  <eblake@redhat.com>
9706
9707         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
9708         * modules/sigpipe (License): Relax license.
9709
9710 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9711
9712         doc: document Solaris printf bug with large float precisions
9713         * doc/posix-functions/dprintf.texi (dprintf):
9714         * doc/posix-functions/fprintf.texi (fprintf):
9715         * doc/posix-functions/printf.texi (printf):
9716         * doc/posix-functions/snprintf.texi (snprintf):
9717         * doc/posix-functions/sprintf.texi (sprintf):
9718         * doc/posix-functions/vdprintf.texi (vdprintf):
9719         * doc/posix-functions/vfprintf.texi (vfprintf):
9720         * doc/posix-functions/vprintf.texi (vprintf):
9721         * doc/posix-functions/vsnprintf.texi (vsnprintf):
9722         * doc/posix-functions/vsprintf.texi (vsprintf):
9723         Mention that these functions mishandle large floating point
9724         precisions on Solaris 10.  The same bug is also present in Solaris
9725         8, and I assume earlier.  This causes "cd gnulib-tests; make
9726         check" to fail on Solaris 8 (and I assume, later) when building
9727         the latest coreutils, in test-vasprintf-posix's call to
9728         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
9729         the wide flavors (e.g., wprintf) so this patch just updates the
9730         documentation for the narrow ones.
9731
9732         test-posixtm.c: add two tests
9733         * tests/test-posixtm.c: Add two tests, to highlight the
9734         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
9735         around this bug; this is merely to document it.
9736
9737 2010-12-22  Bruno Haible  <bruno@clisp.org>
9738
9739         getlogin_r: Work around portability problem on OSF/1.
9740         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
9741         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
9742         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
9743         test for a truncated result.
9744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
9745         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
9746         * modules/getlogin_r (Depends-on): Add memchr.
9747         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
9748
9749 2010-12-22  Bruno Haible  <bruno@clisp.org>
9750
9751         ptsname: Avoid test failure on OSF/1 5.1.
9752         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
9753         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
9754         (same_slave): New function.
9755         (main): Use it to compare ptsname's result with the expected file name.
9756
9757 2010-12-22  Bruno Haible  <bruno@clisp.org>
9758
9759         Port extended stdio modules to HP NonStop Kernel.
9760         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
9761         macros.
9762         * lib/fbufmode.c: Update comments.
9763         * lib/fflush.c: Likewise.
9764         * lib/fpurge.c: Likewise.
9765         * lib/freadable.c: Likewise.
9766         * lib/freadahead.c: Likewise.
9767         * lib/freading.c: Likewise.
9768         * lib/freadptr.c: Likewise.
9769         * lib/freadseek.c: Likewise.
9770         * lib/fseeko.c: Likewise.
9771         * lib/fseterr.c: Likewise.
9772         * lib/fwritable.c: Likewise.
9773         * lib/fwriting.c: Likewise.
9774         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9775
9776 2010-12-22  Bruno Haible  <bruno@clisp.org>
9777
9778         ttyname_r: Work around bug on OSF/1 5.1.
9779         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
9780         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
9781         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
9782         present.
9783         * lib/ttyname_r.c (ttyname_r): Update comments.
9784
9785 2010-12-22  Bruno Haible  <bruno@clisp.org>
9786
9787         round: Implement result sign according to IEEE 754.
9788         * lib/round.c (MIN, MINUS_ZERO): New macros.
9789         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
9790         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
9791         * tests/test-round-ieee.c (main): Likewise.
9792         * tests/test-roundl-ieee.c (main): Likewise.
9793
9794         trunc: Implement result sign according to IEEE 754.
9795         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
9796         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
9797         * tests/test-trunc2.c: Include minus-zero.h.
9798         (MINUS_ZERO): New macro.
9799         (trunc_reference): Keep in sync with lib/trunc.c.
9800         * tests/test-truncf2.c: Include minus-zero.h.
9801         (MINUS_ZERO): New macro.
9802         (truncf_reference): Keep in sync with lib/trunc.c.
9803         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
9804         * tests/test-trunc-ieee.c (main): Likewise.
9805         * tests/test-truncl-ieee.c (main): Likewise.
9806
9807         ceil: Implement result sign according to IEEE 754.
9808         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
9809         (FUNC): Return -0.0 for -1 < x < 0.
9810         * tests/test-ceil2.c: Include minus-zero.h.
9811         (MINUS_ZERO): New macro.
9812         (ceil_reference): Keep in sync with lib/ceil.c.
9813         * tests/test-ceilf2.c: Include minus-zero.h.
9814         (MINUS_ZERO): New macro.
9815         (ceilf_reference): Keep in sync with lib/ceil.c.
9816         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
9817         * tests/test-ceil-ieee.c (main): Likewise.
9818         * tests/test-ceill-ieee.c (main): Likewise.
9819
9820         floor: Implement result sign according to IEEE 754.
9821         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
9822         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
9823         * tests/test-floorf2.c (floorf_reference): Likewise.
9824         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
9825         * tests/test-floor-ieee.c (main): Likewise.
9826         * tests/test-floorl-ieee.c (main): Likewise.
9827
9828 2010-12-22  Bruno Haible  <bruno@clisp.org>
9829
9830         getaddrinfo: Update doc.
9831         * doc/posix-functions/gai_strerror.texi: Return type is also different
9832         on AIX and HP-UX.
9833
9834 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9835
9836         getaddrinfo, inet_ntop: Update doc for Solaris.
9837         * doc/posix-functions/gai_strerror.texi: Return type is also an
9838         issue on Solaris 9 and earlier.
9839         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
9840         on Solaris 10 and earlier.
9841
9842 2010-12-21  Bruno Haible  <bruno@clisp.org>
9843
9844         New module 'roundl-ieee'.
9845         * modules/roundl-ieee: New file.
9846         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
9847         test whether roundl works according to ISO C 99 with IEC 60559.
9848         * m4/roundl-ieee.m4: New file.
9849         * modules/roundl-ieee-tests: New file.
9850         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
9851         * tests/test-roundl.c (main): Remove signbit tests.
9852         * modules/roundl-tests (Depends-on): Remove signbit.
9853         * doc/posix-functions/roundl.texi: Mention the new module.
9854
9855 2010-12-21  Bruno Haible  <bruno@clisp.org>
9856
9857         New module 'truncl-ieee'.
9858         * modules/truncl-ieee: New file.
9859         * modules/truncl-ieee-tests: New file.
9860         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
9861         * tests/test-truncl.c (main): Remove signbit tests.
9862         * modules/truncl-tests (Depends-on): Remove signbit.
9863         * doc/posix-functions/truncl.texi: Mention the new module.
9864
9865 2010-12-21  Bruno Haible  <bruno@clisp.org>
9866
9867         New module 'ceill-ieee'.
9868         * modules/ceill-ieee: New file.
9869         * modules/ceill-ieee-tests: New file.
9870         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
9871         * tests/test-ceill.c (main): Remove signbit tests.
9872         * modules/ceill-tests (Depends-on): Remove signbit.
9873         * doc/posix-functions/ceill.texi: Mention the new module.
9874
9875 2010-12-21  Bruno Haible  <bruno@clisp.org>
9876
9877         New module 'floorl-ieee'.
9878         * modules/floorl-ieee: New file.
9879         * modules/floorl-ieee-tests: New file.
9880         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
9881         * tests/test-floorl.c (main): Remove signbit tests.
9882         * modules/floorl-tests (Depends-on): Remove signbit.
9883         * doc/posix-functions/floorl.texi: Mention the new module.
9884
9885 2010-12-21  Bruno Haible  <bruno@clisp.org>
9886
9887         New module 'round-ieee'.
9888         * modules/round-ieee: New file.
9889         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
9890         whether round works according to ISO C 99 with IEC 60559.
9891         * m4/round-ieee.m4: New file.
9892         * modules/round-ieee-tests: New file.
9893         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
9894         * tests/test-round1.c (main): Remove signbit tests.
9895         * modules/round-tests (Depends-on): Remove 'signbit'.
9896         * doc/posix-functions/round.texi: Mention the new module.
9897
9898 2010-12-21  Bruno Haible  <bruno@clisp.org>
9899
9900         New module 'trunc-ieee'.
9901         * modules/trunc-ieee: New file.
9902         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
9903         whether trunc works according to ISO C 99 with IEC 60559.
9904         * m4/trunc-ieee.m4: New file.
9905         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
9906         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
9907         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
9908         * modules/trunc-ieee-tests: New file.
9909         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
9910         * tests/test-trunc1.c (main): Remove signbit tests.
9911         * modules/trunc-tests (Depends-on): Remove 'signbit'.
9912         * doc/posix-functions/trunc.texi: Mention the new module.
9913
9914 2010-12-21  Bruno Haible  <bruno@clisp.org>
9915
9916         New module 'ceil-ieee'.
9917         * modules/ceil-ieee: New file.
9918         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
9919         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
9920         ISO C 99 with IEC 60559.
9921         * m4/ceil-ieee.m4: New file.
9922         * modules/ceil (Files): Add lib/ceil.c.
9923         (Depends-on): Add 'float'.
9924         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9925         * lib/math.in.h (ceil): New declaration.
9926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
9927         REPLACE_CEIL.
9928         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
9929         * modules/ceil-ieee-tests: New file.
9930         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
9931         * tests/test-math-c++.cc: Check the signature of 'ceil'.
9932         * doc/posix-functions/ceil.texi: Mention the new module.
9933
9934 2010-12-21  Bruno Haible  <bruno@clisp.org>
9935
9936         New module 'floor-ieee'.
9937         * modules/floor-ieee: New file.
9938         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
9939         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
9940         ISO C 99 with IEC 60559.
9941         * m4/floor-ieee.m4: New file.
9942         * modules/floor (Files): Add lib/floor.c.
9943         (Depends-on): Add 'float'.
9944         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9945         * lib/math.in.h (floor): New declaration.
9946         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
9947         REPLACE_FLOOR.
9948         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
9949         * modules/floor-ieee-tests: New file.
9950         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
9951         * tests/test-math-c++.cc: Check the signature of 'floor'.
9952         * doc/posix-functions/floor.texi: Mention the new module.
9953
9954 2010-12-21  Bruno Haible  <bruno@clisp.org>
9955
9956         New module 'roundf-ieee'.
9957         * modules/roundf-ieee: New file.
9958         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
9959         test whether roundf works according to ISO C 99 with IEC 60559.
9960         * m4/roundf-ieee.m4: New file.
9961         * modules/roundf-ieee-tests: New file.
9962         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
9963         * tests/test-roundf1.c (main): Remove signbit tests.
9964         * modules/roundf-tests (Depends-on): Remove 'signbit'.
9965         * doc/posix-functions/roundf.texi: Mention the new module.
9966
9967 2010-12-21  Bruno Haible  <bruno@clisp.org>
9968
9969         New module 'truncf-ieee'.
9970         * modules/truncf-ieee: New file.
9971         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
9972         test whether truncf works according to ISO C 99 with IEC 60559.
9973         * m4/truncf-ieee.m4: New file.
9974         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
9975         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
9976         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
9977         * modules/truncf-ieee-tests: New file.
9978         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
9979         * tests/test-truncf1.c (main): Remove signbit tests.
9980         * modules/truncf-tests (Depends-on): Remove 'signbit'.
9981         * doc/posix-functions/truncf.texi: Mention the new module.
9982
9983 2010-12-21  Bruno Haible  <bruno@clisp.org>
9984
9985         New module 'ceilf-ieee'.
9986         * modules/ceilf-ieee: New file.
9987         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
9988         test whether ceilf works according to ISO C 99 with IEC 60559.
9989         * m4/ceilf-ieee.m4: New file.
9990         * modules/ceilf-ieee-tests: New file.
9991         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
9992         * tests/test-ceilf1.c (main): Remove signbit tests.
9993         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
9994         * doc/posix-functions/ceilf.texi: Mention the new module.
9995
9996 2010-12-21  Bruno Haible  <bruno@clisp.org>
9997
9998         New module 'floorf-ieee'.
9999         * modules/floorf-ieee: New file.
10000         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
10001         test whether floorf works according to ISO C 99 with IEC 60559.
10002         * m4/floorf-ieee.m4: New file.
10003         * modules/floorf-ieee-tests: New file.
10004         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
10005         * tests/test-floorf1.c (main): Remove signbit tests.
10006         * modules/floorf-tests (Depends-on): Remove 'signbit'.
10007         * doc/posix-functions/floorf.texi: Mention the new module.
10008
10009 2010-12-21  Bruno Haible  <bruno@clisp.org>
10010
10011         Support for minus zero in autoconf macros.
10012         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
10013         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
10014         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
10015         * tests/minus-zero.h: Update comments.
10016
10017 2010-12-21  Bruno Haible  <bruno@clisp.org>
10018
10019         Tests for module 'ceil'.
10020         * modules/ceil-tests: New file.
10021         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
10022         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
10023
10024 2010-12-21  Bruno Haible  <bruno@clisp.org>
10025
10026         Tests for module 'floor'.
10027         * modules/floor-tests: New file.
10028         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
10029         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
10030
10031 2010-12-21  Bruno Haible  <bruno@clisp.org>
10032
10033         math: Fix indentation.
10034         * lib/math.in.h (floorf): Fix indentation.
10035
10036 2010-12-21  Bruno Haible  <bruno@clisp.org>
10037
10038         Fix cross-compilation guesses on Solaris.
10039         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
10040         not match "solaris2.10".
10041         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10042         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
10043         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
10044
10045 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
10046
10047         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
10048         This fixes a problem observed with the latest coreutils snapshot
10049         that caused a test to fail on Solaris 8.  src/csplit.c's call
10050         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
10051         earlier, instead of returning the number of bytes that would have
10052         been generated; this causes csplit to incorrectly report memory
10053         exhaustion.
10054         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
10055         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
10056         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
10057         comments to match.
10058         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
10059         Fix typo in matching older versions of Solaris: "solaris2.10"
10060         is matched by the shell pattern "solaris2.[0-9]*".  This matters
10061         only for guessing while cross-compiling.
10062         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
10063
10064 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
10065
10066         ftoastr: fix comment again
10067         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10068         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
10069         Also, simplify example a bit by using flags = 0.
10070
10071 2010-12-20  Bruno Haible  <bruno@clisp.org>
10072
10073         round*, trunc*: Update documentation regarding glibc.
10074         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
10075         * doc/posix-functions/round.texi: Likewise.
10076         * doc/posix-functions/roundl.texi: Likewise.
10077         * doc/posix-functions/truncf.texi: Likewise.
10078         * doc/posix-functions/trunc.texi: Likewise.
10079         * doc/posix-functions/truncl.texi: Likewise.
10080
10081 2010-12-20  Bruno Haible  <bruno@clisp.org>
10082
10083         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
10084         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
10085         * doc/posix-functions/round.texi: Likewise.
10086         * doc/posix-functions/roundl.texi: Likewise.
10087
10088 2010-12-20  Bruno Haible  <bruno@clisp.org>
10089
10090         ttyname_r: Add missing declaration on HP-UX 11.
10091         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
10092         HAVE_TTYNAME_R.
10093         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
10094         declared. Set HAVE_TTYNAME_R always.
10095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10096         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
10097         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
10098         HAVE_TTYNAME_R.
10099         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
10100
10101 2010-12-20  Bruno Haible  <bruno@clisp.org>
10102
10103         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
10104         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
10105         * doc/posix-functions/getlogin_r.texi: Likewise.
10106         * tests/test-getlogin.c: Include <errno.h>.
10107         (main): Avoid test failure on HP-UX 11.11.
10108         * tests/test-getlogin_r.c (main): Likewise.
10109
10110 2010-12-20  Bruno Haible  <bruno@clisp.org>
10111
10112         getlogin_r: Add missing declaration on HP-UX 11.
10113         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
10114         declared also when it exists as a function.
10115         * doc/posix-functions/getlogin_r.texi: Document this workaround.
10116
10117 2010-12-20  Bruno Haible  <bruno@clisp.org>
10118
10119         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
10120         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
10121         through wcrtomb.
10122
10123 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10124
10125         ftoastr: fix comment
10126         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10127         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
10128
10129 2010-12-19  Bruno Haible  <bruno@clisp.org>
10130
10131         isnan: Ensure it is a macro.
10132         * lib/math.in.h (isnan): Define as a macro if not already a macro.
10133         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
10134         Solaris.
10135
10136 2010-12-19  Bruno Haible  <bruno@clisp.org>
10137
10138         ldexpl test: Fix link error on OSF/1 5.1.
10139         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
10140
10141 2010-12-19  Bruno Haible  <bruno@clisp.org>
10142
10143         wctype: Make it work in C++ mode on OSF/1 5.1.
10144         * lib/wctype.in.h (iswblank): Declare but not define here.
10145         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
10146         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
10147         * modules/wctype (Files): Add lib/iswblank.c.
10148
10149 2010-12-19  Bruno Haible  <bruno@clisp.org>
10150
10151         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
10152         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
10153         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
10154
10155 2010-12-19  Bruno Haible  <bruno@clisp.org>
10156
10157         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
10158         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
10159         _POSIX_PII_SOCKET.
10160         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
10161         * doc/posix-functions/recvfrom.texi: Likewise.
10162         * doc/posix-functions/send.texi: Likewise.
10163         * doc/posix-functions/sendto.texi: Likewise.
10164
10165 2010-12-19  Bruno Haible  <bruno@clisp.org>
10166
10167         tcgetsid: Add missing declaration on OSF/1 5.1.
10168         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
10169         HAVE_TCGETSID.
10170         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
10171         Don't set HAVE_TCGETSID.
10172         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
10173         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
10174         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
10175         HAVE_TCGETSID.
10176         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
10177
10178 2010-12-19  Bruno Haible  <bruno@clisp.org>
10179
10180         stdio: Fix problem with popen() declaration on OSF/1 5.1.
10181         * lib/stdio.in.h: During the include_next statement, let recursive
10182         includes of this file include only the system header file.
10183
10184 2010-12-19  Bruno Haible  <bruno@clisp.org>
10185
10186         iconv_open: Fix regression from 2010-12-04.
10187         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
10188         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
10189
10190 2010-12-19  Bruno Haible  <bruno@clisp.org>
10191
10192         stdbool test: Avoid a gcc warning.
10193         * tests/test-stdbool.c (main): Fail if e1 is false.
10194         Reported by Jim Meyering.
10195
10196 2010-12-19  Jim Meyering  <meyering@redhat.com>
10197
10198         setenv: restore to working order
10199         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
10200         mistakenly removed.
10201         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
10202         HAVE_SETENV.
10203         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
10204         HAVE_SETENV.
10205
10206 2010-12-19  Bruno Haible  <bruno@clisp.org>
10207
10208         Document some different function declarations on OSF/1 5.1.
10209         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
10210         * doc/posix-functions/inet_ntop.texi: Likewise.
10211         * doc/posix-functions/gethostname.texi: Likewise.
10212         * lib/unistd.in.h (gethostname): Update comment.
10213
10214 2010-12-19  Bruno Haible  <bruno@clisp.org>
10215
10216         doc: Mention vasprintf-posix module.
10217         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
10218         the 'vasprintf-posix' module.
10219         * doc/glibc-functions/vasprintf.texi: Likewise.
10220
10221 2010-12-19  Bruno Haible  <bruno@clisp.org>
10222
10223         unsetenv: Add missing declaration on OSF/1 5.1.
10224         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
10225         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
10226         Don't set HAVE_UNSETENV. In the test program, set _BSD.
10227         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
10228         not HAVE_UNSETENV.
10229         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
10230         HAVE_UNSETENV.
10231         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
10232
10233 2010-12-19  Bruno Haible  <bruno@clisp.org>
10234
10235         setenv: Add missing declaration on OSF/1 5.1.
10236         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
10237         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
10238         declared. Don't set HAVE_SETENV.
10239         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
10240         not HAVE_SETENV.
10241         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
10242         HAVE_SETENV.
10243         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
10244
10245 2010-12-19  Bruno Haible  <bruno@clisp.org>
10246
10247         nl_langinfo tests: Avoid gcc warning.
10248         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
10249
10250 2010-12-19  Bruno Haible  <bruno@clisp.org>
10251
10252         mknod: Avoid error in C++ mode on OSF/1 with GCC.
10253         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
10254         _GL_CXXALIAS_SYS.
10255
10256 2010-12-19  Bruno Haible  <bruno@clisp.org>
10257
10258         stdbool: Relax test.
10259         * tests/test-stdbool.c (e): Don't require that casts from a variable's
10260         address to 'bool' work in static initializer, for compilers other than
10261         GCC.
10262
10263 2010-12-19  Bruno Haible  <bruno@clisp.org>
10264
10265         ftello: Add missing declaration on OSF/1 5.1.
10266         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
10267         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
10268         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
10269         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
10270         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
10271
10272 2010-12-19  Bruno Haible  <bruno@clisp.org>
10273
10274         fseeko: Add missing declaration on OSF/1 5.1.
10275         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
10276         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
10277         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
10278         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
10279         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
10280
10281 2010-12-19  Bruno Haible  <bruno@clisp.org>
10282
10283         fchdir: Add missing declaration on OSF/1 5.1.
10284         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
10285         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
10286         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
10287         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
10288         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
10289
10290 2010-12-19  Bruno Haible  <bruno@clisp.org>
10291
10292         relocatable-prog-wrapper: Separate from relocatable-prog.
10293         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
10294         uninstall-relocwrapper rule here.
10295         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
10296         Reported by Ian Beckwith <ianb@erislabs.net>.
10297
10298 2010-12-19  Bruno Haible  <bruno@clisp.org>
10299
10300         unistr/u8-mbsnlen: Add missing dependency.
10301         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
10302         Reported by Ian Beckwith <ianb@erislabs.net>.
10303
10304 2010-12-19  Bruno Haible  <bruno@clisp.org>
10305
10306         iconv: Make it possible again to use this module without 'iconv-h'.
10307         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
10308         if it is not defined.
10309         Reported by Ian Beckwith <ianb@erislabs.net>.
10310
10311 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10312
10313         acl: port to Solaris 8 when copying from tmpfs to ufs
10314         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
10315         error number.  Problem observed on Solaris 8 with latest
10316         coreutils, with "mv A B", where A is on a tmpfs file system and B
10317         is on a ufs file system.  This caused coreutils' mv/part-symlink
10318         test to fail.
10319
10320         tests: set fail=0 at start
10321         * tests/init.sh (setup_): Move fail=0 initialization here ...
10322         (mktempd_): ... from here, so that tests can rely on fail being
10323         set to 0 initially.  This fixes a problem in coreutils; see:
10324         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
10325
10326 2010-12-18  Bruno Haible  <bruno@clisp.org>
10327
10328         memmem-simple: Stylistic changes.
10329         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
10330         Fix preprocessor directive indentation.
10331
10332 2010-12-15  Pádraig Brady <P@draigBrady.com>
10333
10334         memmem, memmem-simple: reorganize and expand empty needle check
10335         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
10336         functional checks to memmem-simple so that one has a fully functional
10337         memmem by using just this module.
10338         Restrict the performance only check to the memmem module.
10339         Also expand the empty needle check to ensure the correct
10340         pointer is returned, not just a non NULL pointer.
10341         * doc/glibc-functions/memmem.texi: Rearrange the portability
10342         documentation to correlate with the rearranged checks.
10343         Clarify exactly how the memmem and memmem-simple modules
10344         relate to each other.
10345
10346 2010-12-15  Pádraig Brady <P@draigBrady.com>
10347             Bruno Haible  <bruno@clisp.org>
10348
10349         Improve cross-compilation guesses for uClibc.
10350         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
10351         that uClibc does not have the glibc bug.
10352         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
10353         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
10354
10355 2010-12-14  Eric Blake  <eblake@redhat.com>
10356
10357         configmake: provide fallbacks for oldest supported autotools
10358         * m4/configmake.m4: New file.
10359         * modules/configmake (Files): Ship it.
10360         (configure.ac): Use it to guarantee fallbacks.
10361
10362 2010-12-13  Pádraig Brady <P@draigBrady.com>
10363
10364         read-file: Improve handling of large files
10365         * lib/read-file.c (fread_file): Minimize realloc()s
10366         for regular files, and better manage sizes around SIZE_MAX.
10367
10368 2010-12-13  Eric Blake  <eblake@redhat.com>
10369
10370         cloexec, fcntl: relax license
10371         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
10372         consent from all contributors.
10373         * modules/fcntl (License): Likewise.
10374
10375 2010-12-10  Bruno Haible  <bruno@clisp.org>
10376
10377         Tests for module 'pipe-posix'.
10378         * modules/pipe-posix-tests: New file.
10379         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
10380
10381 2010-12-10  Bruno Haible  <bruno@clisp.org>
10382
10383         pipe-posix: Make it work in C++ mode.
10384         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
10385         (pipe): Use common idiom, not a macro definition.
10386         * lib/pipe.c: New file.
10387         * m4/pipe.m4: New file.
10388         * modules/pipe-posix (Description): Enhance.
10389         (Files): Add lib/pipe.c, m4/pipe.m4.
10390         (configure.ac): Invoke gl_FUNC_PIPE.
10391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
10392         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
10393         * tests/test-unistd-c++.cc: Check the signature of pipe.
10394
10395 2010-12-10  Bruno Haible  <bruno@clisp.org>
10396
10397         Rename module 'pipe' to 'spawn-pipe'.
10398         * modules/spawn-pipe: New file, renamed from modules/pipe.
10399         (Files, configure.ac, Makefile.am): Update.
10400         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
10401         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
10402         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
10403         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
10404         "spawn-pipe.h" instead of "pipe.h".
10405         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
10406         to gl_SPAWN_PIPE.
10407         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
10408         (Files, Makefile.am): Update.
10409         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
10410         Update.
10411         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
10412         Include "spawn-pipe.h" instead of "pipe.h".
10413         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
10414         * lib/javacomp.c: Likewise.
10415         * lib/javaversion.c: Likewise.
10416         * lib/pipe-filter-gi.c: Likewise.
10417         * lib/pipe-filter-ii.c: Likewise.
10418         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
10419         * modules/javacomp (Depends-on): Likewise.
10420         * modules/javaversion (Depends-on): Likewise.
10421         * modules/pipe-filter-gi (Depends-on): Likewise.
10422         * modules/pipe-filter-ii (Depends-on): Likewise.
10423         * MODULES.html.sh (Executing programs): Update.
10424         * NEWS: Mention the change.
10425
10426 2010-12-10  Eric Blake  <eblake@redhat.com>
10427
10428         pipe-posix: new module
10429         * modules/pipe-posix: New file.
10430         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
10431         (gl_UNISTD_H): Check for declaration.
10432         * modules/unistd (Makefile.am): Substitute it.
10433         * lib/unistd.in.h (pipe): Provide it for mingw.
10434         * doc/posix-functions/pipe.texi (pipe): Update documentation.
10435         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
10436
10437 2010-12-07  Bruno Haible  <bruno@clisp.org>
10438
10439         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
10440         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
10441         u8_strcmp_gnu.
10442         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
10443
10444 2010-12-06  Bruno Haible  <bruno@clisp.org>
10445
10446         Update internal documentation.
10447         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
10448
10449 2010-12-04  Bruno Haible  <bruno@clisp.org>
10450
10451         Put more information about failed tests into the test return codes.
10452         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
10453         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
10454         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
10455         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10456         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
10457         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10458         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10459         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10460         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
10461         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10462         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
10463         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10464         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10465         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10466         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
10467         returns a bit mask.
10468         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
10469         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
10470         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
10471         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
10472         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10473         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10474         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10475         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10476         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10477         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10478         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10479         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10480         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10481         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10482         * m4/link.m4 (gl_FUNC_LINK): Likewise.
10483         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10484         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
10485         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
10486         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10487         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
10488         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10489         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
10490         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
10491         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
10492         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10493         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10494         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
10495         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10496         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10497         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
10498         gl_PRINTF_PRECISION): Likewise.
10499         * m4/regex.m4 (gl_REGEX): Likewise.
10500         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10501         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10502         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
10503         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10504         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10505         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10506         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10507         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
10508         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10509         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10510         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10511         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10512         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10513         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
10514         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10515         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10516         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
10517         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10518         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10519         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
10520         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
10521         enumerated value.
10522         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
10523
10524 2010-12-04  Bruno Haible  <bruno@clisp.org>
10525
10526         Update for Solaris 11 2010-11.
10527         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
10528         Express, released in November 2010.
10529
10530 2010-12-04  Bruno Haible  <bruno@clisp.org>
10531
10532         nproc: Relax license.
10533         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
10534         and Paul Eggert.
10535         Requested by Ludovic Courtès <ludo@gnu.org>.
10536
10537 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
10538
10539         utimecmp: fine-grained src to nearby coarse-grained dest
10540
10541         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
10542         and the source is on a file system with higher-resolution time
10543         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
10544         not work, and the time stamps are close together, the algorithm to
10545         determine the exact resolution from the read-back mtime was buggy:
10546         it had a "!=" where it should have had an "==".  This bug has been
10547         in the code ever since it was introduced to gnulib.
10548         Problem reported by Dan Jacobson in
10549         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
10550
10551 2010-11-30  Bruno Haible  <bruno@clisp.org>
10552
10553         strerror_r-posix: Fix autoconf test.
10554         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
10555
10556 2010-11-28  Bruno Haible  <bruno@clisp.org>
10557             Paul Eggert  <eggert@cs.ucla.edu>
10558
10559         Tests for module 'getdomainname'.
10560         * modules/getdomainname-tests: New file.
10561         * tests/test-getdomainname.c: New file, based on
10562         tests/test-gethostname.c.
10563
10564 2010-11-28  Bruno Haible  <bruno@clisp.org>
10565             Paul Eggert  <eggert@cs.ucla.edu>
10566
10567         getdomainname: Use the system function when possible.
10568         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
10569         (getdomainname): Replace if needed. Provide the declaration if it is
10570         missing. Don't use _GL_CXXALIAS_SYS_CAST.
10571         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
10572         (getdomainname): When the system has getdomainname, call the system
10573         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
10574         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
10575         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
10576         found in libnsl. Look for the declaration also in <netdb.h>. Replace
10577         the function if its second argument is of type 'int' or if it is found
10578         in libnsl.
10579         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
10580         <sys/systeminfo.h> and sysinfo().
10581         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
10582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10583         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
10584         HAVE_GETDOMAINNAME.
10585         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
10586         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
10587         * doc/glibc-functions/getdomainname.texi: Document the problems with
10588         the getdomainname declaration.
10589
10590 2010-11-28  Bruno Haible  <bruno@clisp.org>
10591
10592         sys_socket: Ensure ss_family field on AIX.
10593         * lib/sys_socket.in.h (ss_family): New macro definition.
10594         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
10595         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
10596         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10597         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
10598         * modules/sys_socket (Makefile.am): Substitute
10599         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
10600         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
10601
10602 2010-11-27  Bruno Haible  <bruno@clisp.org>
10603
10604         readline: Improve configure output.
10605         * m4/readline.m4 (gl_FUNC_READLINE): Make the
10606         "checking for readline..." result understandable.
10607
10608 2010-11-27  Bruno Haible  <bruno@clisp.org>
10609
10610         *printf-posix: Detect a bug on Solaris 10/x86.
10611         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
10612         for floating-point output.
10613         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
10614         directive.
10615         * tests/test-snprintf-posix.h (test_function): Likewise.
10616         * tests/test-sprintf-posix.h (test_function): Likewise.
10617         * tests/test-vasprintf-posix.c (test_function): Likewise.
10618         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
10619         * doc/posix-functions/printf.texi: Likewise.
10620         * doc/posix-functions/snprintf.texi: Likewise.
10621         * doc/posix-functions/sprintf.texi: Likewise.
10622         * doc/posix-functions/vfprintf.texi: Likewise.
10623         * doc/posix-functions/vprintf.texi: Likewise.
10624         * doc/posix-functions/vsnprintf.texi: Likewise.
10625         * doc/posix-functions/vsprintf.texi: Likewise.
10626         * doc/glibc-functions/obstack_printf.texi: Likewise.
10627         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10628
10629 2010-11-27  Bruno Haible  <bruno@clisp.org>
10630
10631         Fix link error when module libunistring-optional is in use.
10632         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
10633         * modules/striconveha-tests (Makefile.am): Likewise.
10634
10635 2010-11-27  Bruno Haible  <bruno@clisp.org>
10636
10637         regex: Mention link dependencies.
10638         * modules/regex (Link): New section.
10639         * modules/rpmatch (Link): Likewise.
10640         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
10641
10642 2010-11-27  Bruno Haible  <bruno@clisp.org>
10643
10644         ftoastr: Fix compilation error on Solaris.
10645         * lib/ftoastr.c: Include <config.h>.
10646
10647 2010-11-27  Bruno Haible  <bruno@clisp.org>
10648
10649         getloadavg: Update documentation.
10650         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
10651
10652 2010-11-27  Bruno Haible  <bruno@clisp.org>
10653
10654         sys_socket: Fix test whether the functions are declared.
10655         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
10656         not <sys/select.h>.
10657
10658 2010-11-27  Bruno Haible  <bruno@clisp.org>
10659
10660         getpass: Make sure to get system declaration on some platforms.
10661         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
10662         gl_USE_SYSTEM_EXTENSIONS.
10663         * modules/getpass (Depends-on): Add extensions.
10664
10665 2010-11-26  Bruno Haible  <bruno@clisp.org>
10666
10667         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
10668         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
10669         'iconv' module is present.
10670         (ICONV_CONST): New macro.
10671         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
10672         ICONV_CONST.
10673         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
10674         set ICONV_CONST.
10675         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
10676         here.
10677         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
10678         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
10679         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
10680         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
10681         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
10682         present.
10683
10684 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
10685
10686         ftoastr: comment fix
10687         * lib/ftoastr.c: "little" -> "little or no" in comment
10688
10689 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
10690
10691         stdint: port to GCC 4.3 + OSX + Octave
10692         On this platform, stdint.h is buggy and defines int64_t to long
10693         long int.  The replacement defined it to long int, causing
10694         problems with C++ style name mangling.  Instead, trust the system
10695         definition if INT64_MAX is defined, and likewise for the unsigned
10696         variant.   Problem reported by Jarno Rajahalme in
10697         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
10698         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
10699         and don't mess with int64_t and INT64_MAX in this case.
10700         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
10701
10702 2010-11-24  Bruno Haible  <bruno@clisp.org>
10703
10704         doc: Corrections regarding MacOS X 10.4 and 10.5.
10705         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
10706         MacOS X.
10707         Reported by Simon Josefsson.
10708
10709 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
10710
10711         Uninstall ".bin" files installed by relocwrapper.
10712         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
10713         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
10714         unless it is already there.
10715
10716 2010-11-21  Bruno Haible  <bruno@clisp.org>
10717
10718         Update for NetBSD 5.0.
10719         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
10720         NetBSD; the test fails on NetBSD 5.0.
10721         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
10722         about NetBSD.
10723
10724 2010-11-21  Bruno Haible  <bruno@clisp.org>
10725
10726         Update for HP-UX 11.23 and HP-UX 11.31.
10727         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
10728         HP-UX.
10729
10730 2010-11-21  Bruno Haible  <bruno@clisp.org>
10731
10732         Update for MacOS X 10.5.
10733         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
10734         MacOS X; the test fails on MacOS X 10.5.8.
10735         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
10736         about MacOS X.
10737
10738 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
10739
10740         bootstrap: add bootstrap_sync option.
10741         See discussion at
10742         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
10743         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
10744         * build-aux/bootstrap: Accept --bootstrap-sync to update
10745         bootstrap if it is not identical to the local gnulib's
10746         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
10747         enable this by default.  Accept --no-bootstrap-sync to disable
10748         it.
10749
10750 2010-11-20  Bruno Haible  <bruno@clisp.org>
10751
10752         Ensure that <features.h> is included before __GLIBC__ is tested.
10753         * lib/printf-parse.h: Include <features.h>.
10754         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
10755         Reported by Mike Frysinger <vapier@gentoo.org>.
10756
10757         Ensure that <features.h> is included before __GLIBC__ is tested.
10758         * lib/wchar.in.h: Include <features.h>.
10759         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
10760         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
10761         Reported by Mike Frysinger <vapier@gentoo.org>.
10762
10763         Ensure that <features.h> is included before __GLIBC__ is tested.
10764         * lib/arpa_inet.in.h: Include <features.h>.
10765         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
10766         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
10767         Reported by Mike Frysinger <vapier@gentoo.org>.
10768
10769         Ensure that <features.h> is included before __GLIBC__ is tested.
10770         * build-aux/link-warning.h: Include <features.h>.
10771         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
10772         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
10773         Reported by Mike Frysinger <vapier@gentoo.org>.
10774
10775         Ensure that <features.h> is included before __GLIBC__ is tested.
10776         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
10777         Reported by Mike Frysinger <vapier@gentoo.org>.
10778
10779 2010-11-20  Bruno Haible  <bruno@clisp.org>
10780
10781         memmem: Fix autoconf test.
10782         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
10783
10784 2010-11-20  Bruno Haible  <bruno@clisp.org>
10785
10786         Port to uClibc.
10787         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
10788         * lib/fcntl.in.h: Likewise.
10789         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
10790         * lib/mbrtowc.c (mbrtowc): Likewise.
10791         * lib/relocatable.c (find_shared_library_fullname): Likewise.
10792         * lib/strerror_r.c: Likewise.
10793         * lib/unistr/u8-strnlen.c: Likewise.
10794         * lib/vasnprintf.c (decimal_point_char): Likewise.
10795         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
10796         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
10797         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10798         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
10799         * tests/test-sigaction.c (handler, main): Likewise.
10800         * lib/freading.h: Treat uClibc like a non-glibc platform.
10801         * lib/freading.c: Likewise.
10802         * lib/gettext.h: Likewise.
10803         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
10804         Likewise.
10805         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
10806         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10807         * lib/propername.c (proper_name_utf8): Likewise.
10808         * lib/spawn.in.h: Likewise.
10809         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
10810         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
10811         mem_cd_iconveh_internal): Likewise.
10812         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
10813         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
10814         strstr, strcasestr): Likewise.
10815         * lib/unicodeio.c (unicode_to_mb): Likewise.
10816         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
10817         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
10818         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
10819         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
10820         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
10821         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
10822         * lib/unistr/u8-stpncpy.c: Likewise.
10823         * lib/vasnprintf.c (VASNPRINTF): Likewise.
10824         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
10825         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10826         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10827         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
10828         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
10829         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
10830         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
10831         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10832         Likewise.
10833         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10834         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10835         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
10836         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10837         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10838         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10839         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10840         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
10841         * tests/test-getopt.h (OPTIND_MIN): Likewise.
10842         * tests/test-striconveha.c (main): Likewise.
10843         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10844         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
10845         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
10846         * doc/posix-functions/getline.texi: Likewise.
10847         Reported by Mike Frysinger <vapier@gentoo.org>.
10848
10849 2010-11-20  Bruno Haible  <bruno@clisp.org>
10850
10851         nproc: Fix condition.
10852         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
10853         HAVE_PTHREAD_AFFINITY_NP.
10854
10855 2010-11-20  Bruno Haible  <bruno@clisp.org>
10856
10857         Fix a comment.
10858         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
10859
10860 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
10861
10862         ftoastr: don't assume snprintf
10863         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
10864         Implement a subset of snprintf here, by using sprintf safely.
10865         * modules/ftoastr (Depends-on): Remove snprintf.
10866
10867 2010-11-19  Jim Meyering  <meyering@redhat.com>
10868
10869         test-rename.h: fix compilation failure
10870         * tests/test-rename.h (test_rename): Add omitted "}".
10871
10872 2010-11-17  Jim Meyering  <meyering@redhat.com>
10873
10874         maint.mk: add a URL discussing the no-@acronym policy
10875         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
10876
10877 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10878
10879         ftoastr: depend on snprintf, improve comments
10880         * lib/ftoastr.c: Also mention Loitsch's draft.
10881         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
10882         needed in the current implementation, but it might simplify
10883         speeding up the code later.
10884         * modules/ftoastr: Depend on snprintf; this improves portability.
10885         Suggested by Bruno Haible in the same email.
10886
10887         ftoastr: port to hosts lacking strtof and strtold
10888         Problem reported by Bruno Haible in
10889         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
10890         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
10891         environment and strtold (and presumably strtof) are not available.
10892         * modules/ftoastr (Files): Add m4/c-strtod.m4.
10893         (configure.ac): Require gl_C99_STRTOLD.
10894
10895 2010-11-18  Bruno Haible  <bruno@clisp.org>
10896
10897         c-strtold: Avoid link error on AIX 7.
10898         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
10899         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
10900         (gl_C_STRTOLD): Test whether strtold_l exists.
10901         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10902
10903 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
10904
10905         intprops: new macro INT_BITS_STRLEN_BOUND
10906         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
10907         ftoastr.h.  This exposes an internal of intprops.h that was formerly
10908         not exposed.  Also, it uses a slightly tighter bound than before;
10909         though this makes no practical difference, we might as well be as
10910         tight as we easily can.
10911
10912         ftoastr: new module, for lossless conversion of floats to short strings
10913         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
10914         * modules/ftoastr: New files.
10915
10916 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
10917
10918         bootstrap: port to Solaris sed
10919         * build-aux/bootstrap (get_version): Port to Solaris sed.
10920         See Ralf Wildenhues's note in
10921         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
10922
10923 2010-11-14  Jim Meyering  <meyering@redhat.com>
10924
10925         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
10926         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
10927         and move definition closer to sole use.
10928
10929 2010-11-13  Jim Meyering  <meyering@redhat.com>
10930
10931         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
10932         Now we require at least autoconf-2.59, which means the work-around
10933         is no longer needed.
10934         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
10935         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10936         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
10937         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
10938         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
10939
10940 2010-11-13  Bruno Haible  <bruno@clisp.org>
10941
10942         rename, renameat: Avoid test failures at NFS mounted locations.
10943         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
10944         functions.
10945         (test_rename): Use assert_nonexistent.
10946         * tests/test-rename.c: Include <dirent.h>.
10947         * tests/test-renameat.c: Likewise.
10948         Reported by Gary V. Vaughan <gary@gnu.org>.
10949
10950         rename, renameat: Document Linux bug with NFS
10951         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
10952         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
10953         * doc/posix-functions/renameat.texi: Likewise.
10954         Suggested by Eric Blake.
10955
10956 2010-11-13  Bruno Haible  <bruno@clisp.org>
10957
10958         rename test: Add comments.
10959         * tests/test-rename.h (test_rename): Add structure and comments.
10960
10961 2010-11-13  Eric Blake  <eblake@redhat.com>
10962
10963         maintainer-makefile: cover a few more files
10964         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
10965         scripts generated within C files, for libvirt.
10966
10967 2010-11-13  Bruno Haible  <bruno@clisp.org>
10968
10969         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
10970         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
10971         character, return the number of bytes that belong together, not always
10972         1.
10973         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
10974         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
10975         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
10976         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
10977         number of bytes of an invalid character.
10978         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
10979         (main): Invoke it.
10980         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
10981         results.
10982         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
10983         malformed byte sequences.
10984         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
10985         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
10986         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
10987         Reported by Ben Pfaff and Paolo Bonzini.
10988
10989 2010-11-13  Bruno Haible  <bruno@clisp.org>
10990
10991         openat: Work around glibc bug with fchownat() and empty file names.
10992         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
10993         (gl_FUNC_FCHOWNAT): Invoke it.
10994         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
10995         * doc/posix-functions/fchownat.texi: Document the glibc bug.
10996         Reported by Gary V. Vaughan <gary@gnu.org>.
10997
10998 2010-11-13  Bruno Haible  <bruno@clisp.org>
10999
11000         openat: Ensure autoconf macro ordering.
11001         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
11002         gl_USE_SYSTEM_EXTENSIONS.
11003         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
11004
11005 2010-11-13  Bruno Haible  <bruno@clisp.org>
11006
11007         Update comments.
11008         * lib/unistr/u8-check.c: Update file name in comments.
11009         * lib/unistr/u8-mblen.c: Likewise.
11010         * lib/unistr/u8-prev.c: Likewise.
11011         * lib/unistr/u8-strmblen.c: Likewise.
11012         * lib/unistr/u8-strmbtouc.c: Likewise.
11013
11014 2010-11-13  Jim Meyering  <meyering@redhat.com>
11015
11016         tests: avoid test failure on Solaris 10 due to lack of PATH export
11017         * tests/test-update-copyright.sh: Don't forget to export PATH.
11018
11019         init.sh: ensure that IFS is defined, just in case...
11020         * tests/init.sh (setup_): Ensure that IFS is defined,
11021         so that saving and restoring it works as expected.  This
11022         appears to be useful at least for an old version of dash
11023         from a long time ago (RH 6).  See here for details:
11024         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
11025
11026         maint.mk: tighten "test a == b" check
11027         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
11028         test to files that contain something like #!/bin/sh.
11029         Without this, coreutils would get two false positives in
11030         the comments of C source files.
11031
11032 2010-11-12  Eric Blake  <eblake@redhat.com>
11033
11034         bootstrap: fix typo in previous attempt
11035         * build-aux/bootstrap (buildreq): Correct the grouping.
11036         Reported by Paul Eggert.
11037
11038         maintainer-makefile: prohibit test x == x
11039         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
11040         Based on a report by Matthias Bolte.
11041
11042         bootstrap: allow FreeBSD gzip
11043         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
11044         which has no '.' and goes to stderr.
11045         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
11046         Reported by Matthias Bolte.
11047
11048         maintainer-makefile: check for i18n setup
11049         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
11050         will likely work.
11051
11052 2010-11-12  Bruno Haible  <bruno@clisp.org>
11053
11054         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
11055         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
11056         * lib/nanosleep.c (nanosleep): Likewise.
11057
11058 2010-11-11  Bruno Haible  <bruno@clisp.org>
11059
11060         fcntl-h: Fix for use of C++ on glibc systems.
11061         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11062         also on glibc systems in C++ mode.
11063         Reported by Gary V. Vaughan <gary@gnu.org>.
11064
11065 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11066
11067         mknod: avoid false failure with dash
11068         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
11069
11070 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
11071
11072         unlink: Fix "is it should" typo in diagnostic.
11073         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
11074         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
11075
11076 2010-11-11  Bruno Haible  <bruno@clisp.org>
11077
11078         Tests for module 'strerror_r-posix'.
11079         * modules/strerror_r-posix-tests: New file.
11080         * tests/test-strerror_r.c: New file.
11081         * tests/test-string-c++.cc: Check the signature of strerror_r.
11082
11083         New module 'strerror_r-posix'.
11084         * lib/string.in.h (strerror_r): New declaration.
11085         * lib/strerror_r.c: New file.
11086         * m4/strerror_r.m4: New file.
11087         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
11088         of strerror_r.
11089         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
11090         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11091         * modules/strerror_r-posix: New file.
11092         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
11093         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11094         * doc/posix-functions/strerror_r.texi: Mention the new module and the
11095         portability problems.
11096
11097 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
11098
11099         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
11100         line is also considered for output. Quoted function name in shell
11101         command, so temporary files for functions like MyClass::operator()
11102         are removed correctly without errors.
11103
11104 2010-11-09  Bruno Haible  <bruno@clisp.org>
11105
11106         * doc/posix-functions/strerror.texi: List more failing platforms.
11107
11108         * doc/posix-functions/strerror.texi: Add a comment.
11109
11110 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
11111
11112         fdopendir: fix bug on MacOS X when low on file descriptors
11113
11114         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
11115         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
11116         All callers changed.
11117         (fdopendir): Invoke save_cwd at the top level, not after using
11118         multiple dup() calls to use up file descriptors.  Then retry
11119         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
11120         less than the maximum number of open file descriptors, because
11121         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
11122         on Mac OS X 10.6.4 for tar 1.24
11123         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
11124         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
11125         and for tar 1.25
11126         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
11127
11128 2010-11-07  Bruno Haible  <bruno@clisp.org>
11129
11130         vasnprintf: Support I flag on glibc systems.
11131         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
11132         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
11133         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
11134         snprintf function.
11135         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
11136         glibc systems.
11137         * tests/test-vasnprintf-posix3.c: New file.
11138         * modules/vasnprintf-posix-tests (Files): Add it.
11139         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
11140
11141 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11142
11143         [html] Fix copy/paste bug: Use unique name for compiler warnings.
11144         * MODULES.html.sh: For compiler warnings, use name
11145         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
11146
11147 2010-11-05  Eric Blake  <eblake@redhat.com>
11148
11149         ceil, floor: avoid spurious failure with icc
11150         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
11151         [denormals-as-zero] when optimizing without -mieee-fp option.
11152         * tests/test-floorf2.c (floorf_reference): Likewise.
11153         * tests/test-ceilf1.c (dummy): New function.
11154         (main): Use it to outsmart icc's optimization.
11155         * tests/test-floorf1.c (dummy, main): Likewise.
11156
11157         tests: require working signbit
11158         * modules/ceilf-tests (Depends-on): Add signbit.
11159         * modules/ceill-tests (Depends-on): Likewise.
11160         * modules/floorf-tests (Depends-on): Likewise.
11161         * modules/floorl-tests (Depends-on): Likewise.
11162         * modules/round-tests (Depends-on): Likewise.
11163         * modules/roundf-tests (Depends-on): Likewise.
11164         * modules/roundl-tests (Depends-on): Likewise.
11165         * modules/trunc-tests (Depends-on): Likewise.
11166         * modules/truncf-tests (Depends-on): Likewise.
11167         * modules/truncl-tests (Depends-on): Likewise.
11168
11169         strtod: work around icc bug
11170         * lib/strtod.c (minus_zero): Define to working value.
11171         (strtod): Use it to avoid icc bug.
11172
11173         copysign: enhance tests
11174         * modules/copysign-tests (Files): Add minus-zero.h.
11175         * tests/test-copysign.c (main): Also test zeros.
11176
11177 2010-11-04  Eric Blake  <eblake@redhat.com>
11178
11179         ceil, floor, round, trunc: enhance tests of -0
11180         * tests/test-ceilf1.c (main): Ensure correct sign of result.
11181         * tests/test-ceill.c (main): Likewise.
11182         * tests/test-floorf1.c (main): Likewise.
11183         * tests/test-floorl.c (main): Likewise.
11184         * tests/test-round1.c (main): Likewise.
11185         * tests/test-roundf1.c (main): Likewise.
11186         * tests/test-roundl.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 2010-11-04  Eric Blake  <eblake@redhat.com>
11192
11193         frexp, tests: work around ICC bug with -zero
11194         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
11195         works with more compilers.
11196         * tests/minus-zero.h: New file.
11197         * modules/ceilf-tests (Files): Include it.
11198         * modules/ceill-tests (Files): Likewise.
11199         * modules/floorf-tests (Files): Likewise.
11200         * modules/floorl-tests (Files): Likewise.
11201         * modules/frexp-nolibm-tests (Files): Likewise.
11202         * modules/frexp-tests (Files): Likewise.
11203         * modules/frexpl-nolibm-tests (Files): Likewise.
11204         * modules/frexpl-tests (Files): Likewise.
11205         * modules/isnan-tests (Files): Likewise.
11206         * modules/isnand-nolibm-tests (Files): Likewise.
11207         * modules/isnand-tests (Files): Likewise.
11208         * modules/isnanf-nolibm-tests (Files): Likewise.
11209         * modules/isnanf-tests (Files): Likewise.
11210         * modules/isnanl-nolibm-tests (Files): Likewise.
11211         * modules/isnanl-tests (Files): Likewise.
11212         * modules/round-tests (Files): Likewise.
11213         * modules/roundf-tests (Files): Likewise.
11214         * modules/roundl-tests (Files): Likewise.
11215         * modules/ldexpl-tests (Files): Likewise.
11216         * modules/signbit-tests (Files): Likewise.
11217         * modules/snprintf-posix-tests (Files): Likewise.
11218         * modules/sprintf-posix-tests (Files): Likewise.
11219         * modules/strtod-tests (Files): Likewise.
11220         * modules/trunc-tests (Files): Likewise.
11221         * modules/truncf-tests (Files): Likewise.
11222         * modules/truncl-tests (Files): Likewise.
11223         * modules/vsnprintf-posix-tests (Files): Likewise.
11224         * modules/vsprintf-posix-tests (Files): Likewise.
11225         * modules/vasnprintf-posix-tests (Files): Likewise.
11226         * modules/vasprintf-posix-tests (Files): Likewise.
11227         * tests/test-ceilf1.c (main): Use it.
11228         * tests/test-ceill.c (main): Likewise.
11229         * tests/test-floorf1.c (main): Likewise.
11230         * tests/test-floorl.c (main): Likewise.
11231         * tests/test-frexp.c (main): Likewise.
11232         * tests/test-frexpl.c (main): Likewise.
11233         * tests/test-isnan.c (main): Likewise.
11234         * tests/test-isnand.h (main): Likewise.
11235         * tests/test-isnanf.h (main): Likewise.
11236         * tests/test-isnanl.h (main): Likewise.
11237         * tests/test-ldexpl.c (main): Likewise.
11238         * tests/test-round.c (main): Likewise.
11239         * tests/test-roundf.c (main): Likewise.
11240         * tests/test-roundl.c (main): Likewise.
11241         * tests/test-signbit.c (test_signbitf, test_signbitd)
11242         (test_signbitl): Likewise.
11243         * tests/test-snprintf-posix.h (test_function): Likewise.
11244         * tests/test-sprintf-posix.h (test_function): Likewise.
11245         * tests/test-strtod.c (main): Likewise.
11246         * tests/test-trunc1.c (main): Likewise.
11247         * tests/test-truncf1.c (main): Likewise.
11248         * tests/test-truncl.c (main): Likewise.
11249
11250         isnanl: work around icc bug
11251         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
11252
11253 2010-11-03  Eric Blake  <eblake@redhat.com>
11254
11255         tests: fix compiler warnings
11256         * tests/test-getopt.h (test_getopt): Fix condition.
11257         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11258         * tests/test-pipe2.c (main): Likewise.
11259         * tests/test-quotearg-simple.c (main): Avoid icc warning.
11260
11261         utimens: fix broken m4 test
11262         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
11263
11264 2010-10-28  Bruno Haible  <bruno@clisp.org>
11265
11266         posix_spawn*, getdtablesize: Relax license.
11267         * modules/posix_spawn (License): Change to LGPLv2+.
11268         * modules/posix_spawnp (License): Likewise.
11269         * modules/posix_spawn-internal (License): Likewise.
11270         * modules/posix_spawnattr_init (License): Likewise.
11271         * modules/posix_spawnattr_getflags (License): Likewise.
11272         * modules/posix_spawnattr_setflags (License): Likewise.
11273         * modules/posix_spawnattr_getpgroup (License): Likewise.
11274         * modules/posix_spawnattr_setpgroup (License): Likewise.
11275         * modules/posix_spawnattr_getschedparam (License): Likewise.
11276         * modules/posix_spawnattr_setschedparam (License): Likewise.
11277         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
11278         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
11279         * modules/posix_spawnattr_getsigdefault (License): Likewise.
11280         * modules/posix_spawnattr_setsigdefault (License): Likewise.
11281         * modules/posix_spawnattr_getsigmask (License): Likewise.
11282         * modules/posix_spawnattr_setsigmask (License): Likewise.
11283         * modules/posix_spawnattr_destroy (License): Likewise.
11284         * modules/posix_spawn_file_actions_init (License): Likewise.
11285         * modules/posix_spawn_file_actions_addclose (License): Likewise.
11286         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
11287         * modules/posix_spawn_file_actions_addopen (License): Likewise.
11288         * modules/posix_spawn_file_actions_destroy (License): Likewise.
11289         * modules/getdtablesize (License): Likewise.
11290         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
11291
11292 2010-10-26  Bruno Haible  <bruno@clisp.org>
11293
11294         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
11295         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
11296         Cygwin and mingw.
11297         Suggested by Eric Blake.
11298
11299 2010-10-26  Bruno Haible  <bruno@clisp.org>
11300
11301         stdio: Work around compilation error due to renameat() on Solaris 10.
11302         * lib/stdio.in.h: Include <unistd.h> on Solaris.
11303         * lib/renameat.c: Don't include <unistd.h> here.
11304         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
11305         Reported by Paul Eggert and Eric Blake.
11306
11307 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
11308
11309         renameat: port to Solaris 10, which declares renameat in unistd.h
11310
11311         * lib/renameat.c: Include unistd.h before stdio.h, because
11312         Solaris 10 declares renameat in unistd.h.  Problem encountered
11313         when building GNU tar 1.24 on Solaris 10.
11314
11315 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11316
11317         fdopendir: fix C89 compilation
11318         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
11319         compilers.
11320
11321 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
11322
11323         inttostr: simplify by removing unnecessary redundancy
11324         * lib/anytostr.c: Don't include verify.h.
11325         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
11326         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
11327         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
11328         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
11329         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
11330         Likewise.
11331         * modules/inttostr (Depends-on): Remove 'verify'.
11332
11333 2010-10-23  Bruno Haible  <bruno@clisp.org>
11334
11335         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
11336         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
11337         Reported by Eric Blake.
11338
11339 2010-10-23  Bruno Haible  <bruno@clisp.org>
11340
11341         Tests: Fix LOCALE_JA on MirBSD 10.
11342         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
11343         to an UTF-8 locale.
11344         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
11345         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11346         Reported by Eric Blake.
11347
11348 2010-10-21  Bruno Haible  <bruno@clisp.org>
11349
11350         nl_langinfo test: Avoid test failure on NetBSD 5.
11351         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
11352         Reported by Eric Blake.
11353
11354 2010-10-21  Eric Blake  <eblake@redhat.com>
11355
11356         c-stack: work around libsigsegv 2.8 bug
11357         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
11358         overflow on at least PowerPC64.
11359
11360 2010-10-17  Bruno Haible  <bruno@clisp.org>
11361
11362         userspec: Drop redundant file.
11363         * modules/userspec (Files): Remove lib/inttostr.h.
11364
11365 2010-10-17  Bruno Haible  <bruno@clisp.org>
11366
11367         nl_langinfo tests: Silence some warnings.
11368         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
11369         Reported by Jim Meyering.
11370
11371 2010-10-17  Bruno Haible  <bruno@clisp.org>
11372
11373         Make use of GCC's attribute __alloc_size__.
11374         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
11375         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
11376         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
11377         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
11378         __alloc_size__.
11379         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
11380         Suggested by Jim Meyering.
11381
11382 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
11383
11384         bootstrap: anchor .gitignore entries.
11385         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
11386         with...
11387         (insert_vc_ignore): ... this new function, which prepends `/' to
11388         all .gitignore entries before passing them to
11389         insert_sorted_if_absent.
11390
11391 2010-10-16  Bruno Haible  <bruno@clisp.org>
11392
11393         nextafter: Fix configure check.
11394         * modules/nextafter (configure.ac): Correct expected prototype.
11395
11396 2010-10-16  Bruno Haible  <bruno@clisp.org>
11397
11398         termios: Update documentation.
11399         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
11400
11401 2010-10-16  Bruno Haible  <bruno@clisp.org>
11402
11403         tests: Make them compile with TinyCC.
11404         * tests/test-strstr.c (main): Remove parentheses around array
11405         initializer.
11406
11407 2010-10-15  Eric Blake  <eblake@redhat.com>
11408
11409         ignore-value: make header idempotent
11410         * lib/ignore-value.h: Add double-inclusion guards.
11411         Reported by Stefan Berger.
11412
11413 2010-10-15  Jim Meyering  <meyering@redhat.com>
11414
11415         GNUmakefile: handle "stable" target, not "major"
11416         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
11417         lists in maint.mk and announce-gen.  Without this, "make stable"
11418         would fail to ensure that $(VERSION) is up to date.
11419
11420 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
11421
11422         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
11423         & co.
11424
11425 2010-10-14  Bruno Haible  <bruno@clisp.org>
11426
11427         vasnprintf: Don't set errno to 0.
11428         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
11429         block that sets it to 0.
11430         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
11431
11432 2010-10-14  Bruno Haible  <bruno@clisp.org>
11433
11434         socketlib: Fix.
11435         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
11436         gl_PREREQ_SYS_H_WINSOCK2.
11437         Reported by Ian Beckwith <ianb@erislabs.net>.
11438
11439 2010-10-13  Jim Meyering  <meyering@redhat.com>
11440
11441         test-select-stdin.c: avoid warn_unused_result warnings
11442         * tests/test-select-stdin.c: Include "macros.h".
11443         ASSERT that read and fflush succeed.
11444
11445 2010-10-13  Jim Meyering  <meyering@redhat.com>
11446
11447         git-version-gen: do require git-VC'd files in cwd
11448         * build-aux/git-version-gen: Reject a git version string
11449         if there are no commits associated with the current directory.
11450         This avoids an unlikely false-positive (unrelated dir whose parent
11451         repository also contains a tag matching v*), as pointed out
11452         by Giuseppe Scrivano in
11453         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
11454
11455 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11456
11457         argv-iter: omit nonconforming declaration
11458         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
11459         enum arg_iter_err declaration, which doesn't conform to C99.
11460         Solaris 10 cc warns about this.
11461
11462 2010-10-13  Eric Blake  <eblake@redhat.com>
11463
11464         termios: fix compilation on mingw
11465         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
11466         (gl_TERMIOS_H): Adjust it on mingw.
11467         * modules/termios (Makefile.am): Substitute new key.
11468         * lib/termios.in.h (includes): Make include_next conditional.
11469         * doc/posix-headers/termios.texi (termios.h): Update
11470         documentation.
11471         Reported by Daniel P. Berrange.
11472
11473 2010-10-13  Jim Meyering  <meyering@redhat.com>
11474
11475         git-version-gen: don't require that .git/ be in the current dir
11476         * build-aux/git-version-gen: Adjust this script so that it works
11477         when run from any working directory beneath the top-level .git/-
11478         containing directory.  Inspired by a patch from Giuseppe Scrivano,
11479         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
11480
11481         test-select: avoid warn_unused_result warnings
11482         * tests/test-select.c: Include "macros.h".
11483         ASSERT that each call to read, write, and pipe succeeds.
11484         While not technically required, also check each "close".
11485         * modules/select-tests (Files): Add tests/macros.h.
11486
11487         test-symlinkat: remove declaration of unused local
11488         * tests/test-symlinkat.c (main): Remove unused local, "buf".
11489
11490         test-inttostr: avoid shadowing warnings
11491         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
11492         and use malloc rather than the stack for the same reason as
11493         mentioned in the comment justifying the other allocation.
11494
11495 2010-10-11  Bruno Haible  <bruno@clisp.org>
11496
11497         stdlib: Allow multiple gnulib generated replacements to coexist.
11498         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
11499         Reported by Sam Steingold <sds@gnu.org>.
11500
11501 2010-10-11  Jim Meyering  <meyering@redhat.com>
11502
11503         fix a documentation typo
11504         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
11505
11506 2010-10-11  Eric Blake  <eblake@redhat.com>
11507
11508         futimens: work around Solaris 11 bug
11509         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
11510         * tests/test-futimens.h (test_futimens): Enhance, rather than
11511         weaken test.
11512         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11513
11514 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11515
11516         Indentation.
11517         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
11518         higher-level operators more to the left.
11519
11520 2010-10-11  Jim Meyering  <meyering@redhat.com>
11521
11522         test-futimens: avoid unwarranted test failure on Solaris 5.11
11523         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
11524         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
11525         because it tries to dereference the NULL name argument.
11526
11527 2010-10-11  Bruno Haible  <bruno@clisp.org>
11528
11529         Indentation.
11530         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
11531         indentation.
11532
11533 2010-10-11  Jim Meyering  <meyering@redhat.com>
11534
11535         spawn.in.h: make indentation consistent with parentheses
11536         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
11537         Make indentation consistent with parentheses.
11538
11539 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
11540
11541         Fix mismatched parens in previous commit
11542         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
11543         parens.
11544
11545 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
11546
11547         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
11548
11549         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
11550         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
11551         * lib/malloca.c: Include "verify.h".
11552         (verify1): Remove, replacing with a verify call.
11553         * lib/relocwrapper.c (verify1): Likewise.
11554         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
11555         Likewise.
11556         * modules/malloca (Depends-on): Add 'verify'.
11557         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
11558         * modules/vasnprintf (Depends-on): Add 'verify'.
11559         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
11560         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11561         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11562         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11563         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11564         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11565         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11566
11567         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
11568
11569         Formerly the style was sometimes 2*X - 1, because the C standard
11570         was wrongly thought to disallow ?: in integral constant expressions.
11571         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
11572         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
11573         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11574         * lib/stdint.in.h (_verify_intmax_size): Likewise.
11575         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
11576         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
11577         verify that time_t cannot be floating.
11578
11579 2010-10-08  Eric Blake  <eblake@redhat.com>
11580
11581         time: enforce recent POSIX ruling that time_t is integral
11582         * lib/time.in.h (__time_t_must_be_integral): Detect any
11583         problematic systems, allowing the rest of gnulib to assume POSIX.
11584
11585 2010-10-08  Jim Meyering  <meyering@redhat.com>
11586
11587         fdopendir: fix a bug on systems lacking openat and /proc support
11588         OpenBSD 4.7 is one such system.  The most noticeable effect was
11589         failure of any application making nontrivial use of fts: rm, du,
11590         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
11591           ./rm: traversal failed: `a': Bad file descriptor
11592         Debugging that, you see that even though FD 6 was closed just
11593         prior to the opendir call in fd_clone_opendir, its resulting
11594         dir->dd_fd was 8, rather than the expected value of 6:
11595
11596         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
11597         93                close (fd);
11598         (gdb) n
11599         94                dir = fd_clone_opendir (dupfd);
11600         (gdb) n
11601         95                saved_errno = errno;
11602         (gdb) p dir->dd_fd
11603         $11 = 8
11604
11605         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
11606         The problem is that on OpenBSD, fd_clone_opendir has to resort
11607         to using the old-style save/restore CWD mechanism, due to its
11608         lack of openat/proc support, and *that* would steal the FD (6)
11609         that opendir was supposed to use.
11610
11611         The fix is to squirrel away the desired FD so that save_cwd uses a
11612         different one, and then free the dest FD right before calling opendir.
11613         That guarantees opendir will use the required file descriptor.
11614
11615         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
11616
11617 2010-10-08  Bruno Haible  <bruno@clisp.org>
11618
11619         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
11620         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
11621
11622 2010-10-08  Bruno Haible  <bruno@clisp.org>
11623
11624         nanosleep: Make replacement POSIX compliant.
11625         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
11626         is out of range.
11627         Reported by Jim Meyering.
11628
11629 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
11630
11631         bootstrap: add hook for altering gnulib.mk, for Bison
11632         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
11633         the Bison bootstrapping process can rewrite file names and variables
11634         in this file before later parts of 'bootstrap' use the file.
11635         Bison wants to include lib/gnulib.mk from the top-level makefile,
11636         so it needs the file names in this file to be relative to the top
11637         level, not relative to lib; plus it needs variable names to be
11638         rewritten.
11639         (slurp): Use the new function.
11640
11641         bootstrap: reformat for readability
11642         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
11643
11644 2010-10-08  Eric Blake  <eblake@redhat.com>
11645
11646         docs: update cygwin progress
11647         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
11648         1.7.7.
11649         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
11650         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
11651         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
11652         * doc/posix-functions/carg.texi (carg): Likewise.
11653         * doc/posix-functions/cargf.texi (cargf): Likewise.
11654         * doc/posix-functions/casin.texi (casin): Likewise.
11655         * doc/posix-functions/casinf.texi (casinf): Likewise.
11656         * doc/posix-functions/casinh.texi (casinh): Likewise.
11657         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
11658         * doc/posix-functions/catan.texi (catan): Likewise.
11659         * doc/posix-functions/catanf.texi (catanf): Likewise.
11660         * doc/posix-functions/catanh.texi (catanh): Likewise.
11661         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
11662         * doc/posix-functions/ccos.texi (ccos): Likewise.
11663         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
11664         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
11665         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
11666         * doc/posix-functions/cexp.texi (cexp): Likewise.
11667         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
11668         * doc/posix-functions/cimag.texi (cimag): Likewise.
11669         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
11670         * doc/posix-functions/clog.texi (clog): Likewise.
11671         * doc/posix-functions/clogf.texi (clogf): Likewise.
11672         * doc/posix-functions/conj.texi (conj): Likewise.
11673         * doc/posix-functions/conjf.texi (conjf): Likewise.
11674         * doc/posix-functions/cpow.texi (cpow): Likewise.
11675         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
11676         * doc/posix-functions/cproj.texi (cproj): Likewise.
11677         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
11678         * doc/posix-functions/creal.texi (creal): Likewise.
11679         * doc/posix-functions/crealf.texi (crealf): Likewise.
11680         * doc/posix-functions/csin.texi (csin): Likewise.
11681         * doc/posix-functions/csinf.texi (csinf): Likewise.
11682         * doc/posix-functions/csinh.texi (csinh): Likewise.
11683         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
11684         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
11685         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
11686         * doc/posix-functions/ctan.texi (ctan): Likewise.
11687         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
11688         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
11689         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
11690         * doc/posix-headers/complex.texi (complex.h): Likewise.
11691
11692 2010-10-07  Jim Meyering  <meyering@redhat.com>
11693
11694         parse-datetime: avoid compilation failure on OpenBSD 4.7
11695         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
11696         This works around a compilation failure on OpenBSD 4.7:
11697         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
11698
11699 2010-10-07  Eric Blake  <eblake@redhat.com>
11700
11701         docs: update cygwin progress
11702         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
11703         1.7.6.
11704         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
11705         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
11706         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
11707         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
11708         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
11709         Likewise.
11710         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
11711         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
11712         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
11713         Likewise.
11714         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
11715         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
11716         Likewise.
11717         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
11718         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
11719         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
11720         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
11721         Likewise.
11722         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
11723         Likewise.
11724         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
11725
11726         docs: update parse-datetime history
11727         * doc/parse-datetime.texi (Authors of parse_datetime): Better
11728         documentation of this function's history and alternatives.
11729
11730         cygwin: use more robust version check
11731         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
11732         exclude an eventual cygwin 1.9.1.
11733         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11734         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
11735         (gl_FUNC_STRCASESTR): Likewise.
11736         Reported by Bruno Haible.
11737
11738 2010-10-06  Bruno Haible  <bruno@clisp.org>
11739
11740         string, sys_select: Avoid #including large headers unless necessary.
11741         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
11742         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
11743         OSF/1, BeOS, Haiku.
11744         Reported by Jim Meyering.
11745
11746 2010-10-05  Eric Blake  <eblake@redhat.com>
11747
11748         memmem, strstr, strcasestr: fix bug with long periodic needle
11749         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
11750         periodic needle having false positive.
11751         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
11752         and cygwin 1.7.7.
11753         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
11754         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
11755         (gl_FUNC_STRCASESTR): Likewise.
11756         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11757         * tests/test-memmem.c (main): Expose the bug.
11758         * tests/test-strcasestr.c (main): Likewise.
11759         * tests/test-strstr.c (main): Likewise.
11760         * tests/test-c-strcasestr.c (main): Likewise.
11761         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
11762         * doc/posix-functions/strstr.texi (strstr): Likewise.
11763         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
11764         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
11765
11766 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11767
11768         parse-datetime: do some more renaming
11769         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
11770         parse_datetime, not get_date.  Mention the renaming.
11771         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
11772         in comments.
11773         * m4/bison.m4: Likewise.
11774
11775 2010-10-05  Eric Blake  <eblake@redhat.com>
11776
11777         parse-datetime: better name than get_date
11778         * NEWS: Reword the deprecation notice.
11779         * modules/get_date: Rename to modules/parse-datetime.
11780         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
11781         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
11782         * lib/get_date.y: Rename to lib/parse-datetime.y.
11783         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
11784         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
11785         * doc/getdate.texi: Provide fallback wrapper.
11786         * lib/getdate.h: Move guts, and wrap...
11787         * lib/parse-datetime.h: ...new file.
11788         * lib/parse-datetime.y (get_date): Rename...
11789         (parse_datetime): ...to this.
11790         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
11791         (gl_PARSE_DATETIME): ...to this.
11792         * doc/posix-functions/getdate.texi (get_date): Provide fallback
11793         documentation.
11794         * modules/getdate (Files): Provide fallback docs and header.
11795         (Notice, Depends-on): Update references.
11796         * tests/test-parse-datetime.c: Likewise.
11797         * DEPENDENCIES: Likewise.
11798         * MODULES.html.sh (Date and time <time.h>): Likewise.
11799         * doc/parse-datetime.texi (Date input formats)
11800         (Authors of parse_datetime): Likewise.
11801         * modules/parse-datetime (Files, configure.ac, Makefile.am)
11802         (Include): Likewise.
11803         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
11804         * gnulib-tool: Likewise.
11805         * m4/bison.m4 (gl_BISON): Likewise.
11806         Suggested by Bruno Haible.
11807
11808 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11809
11810         more ports to Solaris tr, which needs [] around ranges
11811         * gnulib-tool: Solaris tr needs [] around ranges.
11812         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11813         * tests/test-pipe-filter-gi1.c (main): Likewise.
11814         * tests/test-pipe-filter-ii1.c (main): Likewise.
11815
11816 2010-10-05  Eric Blake  <eblake@redhat.com>
11817
11818         bootstrap: fix Solaris regression
11819         * build-aux/bootstrap (check_versions): Solaris tr still needs []
11820         around ranges.
11821         Reported by Pádraig Brady.
11822
11823         bootstrap: work with pkg-config
11824         * build-aux/bootstrap (check_versions): Also transliterate - in
11825         prerequisite name.
11826         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
11827         prerequisites that were already found, to avoid confusion.
11828         Reported by Justin Clift.
11829
11830         faccessat: remove unused wrappers
11831         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
11832         presence of these wrappers dragged in -lgen on Solaris.
11833         Reported by Clemens Brogi; fix suggested by Paul Eggert.
11834
11835 2010-10-05  Jim Meyering  <meyering@redhat.com>
11836
11837         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
11838         * Makefile (sc_pragma_columns): New syntax-check rule.
11839
11840 2010-10-04  Bruno Haible  <bruno@clisp.org>
11841
11842         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
11843         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
11844         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
11845         Reported by Bruce Korb and Eric Blake.
11846
11847 2010-10-04  Bruno Haible  <bruno@clisp.org>
11848
11849         threadlib: Make option --with-libpth-prefix work.
11850         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
11851         use $LIBPTH, not just -lpth.
11852
11853 2010-10-04  Bruno Haible  <bruno@clisp.org>
11854
11855         Avoid line length limitation from HP NonStop system header files.
11856         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
11857         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
11858         * lib/ctype.in.h: Likewise.
11859         * lib/dirent.in.h: Likewise.
11860         * lib/errno.in.h: Likewise.
11861         * lib/fcntl.in.h: Likewise.
11862         * lib/float.in.h: Likewise.
11863         * lib/getopt.in.h: Likewise.
11864         * lib/iconv.in.h: Likewise.
11865         * lib/inttypes.in.h: Likewise.
11866         * lib/langinfo.in.h: Likewise.
11867         * lib/locale.in.h: Likewise.
11868         * lib/math.in.h: Likewise.
11869         * lib/netdb.in.h: Likewise.
11870         * lib/netinet_in.in.h: Likewise.
11871         * lib/poll.in.h: Likewise.
11872         * lib/pthread.in.h: Likewise.
11873         * lib/pty.in.h: Likewise.
11874         * lib/sched.in.h: Likewise.
11875         * lib/se-selinux.in.h: Likewise.
11876         * lib/search.in.h: Likewise.
11877         * lib/signal.in.h: Likewise.
11878         * lib/spawn.in.h: Likewise.
11879         * lib/stdarg.in.h: Likewise.
11880         * lib/stddef.in.h: Likewise.
11881         * lib/stdint.in.h: Likewise.
11882         * lib/stdio.in.h: Likewise.
11883         * lib/stdlib.in.h: Likewise.
11884         * lib/string.in.h: Likewise.
11885         * lib/strings.in.h: Likewise.
11886         * lib/sys_file.in.h: Likewise.
11887         * lib/sys_ioctl.in.h: Likewise.
11888         * lib/sys_select.in.h: Likewise.
11889         * lib/sys_socket.in.h: Likewise.
11890         * lib/sys_stat.in.h: Likewise.
11891         * lib/sys_time.in.h: Likewise.
11892         * lib/sys_times.in.h: Likewise.
11893         * lib/sys_utsname.in.h: Likewise.
11894         * lib/sys_wait.in.h: Likewise.
11895         * lib/sysexits.in.h: Likewise.
11896         * lib/termios.in.h: Likewise.
11897         * lib/time.in.h: Likewise.
11898         * lib/unistd.in.h: Likewise.
11899         * lib/wchar.in.h: Likewise.
11900         * lib/wctype.in.h: Likewise.
11901         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
11902         * modules/ctype (Makefile.am): Likewise.
11903         * modules/dirent (Makefile.am): Likewise.
11904         * modules/errno (Makefile.am): Likewise.
11905         * modules/fcntl-h (Makefile.am): Likewise.
11906         * modules/float (Makefile.am): Likewise.
11907         * modules/getopt-posix (Makefile.am): Likewise.
11908         * modules/iconv-h (Makefile.am): Likewise.
11909         * modules/inttypes (Makefile.am): Likewise.
11910         * modules/langinfo (Makefile.am): Likewise.
11911         * modules/locale (Makefile.am): Likewise.
11912         * modules/math (Makefile.am): Likewise.
11913         * modules/netdb (Makefile.am): Likewise.
11914         * modules/netinet_in (Makefile.am): Likewise.
11915         * modules/poll-h (Makefile.am): Likewise.
11916         * modules/pthread (Makefile.am): Likewise.
11917         * modules/pty (Makefile.am): Likewise.
11918         * modules/sched (Makefile.am): Likewise.
11919         * modules/search (Makefile.am): Likewise.
11920         * modules/selinux-h (Makefile.am): Likewise.
11921         * modules/signal (Makefile.am): Likewise.
11922         * modules/spawn (Makefile.am): Likewise.
11923         * modules/stdarg (Makefile.am): Likewise.
11924         * modules/stddef (Makefile.am): Likewise.
11925         * modules/stdint (Makefile.am): Likewise.
11926         * modules/stdio (Makefile.am): Likewise.
11927         * modules/stdlib (Makefile.am): Likewise.
11928         * modules/string (Makefile.am): Likewise.
11929         * modules/strings (Makefile.am): Likewise.
11930         * modules/sys_file (Makefile.am): Likewise.
11931         * modules/sys_ioctl (Makefile.am): Likewise.
11932         * modules/sys_select (Makefile.am): Likewise.
11933         * modules/sys_socket (Makefile.am): Likewise.
11934         * modules/sys_stat (Makefile.am): Likewise.
11935         * modules/sys_time (Makefile.am): Likewise.
11936         * modules/sys_times (Makefile.am): Likewise.
11937         * modules/sys_utsname (Makefile.am): Likewise.
11938         * modules/sys_wait (Makefile.am): Likewise.
11939         * modules/sysexits (Makefile.am): Likewise.
11940         * modules/termios (Makefile.am): Likewise.
11941         * modules/time (Makefile.am): Likewise.
11942         * modules/unistd (Makefile.am): Likewise.
11943         * modules/wchar (Makefile.am): Likewise.
11944         * modules/wctype (Makefile.am): Likewise.
11945
11946 2010-10-04  Bruno Haible  <bruno@clisp.org>
11947
11948         read-file tests: Avoid a test failure on NonStop Kernel.
11949         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
11950         a regular file.
11951         Reported by Joachim Schmitz <schmitz@hp.com>.
11952
11953 2010-10-03  Bruno Haible  <bruno@clisp.org>
11954
11955         gnulib-tool: Fixes for --create-testdir with --libtool.
11956         * gnulib-tool (func_get_automake_snippet): Don't augment
11957         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
11958         an executable.
11959         (func_create_testdir): Handle module 'alloca' like func_import.
11960         Reported by Bruce Korb <bruce.korb@gmail.com>.
11961
11962 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
11963
11964         Avoid some lines longer than 80 characters.
11965         * lib/stdint.in.h: Break long comment lines.
11966         * lib/math.in.h: Likewise.
11967         (_GL_NUM_UINT_WORDS): New macro, for readability.
11968         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
11969         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
11970         * lib/stdlib.in.h: Likewise.
11971         * lib/spawn.in.h: Likewise.
11972         * lib/sys_socket.in.h: Update an URL.
11973         * lib/sys_stat.in.h: Break long line.
11974
11975 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
11976
11977         Improve pmccabe2html.
11978         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
11979         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
11980         when the sources change. Remove the line in the HTML about "Used
11981         ranges" (which implied that there might be other unused ranges),
11982         rename "Resume" to "Summary" (easier to understand for more users).
11983         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
11984         styles, and some unnecessary blank lines.
11985
11986 2010-10-03  Bruno Haible  <bruno@clisp.org>
11987             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11988
11989         acl: Add support for ACLs on NonStop Kernel.
11990         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
11991         Check whether the function aclsort() exists.
11992         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
11993         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
11994         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11995         (acl_nontrivial [HAVE_ACLSORT]: New function.
11996         (file_has_acl): Implement for NonStop Kernel.
11997         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11998         (qset_acl): Implement for NonStop Kernel.
11999         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
12000         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12001         (main): Implement for NonStop Kernel.
12002         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
12003         Kernel. Handle this flavor.
12004         * tests/test-set-mode-acl.sh: Likewise.
12005         * tests/test-copy-acl.sh: Likewise.
12006         * tests/test-copy-file.sh: Likewise.
12007
12008 2010-10-03  Bruno Haible  <bruno@clisp.org>
12009
12010         Info about ACLs on NonStop Kernel.
12011         * doc/acl-resources.txt: Add info about NonStop Kernel.
12012         References by Joachim Schmitz <schmitz@hp.com>.
12013
12014 2010-10-02  Bruno Haible  <bruno@clisp.org>
12015
12016         Define missing EDQUOT on NonStop Kernel.
12017         * lib/errno.in.h (EDQUOT): Assign a value if missing.
12018         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
12019         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
12020         missing.
12021         * doc/posix-headers/errno.texi: Mention the NSK bug.
12022         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
12023         Reported by Joachim Schmitz <schmitz@hp.com>.
12024
12025 2010-10-02  Bruno Haible  <bruno@clisp.org>
12026
12027         Update doc for POSIX:2008.
12028         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
12029         Update URL of POSIX specification.
12030
12031 2010-10-02  Bruno Haible  <bruno@clisp.org>
12032
12033         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
12034         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
12035         from gnulib, not from Automake.
12036
12037 2010-10-02  Bruno Haible  <bruno@clisp.org>
12038
12039         New module 'system-posix'.
12040         * modules/system-posix: New file.
12041         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
12042         module is present.
12043         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12044         GNULIB_SYSTEM_POSIX.
12045         * modules/stdlib (Depends-on): Remove sys_wait.
12046         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
12047         * doc/posix-functions/system.texi: Mention the new module.
12048         * doc/posix-headers/stdlib.texi: Likewise.
12049         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
12050         define test_sys_wait_macros to a no-op.
12051         Reported by Sam Steingold <sds@gnu.org>.
12052
12053 2010-09-30  Bruno Haible  <bruno@clisp.org>
12054
12055         More renaming from 'getdate' to 'get_date'.
12056         * doc/get_date.texi: Renamed from doc/getdate.texi.
12057         * modules/get_date (Files): Update.
12058         * MODULES.html.sh (Date and time <time.h>): Update.
12059         * DEPENDENCIES: Update.
12060         * gnulib-tool: Update comment.
12061         * m4/bison.m4 (gl_BISON): Likewise.
12062         * m4/get_date.m4 (gl_GET_DATE): Likewise.
12063
12064 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
12065
12066         bootstrap: support ACLOCAL_FLAGS during aclocal
12067         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
12068         can add additional -I dir for third-party .m4 files.
12069
12070 2010-09-30  Eric Blake  <eblake@redhat.com>
12071
12072         bootstrap: use glibtoolize on MacOS
12073         * build-aux/bootstrap (check_versions): Convert libtool into
12074         libtoolize.
12075         (tool search): Move libtool check earlier, and look for
12076         glibtoolize for MacOS.
12077         (gnulib_tool_options): Auto-add --libtool when appropriate.
12078         Reported by Justin Clift.
12079
12080         poll: fix typo that broke test on MacOS
12081         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
12082         Reported by Justin Clift.
12083
12084         getdate: rename to get_date
12085         Note: getdate.h is not renamed, to minimize client impact.
12086         * modules/getdate: Mark obsolete.  Move old contents...
12087         * modules/get_date: ...to new module name.
12088         * modules/getdate-tests: Move...
12089         * modules/get_date-tests: ...here.
12090         * m4/getdate.m4: Move...
12091         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
12092         * lib/getdate.y: Move...
12093         * lib/get_date.y: ...here.
12094         * tests/test-getdate.c: Move...
12095         * tests/test-get_date.c: ...here.
12096         * doc/posix-functions/getdate.texi (getdate): Update name.
12097         * NEWS: Mention the change.
12098
12099 2010-09-29  Bruno Haible  <bruno@clisp.org>
12100
12101         Separate the module 'waitpid' from the module 'sys_wait'.
12102         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
12103         present.
12104         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
12105         gl_MODULE_INDICATOR_FOR_TESTS.
12106         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
12107         * modules/sys_wait (Depends-on): Remove waitpid.
12108         (Makefile.am): Substitute GNULIB_WAITPID.
12109         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
12110         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
12111         signature only if the 'waitpid' module is present.
12112         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
12113         * NEWS: Mention the change.
12114         * modules/grantpt (Depends-on): Add waitpid.
12115         * modules/wait-process (Depends-on): Likewise.
12116
12117 2010-09-29  Bruno Haible  <bruno@clisp.org>
12118
12119         More tests for module 'sys_wait'.
12120         * modules/sys_wait-c++-tests: New file.
12121         * tests/test-sys_wait-c++.cc: New file.
12122         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
12123         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12124
12125 2010-09-29  Bruno Haible  <bruno@clisp.org>
12126
12127         New module 'waitpid'.
12128         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
12129         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
12130         Don't include <process.h>.
12131         (waitpid): Declare only, using modern idiom.
12132         * m4/waitpid.m4: New file.
12133         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
12134         * modules/waitpid: New file.
12135         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
12136         (Makefile.am): Update.
12137         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12138
12139 2010-09-28  Bruno Haible  <bruno@clisp.org>
12140
12141         poll: Assume ANSI C.
12142         * lib/poll.c (poll): Use an ANSI C declaration.
12143
12144 2010-09-28  Bruno Haible  <bruno@clisp.org>
12145
12146         poll-h: Create poll.h on all platforms.
12147         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
12148         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
12149         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
12150         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
12151         (gl_REPLACE_POLL_H): Don't set POLL_H.
12152         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
12153         * modules/poll-h (Depends-on): Add include_next.
12154         (Makefile.am): Create poll.h unconditionally. Substitute also
12155         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
12156
12157 2010-09-28  Bruno Haible  <bruno@clisp.org>
12158
12159         Tests for module 'poll-h'.
12160         * modules/poll-h-c++-tests: New file.
12161         * tests/test-poll-h-c++.cc: New file.
12162
12163         Tests for module 'poll-h'.
12164         * modules/poll-h-tests: New file.
12165         * tests/test-poll-h.c: New file.
12166
12167 2010-09-28  Bruno Haible  <bruno@clisp.org>
12168
12169         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
12170         * modules/poll-h (Depends-on): Add 'extensions'.
12171
12172 2010-09-28  Bruno Haible  <bruno@clisp.org>
12173
12174         New module 'poll-h'.
12175         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
12176         (poll): Use modern idiom.
12177         * modules/poll-h: New file.
12178         * modules/poll (Files): Remove lib/poll.in.h.
12179         (Depends-on): Add poll-h.
12180         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
12181         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
12182         * m4/poll_h.m4: New file.
12183         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
12184         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
12185         and invoke gl_REPLACE_POLL_H.
12186         * lib/poll.c: Use common idiom.
12187         * tests/test-poll.c: Likewise.
12188         * doc/posix-headers/poll.texi: Mention the poll-h module.
12189         Suggested by Eric Blake.
12190
12191 2010-09-26  Bruno Haible  <bruno@clisp.org>
12192
12193         sys_wait: Implement WSTOPSIG.
12194         * lib/sys_wait.in.h (WSTOPSIG): New macro.
12195         Reported by Simon Josefsson.
12196
12197 2010-09-26  Simon Josefsson  <simon@josefsson.org>
12198
12199         stdlib, sys_wait: Avoid compilation error on mingw.
12200         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
12201
12202 2010-09-26  Bruno Haible  <bruno@clisp.org>
12203
12204         stdlib tests: Avoid code duplication.
12205         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
12206         * modules/sys_wait-tests (Files): Likewise.
12207         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
12208         * tests/test-stdlib.c: Include test-sys_wait.h.
12209         (main): Invoke test_sys_wait_macros.
12210         * tests/test-sys_wait.c: Include test-sys_wait.h.
12211         (main): Invoke test_sys_wait_macros.
12212
12213 2010-09-25  Simon Josefsson  <simon@josefsson.org>
12214
12215         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
12216         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
12217         sure Windows sockets are working before calling getaddrinfo.
12218         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
12219         * doc/gnulib.texi (Windows sockets): Fix typo.
12220
12221 2010-09-25  Bruno Haible  <bruno@clisp.org>
12222
12223         Tests for module 'regex-quote'.
12224         * modules/regex-quote-tests: New file.
12225         * tests/test-regex-quote.c: New file.
12226
12227         New module 'regex-quote'.
12228         * lib/regex-quote.h: New file.
12229         * lib/regex-quote.c: New file.
12230         * modules/regex-quote: New file.
12231         Suggested by Reuben Thomas <rrt@sc3d.org>.
12232
12233 2010-09-24  Bruno Haible  <bruno@clisp.org>
12234
12235         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
12236         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
12237
12238 2010-09-23  Bruno Haible  <bruno@clisp.org>
12239
12240         setenv: Relax license.
12241         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
12242         Blake.
12243         Requested by Eric Blake.
12244
12245 2010-09-22  Bruno Haible  <bruno@clisp.org>
12246
12247         termios: Relax license.
12248         * modules/termios (License): Change to LGPLv2+.
12249         Requested by Eric Blake.
12250
12251 2010-09-22  Bruno Haible  <bruno@clisp.org>
12252
12253         threadlib: Allow the package to change the default to 'no'.
12254         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
12255         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
12256         Reported by Paul Eggert.
12257
12258 2010-09-22  Pádraig Brady  <P@draigbrady.com>
12259             Bruno Haible  <bruno@clisp.org>
12260
12261         Fix endless loop in mbmemcasecoll.
12262         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
12263         byte.
12264         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
12265
12266 2010-09-22  Bruno Haible  <bruno@clisp.org>
12267
12268         Tests for module 'memcoll'.
12269         * modules/memcoll-tests: New file.
12270         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
12271
12272         memcoll, xmemcoll: Clarify size vs. length.
12273         * modules/memcoll.c (memcoll0): Clarify specification.
12274         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
12275         passed to collate_error.
12276
12277 2010-09-22  Bruno Haible  <bruno@clisp.org>
12278
12279         Tests for module 'memcasecmp'.
12280         * modules/memcasecmp-tests: New file.
12281         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
12282
12283 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
12284
12285         * lib/pthread.in.h: Add split double-inclusion guard, and include
12286         system <pthread.h> if there is one.  Use @@-style as in other
12287         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
12288         pthread.h doesn't.
12289         (pthread_mutexattr_destroy, pthread_mutexattr_init):
12290         (pthread_mutexattr_settype, pthread_mutex_trylock):
12291         New static inline functions, if there's no system <pthread.h>.
12292         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
12293         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
12294         Approximate with mutexes if the system lacks spinlocks, as in
12295         MacOS.
12296         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
12297         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
12298         @@-style.  Check for spinlocks separately.
12299         (gl_PTHREAD_DEFAULTS): New macro.
12300         * modules/pthread: Redo to use a more typical style for in.h files.
12301
12302 2010-09-21  Eric Blake  <eblake@redhat.com>
12303
12304         net_if: enhance tests
12305         * tests/test-net_if.c (main): Move signature checks earlier.
12306         Print failures to stderr.
12307         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
12308         Document the bug that we do not yet fix.
12309
12310 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12311
12312         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
12313         about gnulib, not GSS.
12314
12315 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12316
12317         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
12318         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
12319         for Emacs.
12320         * build-aux/pmccabe2html: Make Makefile.am example code more
12321         cut-and-paste friendly.
12322
12323 2010-09-21  Simon Josefsson  <simon@josefsson.org>
12324
12325         * tests/test-net_if.c: New file.
12326         * modules/net_if-tests: New file.
12327
12328 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
12329
12330         pthread: add pthread_spin_destroy
12331         * lib/pthread.in.h (pthread_spin_destroy): New function.
12332
12333 2010-09-19  Bruno Haible  <bruno@clisp.org>
12334
12335         gnulib-tool: Fix --help output.
12336         * gnulib-tool (func_usage): Fix help message.
12337         Reported by Reuben Thomas <rrt@sc3d.org>.
12338
12339 2010-09-18  Jim Meyering  <meyering@redhat.com>
12340
12341         maint.mk: avoid unexpanded \n in two diagnostics
12342         * top/maint.mk (sc_prohibit_always_true_header_tests):
12343         Don't use a literal \n in a halt=... assignment.  It would not be
12344         expanded, and the two \n bytes would appear in the diagnostic output
12345         rather than the desired newline.  Use halt=$$(printf ... instead.
12346         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
12347
12348 2010-09-18  Bruno Haible  <bruno@clisp.org>
12349
12350         netinet_in: Doc tweak.
12351         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
12352         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12353
12354 2010-09-18  Jim Meyering  <meyering@redhat.com>
12355
12356         init.sh: correct an outdated comment
12357         * tests/init.sh (create_exe_shims_):  s/function/alias/
12358
12359         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
12360         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
12361         a file named "*.exe" is removed between the glob expansion and the
12362         processing of that oddly named file.
12363
12364 2010-09-17  Eric Blake  <eblake@redhat.com>
12365
12366         mirbsd: add some more support
12367         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
12368         in BSD family.
12369         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
12370         devices as OpenBSD.
12371         * m4/host-os.m4 (mirbsd): Add MirBSD.
12372
12373         tests: fix unportable assumption on sys/wait.h
12374         * tests/test-sys_wait.c (main): Relax test.
12375         * tests/test-stdlib.c (main): Likewise.
12376
12377         init.sh: accomodate directory with no .exes
12378         * tests/init.sh: Accomodate directory containing only scripts.
12379
12380         tests: avoid compiler warning
12381         * tests/test-stdlib.c (main): Use the variable.
12382
12383         fdutimens, fdutimensat: update signature, again
12384         * lib/utimens.h (gl_futimens): Delete, and move signature...
12385         (fdutimens): ...here.
12386         (fdutimensat): Rearrange signature.
12387         (lutimensat): Rename variable for clarity.
12388         * lib/fdutimensat.c (fdutimensat): Update signature.
12389         * lib/utimens.c (fdutimens): Likewise.
12390         (gl_futimens): Delete.
12391         (utimens, lutimens): Update callers.
12392         * lib/futimens.c (futimens): Likewise.
12393         * tests/test-fdutimensat.c: Likewise.
12394         * tests/test-utimens.c: Likewise.
12395         * tests/test-futimens.h: Update comment.
12396         * NEWS: Mention this.
12397         Suggested by Paul Eggert.
12398
12399 2010-09-17  Bruno Haible  <bruno@clisp.org>
12400
12401         Take over the maintenance of some older macros from Autoconf.
12402         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
12403         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
12404         GNU Autoconf.
12405         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
12406         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
12407
12408 2010-09-17  Eric Blake  <eblake@redhat.com>
12409
12410         fdutimensat: drop atflag validation
12411         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
12412         with valid fd, to close a race scenario where futimens is
12413         unsupported and FILE was replaced by a symlink.
12414         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
12415         accordingly.
12416         Suggested by Paul Eggert.
12417
12418 2010-09-16  Bruno Haible  <bruno@clisp.org>
12419
12420         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
12421         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
12422
12423 2010-09-16  Bruno Haible  <bruno@clisp.org>
12424
12425         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
12426         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
12427         login_tty exists.
12428         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12429
12430 2010-09-16  Bruno Haible  <bruno@clisp.org>
12431
12432         login_tty: Make the replacement code work on BSD systems.
12433         * lib/login_tty.c: Include <sys/ioctl.h>.
12434         (login_tty): Use ioctl TIOCSCTTY when available.
12435         * modules/login_tty (Depends-on): Add sys_ioctl.
12436         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12437
12438 2010-09-16  Bruno Haible  <bruno@clisp.org>
12439
12440         login_tty: Stricter unit test.
12441         * modules/login_tty-tests (Depends-on): Add tcgetsid.
12442         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
12443         and tcgetsid() after login_tty.
12444         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12445
12446 2010-09-16  Bruno Haible  <bruno@clisp.org>
12447
12448         New module 'tcgetsid'.
12449         * lib/tcgetsid.c: New file.
12450         * m4/tcgetsid.m4: New file.
12451         * modules/tcgetsid: New file.
12452         * modules/termios (Depends-on): Add c++defs, warn-on-use.
12453         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
12454         GNULIB_TCGETSID, HAVE_TCGETSID.
12455         * lib/termios.in.h: Include <sys/types.h>.
12456         (tcgetsid): New declaration.
12457         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
12458         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
12459         * doc/posix-functions/tcgetsid.texi: Mention the new module.
12460         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
12461
12462 2010-09-16  Bruno Haible  <bruno@clisp.org>
12463
12464         Tests for module 'termios'.
12465         * modules/termios-c++-tests: New file.
12466         * modules/termios-tests: New file.
12467         * tests/test-termios-c++.cc: New file.
12468         * tests/test-termios.c: New file.
12469
12470         New module 'termios'.
12471         * modules/termios: New file.
12472         * lib/termios.in.h: New file.
12473         * m4/termios_h.m4: New file.
12474         * doc/posix-headers/termios.texi: Mention the new module.
12475
12476 2010-09-16  Eric Blake  <eblake@redhat.com>
12477
12478         fdutimensat: add an atflag parameter
12479         * lib/fdutimensat.c (fdutimensat): Add new parameter.
12480         * lib/utimens.h (fdutimensat): Update prototype.
12481         * tests/test-fdutimensat.c: Adjust test to match.
12482         * NEWS: Document the change.
12483         Suggested by Paul Eggert.
12484
12485 2010-09-16  Bruno Haible  <bruno@clisp.org>
12486
12487         Fix typos in comments.
12488         * lib/striconveh.h: Fix typo in comment.
12489         * lib/login_tty.c (login_tty): Likewise.
12490
12491 2010-09-15  Bruno Haible  <bruno@clisp.org>
12492
12493         stdlib: clarify MirBSD WEXITSTATUS bug
12494         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
12495         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12496
12497 2010-09-15  Eric Blake  <eblake@redhat.com>
12498
12499         stdlib: work around MirBSD WEXITSTATUS bug
12500         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
12501         * modules/stdlib (Depends-on): Add sys_wait.
12502         * tests/test-sys_wait.c (main): Enhance test.
12503         * tests/test-stdlib.c (main): Likewise.
12504         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
12505
12506         docs: mention MacOS issue with WEXITSTATUS(constant)
12507         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
12508         issue.
12509         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12510
12511         strnlen: add tests
12512         * modules/strnlen-tests: New file.
12513         * tests/test-strnlen.c: Likewise.
12514
12515 2010-09-14  Bruno Haible  <bruno@clisp.org>
12516
12517         unistr/base: Avoid link errors when module 'libunistring' is also used.
12518         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
12519         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
12520         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
12521         Declare also when HAVE_LIBUNISTRING is set.
12522         Reported by Pádraig Brady <P@draigbrady.com>.
12523
12524 2010-09-14  Eric Blake  <eblake@redhat.com>
12525
12526         test-rawmemchr: make more robust
12527         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
12528         (Depends-on, configure.ac): Add needed prerequisites to use it.
12529         * modules/memchr-tests (Files, Depends-on, configure.ac):
12530         Likewise, to avoid implicit reliance on memchr module prereqs.
12531         * tests/test-memchr.c (main): Ensure proper masking.
12532         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
12533         reads.
12534
12535         memchr: detect glibc Alpha bug
12536         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
12537         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
12538         Alpha.
12539         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
12540         * tests/test-memchr.c (main): Enhance test.
12541         Reported by Nelson H. F. Beebe.
12542
12543 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12544
12545         fts, getcwd, glob: audit for dirfd returning -1
12546         * lib/fts.c (opendir): Remove #define; no longer used.
12547         (opendirat): New arg PDIR_FD.  All callers changed.
12548         (fts_build, _opendir2): Use new opendirat to avoid the need for
12549         dirfd, or for checking whether dirfd returns a negative value.
12550         Don't use opendir; always use openat followed by fdopendir.
12551         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
12552         it.
12553         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
12554         returns -1 here.
12555         * modules/fts (Depends-on): Remove dirfd.
12556         * modules/getcwd (Depends-on): Likewise.
12557
12558 2010-09-13  Eric Blake  <eblake@redhat.com>
12559
12560         float: fix broken MirBSD header
12561         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
12562         * doc/posix-headers/float.texi (float.h): Document it.
12563
12564 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12565
12566         fts: use O_NOFOLLOW to avoid race condition when opening a directory
12567         * lib/fts.c (opendirat): New arg extra_flags.
12568         (__opendir2): Use it to avoid following symlinks when opening
12569         a directory, if symlinks are not supposed to be followed.  See
12570         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
12571
12572         fdopendir: preserve argument fd before returning
12573         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
12574         (fdopendir_with_dup, fd_clone_opendir): New static functions.
12575         (fdopendir): Use them, arranging for FD to be open to the same
12576         directory that it was when it started.  (It might be temporarily
12577         closed while fdopendir is running, so this not thread- or
12578         signal-safe.)  Be careful to do the right thing even when file
12579         descriptors are scarce and dup fails with errno == EMFILE.  See
12580         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
12581
12582 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
12583
12584         regex: Pass the system regex if its only problem is 32-bit regoff_t.
12585         * NEWS: Document change.
12586         * m4/regex.m4: Disable test for regoff_t size.
12587
12588 2010-09-13  Jim Meyering  <meyering@redhat.com>
12589
12590         fts: don't operate on an invalid file descriptor after failed dup
12591         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
12592         negative file descriptor.
12593
12594 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
12595
12596         savedir: add streamsavedir, deprecate fdsavedir
12597         * NEWS: Mention deprecation of fdsavedir.
12598         * lib/savedir.c (streamsavedir): New extern function, whose name
12599         ends in "savedir" to be consistent with the others.  This differs
12600         from savedirstream in that it doesn't close its argument.  The
12601         next version of GNU tar will use this instead of fdsavedir, to
12602         avoid some race conditions and conserve file descriptors.
12603         (savedirstream): Reimplement as a wrapper around streamsavedir.
12604         (fdsavedir): Add a comment deprecating this function.  As far as
12605         I know, only GNU tar used it, and GNU tar doesn't need it any more.
12606         * lib/savedir.h (streamsavedir): New decl.
12607         (fdsavedir): Add a comment deprecating this.
12608
12609 2010-09-10  Bruno Haible  <bruno@clisp.org>
12610
12611         langinfo: Fix last commit.
12612         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
12613         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
12614         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12615
12616 2010-09-10  Bruno Haible  <bruno@clisp.org>
12617
12618         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
12619         * lib/progreloc.c (O_EXEC): Define fallback.
12620
12621 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
12622
12623         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
12624         * NEWS: Document recent changes to fcntl-h.
12625         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
12626         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
12627         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
12628         Similarly for O_SEARCH; this last was already true, but not documented.
12629         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
12630         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
12631         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
12632         Likewise.
12633         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
12634         is zero, not whether it is defined.
12635         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
12636         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
12637         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
12638
12639 2010-09-10  Bruno Haible  <bruno@clisp.org>
12640
12641         langinfo, nl_langinfo: Fix for IRIX 5.3.
12642         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
12643         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
12644         HAVE_LANGINFO_YESEXPR.
12645         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
12646         HAVE_LANGINFO_YESEXPR.
12647         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
12648         HAVE_LANGINFO_T_FMT_AMPM is 0.
12649         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
12650         HAVE_LANGINFO_YESEXPR is 0.
12651         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
12652         NOEXPR.
12653         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
12654         * doc/posix-functions/nl_langinfo.texi: Likewise.
12655         Reported by Eric Blake.
12656
12657 2010-09-10  Bruno Haible  <bruno@clisp.org>
12658
12659         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
12660         * doc/glibc-functions/login_tty.texi: Mention the include file problem
12661         on FreeBSD 8.0 and OpenBSD 4.6.
12662         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
12663         * m4/pty_h.m4 (gl_PTY_H): Likewise.
12664         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
12665         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
12666         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
12667         ac_includes_default.
12668         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12669
12670 2010-09-09  Eric Blake  <eblake@redhat.com>
12671
12672         strsignal: work around NetBSD bug
12673         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
12674         * lib/string.in.h (includes): Likewise.
12675         * doc/posix-functions/strsignal.texi (strsignal): Document the
12676         bug.
12677         Reported by Nelson H. F. Beebe.
12678
12679         gnulib-tool: work with NetBSD /bin/sh
12680         * gnulib-tool (func_cache_var, func_cache_lookup_module)
12681         (func_get_description, func_get_comment, func_get_status)
12682         (func_get_notice, func_get_applicability, func_get_filelist)
12683         (func_get_dependencies, func_get_autoconf_early_snippet)
12684         (func_get_autoconf_snippet, func_get_automake_snippet)
12685         (func_get_include_directive, func_get_link_directive)
12686         (func_get_license, func_get_maintainer, func_import): Avoid
12687         shell syntax errors from parsing syntax extensions.
12688
12689 2010-09-09  Bruno Haible  <bruno@clisp.org>
12690
12691         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
12692         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
12693         a reliable way to determine whether the 'alias' command works.
12694
12695 2010-09-08  Jim Meyering  <meyering@redhat.com>
12696
12697         init.sh: penalize a set-x-impaired shell; don't disqualify it
12698         * tests/init.sh: Too many shells corrupt application stderr when
12699         you set -x, so we can't afford to disqualify them, since at least
12700         on Irix-6.5, that would disqualify all bourne shells.
12701         Instead, use a two-pass approach.
12702         On the first pass, try to find a shell that meets the stricter
12703         condition that set -x does not corrupt stderr.
12704         If no shell meets the stricter condition, retest each candidate
12705         shell, but without that extra condition.  Finally, when
12706         VERBOSE=yes is requested and set -x might cause trouble, simply
12707         issue a warning and refrain from enabling debug output.
12708
12709 2010-09-08  Eric Blake  <eblake@redhat.com>
12710
12711         unsetenv: fix OpenBSD bug
12712         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
12713         * doc/posix-functions/unsetenv.texi (unsetenv): Update
12714         documentation.
12715         Reported by Jim Meyering.
12716
12717         strtod: work around IRIX 6.5 bug
12718         * lib/strtod.c (strtod): Reparse number on shorter string if
12719         exponent parse was invalid.
12720         * tests/test-strtod.c (main): Add check for "0x1p 2".
12721         Reported by Tom G. Christensen.
12722
12723         getopt: optimize previous patch
12724         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
12725         empty variable.  Speed up awk script.
12726         Reported by Paolo Bonzini.
12727
12728 2010-09-08  Jim Meyering  <meyering@redhat.com>
12729
12730         test.sh: disqualify shells for which set -x corrupts stderr
12731         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
12732         and OpenBSD 4.7.  They make it so with "set -x", environment settings
12733         appear in stderr output.  For example, this command:
12734             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
12735         prints "P=1" on those two systems:
12736
12737 2010-09-08  Bruno Haible  <bruno@clisp.org>
12738
12739         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
12740         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
12741         commands, because some shells ignore redirections when there is an
12742         error in the command lookup.
12743         Reported by Eric Blake.
12744
12745 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
12746
12747         * lib/regex.h: Fix a mention of `regex_compile' (should be
12748         `re_compile_pattern').
12749         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
12750         (re_set_registers): Correct name of parameter in comment.
12751
12752         * doc/regex.texi: Add documentation for missing syntax flags.
12753         Remove commented-out documentation of defunct syntax option
12754         RE_NO_EMPTY_ALTS.
12755         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
12756         Add documentation of re_set_registers.
12757         Document trick to re-use a pattern buffer by setting fastmap manually.
12758         Update documentation of struct re_pattern_buffer per public members.
12759         Uncomment documentation of equivalence class operators and
12760         collating symbol operators, since they are now implemented,
12761         Explain leftmost-longest matching in relation to alternatives.
12762         Tidy documentation of substring matching.
12763         Remove POSIX documentation, which is done better in
12764         glibc, and refer the reader there. Keep BSD API documentation, as
12765         that is not readily available elsewhere.
12766
12767 2010-09-07  Eric Blake  <eblake@redhat.com>
12768
12769         getopt: handle POSIXLY_CORRECT set but not exported
12770         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
12771         export state of POSIXLY_CORRECT, due to bash set -o posix.
12772         Reported by Dustin J. Mitchell.
12773
12774 2010-09-05  Bruno Haible  <bruno@clisp.org>
12775
12776         gnulib-tool: Highlight the changed options.
12777         * gnulib-tool (func_usage): Display the --import, --add-import,
12778         --remove-import explanations in bold font.
12779
12780 2010-09-06  Karl Berry  <karl@gnu.org>
12781
12782         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
12783
12784 2010-09-05  Bruno Haible  <bruno@clisp.org>
12785
12786         uniwidth/width: Update comment.
12787         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
12788         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
12789
12790 2010-09-05  Bruno Haible  <bruno@clisp.org>
12791
12792         isinf, isnan: Relax license.
12793         * modules/isinf (License): Change from GPL to LGPL, with consent from
12794         Ben Pfaff.
12795         * modules/isnan (License): Likewise.
12796         Requested by Ludovic Courtès.
12797
12798 2010-09-04  Bruno Haible  <bruno@clisp.org>
12799
12800         gnulib-tool: Help migration from --import to --add-import or --update.
12801         * gnulib-tool: Emit a verbose error message when --import is used
12802         without any module name.
12803
12804 2010-09-04  Bruno Haible  <bruno@clisp.org>
12805
12806         Update doc about gnulib-tool.
12807         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
12808         'gnulib-tool --update' in more detail.
12809         Reported by Eric Blake.
12810
12811 2010-09-04  Bruno Haible  <bruno@clisp.org>
12812
12813         gnulib-tool: Change --import. New options --add/remove-import.
12814         * gnulib-tool: New options --add-import, --remove-import.
12815         (func_usage): Document them.
12816         (have_associative): Define always.
12817         (func_import): In import mode, don't merge the specified settings with
12818         the cached settings. Implement remove-import mode.
12819         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
12820         Explain when to use them versus --import.
12821         (Simple update): Use --add-import instead of --import.
12822         * NEWS: Mention the change.
12823
12824 2010-09-04  Bruno Haible  <bruno@clisp.org>
12825
12826         * doc/gnulib-tool.texi (Initial import): Update paragraph about
12827         separate gnulib.mk.
12828
12829 2010-09-04  Bruno Haible  <bruno@clisp.org>
12830
12831         gnulib-tool: Don't talk about CVS any more.
12832         * gnulib-tool (func_usage, func_import): Write "version control"
12833         instead of CVS.
12834
12835 2010-09-04  Jim Meyering  <meyering@redhat.com>
12836
12837         maint.mk: avoid obscure sc_copyright_check failure in coreutils
12838         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
12839         false positives (whose names may be ill-chosen) when searching
12840         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
12841         would cause a false-positive.
12842
12843         avoid coreutils "make distcheck" failure
12844         Coreutils tests with an absolute build directory name that contains
12845         a space.  Not quoting this directory name caused a failure.
12846         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
12847         * tests/test-vc-list-files-cvs.sh: Likewise.
12848
12849 2010-09-04  Bruno Haible  <bruno@clisp.org>
12850
12851         gnulib-tool: Avoid error when run in a package without Makefile.am.
12852         * gnulib-tool: When collecting the m4dirs in a package that does not
12853         have a Makefile.am, eliminate those directories that contain no
12854         gnulib-cache.m4. Fix expression that counts these directories.
12855
12856 2010-09-04  Bruno Haible  <bruno@clisp.org>
12857
12858         update-copyright test: Improve output when perl is missing or too old.
12859         * tests/test-update-copyright.sh: Move test of Perl version down after
12860         the test whether Perl exists. Provide an explanation relating Perl's
12861         error message to Automake's SKIP: message.
12862
12863 2010-09-04  Bruno Haible  <bruno@clisp.org>
12864
12865         Don't augment PATH in TESTS_ENVIRONMENT.
12866         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
12867         set abs_aux_dir instead of augmenting PATH.
12868         * modules/vc-list-files-tests (Makefile.am): Likewise.
12869         * tests/test-update-copyright.sh: Augment PATH here.
12870         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
12871         path_prepend_.
12872         * tests/test-vc-list-files-git.sh: Likewise.
12873
12874 2010-09-04  Jim Meyering  <meyering@redhat.com>
12875
12876         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
12877         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
12878
12879 2010-09-04  Bruno Haible  <bruno@clisp.org>
12880
12881         strdup: Fix compilation error in C++ mode.
12882         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
12883         the macro.
12884
12885 2010-09-04  Bruno Haible  <bruno@clisp.org>
12886
12887         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
12888         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
12889         macro into a function.
12890         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12891
12892 2010-09-04  Bruno Haible  <bruno@clisp.org>
12893
12894         Set PATH_SEPARATOR the same way autoconf does.
12895         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
12896         the value of PATH_SEPARATOR the same way autoconf-generated configure
12897         scripts do.
12898         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
12899         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
12900
12901 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12902
12903         Set PATH_SEPARATOR the same way autoconf does.
12904         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
12905         the same way autoconf-generated configure scripts do.
12906         * posix-modules: Likewise.
12907
12908 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
12909
12910         hash: fix safe_hasher const typo
12911         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
12912         const; otherwise, there is a type error later.
12913
12914 2010-09-02  Jim Meyering  <meyering@redhat.com>
12915
12916         test-update-copyright.sh: require perl 5.8.0
12917         * tests/test-update-copyright.sh: Require 5.8.0,
12918         which Tom G. Christensen has confirmed is adequate,
12919         while 5.6.1 is not.
12920
12921 2010-09-02  Eric Blake  <eblake@redhat.com>
12922
12923         tests: init.sh improvements for re-exec'ing with zsh
12924         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
12925         -vx through shell re-exec.
12926         Reported by Tom G. Christensen.
12927
12928         wctype: fix typo in previous commit
12929         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
12930         Reported by Ludovic Courtès.
12931
12932 2010-09-02  Jim Meyering  <meyering@redhat.com>
12933
12934         test-update-copyright.sh: skip test if Perl is too old
12935         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
12936         Reported by Tom G. Christensen.
12937
12938 2010-09-02  Bruno Haible  <bruno@clisp.org>
12939
12940         wctype: Avoid compilation error on IRIX 6.5.30.
12941         * lib/wctype.in.h (iswblank): Declare with a replacement if
12942         REPLACE_ISWBLANK is set.
12943         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
12944         declared. Set REPLACE_ISWBLANK.
12945         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
12946         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
12947         * doc/posix-headers/wctype.texi: Likewise.
12948         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12949
12950 2010-09-01  Bruno Haible  <bruno@clisp.org>
12951
12952         New module 'socketlib'.
12953         * modules/socketlib: New file.
12954         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
12955         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
12956         * modules/sockets (Depends-on): Add socketlib.
12957         Suggested by Sam Steingold <sds@gnu.org>.
12958
12959 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12960
12961         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
12962
12963         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
12964         when one needs search access to a directory but not read access.
12965         On systems where it is available, it works in some cases where
12966         O_RDONLY does not, namely on directories that are searchable but
12967         not readable, and which need only to be searchable.  If O_SEARCH
12968         is not available, fall back to the traditional method of using
12969         O_RDONLY.
12970
12971         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
12972         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
12973         when opening a directory that needs only to be searchable.
12974         * lib/chdir-safer.c (chdir_no_follow): Likewise.
12975         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
12976         * lib/openat-proc.c (openat_proc_name): Likewise.
12977         * lib/openat.c (openat_needs_fchdir): Likewise.
12978         * lib/save-cwd.c (save_cwd): Likewise.
12979         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
12980
12981 2010-08-28  Bruno Haible  <bruno@clisp.org>
12982
12983         New module 'host-cpu-c-abi'.
12984         * modules/host-cpu-c-abi: New file.
12985         * m4/host-cpu-c-abi.m4: New file, based on part of
12986         clisp/src/m4/general.m4.
12987         Requested by Sam Steingold <sds@gnu.org>.
12988
12989 2010-08-31  Eric Blake  <eblake@redhat.com>
12990         and Jim Meyering  <meyering@redhat.com>
12991
12992         hash: factor, and guard against misbehaving hasher function
12993         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
12994         of table->hasher's return value.  Also protect against a hash value
12995         so large that adding it to table->bucket results in a NULL pointer.
12996         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
12997         Use it in place of open-coded check-and-abort.
12998
12999 2010-08-30  Bruno Haible  <bruno@clisp.org>
13000
13001         hash: silence spurious clang warning
13002         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
13003         Reported by Eric Blake.
13004
13005 2010-08-30  Eric Blake  <eblake@redhat.com>
13006
13007         strstr, memmem, strcasestr: avoid leaked shell message
13008         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
13009         FreeBSD.
13010         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13011         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13012
13013         tests: silence clang warning
13014         * tests/test-malloca.c (do_allocation): Avoid dead store.
13015
13016 2010-08-29  Bruno Haible  <bruno@clisp.org>
13017
13018         gettext: Fix recent mistake.
13019         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
13020
13021 2010-08-29  Bruno Haible  <bruno@clisp.org>
13022
13023         selinux-h: Offer a --without-selinux option.
13024         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
13025         --without-selinux was specified, skip all tests and define
13026         HAVE_SELINUX_SELINUX_H to 0.
13027         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
13028         set LIB_SELINUX to empty.
13029         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
13030         gl_LIBSELINUX. If --without-selinux was specified, replace
13031         selinux/context.h.
13032         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
13033
13034 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13035             Bruno Haible  <bruno@clisp.org>
13036
13037         Make the module 'realloc-gnu' work again on AIX and OSF/1.
13038         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
13039         of HAVE_REALLOC.
13040         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
13041         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
13042         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
13043         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13044
13045 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13046             Bruno Haible  <bruno@clisp.org>
13047
13048         Make the module 'calloc-gnu' work again on AIX and OSF/1.
13049         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
13050         HAVE_CALLOC.
13051         * lib/xmalloc.c: Update accordingly.
13052         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
13053         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
13054         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
13055
13056 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13057             Bruno Haible  <bruno@clisp.org>
13058
13059         Make the module 'malloc-gnu' work again on AIX and OSF/1.
13060         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
13061         HAVE_MALLOC.
13062         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
13063         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
13064         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13065
13066 2010-08-29  Bruno Haible  <bruno@clisp.org>
13067
13068         Update modules list.
13069         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
13070         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
13071         (String handling <string.h>): Add astrxfrm.
13072         (File system functions): Add readlinkat.
13073
13074 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13075
13076         Tests for module 'realloc-gnu'.
13077         * modules/realloc-gnu-tests: New file.
13078         * tests/test-realloc-gnu.c: New file.
13079
13080         Tests for module 'calloc-gnu'.
13081         * modules/calloc-gnu-tests: New file.
13082         * tests/test-calloc-gnu.c: New file.
13083
13084         Tests for module 'malloc-gnu'.
13085         * modules/malloc-gnu-tests: New file.
13086         * tests/test-malloc-gnu.c: New file.
13087
13088 2010-08-28  Bruno Haible  <bruno@clisp.org>
13089
13090         Rename module 'realloc' -> 'realloc-gnu'.
13091         * modules/realloc-gnu: New file, copied from modules/realloc.
13092         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
13093         obsolete.
13094         * modules/mgetgroups (Depends-on): Update.
13095         * doc/posix-functions/realloc.texi: Update.
13096         * NEWS: Mention the change.
13097
13098         Rename module 'calloc' -> 'calloc-gnu'.
13099         * modules/calloc-gnu: New file, copied from modules/calloc.
13100         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
13101         obsolete.
13102         * doc/posix-functions/calloc.texi: Update.
13103         * NEWS: Mention the change.
13104
13105         Rename module 'malloc' -> 'malloc-gnu'.
13106         * modules/malloc-gnu: New file, copied from modules/malloc.
13107         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
13108         obsolete.
13109         * modules/argp (Depends-on): Update.
13110         * modules/regex (Depends-on): Update.
13111         * doc/posix-functions/malloc.texi: Update.
13112         * NEWS: Mention the change.
13113
13114 2010-08-28  Eric Blake  <eblake@redhat.com>
13115
13116         pread, pwrite: add missing dependency
13117         * modules/pread (Depends-on): Add extensions.
13118         * modules/pwrite (Depends-on): Likewise.
13119
13120 2010-08-28  Bruno Haible  <bruno@clisp.org>
13121
13122         unistr/u*-strchr: Fix tests dependencies.
13123         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
13124         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
13125         Reported by Ian Beckwith <ianb@erislabs.net>.
13126
13127 2010-08-28  Bruno Haible  <bruno@clisp.org>
13128
13129         read-file: Don't occupy too much unused memory.
13130         * lib/read-file.c (fread_file): Shrink the buffer at the end.
13131
13132 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
13133             Eric Blake  <eblake@redhat.com>
13134             Bruno Haible  <bruno@clisp.org>
13135
13136         read-file: Avoid memory reallocations with regular files.
13137         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
13138         (fread_file): With regular files, use the remaining length as the
13139         initial buffer size.  Check against overflow.
13140         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
13141         sys_stat.
13142
13143 2010-08-28  Bruno Haible  <bruno@clisp.org>
13144
13145         ftello: Relax license.
13146         * modules/ftello (License): Relax to LGPLv2+.
13147         Reported by Eric Blake.
13148
13149 2010-08-28  Bruno Haible  <bruno@clisp.org>
13150
13151         Avoid relocwrapper link errors due to gnulib replacement functions.
13152         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
13153         function.
13154         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13155
13156 2010-08-28  Bruno Haible  <bruno@clisp.org>
13157
13158         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
13159         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
13160         defined.
13161         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
13162         Suggested by Eric Blake.
13163
13164 2010-08-28  Bruno Haible  <bruno@clisp.org>
13165
13166         sys_socket, netdb: Ensure socklen_t gets defined.
13167         * modules/sys_socket (Depends-on): Add socklen.
13168         * modules/netdb (Depends-on): Likewise.
13169         * modules/getaddrinfo (Depends-on): Remove socklen.
13170         * modules/getsockopt (Depends-on): Likewise.
13171         * modules/setsockopt (Depends-on): Likewise.
13172         * tests/test-sys_socket.c: Check that socklen_t is defined.
13173         * tests/test-netdb.c: Likewise.
13174         * m4/socklen.m4: Update comments.
13175         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13176
13177 2010-08-27  Eric Blake  <eblake@redhat.com>
13178
13179         login_tty: add missing dependency
13180         * modules/login_tty (Depends-on): Add pty.
13181
13182 2010-08-26  Eric Blake  <eblake@redhat.com>
13183
13184         lib-symbol-versions: fix m4 quoting
13185         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
13186         format for AC_LINK_IFELSE.
13187
13188         glob: fix compile test
13189         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
13190
13191         btowc: fix missing file
13192         * modules/btowc (Files): Also ship locale-fr.m4.
13193
13194         lseek: fix link test
13195         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
13196         AC_LINK_IFELSE.
13197
13198         include_next: silence autoconf 2.68 warning
13199         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
13200         AC_COMPILE_IFELSE as special.
13201         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
13202         autoconf < 2.68.
13203
13204         acl: fix compilation test
13205         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
13206         AC_COMPILE_IFELSE.
13207
13208 2010-08-26  Bruno Haible  <bruno@clisp.org>
13209
13210         Modernize AC_TRY_RUN invocations.
13211         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
13212         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
13213         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
13214         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
13215         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
13216         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13217         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13218         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13219         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13220         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13221         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13222         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13223         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13224         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13225         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13226         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13227         gl_MBRLEN_NUL_RETVAL): Likewise.
13228         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13229         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13230         Likewise.
13231         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13232         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13233         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13234         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13235         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
13236         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
13237         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
13238         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13239         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
13240         Likewise.
13241         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
13242         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
13243         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13244         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13245         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13246         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
13247         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13248         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
13249         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13250         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13251
13252 2010-08-26  Bruno Haible  <bruno@clisp.org>
13253
13254         Modernize AC_TRY_LINK invocations.
13255         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
13256         AC_TRY_LINK.
13257         * m4/argp.m4 (gl_ARGP): Likewise.
13258         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13259         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13260         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
13261         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13262         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13263         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
13264         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13265         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13266         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
13267         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
13268         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
13269         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
13270         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
13271         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13272         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
13273         * m4/hostent.m4 (gl_HOSTENT): Likewise.
13274         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13275         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
13276         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
13277         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
13278         Likewise.
13279         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
13280         Likewise.
13281         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
13282         Likewise.
13283         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
13284         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
13285         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
13286         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13287         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13288         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
13289         * m4/servent.m4 (gl_SERVENT): Likewise.
13290         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13291         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13292         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13293         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13294         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13295         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13296         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13297         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13298         * modules/tsearch-tests (configure.ac): Likewise.
13299
13300 2010-08-26  Bruno Haible  <bruno@clisp.org>
13301
13302         Modernize AC_TRY_COMPILE invocations.
13303         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
13304         AC_TRY_COMPILE.
13305         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
13306         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
13307         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
13308         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
13309         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
13310         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
13311         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13312         * m4/lock.m4 (gl_LOCK): Likewise.
13313         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
13314         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
13315         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
13316         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
13317         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
13318         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
13319         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
13320         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
13321         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
13322         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
13323         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
13324         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
13325         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
13326         extraneous semicolon.
13327
13328 2010-08-26  Jim Meyering  <meyering@redhat.com>
13329
13330         stat-time: relax license LGPL
13331         * modules/stat-time (License): Change from GPL to LGPL,
13332         with consent from all contributors, for use in libguile.
13333         Requested by Ludovic Courtès.
13334
13335 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
13336
13337         poll: return immediately on POLLHUP.
13338         * lib/poll.c (poll): Always set timeout before wait_timeout is
13339         computed.
13340
13341 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13342
13343         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
13344         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
13345         rmdir ("dir/.//"), unlinkat.
13346
13347 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13348
13349         stdbool: avoid spurious failure with modern xlc
13350         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13351
13352 2010-08-24  Bruno Haible  <bruno@clisp.org>
13353
13354         getloadavg: simplify code
13355         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
13356         gl_have_func. Update comments.
13357
13358 2010-08-24  Eric Blake  <eblake@redhat.com>
13359
13360         getloadavg: don't define SVR4 on cygwin
13361         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
13362         only define SVR4 when -lkvm is required.
13363         Reported by Yaakov Selkowitz.
13364
13365 2010-08-24  Bruno Haible  <bruno@clisp.org>
13366
13367         priv-set: fix comment
13368         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
13369
13370 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
13371
13372         priv-set: fix comments
13373         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
13374         to match code, as suggested by David Bartley in:
13375         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
13376
13377 2010-08-23  Eric Blake  <eblake@redhat.com>
13378
13379         stdbool: avoid rejecting clang
13380         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13381         * tests/test-stdbool.c: Enable more tests if using the system
13382         <stdbool.h> instead of the gnulib replacement.
13383         (main): Move xlc bug test to a runtime test for all compilers.
13384         Reported by Anders Kaseorg.
13385
13386         argz: fix shell quoting issue
13387         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
13388         Reported by Charles Wilson.
13389
13390 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
13391             Erik Faye-Lund <kusmabite@gmail.com>
13392
13393         poll, select: handle ERROR_BROKEN_PIPE.
13394         * lib/poll.c (win32_compute_revents): Return POLLHUP when
13395         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13396         * lib/select.c (win32_compute_revents): Do not mark a pipe
13397         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13398
13399 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
13400
13401         fts: allow compilation with C++
13402         * lib/fts_.h: Specify extern "C" linkage with C++.
13403
13404 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13405
13406         Fix gnulib-tool sed script de-commentation for AIX sed.
13407         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
13408         sed.
13409
13410 2010-08-17  Eric Blake  <eblake@redhat.com>
13411
13412         test-stddef: test for (some) offsetof bugs
13413         * tests/test-stddef.c: Enhance test to ensure correct type of
13414         offsetof.
13415         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
13416         that we are not fixing at this time.
13417
13418 2010-08-15  Bruno Haible  <bruno@clisp.org>
13419
13420         stpncpy: Allow stpncpy to be defined as a macro.
13421         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
13422         if it's already correctly declared.
13423         * lib/string.in.h (stpncpy): Undefine before redefining.
13424         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
13425
13426 2010-08-14  Bruno Haible  <bruno@clisp.org>
13427
13428         Rename module 'memxfrm' to 'amemxfrm'.
13429         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
13430         (amemxfrm): Renamed from memxfrm.
13431         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
13432         (amemxfrm): Renamed from memxfrm.
13433         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
13434         * NEWS: Mention the change.
13435         * MODULES.html.sh (String handling <string.h>): Update.
13436         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
13437         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
13438         * lib/unicase/u16-casexfrm.c: Likewise.
13439         * lib/unicase/u32-casexfrm.c: Likewise.
13440         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
13441         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
13442         * lib/uninorm/u16-normxfrm.c: Likewise.
13443         * lib/uninorm/u32-normxfrm.c: Likewise.
13444         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
13445         memxfrm.
13446         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
13447         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
13448         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
13449         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
13450         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
13451         Suggested by Paul Eggert.
13452
13453 2010-08-14  Bruno Haible  <bruno@clisp.org>
13454
13455         Tests for module 'astrxfrm'.
13456         * modules/astrxfrm-tests: New file.
13457         * tests/test-astrxfrm.c: New file.
13458
13459         New module 'astrxfrm'.
13460         * lib/astrxfrm.h: New file.
13461         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
13462         * modules/astrxfrm: New file.
13463
13464 2010-08-14  Reuben Thomas <rrt@sc3d.org>
13465
13466         regex: Tweak doc.
13467         * doc/regex.texi (Overview): Don't mention regex.c.
13468         (GNU Regular Expression Compiling): Likewise.
13469         (Match-end-of-line Operator): Mention 'not_eol'.
13470
13471 2010-08-14  Brian Gough  <bjg@gnu.org>
13472             Bruno Haible  <bruno@clisp.org>
13473
13474         git-merge-changelog: add doc relating to use with bzr and hg.
13475         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
13476
13477 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
13478
13479         pthread: fix pthread.h creation for srcdir != builddir
13480         * modules/pthread (Makefile.am): Fix the rule to work also in a
13481         non-srcdir build.
13482
13483 2010-08-13  Karl Berry  <karl@gnu.org>
13484
13485         * doc/regex.texi (Predefined Syntaxes): @smallexample.
13486         * doc/posix-*/*: force line break before @url of POSIX
13487         specifications.
13488         Suggested by Werner Lemberg.
13489
13490 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13491
13492         strtod: fix const diagnostic
13493         * lib/strtod.c (strtod): Don't assign const char * to char *,
13494         as this elicits a warning from GCC when warnings are enabled.
13495
13496 2010-08-10  Pádraig Brady <P@draigbrady.com>
13497         and Eric Blake  <eblake@redhat.com>
13498
13499         copy-acl: ignore ENOTSUP on HP-UX
13500         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
13501         so that it is available for HP-UX.
13502         * lib/copy-acl.c (qcopy_acl): Use it.
13503         Reported by Patrick M. Callahan.
13504
13505 2010-08-10  Eric Blake  <eblake@redhat.com>
13506
13507         open, chown: relax license
13508         * modules/open (License): Change to LGPLv2+, with consent by all
13509         authors, for use in augeas.
13510         * modules/chown (License): Likewise.
13511         * modules/lchown (Likewise): Likewise.
13512         Requested by Adam Stokes.
13513
13514 2010-08-09  Karl Berry  <karl@gnu.org>
13515
13516         * build-aux/ar-lib: new file, import from Automake.
13517         * config/srclist.txt: autocheck for updates.
13518
13519 2010-08-09  Eric Blake  <eblake@redhat.com>
13520
13521         readlinkat: adjust client modules
13522         * modules/areadlinkat (Depends-on): Use readlinkat, not
13523         symlinkat.
13524         * modules/areadlinkat-with-size (Depends-on): Likewise.
13525
13526         mknod: be more vocal about danger of running tests as root
13527         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
13528         root, since that is just asking for problems.
13529         Suggested by Bruno Haible, based on a report by Rainer Tammer.
13530
13531         readlinkat: split into its own module
13532         * modules/symlinkat: Split readlinkat...
13533         * modules/readlinkat: ...into separate module.
13534         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
13535         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
13536         * lib/symlinkat.c (readlinkat): Move...
13537         * lib/readlinkat.c: ...into new file.
13538         * modules/symlinkat-tests: Split readlinkat test...
13539         * modules/readlinkat-tests: ...into separate module.
13540         * tests/test-symlinkat.c: Split...
13541         * tests/test-readlinkat.c: ...into new file.
13542         * NEWS: Document the split.
13543         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13544         * lib/unistd.in.h (readlinkat): Likewise.
13545         Suggested by Bruno Haible.
13546
13547 2010-08-08  Bruno Haible  <bruno@clisp.org>
13548
13549         memxfrm: Speed up.
13550         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
13551         that usually only one call to strxfrm is necessary for each string
13552         part.
13553         Reported by Paul Eggert <eggert@cs.ucla.edu>.
13554
13555 2010-08-07  Karl Berry  <karl@gnu.org>
13556
13557         * doc/posix-headers/limits.texi,
13558         * doc/posix-functions/malloc.texi,
13559         * doc/posix-functions/strsignal.texi: missing @item.
13560         * doc/ld-version-script.texi: spurious leading i.
13561         * doc/regex.texi (Interval Operators): no commas inside @var.
13562
13563 2010-08-01  Bruno Haible  <bruno@clisp.org>
13564
13565         Integrate the regex documentation.
13566         * doc/gnulib.texi: Define 'cn' index.
13567         (Regular expressions): New a chapter that includes regex.texi and
13568         regexprops-generic.texi.
13569         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
13570         syntax.
13571
13572         Whitespace cleanup.
13573         * doc/regex.texi: Remove trailing spaces.
13574
13575         Add regex documentation.
13576         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
13577         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
13578         Written by Kathy A. Hargreaves and Karl Berry.
13579
13580 2010-08-01  Bruno Haible  <bruno@clisp.org>
13581
13582         link: Update documentation.
13583         * doc/posix-functions/link.texi: Update regarding Solaris.
13584
13585 2010-07-31  Bruno Haible  <bruno@clisp.org>
13586
13587         Update modules list.
13588         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
13589         (String handling <string.h>): Add memcmp2, memxfrm.
13590         (Container data structures): Add xlist, xsublist, xoset.
13591         (Core language properties): Add alignof, unused-parameter.
13592         (Process control, Numeric conversion functions <stdlib.h>): Renamed
13593         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
13594         (Unibyte characters <ctype.h>): New section.
13595         (String handling <string.h>): New section.
13596         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
13597         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
13598         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
13599         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
13600         tan, tanh, tanl, y0, y1, yn.
13601         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
13602         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
13603         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
13604         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
13605         unlockpt, vdprintf, vdprintf-posix.
13606         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
13607         (File system functions): Add concat-filename, sys_file, sys_ioctl,
13608         xconcat-filename.
13609         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
13610         getdtablesize, pipe2, pipe2-safer.
13611         (Security): New section.
13612         (Networking functions): Add accept4.
13613         (Signal handling): Add sigpipe.
13614         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
13615         mbmemcasecoll.
13616         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
13617         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
13618         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
13619         pipe-filter-ii.
13620         (Misc): Add argp-version-etc, login_tty, parse-duration.
13621
13622 2010-07-31  Bruno Haible  <bruno@clisp.org>
13623
13624         Improve doc in MODULES.html.
13625         * modules/linkat (Description): Add the word "function".
13626         * modules/mkfifo (Description): Likewise.
13627         * modules/mknod (Description): Likewise.
13628         * modules/remove (Description): Likewise.
13629         * modules/renameat (Description): Likewise.
13630         * modules/stat (Description): Likewise.
13631         * modules/symlink (Description): Likewise.
13632         * modules/unlink (Description): Likewise.
13633
13634 2010-07-31  Bruno Haible  <bruno@clisp.org>
13635
13636         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
13637         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
13638         option --enable/disable-c++ instead of --enable/disable-cxx.
13639         * NEWS: Mention the change.
13640
13641 2010-07-31  Bruno Haible  <bruno@clisp.org>
13642
13643         readlink, areadlink: Relax test a bit.
13644         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
13645         alternative to ENOTDIR.
13646         * tests/test-areadlink.h (test_areadlink): Likewise.
13647         Reported by Rainer Tammer.
13648
13649 2010-07-31  Bruno Haible  <bruno@clisp.org>
13650
13651         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
13652         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
13653         character, perform the search using U_STRCHR.
13654         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
13655         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
13656         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
13657         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
13658         Suggested by Paolo Bonzini.
13659
13660 2010-07-31  Bruno Haible  <bruno@clisp.org>
13661
13662         unistr/u*-strstr: Fix dependencies.
13663         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
13664         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
13665         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
13666
13667 2010-07-31  Bruno Haible  <bruno@clisp.org>
13668
13669         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
13670         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
13671         the beginning of the loop.
13672         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
13673         cases in 'switch' statement.
13674
13675         unistr/u8-strchr: Fix several bugs.
13676         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
13677         the string. When not found, return NULL, not a pointer near the end.
13678
13679         More tests for unistr/u8-strchr.
13680         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
13681         that the function does not read past the first occurrence of the byte
13682         being searched.
13683         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
13684         * tests/unistr/test-u16-strchr.c (main): New function.
13685         * tests/unistr/test-u32-strchr.c (main): New function.
13686
13687 2010-07-31  Bruno Haible  <bruno@clisp.org>
13688
13689         posix-modules: Ignore backup files of documentation files.
13690         * posix-modules: grep only through files named *.texi.
13691
13692 2010-07-31  Bruno Haible  <bruno@clisp.org>
13693
13694         symlinkat: Fix documentation.
13695         * doc/posix-functions/readlinkat.texi: Fix module name.
13696
13697 2010-07-31  Bruno Haible  <bruno@clisp.org>
13698
13699         fchownat: Replace also when chown has the trailing slash bug.
13700         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
13701         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
13702         introduced on 2010-04-10.
13703         Reported by Rainer Tammer.
13704
13705 2010-07-31  Bruno Haible  <bruno@clisp.org>
13706
13707         linkat: Work around AIX 7.1 bug.
13708         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
13709         whether linkat handles trailing slash correctly. If not, replace linkat
13710         and define LINKAT_TRAILING_SLASH_BUG.
13711         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
13712         check whether (fd1,file1) points to a directory if file1 or file2 ends
13713         in a slash. Code taken from lib/link.c.
13714         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
13715         Reported by Rainer Tammer.
13716
13717 2010-07-31  Bruno Haible  <bruno@clisp.org>
13718
13719         Correctly determine whether pow is available in libc on AIX 7 with xlc.
13720         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
13721         This disables an xlc optimization that was causing wrong test results.
13722         Reported by Rainer Tammer.
13723
13724 2010-07-31  Bruno Haible  <bruno@clisp.org>
13725
13726         iconv: Work around AIX 6.1..7.1 bug.
13727         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
13728         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
13729         cross-compiling, guess no on all versions of AIX.
13730         Reported by Rainer Tammer.
13731
13732 2010-07-31  Bruno Haible  <bruno@clisp.org>
13733
13734         readlink: Relax test a bit.
13735         * tests/test-readlink.h (test_readlink): Allow different errno value
13736         when readlink is called with a file name that ends in / and refers to
13737         a file.
13738         Suggested by Eric Blake.
13739         Reported by Rainer Tammer.
13740
13741 2010-07-31  Bruno Haible  <bruno@clisp.org>
13742
13743         copysign: Does not require -lm on glibc systems.
13744         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
13745         gl_COMMON_DOUBLE_MATHFUNC.
13746         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
13747
13748 2010-07-31  Bruno Haible  <bruno@clisp.org>
13749
13750         duplocale: Work around AIX 7.1 bug.
13751         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
13752         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
13753         * lib/duplocale.c (rpl_duplocale): Update comment.
13754         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
13755         Reported by Rainer Tammer.
13756
13757 2010-07-30  Bruno Haible  <bruno@clisp.org>
13758
13759         dirfd: Avoid link error on AIX 7.1.
13760         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
13761         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
13762         exist, set REPLACE_DIRFD.
13763         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
13764         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
13765         * doc/posix-functions/dirfd.texi: Update.
13766         Reported by Rainer Tammer.
13767
13768 2010-07-30  Eric Blake  <eblake@redhat.com>
13769
13770         strtod: next round of AIX fixes
13771         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
13772         exponent.
13773         * tests/test-strtod.c (main): Enhance tests.
13774         * doc/posix-functions/strtod.texi (strtod): Document next bug.
13775         Reported by Rainer Tammer.
13776
13777         futimens: fix configure check
13778         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
13779         Reported by Bruno Haible.
13780
13781 2010-07-30  Bruno Haible  <bruno@clisp.org>
13782
13783         getline: Update regarding AIX.
13784         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
13785         Reported by Rainer Tammer.
13786
13787 2010-07-30  Bruno Haible  <bruno@clisp.org>
13788
13789         wcwidth: Drop replacement on AIX 7.
13790         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
13791         AIX 7.
13792         Reported by Rainer Tammer.
13793
13794 2010-07-30  Bruno Haible  <bruno@clisp.org>
13795
13796         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
13797         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
13798         a 'char *'.
13799         Reported by Rainer Tammer.
13800
13801 2010-07-30  Bruno Haible  <bruno@clisp.org>
13802
13803         unlink: Update regarding AIX.
13804         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
13805         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
13806         Reported by Rainer Tammer.
13807
13808 2010-07-30  Bruno Haible  <bruno@clisp.org>
13809
13810         symlink: Update regarding AIX.
13811         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
13812         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
13813         Reported by Rainer Tammer.
13814
13815 2010-07-30  Bruno Haible  <bruno@clisp.org>
13816
13817         strndup: Update regarding AIX.
13818         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
13819         AIX 7.
13820         Reported by Rainer Tammer.
13821
13822 2010-07-30  Bruno Haible  <bruno@clisp.org>
13823
13824         stat: Update regarding AIX.
13825         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
13826         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
13827         Reported by Rainer Tammer.
13828
13829 2010-07-30  Bruno Haible  <bruno@clisp.org>
13830
13831         truncl: Fix autoconf test.
13832         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
13833         whether truncl works.
13834         Reported by Rainer Tammer.
13835
13836 2010-07-30  Bruno Haible  <bruno@clisp.org>
13837
13838         round: Update regarding AIX.
13839         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
13840         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
13841         Reported by Rainer Tammer.
13842
13843 2010-07-30  Bruno Haible  <bruno@clisp.org>
13844
13845         rename: Update regarding AIX.
13846         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
13847         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
13848         Reported by Rainer Tammer.
13849
13850 2010-07-30  Bruno Haible  <bruno@clisp.org>
13851
13852         printf.m4: Update regarding AIX.
13853         * m4/printf.m4: Update comments regarding AIX.
13854         Reported by Rainer Tammer.
13855
13856 2010-07-30  Bruno Haible  <bruno@clisp.org>
13857
13858         iconv: Update regarding AIX.
13859         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
13860         AIX 7.
13861         Reported by Rainer Tammer.
13862
13863 2010-07-30  Bruno Haible  <bruno@clisp.org>
13864
13865         getopt: Update regarding AIX.
13866         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
13867         no on AIX.
13868         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
13869         Reported by Rainer Tammer.
13870
13871 2010-07-30  Bruno Haible  <bruno@clisp.org>
13872
13873         ldexpl; Update regarding AIX.
13874         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
13875         on AIX 7.
13876         Reported by Rainer Tammer.
13877
13878 2010-07-30  Bruno Haible  <bruno@clisp.org>
13879
13880         frexpl: Update regarding AIX.
13881         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
13882         on AIX 7.
13883         Reported by Rainer Tammer.
13884
13885 2010-07-30  Bruno Haible  <bruno@clisp.org>
13886
13887         open, fopen: Update regarding AIX.
13888         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
13889         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13890         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
13891         * doc/posix-functions/fopen.texi: Likewise.
13892         Reported by Rainer Tammer.
13893
13894 2010-07-30  Bruno Haible  <bruno@clisp.org>
13895
13896         chown: Update doc regarding AIX.
13897         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
13898         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
13899         Reported by Rainer Tammer.
13900
13901 2010-07-30  Eric Blake  <eblake@redhat.com>
13902
13903         strtod: fix bug in replacement function on AIX
13904         * lib/strtod.c (strtod): Special case broken "0x" parse in
13905         underlying strtod.
13906         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
13907         * doc/posix-functions/strtod.texi (strtod): Likewise.
13908         Reported by Rainer Tammer.
13909
13910 2010-07-30  Bruno Haible  <bruno@clisp.org>
13911
13912         mbrlen: Fix cross-compilation guess for AIX.
13913         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
13914         guess. Leftover from 2008-12-22.
13915
13916 2010-07-30  Bruno Haible  <bruno@clisp.org>
13917
13918         mbrtowc: Fix cross-compilation guess for AIX.
13919         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
13920         guess. Leftover from 2008-12-21.
13921
13922 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
13923
13924         init.sh: work around trap limitation of some shells
13925         * tests/init.sh (setup_): Move exit trap outside of shell function.
13926
13927 2010-07-29  Eric Blake  <eblake@redhat.com>
13928
13929         strtod: aid debugging
13930         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
13931         understanding why strtod is rejected.
13932
13933 2010-07-28  Bruno Haible  <bruno@clisp.org>
13934
13935         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
13936         * lib/unistr/u8-chr.c: Include <string.h>.
13937         * tests/unistr/test-u8-chr.c: Likewise.
13938         * tests/unistr/test-u16-chr.c: Likewise.
13939         * tests/unistr/test-u32-chr.c: Likewise.
13940         * tests/unistr/test-u8-strchr.c: Likewise.
13941         * tests/unistr/test-u16-strchr.c: Likewise.
13942         * tests/unistr/test-u32-strchr.c: Likewise.
13943         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
13944         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
13945         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
13946         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
13947
13948 2010-07-28  Bruno Haible  <bruno@clisp.org>
13949
13950         Use spaces for indentation, not tabs.
13951         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
13952
13953 2010-07-27  Bruno Haible  <bruno@clisp.org>
13954
13955         mbspcasecmp: Fix function specification.
13956         * lib/string.in.h (mbspcasecmp): Fix specification comment.
13957         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
13958         Reported by Eric Blake <eblake@redhat.com>.
13959
13960 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
13961
13962         timespec: use cast and not conditional, as truncation isn't possible
13963         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
13964         instead of a conditional.  Comment about the situation in more detail.
13965         This undoes most of the 2009-10-29 patch.
13966
13967 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
13968
13969         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
13970         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
13971         * lib/unistr/u8-strchr.c: Likewise.
13972         * modules/unistr/u8-chr: Depend on memchr.
13973
13974         unistr/u*-strchr: add tests
13975         * modules/unistr/u8-strchr-tests: New file.
13976         * modules/unistr/u16-strchr-tests: New file.
13977         * modules/unistr/u32-strchr-tests: New file.
13978         * tests/unistr/test-strchr.h: New file.
13979         * tests/unistr/test-u8-strchr.c: New file.
13980         * tests/unistr/test-u16-strchr.c: New file.
13981         * tests/unistr/test-u32-strchr.c: New file.
13982
13983         unistr/u*-chr: test multibyte sequences more
13984         * tests/unistr/test-chr.h: Do complete testing of the characters in the
13985         test vector.
13986         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
13987         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
13988         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
13989
13990         unistr/u*-chr: test multibyte sequences
13991         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
13992
13993         unistr/u*-chr: prepare for multibyte tests
13994         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
13995         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
13996         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
13997         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
13998         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
13999         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
14000
14001 2010-07-18  Bruno Haible  <bruno@clisp.org>
14002
14003         unistr/u8-strchr: Optimize non-ASCII argument case.
14004         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
14005         because the first byte often matches anyway.
14006         Reported by Pádraig Brady <P@draigbrady.com>.
14007
14008 2010-07-15  Karl Berry  <karl@gnu.org>
14009
14010         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
14011
14012 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
14013
14014         getcwd: on Solaris, work better if ancestors are inaccessible
14015         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
14016         buffer and size, try again with a large buffer.  This works better
14017         on Solaris, since its getcwd succeeds even if the path to the root
14018         is inaccessible, and this is helpful in common cases such as .zfs
14019         hidden directories.  Problem reported by J Chapman Flack in
14020         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
14021         Use system getcwd if it's declared, not merely if it's partly
14022         working; use the partly-working test only to avoid needless effort
14023         if the system getcwd fails.
14024         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
14025         comment that was already obsolete and is now even more obsolete.
14026         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
14027         now might call strdup.
14028
14029 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
14030
14031         pthread: Add enough so that coreutils/src/sort.c compiles.
14032         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
14033         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
14034         gnulib. Include <sched.h> and <time.h>, as per POSIX.
14035         Include <sys/types.h>, in case it defines pthread_t.
14036         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
14037         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
14038         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
14039         (pthread_rwlockattr_t, pthread_spinlock_t):
14040         New typedefs, if HAVE_PTHREAD_T is not defined.
14041         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
14042         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
14043         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
14044         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
14045         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
14046         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
14047         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
14048         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
14049         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
14050         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
14051         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
14052         New macros.
14053         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
14054         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
14055         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
14056         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
14057         (pthread_spin_unlock): New dummy functions.
14058         (pthread_create): Return EAGAIN; don't set errno.
14059         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
14060         require AC_C_INLINE.
14061         * modules/pthread (Depends-on): Add sched, time.
14062         (pthread.h): Use AM_V_GEN.
14063
14064 2010-07-13  Bruno Haible  <bruno@clisp.org>
14065
14066         striconveh: Don't malloc memory if the result buffer is sufficient.
14067         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
14068         buffer if its size is sufficient.
14069         Reported by Ludovic Courtès <ludo@gnu.org>.
14070
14071 2010-07-13  Bruno Haible  <bruno@clisp.org>
14072
14073         strtod: Add safety check.
14074         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
14075
14076 2010-07-12  Bruno Haible  <bruno@clisp.org>
14077
14078         Unify tests that set gl_cv_func_ldexpl_no_libm.
14079         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
14080         gl_FUNC_LDEXPL.
14081         (gl_FUNC_LDEXPL): Invoke it.
14082         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14083
14084 2010-07-12  Bruno Haible  <bruno@clisp.org>
14085
14086         Unify tests that set gl_cv_func_ldexp_no_libm.
14087         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
14088         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
14089         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
14090         (configure.ac): Simply invoke gl_FUNC_LDEXP.
14091         * modules/strtod (Files): Add m4/ldexp.m4.
14092
14093 2010-07-12  Bruno Haible  <bruno@clisp.org>
14094
14095         Unify tests that set gl_cv_func_frexpl_no_libm.
14096         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
14097         gl_FUNC_FREXPL_NO_LIBM.
14098         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
14099         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14100
14101 2010-07-12  Bruno Haible  <bruno@clisp.org>
14102
14103         Unify tests that set gl_cv_func_frexp_no_libm.
14104         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
14105         gl_FUNC_FREXP_NO_LIBM.
14106         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
14107         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
14108
14109 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14110
14111         memcoll: clarify sizes versus lengths, document better, and tweak perf
14112         * lib/memcoll.c (strcoll_loop, memcoll0):
14113         Improve quality of descriptive comments.  Name variables
14114         consistently as to whether they are lengths (which do not include
14115         terminating null) versus sizes (which do).
14116         * lib/xmemcoll.c (xmemcoll0): Likewise.
14117         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
14118         returned when s1size == 0; this is easier to compile and saves
14119         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
14120
14121 2010-07-12  Bruno Haible  <bruno@clisp.org>
14122
14123         Tests for module '_Exit'.
14124         * modules/_Exit-tests: New file.
14125         * tests/test-_Exit.sh: New file.
14126         * tests/test-_Exit.c: New file.
14127
14128         New module '_Exit'.
14129         * lib/stdlib.in.h (__attribute__): New macro.
14130         (_Exit): New declaration.
14131         * lib/_Exit.c: New file.
14132         * m4/_Exit.m4: New file.
14133         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
14134         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
14135         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
14136         * modules/_Exit: New file.
14137         * tests/test-stdlib-c++.cc (_Exit): Check signature.
14138         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
14139
14140 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14141
14142         strtod: make it more-accurate typically, and don't require libm
14143         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
14144         Include limits.h.  Don't include string.h.
14145         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
14146         (locale_isspace): New function, so that no casts are needed to
14147         check whether *s is a space.
14148         (ldexp): Provide an unused dummy if not available.
14149         (scale_radix_exp, parse_number, underlying_strtod): New functions.
14150         (strtod): Use them.  This implementation prefers to use the
14151         underlying strtod if available, falling back on our own code
14152         only to fix known bugs.  This is more likely to produce an
14153         accurate result.  Also, it avoids the use of libm functions.
14154         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
14155         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
14156         was absent, but it caused a test failure with coreutils.
14157         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
14158         with libm.
14159         * modules/strtod (Makefile.am, Link): libm is no longer needed.
14160         * modules/strtod-tests (Makefile.am): Likewise.
14161
14162 2010-07-11  Pádraig Brady  <P@draigBrady.com>
14163             Bruno Haible  <bruno@clisp.org>
14164
14165         unistr/u8-strchr: Optimize ASCII argument case.
14166         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
14167
14168 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14169
14170         (x)memcoll: minor tweaks
14171         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
14172         is after the type that it qualifies.
14173         (memcoll0): Likewise.
14174         * lib/memcoll.h (memcoll0): Likewise.
14175         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
14176         * lib/xmemcoll.h (xmemcoll0): Likewise.
14177         * lib/memcoll.c (memcoll0): Correct the comment.  This function
14178         differs from memcoll in that the NUL byte is part of the argument.
14179         Omit the abort-checks, as performance is a real issue here.  Plus,
14180         the checks were wrong anyway (an off-by-one error).  Omit local
14181         variable 'diff', as it's a bit clearer that way.
14182         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
14183         no longer needed.
14184
14185 2010-07-08  Chen Guo <chenguo4@yahoo.com>
14186
14187         (x)memcoll: speedup when input is known to be NUL delimited
14188         * lib/memcoll.c: Include stdlib.
14189         (memcoll0): New function.
14190         (strcoll_loop): New function, refactored for use in both memcoll
14191         and memcoll0.
14192         * lib/memcoll.h (memcoll0): Add prototype.
14193         * lib/xmemcoll.c (xmemcoll0): New function.
14194         (collate_error): New function, refactored for use in both xmemcoll
14195         and xmemcoll0.
14196         * lib/xmemcoll.h (xmemcoll0): Add prototype.
14197         * m4/memcoll.m4: add inline invocation.
14198
14199 2010-07-06  Pádraig Brady  <P@draigBrady.com>
14200
14201         * build-aux/bootstrap: Remove any local translations
14202         from the translation project synchronization directory,
14203         so that local only translations are not distributed.
14204
14205 2010-07-04  Bruno Haible  <bruno@clisp.org>
14206
14207         fsusage: Clarify which code applies to which platforms.
14208         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
14209         platform.
14210         * lib/fsusage.c (get_fs_usage): Likewise.
14211
14212 2010-07-04  Bruno Haible  <bruno@clisp.org>
14213
14214         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
14215         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
14216         Reported by Martin Lambers <marlam@marlam.de>.
14217
14218 2010-07-04  Jim Meyering  <meyering@redhat.com>
14219
14220         hash: once again explicitly disallow insertion of NULL
14221         * lib/hash.c (hash_insert0): Reinstate just-removed test:
14222         inserting a NULL pointer cannot work with these functions.
14223         Add a comment with details.
14224         This reverts part of the 2010-07-01 commit, 5bef1a35
14225         "hash: extend module to deal with non-pointer keys".
14226
14227 2010-07-01  Bruno Haible  <bruno@clisp.org>
14228
14229         stdbool: Update doc.
14230         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
14231         Info from Christian Weisgerber <naddy@mips.inka.de>.
14232
14233 2010-07-01  Jim Meyering  <meyering@redhat.com>
14234
14235         hash: extend module to deal with non-pointer keys
14236         * lib/hash.c (hash_insert0): New interface, much like hash_insert
14237         but that allows insertion of non-pointer entries.
14238         Do not disallow an ENTRY value of NULL.
14239         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
14240         * lib/hash.h (hash_insert0): Declare.
14241
14242 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14243
14244         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
14245         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
14246         not present (i.e. with autoconf 2.59 and when using gettextize, not
14247         gnulib), require AC_GNU_SOURCE instead.
14248
14249 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
14250
14251         idpriv-drop: Fix tests.
14252         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
14253         not to the test-idpriv-droptemp program.
14254
14255 2010-06-29  Bruno Haible  <bruno@clisp.org>
14256
14257         string: Fix syntax error with g++ 2.96.
14258         * lib/string.in.h (__pure__): Remove definition.
14259         (_GL_ATTRIBUTE_PURE): New macro.
14260         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
14261         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
14262         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14263
14264 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
14265
14266         unitypes: Fix bug introduced on 2010-05-18.
14267         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
14268
14269 2010-06-22  Eric Blake  <eblake@redhat.com>
14270
14271         memmem: slight optimization
14272         * lib/str-two-way.h (critical_factorization): Update comments.
14273         Reduce work during factorization phase.
14274         Reported by Carlos Bueno <carlos@bueno.org>.
14275
14276 2010-06-21  Bruno Haible  <bruno@clisp.org>
14277
14278         Fix HAVE_CALLOC_POSIX misnomer.
14279         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
14280         !HAVE_CALLOC_POSIX.
14281         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
14282         HAVE_CALLOC_POSIX.
14283         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
14284         instead of HAVE_CALLOC_POSIX.
14285         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
14286         HAVE_CALLOC_POSIX.
14287
14288         Use modern idiom for calloc() replacement.
14289         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
14290         AC_FUNC_CALLOC.
14291         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
14292         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
14293         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14294         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
14295         (gl_REPLACE_CALLOC): New macro.
14296
14297 2010-06-21  Bruno Haible  <bruno@clisp.org>
14298
14299         Fix HAVE_REALLOC_POSIX misnomer.
14300         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
14301         !HAVE_REALLOC_POSIX.
14302         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
14303         HAVE_REALLOC_POSIX.
14304         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
14305         instead of HAVE_REALLOC_POSIX.
14306         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
14307         HAVE_REALLOC_POSIX.
14308
14309         Use modern idiom for realloc() replacement.
14310         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
14311         AC_FUNC_REALLOC.
14312         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
14313         Autoconf's AC_FUNC_REALLOC.
14314         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14315         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
14316         (gl_REPLACE_REALLOC): New macro.
14317         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14318
14319 2010-06-21  Bruno Haible  <bruno@clisp.org>
14320
14321         Fix HAVE_MALLOC_POSIX misnomer.
14322         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
14323         !HAVE_MALLOC_POSIX.
14324         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
14325         HAVE_MALLOC_POSIX.
14326         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
14327         instead of HAVE_MALLOC_POSIX.
14328         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
14329         HAVE_MALLOC_POSIX.
14330
14331         Use modern idiom for malloc() replacement.
14332         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
14333         AC_FUNC_MALLOC.
14334         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
14335         Autoconf's AC_FUNC_MALLOC.
14336         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14337         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
14338         (gl_REPLACE_MALLOC): New macro.
14339         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14340
14341 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
14342
14343         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
14344         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
14345         This macro takes 3 arguments, not 4.
14346
14347 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
14348
14349         ipv6: fix detection under mingw
14350         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
14351         in6_addr.
14352
14353 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
14354
14355         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
14356         that strtod() works when cross-compiling to a glibc version known
14357         to work.
14358
14359 2010-06-15  Bruno Haible  <bruno@clisp.org>
14360
14361         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
14362
14363 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
14364
14365         select: Correct timeout.
14366         * lib/select.c (rpl_select): Compute wait_timeout correctly.
14367
14368 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14369
14370         git-version-gen: init shell var to avoid env var influence
14371         * build-aux/git-version-gen (v): Init shell var to empty.
14372
14373 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
14374
14375         priv-set: Don't assume that priv.h exists merely because getppriv does.
14376         See Jan Andersen's bug report about AIX 5L in
14377         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
14378         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
14379         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
14380         * lib/priv-set.h: Likewise.
14381         * tests/test-priv-set.c: Likewise.
14382
14383 2010-06-13  Bruno Haible  <bruno@clisp.org>
14384
14385         relocatable: Make it easier to test whether to install wrappers.
14386         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
14387         RELOCATABLE_VIA_WRAPPER.
14388
14389 2010-06-13  Bruno Haible  <bruno@clisp.org>
14390
14391         gnulib-tool: Display specified modules and dependencies differently.
14392         * gnulib-tool (func_show_module_list): New function.
14393         (func_import, func_create_testdir): Invoke it.
14394         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14395
14396 2010-06-13  Bruno Haible  <bruno@clisp.org>
14397
14398         gnulib-tool: Align code of func_import and func_create_testdir.
14399         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
14400         specified_modules.
14401
14402 2010-06-12  Jim Meyering  <meyering@redhat.com>
14403
14404         test-inttostr: avoid spurious failure on Solaris 9
14405         * tests/test-inttostr.c (main): Skip the test when snprintf fails
14406         to accept "%ju".  Reported by Bruno Haible.
14407
14408 2010-06-11  Jim Meyering  <meyering@redhat.com>
14409
14410         test-sys_socket: mark variables as used more readably
14411         * tests/test-sys_socket.c (main): Mark otherwise unused variables
14412         as "used" explicitly via (void) statement casts.  This is more
14413         readable than using them in an artificial return expression.
14414         Suggestion from Bruno Haible.
14415
14416 2010-06-11  Bruno Haible  <bruno@clisp.org>
14417
14418         Avoid some more warnings from "gcc -Wwrite-strings".
14419         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
14420         to 'const char *'.
14421         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
14422         * tests/test-c-strcasestr.c (main): Likewise.
14423         * tests/test-mbscasestr1.c (main): Likewise.
14424         * tests/test-mbscasestr2.c (main): Likewise.
14425         * tests/test-memmem.c (main): Likewise.
14426         * tests/test-strstr.c (main): Likewise.
14427         * tests/test-strcasestr.c (main): Likewise.
14428
14429 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14430
14431         init.sh: change framework_failure_ to fail with status 99, not 1
14432         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
14433         automake's parallel-tests rule that this is an unexpected failure,
14434         even if the test is listed in XFAIL_TESTS.
14435
14436 2010-06-11  Jim Meyering  <meyering@redhat.com>
14437
14438         test-inttostr: avoid warnings about 4-6KB literal strings
14439         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
14440         Include "macros.h", for its definition of ASSERT.
14441         (CK): s/assert/ASSERT/
14442         * modules/inttostr-tests (Files): Add macros.h.
14443
14444         init.sh: don't use $ME_ or skip_ before they are defined
14445         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
14446         their first uses.  Also hoist their companions: warn_, fail_,
14447         framework_failure_, $stderr_fileno.  Prompted by a patch from
14448         Stefano Lattarini.
14449
14450         test-sys_socket: avoid set-but-not-used warnings from gcc
14451         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
14452         avoid warning about set-but-not-used variables.
14453
14454         test-xvasprintf: avoid 'const' discard warnings
14455         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
14456         "const" when assigning from literal strings.
14457         (test_xasprintf): Add "void" in function argument list to placate
14458         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
14459
14460         tests: avoid compilation warnings in argmatch and exclude tests...
14461         in packages that define ARGMATCH_DIE_DECL, like coreutils.
14462         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
14463         Since it always exits, declare with the "noreturn" attribute.
14464         * tests/test-argmatch.c: Likewise.
14465
14466         tests: avoid 'const' discard warnings in mbsstr tests
14467         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
14468         * tests/test-mbsstr2.c (main): Likewise.
14469
14470         test-verify: avoid warning from gcc's -Wmissing-declarations
14471         * tests/test-verify.c (function): Declare to be static.
14472
14473         test-inttostr.c: include <string.h> for use of strcmp
14474         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
14475
14476         test-linkat: avoid failed assertion on "other" architectures
14477         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
14478         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
14479         sparc: https://bugs.launchpad.net/bugs/591968
14480
14481 2010-06-11  Jim Meyering  <meyering@redhat.com>
14482
14483         printf.m4: avoid autoconf's "Expanded Before Required" warning
14484         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
14485         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
14486         autoconf warning.
14487
14488 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
14489
14490         Replacement header templates are now named with ".in", not "_".
14491         * doc/gnulib-intro.texi: Correct.
14492
14493 2010-06-10  Jim Meyering  <meyering@redhat.com>
14494
14495         inttostr-tests: depend on snprintf, not snprintf-posix
14496         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
14497         snprintf-posix, to avoid this aclocal failure:
14498           missing file gnulib-tests/vasnprintf.c
14499           configure.ac:45: error: expected source file, required through \
14500           AC_LIBSOURCES, not found
14501
14502 2010-06-10  Jim Meyering  <meyering@redhat.com>
14503
14504         inttostr: add a new function, inttostr, and tests
14505         The namesake function was not available.  The existence of the
14506         template file, inttostr.c makes its addition nontrivial.
14507         * lib/anytostr.c: Rename from inttostr.c.
14508         (anytostr): Rename from inttostr.
14509         * lib/inttostr.c: New file.
14510         * modules/inttostr (Files): Add anytostr.c.
14511         (Makefile.am): Set lib_SOURCES instead of ...
14512         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
14513         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
14514         * lib/offtostr.c: Likewise.
14515         * lib/uinttostr.c: Likewise.
14516         * lib/umaxtostr.c: Likewise.
14517         * modules/inttostr-tests: New file.
14518         * tests/test-inttostr.c: New file.  Test these functions.
14519
14520 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
14521             Bruno Haible  <bruno@clisp.org>
14522
14523         Add "Extending Gnulib" chapter to manual.
14524         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
14525         chapter.
14526         (Extending Gnulib): New chapter.
14527         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
14528         chapter.
14529
14530 2010-06-09  Bruno Haible  <bruno@clisp.org>
14531
14532         Avoid relocwrapper link errors due to gnulib replacement functions.
14533         * lib/areadlink.c: Use the system's malloc, realloc functions.
14534         (areadlink): Set errno to ENOMEM explicitly.
14535         * modules/areadlink (Depends-on): Remove malloc-posix.
14536         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14537
14538 2010-06-09  Bruno Haible  <bruno@clisp.org>
14539
14540         Avoid relocwrapper link errors due to gnulib replacement functions.
14541         * lib/canonicalize-lgpl.c: Use the system's malloc function.
14542         * lib/malloca.c: Likewise.
14543         * lib/relocatable.c: Likewise.
14544         * lib/progreloc.c: Use the system's malloc, sprintf functions.
14545         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
14546         * lib/setenv.c: Use the system's malloc, realloc functions.
14547         * lib/strerror.c: Use the system's sprintf function.
14548         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14549
14550 2010-06-04  Bruno Haible  <bruno@clisp.org>
14551
14552         Prefer documented low-level autoconf macro names.
14553         * m4/lib-link.m4: Use m4_translit instead of translit.
14554         * m4/environ.m4: Likewise.
14555         * m4/mathfunc.m4: Likewise.
14556         * m4/onceonly.m4: Likewise.
14557         * m4/stdint.m4: Likewise.
14558         Suggested by Eric Blake.
14559
14560 2010-06-04  Martin Lambers  <marlam@marlam.de>
14561             Bruno Haible  <bruno@clisp.org>
14562
14563         havelib: Allow library names with '+' characters.
14564         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
14565         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
14566
14567 2010-06-09  Bruno Haible  <bruno@clisp.org>
14568
14569         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
14570         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
14571         realloc failed.
14572
14573 2010-06-08  Peter Simons  <simons@cryp.to>
14574
14575         maint.mk: make the news-check rule more configurable
14576         * top/maint.mk (news-check-lines-spec): New variable.
14577         (news-check): Use "sed -n 1,10p" in place of "head".
14578
14579 2010-06-07  Jim Meyering  <meyering@redhat.com>
14580
14581         do-release-commit-and-tag: fix typo in --help
14582         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
14583
14584         regex: avoid new dead-code warning with gcc-4.6.0
14585         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
14586         if-block containing a while-loop.  It's been unused for at least
14587         5 years.
14588
14589 2010-06-05  Bruno Haible  <bruno@clisp.org>
14590
14591         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
14592         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
14593
14594 2010-06-04  Bruno Haible  <bruno@clisp.org>
14595
14596         Update to GNU gettext 0.18.1.
14597         * modules/gettext (configure.ac): Require gettext infrastructure from
14598         version 0.18.1.
14599
14600 2010-06-03  Bruno Haible  <bruno@clisp.org>
14601
14602         Don't use AC_LIBOBJ with file names in subdirectories.
14603         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
14604         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
14605         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
14606         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
14607         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
14608         gl_LIBUNISTRING_LIBSOURCE.
14609         (Makefile.am): Augment lib_SOURCES here, conditionally.
14610         * NEWS: Drop requirement for Automake option 'subdir-objects'.
14611
14612 2010-06-03  Bruno Haible  <bruno@clisp.org>
14613
14614         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
14615         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
14616         expansion does not end with a newline.
14617         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
14618         unnecessary newline.
14619
14620 2010-06-03  Bruno Haible  <bruno@clisp.org>
14621
14622         Reduce dependencies.
14623         * tests/test-quotearg.h: New file, extracted from
14624         tests/test-quotearg.c.
14625         * tests/test-quotearg-simple.c: New file, extracted from
14626         tests/test-quotearg.c.
14627         * tests/test-quotearg.c: Don't include <ctype.h>.
14628         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
14629         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
14630         use_quote_double_quotes, use_quotearg_colon): Moved to
14631         tests/test-quotearg.h.
14632         (results_g, flag_results, custom_quotes, custom_results): Moved
14633         to tests/test-quotearg-simple.c.
14634         (main): Moved the part that does not depend on gettext to
14635         tests/test-quotearg-simple.c. Return 77 if the test cannot be
14636         performed.
14637         * modules/quotearg-simple: New file.
14638         * modules/quotearg-simple-tests: New file.
14639         * modules/quotearg (Depends-on): Add quotearg-simple.
14640         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
14641         (Files): Add tests/test-quotearg.h.
14642         Reported by Paolo Bonzini.
14643
14644 2010-06-03  Bruno Haible  <bruno@clisp.org>
14645
14646         Reduce dependencies.
14647         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
14648
14649 2010-06-03  Bruno Haible  <bruno@clisp.org>
14650
14651         time: Undefine more broken macros.
14652         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
14653         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
14654         Reported by Eric Blake.
14655
14656 2010-06-03  Bruno Haible  <bruno@clisp.org>
14657
14658         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
14659         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
14660         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
14661         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
14662         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
14663         Reported by Ludovic Courtès <ludo@gnu.org>.
14664
14665 2010-06-02  Eric Blake  <eblake@redhat.com>
14666
14667         time: work with mingw + pthreads-win32 library
14668         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
14669         if timespec is defined only in pthread.h.
14670         * modules/time (Makefile.am): Substitute it.
14671         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
14672         <pthread.h>, when needed.
14673         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
14674         from the library.
14675
14676 2010-05-31  Bruno Haible  <bruno@clisp.org>
14677
14678         Avoid expanding two macros in the wrong order.
14679         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
14680         gl_LIBUNISTRING if it is defined.
14681         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
14682         autoconf >= 2.64.
14683         Reported by Ludovic Courtès <ludo@gnu.org>.
14684
14685 2010-05-27  Jim Meyering  <meyering@redhat.com>
14686
14687         maint.mk: also prohibit "#undef" of always-defined symbols
14688         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
14689         Allow more than one space before the symbol name.
14690         (sc_prohibit_always-defined_macros): Use grep's -E, now that
14691         the regexp uses alternation.
14692
14693 2010-05-26  Eric Blake  <eblake@redhat.com>
14694
14695         maint.mk: avoid echo -e
14696         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
14697         Convert all uses of echo -* to printf.
14698         Reported by Matthias Bolte.
14699
14700 2010-05-25  Bruno Haible  <bruno@clisp.org>
14701
14702         Update to GNU gettext 0.18, part 2.
14703         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
14704         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
14705
14706 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14707
14708         Add missing include in test-pwrite.c.
14709         * tests/test-pwrite.c: Include string.h, for strcmp.
14710
14711 2010-05-24  Bruno Haible  <bruno@clisp.org>
14712
14713         * NEWS: Mention requirement for Automake option 'subdir-objects'.
14714
14715 2010-05-24  Bruno Haible  <bruno@clisp.org>
14716
14717         Don't use conversion with transliteration in u{8,16,32}_strcoll.
14718         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
14719         iconveh_error argument.
14720         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
14721         U_STRCONV_TO_LOCALE.
14722         * lib/unistr/u16-strcoll.c: Likewise.
14723         * lib/unistr/u32-strcoll.c: Likewise.
14724         * modules/unistr/u8-strcoll (Depends-on): Add
14725         uniconv/u8-strconv-to-enc, localcharset. Remove
14726         uniconv/u8-strconv-to-locale.
14727         (configure.ac): Bump version number.
14728         * modules/unistr/u16-strcoll (Depends-on): Add
14729         uniconv/u16-strconv-to-enc, localcharset. Remove
14730         uniconv/u16-strconv-to-locale.
14731         (configure.ac): Bump version number.
14732         * modules/unistr/u32-strcoll (Depends-on): Add
14733         uniconv/u32-strconv-to-enc, localcharset. Remove
14734         uniconv/u32-strconv-to-locale.
14735         (configure.ac): Bump version number.
14736
14737 2010-05-24  Bruno Haible  <bruno@clisp.org>
14738
14739         Avoid a test failure on NetBSD 5.0.
14740         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
14741         an iconv() bug.
14742
14743 2010-05-24  Bruno Haible  <bruno@clisp.org>
14744
14745         Adjust #include directive style.
14746         * modules/regex (Includes): Recommend to write <regex.h>.
14747
14748 2010-05-24  Bruno Haible  <bruno@clisp.org>
14749
14750         regex: Don't require alloca.
14751         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
14752         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
14753         only inside if (0).
14754
14755 2010-05-23  Jim Meyering  <meyering@redhat.com>
14756
14757         test-renameat.c: include <sys/stat.h>
14758         * tests/test-renameat.c: Include <sys/stat.h>; required for
14759         definition of S_IS* macros.
14760
14761 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
14762
14763         Update maintainer documentation for 'relocatable-prog' module.
14764         * doc/relocatable-maint.texi: Update.
14765         Comments by Bruno Haible.
14766
14767 2010-05-23  Bruno Haible  <bruno@clisp.org>
14768
14769         git-merge-changelog: Enable --split-merged-entry by default.
14770         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
14771         (usage): Don't mention this option any more.
14772         Reported by Ralf Wildenhues.
14773
14774 2010-05-23  Jim Meyering  <meyering@redhat.com>
14775
14776         test-pwrite: do not leave behind a test file named "out"
14777         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
14778         The trivial-looking use of init.sh is really necessary.
14779         It ensures that the temporary file, "out", is created in
14780         a temporary directory, and removed upon termination.
14781         * tests/test-pwrite.sh: Re-add file.
14782         * modules/pwrite-tests: Reference it.
14783
14784 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14785
14786         Fix output redirection buglet in init.sh.
14787         * tests/init.sh: Fix redirection of stderr.
14788
14789 2010-05-20  Simon Josefsson  <simon@josefsson.org>
14790
14791         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
14792
14793 2010-05-17  Simon Josefsson  <simon@josefsson.org>
14794
14795         * modules/valgrind-tests: New file.
14796         * m4/valgrind-tests.m4: New file.
14797         * doc/valgrind-tests.texi: New file.
14798         * doc/gnulib.texi (Running self-tests under valgrind): New
14799         section.
14800
14801 2010-05-19  Bruno Haible  <bruno@clisp.org>
14802
14803         Clean up dead code in recent commit.
14804         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
14805         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
14806         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
14807         Suggested by Paolo Bonzini.
14808
14809 2010-05-19  Bruno Haible  <bruno@clisp.org>
14810
14811         Avoid valgrind error reports from libunistring.
14812         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
14813         * modules/libunistring (Files): Add it.
14814         * modules/libunistring-optional (Files): Likewise.
14815
14816 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
14817             Bruno Haible  <bruno@clisp.org>
14818
14819         New module 'libunistring-optional'.
14820         * modules/libunistring-optional: New file.
14821         * m4/libunistring-base.m4: New file.
14822         * m4/libunistring-optional.m4: New file.
14823         * lib/unicase.in.h: Renamed from lib/unicase.h.
14824         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
14825         * lib/unictype.in.h: Renamed from lib/unictype.h.
14826         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
14827         * lib/uniname.in.h: Renamed from lib/uniname.h.
14828         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
14829         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
14830         * lib/unistr.in.h: Renamed from lib/unistr.h.
14831         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
14832         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
14833         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
14834         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
14835         gl_LIBUNISTRING. If the library was found, determine the installed
14836         version and set LIBUNISTRING_VERSION.
14837         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
14838         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
14839         handle a configuration option --with-included-libunistring.
14840         * modules/libunistring (Files): Add m4/absolute-header.m4.
14841         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
14842         Add m4/libunistring-base.m4.
14843         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14844         (Makefile.am): Build unicase.h from unicase.in.h.
14845         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
14846         Add m4/libunistring-base.m4.
14847         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14848         (Makefile.am): Build uniconv.h from uniconv.in.h.
14849         * modules/unictype/base (Files): Use unictype.in.h instead of
14850         unictype.h. Add m4/libunistring-base.m4.
14851         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14852         (Makefile.am): Build unictype.h from unictype.in.h.
14853         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
14854         Add m4/libunistring-base.m4.
14855         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14856         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
14857         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
14858         Add m4/libunistring-base.m4.
14859         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14860         (Makefile.am): Build uniname.h from uniname.in.h.
14861         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
14862         Add m4/libunistring-base.m4.
14863         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14864         (Makefile.am): Build uninorm.h from uninorm.in.h.
14865         * modules/unistdio/base (Files): Use unistdio.in.h instead of
14866         unistdio.h. Add m4/libunistring-base.m4.
14867         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14868         (Makefile.am): Build unistdio.h from unistdio.in.h.
14869         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
14870         Add m4/libunistring-base.m4.
14871         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14872         (Makefile.am): Build unistr.h from unistr.in.h.
14873         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
14874         Add m4/libunistring-base.m4.
14875         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14876         (Makefile.am): Build unitypes.h from unitypes.in.h.
14877         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
14878         Add m4/libunistring-base.m4.
14879         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14880         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
14881         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
14882         uniwidth.h. Add m4/libunistring-base.m4.
14883         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14884         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
14885         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
14886         instead of augmenting lib_SOURCES.
14887         * modules/unicase/empty-suffix-context: Likewise.
14888         * modules/unicase/locale-language: Likewise.
14889         * modules/unicase/tolower: Likewise.
14890         * modules/unicase/totitle: Likewise.
14891         * modules/unicase/toupper: Likewise.
14892         * modules/unicase/u8-casecmp: Likewise.
14893         * modules/unicase/u8-casecoll: Likewise.
14894         * modules/unicase/u8-casefold: Likewise.
14895         * modules/unicase/u8-casexfrm: Likewise.
14896         * modules/unicase/u8-ct-casefold: Likewise.
14897         * modules/unicase/u8-ct-tolower: Likewise.
14898         * modules/unicase/u8-ct-totitle: Likewise.
14899         * modules/unicase/u8-ct-toupper: Likewise.
14900         * modules/unicase/u8-is-cased: Likewise.
14901         * modules/unicase/u8-is-casefolded: Likewise.
14902         * modules/unicase/u8-is-lowercase: Likewise.
14903         * modules/unicase/u8-is-titlecase: Likewise.
14904         * modules/unicase/u8-is-uppercase: Likewise.
14905         * modules/unicase/u8-prefix-context: Likewise.
14906         * modules/unicase/u8-suffix-context: Likewise.
14907         * modules/unicase/u8-tolower: Likewise.
14908         * modules/unicase/u8-totitle: Likewise.
14909         * modules/unicase/u8-toupper: Likewise.
14910         * modules/unicase/u16-casecmp: Likewise.
14911         * modules/unicase/u16-casecoll: Likewise.
14912         * modules/unicase/u16-casefold: Likewise.
14913         * modules/unicase/u16-casexfrm: Likewise.
14914         * modules/unicase/u16-ct-casefold: Likewise.
14915         * modules/unicase/u16-ct-tolower: Likewise.
14916         * modules/unicase/u16-ct-totitle: Likewise.
14917         * modules/unicase/u16-ct-toupper: Likewise.
14918         * modules/unicase/u16-is-cased: Likewise.
14919         * modules/unicase/u16-is-casefolded: Likewise.
14920         * modules/unicase/u16-is-lowercase: Likewise.
14921         * modules/unicase/u16-is-titlecase: Likewise.
14922         * modules/unicase/u16-is-uppercase: Likewise.
14923         * modules/unicase/u16-prefix-context: Likewise.
14924         * modules/unicase/u16-suffix-context: Likewise.
14925         * modules/unicase/u16-tolower: Likewise.
14926         * modules/unicase/u16-totitle: Likewise.
14927         * modules/unicase/u16-toupper: Likewise.
14928         * modules/unicase/u32-casecmp: Likewise.
14929         * modules/unicase/u32-casecoll: Likewise.
14930         * modules/unicase/u32-casefold: Likewise.
14931         * modules/unicase/u32-casexfrm: Likewise.
14932         * modules/unicase/u32-ct-casefold: Likewise.
14933         * modules/unicase/u32-ct-tolower: Likewise.
14934         * modules/unicase/u32-ct-totitle: Likewise.
14935         * modules/unicase/u32-ct-toupper: Likewise.
14936         * modules/unicase/u32-is-cased: Likewise.
14937         * modules/unicase/u32-is-casefolded: Likewise.
14938         * modules/unicase/u32-is-lowercase: Likewise.
14939         * modules/unicase/u32-is-titlecase: Likewise.
14940         * modules/unicase/u32-is-uppercase: Likewise.
14941         * modules/unicase/u32-prefix-context: Likewise.
14942         * modules/unicase/u32-suffix-context: Likewise.
14943         * modules/unicase/u32-tolower: Likewise.
14944         * modules/unicase/u32-totitle: Likewise.
14945         * modules/unicase/u32-toupper: Likewise.
14946         * modules/unicase/ulc-casecmp: Likewise.
14947         * modules/unicase/ulc-casecoll: Likewise.
14948         * modules/unicase/ulc-casexfrm: Likewise.
14949         * modules/uniconv/u8-conv-from-enc: Likewise.
14950         * modules/uniconv/u8-conv-to-enc: Likewise.
14951         * modules/uniconv/u8-strconv-from-enc: Likewise.
14952         * modules/uniconv/u8-strconv-from-locale: Likewise.
14953         * modules/uniconv/u8-strconv-to-enc: Likewise.
14954         * modules/uniconv/u8-strconv-to-locale: Likewise.
14955         * modules/uniconv/u16-conv-from-enc: Likewise.
14956         * modules/uniconv/u16-conv-to-enc: Likewise.
14957         * modules/uniconv/u16-strconv-from-enc: Likewise.
14958         * modules/uniconv/u16-strconv-from-locale: Likewise.
14959         * modules/uniconv/u16-strconv-to-enc: Likewise.
14960         * modules/uniconv/u16-strconv-to-locale: Likewise.
14961         * modules/uniconv/u32-conv-from-enc: Likewise.
14962         * modules/uniconv/u32-conv-to-enc: Likewise.
14963         * modules/uniconv/u32-strconv-from-enc: Likewise.
14964         * modules/uniconv/u32-strconv-from-locale: Likewise.
14965         * modules/uniconv/u32-strconv-to-enc: Likewise.
14966         * modules/uniconv/u32-strconv-to-locale: Likewise.
14967         * modules/unictype/bidicategory-byname: Likewise.
14968         * modules/unictype/bidicategory-name: Likewise.
14969         * modules/unictype/bidicategory-of: Likewise.
14970         * modules/unictype/bidicategory-test: Likewise.
14971         * modules/unictype/block-list: Likewise.
14972         * modules/unictype/block-test: Likewise.
14973         * modules/unictype/category-C: Likewise.
14974         * modules/unictype/category-Cc: Likewise.
14975         * modules/unictype/category-Cf: Likewise.
14976         * modules/unictype/category-Cn: Likewise.
14977         * modules/unictype/category-Co: Likewise.
14978         * modules/unictype/category-Cs: Likewise.
14979         * modules/unictype/category-L: Likewise.
14980         * modules/unictype/category-Ll: Likewise.
14981         * modules/unictype/category-Lm: Likewise.
14982         * modules/unictype/category-Lo: Likewise.
14983         * modules/unictype/category-Lt: Likewise.
14984         * modules/unictype/category-Lu: Likewise.
14985         * modules/unictype/category-M: Likewise.
14986         * modules/unictype/category-Mc: Likewise.
14987         * modules/unictype/category-Me: Likewise.
14988         * modules/unictype/category-Mn: Likewise.
14989         * modules/unictype/category-N: Likewise.
14990         * modules/unictype/category-Nd: Likewise.
14991         * modules/unictype/category-Nl: Likewise.
14992         * modules/unictype/category-No: Likewise.
14993         * modules/unictype/category-P: Likewise.
14994         * modules/unictype/category-Pc: Likewise.
14995         * modules/unictype/category-Pd: Likewise.
14996         * modules/unictype/category-Pe: Likewise.
14997         * modules/unictype/category-Pf: Likewise.
14998         * modules/unictype/category-Pi: Likewise.
14999         * modules/unictype/category-Po: Likewise.
15000         * modules/unictype/category-Ps: Likewise.
15001         * modules/unictype/category-S: Likewise.
15002         * modules/unictype/category-Sc: Likewise.
15003         * modules/unictype/category-Sk: Likewise.
15004         * modules/unictype/category-Sm: Likewise.
15005         * modules/unictype/category-So: Likewise.
15006         * modules/unictype/category-Z: Likewise.
15007         * modules/unictype/category-Zl: Likewise.
15008         * modules/unictype/category-Zp: Likewise.
15009         * modules/unictype/category-Zs: Likewise.
15010         * modules/unictype/category-and: Likewise.
15011         * modules/unictype/category-and-not: Likewise.
15012         * modules/unictype/category-byname: Likewise.
15013         * modules/unictype/category-name: Likewise.
15014         * modules/unictype/category-none: Likewise.
15015         * modules/unictype/category-of: Likewise.
15016         * modules/unictype/category-or: Likewise.
15017         * modules/unictype/category-test: Likewise.
15018         * modules/unictype/combining-class: Likewise.
15019         * modules/unictype/ctype-alnum: Likewise.
15020         * modules/unictype/ctype-alpha: Likewise.
15021         * modules/unictype/ctype-blank: Likewise.
15022         * modules/unictype/ctype-cntrl: Likewise.
15023         * modules/unictype/ctype-digit: Likewise.
15024         * modules/unictype/ctype-graph: Likewise.
15025         * modules/unictype/ctype-lower: Likewise.
15026         * modules/unictype/ctype-print: Likewise.
15027         * modules/unictype/ctype-punct: Likewise.
15028         * modules/unictype/ctype-space: Likewise.
15029         * modules/unictype/ctype-upper: Likewise.
15030         * modules/unictype/ctype-xdigit: Likewise.
15031         * modules/unictype/decimal-digit: Likewise.
15032         * modules/unictype/digit: Likewise.
15033         * modules/unictype/mirror: Likewise.
15034         * modules/unictype/numeric: Likewise.
15035         * modules/unictype/property-alphabetic: Likewise.
15036         * modules/unictype/property-ascii-hex-digit: Likewise.
15037         * modules/unictype/property-bidi-arabic-digit: Likewise.
15038         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
15039         * modules/unictype/property-bidi-block-separator: Likewise.
15040         * modules/unictype/property-bidi-boundary-neutral: Likewise.
15041         * modules/unictype/property-bidi-common-separator: Likewise.
15042         * modules/unictype/property-bidi-control: Likewise.
15043         * modules/unictype/property-bidi-embedding-or-override: Likewise.
15044         * modules/unictype/property-bidi-eur-num-separator: Likewise.
15045         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
15046         * modules/unictype/property-bidi-european-digit: Likewise.
15047         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
15048         * modules/unictype/property-bidi-left-to-right: Likewise.
15049         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
15050         * modules/unictype/property-bidi-other-neutral: Likewise.
15051         * modules/unictype/property-bidi-pdf: Likewise.
15052         * modules/unictype/property-bidi-segment-separator: Likewise.
15053         * modules/unictype/property-bidi-whitespace: Likewise.
15054         * modules/unictype/property-byname: Likewise.
15055         * modules/unictype/property-combining: Likewise.
15056         * modules/unictype/property-composite: Likewise.
15057         * modules/unictype/property-currency-symbol: Likewise.
15058         * modules/unictype/property-dash: Likewise.
15059         * modules/unictype/property-decimal-digit: Likewise.
15060         * modules/unictype/property-default-ignorable-code-point: Likewise.
15061         * modules/unictype/property-deprecated: Likewise.
15062         * modules/unictype/property-diacritic: Likewise.
15063         * modules/unictype/property-extender: Likewise.
15064         * modules/unictype/property-format-control: Likewise.
15065         * modules/unictype/property-grapheme-base: Likewise.
15066         * modules/unictype/property-grapheme-extend: Likewise.
15067         * modules/unictype/property-grapheme-link: Likewise.
15068         * modules/unictype/property-hex-digit: Likewise.
15069         * modules/unictype/property-hyphen: Likewise.
15070         * modules/unictype/property-id-continue: Likewise.
15071         * modules/unictype/property-id-start: Likewise.
15072         * modules/unictype/property-ideographic: Likewise.
15073         * modules/unictype/property-ids-binary-operator: Likewise.
15074         * modules/unictype/property-ids-trinary-operator: Likewise.
15075         * modules/unictype/property-ignorable-control: Likewise.
15076         * modules/unictype/property-iso-control: Likewise.
15077         * modules/unictype/property-join-control: Likewise.
15078         * modules/unictype/property-left-of-pair: Likewise.
15079         * modules/unictype/property-line-separator: Likewise.
15080         * modules/unictype/property-logical-order-exception: Likewise.
15081         * modules/unictype/property-lowercase: Likewise.
15082         * modules/unictype/property-math: Likewise.
15083         * modules/unictype/property-non-break: Likewise.
15084         * modules/unictype/property-not-a-character: Likewise.
15085         * modules/unictype/property-numeric: Likewise.
15086         * modules/unictype/property-other-alphabetic: Likewise.
15087         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
15088         * modules/unictype/property-other-grapheme-extend: Likewise.
15089         * modules/unictype/property-other-id-continue: Likewise.
15090         * modules/unictype/property-other-id-start: Likewise.
15091         * modules/unictype/property-other-lowercase: Likewise.
15092         * modules/unictype/property-other-math: Likewise.
15093         * modules/unictype/property-other-uppercase: Likewise.
15094         * modules/unictype/property-paired-punctuation: Likewise.
15095         * modules/unictype/property-paragraph-separator: Likewise.
15096         * modules/unictype/property-pattern-syntax: Likewise.
15097         * modules/unictype/property-pattern-white-space: Likewise.
15098         * modules/unictype/property-private-use: Likewise.
15099         * modules/unictype/property-punctuation: Likewise.
15100         * modules/unictype/property-quotation-mark: Likewise.
15101         * modules/unictype/property-radical: Likewise.
15102         * modules/unictype/property-sentence-terminal: Likewise.
15103         * modules/unictype/property-soft-dotted: Likewise.
15104         * modules/unictype/property-space: Likewise.
15105         * modules/unictype/property-terminal-punctuation: Likewise.
15106         * modules/unictype/property-test: Likewise.
15107         * modules/unictype/property-titlecase: Likewise.
15108         * modules/unictype/property-unassigned-code-value: Likewise.
15109         * modules/unictype/property-unified-ideograph: Likewise.
15110         * modules/unictype/property-uppercase: Likewise.
15111         * modules/unictype/property-variation-selector: Likewise.
15112         * modules/unictype/property-white-space: Likewise.
15113         * modules/unictype/property-xid-continue: Likewise.
15114         * modules/unictype/property-xid-start: Likewise.
15115         * modules/unictype/property-zero-width: Likewise.
15116         * modules/unictype/scripts: Likewise.
15117         * modules/unictype/syntax-c-ident: Likewise.
15118         * modules/unictype/syntax-c-whitespace: Likewise.
15119         * modules/unictype/syntax-java-ident: Likewise.
15120         * modules/unictype/syntax-java-whitespace: Likewise.
15121         * modules/unilbrk/u8-possible-linebreaks: Likewise.
15122         * modules/unilbrk/u8-width-linebreaks: Likewise.
15123         * modules/unilbrk/u16-possible-linebreaks: Likewise.
15124         * modules/unilbrk/u16-width-linebreaks: Likewise.
15125         * modules/unilbrk/u32-possible-linebreaks: Likewise.
15126         * modules/unilbrk/u32-width-linebreaks: Likewise.
15127         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
15128         * modules/unilbrk/ulc-width-linebreaks: Likewise.
15129         * modules/uniname/uniname: Likewise.
15130         * modules/uninorm/canonical-decomposition: Likewise.
15131         * modules/uninorm/composition: Likewise.
15132         * modules/uninorm/decomposing-form: Likewise.
15133         * modules/uninorm/decomposition: Likewise.
15134         * modules/uninorm/filter: Likewise.
15135         * modules/uninorm/nfc: Likewise.
15136         * modules/uninorm/nfd: Likewise.
15137         * modules/uninorm/nfkc: Likewise.
15138         * modules/uninorm/nfkd: Likewise.
15139         * modules/uninorm/u8-normalize: Likewise.
15140         * modules/uninorm/u8-normcmp: Likewise.
15141         * modules/uninorm/u8-normcoll: Likewise.
15142         * modules/uninorm/u8-normxfrm: Likewise.
15143         * modules/uninorm/u16-normalize: Likewise.
15144         * modules/uninorm/u16-normcmp: Likewise.
15145         * modules/uninorm/u16-normcoll: Likewise.
15146         * modules/uninorm/u16-normxfrm: Likewise.
15147         * modules/uninorm/u32-normalize: Likewise.
15148         * modules/uninorm/u32-normcmp: Likewise.
15149         * modules/uninorm/u32-normcoll: Likewise.
15150         * modules/uninorm/u32-normxfrm: Likewise.
15151         * modules/unistdio/u8-asnprintf: Likewise.
15152         * modules/unistdio/u8-asprintf: Likewise.
15153         * modules/unistdio/u8-snprintf: Likewise.
15154         * modules/unistdio/u8-sprintf: Likewise.
15155         * modules/unistdio/u8-u8-asnprintf: Likewise.
15156         * modules/unistdio/u8-u8-asprintf: Likewise.
15157         * modules/unistdio/u8-u8-snprintf: Likewise.
15158         * modules/unistdio/u8-u8-sprintf: Likewise.
15159         * modules/unistdio/u8-u8-vasnprintf: Likewise.
15160         * modules/unistdio/u8-u8-vasprintf: Likewise.
15161         * modules/unistdio/u8-u8-vsnprintf: Likewise.
15162         * modules/unistdio/u8-u8-vsprintf: Likewise.
15163         * modules/unistdio/u8-vasnprintf: Likewise.
15164         * modules/unistdio/u8-vasprintf: Likewise.
15165         * modules/unistdio/u8-vsnprintf: Likewise.
15166         * modules/unistdio/u8-vsprintf: Likewise.
15167         * modules/unistdio/u16-asnprintf: Likewise.
15168         * modules/unistdio/u16-asprintf: Likewise.
15169         * modules/unistdio/u16-snprintf: Likewise.
15170         * modules/unistdio/u16-sprintf: Likewise.
15171         * modules/unistdio/u16-u16-asnprintf: Likewise.
15172         * modules/unistdio/u16-u16-asprintf: Likewise.
15173         * modules/unistdio/u16-u16-snprintf: Likewise.
15174         * modules/unistdio/u16-u16-sprintf: Likewise.
15175         * modules/unistdio/u16-u16-vasnprintf: Likewise.
15176         * modules/unistdio/u16-u16-vasprintf: Likewise.
15177         * modules/unistdio/u16-u16-vsnprintf: Likewise.
15178         * modules/unistdio/u16-u16-vsprintf: Likewise.
15179         * modules/unistdio/u16-vasnprintf: Likewise.
15180         * modules/unistdio/u16-vasprintf: Likewise.
15181         * modules/unistdio/u16-vsnprintf: Likewise.
15182         * modules/unistdio/u16-vsprintf: Likewise.
15183         * modules/unistdio/u32-asnprintf: Likewise.
15184         * modules/unistdio/u32-asprintf: Likewise.
15185         * modules/unistdio/u32-snprintf: Likewise.
15186         * modules/unistdio/u32-sprintf: Likewise.
15187         * modules/unistdio/u32-u32-asnprintf: Likewise.
15188         * modules/unistdio/u32-u32-asprintf: Likewise.
15189         * modules/unistdio/u32-u32-snprintf: Likewise.
15190         * modules/unistdio/u32-u32-sprintf: Likewise.
15191         * modules/unistdio/u32-u32-vasnprintf: Likewise.
15192         * modules/unistdio/u32-u32-vasprintf: Likewise.
15193         * modules/unistdio/u32-u32-vsnprintf: Likewise.
15194         * modules/unistdio/u32-u32-vsprintf: Likewise.
15195         * modules/unistdio/u32-vasnprintf: Likewise.
15196         * modules/unistdio/u32-vasprintf: Likewise.
15197         * modules/unistdio/u32-vsnprintf: Likewise.
15198         * modules/unistdio/u32-vsprintf: Likewise.
15199         * modules/unistdio/ulc-asnprintf: Likewise.
15200         * modules/unistdio/ulc-asprintf: Likewise.
15201         * modules/unistdio/ulc-fprintf: Likewise.
15202         * modules/unistdio/ulc-snprintf: Likewise.
15203         * modules/unistdio/ulc-sprintf: Likewise.
15204         * modules/unistdio/ulc-vasnprintf: Likewise.
15205         * modules/unistdio/ulc-vasprintf: Likewise.
15206         * modules/unistdio/ulc-vfprintf: Likewise.
15207         * modules/unistdio/ulc-vsnprintf: Likewise.
15208         * modules/unistdio/ulc-vsprintf: Likewise.
15209         * modules/unistr/u8-check: Likewise.
15210         * modules/unistr/u8-chr: Likewise.
15211         * modules/unistr/u8-cmp: Likewise.
15212         * modules/unistr/u8-cmp2: Likewise.
15213         * modules/unistr/u8-cpy: Likewise.
15214         * modules/unistr/u8-cpy-alloc: Likewise.
15215         * modules/unistr/u8-endswith: Likewise.
15216         * modules/unistr/u8-mblen: Likewise.
15217         * modules/unistr/u8-mbsnlen: Likewise.
15218         * modules/unistr/u8-mbtouc: Likewise.
15219         * modules/unistr/u8-mbtouc-unsafe: Likewise.
15220         * modules/unistr/u8-mbtoucr: Likewise.
15221         * modules/unistr/u8-move: Likewise.
15222         * modules/unistr/u8-next: Likewise.
15223         * modules/unistr/u8-prev: Likewise.
15224         * modules/unistr/u8-set: Likewise.
15225         * modules/unistr/u8-startswith: Likewise.
15226         * modules/unistr/u8-stpcpy: Likewise.
15227         * modules/unistr/u8-stpncpy: Likewise.
15228         * modules/unistr/u8-strcat: Likewise.
15229         * modules/unistr/u8-strchr: Likewise.
15230         * modules/unistr/u8-strcmp: Likewise.
15231         * modules/unistr/u8-strcoll: Likewise.
15232         * modules/unistr/u8-strcpy: Likewise.
15233         * modules/unistr/u8-strcspn: Likewise.
15234         * modules/unistr/u8-strdup: Likewise.
15235         * modules/unistr/u8-strlen: Likewise.
15236         * modules/unistr/u8-strmblen: Likewise.
15237         * modules/unistr/u8-strmbtouc: Likewise.
15238         * modules/unistr/u8-strncat: Likewise.
15239         * modules/unistr/u8-strncmp: Likewise.
15240         * modules/unistr/u8-strncpy: Likewise.
15241         * modules/unistr/u8-strnlen: Likewise.
15242         * modules/unistr/u8-strpbrk: Likewise.
15243         * modules/unistr/u8-strrchr: Likewise.
15244         * modules/unistr/u8-strspn: Likewise.
15245         * modules/unistr/u8-strstr: Likewise.
15246         * modules/unistr/u8-strtok: Likewise.
15247         * modules/unistr/u8-to-u16: Likewise.
15248         * modules/unistr/u8-to-u32: Likewise.
15249         * modules/unistr/u8-uctomb: Likewise.
15250         * modules/unistr/u16-check: Likewise.
15251         * modules/unistr/u16-chr: Likewise.
15252         * modules/unistr/u16-cmp: Likewise.
15253         * modules/unistr/u16-cmp2: Likewise.
15254         * modules/unistr/u16-cpy: Likewise.
15255         * modules/unistr/u16-cpy-alloc: Likewise.
15256         * modules/unistr/u16-endswith: Likewise.
15257         * modules/unistr/u16-mblen: Likewise.
15258         * modules/unistr/u16-mbsnlen: Likewise.
15259         * modules/unistr/u16-mbtouc: Likewise.
15260         * modules/unistr/u16-mbtouc-unsafe: Likewise.
15261         * modules/unistr/u16-mbtoucr: Likewise.
15262         * modules/unistr/u16-move: Likewise.
15263         * modules/unistr/u16-next: Likewise.
15264         * modules/unistr/u16-prev: Likewise.
15265         * modules/unistr/u16-set: Likewise.
15266         * modules/unistr/u16-startswith: Likewise.
15267         * modules/unistr/u16-stpcpy: Likewise.
15268         * modules/unistr/u16-stpncpy: Likewise.
15269         * modules/unistr/u16-strcat: Likewise.
15270         * modules/unistr/u16-strchr: Likewise.
15271         * modules/unistr/u16-strcmp: Likewise.
15272         * modules/unistr/u16-strcoll: Likewise.
15273         * modules/unistr/u16-strcpy: Likewise.
15274         * modules/unistr/u16-strcspn: Likewise.
15275         * modules/unistr/u16-strdup: Likewise.
15276         * modules/unistr/u16-strlen: Likewise.
15277         * modules/unistr/u16-strmblen: Likewise.
15278         * modules/unistr/u16-strmbtouc: Likewise.
15279         * modules/unistr/u16-strncat: Likewise.
15280         * modules/unistr/u16-strncmp: Likewise.
15281         * modules/unistr/u16-strncpy: Likewise.
15282         * modules/unistr/u16-strnlen: Likewise.
15283         * modules/unistr/u16-strpbrk: Likewise.
15284         * modules/unistr/u16-strrchr: Likewise.
15285         * modules/unistr/u16-strspn: Likewise.
15286         * modules/unistr/u16-strstr: Likewise.
15287         * modules/unistr/u16-strtok: Likewise.
15288         * modules/unistr/u16-to-u32: Likewise.
15289         * modules/unistr/u16-to-u8: Likewise.
15290         * modules/unistr/u16-uctomb: Likewise.
15291         * modules/unistr/u32-check: Likewise.
15292         * modules/unistr/u32-chr: Likewise.
15293         * modules/unistr/u32-cmp: Likewise.
15294         * modules/unistr/u32-cmp2: Likewise.
15295         * modules/unistr/u32-cpy: Likewise.
15296         * modules/unistr/u32-cpy-alloc: Likewise.
15297         * modules/unistr/u32-endswith: Likewise.
15298         * modules/unistr/u32-mblen: Likewise.
15299         * modules/unistr/u32-mbsnlen: Likewise.
15300         * modules/unistr/u32-mbtouc: Likewise.
15301         * modules/unistr/u32-mbtouc-unsafe: Likewise.
15302         * modules/unistr/u32-mbtoucr: Likewise.
15303         * modules/unistr/u32-move: Likewise.
15304         * modules/unistr/u32-next: Likewise.
15305         * modules/unistr/u32-prev: Likewise.
15306         * modules/unistr/u32-set: Likewise.
15307         * modules/unistr/u32-startswith: Likewise.
15308         * modules/unistr/u32-stpcpy: Likewise.
15309         * modules/unistr/u32-stpncpy: Likewise.
15310         * modules/unistr/u32-strcat: Likewise.
15311         * modules/unistr/u32-strchr: Likewise.
15312         * modules/unistr/u32-strcmp: Likewise.
15313         * modules/unistr/u32-strcoll: Likewise.
15314         * modules/unistr/u32-strcpy: Likewise.
15315         * modules/unistr/u32-strcspn: Likewise.
15316         * modules/unistr/u32-strdup: Likewise.
15317         * modules/unistr/u32-strlen: Likewise.
15318         * modules/unistr/u32-strmblen: Likewise.
15319         * modules/unistr/u32-strmbtouc: Likewise.
15320         * modules/unistr/u32-strncat: Likewise.
15321         * modules/unistr/u32-strncmp: Likewise.
15322         * modules/unistr/u32-strncpy: Likewise.
15323         * modules/unistr/u32-strnlen: Likewise.
15324         * modules/unistr/u32-strpbrk: Likewise.
15325         * modules/unistr/u32-strrchr: Likewise.
15326         * modules/unistr/u32-strspn: Likewise.
15327         * modules/unistr/u32-strstr: Likewise.
15328         * modules/unistr/u32-strtok: Likewise.
15329         * modules/unistr/u32-to-u16: Likewise.
15330         * modules/unistr/u32-to-u8: Likewise.
15331         * modules/unistr/u32-uctomb: Likewise.
15332         * modules/uniwbrk/u8-wordbreaks: Likewise.
15333         * modules/uniwbrk/u16-wordbreaks: Likewise.
15334         * modules/uniwbrk/u32-wordbreaks: Likewise.
15335         * modules/uniwbrk/ulc-wordbreaks: Likewise.
15336         * modules/uniwbrk/wordbreak-property: Likewise.
15337         * modules/uniwidth/u8-strwidth: Likewise.
15338         * modules/uniwidth/u8-width: Likewise.
15339         * modules/uniwidth/u16-strwidth: Likewise.
15340         * modules/uniwidth/u16-width: Likewise.
15341         * modules/uniwidth/u32-strwidth: Likewise.
15342         * modules/uniwidth/u32-width: Likewise.
15343         * modules/uniwidth/width: Likewise.
15344         * modules/unicase/cased-tests (Makefile.am): Link all test programs
15345         with $(LIBUNISTRING).
15346         * modules/unicase/ignorable-tests: Likewise.
15347         * modules/unicase/locale-language-tests: Likewise.
15348         * modules/unicase/tolower-tests: Likewise.
15349         * modules/unicase/totitle-tests: Likewise.
15350         * modules/unicase/toupper-tests: Likewise.
15351         * modules/unicase/u8-casecmp-tests: Likewise.
15352         * modules/unicase/u8-casecoll-tests: Likewise.
15353         * modules/unicase/u8-casefold-tests: Likewise.
15354         * modules/unicase/u8-is-cased-tests: Likewise.
15355         * modules/unicase/u8-is-casefolded-tests: Likewise.
15356         * modules/unicase/u8-is-lowercase-tests: Likewise.
15357         * modules/unicase/u8-is-titlecase-tests: Likewise.
15358         * modules/unicase/u8-is-uppercase-tests: Likewise.
15359         * modules/unicase/u8-tolower-tests: Likewise.
15360         * modules/unicase/u8-totitle-tests: Likewise.
15361         * modules/unicase/u8-toupper-tests: Likewise.
15362         * modules/unicase/u16-casecmp-tests: Likewise.
15363         * modules/unicase/u16-casecoll-tests: Likewise.
15364         * modules/unicase/u16-casefold-tests: Likewise.
15365         * modules/unicase/u16-is-cased-tests: Likewise.
15366         * modules/unicase/u16-is-casefolded-tests: Likewise.
15367         * modules/unicase/u16-is-lowercase-tests: Likewise.
15368         * modules/unicase/u16-is-titlecase-tests: Likewise.
15369         * modules/unicase/u16-is-uppercase-tests: Likewise.
15370         * modules/unicase/u16-tolower-tests: Likewise.
15371         * modules/unicase/u16-totitle-tests: Likewise.
15372         * modules/unicase/u16-toupper-tests: Likewise.
15373         * modules/unicase/u32-casecmp-tests: Likewise.
15374         * modules/unicase/u32-casecoll-tests: Likewise.
15375         * modules/unicase/u32-casefold-tests: Likewise.
15376         * modules/unicase/u32-is-cased-tests: Likewise.
15377         * modules/unicase/u32-is-casefolded-tests: Likewise.
15378         * modules/unicase/u32-is-lowercase-tests: Likewise.
15379         * modules/unicase/u32-is-titlecase-tests: Likewise.
15380         * modules/unicase/u32-is-uppercase-tests: Likewise.
15381         * modules/unicase/u32-tolower-tests: Likewise.
15382         * modules/unicase/u32-totitle-tests: Likewise.
15383         * modules/unicase/u32-toupper-tests: Likewise.
15384         * modules/unicase/ulc-casecmp-tests: Likewise.
15385         * modules/unicase/ulc-casecoll-tests: Likewise.
15386         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
15387         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
15388         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
15389         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
15390         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
15391         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
15392         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
15393         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
15394         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
15395         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
15396         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
15397         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
15398         * modules/unictype/bidicategory-byname-tests: Likewise.
15399         * modules/unictype/bidicategory-name-tests: Likewise.
15400         * modules/unictype/bidicategory-of-tests: Likewise.
15401         * modules/unictype/bidicategory-test-tests: Likewise.
15402         * modules/unictype/block-list-tests: Likewise.
15403         * modules/unictype/block-of-tests: Likewise.
15404         * modules/unictype/block-test-tests: Likewise.
15405         * modules/unictype/category-C-tests: Likewise.
15406         * modules/unictype/category-Cc-tests: Likewise.
15407         * modules/unictype/category-Cf-tests: Likewise.
15408         * modules/unictype/category-Cn-tests: Likewise.
15409         * modules/unictype/category-Co-tests: Likewise.
15410         * modules/unictype/category-Cs-tests: Likewise.
15411         * modules/unictype/category-L-tests: Likewise.
15412         * modules/unictype/category-Ll-tests: Likewise.
15413         * modules/unictype/category-Lm-tests: Likewise.
15414         * modules/unictype/category-Lo-tests: Likewise.
15415         * modules/unictype/category-Lt-tests: Likewise.
15416         * modules/unictype/category-Lu-tests: Likewise.
15417         * modules/unictype/category-M-tests: Likewise.
15418         * modules/unictype/category-Mc-tests: Likewise.
15419         * modules/unictype/category-Me-tests: Likewise.
15420         * modules/unictype/category-Mn-tests: Likewise.
15421         * modules/unictype/category-N-tests: Likewise.
15422         * modules/unictype/category-Nd-tests: Likewise.
15423         * modules/unictype/category-Nl-tests: Likewise.
15424         * modules/unictype/category-No-tests: Likewise.
15425         * modules/unictype/category-P-tests: Likewise.
15426         * modules/unictype/category-Pc-tests: Likewise.
15427         * modules/unictype/category-Pd-tests: Likewise.
15428         * modules/unictype/category-Pe-tests: Likewise.
15429         * modules/unictype/category-Pf-tests: Likewise.
15430         * modules/unictype/category-Pi-tests: Likewise.
15431         * modules/unictype/category-Po-tests: Likewise.
15432         * modules/unictype/category-Ps-tests: Likewise.
15433         * modules/unictype/category-S-tests: Likewise.
15434         * modules/unictype/category-Sc-tests: Likewise.
15435         * modules/unictype/category-Sk-tests: Likewise.
15436         * modules/unictype/category-Sm-tests: Likewise.
15437         * modules/unictype/category-So-tests: Likewise.
15438         * modules/unictype/category-Z-tests: Likewise.
15439         * modules/unictype/category-Zl-tests: Likewise.
15440         * modules/unictype/category-Zp-tests: Likewise.
15441         * modules/unictype/category-Zs-tests: Likewise.
15442         * modules/unictype/category-and-not-tests: Likewise.
15443         * modules/unictype/category-and-tests: Likewise.
15444         * modules/unictype/category-byname-tests: Likewise.
15445         * modules/unictype/category-name-tests: Likewise.
15446         * modules/unictype/category-none-tests: Likewise.
15447         * modules/unictype/category-of-tests: Likewise.
15448         * modules/unictype/category-or-tests: Likewise.
15449         * modules/unictype/category-test-withtable-tests: Likewise.
15450         * modules/unictype/combining-class-tests: Likewise.
15451         * modules/unictype/ctype-alnum-tests: Likewise.
15452         * modules/unictype/ctype-alpha-tests: Likewise.
15453         * modules/unictype/ctype-blank-tests: Likewise.
15454         * modules/unictype/ctype-cntrl-tests: Likewise.
15455         * modules/unictype/ctype-digit-tests: Likewise.
15456         * modules/unictype/ctype-graph-tests: Likewise.
15457         * modules/unictype/ctype-lower-tests: Likewise.
15458         * modules/unictype/ctype-print-tests: Likewise.
15459         * modules/unictype/ctype-punct-tests: Likewise.
15460         * modules/unictype/ctype-space-tests: Likewise.
15461         * modules/unictype/ctype-upper-tests: Likewise.
15462         * modules/unictype/ctype-xdigit-tests: Likewise.
15463         * modules/unictype/decimal-digit-tests: Likewise.
15464         * modules/unictype/digit-tests: Likewise.
15465         * modules/unictype/mirror-tests: Likewise.
15466         * modules/unictype/numeric-tests: Likewise.
15467         * modules/unictype/property-alphabetic-tests: Likewise.
15468         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
15469         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
15470         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
15471         * modules/unictype/property-bidi-block-separator-tests: Likewise.
15472         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
15473         * modules/unictype/property-bidi-common-separator-tests: Likewise.
15474         * modules/unictype/property-bidi-control-tests: Likewise.
15475         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
15476         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
15477         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
15478         * modules/unictype/property-bidi-european-digit-tests: Likewise.
15479         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
15480         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
15481         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
15482         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
15483         * modules/unictype/property-bidi-pdf-tests: Likewise.
15484         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
15485         * modules/unictype/property-bidi-whitespace-tests: Likewise.
15486         * modules/unictype/property-byname-tests: Likewise.
15487         * modules/unictype/property-combining-tests: Likewise.
15488         * modules/unictype/property-composite-tests: Likewise.
15489         * modules/unictype/property-currency-symbol-tests: Likewise.
15490         * modules/unictype/property-dash-tests: Likewise.
15491         * modules/unictype/property-decimal-digit-tests: Likewise.
15492         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
15493         * modules/unictype/property-deprecated-tests: Likewise.
15494         * modules/unictype/property-diacritic-tests: Likewise.
15495         * modules/unictype/property-extender-tests: Likewise.
15496         * modules/unictype/property-format-control-tests: Likewise.
15497         * modules/unictype/property-grapheme-base-tests: Likewise.
15498         * modules/unictype/property-grapheme-extend-tests: Likewise.
15499         * modules/unictype/property-grapheme-link-tests: Likewise.
15500         * modules/unictype/property-hex-digit-tests: Likewise.
15501         * modules/unictype/property-hyphen-tests: Likewise.
15502         * modules/unictype/property-id-continue-tests: Likewise.
15503         * modules/unictype/property-id-start-tests: Likewise.
15504         * modules/unictype/property-ideographic-tests: Likewise.
15505         * modules/unictype/property-ids-binary-operator-tests: Likewise.
15506         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
15507         * modules/unictype/property-ignorable-control-tests: Likewise.
15508         * modules/unictype/property-iso-control-tests: Likewise.
15509         * modules/unictype/property-join-control-tests: Likewise.
15510         * modules/unictype/property-left-of-pair-tests: Likewise.
15511         * modules/unictype/property-line-separator-tests: Likewise.
15512         * modules/unictype/property-logical-order-exception-tests: Likewise.
15513         * modules/unictype/property-lowercase-tests: Likewise.
15514         * modules/unictype/property-math-tests: Likewise.
15515         * modules/unictype/property-non-break-tests: Likewise.
15516         * modules/unictype/property-not-a-character-tests: Likewise.
15517         * modules/unictype/property-numeric-tests: Likewise.
15518         * modules/unictype/property-other-alphabetic-tests: Likewise.
15519         * modules/unictype/property-other-default-ignorable-code-point-tests:
15520         Likewise.
15521         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
15522         * modules/unictype/property-other-id-continue-tests: Likewise.
15523         * modules/unictype/property-other-id-start-tests: Likewise.
15524         * modules/unictype/property-other-lowercase-tests: Likewise.
15525         * modules/unictype/property-other-math-tests: Likewise.
15526         * modules/unictype/property-other-uppercase-tests: Likewise.
15527         * modules/unictype/property-paired-punctuation-tests: Likewise.
15528         * modules/unictype/property-paragraph-separator-tests: Likewise.
15529         * modules/unictype/property-pattern-syntax-tests: Likewise.
15530         * modules/unictype/property-pattern-white-space-tests: Likewise.
15531         * modules/unictype/property-private-use-tests: Likewise.
15532         * modules/unictype/property-punctuation-tests: Likewise.
15533         * modules/unictype/property-quotation-mark-tests: Likewise.
15534         * modules/unictype/property-radical-tests: Likewise.
15535         * modules/unictype/property-sentence-terminal-tests: Likewise.
15536         * modules/unictype/property-soft-dotted-tests: Likewise.
15537         * modules/unictype/property-space-tests: Likewise.
15538         * modules/unictype/property-terminal-punctuation-tests: Likewise.
15539         * modules/unictype/property-test-tests: Likewise.
15540         * modules/unictype/property-titlecase-tests: Likewise.
15541         * modules/unictype/property-unassigned-code-value-tests: Likewise.
15542         * modules/unictype/property-unified-ideograph-tests: Likewise.
15543         * modules/unictype/property-uppercase-tests: Likewise.
15544         * modules/unictype/property-variation-selector-tests: Likewise.
15545         * modules/unictype/property-white-space-tests: Likewise.
15546         * modules/unictype/property-xid-continue-tests: Likewise.
15547         * modules/unictype/property-xid-start-tests: Likewise.
15548         * modules/unictype/property-zero-width-tests: Likewise.
15549         * modules/unictype/scripts-tests: Likewise.
15550         * modules/unictype/syntax-c-ident-tests: Likewise.
15551         * modules/unictype/syntax-c-whitespace-tests: Likewise.
15552         * modules/unictype/syntax-java-ident-tests: Likewise.
15553         * modules/unictype/syntax-java-whitespace-tests: Likewise.
15554         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
15555         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
15556         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
15557         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
15558         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
15559         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
15560         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
15561         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
15562         * modules/uniname/uniname-tests: Likewise.
15563         * modules/uninorm/canonical-decomposition-tests: Likewise.
15564         * modules/uninorm/compat-decomposition-tests: Likewise.
15565         * modules/uninorm/composition-tests: Likewise.
15566         * modules/uninorm/decomposing-form-tests: Likewise.
15567         * modules/uninorm/decomposition-tests: Likewise.
15568         * modules/uninorm/filter-tests: Likewise.
15569         * modules/uninorm/nfc-tests: Likewise.
15570         * modules/uninorm/nfd-tests: Likewise.
15571         * modules/uninorm/nfkc-tests: Likewise.
15572         * modules/uninorm/nfkd-tests: Likewise.
15573         * modules/uninorm/u8-normcmp-tests: Likewise.
15574         * modules/uninorm/u8-normcoll-tests: Likewise.
15575         * modules/uninorm/u16-normcmp-tests: Likewise.
15576         * modules/uninorm/u16-normcoll-tests: Likewise.
15577         * modules/uninorm/u32-normcmp-tests: Likewise.
15578         * modules/uninorm/u32-normcoll-tests: Likewise.
15579         * modules/unistdio/u8-asnprintf-tests: Likewise.
15580         * modules/unistdio/u8-vasnprintf-tests: Likewise.
15581         * modules/unistdio/u8-vasprintf-tests: Likewise.
15582         * modules/unistdio/u8-vsnprintf-tests: Likewise.
15583         * modules/unistdio/u8-vsprintf-tests: Likewise.
15584         * modules/unistdio/u16-asnprintf-tests: Likewise.
15585         * modules/unistdio/u16-vasnprintf-tests: Likewise.
15586         * modules/unistdio/u16-vasprintf-tests: Likewise.
15587         * modules/unistdio/u16-vsnprintf-tests: Likewise.
15588         * modules/unistdio/u16-vsprintf-tests: Likewise.
15589         * modules/unistdio/u32-asnprintf-tests: Likewise.
15590         * modules/unistdio/u32-vasnprintf-tests: Likewise.
15591         * modules/unistdio/u32-vasprintf-tests: Likewise.
15592         * modules/unistdio/u32-vsnprintf-tests: Likewise.
15593         * modules/unistdio/u32-vsprintf-tests: Likewise.
15594         * modules/unistdio/ulc-asnprintf-tests: Likewise.
15595         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
15596         * modules/unistdio/ulc-vasprintf-tests: Likewise.
15597         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
15598         * modules/unistdio/ulc-vsprintf-tests: Likewise.
15599         * modules/unistr/u8-check-tests: Likewise.
15600         * modules/unistr/u8-chr-tests: Likewise.
15601         * modules/unistr/u8-cmp-tests: Likewise.
15602         * modules/unistr/u8-cmp2-tests: Likewise.
15603         * modules/unistr/u8-cpy-alloc-tests: Likewise.
15604         * modules/unistr/u8-cpy-tests: Likewise.
15605         * modules/unistr/u8-mblen-tests: Likewise.
15606         * modules/unistr/u8-mbsnlen-tests: Likewise.
15607         * modules/unistr/u8-mbtouc-tests: Likewise.
15608         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
15609         * modules/unistr/u8-mbtoucr-tests: Likewise.
15610         * modules/unistr/u8-move-tests: Likewise.
15611         * modules/unistr/u8-next-tests: Likewise.
15612         * modules/unistr/u8-prev-tests: Likewise.
15613         * modules/unistr/u8-set-tests: Likewise.
15614         * modules/unistr/u8-stpcpy-tests: Likewise.
15615         * modules/unistr/u8-stpncpy-tests: Likewise.
15616         * modules/unistr/u8-strcat-tests: Likewise.
15617         * modules/unistr/u8-strcmp-tests: Likewise.
15618         * modules/unistr/u8-strcoll-tests: Likewise.
15619         * modules/unistr/u8-strcpy-tests: Likewise.
15620         * modules/unistr/u8-strdup-tests: Likewise.
15621         * modules/unistr/u8-strlen-tests: Likewise.
15622         * modules/unistr/u8-strmblen-tests: Likewise.
15623         * modules/unistr/u8-strmbtouc-tests: Likewise.
15624         * modules/unistr/u8-strncat-tests: Likewise.
15625         * modules/unistr/u8-strncmp-tests: Likewise.
15626         * modules/unistr/u8-strncpy-tests: Likewise.
15627         * modules/unistr/u8-strnlen-tests: Likewise.
15628         * modules/unistr/u8-to-u16-tests: Likewise.
15629         * modules/unistr/u8-to-u32-tests: Likewise.
15630         * modules/unistr/u8-uctomb-tests: Likewise.
15631         * modules/unistr/u16-check-tests: Likewise.
15632         * modules/unistr/u16-chr-tests: Likewise.
15633         * modules/unistr/u16-cmp-tests: Likewise.
15634         * modules/unistr/u16-cmp2-tests: Likewise.
15635         * modules/unistr/u16-cpy-alloc-tests: Likewise.
15636         * modules/unistr/u16-cpy-tests: Likewise.
15637         * modules/unistr/u16-mblen-tests: Likewise.
15638         * modules/unistr/u16-mbsnlen-tests: Likewise.
15639         * modules/unistr/u16-mbtouc-tests: Likewise.
15640         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
15641         * modules/unistr/u16-mbtoucr-tests: Likewise.
15642         * modules/unistr/u16-move-tests: Likewise.
15643         * modules/unistr/u16-next-tests: Likewise.
15644         * modules/unistr/u16-prev-tests: Likewise.
15645         * modules/unistr/u16-set-tests: Likewise.
15646         * modules/unistr/u16-stpcpy-tests: Likewise.
15647         * modules/unistr/u16-stpncpy-tests: Likewise.
15648         * modules/unistr/u16-strcat-tests: Likewise.
15649         * modules/unistr/u16-strcmp-tests: Likewise.
15650         * modules/unistr/u16-strcoll-tests: Likewise.
15651         * modules/unistr/u16-strcpy-tests: Likewise.
15652         * modules/unistr/u16-strdup-tests: Likewise.
15653         * modules/unistr/u16-strlen-tests: Likewise.
15654         * modules/unistr/u16-strmblen-tests: Likewise.
15655         * modules/unistr/u16-strmbtouc-tests: Likewise.
15656         * modules/unistr/u16-strncat-tests: Likewise.
15657         * modules/unistr/u16-strncmp-tests: Likewise.
15658         * modules/unistr/u16-strncpy-tests: Likewise.
15659         * modules/unistr/u16-strnlen-tests: Likewise.
15660         * modules/unistr/u16-to-u32-tests: Likewise.
15661         * modules/unistr/u16-to-u8-tests: Likewise.
15662         * modules/unistr/u16-uctomb-tests: Likewise.
15663         * modules/unistr/u32-check-tests: Likewise.
15664         * modules/unistr/u32-chr-tests: Likewise.
15665         * modules/unistr/u32-cmp-tests: Likewise.
15666         * modules/unistr/u32-cmp2-tests: Likewise.
15667         * modules/unistr/u32-cpy-alloc-tests: Likewise.
15668         * modules/unistr/u32-cpy-tests: Likewise.
15669         * modules/unistr/u32-mblen-tests: Likewise.
15670         * modules/unistr/u32-mbsnlen-tests: Likewise.
15671         * modules/unistr/u32-mbtouc-tests: Likewise.
15672         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
15673         * modules/unistr/u32-mbtoucr-tests: Likewise.
15674         * modules/unistr/u32-move-tests: Likewise.
15675         * modules/unistr/u32-next-tests: Likewise.
15676         * modules/unistr/u32-prev-tests: Likewise.
15677         * modules/unistr/u32-set-tests: Likewise.
15678         * modules/unistr/u32-stpcpy-tests: Likewise.
15679         * modules/unistr/u32-stpncpy-tests: Likewise.
15680         * modules/unistr/u32-strcat-tests: Likewise.
15681         * modules/unistr/u32-strcmp-tests: Likewise.
15682         * modules/unistr/u32-strcoll-tests: Likewise.
15683         * modules/unistr/u32-strcpy-tests: Likewise.
15684         * modules/unistr/u32-strdup-tests: Likewise.
15685         * modules/unistr/u32-strlen-tests: Likewise.
15686         * modules/unistr/u32-strmblen-tests: Likewise.
15687         * modules/unistr/u32-strmbtouc-tests: Likewise.
15688         * modules/unistr/u32-strncat-tests: Likewise.
15689         * modules/unistr/u32-strncmp-tests: Likewise.
15690         * modules/unistr/u32-strncpy-tests: Likewise.
15691         * modules/unistr/u32-strnlen-tests: Likewise.
15692         * modules/unistr/u32-to-u16-tests: Likewise.
15693         * modules/unistr/u32-to-u8-tests: Likewise.
15694         * modules/unistr/u32-uctomb-tests: Likewise.
15695         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
15696         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
15697         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
15698         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
15699         * modules/uniwidth/u8-strwidth-tests: Likewise.
15700         * modules/uniwidth/u8-width-tests: Likewise.
15701         * modules/uniwidth/u16-strwidth-tests: Likewise.
15702         * modules/uniwidth/u16-width-tests: Likewise.
15703         * modules/uniwidth/u32-strwidth-tests: Likewise.
15704         * modules/uniwidth/u32-width-tests: Likewise.
15705         * modules/uniwidth/width-tests: Likewise.
15706
15707 2010-05-18  Richard Jones  <rjones@redhat.com>
15708
15709         doc: users.txt: list hivex
15710         * users.txt: Add hivex.
15711
15712 2010-05-18  Richard Jones  <rjones@redhat.com>
15713
15714         doc: users.txt: list febootstrap
15715         * users.txt: Add febootstrap.
15716
15717 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
15718
15719         bootstrap: fix an error when gnulib is not used as a git submodule
15720         * build-aux/bootstrap (gnulib_path): If its length is zero then
15721         assign "gnulib" to it.
15722         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
15723
15724 2010-05-16  Bruno Haible  <bruno@clisp.org>
15725
15726         Avoid autoconf warnings about AM_ICONV.
15727         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
15728         2.64.
15729
15730 2010-05-16  Bruno Haible  <bruno@clisp.org>
15731
15732         absolute-header: Make the macro usable in more situations.
15733         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
15734         from gl_ABSOLUTE_HEADER.
15735         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
15736
15737 2010-05-16  James Youngman  <jay@gnu.org>
15738
15739         doc: update users.txt
15740         * users.txt: Add CSSC.
15741
15742 2010-05-16  Jim Meyering  <meyering@redhat.com>
15743
15744         init.sh: fix an error in the previous change; add more comments
15745         * tests/init.sh: Compare exit code in loop against 9, not 2.
15746         Patch by Bruno Haible.
15747         Make the two tests more similar by adding an empty "then" clause.
15748         Add comments.
15749
15750         init.sh: avoid unnecessary shell re-exec
15751         * tests/init.sh: Improve the re-exec-required check to first test the
15752         current shell.  If it passes the test, do not search for a shell that
15753         does pass, and do not re-exec.  This test is particularly contorted to
15754         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
15755         of $(...) evokes a syntax error and causes immediate shell exit with
15756         status 2.  Bruno Haible reported that the re-exec made it impossible
15757         to single-step through any init.sh-using script.
15758
15759 2010-05-16  Bruno Haible  <bruno@clisp.org>
15760
15761         Fix collision between gnulib's and libintl's printf replacements.
15762         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
15763         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
15764         (printf): When using GNU C, map the __printf__ function to rpl_printf
15765         via __asm__. When not using GNU C, define rpl_printf instead of
15766         __printf__.
15767         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
15768         commit.
15769         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
15770         commit.
15771         * m4/asm-underscore.m4: New file.
15772         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
15773         * modules/stdio (Files): Add m4/asm-underscore.m4.
15774         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
15775         Reported by Ben Pfaff.
15776
15777 2010-05-16  Bruno Haible  <bruno@clisp.org>
15778
15779         verify: Avoid skipping the test on openSUSE 11.0.
15780         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
15781
15782 2010-05-13  Bruno Haible  <bruno@clisp.org>
15783
15784         Avoid useless warnings from G++.
15785         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
15786         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
15787         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15788
15789 2010-05-11  Jim Meyering  <meyering@redhat.com>
15790
15791         maint.mk: tweak preceding change
15792         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
15793         regexps tighter by anchoring at EOL, and make the new group "shy"
15794         for slightly decreased overhead.
15795
15796 2010-05-11  Eric Blake  <eblake@redhat.com>
15797
15798         maint.mk: gnulib doesn't guarantee NSIG
15799         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
15800
15801 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
15802
15803         test-pwrite.c: Remove unused variable declaration.
15804         * tests/test-pwrite.c (main): Remove read_buf declaration.
15805
15806         Remove useless test-pwrite.sh file.
15807         * tests/test-pwrite.sh: Delete file.
15808         * modules/pwrite-tests: Remove references.
15809         Reported by Bruno Haible.
15810
15811 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
15812
15813         init.sh: fix a typo
15814         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
15815
15816 2010-05-10  Jim Meyering  <meyering@redhat.com>
15817
15818         maint.mk: avoid using a temporary file in the always-defined-macros check
15819         * top/maint.mk (.re-defmac): Remove rule.
15820         (gl_trap_): Remove definition.
15821         (sc_prohibit_always-defined_macros): Rewrite not to create and
15822         depend on a temporary file.  Instead, depend on GNU grep's ability
15823         to read a list of regular expressions from stdin when given "-f -".
15824
15825 2010-05-09  Bruno Haible  <bruno@clisp.org>
15826
15827         Update to GNU gettext 0.18, part 1.
15828         * m4/gettext.m4: Update to GNU gettext 0.18.
15829         * m4/intl.m4: Likewise.
15830         * m4/po.m4: Likewise.
15831         * modules/gettext (Files): Add m4/fcntl-o.m4.
15832         (configure.ac): Require gettext infrastructure from version 0.18.
15833
15834 2010-05-09  Jim Meyering  <meyering@redhat.com>
15835
15836         init.sh: enable MALLOC_PERTURB_
15837         * tests/init.sh: Enable glibc's malloc-perturbing option.
15838
15839         maint.mk: improve sc_cross_check_PATH_usage_in_tests
15840         With my recent change in init.sh from the two-line form:
15841             -#   : ${srcdir=.}
15842             -#   . "$srcdir/init.sh"; path_prepend_ .
15843             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
15844         I noticed that using the one-line form would cause this test
15845         to fail with a false-positive, or to stop working altogether,
15846         depending on whether help-version changed or all the tests did.
15847         * top/maint.mk (_hv_regex): Remove this definition.
15848         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
15849         (_hv_regex_strong): Use a stronger regex to check for conformance.
15850         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
15851         Give a separate diagnostic for lack of conforming use.
15852
15853         maint.mk: prohibit definition of symbols defined by gnulib
15854         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
15855         definition of symbols defined by gnulib.
15856
15857 2010-05-09  Bruno Haible  <bruno@clisp.org>
15858
15859         acl: Avoid test failure on Cygwin-hosted mingw.
15860         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
15861
15862 2010-05-09  Bruno Haible  <bruno@clisp.org>
15863
15864         error: Use system's fcntl function.
15865         * lib/error.c (fcntl): Undefine.
15866
15867 2010-05-09  Jim Meyering  <meyering@redhat.com>
15868
15869         verify: adjust formatting to be more consistent
15870         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
15871         argument-list '('s, and after one comma.
15872
15873 2010-05-09  Bruno Haible  <bruno@clisp.org>
15874
15875         error: More reliable output on mingw.
15876         * lib/error.c: Include <windows.h>.
15877         (is_open): New function.
15878         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
15879         defined.
15880
15881 2010-05-09  Bruno Haible  <bruno@clisp.org>
15882
15883         vasnprintf: Fix syntax errors in libintl build on mingw.
15884         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
15885         pad_ourselves and prec_ourselves after use.
15886
15887 2010-05-08  Bruno Haible  <bruno@clisp.org>
15888
15889         * lib/config.charset: Update comments for Cygwin 1.7.
15890         * lib/localcharset.c: Likewise.
15891
15892 2010-05-07  Jim Meyering  <meyering@redhat.com>
15893
15894         init.sh: improve comments
15895         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
15896         . "${srcdir=.}/init.sh"; path_prepend_ .
15897         Add a note about path_prepend_ and the alternative of using
15898         TESTS_ENVIRONMENT.
15899
15900 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
15901
15902         exclude: Unescape hashed patterns in wildcard mode.
15903         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
15904         to the hash list.
15905         * tests/test-exclude8.sh: New test case.
15906         * modules/exclude-tests: Add new test.
15907
15908 2010-05-05  Eric Blake  <eblake@redhat.com>
15909
15910         verify: automate tests
15911         * modules/verify-tests: New module.
15912         * tests/test-verify.sh: New file.
15913         * tests/test-verify.c: Guard each negative test with a unique id.
15914         Also avoid warning about unused left hand of comma expressions.
15915
15916 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15917
15918         Further improvements to verify.h, suggested by Eric Blake.
15919         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
15920         the GL_* versions, to avoid collision with OpenGL.
15921         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
15922         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
15923         than testing merely whether it's defined.
15924
15925         Modify verify.h to pacify gcc -Wredundant_decls.
15926         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
15927         These use the prefix "GL_" since they're likely to be useful elsewhere.
15928         We may need to break them out into a different .h file.
15929         (__COUNTER__): Define to 0 if the compiler doesn't support it.
15930         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
15931         of verify_function__.
15932
15933 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
15934
15935         Tests for module pwrite.
15936         * modules/pwrite-tests: New file.
15937         * tests/test-pwrite.sh: New file.
15938         * tests/test-pwrite.c: New file.
15939
15940         New module pwrite.
15941         * lib/unistd.in.h (pwrite): New declaration.
15942         * lib/pwrite.c: New file, from glibc with modifications.
15943         * m4/pwrite.m4: New file.
15944         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
15945         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
15946         REPLACE_PWRITE.
15947         * modules/pwrite: New file.
15948         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
15949         REPLACE_PWRITE.
15950         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
15951         * doc/posix-functions/pwrite.texi: Mention the new module.
15952
15953 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
15954
15955         pread: Update documentation.
15956         * doc/posix-functions/pread.texi: Mention the 'pread' module.
15957
15958 2010-05-04  Eric Blake  <eblake@redhat.com>
15959
15960         docs: update cygwin progress
15961         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
15962         this bug.
15963         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
15964         Added in cygwin 1.7.2.
15965         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
15966         Likewise.
15967         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
15968         Likewise.
15969         * doc/glibc-functions/dup3.texi (dup3): Likewise.
15970         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15971         * doc/glibc-functions/accept4.texi (accept4): Likewise.
15972         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
15973         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
15974         Mention nproc module.
15975         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
15976         bug in cygwin 1.7.5 addition.
15977         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
15978         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
15979         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
15980         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
15981         1.7.5.
15982         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
15983         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
15984         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
15985         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
15986         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
15987         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
15988         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
15989         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
15990         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
15991         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
15992         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
15993         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
15994         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
15995         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
15996         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
15997         Likewise.
15998         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
15999         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
16000         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
16001         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
16002         Likewise.
16003         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
16004         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
16005         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
16006         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
16007         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
16008         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
16009         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
16010         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
16011         Likewise.
16012         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
16013         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
16014         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
16015         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
16016         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
16017         Likewise.
16018         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
16019         Likewise.
16020         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
16021         Likewise.
16022         * doc/glibc-functions/xdrrec_endofrecord.texi
16023         (xdrrec_endofrecord): Likewise.
16024         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
16025         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
16026         Likewise.
16027         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
16028         Likewise.
16029
16030 2010-05-04  Jim Meyering  <meyering@redhat.com>
16031
16032         gendocs.sh: make its "-s FILE" option more useful
16033         * build-aux/gendocs.sh: When honoring the -s FILE option, update
16034         $PACKAGE to reflect the probably-different basename of "FILE".
16035
16036 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
16037
16038         bootstrap: don't ignore download_po_files failure
16039         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
16040         failure.
16041
16042 2010-05-03  Jim Meyering  <meyering@redhat.com>
16043
16044         maint.mk: allow to pass options to gendocs.sh
16045         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
16046         (gendocs_options_): New overridable variable.
16047
16048         gnu-web-doc-update: don't ignore configure or build failure
16049         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
16050
16051         announce-gen: backslash-escape '@'s in --help output
16052         * build-aux/announce-gen: Fix syntax errors.
16053
16054         maint.mk, announce-gen: allow project-specific announcement mail headers
16055         * top/maint.mk (translation_project_): Define default.
16056         (announcement_Cc_, announcement_mail_headers_): Likewise.
16057         (announcement): Invoke announce-gen with new --mail-headers option.
16058         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
16059
16060         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
16061         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
16062         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
16063         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
16064         line in the "err2" output file when running "make check" in verbose
16065         mode (i.e., with set -x enabled).
16066
16067 2010-05-03  Bruno Haible  <bruno@clisp.org>
16068
16069         wctob: Fix for weird platforms.
16070         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
16071         argument value.
16072
16073 2010-05-03  Jim Meyering  <meyering@redhat.com>
16074
16075         maint.mk: prohibit unwarranted use of <strings.h>
16076         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
16077         strings.h in a file that does not also use strcasecmp, strncasecmp,
16078         ffs or ffsll.
16079
16080         maint.mk: remove obsolete comments
16081         * top/maint.mk: Remove stale, commented-out rules.
16082
16083 2010-05-02  Bruno Haible  <bruno@clisp.org>
16084
16085         wcwidth: Declare also when it's aliased.
16086         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
16087         macro.
16088
16089 2010-05-02  Bruno Haible  <bruno@clisp.org>
16090
16091         Fix regression from 2010-04-25.
16092         * gnulib-tool (func_modules_transitive_closure): Check the status of
16093         all modules, not only of the tests that are of the form foo-tests where
16094         foo is a module.
16095
16096 2010-05-02  Bruno Haible  <bruno@clisp.org>
16097
16098         wctob: Work around nasty Cygwin 1.7.2 bug.
16099         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
16100         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
16101
16102 2010-05-01  Bruno Haible  <bruno@clisp.org>
16103
16104         fpurge: Sharper test.
16105         * tests/test-fpurge.c (main): Add one more ftell check.
16106         * modules/fpurge-tests (Depends-on): Add ftell.
16107         Suggested by Eric Blake.
16108
16109 2010-05-01  Bruno Haible  <bruno@clisp.org>
16110
16111         ftello: Another test.
16112         * tests/test-ftello3.c: New file.
16113         * modules/ftello-tests (Files): Add it.
16114         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16115         MOSTLYCLEANFILES.
16116
16117         ftell: Another test.
16118         * tests/test-ftell3.c: New file.
16119         * modules/ftell-tests (Files): Add it.
16120         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16121         MOSTLYCLEANFILES.
16122
16123 2010-05-01  Bruno Haible  <bruno@clisp.org>
16124
16125         ftell, ftello: Work around Solaris bug.
16126         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
16127         * lib/ftello.c: Include stdio-impl.h.
16128         (ftello): On Solaris, when _IOWRT is set, compute the result without
16129         looking at _IOREAD.
16130         * modules/ftello (Files): Add lib/stdio-impl.h.
16131         * doc/posix-functions/ftell.texi: Mention Solaris bug.
16132         * doc/posix-functions/ftello.texi: Likewise.
16133         Reported by Eric Blake.
16134
16135 2010-05-01  Bruno Haible  <bruno@clisp.org>
16136
16137         freading: Adapt to special meaning of _IOREAD flag on Solaris.
16138         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
16139         the _IOWRT flag is also set.
16140
16141 2010-05-01  Bruno Haible  <bruno@clisp.org>
16142
16143         Fix doc about a HP-UX stdio bug.
16144         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
16145         * doc/posix-functions/ftello.texi: Likewise.
16146
16147 2010-05-01  Bruno Haible  <bruno@clisp.org>
16148
16149         lseek test: Fix failure on Solaris.
16150         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
16151         output.
16152
16153 2010-04-30  Jim Meyering  <meyering@redhat.com>
16154
16155         bootstrap: don't ignore failure to generate po*/Makevars
16156         * build-aux/bootstrap (with_gettext): Don't ignore failure
16157         to create po/Makevars or runtime-po/Makevars.
16158
16159 2010-04-29  Eric Blake  <eblake@redhat.com>
16160
16161         headers: relax license to LGPLv2+
16162         * modules/fcntl-h (License): Relax license.
16163         * modules/getopt-posix (License): Likewise.
16164         * modules/locale (License): Likewise.
16165         * modules/math (License): Likewise.
16166         * modules/pty (License): Likewise.
16167         * modules/sched (License): Likewise.
16168         * modules/search (License): Likewise.
16169         * modules/spawn (License): Likewise.
16170         * modules/stdarg (License): Likewise.
16171         * modules/sysexits (License): Likewise.
16172
16173 2010-04-29  Jim Meyering  <meyering@redhat.com>
16174
16175         inttypes: relax license to LGPLv2+
16176         * modules/inttypes (License): Relax license.
16177
16178 2010-04-29  Simon Josefsson  <simon@josefsson.org>
16179
16180         * top/maint.mk (indent): Run twice to produce idempotent results.
16181
16182 2010-04-28  Bruno Haible  <bruno@clisp.org>
16183
16184         getdate: Generate getdate.c in the source directory.
16185         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
16186         MOSTLYCLEANFILES.
16187         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
16188
16189 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
16190
16191         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
16192         is not declared as a const *; avoid warnings in that case.
16193
16194 2010-04-28  Eric Blake  <eblake@redhat.com>
16195
16196         canonicalize-lgpl: avoid compiler warning
16197         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
16198         declaration' / 'extraneous semicolon' warning with some compilers.
16199         Reported by Andreas Gruenbacher.
16200
16201 2010-04-28  Jim Meyering  <meyering@redhat.com>
16202
16203         init.sh: ensure a more reliable exit status when exiting via trap
16204         * tests/init.sh (setup_): Don't rely on $? in signal handler.
16205         Inspired by patches from Dmitry V. Levin.
16206         Also trap on signal 3 (SIGQUIT).
16207
16208 2010-04-27  Bruno Haible  <bruno@clisp.org>
16209
16210         Update doc about utimes().
16211         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
16212         'utimens' module.
16213         Reported by Andreas Gruenbacher <agruen@suse.de>.
16214
16215 2010-04-27  Eric Blake  <eblake@redhat.com>
16216
16217         full-read, full-write: relax license
16218         * modules/full-read (License): Drop to LGPLv2+.
16219         * modules/full-write (License): Likewise.
16220         * modules/safe-read (License): Likewise.
16221         * modules/safe-write (License): Likewise.
16222
16223         pthread: mention library for linking
16224         * modules/pthread (Link): Mention $(LIB_PTHREAD).
16225
16226 2010-04-27  Jim Meyering  <meyering@redhat.com>
16227
16228         maint.mk: fix a bug introduced in last change
16229         * top/maint.mk (gl_assured_headers_): Now that all names are on
16230         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
16231         is not anchored to end of word, it should be adequate.
16232
16233         maint.mk: avoid side-effect in latest syntax-check
16234         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
16235         to run commands via $(shell...), and hence to incur cost only when
16236         the new rule is actually run.
16237
16238         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
16239         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
16240         and use that to create a regexp used to detect all #if HAVE_..._H uses.
16241         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
16242         (gl_assured_headers_, az_, AZ_): Define.
16243         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
16244
16245 2010-04-26  Jim Meyering  <jim@meyering.net>
16246             Bruno Haible  <bruno@clisp.org>
16247
16248         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
16249         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
16250         Prompted by an exchange with Gilles Espinasse.
16251
16252 2010-04-26  Jim Meyering  <meyering@redhat.com>
16253
16254         git-version-gen: aesthetic tweak
16255         * build-aux/git-version-gen: Use "$nl" rather than a literal,
16256         so that the command remains on a single line.
16257
16258 2010-04-26  Eric Blake  <eblake@redhat.com>
16259
16260         git-version-gen: allow use on EBCDIC hosts
16261         * build-aux/git-version-gen (dirty): Use literal rather than tying
16262         ourselves to ascii.
16263         Reported by Steve Goetze.
16264
16265 2010-04-25  Bruno Haible  <bruno@clisp.org>
16266
16267         netdb: Add support for GNULIB_POSIXCHECK.
16268         * lib/netdb.in.h: Include warn-on-use.h.
16269         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
16270         functions are used when GNULIB_POSIXCHECK is defined and the
16271         getaddrinfo module is not in use.
16272         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
16273         freeaddrinfo, gai_strerror, getnameinfo are declared.
16274         * modules/netdb (Depends-on): Add warn-on-use.
16275         (Makefile.am): Include warn-on-use.h in netdb.h.
16276
16277 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
16278
16279         build: avoid "make check" failure without .git/ directory
16280         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
16281         there is no .git/ directory.
16282
16283 2010-04-25  Bruno Haible  <bruno@clisp.org>
16284
16285         ptsname: Fix misuse of ttyname_r.
16286         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
16287         of errno.
16288
16289 2010-04-25  Bruno Haible  <bruno@clisp.org>
16290
16291         ttyname_r: Make it work on Solaris 10.
16292         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
16293         if the system function has the POSIX declaration. Test whether the
16294         function fails if the buffer is less than 128 bytes large.
16295         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
16296         system's ttyname_r function. Provide a reasonably large buffer.
16297         * modules/ttyname_r (Depends-on): Add extensions.
16298         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
16299
16300 2010-04-25  Bruno Haible  <bruno@clisp.org>
16301
16302         Use the 'extensions' module for some more functions on Solaris.
16303         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
16304         module.
16305         * doc/posix-functions/ctime_r.texi: Likewise.
16306         * doc/posix-functions/getgrgid_r.texi: Likewise.
16307         * doc/posix-functions/getgrnam_r.texi: Likewise.
16308         * doc/posix-functions/getpwnam_r.texi: Likewise.
16309         * doc/posix-functions/getpwuid_r.texi: Likewise.
16310         * doc/posix-functions/readdir_r.texi: Likewise.
16311         * doc/posix-functions/sigwait.texi: Likewise.
16312         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
16313         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
16314
16315 2010-04-25  Bruno Haible  <bruno@clisp.org>
16316
16317         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
16318         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
16319         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
16320         * lib/ttyname_r.c: Include <limits.h>.
16321         (ttyname_r): Define using the system's ttyname_r function, if it exists
16322         and not on Solaris.
16323         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
16324         set.
16325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
16326         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
16327         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
16328         Reported by Simon Josefsson.
16329
16330 2010-04-25  Bruno Haible  <bruno@clisp.org>
16331
16332         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
16333         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
16334         * doc/posix-functions/ctime_r.texi: Likewise.
16335         * doc/posix-functions/getgrgid_r.texi: Likewise.
16336         * doc/posix-functions/getgrnam_r.texi: Likewise.
16337         * doc/posix-functions/getlogin_r.texi: Likewise.
16338         * doc/posix-functions/getpwnam_r.texi: Likewise.
16339         * doc/posix-functions/getpwuid_r.texi: Likewise.
16340         * doc/posix-functions/readdir_r.texi: Likewise.
16341         * doc/posix-functions/sigwait.texi: Likewise.
16342         * doc/posix-functions/ttyname_r.texi: Likewise.
16343         Reported by Simon Josefsson.
16344
16345 2010-04-25  Bruno Haible  <bruno@clisp.org>
16346
16347         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
16348         * gnulib-tool (func_usage): Document that --with-*-tests options apply
16349         also to --create-testdir.
16350         (func_acceptable): Don't consider the status of *-tests modules here.
16351         (func_modules_transitive_closure): Consider it here, before including a
16352         test module.
16353         (func_import, func_create_testdir): Set inc_all_direct_tests,
16354         inc_all_indirect_tests.
16355         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
16356         --create-testdir and --create-megatestdir.
16357
16358 2010-04-25  Bruno Haible  <bruno@clisp.org>
16359
16360         gnulib-tool: Add --without-*-tests options.
16361         * gnulib-tool (func_usage): Document the --without-*-tests options.
16362         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
16363         excl_unportable_tests): New variables.
16364         Fail if they are specified with --import or --update.
16365         (func_acceptable): Respect the excl_*_tests variables.
16366         (func_import): Set the excl_*_tests variables to empty.
16367
16368 2010-04-25  Simon Josefsson  <simon@josefsson.org>
16369             Bruno Haible  <bruno@clisp.org>
16370
16371         Work around a MacOS X 10.4 bug with openpty.
16372         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
16373         * tests/test-openpty.c (main): Close the master side explicitly.
16374
16375 2010-04-25  Bruno Haible  <bruno@clisp.org>
16376
16377         strnlen: Fix a C++ test error on MacOS X and Solaris.
16378         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
16379         the function is not declared.
16380         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
16381         Simon Josefsson.
16382
16383 2010-04-24  Bruno Haible  <bruno@clisp.org>
16384
16385         Avoid a gcc warning.
16386         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
16387         of correct type for %08lx directive.
16388         Reported by Eric Blake.
16389
16390 2010-04-24  Bruno Haible  <bruno@clisp.org>
16391
16392         vasnprintf: Correct errno value in case of out-of-memory.
16393         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
16394         or sprintf. Use the errno value from SNPRINTF or sprintf.
16395         Reported by Ian Beckwith <ianb@erislabs.net>.
16396
16397 2010-04-24  Bruno Haible  <bruno@clisp.org>
16398
16399         ansi-c++-opt: Find correct compiler when cross-compiling.
16400         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
16401         AC_CHECK_PROGS.
16402         Reported by Simon Josefsson.
16403
16404 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
16405
16406         vc-list-files: Add support for subversion
16407         * build-aux/vc-list-files: Use "svn list" to generate the list of
16408         files controlled by subversion.
16409
16410 2010-04-23  Jim Meyering  <meyering@redhat.com>
16411
16412         vc-list-files tests: convert to use init.sh
16413         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
16414         path_prepend_.
16415         Use Exit, not exit.
16416         Use skip_ rather than open coding it.
16417         Remove trap set-up and compare definitions.
16418         * tests/test-vc-list-files-git.sh: Likewise.
16419         * modules/vc-list-files-tests (Files): Add tests/init.sh.
16420
16421 2010-04-22  Simon Josefsson  <simon@josefsson.org>
16422
16423         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
16424         backup files.
16425
16426 2010-04-21  Simon Josefsson  <simon@josefsson.org>
16427
16428         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
16429
16430 2010-04-20  Eric Blake  <eblake@redhat.com>
16431
16432         tests: be robust to ignored SIGPIPE
16433         * tests/test-select-in.sh: Consume all output.
16434         * tests/test-lseek.sh: Check correct exit status, while avoiding
16435         EPIPE.
16436
16437 2010-04-20  Simon Josefsson  <simon@josefsson.org>
16438             Bruno Haible  <bruno@clisp.org>
16439
16440         visibility: Don't use -fvisibility if it leads to a warning.
16441         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
16442         yes, don't pretend that visibility works if it leads to a warning.
16443         Reported by Mike Gran <spk121@yahoo.com>.
16444
16445 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
16446
16447         * build-aux/bootstrap: Use "git -h" for testing for supported options
16448         instead of "git --help".  The short-form option only shows a summary,
16449         and doesn't layout the full man page.  Grep for the full option name
16450         in the summary, too.
16451
16452 2010-04-19  Bruno Haible  <bruno@clisp.org>
16453
16454         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
16455         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
16456         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
16457         mention of RELOCATABLE_STRIP.
16458         Reported by Sylvain Beucler <beuc@beuc.net>.
16459
16460 2010-04-19  Bruno Haible  <bruno@clisp.org>
16461
16462         * lib/diffseq.h: Fix typo in comment.
16463         Reported by Eric Blake.
16464
16465 2010-04-19  Bruno Haible  <bruno@clisp.org>
16466
16467         ioctl: Move autoconf macro to a .m4 file.
16468         * m4/ioctl.m4: New file, extracted from modules/ioctl.
16469         * modules/ioctl (Files): Add it.
16470         (configure.ac): Simply invoke gl_FUNC_IOCTL.
16471         Reported by Ian Beckwith <ianb@erislabs.net>.
16472
16473 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
16474             Bruno Haible  <bruno@clisp.org>
16475
16476         diffseq: Accommodate use-case with abstract arrays.
16477         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
16478         is not defined.
16479         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
16480         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
16481
16482 2010-04-18  Bruno Haible  <bruno@clisp.org>
16483
16484         * doc/posix-headers/stdbool.texi: More precise wording.
16485
16486 2010-04-17  Jim Meyering  <meyering@redhat.com>
16487
16488         maint.mk: use gnu-style indentation in an embedded perl script
16489         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
16490         Rename variable: s/two/last_two_bytes/
16491
16492 2010-04-16  Eric Blake  <eblake@redhat.com>
16493
16494         test-stdbool: skip test that fails with Solaris CC
16495         * tests/test-stdbool.c (f): Skip test that causes compilation
16496         error under buggy C++ compiler.
16497         * lib/stdbool.in.h: Document the limitation.
16498         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
16499
16500         setenv: allow compilation with C++
16501         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
16502         register keyword.
16503
16504         stdint: allow test to pass with C++
16505         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
16506
16507         getopt: allow compilation with C++
16508         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
16509         struct.
16510         * lib/getopt.c (_getopt_internal_r): Use correct type.
16511         Reported by Dagobert Michelson, via Joel E. Denny.
16512
16513 2010-04-16  Bruno Haible  <bruno@clisp.org>
16514
16515         Override netdb.h always.
16516         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
16517         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
16518         Reported by Ludovic Courtès <ludo@gnu.org>.
16519
16520 2010-04-15  Bruno Haible  <bruno@clisp.org>
16521
16522         openpty: Fix mistake from 2010-03-21.
16523         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
16524         Reported by Simon Josefsson.
16525
16526 2010-04-15  Eric Blake  <eblake@redhat.com>
16527
16528         test-forkpty: fix expected signature
16529         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
16530         Reported by Simon Josefsson.
16531
16532 2010-04-15  Jim Meyering  <meyering@redhat.com>
16533
16534         maint.mk: texinfo_suffix_re_: correct the default regexp
16535         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
16536
16537         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
16538         make it configurable via texinfo_suffix_re_.
16539
16540 2010-04-14  Eric Blake  <eblake@redhat.com>
16541
16542         strtok_r: relax license to LGPLv2+
16543         * modules/strtok_r (License): Relax license.
16544         Reported by Matthias Bolte.
16545
16546 2010-04-14  Simon Josefsson  <simon@josefsson.org>
16547
16548         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
16549         version 1.4.4 by default instead of requiring the libgcrypt
16550         version used during build.  This makes it possible to use the
16551         application with older but still binary compatible libgcrypt
16552         versions.
16553
16554 2010-04-13  Eric Blake  <eblake@redhat.com>
16555
16556         getopt-gnu: match recent glibc fixes and posix ruling
16557         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
16558         '+' handling, when requesting extensions.
16559         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
16560         'W;' handling.
16561         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
16562         * doc/posix-functions/getopt.texi (getopt): Document this.
16563         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16564         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16565         Likewise.
16566
16567         getopt: merge bug fixes from glibc
16568         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
16569         diagnostics.  Honor '+:' correctly.  Reject ';'.
16570
16571         getopt-posix: detect MacOS bug
16572         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
16573         optind when missing a required argument.
16574         * doc/posix-functions/getopt.texi (getopt): Document the bug.
16575         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16576         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16577         Likewise.
16578
16579         getopt-posix: avoid spurious failure on Solaris
16580         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
16581         an indicator that setting optind=1 is sufficient for reset.
16582
16583         getopt-posix: avoid spurious failure on FreeBSD
16584         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
16585         in POSIX mode, since the m4 test uses it.
16586
16587         gnulib-tool: silence warning on BSD sh
16588         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
16589
16590 2010-04-13  Jim Meyering  <meyering@redhat.com>
16591
16592         doc: users.txt: GNU patch now uses gnulib
16593         * users.txt: Add patch.
16594
16595 2010-04-12  Jim Meyering  <meyering@redhat.com>
16596
16597         maint.mk: generate more concise timing data for syntax-check rules
16598         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
16599         " done" from each line that reports a syntax-check test duration.
16600
16601 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
16602
16603         git-version-gen: use "git update-index..." rather than "git status"
16604         * build-aux/git-version-gen: Use git update-index --refresh, not
16605         "git status".  With some versions of git, "git status" would fail
16606         to update the index and result in an unwarranted "-dirty" suffix.
16607
16608 2010-04-11  Jim Meyering  <meyering@redhat.com>
16609
16610         openat: correct formatting (no semantic change)
16611         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
16612         Suggested by Bruno Haible.
16613
16614 2010-04-11  Bruno Haible  <bruno@clisp.org>
16615
16616         Stricter declaration checking in testdirs.
16617         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16618         If for_tests is true, augment AM_CPPFLAGS to define
16619         GNULIB_STRICT_CHECKING.
16620         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
16621         GNULIB_STRICT_CHECKING is defined, verify that the function is
16622         declared.
16623
16624 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
16625             Bruno Haible  <bruno@clisp.org>
16626
16627         libunistring: Improve configure output.
16628         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
16629         Don't say "consider installing GNU libunistring" when checking again
16630         with libiconv.
16631
16632 2010-04-11  Bruno Haible  <bruno@clisp.org>
16633
16634         libunistring: Correct value of $LTLIBUNISTRING.
16635         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
16636         correct the value of $LTLIBUNISTRING.
16637
16638 2010-04-11  Bruno Haible  <bruno@clisp.org>
16639
16640         havelib: Add static libraries to LIBS in the right order.
16641         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
16642         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
16643
16644 2010-04-11  Bruno Haible  <bruno@clisp.org>
16645
16646         libunistring: Detect libunistring also when it depends on libiconv.
16647         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
16648         the second AC_LIB_HAVE_LINKFLAGS invocation.
16649
16650 2010-04-11  James Youngman  <jay@gnu.org>
16651
16652         close-stream: declare local scalars to be "const"
16653         * lib/close-stream.c (close_stream): Make boolean variables const
16654         to document the fact that we set but do not change them.
16655
16656 2010-04-11  Bruno Haible  <bruno@clisp.org>
16657
16658         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
16659
16660 2010-04-11  Jim Meyering  <meyering@redhat.com>
16661
16662         maint.mk: don't include dist-check.mk
16663         * top/maint.mk: Remove bogus include directive.
16664
16665         maint.mk: improve empty-line-at-EOF check
16666         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
16667         solution, rather than tail+Perl-based one.  The latter would read
16668         a few kilobytes from the end of each file, and did not handle empty
16669         files properly.
16670
16671         maint.mk: print the elapsed time for each syntax-check rule
16672         * top/maint.mk (sc_m_rules_): Save start time in a file.
16673         (sc_z_rules_): New rules: remove temp file and print elapsed time.
16674         (local-check): Interpose the .z rules
16675
16676 2010-04-11  Jim Meyering  <meyering@redhat.com>
16677
16678         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
16679         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
16680         empty file with one that ends in an empty line.
16681
16682 2010-04-10  Bruno Haible  <bruno@clisp.org>
16683
16684         mkdir: Make it work on mingw64.
16685         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
16686         * lib/mkdir.c: Update comment.
16687         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
16688
16689 2010-04-10  Bruno Haible  <bruno@clisp.org>
16690
16691         Don't override improved macro from newer autoconf.
16692         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
16693         autoconf >= 2.62.
16694         Reported by Joel E. Denny <jdenny@clemson.edu>.
16695
16696 2010-04-10  Jim Meyering  <meyering@redhat.com>
16697
16698         maint.mk: new syntax-check rule: prohibit empty lines at end of file
16699         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
16700
16701         maint.mk: correct a diagnostic
16702         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
16703         in diagnostic; now use $prohibit.
16704
16705 2010-04-10  Bruno Haible  <address@hidden>
16706
16707         fchownat: Fix a C++ test error on Solaris 8.
16708         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
16709         the function does not exist.
16710
16711 2010-04-10  Bruno Haible  <bruno@clisp.org>
16712
16713         vasnprintf: Add more tests.
16714         * tests/test-vasnprintf-posix.c: Include <errno.h>.
16715         (test_function): Test converting an invalid wide string.
16716
16717         vasnprintf: Correct handling of unconvertible wide string arguments.
16718         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
16719         VASNPRINTF.
16720         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
16721         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
16722         smaller than the expected maximum need for the directive. Set errno to
16723         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
16724         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
16725         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
16726         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
16727         * modules/vasnprintf (Files): Add m4/printf.m4.
16728         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16729
16730 2010-04-10  Bruno Haible  <bruno@clisp.org>
16731
16732         vasnprintf: Fix crash in %ls directive.
16733         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
16734         string is passed as argument to %ls, with no precision and no width.
16735         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16736
16737 2010-04-10  Bruno Haible  <bruno@clisp.org>
16738
16739         vasnprintf: Fix multiple test failures on mingw.
16740         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
16741         _snprintf, or snwprintf, not _snwprintf.
16742
16743 2010-04-10  Bruno Haible  <bruno@clisp.org>
16744
16745         write: Fix a C++ test error on mingw.
16746         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
16747
16748 2010-04-10  Bruno Haible  <bruno@clisp.org>
16749
16750         vasnprintf test: Reduce code duplication.
16751         * tests/test-vasnprintf.c (test_function): New function, extracted from
16752         test_vasnprintf.
16753         (test_vasnprintf, test_asnprintf): Invoke it.
16754
16755 2010-04-10  Bruno Haible  <bruno@clisp.org>
16756
16757         strnlen: Fix warning in C++ mode on MacOS X.
16758         * lib/string.in.h (strnlen): Use the modern idiom.
16759         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
16760         defining strnlen as a macro already in <config.h>.
16761         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16762         REPLACE_STRNLEN.
16763         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
16764         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16765
16766 2010-04-08  James Youngman  <jay@gnu.org>
16767
16768         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
16769         the example.
16770
16771 2010-04-09  Jim Meyering  <meyering@redhat.com>
16772
16773         maint.mk: print better diagnostic when there is no $(_hv_file)
16774         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
16775         announce that when $(_hv_file) (aka help-version) does not exist.
16776
16777         init.sh: run tr in the "C" locale to avoid multibyte interpretation
16778         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
16779         not try to interpret its random input bytes.  Jarno Rajahalme reported
16780         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
16781         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
16782         (mktempd_): Likewise, just in case.
16783
16784         ftruncate: add two years to projected module removal date: 2012
16785         * m4/ftruncate.m4: Adjust comments.
16786
16787         ftruncate: mark module as obsolete; even MinGW provides it, now
16788         * modules/ftruncate (Status): Obsolete.
16789         (Notice): Say that.
16790         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
16791         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
16792
16793 2010-04-08  Bruno Haible  <bruno@clisp.org>
16794
16795         Fix side effects from tests-related modules.
16796         * modules/dprintf-posix (Comment): New section.
16797         * modules/fprintf-posix (Comment): Likewise.
16798         * modules/obstack-printf-posix (Comment): Likewise.
16799         * modules/printf-posix (Comment): Likewise.
16800         * modules/snprintf-posix (Comment): Likewise.
16801         * modules/sprintf-posix (Comment): Likewise.
16802         * modules/vasnprintf-posix (Comment): Likewise.
16803         * modules/vasprintf-posix (Comment): Likewise.
16804         * modules/vdprintf-posix (Comment): Likewise.
16805         * modules/vfprintf-posix (Comment): Likewise.
16806         * modules/vprintf-posix (Comment): Likewise.
16807         * modules/vsnprintf-posix (Comment): Likewise.
16808         * modules/vsprintf-posix (Comment): Likewise.
16809         * modules/xprintf-posix (Comment): Likewise.
16810         * modules/xvasprintf-posix (Comment): Likewise.
16811         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
16812         * modules/floorf-tests (Depends-on): Likewise.
16813         * modules/round-tests (Depends-on): Likewise.
16814         * modules/roundf-tests (Depends-on): Likewise.
16815         * modules/trunc-tests (Depends-on): Likewise.
16816         * modules/truncf-tests (Depends-on): Likewise.
16817         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
16818         'fprintf-posix' module is not present.
16819         * tests/test-floorf2.c (check): Likewise.
16820         * tests/test-trunc2.c (check): Likewise.
16821         * tests/test-truncf2.c (check): Likewise.
16822         * tests/test-round2.c (equal): Likewise.
16823         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16824
16825 2010-04-07  Karl Berry  <karl@gnu.org>
16826
16827         * config/srclist.txt,
16828         * config/srclistvars.sh,
16829         * config/srclist-update: doc fixes.
16830
16831 2010-04-07  Jim Meyering  <meyering@redhat.com>
16832
16833         maint.mk: add a PATH crosschecking syntax-check rule
16834         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
16835         Useful if you use a test like the one in help-version (coreutils,
16836         diffutils, grep, gzip) that ensures $(VERSION) matches what is
16837         printed by prog --version.
16838
16839 2010-04-06  Bruno Haible  <bruno@clisp.org>
16840
16841         Fix link error on mingw.
16842         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
16843         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
16844
16845 2010-04-06  Bruno Haible  <bruno@clisp.org>
16846
16847         Assume rmdir exists.
16848         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
16849
16850 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
16851
16852         doc: update users.txt
16853         * users.txt: Add gcal.
16854
16855 2010-04-06  Jim Meyering  <meyering@redhat.com>
16856
16857         init.sh: simply unset TMPDIR rather than risking env -i
16858         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
16859         although it probably works fine on all Unix-based systems, some
16860         systems (Cygwin?) cannot tolerate a totally cleared environment.
16861         Suggestion from Eric Blake.
16862
16863 2010-04-06  Jim Meyering  <meyering@redhat.com>
16864
16865         init.sh: portability fix: use env's POSIX-specified -i option not -u
16866         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
16867         than unportable env -u.  Solaris 5.11's env lacks support for -u.
16868
16869 2010-04-05  Bruno Haible  <bruno@clisp.org>
16870
16871         btowc: Work around Cygwin 1.7.2 bug.
16872         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
16873         does not map NUL to 0.
16874         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
16875
16876 2010-04-05  Bruno Haible  <bruno@clisp.org>
16877
16878         Make the multithread modules work on Cygwin 1.7.2.
16879         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
16880         imported symbols can be declared weak, so that it returns "no" on
16881         Cygwin 1.7.2.
16882
16883 2010-04-05  Bruno Haible  <bruno@clisp.org>
16884
16885         Use the module 'strncat'.
16886         * modules/unistr/u8-strncat (Depends-on): Add strncat.
16887
16888         Tests for module 'strncat'.
16889         * modules/strncat-tests: New file.
16890         * tests/test-strncat.c: New file.
16891
16892         New module 'strncat'.
16893         * lib/string.in.h (strncat): New declaration.
16894         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
16895         * m4/strncat.m4: New file, based on m4/memchr.m4.
16896         * modules/strncat: New file.
16897         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
16898         is declared.
16899         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
16900         REPLACE_STRNCAT.
16901         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
16902         REPLACE_STRNCAT.
16903         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
16904         module.
16905         * tests/test-string-c++.cc: Check signature of strncat.
16906
16907 2010-04-05  Jim Meyering  <meyering@redhat.com>
16908
16909         xstrtoumax-tests: convert to use init.sh
16910         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
16911         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16912         Use Exit, not exit.
16913         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16914
16915         xstrtoimax-tests: convert to use init.sh
16916         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
16917         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16918         Use Exit, not exit.
16919         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16920
16921 2010-04-05  Bruno Haible  <bruno@clisp.org>
16922
16923         sys_socket: Avoid #define replacements in C++ mode.
16924         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
16925         warning to the function if possible, rather than #defining the symbol
16926         to a dysfunctional alias.
16927
16928 2010-04-05  Bruno Haible  <bruno@clisp.org>
16929
16930         fseeko: Fix C++ test error on mingw.
16931         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
16932         gl_FUNC_FSEEKO.
16933         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
16934         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
16935         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
16936         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
16937
16938 2010-04-05  Bruno Haible  <bruno@clisp.org>
16939
16940         duplocale: Improve test output.
16941         * tests/test-duplocale.c (main): Print reason for skipped test.
16942
16943 2010-04-05  Bruno Haible  <bruno@clisp.org>
16944
16945         Assume rmdir exists.
16946         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
16947         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
16948
16949 2010-04-05  Bruno Haible  <bruno@clisp.org>
16950
16951         Fix link error on Solaris 8 with cc.
16952         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
16953
16954 2010-04-05  Bruno Haible  <bruno@clisp.org>
16955
16956         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
16957         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
16958
16959 2010-04-05  Bruno Haible  <bruno@clisp.org>
16960
16961         vasprintf: Update documentation.
16962         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
16963
16964 2010-04-05  Bruno Haible  <bruno@clisp.org>
16965
16966         ptsname: Improve test.
16967         * tests/test-ptsname.c (main): Also try the various master names of BSD
16968         systems.
16969
16970 2010-04-05  Bruno Haible  <bruno@clisp.org>
16971
16972         memchr: Avoid a possible C++ test error.
16973         * lib/string.in.h (memchr): Provide declaration if function is missing.
16974         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
16975         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
16976         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
16977         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
16978
16979 2010-04-05  Bruno Haible  <bruno@clisp.org>
16980
16981         strtok_r: Improve idiom.
16982         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
16983         AC_LIBOBJ is used.
16984
16985 2010-04-05  Bruno Haible  <bruno@clisp.org>
16986
16987         strdup: Improve idiom.
16988         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
16989         AC_LIBOBJ is used.
16990         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
16991         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
16992         when AC_LIBOBJ is used.
16993
16994 2010-04-05  Bruno Haible  <bruno@clisp.org>
16995
16996         mbsinit, mbrtowc, wcrtomb: Improve idioms.
16997         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
16998         don't set REPLACE_MBSINIT to 1.
16999         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
17000         don't set REPLACE_MBRTOWC to 1.
17001         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
17002         exist, don't set REPLACE_MBSRTOWCS to 1.
17003         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
17004         exist, don't set REPLACE_MBSNRTOWCS to 1.
17005         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
17006         don't set REPLACE_WCRTOMB to 1.
17007         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
17008         exist, don't set REPLACE_WCSRTOMBS to 1.
17009         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
17010         exist, don't set REPLACE_WCSNRTOMBS to 1.
17011
17012 2010-04-05  Bruno Haible  <bruno@clisp.org>
17013
17014         ldexpl: Improve idiom.
17015         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
17016         make sure to set HAVE_DECL_LDEXPL to 0.
17017
17018 2010-04-05  Jim Meyering  <meyering@redhat.com>
17019
17020         xstrtol-tests: convert to use init.sh
17021         * modules/xstrtol-tests (Files): Add tests/init.sh.
17022         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17023         Use Exit, not exit.
17024         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17025
17026         atexit-tests: convert to use init.sh
17027         * modules/atexit-tests (Files): Add tests/init.sh.
17028         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17029         Use Exit, not exit.
17030         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17031
17032         init.sh: fix typo
17033         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
17034
17035         init.sh: make it easier for a test script to write to the tty, ...
17036         when using automake's parallel-tests mode.
17037         * tests/init.sh (stderr_fileno_): Define overridable variable.
17038         (warn_): New function, to use it.
17039         (fail_, skip_, framework_failure_): Use warn_.
17040
17041 2010-04-04  Bruno Haible  <bruno@clisp.org>
17042
17043         btowc: Avoid warning.
17044         * lib/btowc.c: Include <stdlib.h>.
17045         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
17046
17047 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17048             Bruno Haible  <bruno@clisp.org>
17049
17050         wchar: Port to NetBSD 1.5.
17051         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
17052         * lib/wctype.in.h (WEOF): Likewise.
17053
17054 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17055             Bruno Haible  <bruno@clisp.org>
17056
17057         Port extended stdio to NetBSD 1.5.
17058         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
17059         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
17060         older.
17061
17062 2010-04-04  Bruno Haible  <bruno@clisp.org>
17063
17064         string: Remove unused substitution.
17065         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
17066         HAVE_DECL_STRERROR.
17067         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
17068
17069 2010-04-04  Bruno Haible  <bruno@clisp.org>
17070
17071         strtod: Avoid a possible C++ test error.
17072         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
17073         set REPLACE_STRTOD.
17074
17075 2010-04-04  Bruno Haible  <bruno@clisp.org>
17076
17077         strerror: Update documentation.
17078         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
17079
17080 2010-04-04  Bruno Haible  <bruno@clisp.org>
17081
17082         stdio: Fix some C++ test errors on Solaris 8 with GCC.
17083         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
17084         _GL_CXXALIAS_SYS_CAST.
17085
17086 2010-04-04  Bruno Haible  <bruno@clisp.org>
17087
17088         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17089         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
17090         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
17091         REPLACE_FREXPL to 1.
17092         * doc/posix-functions/frexpl.texi: Update documentation.
17093
17094 2010-04-04  Bruno Haible  <bruno@clisp.org>
17095
17096         math: Fix some C++ test errors on Solaris 8 and Cygwin.
17097         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
17098
17099 2010-04-04  Bruno Haible  <bruno@clisp.org>
17100
17101         Implement nanosleep for native Windows.
17102         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
17103
17104 2010-04-04  Bruno Haible  <bruno@clisp.org>
17105
17106         math: Fix some C++ test errors on Solaris 8.
17107         * lib/math.in.h (truncf, trunc): Use simpler idiom.
17108
17109 2010-04-04  Bruno Haible  <bruno@clisp.org>
17110
17111         math: Fix some C++ test errors on Cygwin.
17112         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
17113         truncl): Provide declaration if the system does not have it.
17114         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
17115         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
17116         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
17117         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
17118         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
17119         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
17120         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
17121         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
17122         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
17123         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
17124         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
17125         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
17126         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
17127         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
17128         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
17129         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
17130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
17131         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17132         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17133         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
17134         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17135         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17136
17137 2010-04-04  Bruno Haible  <bruno@clisp.org>
17138
17139         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
17140         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17141         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
17142         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
17143         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
17144         * m4/isinf.m4 (gl_ISINF): Likewise.
17145         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17146
17147 2010-04-04  Bruno Haible  <bruno@clisp.org>
17148
17149         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
17150         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17151
17152 2010-04-04  Bruno Haible  <bruno@clisp.org>
17153
17154         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
17155         * modules/tmpfile (configure.ac): Update.
17156
17157         tmpfile: Fix C++ test error on mingw.
17158         * lib/stdio.in.h (tmpfile): New declaration.
17159         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
17160         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
17161         * modules/tmpfile (Depends-on): Add stdio.
17162         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17163         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
17164         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
17165         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
17166         REPLACE_TMPFILE.
17167         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
17168
17169 2010-04-04  Bruno Haible  <bruno@clisp.org>
17170
17171         ioctl: Fix C++ test error on mingw.
17172         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
17173         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
17174         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
17175
17176 2010-04-03  Bruno Haible  <bruno@clisp.org>
17177
17178         wcwidth: Fix C++ test error on mingw.
17179         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
17180         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
17181         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
17182
17183 2010-04-03  Bruno Haible  <bruno@clisp.org>
17184
17185         nanosleep: Fix C++ test error on mingw.
17186         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
17187         * lib/time.in.h (nanosleep): Use modern idiom.
17188         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
17189         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
17190         REPLACE_NANOSLEEP to 1.
17191         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
17192         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
17193
17194 2010-04-03  Bruno Haible  <bruno@clisp.org>
17195
17196         strptime: Fix C++ test error on mingw.
17197         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
17198         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
17199         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
17200         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
17201         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
17202         not REPLACE_STRPTIME.
17203         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
17204         REPLACE_STRPTIME.
17205
17206 2010-04-03  Bruno Haible  <bruno@clisp.org>
17207
17208         timegm: Fix C++ test error on mingw.
17209         * lib/time.in.h (timegm): Use modern idiom.
17210         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
17211         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
17212         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
17213         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
17214
17215 2010-04-03  Bruno Haible  <bruno@clisp.org>
17216
17217         timegm: Assume declaration if function exists.
17218         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
17219         if it exists. Don't clobber ac_cv_func_timegm.
17220
17221 2010-04-03  Bruno Haible  <bruno@clisp.org>
17222
17223         time_r: Fix C++ test error on mingw.
17224         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
17225         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
17226         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
17227         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
17228         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
17229
17230 2010-04-03  Bruno Haible  <bruno@clisp.org>
17231
17232         time_r: Minor updates.
17233         * modules/time_r (Description): Mention the provided functions.
17234         * lib/time_r.c: Don't include <string.h>.
17235         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
17236         * doc/posix-functions/localtime_r.texi: Likewise.
17237
17238 2010-04-03  Bruno Haible  <bruno@clisp.org>
17239
17240         time: Fix regression introduced on 2010-03-08.
17241         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
17242         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
17243
17244 2010-04-03  Jim Meyering  <meyering@redhat.com>
17245
17246         maint.mk: don't silently disable project-specific syntax-check rules
17247         * top/maint.mk (_prohibit_regexp): Define, to help people realize
17248         that they need to convert their project-specific syntax-check rules
17249         to use the new _sc_search_regexp.
17250
17251 2010-04-03  Bruno Haible  <bruno@clisp.org>
17252
17253         fchdir: Fix regression introduced on 2010-03-08.
17254         * lib/unistd.in.h (fchdir): Fix declaration.
17255         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
17256         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
17257         REPLACE_FCHDIR.
17258         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
17259         REPLACE_FCHDIR.
17260
17261 2010-04-03  Bruno Haible  <bruno@clisp.org>
17262
17263         getpagesize: Fix C++ test error on mingw.
17264         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
17265         system does not declare the function.
17266         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
17267         declared.
17268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17269         HAVE_DECL_GETPAGESIZE.
17270         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
17271
17272 2010-04-03  Bruno Haible  <bruno@clisp.org>
17273
17274         stdio: Make C++ tests work on mingw.
17275         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
17276         does not declare the function.
17277
17278 2010-04-03  Bruno Haible  <bruno@clisp.org>
17279
17280         ftello: Fix C++ test error on mingw.
17281         * lib/stdio.in.h (ftello): Use modern idiom.
17282         * lib/ftello.c (ftello): Renamed from rpl_ftello.
17283         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
17284         is missing and that it needs to be replaced.
17285         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
17286         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
17287         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
17288
17289 2010-04-03  Bruno Haible  <bruno@clisp.org>
17290
17291         fseeko: Fix C++ test error on mingw.
17292         * lib/stdio.in.h (fseeko): Use modern idiom.
17293         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
17294         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
17295         is missing and that it needs to be replaced.
17296         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
17297         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
17298         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
17299
17300 2010-04-03  Bruno Haible  <bruno@clisp.org>
17301
17302         mkstemp: Fix C++ test error on mingw.
17303         * lib/stdlib.in.h (mkstemp): Use modern idiom.
17304         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
17305         function is missing and that it needs to be replaced.
17306         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
17307         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
17308
17309 2010-04-03  Bruno Haible  <bruno@clisp.org>
17310
17311         stpncpy: Fix C++ test error on mingw.
17312         * lib/string.in.h (stpncpy): Use modern idiom.
17313         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
17314         function is missing and that it needs to be replaced.
17315         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17316         REPLACE_STPNCPY.
17317         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
17318
17319 2010-04-03  Bruno Haible  <bruno@clisp.org>
17320
17321         sys_stat: Fix C++ test error on mingw.
17322         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
17323         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
17324
17325 2010-04-03  Bruno Haible  <bruno@clisp.org>
17326
17327         pty: Update doc.
17328         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
17329
17330 2010-04-03  Bruno Haible  <bruno@clisp.org>
17331
17332         unistd: Fix C++ test error on mingw.
17333         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
17334
17335 2010-04-03  Bruno Haible  <bruno@clisp.org>
17336
17337         Update doc regarding mingw.
17338         * doc/glibc-functions/openpty.texi: Update regarding mingw.
17339         * doc/glibc-functions/login_tty.texi: Likewise.
17340         * doc/glibc-functions/forkpty.texi: Likewise.
17341
17342 2010-04-03  Bruno Haible  <bruno@clisp.org>
17343
17344         stdlib: Avoid compilation failure of c-strtold on mingw.
17345         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
17346
17347 2010-04-03  Bruno Haible  <bruno@clisp.org>
17348
17349         locale: Make C++ tests work on Cygwin and mingw.
17350         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
17351         cannot provide the function.
17352         Reported by Simon Josefsson.
17353
17354 2010-04-03  Bruno Haible  <bruno@clisp.org>
17355
17356         localename: Port to MacOS X 10.6.
17357         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
17358         memory layout of the locales in MacOS X 10.6 as well.
17359         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
17360
17361 2010-04-02  Bruno Haible  <bruno@clisp.org>
17362
17363         gnulib-tool: Ensure that long-running tests are executed last.
17364         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
17365         running tests after the one for the other tests.
17366
17367 2010-04-02  Bruno Haible  <bruno@clisp.org>
17368
17369         gnulib-tool: Ensure the tests in the main directory are executed first.
17370         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
17371         start with the current directory.
17372
17373 2010-04-02  Bruno Haible  <bruno@clisp.org>
17374
17375         Tests for module 'havelib', moved here from GNU gettext.
17376         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
17377         modifications.
17378         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
17379         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
17380         with modifications.
17381         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
17382         modifications.
17383         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
17384         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
17385         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
17386         with modifications.
17387         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
17388         with modifications.
17389         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
17390         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
17391         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
17392         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
17393         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
17394         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
17395         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
17396         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
17397         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
17398         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
17399         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
17400         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
17401         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
17402         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
17403         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
17404         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
17405         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
17406         with modifications.
17407         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
17408         with modifications.
17409         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
17410         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
17411         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
17412         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
17413         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
17414         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
17415         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
17416         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
17417         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
17418         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
17419         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
17420         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
17421         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
17422         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
17423         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
17424         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
17425         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
17426         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
17427         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
17428         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
17429         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
17430         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
17431         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
17432         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
17433         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
17434         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
17435         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
17436         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
17437         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
17438         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
17439         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
17440         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
17441         * tests/havelib/rpathx/rpathx.c: New file, from
17442         gettext/autoconf-lib-link.
17443         * tests/havelib/rpathx/Makefile.am: New file, from
17444         gettext/autoconf-lib-link.
17445         * tests/havelib/rpathx/configure.ac: New file, from
17446         gettext/autoconf-lib-link with modifications.
17447         * tests/havelib/rpathy/rpathy.c: New file, from
17448         gettext/autoconf-lib-link.
17449         * tests/havelib/rpathy/Makefile.am: New file, from
17450         gettext/autoconf-lib-link.
17451         * tests/havelib/rpathy/configure.ac: New file, from
17452         gettext/autoconf-lib-link with modifications.
17453         * tests/havelib/rpathz/rpathz.c: New file, from
17454         gettext/autoconf-lib-link.
17455         * tests/havelib/rpathz/Makefile.am: New file, from
17456         gettext/autoconf-lib-link.
17457         * tests/havelib/rpathz/configure.ac: New file, from
17458         gettext/autoconf-lib-link with modifications.
17459         * tests/havelib/rpathlx/usex.c: New file, from
17460         gettext/autoconf-lib-link.
17461         * tests/havelib/rpathlx/Makefile.am: New file, from
17462         gettext/autoconf-lib-link.
17463         * tests/havelib/rpathlx/configure.ac: New file, from
17464         gettext/autoconf-lib-link with modifications.
17465         * tests/havelib/rpathly/usey.c: New file, from
17466         gettext/autoconf-lib-link.
17467         * tests/havelib/rpathly/Makefile.am: New file, from
17468         gettext/autoconf-lib-link.
17469         * tests/havelib/rpathly/configure.ac: New file, from
17470         gettext/autoconf-lib-link with modifications.
17471         * tests/havelib/rpathlz/usez.c: New file, from
17472         gettext/autoconf-lib-link.
17473         * tests/havelib/rpathlz/Makefile.am: New file, from
17474         gettext/autoconf-lib-link.
17475         * tests/havelib/rpathlz/configure.ac: New file, from
17476         gettext/autoconf-lib-link with modifications.
17477         * tests/havelib/rpathlyx/usey.c: New file, from
17478         gettext/autoconf-lib-link.
17479         * tests/havelib/rpathlyx/Makefile.am: New file, from
17480         gettext/autoconf-lib-link.
17481         * tests/havelib/rpathlyx/configure.ac: New file, from
17482         gettext/autoconf-lib-link with modifications.
17483         * tests/havelib/rpathlzyx/usez.c: New file, from
17484         gettext/autoconf-lib-link.
17485         * tests/havelib/rpathlzyx/Makefile.am: New file, from
17486         gettext/autoconf-lib-link.
17487         * tests/havelib/rpathlzyx/configure.ac: New file, from
17488         gettext/autoconf-lib-link with modifications.
17489         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
17490         with modifications.
17491
17492 2010-04-02  Bruno Haible  <bruno@clisp.org>
17493
17494         gnulib-tool: Create distributed built sources also for the tests.
17495         * gnulib-tool (func_create_testdir): Also generate distributed built
17496         sources in the tests directory.
17497
17498 2010-04-02  Bruno Haible  <bruno@clisp.org>
17499
17500         gnulib-tool: Obey user's environment variables.
17501         * gnulib-tool (func_create_testdir): When creating built sources,
17502         respect the environment variables for autoconf, automake, etc. given by
17503         the user.
17504
17505 2010-04-02  Bruno Haible  <bruno@clisp.org>
17506
17507         gnulib-tool: Provide the value of --m4-base to modules.
17508         * gnulib-tool (func_import, func_create_testdir): Emit a definition
17509         of gl_m4_base.
17510
17511 2010-04-02  Eric Blake  <eblake@redhat.com>
17512
17513         maint.mk: fix some fallout
17514         * NEWS: Document the incompatible change, and its effect on cfg.mk.
17515         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
17516
17517 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17518
17519         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
17520         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
17521         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
17522         (sc_cast_of_x_alloc_return_value): Likewise.
17523         (sc_cast_of_alloca_return_value): Likewise.
17524         (sc_space_tab): Likewise.
17525         (sc_prohibit_atoi_atof): Likewise.
17526         (sc_prohibit_magic_number_exit): Likewise.
17527         (sc_error_exit_success): Likewise.
17528         (sc_file_system): Likewise.
17529         (sc_prohibit_have_config_h): Likewise.
17530         (sc_require_config_h): Likewise.
17531         (sc_prohibit_HAVE_MBRTOWC): Likewise.
17532         (sc_obsolete_symbols): Likewise.
17533         (sc_changelog): Likewise.
17534         (sc_program_name): Likewise.
17535         (sc_the_the): Likewise.
17536         (sc_trailing_blank): Likewise.
17537         (sc_two_space_separator_in_usage): Likewise.
17538         (sc_useless_cpp_parens): Likewise.
17539         (sc_GPL_version): Likewise.
17540         (sc_GFDL_version): Likewise.
17541         (sc_texinfo_acronym): Likewise.
17542         (sc_prohibit_cvs_keyword): Likewise.
17543         (sc_prohibit_stat_st_blocks): Likewise.
17544         (sc_prohibit_S_IS_definition): Likewise.
17545         (sc_redundant_const): Likewise.
17546         (sc_makefile_TAB_only_indentation): Likewise.
17547         (sc_m4_quote_check): Likewise.
17548         (sc_makefile_path_separator_check): Likewise.
17549         (sc_copyright_check): Likewise.
17550         (sc_Wundef_boolean): Likewise.
17551         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
17552
17553         maint.mk: match 0 or more whitespace-before-function-call '('
17554         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
17555         that have zero or two-and-more spaces between the function name
17556         and the open parenthesis.
17557         (sc_error_message_warn_fatal): Likewise.
17558         (sc_error_message_uppercase): Likewise.
17559         (sc_error_message_period): Likewise.
17560
17561 2010-03-31  Eric Blake  <eblake@redhat.com>
17562
17563         maint.mk: check for [ as well as test
17564         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
17565         Based on a libvirt report by Matthias Bolte.
17566
17567         gnumakefile: don't squelch _version output
17568         * top/GNUmakefile (_version): Create one-shot dependency rather
17569         than using $(shell) when version must be regenerated.
17570         (_autoreconf): Run verbosely, by default.
17571
17572         sys_time: avoid compiler warnings
17573         * lib/sys_time.in.h (includes): Ensure gcc pragma is
17574         unconditional, fixing regression from 2010-03-29.
17575         Reported by Simon Josefsson.
17576
17577 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17578
17579         maint.mk: s/_header_without_use/_sc_header_without_use/
17580         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
17581         (sc_prohibit_assert_without_use): Use the new name.
17582         (sc_prohibit_close_stream_without_use): Likewise.
17583         (sc_prohibit_getopt_without_use): Likewise.
17584         (sc_prohibit_quotearg_without_use): Likewise.
17585         (sc_prohibit_quote_without_use): Likewise.
17586         (sc_prohibit_long_options_without_use): Likewise.
17587         (sc_prohibit_inttostr_without_use): Likewise.
17588         (sc_prohibit_ignore_value_without_use): Likewise.
17589         (sc_prohibit_error_without_use): Likewise.
17590         (sc_prohibit_xalloc_without_use): Likewise.
17591         (sc_prohibit_hash_without_use): Likewise.
17592         (sc_prohibit_hash_pjw_without_use): Likewise.
17593         (sc_prohibit_safe_read_without_use): Likewise.
17594         (sc_prohibit_argmatch_without_use): Likewise.
17595         (sc_prohibit_canonicalize_without_use): Likewise.
17596         (sc_prohibit_root_dev_ino_without_use): Likewise.
17597         (sc_prohibit_openat_without_use): Likewise.
17598         (sc_prohibit_c_ctype_without_use): Likewise.
17599         (sc_prohibit_signal_without_use): Likewise.
17600         (sc_prohibit_intprops_without_use): Likewise.
17601
17602 2010-03-30  Eric Blake  <eblake@redhat.com>
17603
17604         maint: improve module indicators
17605         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
17606         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
17607         columns, and avoid extra macro expansion.
17608
17609         fdopendir: work around FreeBSD bug
17610         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
17611         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
17612         * modules/dirent (Makefile.am): Substitute it.
17613         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
17614         declaration.
17615         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
17616         fix.
17617         Reported by Christian Weisgerber <naddy@mips.inka.de>.
17618
17619 2010-03-29  Bruno Haible  <bruno@clisp.org>
17620
17621         Emit #pragma system_header after the inclusion guard, not before.
17622         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
17623         guard that spans the entire file, not before. This enables an
17624         optimization in GCC's preprocessor.
17625         * lib/ctype.in.h: Likewise.
17626         * lib/dirent.in.h: Likewise.
17627         * lib/errno.in.h: Likewise.
17628         * lib/float.in.h: Likewise.
17629         * lib/getopt.in.h: Likewise.
17630         * lib/iconv.in.h: Likewise.
17631         * lib/langinfo.in.h: Likewise.
17632         * lib/locale.in.h: Likewise.
17633         * lib/math.in.h: Likewise.
17634         * lib/netdb.in.h: Likewise.
17635         * lib/netinet_in.in.h: Likewise.
17636         * lib/pty.in.h: Likewise.
17637         * lib/sched.in.h: Likewise.
17638         * lib/se-selinux.in.h: Likewise.
17639         * lib/search.in.h: Likewise.
17640         * lib/spawn.in.h: Likewise.
17641         * lib/stdarg.in.h: Likewise.
17642         * lib/stdint.in.h: Likewise.
17643         * lib/string.in.h: Likewise.
17644         * lib/strings.in.h: Likewise.
17645         * lib/sys_file.in.h: Likewise.
17646         * lib/sys_ioctl.in.h: Likewise.
17647         * lib/sys_time.in.h: Likewise.
17648         * lib/sys_times.in.h: Likewise.
17649         * lib/sys_utsname.in.h: Likewise.
17650         * lib/sys_wait.in.h: Likewise.
17651         * lib/sysexits.in.h: Likewise.
17652         * lib/wctype.in.h: Likewise.
17653
17654 2010-03-28  James Youngman  <jay@gnu.org>
17655
17656         save-cwd: don't leak a file descriptor when the caller execs.
17657         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
17658         saved file descriptor.
17659         * modules/save-cwd (Depends-on): Depend on cloexec.
17660
17661 2010-03-29  Bruno Haible  <bruno@clisp.org>
17662
17663         Remove vestiges of fts-lgpl module.
17664         * lib/fts_.h: Assume GNULIB_FTS is 1.
17665         * lib/fts.c: Likewise.
17666         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
17667
17668 2010-03-28  Bruno Haible  <bruno@clisp.org>
17669
17670         Fix definition of tests witness macro.
17671         * gnulib-tool (func_import): Fix definition of witness macro.
17672
17673 2010-03-28  Bruno Haible  <bruno@clisp.org>
17674
17675         Fix ioctl's protoype on glibc systems.
17676         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
17677         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
17678         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
17679         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
17680         signature. If not, arrange to replace the ioctl function.
17681         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
17682         REPLACE_IOCTL.
17683         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
17684         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
17685         Reported by Ludovic Courtès <ludo@gnu.org>.
17686
17687 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
17688
17689         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
17690         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
17691         made it so grep -r --include=GLOB* ... did not work.
17692
17693 2010-03-26  Jim Meyering  <meyering@redhat.com>
17694             Eric Blake  <eblake@redhat.com>
17695
17696         maint.mk: prohibit use of test's -o and -a operators
17697         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
17698
17699 2010-03-28  Bruno Haible  <bruno@clisp.org>
17700
17701         Remove unused GNULIB_XYZ macro definitions.
17702         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
17703         invocation.
17704
17705 2010-03-28  Bruno Haible  <bruno@clisp.org>
17706
17707         Mark privileged tests modules.
17708         * modules/idpriv-drop-tests (Status): New section.
17709         * modules/idpriv-droptemp-tests (Status): New section.
17710
17711 2010-03-28  Bruno Haible  <bruno@clisp.org>
17712
17713         Split C++ tests into separate tests modules.
17714         * modules/dirent-c++-tests: New file, extracted from
17715         modules/dirent-tests.
17716         * modules/dirent-tests: Depend on it.
17717         * modules/fcntl-h-c++-tests: New file, extracted from
17718         modules/fcntl-h-tests.
17719         * modules/fcntl-h-tests: Depend on it.
17720         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
17721         * modules/glob-tests: Depend on it.
17722         * modules/iconv-h-c++-tests: New file, extracted from
17723         modules/iconv-h-tests.
17724         * modules/iconv-h-tests: Depend on it.
17725         * modules/langinfo-c++-tests: New file, extracted from
17726         modules/langinfo-tests.
17727         * modules/langinfo-tests: Depend on it.
17728         * modules/locale-c++-tests: New file, extracted from
17729         modules/locale-tests.
17730         * modules/locale-tests: Depend on it.
17731         * modules/math-c++-tests: New file, extracted from modules/math-tests.
17732         * modules/math-tests: Depend on it.
17733         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
17734         * modules/pty-tests: Depend on it.
17735         * modules/search-c++-tests: New file, extracted from
17736         modules/search-tests.
17737         * modules/search-tests: Depend on it.
17738         * modules/signal-c++-tests: New file, extracted from
17739         modules/signal-tests.
17740         * modules/signal-tests: Depend on it.
17741         * modules/spawn-c++-tests: New file, extracted from
17742         modules/spawn-tests.
17743         * modules/spawn-tests: Depend on it.
17744         * modules/stdio-c++-tests: New file, extracted from
17745         modules/stdio-tests.
17746         * modules/stdio-tests: Depend on it.
17747         * modules/stdlib-c++-tests: New file, extracted from
17748         modules/stdlib-tests.
17749         * modules/stdlib-tests: Depend on it.
17750         * modules/string-c++-tests: New file, extracted from
17751         modules/string-tests.
17752         * modules/string-tests: Depend on it.
17753         * modules/sys_ioctl-c++-tests: New file, extracted from
17754         modules/sys_ioctl-tests.
17755         * modules/sys_ioctl-tests: Depend on it.
17756         * modules/sys_select-c++-tests: New file, extracted from
17757         modules/sys_select-tests.
17758         * modules/sys_select-tests: Depend on it.
17759         * modules/sys_socket-c++-tests: New file, extracted from
17760         modules/sys_socket-tests.
17761         * modules/sys_socket-tests: Depend on it.
17762         * modules/sys_stat-c++-tests: New file, extracted from
17763         modules/sys_stat-tests.
17764         * modules/sys_stat-tests: Depend on it.
17765         * modules/sys_time-c++-tests: New file, extracted from
17766         modules/sys_time-tests.
17767         * modules/sys_time-tests: Depend on it.
17768         * modules/time-c++-tests: New file, extracted from modules/time-tests.
17769         * modules/time-tests: Depend on it.
17770         * modules/unistd-c++-tests: New file, extracted from
17771         modules/unistd-tests.
17772         * modules/unistd-tests: Depend on it.
17773         * modules/wchar-c++-tests: New file, extracted from
17774         modules/wchar-tests.
17775         * modules/wchar-tests: Depend on it.
17776         * modules/wctype-c++-tests: New file, extracted from
17777         modules/wctype-tests.
17778         * modules/wctype-tests: Depend on it.
17779         Reported by Simon Josefsson.
17780
17781 2010-03-28  Bruno Haible  <bruno@clisp.org>
17782
17783         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
17784         * gnulib-tool (func_exists_module): New function, extracted from
17785         func_verify_module.
17786         (func_verify_module): Use it.
17787         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
17788         'foo' only if 'foo' exists.
17789         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
17790         module.
17791
17792 2010-03-28  Bruno Haible  <bruno@clisp.org>
17793
17794         gnulib-tool: Add support for special categories of tests.
17795         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
17796         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
17797         (func_usage): Document them.
17798         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
17799         inc_unportable_tests, inc_all_tests): New variables.
17800         (func_acceptable): Consider these variables.
17801         (func_modules_transitive_closure): Make it work when the 'Status' field
17802         consists of multiple words.
17803         (func_import): Store and restore the values of inc_cxx_tests,
17804         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
17805         inc_all_tests in gnulib-comp.m4.
17806         (func_create_testdir): Set inc_all_tests to true.
17807         * doc/gnulib.texi (Extra tests modules): New section.
17808         Suggested by Jim Meyering.
17809
17810 2010-03-28  Bruno Haible  <bruno@clisp.org>
17811
17812         ansi-c++-opt: Allow turning off the C++ build by default.
17813         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
17814         gl_CXX_CHOICE_DEFAULT_NO is defined.
17815         Requested by Eric Blake.
17816
17817 2010-03-28  Bruno Haible  <bruno@clisp.org>
17818
17819         unistd: Avoid #define replacements in C++ mode.
17820         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
17821         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
17822         setsockopt, shutdown, select): In C++, attach a warning to the function
17823         if possible, rather than #defining the symbol to a dysfunctional alias.
17824         Reported by John W. Eaton <jwe@gnu.org>.
17825
17826 2010-03-28  Bruno Haible  <bruno@clisp.org>
17827
17828         Fix link errors on mingw.
17829         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
17830         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
17831         $(LIBSOCKET).
17832         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
17833         $(LIBSOCKET).
17834
17835 2010-03-28  Bruno Haible  <bruno@clisp.org>
17836             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17837
17838         lib-ignore: Determine different options for different compilers.
17839         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
17840         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
17841         Add comments.
17842         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
17843         * NEWS: Mention the change.
17844
17845 2010-03-27  Bruno Haible  <bruno@clisp.org>
17846
17847         Remove unused GNULIB_XYZ macro definitions.
17848         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
17849         * modules/fseek (configure.ac): Likewise.
17850         * modules/ioctl (configure.ac): Likewise.
17851         * modules/open (configure.ac): Likewise.
17852         * modules/stdlib-safer (configure.ac): Likewise.
17853
17854 2010-03-27  Bruno Haible  <bruno@clisp.org>
17855
17856         Add a remark about certain modules.
17857         * modules/malloc (Comment): New section.
17858         * modules/realloc (Comment): Likewise.
17859         * modules/sigpipe (Comment): Likewise.
17860
17861 2010-03-27  Bruno Haible  <bruno@clisp.org>
17862
17863         Resolve conflict between the two kinds of module indicators.
17864         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
17865         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
17866         * modules/canonicalize (configure.ac): Invoke
17867         gl_MODULE_INDICATOR_FOR_TESTS.
17868         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
17869         GNULIB_XYZ.
17870         * tests/test-dirent-c++.cc: Likewise.
17871         * tests/test-dirent-safer.c: Likewise.
17872         * tests/test-dup2.c: Likewise.
17873         * tests/test-fchdir.c: Likewise.
17874         * tests/test-fcntl-h-c++.cc: Likewise.
17875         * tests/test-getopt.c: Likewise.
17876         * tests/test-getopt.h: Likewise.
17877         * tests/test-langinfo-c++.cc: Likewise.
17878         * tests/test-locale-c++.cc: Likewise.
17879         * tests/test-math-c++.cc: Likewise.
17880         * tests/test-pty-c++.cc: Likewise.
17881         * tests/test-search-c++.cc: Likewise.
17882         * tests/test-signal-c++.cc: Likewise.
17883         * tests/test-spawn-c++.cc: Likewise.
17884         * tests/test-stdio-c++.cc: Likewise.
17885         * tests/test-stdlib-c++.cc: Likewise.
17886         * tests/test-string-c++.cc: Likewise.
17887         * tests/test-sys_ioctl-c++.cc: Likewise.
17888         * tests/test-sys_select-c++.cc: Likewise.
17889         * tests/test-sys_socket-c++.cc: Likewise.
17890         * tests/test-sys_stat-c++.cc: Likewise.
17891         * tests/test-sys_time-c++.cc: Likewise.
17892         * tests/test-time-c++.cc: Likewise.
17893         * tests/test-unistd-c++.cc: Likewise.
17894         * tests/test-wchar-c++.cc: Likewise.
17895         * tests/uninorm/test-u8-nfc.c: Likewise.
17896         * tests/uninorm/test-u8-nfd.c: Likewise.
17897         * tests/uninorm/test-u8-nfkc.c: Likewise.
17898         * tests/uninorm/test-u8-nfkd.c: Likewise.
17899         * tests/uninorm/test-u16-nfc.c: Likewise.
17900         * tests/uninorm/test-u16-nfd.c: Likewise.
17901         * tests/uninorm/test-u16-nfkc.c: Likewise.
17902         * tests/uninorm/test-u16-nfkd.c: Likewise.
17903         * tests/uninorm/test-u32-nfc.c: Likewise.
17904         * tests/uninorm/test-u32-nfc-big.c: Likewise.
17905         * tests/uninorm/test-u32-nfd.c: Likewise.
17906         * tests/uninorm/test-u32-nfd-big.c: Likewise.
17907         * tests/uninorm/test-u32-nfkc.c: Likewise.
17908         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
17909         * tests/uninorm/test-u32-nfkd.c: Likewise.
17910         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
17911         * tests/uninorm/test-u32-normalize-big.c: Likewise.
17912
17913 2010-03-27  Bruno Haible  <bruno@clisp.org>
17914
17915         Distinguish two kinds of module indicators.
17916         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
17917         gl_MODULE_INDICATOR.
17918         (gl_MODULE_INDICATOR): New macro.
17919         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17920         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
17921         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
17922         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
17923         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
17924         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
17925         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
17926         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
17927         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
17928         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
17929         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
17930         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
17931         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
17932         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
17933         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
17934         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
17935         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
17936         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
17937         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
17938         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
17939         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
17940         * modules/cloexec (configure.ac): Likewise.
17941         * modules/getopt-gnu (configure.ac): Likewise.
17942         * modules/uninorm/u8-normalize (configure.ac): Likewise.
17943         * modules/uninorm/u16-normalize (configure.ac): Likewise.
17944         * modules/uninorm/u32-normalize (configure.ac): Likewise.
17945         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
17946
17947 2010-03-27  Bruno Haible  <bruno@clisp.org>
17948
17949         New module description field 'Comment'.
17950         * gnulib-tool: New option --extract-comment.
17951         (func_usage): Document it.
17952         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
17953         (func_get_comment): New function.
17954         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
17955
17956 2010-03-27  Bruno Haible  <bruno@clisp.org>
17957
17958         Addendum to 2010-02-07 commit.
17959         * gnulib-tool (func_usage): Document --extract-applicability option.
17960
17961 2010-03-27  Bruno Haible  <bruno@clisp.org>
17962
17963         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
17964         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
17965         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
17966         rather than link errors.
17967
17968 2010-03-27  Bruno Haible  <bruno@clisp.org>
17969
17970         Avoid side effects from tests-related modules on the compilation of lib.
17971         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
17972         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
17973         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
17974         parameter. Emit into AM_CPPFLAGS a definition of the designated C
17975         macro.
17976         (func_import): Define a witness macro. Assign it a value that depends
17977         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
17978         tests-related modules.
17979         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
17980         Reported by Jim Meyering.
17981
17982 2010-03-27  Bruno Haible  <bruno@clisp.org>
17983
17984         Factorize common .m4 code.
17985         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
17986         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
17987         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
17988         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
17989         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
17990         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
17991         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
17992         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
17993         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
17994         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
17995         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
17996         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
17997         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
17998         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
17999         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
18000         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
18001         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
18002         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
18003         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
18004         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
18005         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
18006         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
18007         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
18008         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
18009         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
18010         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
18011         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
18012         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
18013         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
18014         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
18015         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
18016         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18017
18018 2010-03-27  Bruno Haible  <bruno@clisp.org>
18019
18020         Fix a compilation error on Cygwin with g++ >= 4.3.
18021         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
18022         if it is undefined or if we alias it to chmod.
18023         (lstat): Don't warn about the use of this function if it is undefined
18024         or if we alias it to stat.
18025         Reported by Simon Josefsson.
18026
18027 2010-03-27  Bruno Haible  <bruno@clisp.org>
18028
18029         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
18030         * modules/getlogin (configure.ac): Update.
18031
18032         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
18033         * modules/getlogin_r (configure.ac): Update.
18034
18035         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
18036         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
18037         * modules/inet_ntop (configure.ac): Update.
18038
18039         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
18040         * modules/inet_pton (configure.ac): Update.
18041
18042         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
18043         * modules/mbslen (configure.ac): Update.
18044
18045         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
18046         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
18047         * modules/forkpty (configure.ac): Update.
18048         * modules/openpty (configure.ac): Update.
18049
18050 2010-03-26  Simon Josefsson  <simon@josefsson.org>
18051
18052         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
18053         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
18054
18055 2010-03-25  Eric Blake  <eblake@redhat.com>
18056
18057         maint: use pragma consistently across replacement headers
18058         * lib/ctype.in.h (system_header): Hoist for consistent placement.
18059         * lib/dirent.in.h (system_header): Likewise.
18060         * lib/errno.in.h (system_header): Likewise.
18061         * lib/float.in.h (system_header): Likewise.
18062         * lib/getopt.in.h (system_header): Likewise.
18063         * lib/iconv.in.h (system_header): Likewise.
18064         * lib/inttypes.in.h (system_header): Likewise.
18065         * lib/langinfo.in.h (system_header): Likewise.
18066         * lib/locale.in.h (system_header): Likewise.
18067         * lib/math.in.h (system_header): Likewise.
18068         * lib/netdb.in.h (system_header): Likewise.
18069         * lib/netinet_in.in.h (system_header): Likewise.
18070         * lib/pty.in.h (system_header): Likewise.
18071         * lib/sched.in.h (system_header): Likewise.
18072         * lib/se-selinux.in.h (system_header): Likewise.
18073         * lib/search.in.h (system_header): Likewise.
18074         * lib/spawn.in.h (system_header): Likewise.
18075         * lib/stdarg.in.h (system_header): Likewise.
18076         * lib/stdint.in.h (system_header): Likewise.
18077         * lib/string.in.h (system_header): Likewise.
18078         * lib/strings.in.h (system_header): Likewise.
18079         * lib/sys_file.in.h (system_header): Likewise.
18080         * lib/sys_ioctl.in.h (system_header): Likewise.
18081         * lib/sys_socket.in.h (system_header): Likewise.
18082         * lib/sys_times.in.h (system_header): Likewise.
18083         * lib/sys_utsname.in.h (system_header): Likewise.
18084         * lib/sys_wait.in.h (system_header): Likewise.
18085         * lib/sysexits.in.h (system_header): Likewise.
18086         * lib/unistd.in.h (system_header): Likewise.
18087         * lib/wctype.in.h (system_header): Likewise.
18088
18089         arpa/inet: fix mingw compilation warning
18090         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
18091         Reported by Matthew Bolte.
18092
18093 2010-03-25  Bruno Haible  <bruno@clisp.org>
18094
18095         Avoid collision between gnulib wrapper and libintl wrapper.
18096         * lib/printf.c (printf): Don't define if a printf wrapper is already
18097         defined in intl/printf.c.
18098         Reported by Michel Boaventura <michel@michelboaventura.com>.
18099
18100 2010-03-25  Bruno Haible  <bruno@clisp.org>
18101
18102         Use ANSI C.
18103         * lib/readutmp.h (getutent): Provide ANSI C prototype.
18104
18105 2010-03-25  Bruno Haible  <bruno@clisp.org>
18106
18107         Minor formatting changes.
18108         * lib/acosl.c: Insert space before function argument list.
18109         * lib/argz.c: Likewise.
18110         * lib/asinl.c: Likewise.
18111         * lib/expl.c: Likewise.
18112         * lib/gen-uni-tables.c: Likewise.
18113         * lib/gettext.h: Likewise.
18114         * lib/glthread/lock.h: Likewise.
18115         * lib/tanl.c: Likewise.
18116         * lib/uniname/uniname.c: Likewise.
18117         * tests/test-idpriv-drop.c: Likewise.
18118         * tests/test-idpriv-droptemp.c: Likewise.
18119         * tests/test-lock.c: Likewise.
18120         * tests/test-tls.c: Likewise.
18121         * lib/argp-help.c: Insert space before function-like macro argument
18122         list.
18123         * lib/memcmp.c: Likewise.
18124         * tests/test-base64.c: Likewise.
18125         * lib/localename.c: Insert space before sizeof's argument list.
18126         * lib/safe-alloc.h: Likewise.
18127         * lib/file-set.h: Insert space before macro argument list.
18128         * tests/test-argp.c: Likewise.
18129         * lib/argp-namefrob.h: Insert space before function parameter list.
18130         * lib/getaddrinfo.c: Likewise.
18131         * lib/netdb.in.h: Likewise.
18132         * lib/parse-duration.h: Likewise.
18133         * lib/parse-duration.c: Likewise.
18134         * lib/poll.c: Likewise.
18135         * lib/select.c: Likewise.
18136         * lib/trim.h: Likewise.
18137         * tests/test-usleep.c: Likewise.
18138         * lib/ldexpl.c: Insert space before function parameter list and before
18139         function argument list.
18140         * lib/logl.c: Likewise.
18141         * lib/sqrtl.c: Likewise.
18142         * lib/trim.c: Likewise.
18143         * lib/cosl.c: Use GNU style indentation. Insert space before function
18144         argument list.
18145         * lib/sinl.c: Likewise.
18146         * lib/tsearch.c: Insert space after 'for'.
18147         Reported by Jim Meyering.
18148
18149 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
18150
18151         * maint.mk (sc_Wundef_boolean): Check for the presence of the
18152         config header before grepping, as it's not present before
18153         autoreconf/configure are run.  Reported by Simon Josefsson.
18154
18155 2010-03-23  Bruno Haible  <bruno@clisp.org>
18156
18157         pt_chown: Make it work with automake < 1.11.
18158         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
18159         Reported by Simon Josefsson.
18160
18161 2010-03-23  Bruno Haible  <bruno@clisp.org>
18162
18163         pt_chown: Don't depend on GPLed modules.
18164         * lib/pt_chown.c: Don't include idpriv.h.
18165         (main): Don't drop privileges.
18166         * modules/pt_chown (Depends-on): Remove idpriv-drop.
18167         Reported by Simon Josefsson.
18168
18169 2010-03-24  Simon Josefsson  <simon@josefsson.org>
18170
18171         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
18172         suggestions from karl@freefriends.org (Karl Berry).
18173
18174 2010-03-22  Eric Blake  <eblake@redhat.com>
18175
18176         gethostname: further tweaks
18177         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
18178         are overriding gethostname.
18179         Suggested by Bruno Haible.
18180
18181 2010-03-21  Bruno Haible  <bruno@clisp.org>
18182
18183         Fix comments.
18184         * lib/forkpty.c (rpl_forkpty): Fix comment.
18185         * lib/openpty.c (rpl_openpty): Likewise.
18186         Reported by Eric Blake.
18187
18188 2010-03-22  Eric Blake  <eblake@redhat.com>
18189
18190         gethostname: fix build on mingw
18191         * lib/unistd.in.h (includes): Work around fact that mingw
18192         <winsock2.h> re-includes <unistd.h>, by avoiding any
18193         redeclarations if we are being included by <winsock2.h>.
18194         Reported by Matthias Bolte.
18195
18196 2010-03-21  Bruno Haible  <bruno@clisp.org>
18197
18198         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18199         * lib/forkpty.c (forkpty): New replacement function, from glibc with
18200         modifications.
18201         * lib/pty.in.h (forkpty): Update declaration. Add comments.
18202         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
18203         provide the replacement.
18204         * modules/forkpty (Depends-on): Add openpty, login_tty.
18205         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
18206         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
18207         * doc/glibc-functions/forkpty.texi: More supported platforms.
18208         * config/srclist.txt: Add forkpty.c (commented).
18209
18210 2010-03-21  Bruno Haible  <bruno@clisp.org>
18211
18212         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
18213         (Makefile.am): Verify that PTY_LIB is defined.
18214
18215         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
18216
18217 2010-03-21  Bruno Haible  <bruno@clisp.org>
18218
18219         Tests for module 'login_tty'.
18220         * modules/login_tty-tests: New file.
18221         * tests/test-login_tty.c: New file.
18222
18223         New module 'login_tty'.
18224         * lib/login_tty.c: New file.
18225         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
18226         * modules/login_tty: New file.
18227         * doc/glibc-functions/login_tty.texi: Mention the new module.
18228
18229 2010-03-21  Bruno Haible  <bruno@clisp.org>
18230
18231         login_tty: Documentation.
18232         * doc/glibc-functions/login_tty.texi: New file.
18233         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
18234
18235 2010-03-21  Bruno Haible  <bruno@clisp.org>
18236
18237         pty: Consistent macro naming.
18238         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
18239         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
18240         * modules/pty (configure.ac): Update.
18241
18242 2010-03-21  Bruno Haible  <bruno@clisp.org>
18243
18244         Tests for openpty: Make stricter.
18245         * tests/test-openpty.c (main): Add test of canonical processing and
18246         erase.
18247         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
18248
18249         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18250         * lib/openpty.c (openpty): New replacement function.
18251         * lib/pty.in.h: Include <termios.h>.
18252         (openpty): Update declaration. Add comments.
18253         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
18254         is not declared, arrange to provide the replacement. Check for _getpty
18255         and posix_openpt.
18256         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
18257         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
18258         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
18259         * modules/pty-tests (test_pty_c___LDADD): New variable.
18260         * doc/glibc-functions/openpty.texi: More supported platforms.
18261
18262 2010-03-21  Bruno Haible  <bruno@clisp.org>
18263
18264         setenv: Tweaks.
18265         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
18266         the test program.
18267         * doc/posix-functions/setenv.texi: Update platforms list.
18268
18269 2010-03-21  Bruno Haible  <bruno@clisp.org>
18270
18271         New module 'unlockpt'.
18272         * lib/unlockpt.c: New file, from glibc with modifications.
18273         * m4/unlockpt.m4: New file.
18274         * modules/unlockpt: New file.
18275         * lib/stdlib.in.h (unlockpt): New declaration.
18276         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
18277         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
18278         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
18279         HAVE_UNLOCKPT.
18280         * doc/posix-functions/unlockpt.texi: Mention the new module.
18281         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
18282         * config/srclist.txt: Add unlockpt.c (commented).
18283
18284 2010-03-21  Jim Meyering  <meyering@redhat.com>
18285
18286         maint.mk: prohibit inclusion of "intprops.h" without use
18287         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
18288
18289 2010-03-21  Bruno Haible  <bruno@clisp.org>
18290
18291         New module 'grantpt'.
18292         * lib/grantpt.c: New file, from glibc with modifications.
18293         * m4/grantpt.m4: New file.
18294         * modules/grantpt: New file.
18295         * lib/stdlib.in.h (grantpt): New declaration.
18296         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
18297         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
18298         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
18299         HAVE_GRANTPT.
18300         * doc/posix-functions/grantpt.texi: Mention the new module.
18301         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
18302         * config/srclist.txt: Add grantpt.c (commented).
18303
18304 2010-03-21  Bruno Haible  <bruno@clisp.org>
18305
18306         New module 'pt_chown'.
18307         * lib/pt_chown.c: New file, from glibc with modifications.
18308         * lib/pty-private.h: New file, from glibc with modifications.
18309         * modules/pt_chown: New file.
18310         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
18311
18312 2010-03-21  Bruno Haible  <bruno@clisp.org>
18313
18314         Tests for module 'ptsname'.
18315         * modules/ptsname-tests: New file.
18316         * tests/test-ptsname.c: New file.
18317
18318         New module 'ptsname'.
18319         * lib/ptsname.c: New file, from glibc with modifications.
18320         * m4/ptsname.m4: New file.
18321         * modules/ptsname: New file.
18322         * lib/stdlib.in.h (ptsname): New declaration.
18323         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
18324         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
18325         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
18326         HAVE_PTSNAME.
18327         * doc/posix-functions/ptsname.texi: Mention the new module.
18328         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
18329         * config/srclist.txt: Add ptsname.c (commented).
18330
18331 2010-03-21  Bruno Haible  <bruno@clisp.org>
18332
18333         Tests for module 'ttyname_r'.
18334         * modules/ttyname_r-tests: New file.
18335         * tests/test-ttyname_r.c: New file.
18336
18337         New module 'ttyname_r'.
18338         * lib/ttyname_r.c: New file.
18339         * m4/ttyname_r.m4: New file.
18340         * modules/ttyname_r: New file.
18341         * lib/unistd.in.h (ttyname_r): New declaration.
18342         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
18343         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
18344         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
18345         HAVE_TTYNAME_R.
18346         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
18347         * doc/posix-functions/ttyname_r.texi: Mention the new module.
18348
18349 2010-03-20  Bruno Haible  <bruno@clisp.org>
18350
18351         signal: Undefine macro definitions in C++ mode.
18352         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
18353         sigfillset): Undefine macro definitions from the system header in C++
18354         mode.
18355         Reported by John W. Eaton <jwe@gnu.org>.
18356
18357 2010-03-20  Bruno Haible  <bruno@clisp.org>
18358
18359         Ensure no #include statements inside extern "C" { ... }.
18360         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
18361         contain #include statements.
18362         * lib/time.in.h: Likewise.
18363
18364 2010-03-20  Bruno Haible  <bruno@clisp.org>
18365
18366         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
18367         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
18368         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
18369         Reported by John W. Eaton <jwe@gnu.org>.
18370
18371 2010-03-20  Bruno Haible  <bruno@clisp.org>
18372
18373         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
18374         Reported by Jim Meyering.
18375
18376 2010-03-20  Bruno Haible  <bruno@clisp.org>
18377
18378         pipe: Set errno upon failure.
18379         * lib/pipe.h: Specify that when -1 is returned, errno is set.
18380         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
18381         errno value in error message.
18382
18383 2010-03-20  Bruno Haible  <bruno@clisp.org>
18384             Jim Meyering  <meyering@redhat.com>
18385
18386         lchown: Avoid "unused variable" warning.
18387         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
18388
18389 2010-03-20  Bruno Haible  <bruno@clisp.org>
18390
18391         Work around unlink() bug on MacOS X 10.5.6.
18392         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
18393         attempting to unlink a parent directory.
18394         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
18395         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
18396         activate for the replacement function.
18397         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
18398
18399 2010-03-20  Bruno Haible  <bruno@clisp.org>
18400
18401         Fix link errors on Solaris 8.
18402         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
18403         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
18404
18405 2010-03-19  Jim Meyering  <meyering@redhat.com>
18406
18407         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
18408         The _LIBC implementation of build_range_exp correctly honors the
18409         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
18410         However, the non-_LIBC implementation would ignore that syntax-bit
18411         flag and return REG_ERANGE unconditionally.
18412         This change makes it honor that flag.
18413         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
18414         Make two pointer parameters "const".
18415         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
18416         (parse_bracket_exp): Update caller.
18417
18418         regex.m4: correct the reversed range endpoint ([b-a]) test
18419         * m4/regex.m4: When requiring that [b-a] evoke failure,
18420         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
18421         test pass once again for x86-based systems.
18422
18423 2010-03-19  Bruno Haible  <bruno@clisp.org>
18424
18425         scandir: Fix link error on Solaris 8.
18426         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
18427         macros.
18428
18429 2010-03-19  Bruno Haible  <bruno@clisp.org>
18430
18431         getusershell: Fix documentation.
18432         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
18433         module.
18434         * doc/glibc-functions/setusershell.texi: Likewise.
18435
18436         getusershell: Provide declaration, missing on Solaris 9.
18437         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
18438         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
18439         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
18440         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
18441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18442         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
18443         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
18444         HAVE_GETUSERSHELL.
18445         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
18446
18447 2010-03-19  Bruno Haible  <bruno@clisp.org>
18448
18449         wctype: Provide iswblank function.
18450         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
18451         exists and is fine.
18452         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
18453         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
18454         * tests/test-wctype.c (main): Re-enable the iswblank tests.
18455         * doc/posix-functions/iswblank.texi: Update.
18456
18457 2010-03-19  Bruno Haible  <bruno@clisp.org>
18458
18459         Tests of module 'pty' in C++ mode.
18460         * modules/pty-tests: New file.
18461         * tests/test-pty-c++.cc: New file.
18462         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18463
18464 2010-03-19  Eric Blake  <eblake@redhat.com>
18465
18466         logb: fix documentation
18467         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
18468         1.5 declaration bug.
18469
18470         forkpty, openpty: prefer glibc's const-safe prototype
18471         * lib/forkpty.c (rpl_forkpty): New file.
18472         * lib/openpty.c (rpl_openpty): Likewise.
18473         * modules/forkpty (Files): Distribute it.
18474         * modules/openpty (Files): Likewise.
18475         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
18476         check...
18477         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
18478         replacement for for non-const BSD signature.
18479         * modules/pty (Makefile.am): Substitute witnesses.
18480         * lib/pty.in.h (forkpty, openpty): Declare replacements.
18481         * tests/test-forkpty.c: Update signature check.
18482         * tests/test-openpty.c: Likewise.
18483         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
18484         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18485
18486         forkpty, openpty: split functions into new modules
18487         * modules/pty (Makefile.am): Substitute new witnesses.
18488         (Libraries): Move library detection...
18489         * modules/forkpty: ...into new module.
18490         * modules/openpty: Another new module.
18491         * modules/pty-tests: Rename and split...
18492         * modules/forkpty-tests: ...to this...
18493         * modules/openpty-tests: ...and this.
18494         * tests/test-pty.c: Rename and split...
18495         * tests/test-forkpty.c: ...to this...
18496         * tests/test-openpty.c: ...and this.
18497         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
18498         (gl_PTY): Split library searching...
18499         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
18500         (gl_FORKPTY, gl_OPENPTY): New macros.
18501         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
18502         * NEWS: Mention the split.
18503         * MODULES.html.sh (Misc): Document the modules.
18504         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
18505         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18506
18507         pty: improve replacement header
18508         * lib/pty.in.h: New file.
18509         * modules/pty (Files): Ship it.
18510         (Makefile.am): Always build replacement.
18511         * m4/pty.m4: Rename...
18512         * m4/pty_h.m4: ...to this.
18513         (gl_PTY): Modernize setting of witness macros; update check of
18514         forkpty to take proper advantage of cache.
18515         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
18516
18517         getopt: avoid compiler warning
18518         * lib/getopt.c (attribute_hidden): Remove unused macro.
18519
18520 2010-03-18  Bruno Haible  <bruno@clisp.org>
18521
18522         Fix link errors on Solaris 8.
18523         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
18524         * modules/search-tests (test_search_c___LDADD): Likewise.
18525         * modules/signal-tests (test_signal_c___LDADD): Likewise.
18526         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
18527         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
18528         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
18529         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
18530         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
18531         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
18532
18533 2010-03-18  Bruno Haible  <bruno@clisp.org>
18534
18535         Fix bug introduced on 2010-03-14.
18536         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
18537         (gl_SPAWN_H): Require it.
18538         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
18539         Reported by Simon Josefsson.
18540
18541 2010-03-18  Bruno Haible  <bruno@clisp.org>
18542
18543         Fix typo introduced on 2009-12-31.
18544         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
18545         posix_spawn_file_actions_adddup2.
18546
18547 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
18548         and Eric Blake  <eblake@redhat.com>
18549
18550         test-vc-list-files-git: make more robust
18551         * tests/test-vc-list-files-git.sh: Unset problematic environment
18552         variables.  Chain commands together.
18553
18554 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
18555
18556         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
18557         `AC_CHECK_DECL' invocation.
18558
18559 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
18560
18561         * lib/inttostr.c (inttostr): Make sure the invocation of verify
18562         appears before executable statements. Suggested by Petr Sumbera
18563         <Petr.Sumbera@Sun.COM>.
18564
18565 2010-03-14  Bruno Haible  <bruno@clisp.org>
18566
18567         * tests/test-flock.c (test_exclusive): Comment out a test that causes
18568         portability problems. Instead use a simpler test.
18569         (main): Check that invalid arguments are rejected only on Linux.
18570
18571 2010-03-14  Bruno Haible  <bruno@clisp.org>
18572
18573         Fix bug introduced on 2009-12-31.
18574         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18575         gl_PREREQ_SYS_H_WINSOCK2 always.
18576         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
18577         SYS_SOCKET_H variable.
18578         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
18579         Update comments.
18580         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
18581         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18582         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18583         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18584         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
18585
18586 2010-03-14  Bruno Haible  <bruno@clisp.org>
18587
18588         Fix values returned by sinl, cosl.
18589         * lib/trigl.h: Add specification comments.
18590         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
18591         that combines the values from the precomputed table with the values of
18592         the Chebyshev polynomials.
18593
18594 2010-03-14  Bruno Haible  <bruno@clisp.org>
18595
18596         Fix compilation error when modules 'posix_spawn[p]' are not used.
18597         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
18598         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
18599
18600 2010-03-14  Bruno Haible  <bruno@clisp.org>
18601
18602         Fix compilation error on mingw when module 'time_r' is not used.
18603         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
18604         is 1.
18605         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
18606         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
18607         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
18608         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
18609
18610 2010-03-14  Bruno Haible  <bruno@clisp.org>
18611
18612         Fix compilation error with Sun C.
18613         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
18614         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
18615         instead of GCC specific ULONG_LONG_MAX.
18616         * lib/xstrtoll.c: Likewise.
18617         * lib/xstrtoull.c: Likewise.
18618
18619 2010-03-13  Bruno Haible  <bruno@clisp.org>
18620
18621         Allow the user to disable C++ code and tests.
18622         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
18623         (gl_PROG_ANSI_CXX): Require it.
18624
18625 2010-03-13  Bruno Haible  <bruno@clisp.org>
18626
18627         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
18628         cases.
18629
18630 2010-03-13  Bruno Haible  <bruno@clisp.org>
18631
18632         Test that gnulib does not break the standard C++ headers.
18633         * tests/test-locale-c++2.cc: New file.
18634         * modules/locale-tests (Files): Add it.
18635         (Makefile.am): Compile it for test-locale-c++.
18636         * tests/test-math-c++2.cc: New file.
18637         * modules/math-tests (Files): Add it.
18638         (Makefile.am): Compile it for test-math-c++.
18639         * tests/test-signal-c++2.cc: New file.
18640         * modules/signal-tests (Files): Add it.
18641         (Makefile.am): Compile it for test-signal-c++.
18642         * tests/test-stdio-c++2.cc: New file.
18643         * modules/stdio-tests (Files): Add it.
18644         (Makefile.am): Compile it for test-stdio-c++.
18645         * tests/test-stdlib-c++2.cc: New file.
18646         * modules/stdlib-tests (Files): Add it.
18647         (Makefile.am): Compile it for test-stdlib-c++.
18648         * tests/test-string-c++2.cc: New file.
18649         * modules/string-tests (Files): Add it.
18650         (Makefile.am): Compile it for test-string-c++.
18651         * tests/test-time-c++2.cc: New file.
18652         * modules/time-tests (Files): Add it.
18653         (Makefile.am): Compile it for test-time-c++.
18654         Reported by John W. Eaton <jwe@gnu.org>.
18655
18656 2010-03-13  Bruno Haible  <bruno@clisp.org>
18657
18658         * gnulib-tool (func_usage): Clarify which options are available for
18659         --create-testdir and --create-megatestdir.
18660
18661 2010-03-13  Bruno Haible  <bruno@clisp.org>
18662
18663         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
18664         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
18665         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
18666         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18667         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
18668         when appropriate.
18669         Reported by Jim Meyering.
18670
18671 2010-03-12  Simon Josefsson  <simon@josefsson.org>
18672
18673         * gnulib-tool (func_import): Explain origin of code.
18674
18675 2010-03-12  Bruno Haible  <bruno@clisp.org>
18676
18677         Fix problem with automake's definition of CXXLINK.
18678         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
18679         Reported by Simon Josefsson and Ludovic Courtès.
18680
18681 2010-03-12  Bruno Haible  <bruno@clisp.org>
18682
18683         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
18684         stable releases.
18685
18686 2010-03-11  Bruno Haible  <bruno@clisp.org>
18687
18688         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
18689         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
18690         whether the system provides one variant or multiple variants of the
18691         function.
18692         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
18693         C++ compilers.
18694         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
18695         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
18696         Reported by Jim Meyering.
18697
18698 2010-03-09  Simon Josefsson  <simon@josefsson.org>
18699
18700         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
18701
18702 2010-03-08  Bruno Haible  <bruno@clisp.org>
18703
18704         gnulib-tool: Add support for --libtool in --create-testdir.
18705         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
18706         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
18707
18708 2010-03-08  Eric Blake  <eblake@redhat.com>
18709
18710         gnulib-tool.texi: mention possibility of git submodule
18711         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
18712         submodules.
18713         * doc/.gitignore: Ignore another generated file.
18714
18715 2010-03-08  Karl Berry  <karl@gnu.org>
18716
18717         * doc/gnulib-tool.texi (VCS Issues): Mention third option
18718         of committing gnulib files while skipping others.
18719
18720 2010-03-07  Bruno Haible  <bruno@clisp.org>
18721
18722         Tests of module 'wctype' in C++ mode.
18723         * tests/test-wctype-c++.cc: New file.
18724         * modules/wctype-tests (Files): Add it and tests/signature.h.
18725         (Depends-on): Add ansi-c++-opt.
18726         (Makefile.am): Arrange to compile and run test-wctype-c++.
18727
18728         Tests of module 'wchar' in C++ mode.
18729         * tests/test-wchar-c++.cc: New file.
18730         * modules/wchar-tests (Files): Add it and tests/signature.h.
18731         (Depends-on): Add ansi-c++-opt.
18732         (Makefile.am): Arrange to compile and run test-wchar-c++.
18733         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
18734         gl_MODULE_INDICATOR.
18735
18736         Tests of module 'unistd' in C++ mode.
18737         * tests/test-unistd-c++.cc: New file.
18738         * modules/unistd-tests (Files): Add it and tests/signature.h.
18739         (Depends-on): Add ansi-c++-opt.
18740         (Makefile.am): Arrange to compile and run test-unistd-c++.
18741         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
18742         gl_MODULE_INDICATOR.
18743
18744         Tests of module 'time' in C++ mode.
18745         * tests/test-time-c++.cc: New file.
18746         * modules/time-tests (Files): Add it and tests/signature.h.
18747         (Depends-on): Add ansi-c++-opt.
18748         (Makefile.am): Arrange to compile and run test-time-c++.
18749         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18750
18751         Tests of module 'sys_time' in C++ mode.
18752         * tests/test-sys_time-c++.cc: New file.
18753         * modules/sys_time-tests (Files): Add it and tests/signature.h.
18754         (Depends-on): Add ansi-c++-opt.
18755         (Makefile.am): Arrange to compile and run test-sys_time-c++.
18756         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
18757         gl_MODULE_INDICATOR.
18758
18759         Tests of module 'sys_stat' in C++ mode.
18760         * tests/test-sys_stat-c++.cc: New file.
18761         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
18762         (Depends-on): Add ansi-c++-opt.
18763         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
18764         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
18765         gl_MODULE_INDICATOR.
18766
18767         Tests of module 'sys_socket' in C++ mode.
18768         * tests/test-sys_socket-c++.cc: New file.
18769         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
18770         (Depends-on): Add ansi-c++-opt.
18771         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
18772         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
18773         gl_MODULE_INDICATOR.
18774
18775         Tests of module 'sys_select' in C++ mode.
18776         * tests/test-sys_select-c++.cc: New file.
18777         * modules/sys_select-tests (Files): Add it and tests/signature.h.
18778         (Depends-on): Add ansi-c++-opt.
18779         (Makefile.am): Arrange to compile and run test-sys_select-c++.
18780         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
18781         gl_MODULE_INDICATOR.
18782
18783         Tests of module 'sys_ioctl' in C++ mode.
18784         * tests/test-sys_ioctl-c++.cc: New file.
18785         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
18786         (Depends-on): Add ansi-c++-opt.
18787         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
18788         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
18789         gl_MODULE_INDICATOR.
18790
18791         Tests of module 'string' in C++ mode.
18792         * tests/test-string-c++.cc: New file.
18793         * modules/string-tests (Files): Add it and tests/signature.h.
18794         (Depends-on): Add ansi-c++-opt.
18795         (Makefile.am): Arrange to compile and run test-string-c++.
18796         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
18797         gl_MODULE_INDICATOR.
18798
18799         Tests of module 'stdlib' in C++ mode.
18800         * tests/test-stdlib-c++.cc: New file.
18801         * modules/stdlib-tests (Files): Add it and tests/signature.h.
18802         (Depends-on): Add ansi-c++-opt.
18803         (Makefile.am): Arrange to compile and run test-stdlib-c++.
18804         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
18805         gl_MODULE_INDICATOR.
18806
18807         Tests of module 'stdio' in C++ mode.
18808         * tests/test-stdio-c++.cc: New file.
18809         * modules/stdio-tests (Files): Add it and tests/signature.h.
18810         (Depends-on): Add ansi-c++-opt.
18811         (Makefile.am): Arrange to compile and run test-stdio-c++.
18812         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
18813         gl_MODULE_INDICATOR.
18814
18815         Tests of module 'spawn' in C++ mode.
18816         * tests/test-spawn-c++.cc: New file.
18817         * modules/spawn-tests (Files): Add it and tests/signature.h.
18818         (Depends-on): Add ansi-c++-opt.
18819         (Makefile.am): Arrange to compile and run test-spawn-c++.
18820         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
18821         gl_MODULE_INDICATOR.
18822
18823         Tests of module 'signal' in C++ mode.
18824         * tests/test-signal-c++.cc: New file.
18825         * modules/signal-tests (Files): Add it and tests/signature.h.
18826         (Depends-on): Add ansi-c++-opt.
18827         (Makefile.am): Arrange to compile and run test-signal-c++.
18828         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
18829         gl_MODULE_INDICATOR.
18830
18831         Tests of module 'search' in C++ mode.
18832         * tests/test-search-c++.cc: New file.
18833         * modules/search-tests (Files): Add it and tests/signature.h.
18834         (Depends-on): Add ansi-c++-opt.
18835         (Makefile.am): Arrange to compile and run test-search-c++.
18836         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
18837         gl_MODULE_INDICATOR.
18838
18839         Tests of module 'math' in C++ mode.
18840         * tests/test-math-c++.cc: New file.
18841         * modules/math-tests (Files): Add it and tests/signature.h.
18842         (Depends-on): Add ansi-c++-opt.
18843         (Makefile.am): Arrange to compile and run test-math-c++.
18844         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18845
18846         Tests of module 'locale' in C++ mode.
18847         * tests/test-locale-c++.cc: New file.
18848         * modules/locale-tests (Files): Add it and tests/signature.h.
18849         (Depends-on): Add ansi-c++-opt.
18850         (Makefile.am): Arrange to compile and run test-locale-c++.
18851         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
18852         gl_MODULE_INDICATOR.
18853
18854         Tests of module 'langinfo' in C++ mode.
18855         * tests/test-langinfo-c++.cc: New file.
18856         * modules/langinfo-tests (Files): Add it and tests/signature.h.
18857         (Depends-on): Add ansi-c++-opt.
18858         (Makefile.am): Arrange to compile and run test-langinfo-c++.
18859         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
18860         gl_MODULE_INDICATOR.
18861
18862         Tests of module 'iconv-h' in C++ mode.
18863         * tests/test-iconv-h-c++.cc: New file.
18864         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
18865         (Depends-on): Add ansi-c++-opt.
18866         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
18867
18868         Tests of module 'glob' in C++ mode.
18869         * tests/test-glob-c++.cc: New file.
18870         * modules/glob-tests (Files): Add it.
18871         (Depends-on): Add ansi-c++-opt.
18872         (Makefile.am): Arrange to compile and run test-glob-c++.
18873
18874         Tests of module 'fcntl-h' in C++ mode.
18875         * tests/test-fcntl-h-c++.cc: New file.
18876         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
18877         (Depends-on): Add ansi-c++-opt.
18878         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
18879         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
18880         gl_MODULE_INDICATOR.
18881
18882         Tests of module 'dirent' in C++ mode.
18883         * tests/test-dirent-c++.cc: New file.
18884         * modules/dirent-tests (Files): Add it and tests/signature.h.
18885         (Depends-on): Add ansi-c++-opt.
18886         (Makefile.am): Arrange to compile and run test-dirent-c++.
18887         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
18888         gl_MODULE_INDICATOR.
18889
18890         New module 'ansi-c++-opt'.
18891         * modules/ansi-c++-opt: New file.
18892         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
18893
18894         Document C++ namespace mode.
18895         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
18896
18897         wctype: Avoid #define replacements in C++ mode.
18898         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
18899         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
18900         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
18901         In C++, define a namespaced alias symbol.
18902         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
18903         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
18904         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
18905         rule.
18906
18907         wchar: Avoid #define replacements in C++ mode.
18908         * lib/wchar.in.h: Include c++defs.h.
18909         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
18910         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
18911         symbol.
18912         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
18913         * modules/wchar (Depends-on): Add c++defs.
18914         (Makefile.am): Update wchar.h rule.
18915
18916         unistd: Avoid #define replacements in C++ mode.
18917         * lib/unistd.in.h: Include c++defs.h.
18918         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
18919         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
18920         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
18921         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
18922         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
18923         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
18924         symbol.
18925         (environ): Update.
18926         * modules/unistd (Depends-on): Add c++defs.
18927         (Makefile.am): Update unistd.h rule.
18928
18929         time: Avoid #define replacements in C++ mode.
18930         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
18931         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
18932         define a namespaced alias symbol.
18933         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
18934         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
18935         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
18936         * modules/time (Depends-on): Add c++defs, warn-on-use.
18937         (Makefile.am): Update time.h rule.
18938         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
18939         * modules/nanosleep (configure.ac): Likewise.
18940         * modules/strptime (configure.ac): Likewise.
18941         * modules/timegm (configure.ac): Likewise.
18942
18943         sys_time: Avoid #define replacements in C++ mode.
18944         * lib/sys_time.in.h: Include c++defs.h.
18945         (gettimeofday): In C++, define a namespaced alias symbol.
18946         * modules/sys_time (Depends-on): Add c++defs.
18947         (Makefile.am): Update sys/time.h rule.
18948
18949         sys_stat: Avoid #define replacements in C++ mode.
18950         * lib/sys_stat.in.h: Include c++defs.h.
18951         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
18952         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
18953         namespaced alias symbol.
18954         In C++, define a namespaced alias symbol.
18955         * modules/sys_stat (Depends-on): Add c++defs.
18956         (Makefile.am): Update sys/stat.h rule.
18957
18958         sys_socket: Avoid #define replacements in C++ mode.
18959         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
18960         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
18961         definitions also when the system has a <sys/socket.h>.
18962         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
18963         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
18964         In C++, define a namespaced alias symbol.
18965         * modules/sys_socket (Depends-on): Add c++defs.
18966         (Makefile.am): Update sys/socket.h rule.
18967
18968         sys_select: Avoid #define replacements in C++ mode.
18969         * lib/sys_select.in.h: Include c++defs.h. Enable the function
18970         definitions also when the system has a <sys/select.h>.
18971         (select): In C++, define a namespaced alias symbol.
18972         * modules/sys_select (Depends-on): Add c++defs.
18973         (Makefile.am): Update sys/select.h rule.
18974
18975         sys_ioctl: Avoid #define replacements in C++ mode.
18976         * lib/sys_ioctl.in.h: Include c++defs.h.
18977         (ioctl): In C++, define a namespaced alias symbol.
18978         * modules/sys_ioctl (Depends-on): Add c++defs.
18979         (Makefile.am): Update sys/ioctl.h rule.
18980
18981         string: Avoid #define replacements in C++ mode.
18982         * lib/string.in.h: Include c++defs.h.
18983         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
18984         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
18985         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
18986         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
18987         strsignal, strverscmp): In C++, define a namespaced alias symbol.
18988         * modules/string (Depends-on): Add c++defs.
18989         (Makefile.am): Update string.h rule.
18990
18991         stdlib: Avoid #define replacements in C++ mode.
18992         * lib/stdlib.in.h: Include c++defs.h.
18993         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
18994         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
18995         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
18996         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
18997         symbol.
18998         * modules/stdlib (Depends-on): Add c++defs.
18999         (Makefile.am): Update stdlib.h rule.
19000
19001         stdio: Avoid #define replacements in C++ mode.
19002         * lib/stdio.in.h: Include c++defs.h.
19003         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
19004         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
19005         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
19006         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
19007         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
19008         namespaced alias symbol.
19009         * modules/stdio (Depends-on): Add c++defs.
19010         (Makefile.am): Update stdio.h rule.
19011
19012         spawn: Avoid #define replacements in C++ mode.
19013         * lib/spawn.in.h: Include c++defs.h.
19014         (posix_spawn, posix_spawnp, posix_spawnattr_init,
19015         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
19016         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
19017         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
19018         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
19019         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
19020         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
19021         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
19022         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
19023         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
19024         In C++, define a namespaced alias symbol.
19025         * modules/spawn (Depends-on): Add c++defs.
19026         (Makefile.am): Update spawn.h rule.
19027
19028         signal: Avoid #define replacements in C++ mode.
19029         * lib/signal.in.h: Include c++defs.h.
19030         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
19031         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
19032         namespaced alias symbol.
19033         * modules/signal (Depends-on): Add c++defs.
19034         (Makefile.am): Update signal.h rule.
19035
19036         search: Avoid #define replacements in C++ mode.
19037         * lib/search.in.h: Include c++defs.h.
19038         (_gl_search_compar_fn, _gl_search_action_fn): New types.
19039         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
19040         symbol.
19041         * modules/search (Depends-on): Add c++defs.
19042         (Makefile.am): Update search.h rule.
19043
19044         math: Avoid #define replacements in C++ mode.
19045         * lib/math.in.h: Include c++defs.h.
19046         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
19047         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
19048         trunc, truncl): In C++, define a namespaced alias symbol.
19049         * modules/math (Depends-on): Add c++defs.
19050         (Makefile.am): Update math.h rule.
19051
19052         locale: Avoid #define replacements in C++ mode.
19053         * lib/locale.in.h: Include c++defs.h.
19054         (duplocale): In C++, define a namespaced alias symbol.
19055         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
19056         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
19057         * modules/locale (Depends-on): Add c++defs.
19058         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
19059
19060         langinfo: Avoid #define replacements in C++ mode.
19061         * lib/langinfo.in.h: Include c++defs.h.
19062         (nl_langinfo): In C++, define a namespaced alias symbol.
19063         * modules/langinfo (Depends-on): Add c++defs.
19064         (Makefile.am): Update langinfo.h rule.
19065
19066         iconv-h: Avoid #define replacements in C++ mode.
19067         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
19068         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
19069         symbol.
19070         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
19071         whenever iconv is present.
19072         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
19073         (Makefile.am): Update iconv.h rule.
19074
19075         glob: Avoid #define replacements in C++ mode.
19076         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
19077         (_gl_glob_errfunc_fn): New type.
19078         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
19079         symbol.
19080         * modules/glob (Depends-on): Add c++defs, warn-on-use.
19081         (Makefile.am): Update glob.h rule.
19082
19083         fcntl-h: Avoid #define replacements in C++ mode.
19084         * lib/fcntl.in.h: Include c++defs.h.
19085         (fcntl, open, openat): In C++, define a namespaced alias symbol.
19086         * modules/fcntl-h (Depends-on): Add c++defs.
19087         (Makefile.am): Update fcntl.h rule.
19088
19089         dirent: Avoid #define replacements in C++ mode.
19090         * lib/dirent.in.h: Include c++defs.h.
19091         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
19092         namespaced alias symbol.
19093         (dirfd): Update declaration.
19094         * modules/dirent (Depends-on): Add c++defs.
19095         (Makefile.am): Update dirent.h rule.
19096
19097         ctype: Make it usable in C++ code.
19098         * lib/ctype.in.h: Include c++defs.h.
19099         (isblank): Declare as extern "C".
19100         * modules/ctype (Depends-on): Add c++defs.
19101         (Makefile.am): Update ctype.h rule.
19102
19103         New module 'c++defs'.
19104         * modules/c++defs: New file.
19105         * build-aux/c++defs.h: New file.
19106         Reported by John W. Eaton <jwe@gnu.org>.
19107
19108 2010-03-07  Bruno Haible  <bruno@clisp.org>
19109
19110         logb: Provide missing declaration for Cygwin.
19111         * lib/math.in.h (logb): New declaration.
19112         * m4/logb.m4: New file.
19113         * modules/logb (Files): Add m4/logb.m4.
19114         (Depends-on): Add math.
19115         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
19116         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
19117         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
19118         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
19119         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
19120
19121 2010-03-07  Bruno Haible  <bruno@clisp.org>
19122
19123         Fix test-cond link error.
19124         * tests/test-cond.c: Include <stdio.h>.
19125
19126 2010-03-07  Bruno Haible  <bruno@clisp.org>
19127
19128         Fix test-dirent-safer link error.
19129         * modules/dirent-safer-tests (Makefile.am): Define
19130         test_dirent_safer_LDADD.
19131
19132 2010-03-07  Bruno Haible  <bruno@clisp.org>
19133
19134         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
19135         among default module list.
19136
19137 2010-03-07  Bruno Haible  <bruno@clisp.org>
19138
19139         Fix link error on platforms with GNU libiconv.
19140         * modules/unistr/u8-strcoll-tests (Makefile): Define
19141         test_u8_strcoll_LDADD.
19142         * modules/unistr/u16-strcoll-tests (Makefile): Define
19143         test_u16_strcoll_LDADD.
19144         * modules/unistr/u32-strcoll-tests (Makefile): Define
19145         test_u32_strcoll_LDADD.
19146
19147 2010-03-07  Bruno Haible  <bruno@clisp.org>
19148
19149         Use POSIX declarations for socket functions.
19150         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
19151         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
19152         rpl_sendto): Change declaration to match POSIX.
19153         * lib/connect.c (rpl_connect): Likewise.
19154         * lib/accept.c (rpl_accept): Likewise.
19155         * lib/bind.c (rpl_bind): Likewise.
19156         * lib/getpeername.c (rpl_getpeername): Likewise.
19157         * lib/getsockname.c (rpl_getsockname): Likewise.
19158         * lib/recv.c (rpl_recv): Likewise.
19159         * lib/send.c (rpl_send): Likewise.
19160         * lib/recvfrom.c (rpl_recvfrom): Likewise.
19161         * lib/sendto.c (rpl_sendto): Likewise.
19162
19163 2010-03-06  Bruno Haible  <bruno@clisp.org>
19164
19165         Clarify access, euidaccess, faccessat.
19166         * doc/posix-functions/faccessat.texi: Mention security problem under
19167         "Other problems", not "Portability problems".
19168         * doc/posix-functions/access.texi: Likewise. Mention a related security
19169         problem.
19170         * doc/glibc-functions/euidaccess.texi: Mention security problems.
19171         * lib/euidaccess.c: Add comments about platforms.
19172         * lib/unistd.in.h (access, euidaccess): Add warnings.
19173
19174 2010-03-07  Bruno Haible  <bruno@clisp.org>
19175
19176         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
19177         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
19178         (POSIX_SPAWN_SETSCHEDULER): Likewise.
19179         (POSIX_SPAWN_USEVFORK): Define in a way that works when
19180         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19181         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
19182         declare when POSIX_SPAWN_SETSCHEDULER is zero.
19183         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
19184         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
19185         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
19186         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
19187         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
19188         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
19189         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
19190         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
19191         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
19192         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
19193         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
19194         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
19195         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
19196         Likewise.
19197         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
19198         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
19199         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
19200         Likewise.
19201         * tests/test-spawn.c (main): Make it work when
19202         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19203
19204 2010-03-07  Bruno Haible  <bruno@clisp.org>
19205
19206         Fix incorrect Makefile.am generation in German locale.
19207         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19208         Execute sed command with character range in C locale.
19209
19210 2010-03-06  Bruno Haible  <bruno@clisp.org>
19211
19212         Tests for module 'iconv-h'.
19213         * modules/iconv-h-tests: New file.
19214         * tests/test-iconv-h.c: New file.
19215
19216         New module 'iconv-h'.
19217         * modules/iconv-h: New file.
19218         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
19219         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
19220         (configure.ac): Remove gl_ICONV_H.
19221         (Makefile.am): Remove rule for iconv.h.
19222
19223 2010-03-06  Bruno Haible  <bruno@clisp.org>
19224
19225         More consistent naming of *.m4 files.
19226         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
19227         * modules/wctype (Files): Update.
19228
19229         More consistent naming of *.m4 files.
19230         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
19231         * modules/wchar (Files): Update.
19232
19233 2010-03-06  Jim Meyering  <meyering@redhat.com>
19234
19235         euidaccess: relax license to LGPLv2+
19236         * modules/euidaccess (License): Relax to LGPLv2+.
19237
19238 2010-03-06  Bruno Haible  <bruno@clisp.org>
19239
19240         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
19241         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
19242         (Makefile.am): Augment lib_SOURCES instead.
19243
19244 2010-03-04  Jim Meyering  <meyering@redhat.com>
19245
19246         utime: remove obsolete module
19247         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
19248         unnecessary for years, and has been marked as obsolete for 10 months.
19249         * modules/utime: Remove file.
19250         * lib/utime.c: Remove file.
19251         * m4/utime.m4: Remove file.
19252         * m4/utimes-null.m4: Remove file.
19253         * doc/posix-functions/utime.texi (utime): Remove reference to
19254         the module.  Move the sole "fixed by gnulib" item into the
19255         "problems not fixed by Gnulib" list.
19256         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
19257
19258 2010-03-05  Simon Josefsson  <simon@josefsson.org>
19259
19260         * modules/exit (License): Relax license to LGPLv2+.
19261         (Status): Mark as obsolete.
19262         * NEWS: Mention deprecated 'exit' module.
19263         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
19264         of now obsolete 'exit'.
19265
19266 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19267
19268         fts-lgpl: remove unused module
19269         * modules/fts-lgpl: Remove.
19270         * MODULES.html.sh (func_all_modules): Adjust.
19271         * check-module (find_included_lib_files): Adjust.
19272         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
19273
19274 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
19275
19276         copy-acl: enhance Solaris ACL error handling
19277         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
19278         * lib/set-mode-acl.c (qset_acl): Likewise.
19279
19280 2010-03-02  Bruno Haible  <bruno@clisp.org>
19281
19282         spawn: Don't override the system defined values on FreeBSD 8.
19283         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
19284         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
19285         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
19286         if HAVE_POSIX_SPAWN is 1.
19287         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
19288
19289 2010-03-01  Bruno Haible  <bruno@clisp.org>
19290
19291         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
19292         regarding Automake.
19293
19294 2010-02-25  Bruno Haible  <bruno@clisp.org>
19295
19296         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
19297         * gnulib-tool: Define 'echo' as a function only before the ksh alias
19298         setting, not afterwards.
19299         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
19300
19301 2010-02-24  Eric Blake  <eblake@redhat.com>
19302
19303         bootstrap, git-version-gen: use timestamp
19304         * build-aux/git-version-gen (scriptversion): Force UTC.
19305         * build-aux/bootstrap (scriptversion): New variable.
19306
19307         bootstrap: allow older git
19308         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
19309         older than 1.6.4.  Requested by the libvirt project.
19310
19311 2010-02-23  Eric Blake  <eblake@redhat.com>
19312
19313         warn-on-use: work with old autoconf
19314         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
19315         AS_VAR semantics of autoconf 2.60.
19316         Reported by Bruno Haible.
19317
19318         bootstrap: improve some comments
19319         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
19320         clarification comments.
19321
19322         gettimeofday: provide correct function
19323         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
19324         when replacement is declared, otherwise provide gettimeofday.
19325         Reported by Michael Goffioul.
19326
19327 2010-02-23  Jim Meyering  <meyering@redhat.com>
19328
19329         lib-ignore: relax license to "unlimited", not LGPLv2+
19330         * modules/lib-ignore (License): Relax to "unlimited".
19331
19332 2010-02-23  Jim Meyering  <meyering@redhat.com>
19333
19334         lib-ignore: relax license to LGPLv2+
19335         * modules/lib-ignore (License): Relax to LGPLv2+.
19336
19337 2010-02-22  Eric Blake  <eblake@redhat.com>
19338
19339         lseek: avoid bash 3.2 broken pipe bug
19340         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
19341         warning from bash 3.2.
19342         Reported by Ben Pfaff, with analysis from Bruno Haible.
19343
19344         bootstrap: support non-FSF copyright holder
19345         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
19346         bootstrap.conf override of COPYRIGHT_HOLDER.
19347         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
19348
19349         bootstrap: interoperate with gettext 0.14.1
19350         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
19351
19352         bootstrap: allow for alternate submodule location
19353         * build-aux/bootstrap (gnulib_path): New variable; use instead of
19354         hardcoding submodule location.
19355         (gnulib_mk): Allow direct use of Makefile.am.
19356
19357         bootstrap: use GNULIB_SRCDIR to reduce disk usage
19358         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
19359         rather than reconfiguring where the submodule points.
19360
19361         gettimeofday: restore support for platforms that lack function
19362         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
19363         replacement if function is missing.
19364         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
19365         * modules/sys_time (Makefile.am): Substitute it.
19366         * lib/sys_time.in.h (gettimeofday): Check it.
19367         Reported by Michael Goffioul.
19368
19369 2010-02-21  Bruno Haible  <bruno@clisp.org>
19370
19371         * lib/stdio.in.h (obstack_printf): Fix typo.
19372
19373 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
19374
19375         vc-list-files: use bzr ls's -R option
19376         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
19377         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
19378
19379 2010-02-21  Jim Meyering  <meyering@redhat.com>
19380
19381         init.sh: fix EXEEXT shims to work also for names like test-prog
19382         * tests/init.sh: Re-exec a better shell, when needed.
19383         If the current shell lacks support for posix $(...), an init.sh-using
19384         test will now try to find a shell that supports that.  If EXEEXT is
19385         nonempty, we also require support for hyphen-in-alias-name and shell
19386         substitutions like ${var#glob}.  Failure to find such a shell results
19387         in a skipped test.
19388
19389 2010-02-21  Bruno Haible  <bruno@clisp.org>
19390
19391         Really work around around "broken pipe" error message from bash 3.2.
19392         * gnulib-tool (func_reset_sigpipe): Remove function.
19393         (echo): In bash 3.2, define to a function that uses printf.
19394         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
19395
19396 2010-02-20  Bruno Haible  <bruno@clisp.org>
19397
19398         Restore support for automake 1.9.6 with autoconf 2.61.
19399         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
19400         Reported by James Youngman <jay@gnu.org>.
19401
19402 2010-02-20  Bruno Haible  <bruno@clisp.org>
19403
19404         Improve *printf warning condition.
19405         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
19406         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
19407         and the function is overridden due to SIGPIPE emulation.
19408
19409 2010-02-20  Bruno Haible  <bruno@clisp.org>
19410
19411         * lib/stdio.in.h: Tweak comments.
19412
19413 2010-02-19  Bruno Haible  <bruno@clisp.org>
19414
19415         Make it easier to find modules. New gnulib-tool option '--find'.
19416         * gnulib-tool: New option --find.
19417         (func_usage): Document it.
19418         (func_sanitize_modulelist): New function, extracted from
19419         func_all_modules.
19420         (func_all_modules): Invoke it.
19421         * doc/gnulib-tool.texi (Which modules?): New node.
19422
19423 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
19424
19425         * lib/sys_select.in.h: Provide select replacement even if
19426         sys/select.h exists on a system, for Interix.
19427
19428 2010-02-18  Jim Meyering  <meyering@redhat.com>
19429
19430         init.sh: don't use $(...) just yet
19431         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
19432         to accommodate e.g., Solaris' /bin/sh.
19433
19434 2010-02-17  Bruno Haible  <bruno@clisp.org>
19435
19436         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
19437         Reported by Ludovic Courtès <ludo@gnu.org>.
19438
19439 2010-02-16  Simon Josefsson  <simon@josefsson.org>
19440
19441         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
19442         linking with -lintl.
19443
19444 2010-02-17  Simon Josefsson  <simon@josefsson.org>
19445
19446         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
19447         if not provided by the system's netdb.h.  Reported by
19448         ludo@gnu.org (Ludovic Courtès).
19449
19450 2010-02-15  Jim Meyering  <meyering@redhat.com>
19451
19452         init.sh: improve portability and efficiency
19453         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
19454         "dummy" in a for loop.
19455         Use '!', not '^' to select the complement of a character set used
19456         in a "case" statement.
19457         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
19458         Suggestions from Eric Blake.
19459
19460         init.sh: automatically accommodate programs with the .exe suffix
19461         Automatically arrange for an invocation of "prog" to execute the
19462         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
19463         may use the simpler "prog", yet still work when built on a system
19464         that requires specifying the added suffix.
19465         Do this by constructing a function named "prog" that invokes
19466         "prog.exe" for each .exe file in selected directories.
19467         * tests/init.sh (find_exe_basenames_): New function.
19468         (create_exe_shim_functions_): New function.
19469         (path_prepend_): Use it.
19470
19471         maint.mk: mark syntax-check sc_*.m rules as .PHONY
19472         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
19473         "make -t syntax-check" doesn't create a ton of sc_*.m files.
19474
19475 2010-02-14  Jim Meyering  <meyering@redhat.com>
19476
19477         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
19478         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
19479         (sc_prohibit_hash_pjw_without_use): New rule.
19480
19481         maint.mk: allow the default upload destination dir to be overridden
19482         * top/maint.mk (upload_dest_dir_): Define with a default that
19483         preserves the status quo.
19484         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
19485         Reported by Peter Simons.
19486
19487         maint.mk: prohibit inclusion of "hash.h" without_use
19488         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
19489
19490 2010-02-10  Jim Meyering  <meyering@redhat.com>
19491
19492         maint.mk: prohibit inclusion of "ignore-value.h" without_use
19493         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
19494
19495 2010-02-09  Eric Blake  <ebb9@byu.net>
19496         and Bruno Haible  <bruno@clisp.org>
19497
19498         obstack-printf-posix: ensure declaration
19499         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
19500         extracted from gl_FUNC_OBSTACK_PRINTF.
19501         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
19502         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
19503         Likewise.
19504         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
19505         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
19506         0.
19507
19508 2010-02-08  Bruno Haible  <bruno@clisp.org>
19509
19510         gnulib-tool: Fix typo in 2010-02-07 commit.
19511         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
19512         Reported by Eric Blake.
19513
19514 2010-02-07  Bruno Haible  <bruno@clisp.org>
19515
19516         gnulib-tool: Fix up caching patches.
19517         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
19518         option --no-cache. Use associative arrays when supported by the shell.
19519         (sed_comments): New variable.
19520         (modcache): Renamed from do_cache.
19521         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
19522         abbreviate unnecessarily.
19523         (have_associative): New variable.
19524         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
19525         way also for ksh and zsh.
19526         (func_init_sed_convert_to_cache_statements): New function, extracted
19527         from func_cache_lookup_module. Add support for associative arrays.
19528         Don't set the c_MODULE_cached variable here. Ignore all lines before
19529         the first field header. Remove only the final newline, not all trailing
19530         newlines. Support empty fields correctly. Limit the use of 'eval' to
19531         assignments.
19532         (func_get_description, func_get_status, func_get_notice,
19533         func_get_applicability, func_get_filelist, func_get_dependencies,
19534         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
19535         func_get_automake_snippet, func_get_include_directive,
19536         func_get_link_directive, func_get_license, func_get_maintainer):
19537         Update documentation. List the unoptimized code first. Add support for
19538         associative arrays. Limit the use of 'eval' to assignments.
19539         (func_get_applicability): Undo stylistic pessimisations.
19540         (func_get_automake_snippet, func_get_include_directive): Reduce code
19541         duplication.
19542         (func_modules_transitive_closure, func_modules_add_dummy,
19543         func_modules_notice, func_modules_to_filelist, func_add_file,
19544         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
19545         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
19546         func_create_testdir, func_create_megatestdir): Update documentation.
19547
19548 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19549
19550         * gnulib-tool (func_cache_lookup_module): Store the module name
19551         belonging to the cache variable; error out if two different
19552         module names map to the same cache variable name.
19553
19554 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19555
19556         gnulib-tool: Make caching optional.
19557         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
19558         Update matching short versions of --no-changelog.
19559         (func_usage): Update.
19560         (sed_extract_cache_prog): Renamed from ...
19561         (sed_extract_prog): ... this; revert to old extraction script.
19562         (func_get_description, func_get_status)
19563         (func_get_notice, func_get_applicability, func_get_filelist)
19564         (func_get_dependencies, func_get_autoconf_early_snippet)
19565         (func_get_autoconf_snippet, func_get_automake_snippet)
19566         (func_get_include_directive, func_get_link_directive)
19567         (func_get_license, func_get_maintainer): If $do_cache is false,
19568         use old, non-caching extraction scripts.
19569         Suggestion by Bruno Haible.
19570
19571 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19572
19573         gnulib-tool: cache module metainformation.
19574         * gnulib-tool (sed_extract_prog): Match newline before each
19575         header, and rewrite header to a shell variable suffix.
19576         (func_cache_var, func_cache_lookup_module): New functions,
19577         to turn a module name into a cache variable prefix, and to
19578         look up and cache module metainformation.
19579         (func_get_description, func_get_status)
19580         (func_get_notice, func_get_applicability, func_get_filelist)
19581         (func_get_dependencies, func_get_autoconf_early_snippet)
19582         (func_get_autoconf_snippet, func_get_automake_snippet)
19583         (func_get_include_directive, func_get_link_directive)
19584         (func_get_license, func_get_maintainer): Use
19585         func_cache_lookup_module.
19586
19587 2010-02-07  Bruno Haible  <bruno@clisp.org>
19588
19589         fnctl: Fix missing dependency.
19590         * modules/fcntl (Depends-on): Add getdtablesize.
19591         Reported by John W. Eaton <jwe@gnu.org>.
19592
19593 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19594
19595         Argp: fix recognition of short alias options.
19596
19597         * lib/argp-parse.c (convert_options): Fix improper use of
19598         `|' between character values.
19599         * tests/test-argp.c (group1_option): New alias option
19600         --read (-r).
19601         (group1_parser): Special handling for 'r'.
19602         (test15): New test case.
19603         (test_fun): Add test15.
19604         * tests/test-argp-2.sh: Update expected --help and --usage
19605         outputs.
19606
19607 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19608
19609         * tests/test-argp.c: Fix indentation.
19610
19611 2010-02-04  Eric Blake  <ebb9@byu.net>
19612
19613         gettimeofday: expose type of second argument
19614         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
19615         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
19616         * tests/test-gettimeofday.c: Use it to silence warning.
19617         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
19618         the issue.
19619
19620 2010-02-03  Jim Meyering  <meyering@redhat.com>
19621
19622         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
19623         * lib/regcomp.c (TYPE_SIGNED): Define.
19624         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
19625
19626         regcomp.c: avoid a new -Wshadow warning
19627         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
19628
19629 2010-02-01  Jim Meyering  <meyering@redhat.com>
19630
19631         removing useless parentheses in cpp #define directives
19632         For motivation, see commit c0221df4, "define STREQ(a,b)
19633         consistently, removing useless parentheses"
19634         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
19635         * lib/mountlist.c (MNT_IGNORE): Likewise.
19636         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
19637
19638 2010-02-01  Eric Blake  <ebb9@byu.net>
19639
19640         sys_time: use link-warning
19641         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
19642         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
19643         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
19644         * modules/sys_time (Depends-on): Add warn-on-use.
19645         (Makefile.am): Always build replacement.
19646         (configure.ac): Update substitutions.
19647         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
19648         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
19649         bother with SYS_TIME_H.
19650         * modules/gettimeofday (configure.ac): Declare indicator.
19651         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
19652         in use.
19653
19654         closein-tests: silence compiler warning
19655         * tests/test-closein.c (main): Ignore fread result.
19656         * modules/closein-tests (Depends-on): Add ignore-value.
19657
19658         tests: silence warning about system return
19659         * tests/test-areadlink-with-size.c (main): Ignore system result.
19660         * tests/test-areadlink.c (main): Likewise.
19661         * tests/test-areadlinkat-with-size.c (main): Likewise.
19662         * tests/test-areadlinkat.c (main): Likewise.
19663         * tests/test-canonicalize-lgpl.c (main): Likewise.
19664         * tests/test-canonicalize.c (main): Likewise.
19665         * tests/test-chown.c (main): Likewise.
19666         * tests/test-fchownat.c (main): Likewise.
19667         * tests/test-fdutimensat.c (main): Likewise.
19668         * tests/test-fstatat.c (main): Likewise.
19669         * tests/test-futimens.c (main): Likewise.
19670         * tests/test-lchown.c (main): Likewise.
19671         * tests/test-link.c (main): Likewise.
19672         * tests/test-linkat.c (main): Likewise.
19673         * tests/test-lstat.c (main): Likewise.
19674         * tests/test-mkdir.c (main): Likewise.
19675         * tests/test-mkdirat.c (main): Likewise.
19676         * tests/test-mkfifo.c (main): Likewise.
19677         * tests/test-mkfifoat.c (main): Likewise.
19678         * tests/test-mknod.c (main): Likewise.
19679         * tests/test-readlink.c (main): Likewise.
19680         * tests/test-remove.c (main): Likewise.
19681         * tests/test-rename.c (main): Likewise.
19682         * tests/test-renameat.c (main): Likewise.
19683         * tests/test-rmdir.c (main): Likewise.
19684         * tests/test-symlink.c (main): Likewise.
19685         * tests/test-symlinkat.c (main): Likewise.
19686         * tests/test-unlink.c (main): Likewise.
19687         * tests/test-unlinkat.c (main): Likewise.
19688         * tests/test-utimens.c (main): Likewise.
19689         * tests/test-utimensat.c (main): Likewise.
19690         * modules/areadlink-tests (Depends-on): Add ignore-value.
19691         * modules/areadlink-with-size-tests (Depends-on): Likewise.
19692         * modules/areadlinkat-tests (Depends-on): Likewise.
19693         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
19694         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19695         * modules/canonicalize-tests (Depends-on): Likewise.
19696         * modules/chown-tests (Depends-on): Likewise.
19697         * modules/fdutimensat-tests (Depends-on): Likewise.
19698         * modules/futimens-tests (Depends-on): Likewise.
19699         * modules/lchown-tests (Depends-on): Likewise.
19700         * modules/link-tests (Depends-on): Likewise.
19701         * modules/linkat-tests (Depends-on): Likewise.
19702         * modules/lstat-tests (Depends-on): Likewise.
19703         * modules/mkdir-tests (Depends-on): Likewise.
19704         * modules/mkfifo-tests (Depends-on): Likewise.
19705         * modules/mkfifoat-tests (Depends-on): Likewise.
19706         * modules/mknod-tests (Depends-on): Likewise.
19707         * modules/openat-tests (Depends-on): Likewise.
19708         * modules/readlink-tests (Depends-on): Likewise.
19709         * modules/remove-tests (Depends-on): Likewise.
19710         * modules/rename-tests (Depends-on): Likewise.
19711         * modules/renameat-tests (Depends-on): Likewise.
19712         * modules/rmdir-tests (Depends-on): Likewise.
19713         * modules/symlink-tests (Depends-on): Likewise.
19714         * modules/symlinkat-tests (Depends-on): Likewise.
19715         * modules/unlink-tests (Depends-on): Likewise.
19716         * modules/utimens-tests (Depends-on): Likewise.
19717         * modules/utimensat-tests (Depends-on): Likewise.
19718
19719 2010-01-31  Bruno Haible  <bruno@clisp.org>
19720
19721         Perform the same test for many <math.h> functions.
19722         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
19723         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
19724         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
19725         of gl_MATHFUNC.
19726         * modules/acos (configure.ac): Likewise.
19727         * modules/asin (configure.ac): Likewise.
19728         * modules/atan (configure.ac): Likewise.
19729         * modules/atan2 (configure.ac): Likewise.
19730         * modules/cbrt (configure.ac): Likewise.
19731         * modules/copysign (configure.ac): Likewise.
19732         * modules/cos (configure.ac): Likewise.
19733         * modules/cosh (configure.ac): Likewise.
19734         * modules/erf (configure.ac): Likewise.
19735         * modules/erfc (configure.ac): Likewise.
19736         * modules/exp (configure.ac): Likewise.
19737         * modules/fmod (configure.ac): Likewise.
19738         * modules/hypot (configure.ac): Likewise.
19739         * modules/j0 (configure.ac): Likewise.
19740         * modules/j1 (configure.ac): Likewise.
19741         * modules/jn (configure.ac): Likewise.
19742         * modules/lgamma (configure.ac): Likewise.
19743         * modules/log (configure.ac): Likewise.
19744         * modules/log10 (configure.ac): Likewise.
19745         * modules/log1p (configure.ac): Likewise.
19746         * modules/pow (configure.ac): Likewise.
19747         * modules/remainder (configure.ac): Likewise.
19748         * modules/sin (configure.ac): Likewise.
19749         * modules/sinh (configure.ac): Likewise.
19750         * modules/tan (configure.ac): Likewise.
19751         * modules/tanh (configure.ac): Likewise.
19752         * modules/y0 (configure.ac): Likewise.
19753         * modules/y1 (configure.ac): Likewise.
19754         * modules/yn (configure.ac): Likewise.
19755         Suggested by Paolo Bonzini.
19756
19757 2010-01-31  Bruno Haible  <bruno@clisp.org>
19758
19759         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
19760
19761 2010-01-31  Bruno Haible  <bruno@clisp.org>
19762
19763         Work around getdelim() bug on FreeBSD 8.0.
19764         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
19765         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
19766         not work.
19767         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
19768         is 1.
19769         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
19770         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
19771         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
19772         a non-zero size.
19773         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
19774
19775 2010-01-31  Bruno Haible  <bruno@clisp.org>
19776
19777         Work around getline() bug on FreeBSD 8.0.
19778         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
19779         and a non-zero size.
19780         * tests/test-getline.c (main): Likewise.
19781         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
19782         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
19783
19784 2010-01-28  Eric Blake  <ebb9@byu.net>
19785
19786         regex: fix build failure
19787         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
19788         platforms.
19789
19790 2010-01-28  Jim Meyering  <meyering@redhat.com>
19791
19792         regex: do not ignore memory allocation failure
19793         * lib/regex_internal.c (create_cd_newstate): Detect
19794         re_node_set_init_copy failure.   Extracted from glibc commit
19795         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19796
19797         regex: sync more white-space changes from libc
19798         * lib/regex_internal.c: White-space only changes.
19799         * lib/regexec.c: Likewise.
19800
19801         regex: add many uses of __attribute_warn_unused_result__
19802         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
19803         * lib/regexec.c: Likewise.
19804         Extracted from a messy glibc commit.
19805
19806         regcomp.c: spelling and merge-artifact from glibc
19807         * lib/regcomp.c: Merge remainder of glibc's
19808         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19809
19810         regcomp.c: sync white-space changes from glibc
19811         * lib/regcomp.c: Merge to accommodate white space
19812         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19813
19814         regcomp.c: do not ignore internal return values
19815         * lib/regcomp.c: Do not ignore internal return values.
19816         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
19817         but without its white-space changes and spelling fixes.
19818
19819         regex_internal.h: define __attribute_warn_unused_result__
19820         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
19821
19822         maint: add a syntax-check rule to check for vulnerable Makefile.in
19823         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
19824
19825 2010-01-27  Jim Meyering  <meyering@redhat.com>
19826
19827         ncftpput-ftp: clean up spaces
19828         * build-aux/ncftpput-ftp: Make Copyright line consistent.
19829         Remove trailing blanks.
19830
19831 2010-01-27  Simon Josefsson  <simon@josefsson.org>
19832
19833         * build-aux/git-version-gen: Fix copyright statement.
19834         * build-aux/gnupload: Likewise.
19835         * tests/test-arcfour.c: Likewise.
19836         * tests/test-arctwo.c: Likewise.
19837         * tests/test-count-one-bits.c: Likewise.
19838         * tests/test-crc.c: Likewise.
19839         * tests/test-des.c: Likewise.
19840         * tests/test-gc-arcfour.c: Likewise.
19841         * tests/test-gc-arctwo.c: Likewise.
19842         * tests/test-gc-des.c: Likewise.
19843         * tests/test-gc-hmac-md5.c: Likewise.
19844         * tests/test-gc-hmac-sha1.c: Likewise.
19845         * tests/test-gc-md2.c: Likewise.
19846         * tests/test-gc-md4.c: Likewise.
19847         * tests/test-gc-md5.c: Likewise.
19848         * tests/test-gc-pbkdf2-sha1.c: Likewise.
19849         * tests/test-gc-rijndael.c: Likewise.
19850         * tests/test-gc-sha1.c: Likewise.
19851         * tests/test-gc.c: Likewise.
19852         * tests/test-gethostname.c: Likewise.
19853         * tests/test-gettimeofday.c: Likewise.
19854         * tests/test-hash.c: Likewise.
19855         * tests/test-hmac-md5.c: Likewise.
19856         * tests/test-hmac-sha1.c: Likewise.
19857         * tests/test-md2.c: Likewise.
19858         * tests/test-md4.c: Likewise.
19859         * tests/test-md5.c: Likewise.
19860         * tests/test-memchr.c: Likewise.
19861         * tests/test-memchr2.c: Likewise.
19862         * tests/test-memcmp.c: Likewise.
19863         * tests/test-memmem.c: Likewise.
19864         * tests/test-memrchr.c: Likewise.
19865         * tests/test-rawmemchr.c: Likewise.
19866         * tests/test-read-file.c: Likewise.
19867         * tests/test-rijndael.c: Likewise.
19868         * tests/test-sockets.c: Likewise.
19869         * tests/test-strchrnul.c: Likewise.
19870         * tests/test-strstr.c: Likewise.
19871         * tests/test-strtod.c: Likewise.
19872         * build-aux/ncftpput-ftp: Likewise.
19873
19874 2010-01-26  Eric Blake  <ebb9@byu.net>
19875
19876         ignore-value: update recommended header name
19877         * modules/ignore-value (Include): Only use <> for headers that
19878         exist in glibc.
19879
19880 2010-01-26  Jim Meyering  <meyering@redhat.com>
19881
19882         test-userspec.c: avoid compiler warnings
19883         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
19884         and "initialization discards qualifiers..." warnings.
19885         Put the first "uid" in its own scope, and make char* members "const".
19886
19887 2010-01-25  Bruno Haible  <bruno@clisp.org>
19888
19889         gnulib-tool: Make warning diagnostics consistent.
19890         * gnulib-tool (func_warning): New function.
19891         Use it everywhere where gnulib-tool produces output to stderr and it is
19892         not a fatal error.
19893
19894 2010-01-25  Bruno Haible  <bruno@clisp.org>
19895
19896         Fix test dependencies.
19897         * modules/xstrtol-tests (Depends-on): Add inttypes.
19898         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
19899
19900 2010-01-25 Pádraig Brady <P@draigBrady.com>
19901
19902         syntax-check: detect incorrect boolean macro values in config.h
19903         * modules/maintainer-makefile (configure.ac): Parameterize the location
19904         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
19905         The logic is from Eric Blake and the location indicated by Jim Meyering.
19906         Note the more natural CONFIG_HEADER name is prohibited by automake
19907         for backwards compatibility reasons.
19908         * top/maint.mk (sc_Wundef_boolean): New rule.
19909
19910 2010-01-25  Jim Meyering  <meyering@redhat.com>
19911
19912         bootstrap: detect MacOS 10.6's shasum, too
19913         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
19914         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
19915
19916 2010-01-23  Jim Meyering  <meyering@redhat.com>
19917
19918         xstrtoll: new module
19919         * modules/xstrtoll: New file.
19920         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
19921         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
19922         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
19923         ./configure fails if you use this module and lack "long long".
19924         * modules/xstrtoll-tests: New module.
19925         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
19926         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
19927         new init.sh-based test framework.
19928
19929 2010-01-24  Bruno Haible  <bruno@clisp.org>
19930
19931         Tests for module 'yn'.
19932         * modules/yn-tests: New file.
19933         * tests/test-yn.c: New file.
19934
19935         Tests for module 'y1'.
19936         * modules/y1-tests: New file.
19937         * tests/test-y1.c: New file.
19938
19939         Tests for module 'y0'.
19940         * modules/y0-tests: New file.
19941         * tests/test-y0.c: New file.
19942
19943         Tests for module 'tanh'.
19944         * modules/tanh-tests: New file.
19945         * tests/test-tanh.c: New file.
19946
19947         Tests for module 'tan'.
19948         * modules/tan-tests: New file.
19949         * tests/test-tan.c: New file.
19950
19951         Tests for module 'sqrt'.
19952         * modules/sqrt-tests: New file.
19953         * tests/test-sqrt.c: New file.
19954
19955         Tests for module 'sinh'.
19956         * modules/sinh-tests: New file.
19957         * tests/test-sinh.c: New file.
19958
19959         Tests for module 'sin'.
19960         * modules/sin-tests: New file.
19961         * tests/test-sin.c: New file.
19962
19963         Tests for module 'rint'.
19964         * modules/rint-tests: New file.
19965         * tests/test-rint.c: New file.
19966
19967         Tests for module 'remainder'.
19968         * modules/remainder-tests: New file.
19969         * tests/test-remainder.c: New file.
19970
19971         Tests for module 'pow'.
19972         * modules/pow-tests: New file.
19973         * tests/test-pow.c: New file.
19974
19975         Tests for module 'nextafter'.
19976         * modules/nextafter-tests: New file.
19977         * tests/test-nextafter.c: New file.
19978
19979         Tests for module 'modf'.
19980         * modules/modf-tests: New file.
19981         * tests/test-modf.c: New file.
19982
19983         Tests for module 'logb'.
19984         * modules/logb-tests: New file.
19985         * tests/test-logb.c: New file.
19986
19987         Tests for module 'log1p'.
19988         * modules/log1p-tests: New file.
19989         * tests/test-log1p.c: New file.
19990
19991         Tests for module 'log10'.
19992         * modules/log10-tests: New file.
19993         * tests/test-log10.c: New file.
19994
19995         Tests for module 'log'.
19996         * modules/log-tests: New file.
19997         * tests/test-log.c: New file.
19998
19999         Tests for module 'lgamma'.
20000         * modules/lgamma-tests: New file.
20001         * tests/test-lgamma.c: New file.
20002
20003         Tests for module 'ldexp'.
20004         * modules/ldexp-tests: New file.
20005         * tests/test-ldexp.c: New file.
20006
20007         Tests for module 'jn'.
20008         * modules/jn-tests: New file.
20009         * tests/test-jn.c: New file.
20010
20011         Tests for module 'j1'.
20012         * modules/j1-tests: New file.
20013         * tests/test-j1.c: New file.
20014
20015         Tests for module 'j0'.
20016         * modules/j0-tests: New file.
20017         * tests/test-j0.c: New file.
20018
20019         Tests for module 'hypot'.
20020         * modules/hypot-tests: New file.
20021         * tests/test-hypot.c: New file.
20022
20023         Tests for module 'fmod'.
20024         * modules/fmod-tests: New file.
20025         * tests/test-fmod.c: New file.
20026
20027         Tests for module 'fabs'.
20028         * modules/fabs-tests: New file.
20029         * tests/test-fabs.c: New file.
20030
20031         Tests for module 'exp'.
20032         * modules/exp-tests: New file.
20033         * tests/test-exp.c: New file.
20034
20035         Tests for module 'erfc'.
20036         * modules/erfc-tests: New file.
20037         * tests/test-erfc.c: New file.
20038
20039         Tests for module 'erf'.
20040         * modules/erf-tests: New file.
20041         * tests/test-erf.c: New file.
20042
20043         Tests for module 'cosh'.
20044         * modules/cosh-tests: New file.
20045         * tests/test-cosh.c: New file.
20046
20047         Tests for module 'cos'.
20048         * modules/cos-tests: New file.
20049         * tests/test-cos.c: New file.
20050
20051         Tests for module 'copysign'.
20052         * modules/copysign-tests: New file.
20053         * tests/test-copysign.c: New file.
20054
20055         Tests for module 'cbrt'.
20056         * modules/cbrt-tests: New file.
20057         * tests/test-cbrt.c: New file.
20058
20059         Tests for module 'atan2'.
20060         * modules/atan2-tests: New file.
20061         * tests/test-atan2.c: New file.
20062
20063         Tests for module 'atan'.
20064         * modules/atan-tests: New file.
20065         * tests/test-atan.c: New file.
20066
20067         Tests for module 'asin'.
20068         * modules/asin-tests: New file.
20069         * tests/test-asin.c: New file.
20070
20071         Tests for module 'acos'.
20072         * modules/acos-tests: New file.
20073         * tests/test-acos.c: New file.
20074
20075 2010-01-24  Bruno Haible  <bruno@clisp.org>
20076
20077         Fix tests for common <math.h> functions.
20078         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
20079         code snippet that references the function pointer, rather than merely
20080         calling the function. Substitute the FUNC_LIBM variable.
20081         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
20082         * modules/acos (configure.ac): Likewise.
20083         * modules/asin (configure.ac): Likewise.
20084         * modules/atan (configure.ac): Likewise.
20085         * modules/atan2 (configure.ac): Likewise.
20086         * modules/cbrt (configure.ac): Likewise.
20087         * modules/copysign (configure.ac): Likewise.
20088         * modules/cos (configure.ac): Likewise.
20089         * modules/cosh (configure.ac): Likewise.
20090         * modules/erf (configure.ac): Likewise.
20091         * modules/erfc (configure.ac): Likewise.
20092         * modules/exp (configure.ac): Likewise.
20093         * modules/fabs (configure.ac): Likewise.
20094         * modules/fmod (configure.ac): Likewise.
20095         * modules/hypot (configure.ac): Likewise.
20096         * modules/j0 (configure.ac): Likewise.
20097         * modules/j1 (configure.ac): Likewise.
20098         * modules/jn (configure.ac): Likewise.
20099         * modules/ldexp (configure.ac): Likewise.
20100         * modules/lgamma (configure.ac): Likewise.
20101         * modules/log (configure.ac): Likewise.
20102         * modules/log10 (configure.ac): Likewise.
20103         * modules/log1p (configure.ac): Likewise.
20104         * modules/logb (configure.ac): Likewise.
20105         * modules/modf (configure.ac): Likewise.
20106         * modules/nextafter (configure.ac): Likewise.
20107         * modules/pow (configure.ac): Likewise.
20108         * modules/remainder (configure.ac): Likewise.
20109         * modules/rint (configure.ac): Likewise.
20110         * modules/sin (configure.ac): Likewise.
20111         * modules/sinh (configure.ac): Likewise.
20112         * modules/tan (configure.ac): Likewise.
20113         * modules/tanh (configure.ac): Likewise.
20114         * modules/y0 (configure.ac): Likewise.
20115         * modules/y1 (configure.ac): Likewise.
20116         * modules/yn (configure.ac): Likewise.
20117
20118 2010-01-24  Bruno Haible  <bruno@clisp.org>
20119
20120         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
20121         * tests/test-acosl.c (x): New variable.
20122         (main): Store argument in x and fetch it from x.
20123         * tests/test-asinl.c (x): New variable.
20124         (main): Store argument in x and fetch it from x.
20125         * tests/test-atanl.c (x): New variable.
20126         (main): Store argument in x and fetch it from x.
20127         * tests/test-cosl.c (x): New variable.
20128         (main): Store argument in x and fetch it from x.
20129         * tests/test-expl.c (x): New variable.
20130         (main): Store argument in x and fetch it from x.
20131         * tests/test-logl.c (x): New variable.
20132         (main): Store argument in x and fetch it from x.
20133         * tests/test-sinl.c (x): New variable.
20134         (main): Store argument in x and fetch it from x.
20135         * tests/test-sqrtl.c (x): New variable.
20136         (main): Store argument in x and fetch it from x.
20137         * tests/test-tanl.c (x): New variable.
20138         (main): Store argument in x and fetch it from x.
20139
20140 2010-01-24  Bruno Haible  <bruno@clisp.org>
20141
20142         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
20143         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
20144         assignments to the initial TESTS_ENVIRONMENT.
20145         * doc/gnulib.texi (Unit test modules): Document it.
20146         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
20147         TESTS_ENVIRONMENT.
20148         * modules/btowc-tests (Makefile.am): Likewise.
20149         * modules/c-stack-tests (Makefile.am): Likewise.
20150         * modules/c-strcase-tests (Makefile.am): Likewise.
20151         * modules/copy-file-tests (Makefile.am): Likewise.
20152         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
20153         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
20154         * modules/mbrtowc-tests (Makefile.am): Likewise.
20155         * modules/mbscasecmp-tests (Makefile.am): Likewise.
20156         * modules/mbscasestr-tests (Makefile.am): Likewise.
20157         * modules/mbschr-tests (Makefile.am): Likewise.
20158         * modules/mbscspn-tests (Makefile.am): Likewise.
20159         * modules/mbsinit-tests (Makefile.am): Likewise.
20160         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
20161         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
20162         * modules/mbspbrk-tests (Makefile.am): Likewise.
20163         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
20164         * modules/mbsrchr-tests (Makefile.am): Likewise.
20165         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
20166         * modules/mbsspn-tests (Makefile.am): Likewise.
20167         * modules/mbsstr-tests (Makefile.am): Likewise.
20168         * modules/nl_langinfo-tests (Makefile.am): Likewise.
20169         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
20170         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
20171         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
20172         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
20173         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
20174         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
20175         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
20176         * modules/wcrtomb-tests (Makefile.am): Likewise.
20177         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
20178         * modules/wcsrtombs-tests (Makefile.am): Likewise.
20179         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
20180         assignments from TESTS_ENVIRONMENT.
20181         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
20182         augmentation.
20183         * modules/argp-version-etc-tests (Makefile.am): Likewise.
20184         * modules/atexit-tests (Makefile.am): Likewise.
20185         * modules/binary-io-tests (Makefile.am): Likewise.
20186         * modules/closein-tests (Makefile.am): Likewise.
20187         * modules/dprintf-posix-tests (Makefile.am): Likewise.
20188         * modules/exclude-tests (Makefile.am): Likewise.
20189         * modules/fflush-tests (Makefile.am): Likewise.
20190         * modules/fpending-tests (Makefile.am): Likewise.
20191         * modules/fprintf-posix-tests (Makefile.am): Likewise.
20192         * modules/freadahead-tests (Makefile.am): Likewise.
20193         * modules/freadptr-tests (Makefile.am): Likewise.
20194         * modules/freadseek-tests (Makefile.am): Likewise.
20195         * modules/fseek-tests (Makefile.am): Likewise.
20196         * modules/fseeko-tests (Makefile.am): Likewise.
20197         * modules/ftell-tests (Makefile.am): Likewise.
20198         * modules/ftello-tests (Makefile.am): Likewise.
20199         * modules/idpriv-drop-tests (Makefile.am): Likewise.
20200         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
20201         * modules/lseek-tests (Makefile.am): Likewise.
20202         * modules/parse-duration-tests (Makefile.am): Likewise.
20203         * modules/perror-tests (Makefile.am): Likewise.
20204         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
20205         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
20206         * modules/pipe-tests (Makefile.am): Likewise.
20207         * modules/pread-tests (Makefile.am): Likewise.
20208         * modules/printf-posix-tests (Makefile.am): Likewise.
20209         * modules/select-tests (Makefile.am): Likewise.
20210         * modules/sigpipe-tests (Makefile.am): Likewise.
20211         * modules/tsearch-tests (Makefile.am): Likewise.
20212         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
20213         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
20214         * modules/uniname/uniname-tests (Makefile.am): Likewise.
20215         * modules/uniwidth/width-tests (Makefile.am): Likewise.
20216         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
20217         * modules/version-etc-tests (Makefile.am): Likewise.
20218         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
20219         * modules/vprintf-posix-tests (Makefile.am): Likewise.
20220         * modules/xalloc-die-tests (Makefile.am): Likewise.
20221         * modules/xprintf-posix-tests (Makefile.am): Likewise.
20222         * modules/xstrtoimax-tests (Makefile.am): Likewise.
20223         * modules/xstrtol-tests (Makefile.am): Likewise.
20224         * modules/xstrtoumax-tests (Makefile.am): Likewise.
20225         * modules/yesno-tests (Makefile.am): Likewise.
20226         Suggested by Jim Meyering.
20227
20228 2010-01-24  Bruno Haible  <bruno@clisp.org>
20229
20230         More documentation.
20231         * doc/gnulib.texi (Writing modules): New chapter.
20232         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
20233         the new chapter.
20234
20235 2010-01-24  Jim Meyering  <meyering@redhat.com>
20236
20237         maint.mk: do not prepend "./" after filtering
20238         * top/maint.mk (_prepend_srcdir_prefix): New variable
20239         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
20240         "./" when $(srcdir) is ".".
20241
20242         define STREQ(a,b) consistently, removing useless parentheses
20243         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
20244         since the only risk is that "a" or "b" contains an unparenthesized
20245         comma, but if either did that, STREQ would have 3 or more arguments.
20246         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
20247         * lib/fts.c (STREQ): Remove unnecessary parentheses.
20248         * lib/hash-triple.c (STREQ): Likewise.
20249         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
20250         * lib/getugroups.c (STREQ): Likewise.
20251
20252 2010-01-23  Jim Meyering  <meyering@redhat.com>
20253
20254         maint.mk: fix syntax-check in a non-srcdir build directory
20255         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
20256         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
20257
20258 2010-01-22  Jim Meyering  <meyering@redhat.com>
20259
20260         userspec: add unit tests
20261         * tests/test-userspec.c: New file.
20262         * modules/userspec-tests: Likewise.
20263
20264 2010-01-21  Jim Meyering  <meyering@redhat.com>
20265
20266         maint.mk: handle source file names containing "." robustly
20267         * top/maint.mk (_dot_escaped_srcdir): Define.
20268         (VC_LIST): Use it in LHS of sed substitution.
20269
20270 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
20271
20272         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
20273         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
20274         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
20275         from a non-srcdir build.
20276
20277 2010-01-20  Eric Blake  <ebb9@byu.net>
20278
20279         warn-on-use: use instead of link-warning
20280         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
20281         * modules/unistd (Depends-on, Makefile.am): Likewise.
20282         * modules/arpa_inet (Depends-on): Replace link-warning with
20283         warn-on-use.
20284         (Makefile.am): Update rules accordingly.
20285         * modules/ctype (Depends-on, Makefile.am): Likewise.
20286         * modules/dirent (Depends-on, Makefile.am): Likewise.
20287         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
20288         * modules/inttypes (Depends-on, Makefile.am): Likewise.
20289         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20290         * modules/locale (Depends-on, Makefile.am): Likewise.
20291         * modules/math (Depends-on, Makefile.am): Likewise.
20292         * modules/search (Depends-on, Makefile.am): Likewise.
20293         * modules/signal (Depends-on, Makefile.am): Likewise.
20294         * modules/spawn (Depends-on, Makefile.am): Likewise.
20295         * modules/stdlib (Depends-on, Makefile.am): Likewise.
20296         * modules/string (Depends-on, Makefile.am): Likewise.
20297         * modules/strings (Depends-on, Makefile.am): Likewise.
20298         * modules/sys_file (Depends-on, Makefile.am): Likewise.
20299         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
20300         * modules/sys_select (Depends-on, Makefile.am): Likewise.
20301         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
20302         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
20303         * modules/sys_times (Depends-on, Makefile.am): Likewise.
20304         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20305         * modules/wchar (Depends-on, Makefile.am): Likewise.
20306         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
20307         should be poisoned.
20308         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
20309         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
20310         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
20311         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20312         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20313         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20314         * m4/math_h.m4 (gl_MATH_H): Likewise.
20315         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20316         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
20317         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20318         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
20319         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
20320         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
20321         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
20322         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
20323         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20324         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20325         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20326         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
20327         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20328         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20329         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20330         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
20331         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
20332         GL_LINK_WARNING.
20333         * lib/ctype.in.h: Likewise.
20334         * lib/dirent.in.h: Likewise.
20335         * lib/fcntl.in.h: Likewise.
20336         * lib/inttypes.in.h: Likewise.
20337         * lib/langinfo.in.h: Likewise.
20338         * lib/locale.in.h: Likewise.
20339         * lib/math.in.h: Likewise.
20340         * lib/search.in.h: Likewise.
20341         * lib/signal.in.h: Likewise.
20342         * lib/spawn.in.h: Likewise.
20343         * lib/stdio.in.h: Likewise.
20344         * lib/stdlib.in.h: Likewise.
20345         * lib/string.in.h: Likewise.
20346         * lib/strings.in.h: Likewise.
20347         * lib/sys_file.in.h: Likewise.
20348         * lib/sys_ioctl.in.h: Likewise.
20349         * lib/sys_select.in.h: Likewise.
20350         * lib/sys_socket.in.h: Likewise.
20351         * lib/sys_stat.in.h: Likewise.
20352         * lib/sys_times.in.h: Likewise.
20353         * lib/sys_utsname.in.h: Likewise.
20354         * lib/unistd.in.h: Likewise.
20355         * lib/wchar.in.h: Likewise.
20356
20357 2010-01-20  Bruno Haible  <bruno@clisp.org>
20358
20359         Avoid duplicate -lm.
20360         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
20361         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
20362         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
20363         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
20364         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
20365         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
20366         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
20367         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
20368         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
20369         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
20370         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
20371         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20372         Reported by Paolo Bonzini.
20373
20374 2010-01-19  Bruno Haible  <bruno@clisp.org>
20375
20376         langinfo, nl_langinfo: Relicense under LGPLv2+.
20377         * modules/langinfo (License): Change to LGPLv2+.
20378         * modules/nl_langinfo (License): Likewise.
20379         Patch by David Lutterkort <lutter@redhat.com>.
20380
20381 2010-01-19  Bruno Haible  <bruno@clisp.org>
20382
20383         Avoid compilation error with cc on OSF/1 5.1.
20384         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
20385         statement, not before.
20386         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20387
20388 2010-01-18  Bruno Haible  <bruno@clisp.org>
20389
20390         Avoid a link error due to the __printf__ symbol.
20391         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
20392         and 2.6.x.
20393         (__format__, __printf__): Remove definitions.
20394         * lib/argp-fmtstream.h: Likewise.
20395         * lib/argp.h: Likewise.
20396         * lib/error.h: Likewise.
20397         * lib/vasnprintf.h: Likewise.
20398         * lib/xprintf.h: Likewise.
20399         * lib/xvasprintf.h: Likewise.
20400         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20401
20402 2010-01-18  Bruno Haible  <bruno@clisp.org>
20403
20404         Tests for module 'tanl'.
20405         * modules/tanl-tests: New file.
20406         * tests/test-tanl.c: New file.
20407
20408         Tests for module 'sqrtl'.
20409         * modules/sqrtl-tests: New file.
20410         * tests/test-sqrtl.c: New file.
20411
20412         Tests for module 'sinl'.
20413         * modules/sinl-tests: New file.
20414         * tests/test-sinl.c: New file.
20415
20416         Tests for module 'logl'.
20417         * modules/logl-tests: New file.
20418         * tests/test-logl.c: New file.
20419
20420         Tests for module 'expl'.
20421         * modules/expl-tests: New file.
20422         * tests/test-expl.c: New file.
20423
20424         Tests for module 'cosl'.
20425         * modules/cosl-tests: New file.
20426         * tests/test-cosl.c: New file.
20427
20428         Tests for module 'atanl'.
20429         * modules/atanl-tests: New file.
20430         * tests/test-atanl.c: New file.
20431
20432         Tests for module 'asinl'.
20433         * modules/asinl-tests: New file.
20434         * tests/test-asinl.c: New file.
20435
20436         Tests for module 'acosl'.
20437         * modules/acosl-tests: New file.
20438         * tests/test-acosl.c: New file.
20439
20440         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20441         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
20442         tanl): Use the standard gnulib idiom.
20443         * lib/cosl.c: Don't include trigl.c and sincosl.c.
20444         * lib/sinl.c: Likewise.
20445         * lib/tanl.c: Don't include trigl.c.
20446         (kernel_tanl): Make static.
20447         * lib/sincosl.c: Include trigl.h first.
20448         * lib/trigl.c: Likewise.
20449         * m4/acosl.m4: New file.
20450         * m4/asinl.m4: New file.
20451         * m4/atanl.m4: New file.
20452         * m4/cosl.m4: New file.
20453         * m4/expl.m4: New file.
20454         * m4/logl.m4: New file.
20455         * m4/sinl.m4: New file.
20456         * m4/sqrtl.m4: New file.
20457         * m4/tanl.m4: New file.
20458         * m4/mathl.m4: Remove file.
20459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
20460         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20461         Don't initialize GNULIB_MATHL.
20462         * modules/acosl: New file.
20463         * modules/asinl: New file.
20464         * modules/atanl: New file.
20465         * modules/cosl: New file.
20466         * modules/expl: New file.
20467         * modules/logl: New file.
20468         * modules/sinl: New file.
20469         * modules/sqrtl: New file.
20470         * modules/tanl: New file.
20471         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
20472         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
20473         substitute GNULIB_MATHL.
20474         * modules/mathl: Rewritten.
20475         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
20476         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
20477         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
20478         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
20479         * doc/posix-functions/expl.texi: Mention the 'expl' module.
20480         * doc/posix-functions/logl.texi: Mention the 'logl' module.
20481         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
20482         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
20483         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
20484
20485 2010-01-18  Bruno Haible  <bruno@clisp.org>
20486
20487         sqrt: Make gl_FUNC_SQRT requirable.
20488         * m4/sqrt.m4: New file.
20489         * modules/sqrt (Files): Add it.
20490         (configure.ac): Invoke gl_FUNC_SQRT.
20491
20492 2010-01-18  Bruno Haible  <bruno@clisp.org>
20493
20494         New modules for common <math.h> functions.
20495         * m4/mathfunc.m4: New file.
20496         * modules/acos: New file.
20497         * modules/asin: New file.
20498         * modules/atan: New file.
20499         * modules/atan2: New file.
20500         * modules/cbrt: New file.
20501         * modules/copysign: New file.
20502         * modules/cos: New file.
20503         * modules/cosh: New file.
20504         * modules/erf: New file.
20505         * modules/erfc: New file.
20506         * modules/exp: New file.
20507         * modules/fabs: New file.
20508         * modules/fmod: New file.
20509         * modules/hypot: New file.
20510         * modules/j0: New file.
20511         * modules/j1: New file.
20512         * modules/jn: New file.
20513         * modules/ldexp: New file.
20514         * modules/lgamma: New file.
20515         * modules/log: New file.
20516         * modules/log10: New file.
20517         * modules/log1p: New file.
20518         * modules/logb: New file.
20519         * modules/modf: New file.
20520         * modules/nextafter: New file.
20521         * modules/pow: New file.
20522         * modules/remainder: New file.
20523         * modules/rint: New file.
20524         * modules/sin: New file.
20525         * modules/sinh: New file.
20526         * modules/sqrt: New file.
20527         * modules/tan: New file.
20528         * modules/tanh: New file.
20529         * modules/y0: New file.
20530         * modules/y1: New file.
20531         * modules/yn: New file.
20532         * doc/posix-functions/acos.texi: Mention the 'acos' module.
20533         * doc/posix-functions/asin.texi: Mention the 'asin' module.
20534         * doc/posix-functions/atan.texi: Mention the 'atan' module.
20535         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
20536         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
20537         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
20538         * doc/posix-functions/cos.texi: Mention the 'cos' module.
20539         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
20540         * doc/posix-functions/erf.texi: Mention the 'erf' module.
20541         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
20542         * doc/posix-functions/exp.texi: Mention the 'exp' module.
20543         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
20544         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
20545         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
20546         * doc/posix-functions/j0.texi: Mention the 'j0' module.
20547         * doc/posix-functions/j1.texi: Mention the 'j1' module.
20548         * doc/posix-functions/jn.texi: Mention the 'jn' module.
20549         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
20550         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
20551         * doc/posix-functions/log.texi: Mention the 'log' module.
20552         * doc/posix-functions/log10.texi: Mention the 'log10' module.
20553         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
20554         * doc/posix-functions/logb.texi: Mention the 'logb' module.
20555         * doc/posix-functions/modf.texi: Mention the 'modf' module.
20556         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
20557         * doc/posix-functions/pow.texi: Mention the 'pow' module.
20558         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
20559         * doc/posix-functions/rint.texi: Mention the 'rint' module.
20560         * doc/posix-functions/sin.texi: Mention the 'sin' module.
20561         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
20562         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
20563         * doc/posix-functions/tan.texi: Mention the 'tan' module.
20564         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
20565         * doc/posix-functions/y0.texi: Mention the 'y0' module.
20566         * doc/posix-functions/y1.texi: Mention the 'y1' module.
20567         * doc/posix-functions/yn.texi: Mention the 'yn' module.
20568
20569 2010-01-18  Jim Meyering  <meyering@redhat.com>
20570
20571         ignore-value: relax license to LGPLv2+
20572         * modules/ignore-value (License): Relax to LGPLv2+.
20573
20574         getdate: don't leak when TZ contains two or more '"'s
20575         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
20576         double quote in TZ after the first one.
20577
20578         readtokens: do not leak internal token_lengths buffer
20579         * lib/readtokens.c (readtokens): Free the local, lengths,
20580         when the supplied "token_lengths" parameter is NULL.
20581
20582 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20583
20584         Fix a couple of missing LIBTHREAD link failures on AIX.
20585         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
20586         $(LIBTHREAD).
20587         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
20588
20589         Link test-poll against INET_PTON_LIB.
20590         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
20591         for inet_pton on Solaris 10.
20592
20593 2010-01-17  Bruno Haible  <bruno@clisp.org>
20594
20595         unistdio/*-sprintf: Fix typo in module description.
20596         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
20597         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
20598         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
20599         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
20600         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
20601         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
20602         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
20603         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20604
20605 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20606
20607         gnulib-tool: fix filelist for AIX, HP-UX ksh.
20608         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
20609         variables in shell case patterns, for AIX and HP-UX ksh.
20610
20611         Split large sed scripts, for HP-UX sed.
20612         * modules/stdio: Split sed scripts around 50 sed commands,
20613         to avoid HP-UX limit of 99 commands, in the near future.
20614         * modules/string: Likewise.
20615         * modules/unistd: Likewise.
20616
20617         gnulib-tool: avoid writing in the current directory.
20618         * gnulib-tool (func_emit_lib_Makefile_am)
20619         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
20620         not in the current directory, so concurrent gnulib-tool
20621         instances do not interfere.
20622
20623 2010-01-16  Jim Meyering  <meyering@redhat.com>
20624
20625         doc: update users.txt
20626         * users.txt: Add grep.
20627         (diffutils, gzip): Update URLs.
20628
20629 2010-01-12  Bruno Haible  <bruno@clisp.org>
20630
20631         posix_spawn: Avoid test failure on Cygwin.
20632         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
20633         characters.
20634         Reported by Simon Josefsson.
20635
20636 2010-01-12  Bruno Haible  <bruno@clisp.org>
20637
20638         * tests/test-cond.c (main): When skipping the test, show the reason.
20639
20640 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20641
20642         * lib/striconv.c (str_cd_iconv): Avoid if before free.
20643
20644 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20645
20646         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
20647         VC_LIST_ALWAYS_EXCLUDE_REGEX.
20648
20649 2010-01-12  Eric Blake  <ebb9@byu.net>
20650
20651         build: guarantee AS_VAR_IF
20652         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
20653         (gl_AS_VAR_IF): Move...
20654         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
20655         Reported by Simon Josefsson.
20656
20657 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20658
20659         * lib/stdio.in.h: Fix typo.
20660
20661 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20662
20663         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
20664         libgpg-error.
20665
20666 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20667
20668         * tests/test-xalloc-die.sh: Use $EXEEXT.
20669
20670 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20671             Bruno Haible  <bruno@clisp.org>
20672
20673         getlogin, getlogin_r: Avoid test failure.
20674         * tests/test-getlogin.c: Include <stdio.h>.
20675         (main): Skip the test when the function fails because stdin is not a
20676         tty.
20677         * tests/test-getlogin_r.c: Include <stdio.h>.
20678         (main): Skip the test when the function fails because stdin is not a
20679         tty.
20680
20681 2010-01-11  Eric Blake  <ebb9@byu.net>
20682
20683         tests: avoid more large file warnings
20684         * tests/test-fflush.c: Avoid warning about ftell use.
20685         * tests/test-fseek.c: Avoid warning about fseek use.
20686
20687 2010-01-10  Bruno Haible  <bruno@clisp.org>
20688
20689         nproc: Work better on Linux when /proc and /sys are not mounted.
20690         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
20691         as lower bound when, on glibc/Linux systems,
20692         sysconf (_SC_NPROCESSORS_CONF) returns 1.
20693         Suggested by Pádraig Brady <P@draigbrady.com>.
20694         Reported by Dmitry V. Levin <ldv@altlinux.org>.
20695
20696         nproc: Refactor.
20697         * lib/nproc.c (num_processors_via_affinity_mask): New function,
20698         extracted from num_processors.
20699         (num_processors): Call it.
20700
20701 2010-01-11  Jim Meyering  <meyering@redhat.com>
20702
20703         utimecmp: avoid new warning from upcoming gcc-4.5.0
20704         * lib/utimecmp.c (BILLION): Define using #define rather than an
20705         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
20706
20707 2010-01-11  Eric Blake  <ebb9@byu.net>
20708
20709         math: add portability warnings for classification macros
20710         * modules/math (Depends-on): Add warn-on-use.
20711         (Makefile.am): Provide new substitutions.
20712         * m4/math_h.m4 (gl_MATH_H): Require inline.
20713         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
20714         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
20715         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
20716         implement warnings.
20717
20718         unistd: warn on use of environ without module
20719         * modules/unistd (Depends-on): Add warn-on-use.
20720         (Makefile.am): Provide new substitutions.
20721         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
20722         * lib/unistd.in.h (environ): Wrap with a warning helper function.
20723
20724         stdio: warn on suspicious uses
20725         * modules/stdio (Depends-on): Add warn-on-use.
20726         (Makefile.am): Provide new substitutions.
20727         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
20728         fseeko.
20729         * lib/stdio.in.h (gets): Always warn on use.
20730         (fseek, ftell): Adjust when warnings are issued, and honor
20731         _GL_NO_LARGE_FILES as a way to silence the warning.
20732         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
20733         any warning about large file offsets.
20734         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
20735         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
20736         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
20737         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
20738         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
20739         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
20740         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
20741         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
20742
20743         warn-on-use: new module
20744         * modules/warn-on-use: New file.
20745         * build-aux/warn-on-use.h: Likewise.
20746         * m4/warn-on-use.m4: Likewise.
20747         * MODULES.html.sh (Support for building): Mention it.
20748
20749 2010-01-10  Bruno Haible  <bruno@clisp.org>
20750
20751         Tests for module 'unistr/u32-strdup'.
20752         * modules/unistr/u32-strdup-tests: New file.
20753         * tests/unistr/test-u32-strdup.c: New file.
20754
20755         Tests for module 'unistr/u16-strdup'.
20756         * modules/unistr/u16-strdup-tests: New file.
20757         * tests/unistr/test-u16-strdup.c: New file.
20758
20759         Tests for module 'unistr/u8-strdup'.
20760         * modules/unistr/u8-strdup-tests: New file.
20761         * tests/unistr/test-u8-strdup.c: New file.
20762         * tests/unistr/test-strdup.h: New file.
20763
20764         Tests for module 'unistr/u32-strncmp'.
20765         * modules/unistr/u32-strncmp-tests: New file.
20766         * tests/unistr/test-u32-strncmp.c: New file.
20767
20768         Tests for module 'unistr/u16-strncmp'.
20769         * modules/unistr/u16-strncmp-tests: New file.
20770         * tests/unistr/test-u16-strncmp.c: New file.
20771
20772         Tests for module 'unistr/u8-strncmp'.
20773         * modules/unistr/u8-strncmp-tests: New file.
20774         * tests/unistr/test-u8-strncmp.c: New file.
20775         * tests/unistr/test-strncmp.h: New file.
20776
20777         Tests for module 'unistr/u32-strcoll'.
20778         * modules/unistr/u32-strcoll-tests: New file.
20779         * tests/unistr/test-u32-strcoll.c: New file.
20780
20781         Tests for module 'unistr/u16-strcoll'.
20782         * modules/unistr/u16-strcoll-tests: New file.
20783         * tests/unistr/test-u16-strcoll.c: New file.
20784
20785         Tests for module 'unistr/u8-strcoll'.
20786         * modules/unistr/u8-strcoll-tests: New file.
20787         * tests/unistr/test-u8-strcoll.c: New file.
20788
20789         Tests for module 'unistr/u32-strcmp'.
20790         * modules/unistr/u32-strcmp-tests: New file.
20791         * tests/unistr/test-u32-strcmp.c: New file.
20792         * tests/unistr/test-u32-strcmp.h: New file.
20793
20794         Tests for module 'unistr/u16-strcmp'.
20795         * modules/unistr/u16-strcmp-tests: New file.
20796         * tests/unistr/test-u16-strcmp.c: New file.
20797         * tests/unistr/test-u16-strcmp.h: New file.
20798
20799         Tests for module 'unistr/u8-strcmp'.
20800         * modules/unistr/u8-strcmp-tests: New file.
20801         * tests/unistr/test-u8-strcmp.c: New file.
20802         * tests/unistr/test-u8-strcmp.h: New file.
20803         * tests/unistr/test-strcmp.h: New file.
20804
20805         Tests for module 'unistr/u32-strncat'.
20806         * modules/unistr/u32-strncat-tests: New file.
20807         * tests/unistr/test-u32-strncat.c: New file.
20808
20809         Tests for module 'unistr/u16-strncat'.
20810         * modules/unistr/u16-strncat-tests: New file.
20811         * tests/unistr/test-u16-strncat.c: New file.
20812
20813         Tests for module 'unistr/u8-strncat'.
20814         * modules/unistr/u8-strncat-tests: New file.
20815         * tests/unistr/test-u8-strncat.c: New file.
20816         * tests/unistr/test-strncat.h: New file.
20817
20818         Tests for module 'unistr/u32-strcat'.
20819         * modules/unistr/u32-strcat-tests: New file.
20820         * tests/unistr/test-u32-strcat.c: New file.
20821
20822         Tests for module 'unistr/u16-strcat'.
20823         * modules/unistr/u16-strcat-tests: New file.
20824         * tests/unistr/test-u16-strcat.c: New file.
20825
20826         Tests for module 'unistr/u8-strcat'.
20827         * modules/unistr/u8-strcat-tests: New file.
20828         * tests/unistr/test-u8-strcat.c: New file.
20829         * tests/unistr/test-strcat.h: New file.
20830
20831         Tests for module 'unistr/u32-stpncpy'.
20832         * modules/unistr/u32-stpncpy-tests: New file.
20833         * tests/unistr/test-u32-stpncpy.c: New file.
20834
20835         Tests for module 'unistr/u16-stpncpy'.
20836         * modules/unistr/u16-stpncpy-tests: New file.
20837         * tests/unistr/test-u16-stpncpy.c: New file.
20838
20839         Tests for module 'unistr/u8-stpncpy'.
20840         * modules/unistr/u8-stpncpy-tests: New file.
20841         * tests/unistr/test-u8-stpncpy.c: New file.
20842         * tests/unistr/test-stpncpy.h: New file.
20843
20844         Tests for module 'unistr/u32-strncpy'.
20845         * modules/unistr/u32-strncpy-tests: New file.
20846         * tests/unistr/test-u32-strncpy.c: New file.
20847
20848         Tests for module 'unistr/u16-strncpy'.
20849         * modules/unistr/u16-strncpy-tests: New file.
20850         * tests/unistr/test-u16-strncpy.c: New file.
20851
20852         Tests for module 'unistr/u8-strncpy'.
20853         * modules/unistr/u8-strncpy-tests: New file.
20854         * tests/unistr/test-u8-strncpy.c: New file.
20855         * tests/unistr/test-strncpy.h: New file.
20856
20857         Tests for module 'unistr/u32-stpcpy'.
20858         * modules/unistr/u32-stpcpy-tests: New file.
20859         * tests/unistr/test-u32-stpcpy.c: New file.
20860
20861         Tests for module 'unistr/u16-stpcpy'.
20862         * modules/unistr/u16-stpcpy-tests: New file.
20863         * tests/unistr/test-u16-stpcpy.c: New file.
20864
20865         Tests for module 'unistr/u8-stpcpy'.
20866         * modules/unistr/u8-stpcpy-tests: New file.
20867         * tests/unistr/test-u8-stpcpy.c: New file.
20868         * tests/unistr/test-stpcpy.h: New file.
20869
20870         Tests for module 'unistr/u32-strcpy'.
20871         * modules/unistr/u32-strcpy-tests: New file.
20872         * tests/unistr/test-u32-strcpy.c: New file.
20873
20874         Tests for module 'unistr/u16-strcpy'.
20875         * modules/unistr/u16-strcpy-tests: New file.
20876         * tests/unistr/test-u16-strcpy.c: New file.
20877
20878         Tests for module 'unistr/u8-strcpy'.
20879         * modules/unistr/u8-strcpy-tests: New file.
20880         * tests/unistr/test-u8-strcpy.c: New file.
20881         * tests/unistr/test-strcpy.h: New file.
20882
20883         Tests for module 'unistr/u32-strnlen'.
20884         * modules/unistr/u32-strnlen-tests: New file.
20885         * tests/unistr/test-u32-strnlen.c: New file.
20886
20887         Tests for module 'unistr/u16-strnlen'.
20888         * modules/unistr/u16-strnlen-tests: New file.
20889         * tests/unistr/test-u16-strnlen.c: New file.
20890
20891         Tests for module 'unistr/u8-strnlen'.
20892         * modules/unistr/u8-strnlen-tests: New file.
20893         * tests/unistr/test-u8-strnlen.c: New file.
20894         * tests/unistr/test-strnlen.h: New file.
20895
20896         Tests for module 'unistr/u32-strlen'.
20897         * modules/unistr/u32-strlen-tests: New file.
20898         * tests/unistr/test-u32-strlen.c: New file.
20899
20900         Tests for module 'unistr/u16-strlen'.
20901         * modules/unistr/u16-strlen-tests: New file.
20902         * tests/unistr/test-u16-strlen.c: New file.
20903
20904         Tests for module 'unistr/u8-strlen'.
20905         * modules/unistr/u8-strlen-tests: New file.
20906         * tests/unistr/test-u8-strlen.c: New file.
20907
20908         Tests for module 'unistr/u32-prev'.
20909         * modules/unistr/u32-prev-tests: New file.
20910         * tests/unistr/test-u32-prev.c: New file.
20911
20912         Tests for module 'unistr/u16-prev'.
20913         * modules/unistr/u16-prev-tests: New file.
20914         * tests/unistr/test-u16-prev.c: New file.
20915
20916         Tests for module 'unistr/u8-prev'.
20917         * modules/unistr/u8-prev-tests: New file.
20918         * tests/unistr/test-u8-prev.c: New file.
20919
20920         Tests for module 'unistr/u32-next'.
20921         * modules/unistr/u32-next-tests: New file.
20922         * tests/unistr/test-u32-next.c: New file.
20923
20924         Tests for module 'unistr/u16-next'.
20925         * modules/unistr/u16-next-tests: New file.
20926         * tests/unistr/test-u16-next.c: New file.
20927
20928         Tests for module 'unistr/u8-next'.
20929         * modules/unistr/u8-next-tests: New file.
20930         * tests/unistr/test-u8-next.c: New file.
20931
20932         Tests for module 'unistr/u32-strmbtouc'.
20933         * modules/unistr/u32-strmbtouc-tests: New file.
20934         * tests/unistr/test-u32-strmbtouc.c: New file.
20935
20936         Tests for module 'unistr/u16-strmbtouc'.
20937         * modules/unistr/u16-strmbtouc-tests: New file.
20938         * tests/unistr/test-u16-strmbtouc.c: New file.
20939
20940         Tests for module 'unistr/u8-strmbtouc'.
20941         * modules/unistr/u8-strmbtouc-tests: New file.
20942         * tests/unistr/test-u8-strmbtouc.c: New file.
20943
20944         Tests for module 'unistr/u32-strmblen'.
20945         * modules/unistr/u32-strmblen-tests: New file.
20946         * tests/unistr/test-u32-strmblen.c: New file.
20947
20948         Tests for module 'unistr/u16-strmblen'.
20949         * modules/unistr/u16-strmblen-tests: New file.
20950         * tests/unistr/test-u16-strmblen.c: New file.
20951
20952         Tests for module 'unistr/u8-strmblen'.
20953         * modules/unistr/u8-strmblen-tests: New file.
20954         * tests/unistr/test-u8-strmblen.c: New file.
20955
20956         Tests for module 'unistr/u32-cpy-alloc'.
20957         * modules/unistr/u32-cpy-alloc-tests: New file.
20958         * tests/unistr/test-u32-cpy-alloc.c: New file.
20959
20960         Tests for module 'unistr/u16-cpy-alloc'.
20961         * modules/unistr/u16-cpy-alloc-tests: New file.
20962         * tests/unistr/test-u16-cpy-alloc.c: New file.
20963
20964         Tests for module 'unistr/u8-cpy-alloc'.
20965         * modules/unistr/u8-cpy-alloc-tests: New file.
20966         * tests/unistr/test-u8-cpy-alloc.c: New file.
20967         * tests/unistr/test-cpy-alloc.h: New file.
20968
20969         Tests for module 'unistr/u32-mbsnlen'.
20970         * modules/unistr/u32-mbsnlen-tests: New file.
20971         * tests/unistr/test-u32-mbsnlen.c: New file.
20972
20973         Tests for module 'unistr/u16-mbsnlen'.
20974         * modules/unistr/u16-mbsnlen-tests: New file.
20975         * tests/unistr/test-u16-mbsnlen.c: New file.
20976
20977         Tests for module 'unistr/u8-mbsnlen'.
20978         * modules/unistr/u8-mbsnlen-tests: New file.
20979         * tests/unistr/test-u8-mbsnlen.c: New file.
20980
20981         Tests for module 'unistr/u32-chr'.
20982         * modules/unistr/u32-chr-tests: New file.
20983         * tests/unistr/test-u32-chr.c: New file.
20984
20985         Tests for module 'unistr/u16-chr'.
20986         * modules/unistr/u16-chr-tests: New file.
20987         * tests/unistr/test-u16-chr.c: New file.
20988
20989         Tests for module 'unistr/u8-chr'.
20990         * modules/unistr/u8-chr-tests: New file.
20991         * tests/unistr/test-u8-chr.c: New file.
20992         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
20993
20994         Tests for module 'unistr/u32-cmp2'.
20995         * modules/unistr/u32-cmp2-tests: New file.
20996         * tests/unistr/test-u32-cmp2.c: New file.
20997
20998         Tests for module 'unistr/u16-cmp2'.
20999         * modules/unistr/u16-cmp2-tests: New file.
21000         * tests/unistr/test-u16-cmp2.c: New file.
21001
21002         Tests for module 'unistr/u8-cmp2'.
21003         * modules/unistr/u8-cmp2-tests: New file.
21004         * tests/unistr/test-u8-cmp2.c: New file.
21005         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
21006
21007         Tests for module 'unistr/u32-cmp'.
21008         * modules/unistr/u32-cmp-tests: New file.
21009         * tests/unistr/test-u32-cmp.c: New file.
21010
21011         Tests for module 'unistr/u16-cmp'.
21012         * modules/unistr/u16-cmp-tests: New file.
21013         * tests/unistr/test-u16-cmp.c: New file.
21014
21015         Tests for module 'unistr/u8-cmp'.
21016         * modules/unistr/u8-cmp-tests: New file.
21017         * tests/unistr/test-u8-cmp.c: New file.
21018         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
21019
21020         Tests for module 'unistr/u32-set'.
21021         * modules/unistr/u32-set-tests: New file.
21022         * tests/unistr/test-u32-set.c: New file.
21023
21024         Tests for module 'unistr/u16-set'.
21025         * modules/unistr/u16-set-tests: New file.
21026         * tests/unistr/test-u16-set.c: New file.
21027
21028         Tests for module 'unistr/u8-set'.
21029         * modules/unistr/u8-set-tests: New file.
21030         * tests/unistr/test-u8-set.c: New file.
21031         * tests/unistr/test-set.h: New file.
21032
21033         Tests for module 'unistr/u32-move'.
21034         * modules/unistr/u32-move-tests: New file.
21035         * tests/unistr/test-u32-move.c: New file.
21036
21037         Tests for module 'unistr/u16-move'.
21038         * modules/unistr/u16-move-tests: New file.
21039         * tests/unistr/test-u16-move.c: New file.
21040
21041         Tests for module 'unistr/u8-move'.
21042         * modules/unistr/u8-move-tests: New file.
21043         * tests/unistr/test-u8-move.c: New file.
21044         * tests/unistr/test-move.h: New file.
21045
21046         Tests for module 'unistr/u32-cpy'.
21047         * modules/unistr/u32-cpy-tests: New file.
21048         * tests/unistr/test-u32-cpy.c: New file.
21049
21050         Tests for module 'unistr/u16-cpy'.
21051         * modules/unistr/u16-cpy-tests: New file.
21052         * tests/unistr/test-u16-cpy.c: New file.
21053
21054         Tests for module 'unistr/u8-cpy'.
21055         * modules/unistr/u8-cpy-tests: New file.
21056         * tests/unistr/test-u8-cpy.c: New file.
21057         * tests/unistr/test-cpy.h: New file.
21058
21059 2010-01-09  Bruno Haible  <bruno@clisp.org>
21060
21061         Tests for module 'unistr/u32-uctomb'.
21062         * modules/unistr/u32-uctomb-tests: New file.
21063         * tests/unistr/test-u32-uctomb.c: New file.
21064
21065         Tests for module 'unistr/u16-uctomb'.
21066         * modules/unistr/u16-uctomb-tests: New file.
21067         * tests/unistr/test-u16-uctomb.c: New file.
21068
21069         Tests for module 'unistr/u8-uctomb'.
21070         * modules/unistr/u8-uctomb-tests: New file.
21071         * tests/unistr/test-u8-uctomb.c: New file.
21072
21073         Tests for module 'unistr/u32-mbtoucr'.
21074         * modules/unistr/u32-mbtoucr-tests: New file.
21075         * tests/unistr/test-u32-mbtoucr.c: New file.
21076
21077         Tests for module 'unistr/u16-mbtoucr'.
21078         * modules/unistr/u16-mbtoucr-tests: New file.
21079         * tests/unistr/test-u16-mbtoucr.c: New file.
21080
21081         Tests for module 'unistr/u8-mbtoucr'.
21082         * modules/unistr/u8-mbtoucr-tests: New file.
21083         * tests/unistr/test-u8-mbtoucr.c: New file.
21084
21085         Tests for module 'unistr/u32-mbtouc'.
21086         * modules/unistr/u32-mbtouc-tests: New file.
21087         * tests/unistr/test-u32-mbtouc.c: New file.
21088
21089         Tests for module 'unistr/u16-mbtouc'.
21090         * modules/unistr/u16-mbtouc-tests: New file.
21091         * tests/unistr/test-u16-mbtouc.c: New file.
21092
21093         Tests for module 'unistr/u8-mbtouc'.
21094         * modules/unistr/u8-mbtouc-tests: New file.
21095         * tests/unistr/test-u8-mbtouc.c: New file.
21096
21097         Tests for module 'unistr/u32-mbtouc-unsafe'.
21098         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
21099         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
21100         * tests/unistr/test-u32-mbtouc.h: New file.
21101
21102         Tests for module 'unistr/u16-mbtouc-unsafe'.
21103         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
21104         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
21105         * tests/unistr/test-u16-mbtouc.h: New file.
21106
21107         Tests for module 'unistr/u8-mbtouc-unsafe'.
21108         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
21109         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
21110         * tests/unistr/test-u8-mbtouc.h: New file.
21111
21112         Tests for module 'unistr/u32-mblen'.
21113         * modules/unistr/u32-mblen-tests: New file.
21114         * tests/unistr/test-u32-mblen.c: New file.
21115
21116         Tests for module 'unistr/u16-mblen'.
21117         * modules/unistr/u16-mblen-tests: New file.
21118         * tests/unistr/test-u16-mblen.c: New file.
21119
21120         Tests for module 'unistr/u8-mblen'.
21121         * modules/unistr/u8-mblen-tests: New file.
21122         * tests/unistr/test-u8-mblen.c: New file.
21123
21124         Tests for module 'unistr/u32-to-u16'.
21125         * modules/unistr/u32-to-u16-tests: New file.
21126         * tests/unistr/test-u32-to-u16.c: New file.
21127
21128         Tests for module 'unistr/u32-to-u8'.
21129         * modules/unistr/u32-to-u8-tests: New file.
21130         * tests/unistr/test-u32-to-u8.c: New file.
21131
21132         Tests for module 'unistr/u16-to-u32'.
21133         * modules/unistr/u16-to-u32-tests: New file.
21134         * tests/unistr/test-u16-to-u32.c: New file.
21135
21136         Tests for module 'unistr/u16-to-u8'.
21137         * modules/unistr/u16-to-u8-tests: New file.
21138         * tests/unistr/test-u16-to-u8.c: New file.
21139
21140         Tests for module 'unistr/u8-to-u32'.
21141         * modules/unistr/u8-to-u32-tests: New file.
21142         * tests/unistr/test-u8-to-u32.c: New file.
21143
21144         Tests for module 'unistr/u8-to-u16'.
21145         * modules/unistr/u8-to-u16-tests: New file.
21146         * tests/unistr/test-u8-to-u16.c: New file.
21147
21148         Tests for module 'unistr/u32-check'.
21149         * modules/unistr/u32-check-tests: New file.
21150         * tests/unistr/test-u32-check.c: New file.
21151
21152         Tests for module 'unistr/u16-check'.
21153         * modules/unistr/u16-check-tests: New file.
21154         * tests/unistr/test-u16-check.c: New file.
21155
21156         Tests for module 'unistr/u8-check'.
21157         * modules/unistr/u8-check-tests: New file.
21158         * tests/unistr/test-u8-check.c: New file.
21159
21160         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
21161         (category_equals): New function.
21162         (main): Add more tests.
21163         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
21164
21165         * tests/unictype/test-bidi_byname.c (main): Add more tests.
21166
21167 2010-01-10  Bruno Haible  <bruno@clisp.org>
21168
21169         unistr/u*-strcoll: Try harder to distinguish different strings.
21170         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
21171         compare s1 and s2 to see if they are different.
21172
21173 2010-01-10  Bruno Haible  <bruno@clisp.org>
21174
21175         unistr/u*-stpncpy: Fix the return value.
21176         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
21177         description of the return value consistent with stpncpy in glibc.
21178         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
21179         written non-NUL unit.
21180
21181 2010-01-10  Bruno Haible  <bruno@clisp.org>
21182
21183         unistr/u*-next: Add missing dependencies.
21184         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
21185         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
21186         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
21187
21188 2010-01-10  Bruno Haible  <bruno@clisp.org>
21189
21190         unistr/u8-mbsnlen: Fix return value for incomplete character.
21191         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
21192         u8_mblen.
21193         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
21194         Remove unistr/u8-mblen.
21195         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
21196         u16_mblen.
21197         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
21198         Remove unistr/u16-mblen.
21199
21200 2010-01-10  Bruno Haible  <bruno@clisp.org>
21201
21202         wchar: Fix compilation error when <wchar.h> is used from coreutils.
21203         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
21204         Reported by Brian Gough <bjg@gnu.org> and
21205         Chris Clayton <chris2553@googlemail.com> via
21206         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
21207
21208 2010-01-09  Bruno Haible  <bruno@clisp.org>
21209
21210         unistr/u16-to-u32: Reject invalid input.
21211         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
21212         u16_mbtouc.
21213         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
21214         Remove unistr/u16-mbtouc.
21215
21216         unistr/u16-to-u8: Reject invalid input.
21217         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
21218         u16_mbtouc.
21219         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
21220         Remove unistr/u16-mbtouc.
21221
21222         unistr/u8-to-u32: Reject invalid input.
21223         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
21224         u8_mbtouc.
21225         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
21226         Remove unistr/u8-mbtouc.
21227
21228         unistr/u8-to-u16: Reject invalid input.
21229         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
21230         u8_mbtouc.
21231         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
21232         Remove unistr/u8-mbtouc.
21233
21234 2010-01-09  Bruno Haible  <bruno@clisp.org>
21235
21236         Tests for module 'getlogin'.
21237         * modules/getlogin-tests: New file.
21238         * tests/test-getlogin.c: New file.
21239
21240         New module 'getlogin'.
21241         * lib/unistd.in.h (getlogin): New declaration.
21242         * lib/getlogin.c: New file.
21243         * m4/getlogin.m4: New file.
21244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
21245         HAVE_GETLOGIN.
21246         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
21247         HAVE_GETLOGIN.
21248         * modules/getlogin: New file.
21249         * doc/posix-functions/getlogin.texi: Mention the new module.
21250         Reported by John W. Eaton <jwe@gnu.org>.
21251
21252 2010-01-09  Bruno Haible  <bruno@clisp.org>
21253
21254         getlogin_r: Support for native Windows.
21255         * lib/getlogin_r.c: Include <windows.h>
21256         (getlogin_r): Implement for native Windows.
21257         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
21258         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
21259         via John W. Eaton <jwe@gnu.org>.
21260
21261 2010-01-09  Bruno Haible  <bruno@clisp.org>
21262
21263         getlogin_r: Small fixes.
21264         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
21265         succeeds.
21266         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
21267         before testing whether getlogin_r is declared. No need to set
21268         HAVE_DECL_GETLOGIN_R to 1.
21269         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
21270
21271 2010-01-09  Bruno Haible  <bruno@clisp.org>
21272
21273         * lib/unistd.in.h (getlogin_r): Add comment.
21274
21275 2010-01-09  Bruno Haible  <bruno@clisp.org>
21276
21277         Tests for module 'getlogin_r'.
21278         * modules/getlogin_r-tests: New file.
21279         * tests/test-getlogin_r.c: New file.
21280
21281 2010-01-09  Jim Meyering  <meyering@redhat.com>
21282
21283         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
21284         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
21285         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
21286
21287 2010-01-08  Simon Josefsson  <simon@josefsson.org>
21288
21289         * lib/dup2.c (rpl_dup2): Improve comment.
21290
21291 2010-01-08  Eric Blake  <ebb9@byu.net>
21292
21293         maint.mk: allow packages to add makefile @@ exceptions
21294         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
21295         (sc_makefile_check): Rename...
21296         (sc_makefile_at_at_check): ...to this, and use hook.
21297
21298         dup2: work around mingw bug
21299         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
21300         Reported by Simon Josefsson.
21301
21302 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
21303
21304         glob: Fix C++ compilation.
21305         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
21306         C++.
21307
21308 2010-01-07  Bruno Haible  <bruno@clisp.org>
21309
21310         Fix indentation of wctype.in.h, broken since 2007-01-06.
21311         * lib/wctype.in.h: Fix indentation of preprocessor directives.
21312
21313 2010-01-07  Bruno Haible  <bruno@clisp.org>
21314
21315         mbslen: Avoid collision with system function.
21316         * lib/string.in.h [MirBSD]: Include <wchar.h>.
21317         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
21318         * m4/mbslen.m4: New file.
21319         * modules/mbslen (Files): Add it.
21320         (configure.ac): Invoke gl_MBSLEN.
21321         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
21322         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
21323         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
21324         via Ian Beckwith <ianb@erislabs.net>.
21325
21326 2010-01-07  Bruno Haible  <bruno@clisp.org>
21327
21328         dirent: Document the last fix.
21329         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
21330
21331 2010-01-07  Bruno Haible  <bruno@clisp.org>
21332
21333         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
21334         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
21335         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
21336         va_list are defined.
21337         * doc/posix-headers/stdio.texi: Document the bug of missing types.
21338         Reported by Eric Blake.
21339
21340 2010-01-07  Bruno Haible  <bruno@clisp.org>
21341
21342         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
21343         * modules/xlist (Depends-on): Add 'list',
21344         * modules/xoset (Depends-on): Add 'oset'.
21345         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21346
21347 2010-01-07  Bruno Haible  <bruno@clisp.org>
21348
21349         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
21350         * doc/posix-functions/strncasecmp.texi: Likewise.
21351
21352 2010-01-07  Bruno Haible  <bruno@clisp.org>
21353
21354         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
21355
21356 2010-01-07  John W. Eaton  <jwe@octave.org>
21357
21358         wctype: allow C++ use
21359         * lib/wctype.in.h: Add extern "C" block for C++.
21360
21361 2010-01-06  Eric Blake  <ebb9@byu.net>
21362
21363         maint.mk: detect incorrect GFDL usage
21364         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
21365
21366 2010-01-06  Jim Meyering  <meyering@redhat.com>
21367         and Eric Blake  <ebb9@byu.net>
21368
21369         maint.mk: ignore multi-line copyright in NEWS
21370         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
21371
21372 2010-01-06  Eric Blake  <ebb9@byu.net>
21373
21374         select: add missing dependency
21375         * modules/select-tests (Depends-on): Move sockets dependency...
21376         * modules/select (Depends-on): ...here.
21377         Reported by Ian Beckwith.
21378
21379         doc: regenerate INSTALL
21380         * doc/INSTALL: Reflect recent autoconf update.
21381         * doc/INSTALL.ISO: Likewise.
21382         * doc/INSTALL.UTF-8: Likewise.
21383
21384         pread: fix compilation on glibc
21385         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
21386         Reported by Ralf Wildenhues.
21387
21388         dirent: fix test failure
21389         * lib/dirent.in.h (includes): Guarantee ino_t.
21390         Reported by Ralf Wildenhues.
21391
21392 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
21393
21394         linkat, renameat: avoid bad free
21395         * lib/at-func2.c (at_func2): Fix typo.
21396         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
21397
21398 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21399
21400         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
21401         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
21402         to avoid failure of symlink test later.
21403
21404 2010-01-06  Eric Blake  <ebb9@byu.net>
21405
21406         stdio, unistd: guarantee ssize_t
21407         * lib/unistd.in.h (includes): Ensure that types required by POSIX
21408         2008 are exposed when needed.
21409         * lib/stdio.in.h (includes): Likewise.
21410         Reported by Ralf Wildenhues.
21411
21412 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
21413
21414         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
21415         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
21416         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
21417
21418 2010-01-06  Jim Meyering  <meyering@redhat.com>
21419
21420         readtokens: this module *does* require xalloc.h
21421         It uses only functions that were omitted by the old syntax-check rule.
21422         * lib/readtokens.c: Include "xalloc.h" once again.
21423         * modules/readtokens (Depends-on): Add xalloc.
21424         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
21425
21426 2010-01-05  Eric Blake  <ebb9@byu.net>
21427
21428         maint: support 'make announcement' from a VPATH build
21429         * top/maint.mk (announcement): Look for correct NEWS file.
21430
21431 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
21432
21433         utimens (fdutimens): ignore a negative FD, per contract
21434         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
21435         when we have a valid file descriptor.  Otherwise, using a brand
21436         new glibc (with just-patched futimens that now fails with EBADF)
21437         would cause this function to fail with ENOSYS.
21438         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
21439         See also http://bugzilla.redhat.com/552320.
21440
21441 2010-01-05  Eric Blake  <ebb9@byu.net>
21442
21443         strcase: document what it provides
21444         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
21445         gnulib module.
21446         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
21447         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
21448
21449 2010-01-05  Jim Meyering  <meyering@redhat.com>
21450
21451         maint: remove useless inclusions of "xalloc.h"
21452         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
21453         * lib/readtokens.c: Likewise.
21454         * lib/same.c: Likewise.
21455         * modules/getloadavg (Depends-on): Remove xalloc.
21456         * modules/readtokens: Likewise.
21457         * modules/same: Likewise.
21458
21459         maint.mk: include 4 more function names in alloca.h-checking regexp
21460         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
21461         regexp.  Before, we would give a false-positive (saying alloca.h
21462         is included unnecessarily) when the only uses involved omitted symbols.
21463
21464         xalloc.h: use consistent formatting
21465         * lib/xalloc.h: Move declarations to start in the first column.
21466
21467 2010-01-05  Eric Blake  <ebb9@byu.net>
21468
21469         mkdir: avoid xalloc
21470         * lib/mkdir.c (includes): Drop unused header.
21471         Reported by John W. Eaton.
21472
21473 2010-01-04  Jim Meyering  <meyering@redhat.com>
21474
21475         nl_langinfo: avoid configure-time syntax error
21476         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
21477         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
21478         the empty string.  Don't let that provoke a shell syntax error.
21479
21480         regcomp, regexec, fnmatch: avoid array bounds read error
21481         * lib/regcomp.c (build_equiv_class): From glibc:
21482         Use only the low 24 bits of a findidx return value as an index
21483         into the weights array.  Patch by Ulrich Drepper:
21484         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
21485         * lib/regexec.c (check_node_accept_bytes): Likewise.
21486         * lib/fnmatch_loop.c (FCT): Likewise.
21487
21488         regcomp: skip collseq lookup when there are no rules
21489         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
21490         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
21491
21492         regcomp: recognize ill-formed { } expressions
21493         * lib/regcomp.c (parse_dup_op): From glibc:
21494         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
21495
21496         regcomp: fix typo in comment
21497         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
21498         s/satisfy/satisfies/.
21499
21500         regcomp: sync from glibc: remove dead store
21501         * lib/regcomp.c (duplicate_node_closure): Remove useless
21502         search_duplicated_node call and dead store.
21503
21504         regcomp: sync from glibc; always use nl_langinfo
21505         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
21506         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
21507         * modules/regex (Depends-on): Add nl_langinfo.
21508
21509 2010-01-04  Eric Blake  <ebb9@byu.net>
21510
21511         fdopendir: fix configure test
21512         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
21513
21514 2010-01-01  Bruno Haible  <bruno@clisp.org>
21515
21516         wchar: Remove unused configure check.
21517         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
21518
21519 2010-01-01  Eric Blake  <ebb9@byu.net>
21520
21521         headers: make check of system header explicit
21522         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
21523         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
21524         ourselves.
21525         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21526         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21527         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
21528         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
21529         internals.
21530         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
21531         missing.
21532         Suggested by Bruno Haible.
21533
21534 2010-01-01  Jim Meyering  <meyering@redhat.com>
21535
21536         ChangeLog: tweak to eliminate unnecessary copyright line
21537         * ChangeLog: Remove a copyright line that was mistakenly updated
21538         by today's update-copyright run.  Reported by Eric Blake.
21539
21540         test-update-copyright: don't let envvar setting cause test failure
21541         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21542
21543 2010-01-01  Bruno Haible  <bruno@clisp.org>
21544
21545         localename: Avoid gcc warning.
21546         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
21547         function if it is not used.
21548
21549 2010-01-01  Jim Meyering  <meyering@redhat.com>
21550
21551         update nearly all FSF copyright year lists to include 2010
21552         Use the same procedure as for 2009, outlined in
21553         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
21554
21555         version-etc: set COPYRIGHT_YEAR to 2010
21556         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
21557
21558 2009-12-31  Eric Blake  <ebb9@byu.net>
21559
21560         doc: correct availability of cygwin 1.5.x getopt
21561         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
21562         variables.
21563         * doc/posix-functions/opterr.texi (opterr): Likewise.
21564         * doc/posix-functions/optind.texi (optind): Likewise.
21565         * doc/posix-functions/optopt.texi (optopt): Likewise.
21566         * doc/posix-functions/tzname.texi (tzname): Likewise.
21567
21568         openat: update maintainer
21569         * modules/openat (Maintainer): Add myself.
21570
21571         utimens: avoid shadowing warning
21572         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
21573         buffers into one, to avoid shadowing, as well as avoiding a
21574         redundant stat.
21575         Reported by Jim Meyering.
21576
21577         test-dup2: avoid compiler warning
21578         * tests/test-dup2.c (is_inheritable): Only define if used.
21579
21580 2010-01-01  Bruno Haible  <bruno@clisp.org>
21581
21582         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
21583         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
21584         defined, use wctomb instead of wcrtomb.
21585
21586 2010-01-01  Bruno Haible  <bruno@clisp.org>
21587
21588         iconv: Reject native Solaris iconv.
21589         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
21590         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
21591
21592 2009-12-31  Bruno Haible  <bruno@clisp.org>
21593
21594         * tests/test-signal.c (main): Remove test of 'SIG'.
21595
21596 2009-12-31  Bruno Haible  <bruno@clisp.org>
21597
21598         spawn: Fix incomplete fix.
21599         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
21600         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
21601         warnings for GNULIB_POSIXCHECK again.
21602         Reported by Eric Blake.
21603
21604 2009-12-31  Bruno Haible  <bruno@clisp.org>
21605
21606         Avoid namespace pollution on glibc systems.
21607         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
21608         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
21609         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
21610         glibc systems.
21611
21612 2009-12-31  Bruno Haible  <bruno@clisp.org>
21613
21614         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
21615         (gl_REPLACE_WCHAR_H): Turn into a no-op.
21616         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
21617         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21618         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21619         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21620         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21621
21622 2009-12-31  Bruno Haible  <bruno@clisp.org>
21623
21624         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
21625         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
21626         afterwards.
21627
21628 2009-12-31  Bruno Haible  <bruno@clisp.org>
21629
21630         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
21631         SYS_UTSNAME_H.
21632
21633 2009-12-31  Bruno Haible  <bruno@clisp.org>
21634
21635         spawn: Fix misapplied patch.
21636         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
21637         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
21638         warnings for GNULIB_POSIXCHECK.
21639
21640 2009-12-31  Bruno Haible  <bruno@clisp.org>
21641
21642         times: Update after sys_times changed.
21643         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
21644         * modules/times (Files): Add it.
21645         (configure.ac): Invoke gl_FUNC_TIMES.
21646
21647 2009-12-31  Bruno Haible  <bruno@clisp.org>
21648
21649         Use AC_C_INLINE where necessary.
21650         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
21651         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21652         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
21653         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
21654         * m4/mbfile.m4 (gl_MBFILE): Likewise.
21655         * m4/mbiter.m4 (gl_MBITER): Likewise.
21656         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21657         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21658         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
21659         * modules/u64 (configure.ac): Likewise.
21660
21661 2009-12-31  Bruno Haible  <bruno@clisp.org>
21662
21663         Use AC_C_INLINE instead of module 'inline' where possible.
21664         * modules/inline (Description): Clarify purpose.
21665         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
21666         * modules/count-one-bits (Depends-on): Remove inline.
21667         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
21668         * modules/openat (Depends-on): Remove inline.
21669         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
21670         instead of depending on module 'inline'.
21671         * modules/filevercmp (Depends-on, configure.ac): Likewise.
21672         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
21673         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
21674         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
21675         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
21676         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
21677         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
21678         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
21679         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
21680         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
21681         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
21682         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
21683         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
21684         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
21685         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
21686         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
21687         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
21688         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
21689         Likewise.
21690         * modules/unictype/property-ascii-hex-digit (Depends-on,
21691         configure.ac): Likewise.
21692         * modules/unictype/property-bidi-arabic-digit (Depends-on,
21693         configure.ac): Likewise.
21694         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
21695         configure.ac): Likewise.
21696         * modules/unictype/property-bidi-block-separator (Depends-on,
21697         configure.ac): Likewise.
21698         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
21699         configure.ac): Likewise.
21700         * modules/unictype/property-bidi-common-separator (Depends-on,
21701         configure.ac): Likewise.
21702         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
21703         Likewise.
21704         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
21705         configure.ac): Likewise.
21706         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
21707         configure.ac): Likewise.
21708         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
21709         configure.ac): Likewise.
21710         * modules/unictype/property-bidi-european-digit (Depends-on,
21711         configure.ac): Likewise.
21712         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
21713         configure.ac): Likewise.
21714         * modules/unictype/property-bidi-left-to-right (Depends-on,
21715         configure.ac): Likewise.
21716         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
21717         configure.ac): Likewise.
21718         * modules/unictype/property-bidi-other-neutral (Depends-on,
21719         configure.ac): Likewise.
21720         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
21721         Likewise.
21722         * modules/unictype/property-bidi-segment-separator (Depends-on,
21723         configure.ac): Likewise.
21724         * modules/unictype/property-bidi-whitespace (Depends-on,
21725         configure.ac): Likewise.
21726         * modules/unictype/property-combining (Depends-on, configure.ac):
21727         Likewise.
21728         * modules/unictype/property-composite (Depends-on, configure.ac):
21729         Likewise.
21730         * modules/unictype/property-currency-symbol (Depends-on,
21731         configure.ac): Likewise.
21732         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
21733         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
21734         Likewise.
21735         * modules/unictype/property-default-ignorable-code-point (Depends-on,
21736         configure.ac): Likewise.
21737         * modules/unictype/property-deprecated (Depends-on, configure.ac):
21738         Likewise.
21739         * modules/unictype/property-diacritic (Depends-on, configure.ac):
21740         Likewise.
21741         * modules/unictype/property-extender (Depends-on, configure.ac):
21742         Likewise.
21743         * modules/unictype/property-format-control (Depends-on, configure.ac):
21744         Likewise.
21745         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
21746         Likewise.
21747         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
21748         Likewise.
21749         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
21750         Likewise.
21751         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
21752         Likewise.
21753         * modules/unictype/property-hyphen (Depends-on, configure.ac):
21754         Likewise.
21755         * modules/unictype/property-id-continue (Depends-on, configure.ac):
21756         Likewise.
21757         * modules/unictype/property-id-start (Depends-on, configure.ac):
21758         Likewise.
21759         * modules/unictype/property-ideographic (Depends-on, configure.ac):
21760         Likewise.
21761         * modules/unictype/property-ids-binary-operator (Depends-on,
21762         configure.ac): Likewise.
21763         * modules/unictype/property-ids-trinary-operator (Depends-on,
21764         configure.ac): Likewise.
21765         * modules/unictype/property-ignorable-control (Depends-on,
21766         configure.ac): Likewise.
21767         * modules/unictype/property-iso-control (Depends-on, configure.ac):
21768         Likewise.
21769         * modules/unictype/property-join-control (Depends-on, configure.ac):
21770         Likewise.
21771         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
21772         Likewise.
21773         * modules/unictype/property-line-separator (Depends-on, configure.ac):
21774         Likewise.
21775         * modules/unictype/property-logical-order-exception (Depends-on,
21776         configure.ac): Likewise.
21777         * modules/unictype/property-lowercase (Depends-on, configure.ac):
21778         Likewise.
21779         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
21780         * modules/unictype/property-non-break (Depends-on, configure.ac):
21781         Likewise.
21782         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
21783         Likewise.
21784         * modules/unictype/property-numeric (Depends-on, configure.ac):
21785         Likewise.
21786         * modules/unictype/property-other-alphabetic (Depends-on,
21787         configure.ac): Likewise.
21788         * modules/unictype/property-other-default-ignorable-code-point
21789         (Depends-on, configure.ac): Likewise.
21790         * modules/unictype/property-other-grapheme-extend (Depends-on,
21791         configure.ac): Likewise.
21792         * modules/unictype/property-other-id-continue (Depends-on,
21793         configure.ac): Likewise.
21794         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
21795         Likewise.
21796         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
21797         Likewise.
21798         * modules/unictype/property-other-math (Depends-on, configure.ac):
21799         Likewise.
21800         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
21801         Likewise.
21802         * modules/unictype/property-paired-punctuation (Depends-on,
21803         configure.ac): Likewise.
21804         * modules/unictype/property-paragraph-separator (Depends-on,
21805         configure.ac): Likewise.
21806         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
21807         Likewise.
21808         * modules/unictype/property-pattern-white-space (Depends-on,
21809         configure.ac): Likewise.
21810         * modules/unictype/property-private-use (Depends-on, configure.ac):
21811         Likewise.
21812         * modules/unictype/property-punctuation (Depends-on, configure.ac):
21813         Likewise.
21814         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
21815         Likewise.
21816         * modules/unictype/property-radical (Depends-on, configure.ac):
21817         Likewise.
21818         * modules/unictype/property-sentence-terminal (Depends-on,
21819         configure.ac): Likewise.
21820         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
21821         Likewise.
21822         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
21823         * modules/unictype/property-terminal-punctuation (Depends-on,
21824         configure.ac): Likewise.
21825         * modules/unictype/property-titlecase (Depends-on, configure.ac):
21826         Likewise.
21827         * modules/unictype/property-unassigned-code-value (Depends-on,
21828         configure.ac): Likewise.
21829         * modules/unictype/property-unified-ideograph (Depends-on,
21830         configure.ac): Likewise.
21831         * modules/unictype/property-uppercase (Depends-on, configure.ac):
21832         Likewise.
21833         * modules/unictype/property-variation-selector (Depends-on,
21834         configure.ac): Likewise.
21835         * modules/unictype/property-white-space (Depends-on, configure.ac):
21836         Likewise.
21837         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
21838         Likewise.
21839         * modules/unictype/property-xid-start (Depends-on, configure.ac):
21840         Likewise.
21841         * modules/unictype/property-zero-width (Depends-on, configure.ac):
21842         Likewise.
21843         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
21844         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
21845         Likewise.
21846
21847 2009-12-31  Bruno Haible  <bruno@clisp.org>
21848
21849         Remove unnecessary AC_C_INLINE invocation.
21850         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
21851         since 2009-08-21.
21852
21853 2009-12-31  Jim Meyering  <meyering@redhat.com>
21854
21855         maint.mk: don't require explicit gpg_key_ID in cfg.mk
21856         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
21857         With this change, we can all remove the gpg_key_ID = ... definition
21858         from our respective cfg.mk files.
21859
21860         maint.mk: create announcement template in ~/, not in /tmp
21861         * top/maint.mk (emit_upload_commands): Adjust.
21862         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
21863         Remove temporary file, .ci-msg.
21864
21865 2009-12-31  Eric Blake  <ebb9@byu.net>
21866
21867         link-warning: always build headers with link warnings
21868         * modules/arpa_inet (Makefile.am): Always build replacement
21869         header.
21870         * modules/ctype (Makefile.am): Likewise.
21871         * modules/dirent (Makefile.am): Likewise.
21872         * modules/inttypes (Makefile.am): Likewise.
21873         * modules/langinfo (Makefile.am): Likewise.
21874         * modules/locale (Makefile.am): Likewise.
21875         * modules/spawn (Makefile.am): Likewise.
21876         * modules/sys_file (Makefile.am): Likewise.
21877         * modules/sys_ioctl (Makefile.am): Likewise.
21878         * modules/sys_select (Makefile.am): Likewise.
21879         * modules/sys_socket (Makefile.am): Likewise.
21880         * modules/sys_times (Makefile.am): Likewise.
21881         * modules/sys_utsname (Makefile.am): Likewise.
21882         * modules/sys_wait (Makefile.am): Likewise.
21883         * modules/wchar (Makefile.am): Likewise.
21884         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
21885         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
21886         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
21887         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
21888         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
21889         Likewise.
21890         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21891         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21892         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
21893         Likewise.
21894         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
21895         Likewise.
21896         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21897         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
21898         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
21899         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21900         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21901         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
21902         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
21903         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
21904         (gl_WCHAR_H_DEFAULTS): Likewise.
21905
21906 2009-12-31  Eric Blake  <ebb9@byu.net>
21907
21908         signal, spawn: use link warnings
21909         * lib/signal.in.h (sigset_t): Make unconditional.
21910         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
21911         (sigpending, sigprocmask, sigaction): Add link warnings.
21912         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
21913         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
21914         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
21915         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
21916         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
21917         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
21918         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
21919         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
21920         (posix_spawn_file_actions_destroy)
21921         (posix_spawn_file_actions_addopen)
21922         (posix_spawn_file_actions_addclose)
21923         (posix_spawn_file_actions_adddup2): Likewise.
21924         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
21925         * tests/test-signal.c (main): Enhance test.
21926
21927         spawn: improve wrapper support
21928         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
21929         (gl_SPAWN_H_DEFAULTS): New defaults.
21930         * modules/spawn (Makefile.am): Substitute them.
21931         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
21932         Only declare if missing or broken.
21933
21934         sys_times, sys_utsname: use include_next
21935         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
21936         header.
21937         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
21938         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
21939         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
21940         * modules/sys_times (Depends-on): Add include_next.
21941         (Makefile.am): Substitute additional values.
21942         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
21943         * lib/sys_times.in.h (includes): Include native header, if
21944         available.
21945         * lib/sys_utsname.in.h (includes): Likewise.
21946         * tests/test-sys_times.c (main): Enhance test.
21947
21948         fdutimensat: revert prior patch
21949         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
21950         utimens.h.
21951         Reported by Bruno Haible.
21952
21953 2009-12-30  Eric Blake  <ebb9@byu.net>
21954
21955         sys_wait: drop link-warning dependency
21956         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
21957         link-warning efforts.
21958         * lib/sys_wait.in.h: Likewise.
21959
21960         fdutimensat: remove bogus dependency
21961         * modules/fdutimensat (Depends-on): Drop inline.
21962
21963         unistd: fix typo
21964         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
21965
21966 2009-12-30  Bruno Haible  <bruno@clisp.org>
21967
21968         Fix compilation error with Solaris cc.
21969         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
21970         * lib/unicase/u16-is-invariant.c: Likewise.
21971         * lib/unicase/u32-is-invariant.c: Likewise.
21972         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
21973
21974 2009-12-30  Bruno Haible  <bruno@clisp.org>
21975
21976         Fix test crash.
21977         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
21978         locales.
21979         Reported by Simon Josefsson <simon@josefsson.org>.
21980
21981 2009-12-30  Bruno Haible  <bruno@clisp.org>
21982
21983         Fix compilation error on most platforms.
21984         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
21985         Reported by Simon Josefsson <simon@josefsson.org>
21986         and Nelson H. F. Beebe <beebe@math.utah.edu>.
21987
21988 2009-12-30  Eric Blake  <ebb9@byu.net>
21989
21990         futimens, utimensat: work around ntfs-3g bug
21991         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
21992         a ctime bug is present, and expand workaround to cover ntfs-3g.
21993         * lib/utimens.c (fdutimens, lutimens): Likewise.
21994         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
21995         (validate_timespec): Adjust return value.
21996         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
21997         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21998         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
21999
22000 2009-12-29  Eric Blake  <ebb9@byu.net>
22001
22002         link-warning: make usage consistent
22003         * modules/ctype (Depends-on): Add link-warning.
22004         (Makefile.am): Update rules accordingly.
22005         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22006         * modules/locale (Depends-on, Makefile.am): Likewise.
22007         * modules/sys_file (Makefile.am): Likewise.
22008         * modules/getopt-posix (Makefile.am): Delete unused link warning
22009         efforts.
22010         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
22011         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
22012         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
22013         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
22014
22015         stdio: remove unused variables
22016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
22017         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
22018         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22019
22020         tests: test more substitute headers
22021         * modules/ctype-tests: New file.
22022         * modules/dirent-tests: Likewise.
22023         * modules/spawn-tests: Likewise.
22024         * modules/sys_file-tests: Likewise.
22025         * modules/sys_ioctl-tests: Likewise.
22026         * modules/sys_wait-tests: Likewise.
22027         * tests/test-ctype.c: Likewise.
22028         * tests/test-dirent.c: Likewise.
22029         * tests/test-spawn.c: Likewise.
22030         * tests/test-sys_file.c: Likewise.
22031         * tests/test-sys_ioctl.c: Likewise.
22032         * tests/test-sys_wait.c: Likewise.
22033         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
22034         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
22035         whether or not flock is in use.
22036
22037         tests: remove License section from module
22038         * modules/arpa_inet-tests: Remove unneeded section.
22039         * modules/byteswap-tests: Likewise.
22040         * modules/ceilf-tests: Likewise.
22041         * modules/ceill-tests: Likewise.
22042         * modules/crypto/des-tests: Likewise.
22043         * modules/crypto/gc-arcfour-tests: Likewise.
22044         * modules/crypto/gc-arctwo-tests: Likewise.
22045         * modules/crypto/gc-des-tests: Likewise.
22046         * modules/crypto/gc-hmac-md5-tests: Likewise.
22047         * modules/crypto/gc-hmac-sha1-tests: Likewise.
22048         * modules/crypto/gc-md2-tests: Likewise.
22049         * modules/crypto/gc-md4-tests: Likewise.
22050         * modules/crypto/gc-md5-tests: Likewise.
22051         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
22052         * modules/crypto/gc-rijndael-tests: Likewise.
22053         * modules/crypto/gc-sha1-tests: Likewise.
22054         * modules/crypto/gc-tests: Likewise.
22055         * modules/crypto/md2-tests: Likewise.
22056         * modules/crypto/md4-tests: Likewise.
22057         * modules/fcntl-h-tests: Likewise.
22058         * modules/floorf-tests: Likewise.
22059         * modules/floorl-tests: Likewise.
22060         * modules/frexp-nolibm-tests: Likewise.
22061         * modules/frexp-tests: Likewise.
22062         * modules/frexpl-nolibm-tests: Likewise.
22063         * modules/frexpl-tests: Likewise.
22064         * modules/getaddrinfo-tests: Likewise.
22065         * modules/inttypes-tests: Likewise.
22066         * modules/isfinite-tests: Likewise.
22067         * modules/isinf-tests: Likewise.
22068         * modules/ldexpl-tests: Likewise.
22069         * modules/locale-tests: Likewise.
22070         * modules/math-tests: Likewise.
22071         * modules/netdb-tests: Likewise.
22072         * modules/netinet_in-tests: Likewise.
22073         * modules/printf-frexp-tests: Likewise.
22074         * modules/printf-frexpl-tests: Likewise.
22075         * modules/priv-set-tests: Likewise.
22076         * modules/random_r-tests: Likewise.
22077         * modules/round-tests: Likewise.
22078         * modules/roundf-tests: Likewise.
22079         * modules/roundl-tests: Likewise.
22080         * modules/search-tests: Likewise.
22081         * modules/select-tests: Likewise.
22082         * modules/signal-tests: Likewise.
22083         * modules/stdbool-tests: Likewise.
22084         * modules/stddef-tests: Likewise.
22085         * modules/stdint-tests: Likewise.
22086         * modules/stdio-tests: Likewise.
22087         * modules/stdlib-tests: Likewise.
22088         * modules/string-tests: Likewise.
22089         * modules/strings-tests: Likewise.
22090         * modules/sys_select-tests: Likewise.
22091         * modules/sys_socket-tests: Likewise.
22092         * modules/sys_stat-tests: Likewise.
22093         * modules/sys_time-tests: Likewise.
22094         * modules/sys_utsname-tests: Likewise.
22095         * modules/sysexits-tests: Likewise.
22096         * modules/time-tests: Likewise.
22097         * modules/trunc-tests: Likewise.
22098         * modules/truncf-tests: Likewise.
22099         * modules/truncl-tests: Likewise.
22100         * modules/tsearch-tests: Likewise.
22101         * modules/unistd-tests: Likewise.
22102         * modules/wchar-tests: Likewise.
22103         * modules/wctype-tests: Likewise.
22104
22105         tests: fix license on several tests
22106         * tests/test-des.c: Update to GPLv3+.
22107         * tests/test-flock.c: Likewise.
22108         * tests/test-fsync.c: Likewise.
22109         * tests/test-futimens.h: Likewise.
22110         * tests/test-gc-arcfour.c: Likewise.
22111         * tests/test-gc-arctwo.c: Likewise.
22112         * tests/test-gc-des.c: Likewise.
22113         * tests/test-gc-hmac-md5.c: Likewise.
22114         * tests/test-gc-hmac-sha1.c: Likewise.
22115         * tests/test-gc-md2.c: Likewise.
22116         * tests/test-gc-md4.c: Likewise.
22117         * tests/test-gc-md5.c: Likewise.
22118         * tests/test-gc-pbkdf2-sha1.c: Likewise.
22119         * tests/test-gc-rijndael.c: Likewise.
22120         * tests/test-gc-sha1.c: Likewise.
22121         * tests/test-gc.c: Likewise.
22122         * tests/test-getcwd.c: Likewise.
22123         * tests/test-link.c: Likewise.
22124         * tests/test-link.h: Likewise.
22125         * tests/test-lutimens.h: Likewise.
22126         * tests/test-md2.c: Likewise.
22127         * tests/test-md4.c: Likewise.
22128         * tests/test-mkdir.h: Likewise.
22129         * tests/test-rename.c: Likewise.
22130         * tests/test-rename.h: Likewise.
22131         * tests/test-safe-alloc.c: Likewise.
22132         * tests/test-utimens-common.h: Likewise.
22133         * tests/test-utimens.h: Likewise.
22134
22135         maint: sync license texts
22136         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
22137         * doc/gpl-3.0.texi: Revert copyright year update.
22138         * doc/lgpl-3.0.texi: Likewise.
22139
22140 2009-12-29  Jim Meyering  <meyering@redhat.com>
22141
22142         update nearly all FSF copyright year lists to include 2009
22143         The files named by the following are exempted:
22144             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
22145               test -f "$dst" && { echo "$dst"; continue; }
22146               test -d "$dst" || continue
22147               echo "$dst"/$(basename "$src")
22148             done > exempt
22149             git ls-files tests/unictype >> exempt
22150         In the remaining files, convert to all-interval notation if
22151         - there is already at least one year interval like 2000-2003
22152         - the file is maintained by me
22153         - the file is in lib/uni*/, where that style already prevails
22154         Otherwise, use update-copyright's default.
22155
22156 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22157         and Eric Blake  <ebb9@byu.net>
22158
22159         tests: don't require debug system() to pass
22160         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
22161         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22162         * tests/test-unlink.h (test_unlink_func): Likewise.
22163         * tests/test-fstatat.c (main): ...into callers.
22164         * tests/test-lstat.c (main): Likewise.
22165         * tests/test-rmdir.c (main): Likewise.
22166         * tests/test-unlink.c (main): Likewise.
22167         * tests/test-unlinkat.c (main): Likewise.
22168         * tests/test-areadlink-with-size.c (main): Don't require a
22169         debug-only system call to pass, aiding cross-testing to mingw.
22170         * tests/test-areadlink.c (main): Likewise.
22171         * tests/test-areadlinkat-with-size.c (main): Likewise.
22172         * tests/test-areadlinkat.c (main): Likewise.
22173         * tests/test-canonicalize-lgpl.c (main): Likewise.
22174         * tests/test-canonicalize.c (main): Likewise.
22175         * tests/test-chown.c (main): Likewise.
22176         * tests/test-fchownat.c (main): Likewise.
22177         * tests/test-lchown.c (main): Likewise.
22178         * tests/test-fdutimensat.c (main): Likewise.
22179         * tests/test-futimens.c (main): Likewise.
22180         * tests/test-link.c (main): Likewise.
22181         * tests/test-linkat.c (main): Likewise.
22182         * tests/test-mkdir.c (main): Likewise.
22183         * tests/test-mkdirat.c (main): Likewise.
22184         * tests/test-mkfifo.c (main): Likewise.
22185         * tests/test-mkfifoat.c (main): Likewise.
22186         * tests/test-mknod.c (main): Likewise.
22187         * tests/test-readlink.c (main): Likewise.
22188         * tests/test-remove.c (main): Likewise.
22189         * tests/test-rename.c (main): Likewise.
22190         * tests/test-renameat.c (main): Likewise.
22191         * tests/test-symlink.c (main): Likewise.
22192         * tests/test-symlinkat.c (main): Likewise.
22193         * tests/test-utimens.c (main): Likewise.
22194         * tests/test-utimensat.c (main): Likewise.
22195
22196 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22197
22198         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
22199         on $(UNUSED_PARAMETER_H) to avoid build failure.
22200
22201 2009-12-28  Jim Meyering  <meyering@redhat.com>
22202
22203         update-copyright: you may specify a max. line length other than 72
22204         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
22205
22206         maint: use consistent FSF copyright line syntax
22207         * lib/posixtm.c: Add missing comma in FSF copyright line.
22208         * lib/posixtm.h: Likewise.
22209         * lib/getugroups.c: Add missing ", Inc.".
22210
22211         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
22212         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
22213         FSF copyright line.  Remove trailing blanks.
22214
22215 2009-12-28  Eric Blake  <ebb9@byu.net>
22216
22217         test-dup2: reduce dependencies
22218         * modules/cloexec (Configure.ac): Set witness.
22219         * modules/dup2-tests (Depends-on): Drop cloexec.
22220         * tests/test-dup2.c (main): Skip portion of test if cloexec module
22221         not present.
22222         Suggested by Bruno Haible.
22223
22224 2009-12-26  Bruno Haible  <bruno@clisp.org>
22225
22226         Remove an unneeded dependency.
22227         * modules/fseterr (Depends-on): Remove dup2.
22228
22229 2009-12-26  Eric Blake  <ebb9@byu.net>
22230
22231         tests: use macros.h in more places
22232         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
22233         (ASSERT_STREAM): Provide default of stderr.
22234         * tests/test-dirent-safer.c: Include macros.h, using alternate
22235         stream for assertions.
22236         * tests/test-dup-safer.c: Likewise.
22237         * tests/test-freopen-safer.c: Likewise.
22238         * tests/test-getopt.c: Likewise.
22239         * tests/test-openat-safer.c: Likewise.
22240         * tests/test-pipe.c: Likewise.
22241         * tests/test-popen-safer.c: Likewise.
22242         * modules/dirent-safer-tests (Files): Include macros.h.
22243         * modules/unistd-safer-tests (Files): Likewise.
22244         * modules/freopen-safer-tests (Files): Likewise.
22245         * modules/getopt-posix-tests (Files): Likewise.
22246         * modules/openat-safer-tests (Files): Likewise.
22247         * modules/pipe-tests (Files): Likewise.
22248
22249 2009-12-26  Bruno Haible  <bruno@clisp.org>
22250
22251         javacomp: Portability fix.
22252         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
22253         that it also works on Solaris.
22254
22255 2009-12-26  Bruno Haible  <bruno@clisp.org>
22256
22257         localename: Fix storage allocation of gl_locale_name_thread's result.
22258         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
22259         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
22260         all platforms that have 'uselocale'.
22261         (gl_locale_name_thread_unsafe): New function, extracted from
22262         gl_locale_name_thread.
22263         (gl_locale_name_thread): Call struniq on all platforms that have
22264         'uselocale'.
22265         * tests/test-localename.c (test_locale_name_thread): Check that the
22266         resulting strings are permanently allocated.
22267         * modules/localename-tests (Depends-on): Add strdup.
22268
22269 2009-12-26  Bruno Haible  <bruno@clisp.org>
22270
22271         * tests/test-localename.c (categories): Fill in the strings.
22272
22273 2009-12-26  Jim Meyering  <meyering@redhat.com>
22274
22275         isdir: complete the removal of m4/isdir.m4
22276         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
22277
22278         isdir: clean up, since at least grep still uses it
22279         * lib/isdir.c: Include "isdir.h".
22280         (S_ISDIR): Remove now-unneeded definition.
22281         * modules/isdir (Files): Add lib/isdir.h.
22282         * lib/isdir.h: New file, with declaration.
22283         * m4/isdir.m4: Remove file -- unneeded.
22284
22285 2009-12-25  Bruno Haible  <bruno@clisp.org>
22286
22287         selinux-h: Make generated .h files standalone.
22288         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
22289         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
22290         * lib/se-selinux.in.h: Likewise.
22291         * modules/selinux-h (Depends-on): Add unused-parameter.
22292         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
22293         selinux/selinux.h and selinux/context.h.
22294         Suggested by Eric Blake.
22295
22296 2009-12-25  Bruno Haible  <bruno@clisp.org>
22297
22298         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
22299         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
22300         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
22301         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
22302         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
22303
22304 2009-12-24  Bruno Haible  <bruno@clisp.org>
22305
22306         openat: Fix warning.
22307         * lib/openat-proc.c: Include <unistd.h>.
22308
22309 2009-12-24  Bruno Haible  <bruno@clisp.org>
22310
22311         New module 'unused-parameter'.
22312         * build-aux/unused-parameter.h: New file, extracted from earlier
22313         gnulib-common.m4.
22314         * modules/unused-parameter: New file.
22315         * lib/unistr.h: Include unused-parameter.h.
22316         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
22317         _GL_UNUSED.
22318         * modules/unistr/base (Depends-on): Add unused-parameter.
22319
22320 2009-12-24  Bruno Haible  <bruno@clisp.org>
22321
22322         Add missing dependencies to 'extensions' module.
22323         * m4/extensions.m4: Add comment.
22324         * modules/accept4 (Depends-on): Add extensions.
22325         * modules/dup3 (Depends-on): Likewise.
22326         * modules/fcntl (Depends-on): Likewise.
22327         * modules/futimens (Depends-on): Likewise.
22328         * modules/mknod (Depends-on): Likewise.
22329         * modules/pipe2 (Depends-on): Likewise.
22330         * modules/stat-time (Depends-on): Likewise.
22331         * modules/strcasestr-simple (Depends-on): Likewise.
22332         * modules/strsignal (Depends-on): Likewise.
22333         * modules/utimensat (Depends-on): Likewise.
22334         * modules/localcharset (Depends-on): Likewise. Needed because of
22335         gl_FCNTL_O_FLAGS.
22336         * modules/wcrtomb (Depends-on): Likewise. Needed because of
22337         AC_TYPE_MBSTATE_T.
22338         * modules/wcsnrtombs (Depends-on): Likewise.
22339         * modules/wcsrtombs (Depends-on): Likewise.
22340
22341 2009-12-24  Bruno Haible  <bruno@clisp.org>
22342
22343         binary-io: Avoid gcc warning due to SET_BINARY.
22344         * lib/binary-io.h (SET_BINARY): Cast the result to void.
22345         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
22346
22347 2009-12-24  Bruno Haible  <bruno@clisp.org>
22348
22349         Avoid future namespace pollution on glibc systems.
22350         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
22351         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
22352         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
22353         glibc systems.
22354
22355 2009-12-24  Bruno Haible  <bruno@clisp.org>
22356
22357         Refactor common macros used in tests.
22358         * tests/macros.h: New file.
22359         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
22360         and/or <stdlib.h>, if appropriate.
22361         (ASSERT, SIZEOF): Remove macros.
22362         * tests/test-areadlink-with-size.c: Likewise.
22363         * tests/test-areadlinkat.c: Likewise.
22364         * tests/test-areadlinkat-with-size.c: Likewise.
22365         * tests/test-argmatch.c: Likewise.
22366         * tests/test-argv-iter.c: Likewise.
22367         * tests/test-array-mergesort.c: Likewise.
22368         * tests/test-array_list.c: Likewise.
22369         * tests/test-array_oset.c: Likewise.
22370         * tests/test-avltree_list.c: Likewise.
22371         * tests/test-avltree_oset.c: Likewise.
22372         * tests/test-avltreehash_list.c: Likewise.
22373         * tests/test-base64.c: Likewise.
22374         * tests/test-binary-io.c: Likewise.
22375         * tests/test-bitrotate.c: Likewise.
22376         * tests/test-btowc.c: Likewise.
22377         * tests/test-byteswap.c: Likewise.
22378         * tests/test-c-ctype.c: Likewise.
22379         * tests/test-c-stack.c: Likewise.
22380         * tests/test-c-strcasecmp.c: Likewise.
22381         * tests/test-c-strcasestr.c: Likewise.
22382         * tests/test-c-strncasecmp.c: Likewise.
22383         * tests/test-c-strstr.c: Likewise.
22384         * tests/test-canonicalize-lgpl.c: Likewise.
22385         * tests/test-canonicalize.c: Likewise.
22386         * tests/test-carray_list.c: Likewise.
22387         * tests/test-ceilf1.c: Likewise.
22388         * tests/test-ceilf2.c: Likewise.
22389         * tests/test-ceill.c: Likewise.
22390         * tests/test-chown.c: Likewise.
22391         * tests/test-cloexec.c: Likewise.
22392         * tests/test-copy-acl.c: Likewise.
22393         * tests/test-copy-file.c: Likewise.
22394         * tests/test-count-one-bits.c: Likewise.
22395         * tests/test-dprintf-posix.c: Likewise.
22396         * tests/test-dup2.c: Likewise.
22397         * tests/test-dup3.c: Likewise.
22398         * tests/test-duplocale.c: Likewise.
22399         * tests/test-fbufmode.c: Likewise.
22400         * tests/test-fchdir.c: Likewise.
22401         * tests/test-fchownat.c: Likewise.
22402         * tests/test-fcntl-safer.c: Likewise.
22403         * tests/test-fcntl.c: Likewise.
22404         * tests/test-fdopendir.c: Likewise.
22405         * tests/test-fdutimensat.c: Likewise.
22406         * tests/test-fflush2.c: Likewise.
22407         * tests/test-file-has-acl.c: Likewise.
22408         * tests/test-filevercmp.c: Likewise.
22409         * tests/test-flock.c: Likewise.
22410         * tests/test-floorf1.c: Likewise.
22411         * tests/test-floorf2.c: Likewise.
22412         * tests/test-floorl.c: Likewise.
22413         * tests/test-fnmatch.c: Likewise.
22414         * tests/test-fopen.h: Likewise.
22415         * tests/test-fpending.c: Likewise.
22416         * tests/test-fprintf-posix.c: Likewise.
22417         * tests/test-fpurge.c: Likewise.
22418         * tests/test-freadable.c: Likewise.
22419         * tests/test-freadahead.c: Likewise.
22420         * tests/test-freading.c: Likewise.
22421         * tests/test-freadptr.c: Likewise.
22422         * tests/test-freadptr2.c: Likewise.
22423         * tests/test-freadseek.c: Likewise.
22424         * tests/test-freopen.c: Likewise.
22425         * tests/test-frexp.c: Likewise.
22426         * tests/test-frexpl.c: Likewise.
22427         * tests/test-fseek.c: Likewise.
22428         * tests/test-fseeko.c: Likewise.
22429         * tests/test-fstatat.c: Likewise.
22430         * tests/test-fstrcmp.c: Likewise.
22431         * tests/test-fsync.c: Likewise.
22432         * tests/test-ftell.c: Likewise.
22433         * tests/test-ftello.c: Likewise.
22434         * tests/test-func.c: Likewise.
22435         * tests/test-futimens.c: Likewise.
22436         * tests/test-fwritable.c: Likewise.
22437         * tests/test-fwriting.c: Likewise.
22438         * tests/test-getcwd.c: Likewise.
22439         * tests/test-getdate.c: Likewise.
22440         * tests/test-getdelim.c: Likewise.
22441         * tests/test-getdtablesize.c: Likewise.
22442         * tests/test-getgroups.c: Likewise.
22443         * tests/test-getline.c: Likewise.
22444         * tests/test-getndelim2.c: Likewise.
22445         * tests/test-glob.c: Likewise.
22446         * tests/test-hash.c: Likewise.
22447         * tests/test-i-ring.c: Likewise.
22448         * tests/test-iconv-utf.c: Likewise.
22449         * tests/test-iconv.c: Likewise.
22450         * tests/test-idpriv-drop.c: Likewise.
22451         * tests/test-idpriv-droptemp.c: Likewise.
22452         * tests/test-inet_ntop.c: Likewise.
22453         * tests/test-inet_pton.c: Likewise.
22454         * tests/test-isblank.c: Likewise.
22455         * tests/test-isfinite.c: Likewise.
22456         * tests/test-isinf.c: Likewise.
22457         * tests/test-isnan.c: Likewise.
22458         * tests/test-isnand.h: Likewise.
22459         * tests/test-isnanf.h: Likewise.
22460         * tests/test-isnanl.h: Likewise.
22461         * tests/test-lchown.c: Likewise.
22462         * tests/test-ldexpl.c: Likewise.
22463         * tests/test-link.c: Likewise.
22464         * tests/test-linkat.c: Likewise.
22465         * tests/test-linked_list.c: Likewise.
22466         * tests/test-linkedhash_list.c: Likewise.
22467         * tests/test-localename.c: Likewise.
22468         * tests/test-lseek.c: Likewise.
22469         * tests/test-lstat.c: Likewise.
22470         * tests/test-mbmemcasecmp.c: Likewise.
22471         * tests/test-mbmemcasecoll.c: Likewise.
22472         * tests/test-mbrtowc.c: Likewise.
22473         * tests/test-mbscasecmp.c: Likewise.
22474         * tests/test-mbscasestr1.c: Likewise.
22475         * tests/test-mbscasestr2.c: Likewise.
22476         * tests/test-mbscasestr3.c: Likewise.
22477         * tests/test-mbscasestr4.c: Likewise.
22478         * tests/test-mbschr.c: Likewise.
22479         * tests/test-mbscspn.c: Likewise.
22480         * tests/test-mbsinit.c: Likewise.
22481         * tests/test-mbsncasecmp.c: Likewise.
22482         * tests/test-mbsnrtowcs.c: Likewise.
22483         * tests/test-mbspbrk.c: Likewise.
22484         * tests/test-mbspcasecmp.c: Likewise.
22485         * tests/test-mbsrchr.c: Likewise.
22486         * tests/test-mbsrtowcs.c: Likewise.
22487         * tests/test-mbsspn.c: Likewise.
22488         * tests/test-mbsstr1.c: Likewise.
22489         * tests/test-mbsstr2.c: Likewise.
22490         * tests/test-mbsstr3.c: Likewise.
22491         * tests/test-memchr.c: Likewise.
22492         * tests/test-memchr2.c: Likewise.
22493         * tests/test-memcmp.c: Likewise.
22494         * tests/test-memmem.c: Likewise.
22495         * tests/test-memrchr.c: Likewise.
22496         * tests/test-mkdir.c: Likewise.
22497         * tests/test-mkdirat.c: Likewise.
22498         * tests/test-mkfifo.c: Likewise.
22499         * tests/test-mkfifoat.c: Likewise.
22500         * tests/test-mknod.c: Likewise.
22501         * tests/test-nanosleep.c: Likewise.
22502         * tests/test-nl_langinfo.c: Likewise.
22503         * tests/test-obstack-printf.c: Likewise.
22504         * tests/test-open.c: Likewise.
22505         * tests/test-openat.c: Likewise.
22506         * tests/test-pipe-filter-gi1.c: Likewise.
22507         * tests/test-pipe-filter-gi2-main.c: Likewise.
22508         * tests/test-pipe-filter-ii1.c: Likewise.
22509         * tests/test-pipe-filter-ii2-main.c: Likewise.
22510         * tests/test-pipe2.c: Likewise.
22511         * tests/test-popen.h: Likewise.
22512         * tests/test-posixtm.c: Likewise.
22513         * tests/test-pread.c: Likewise.
22514         * tests/test-printf-frexp.c: Likewise.
22515         * tests/test-printf-frexpl.c: Likewise.
22516         * tests/test-printf-posix.c: Likewise.
22517         * tests/test-priv-set.c: Likewise.
22518         * tests/test-quotearg.c: Likewise.
22519         * tests/test-random_r.c: Likewise.
22520         * tests/test-rawmemchr.c: Likewise.
22521         * tests/test-rbtree_list.c: Likewise.
22522         * tests/test-rbtree_oset.c: Likewise.
22523         * tests/test-rbtreehash_list.c: Likewise.
22524         * tests/test-readlink.c: Likewise.
22525         * tests/test-remove.c: Likewise.
22526         * tests/test-rename.c: Likewise.
22527         * tests/test-renameat.c: Likewise.
22528         * tests/test-rmdir.c: Likewise.
22529         * tests/test-round1.c: Likewise.
22530         * tests/test-roundf1.c: Likewise.
22531         * tests/test-roundl.c: Likewise.
22532         * tests/test-safe-alloc.c: Likewise.
22533         * tests/test-sameacls.c: Likewise.
22534         * tests/test-set-mode-acl.c: Likewise.
22535         * tests/test-setenv.c: Likewise.
22536         * tests/test-sigaction.c: Likewise.
22537         * tests/test-signbit.c: Likewise.
22538         * tests/test-sleep.c: Likewise.
22539         * tests/test-snprintf-posix.c: Likewise.
22540         * tests/test-snprintf.c: Likewise.
22541         * tests/test-sprintf-posix.c: Likewise.
22542         * tests/test-stat-time.c: Likewise.
22543         * tests/test-stat.c: Likewise.
22544         * tests/test-strcasestr.c: Likewise.
22545         * tests/test-strchrnul.c: Likewise.
22546         * tests/test-strerror.c: Likewise.
22547         * tests/test-striconv.c: Likewise.
22548         * tests/test-striconveh.c: Likewise.
22549         * tests/test-striconveha.c: Likewise.
22550         * tests/test-strsignal.c: Likewise.
22551         * tests/test-strstr.c: Likewise.
22552         * tests/test-strtod.c: Likewise.
22553         * tests/test-strverscmp.c: Likewise.
22554         * tests/test-symlink.c: Likewise.
22555         * tests/test-symlinkat.c: Likewise.
22556         * tests/test-trunc1.c: Likewise.
22557         * tests/test-trunc2.c: Likewise.
22558         * tests/test-truncf1.c: Likewise.
22559         * tests/test-truncf2.c: Likewise.
22560         * tests/test-truncl.c: Likewise.
22561         * tests/test-uname.c: Likewise.
22562         * tests/test-unlink.c: Likewise.
22563         * tests/test-unlinkat.c: Likewise.
22564         * tests/test-unsetenv.c: Likewise.
22565         * tests/test-usleep.c: Likewise.
22566         * tests/test-utimens.c: Likewise.
22567         * tests/test-utimensat.c: Likewise.
22568         * tests/test-vasnprintf-posix.c: Likewise.
22569         * tests/test-vasnprintf-posix2.c: Likewise.
22570         * tests/test-vasnprintf.c: Likewise.
22571         * tests/test-vasprintf-posix.c: Likewise.
22572         * tests/test-vasprintf.c: Likewise.
22573         * tests/test-vdprintf-posix.c: Likewise.
22574         * tests/test-vfprintf-posix.c: Likewise.
22575         * tests/test-vprintf-posix.c: Likewise.
22576         * tests/test-vsnprintf-posix.c: Likewise.
22577         * tests/test-vsnprintf.c: Likewise.
22578         * tests/test-vsprintf-posix.c: Likewise.
22579         * tests/test-wcrtomb.c: Likewise.
22580         * tests/test-wcsnrtombs.c: Likewise.
22581         * tests/test-wcsrtombs.c: Likewise.
22582         * tests/test-wctype.c: Likewise.
22583         * tests/test-wcwidth.c: Likewise.
22584         * tests/test-xfprintf-posix.c: Likewise.
22585         * tests/test-xmemdup0.c: Likewise.
22586         * tests/test-xprintf-posix.c: Likewise.
22587         * tests/test-xvasprintf.c: Likewise.
22588         * tests/unicase/test-locale-language.c: Likewise.
22589         * tests/unicase/test-mapping-part1.h: Likewise.
22590         * tests/unicase/test-predicate-part1.h: Likewise.
22591         * tests/unicase/test-u8-casecmp.c: Likewise.
22592         * tests/unicase/test-u8-casecoll.c: Likewise.
22593         * tests/unicase/test-u8-casefold.c: Likewise.
22594         * tests/unicase/test-u8-is-cased.c: Likewise.
22595         * tests/unicase/test-u8-is-casefolded.c: Likewise.
22596         * tests/unicase/test-u8-is-lowercase.c: Likewise.
22597         * tests/unicase/test-u8-is-titlecase.c: Likewise.
22598         * tests/unicase/test-u8-is-uppercase.c: Likewise.
22599         * tests/unicase/test-u8-tolower.c: Likewise.
22600         * tests/unicase/test-u8-totitle.c: Likewise.
22601         * tests/unicase/test-u8-toupper.c: Likewise.
22602         * tests/unicase/test-u16-casecmp.c: Likewise.
22603         * tests/unicase/test-u16-casecoll.c: Likewise.
22604         * tests/unicase/test-u16-casefold.c: Likewise.
22605         * tests/unicase/test-u16-is-cased.c: Likewise.
22606         * tests/unicase/test-u16-is-casefolded.c: Likewise.
22607         * tests/unicase/test-u16-is-lowercase.c: Likewise.
22608         * tests/unicase/test-u16-is-titlecase.c: Likewise.
22609         * tests/unicase/test-u16-is-uppercase.c: Likewise.
22610         * tests/unicase/test-u16-tolower.c: Likewise.
22611         * tests/unicase/test-u16-totitle.c: Likewise.
22612         * tests/unicase/test-u16-toupper.c: Likewise.
22613         * tests/unicase/test-u32-casecmp.c: Likewise.
22614         * tests/unicase/test-u32-casecoll.c: Likewise.
22615         * tests/unicase/test-u32-casefold.c: Likewise.
22616         * tests/unicase/test-u32-is-cased.c: Likewise.
22617         * tests/unicase/test-u32-is-casefolded.c: Likewise.
22618         * tests/unicase/test-u32-is-lowercase.c: Likewise.
22619         * tests/unicase/test-u32-is-titlecase.c: Likewise.
22620         * tests/unicase/test-u32-is-uppercase.c: Likewise.
22621         * tests/unicase/test-u32-tolower.c: Likewise.
22622         * tests/unicase/test-u32-totitle.c: Likewise.
22623         * tests/unicase/test-u32-toupper.c: Likewise.
22624         * tests/unicase/test-ulc-casecmp.c: Likewise.
22625         * tests/unicase/test-ulc-casecoll.c: Likewise.
22626         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
22627         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
22628         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
22629         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
22630         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
22631         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
22632         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
22633         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
22634         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
22635         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
22636         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
22637         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
22638         * tests/unictype/test-bidi_byname.c: Likewise.
22639         * tests/unictype/test-bidi_name.c: Likewise.
22640         * tests/unictype/test-bidi_of.c: Likewise.
22641         * tests/unictype/test-bidi_test.c: Likewise.
22642         * tests/unictype/test-block_list.c: Likewise.
22643         * tests/unictype/test-block_of.c: Likewise.
22644         * tests/unictype/test-block_test.c: Likewise.
22645         * tests/unictype/test-categ_and.c: Likewise.
22646         * tests/unictype/test-categ_and_not.c: Likewise.
22647         * tests/unictype/test-categ_byname.c: Likewise.
22648         * tests/unictype/test-categ_name.c: Likewise.
22649         * tests/unictype/test-categ_none.c: Likewise.
22650         * tests/unictype/test-categ_of.c: Likewise.
22651         * tests/unictype/test-categ_or.c: Likewise.
22652         * tests/unictype/test-categ_test_withtable.c: Likewise.
22653         * tests/unictype/test-combining.c: Likewise.
22654         * tests/unictype/test-decdigit.c: Likewise.
22655         * tests/unictype/test-digit.c: Likewise.
22656         * tests/unictype/test-mirror.c: Likewise.
22657         * tests/unictype/test-numeric.c: Likewise.
22658         * tests/unictype/test-pr_byname.c: Likewise.
22659         * tests/unictype/test-pr_test.c: Likewise.
22660         * tests/unictype/test-predicate-part1.h: Likewise.
22661         * tests/unictype/test-scripts.c: Likewise.
22662         * tests/unictype/test-sy_c_ident.c: Likewise.
22663         * tests/unictype/test-sy_java_ident.c: Likewise.
22664         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
22665         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
22666         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
22667         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
22668         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
22669         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
22670         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
22671         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
22672         * tests/uninorm/test-canonical-decomposition.c: Likewise.
22673         * tests/uninorm/test-compat-decomposition.c: Likewise.
22674         * tests/uninorm/test-composition.c: Likewise.
22675         * tests/uninorm/test-decomposing-form.c: Likewise.
22676         * tests/uninorm/test-decomposition.c: Likewise.
22677         * tests/uninorm/test-u8-nfc.c: Likewise.
22678         * tests/uninorm/test-u8-nfd.c: Likewise.
22679         * tests/uninorm/test-u8-nfkc.c: Likewise.
22680         * tests/uninorm/test-u8-nfkd.c: Likewise.
22681         * tests/uninorm/test-u8-normcmp.c: Likewise.
22682         * tests/uninorm/test-u8-normcoll.c: Likewise.
22683         * tests/uninorm/test-u16-nfc.c: Likewise.
22684         * tests/uninorm/test-u16-nfd.c: Likewise.
22685         * tests/uninorm/test-u16-nfkc.c: Likewise.
22686         * tests/uninorm/test-u16-nfkd.c: Likewise.
22687         * tests/uninorm/test-u16-normcmp.c: Likewise.
22688         * tests/uninorm/test-u16-normcoll.c: Likewise.
22689         * tests/uninorm/test-u32-nfc.c: Likewise.
22690         * tests/uninorm/test-u32-nfd.c: Likewise.
22691         * tests/uninorm/test-u32-nfkc.c: Likewise.
22692         * tests/uninorm/test-u32-nfkd.c: Likewise.
22693         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22694         * tests/uninorm/test-u32-normcmp.c: Likewise.
22695         * tests/uninorm/test-u32-normcoll.c: Likewise.
22696         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
22697         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
22698         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
22699         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
22700         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
22701         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
22702         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
22703         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
22704         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
22705         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
22706         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
22707         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
22708         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
22709         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
22710         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
22711         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
22712         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
22713         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
22714         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
22715         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
22716         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
22717         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
22718         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
22719         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
22720         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
22721         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
22722         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
22723         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
22724         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
22725         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
22726         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
22727         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
22728         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
22729         * tests/uniwidth/test-u8-strwidth.c: Likewise.
22730         * tests/uniwidth/test-u8-width.c: Likewise.
22731         * tests/uniwidth/test-u16-strwidth.c: Likewise.
22732         * tests/uniwidth/test-u16-width.c: Likewise.
22733         * tests/uniwidth/test-u32-strwidth.c: Likewise.
22734         * tests/uniwidth/test-u32-width.c: Likewise.
22735         * tests/uniwidth/test-uc_width.c: Likewise.
22736         * tests/uniwidth/test-uc_width2.c: Likewise.
22737         * modules/acl-tests (Files): Add tests/macros.h.
22738         * modules/areadlink-tests (Files): Likewise.
22739         * modules/areadlink-with-size-tests (Files): Likewise.
22740         * modules/areadlinkat-tests (Files): Likewise.
22741         * modules/areadlinkat-with-size-tests (Files): Likewise.
22742         * modules/argmatch-tests (Files): Likewise.
22743         * modules/argv-iter-tests (Files): Likewise.
22744         * modules/array-list-tests (Files): Likewise.
22745         * modules/array-mergesort-tests (Files): Likewise.
22746         * modules/array-oset-tests (Files): Likewise.
22747         * modules/avltree-list-tests (Files): Likewise.
22748         * modules/avltree-oset-tests (Files): Likewise.
22749         * modules/avltreehash-list-tests (Files): Likewise.
22750         * modules/base64-tests (Files): Likewise.
22751         * modules/binary-io-tests (Files): Likewise.
22752         * modules/bitrotate-tests (Files): Likewise.
22753         * modules/btowc-tests (Files): Likewise.
22754         * modules/byteswap-tests (Files): Likewise.
22755         * modules/c-ctype-tests (Files): Likewise.
22756         * modules/c-stack-tests (Files): Likewise.
22757         * modules/c-strcase-tests (Files): Likewise.
22758         * modules/c-strcasestr-tests (Files): Likewise.
22759         * modules/c-strstr-tests (Files): Likewise.
22760         * modules/canonicalize-lgpl-tests (Files): Likewise.
22761         * modules/canonicalize-tests (Files): Likewise.
22762         * modules/carray-list-tests (Files): Likewise.
22763         * modules/ceilf-tests (Files): Likewise.
22764         * modules/ceill-tests (Files): Likewise.
22765         * modules/chown-tests (Files): Likewise.
22766         * modules/cloexec-tests (Files): Likewise.
22767         * modules/copy-file-tests (Files): Likewise.
22768         * modules/count-one-bits-tests (Files): Likewise.
22769         * modules/dprintf-posix-tests (Files): Likewise.
22770         * modules/dup2-tests (Files): Likewise.
22771         * modules/dup3-tests (Files): Likewise.
22772         * modules/duplocale-tests (Files): Likewise.
22773         * modules/fbufmode-tests (Files): Likewise.
22774         * modules/fchdir-tests (Files): Likewise.
22775         * modules/fcntl-safer-tests (Files): Likewise.
22776         * modules/fcntl-tests (Files): Likewise.
22777         * modules/fdopendir-tests (Files): Likewise.
22778         * modules/fdutimensat-tests (Files): Likewise.
22779         * modules/fflush-tests (Files): Likewise.
22780         * modules/filevercmp-tests (Files): Likewise.
22781         * modules/flock-tests (Files): Likewise.
22782         * modules/floorf-tests (Files): Likewise.
22783         * modules/floorl-tests (Files): Likewise.
22784         * modules/fnmatch-tests (Files): Likewise.
22785         * modules/fopen-safer-tests (Files): Likewise.
22786         * modules/fopen-tests (Files): Likewise.
22787         * modules/fpending-tests (Files): Likewise.
22788         * modules/fprintf-posix-tests (Files): Likewise.
22789         * modules/fpurge-tests (Files): Likewise.
22790         * modules/freadable-tests (Files): Likewise.
22791         * modules/freadahead-tests (Files): Likewise.
22792         * modules/freading-tests (Files): Likewise.
22793         * modules/freadptr-tests (Files): Likewise.
22794         * modules/freadseek-tests (Files): Likewise.
22795         * modules/freopen-tests (Files): Likewise.
22796         * modules/frexp-nolibm-tests (Files): Likewise.
22797         * modules/frexp-tests (Files): Likewise.
22798         * modules/frexpl-nolibm-tests (Files): Likewise.
22799         * modules/frexpl-tests (Files): Likewise.
22800         * modules/fseek-tests (Files): Likewise.
22801         * modules/fseeko-tests (Files): Likewise.
22802         * modules/fstrcmp-tests (Files): Likewise.
22803         * modules/fsync-tests (Files): Likewise.
22804         * modules/ftell-tests (Files): Likewise.
22805         * modules/ftello-tests (Files): Likewise.
22806         * modules/func-tests (Files): Likewise.
22807         * modules/futimens-tests (Files): Likewise.
22808         * modules/fwritable-tests (Files): Likewise.
22809         * modules/fwriting-tests (Files): Likewise.
22810         * modules/getcwd-tests (Files): Likewise.
22811         * modules/getdate-tests (Files): Likewise.
22812         * modules/getdelim-tests (Files): Likewise.
22813         * modules/getdtablesize-tests (Files): Likewise.
22814         * modules/getgroups-tests (Files): Likewise.
22815         * modules/getline-tests (Files): Likewise.
22816         * modules/getndelim2-tests (Files): Likewise.
22817         * modules/glob-tests (Files): Likewise.
22818         * modules/hash-tests (Files): Likewise.
22819         * modules/i-ring-tests (Files): Likewise.
22820         * modules/iconv-tests (Files): Likewise.
22821         * modules/iconv_open-utf-tests (Files): Likewise.
22822         * modules/idpriv-drop-tests (Files): Likewise.
22823         * modules/idpriv-droptemp-tests (Files): Likewise.
22824         * modules/inet_ntop-tests (Files): Likewise.
22825         * modules/inet_pton-tests (Files): Likewise.
22826         * modules/isblank-tests (Files): Likewise.
22827         * modules/isfinite-tests (Files): Likewise.
22828         * modules/isinf-tests (Files): Likewise.
22829         * modules/isnan-tests (Files): Likewise.
22830         * modules/isnand-nolibm-tests (Files): Likewise.
22831         * modules/isnand-tests (Files): Likewise.
22832         * modules/isnanf-nolibm-tests (Files): Likewise.
22833         * modules/isnanf-tests (Files): Likewise.
22834         * modules/isnanl-nolibm-tests (Files): Likewise.
22835         * modules/isnanl-tests (Files): Likewise.
22836         * modules/lchown-tests (Files): Likewise.
22837         * modules/ldexpl-tests (Files): Likewise.
22838         * modules/link-tests (Files): Likewise.
22839         * modules/linkat-tests (Files): Likewise.
22840         * modules/linked-list-tests (Files): Likewise.
22841         * modules/linkedhash-list-tests (Files): Likewise.
22842         * modules/localename-tests (Files): Likewise.
22843         * modules/lseek-tests (Files): Likewise.
22844         * modules/lstat-tests (Files): Likewise.
22845         * modules/mbmemcasecmp-tests (Files): Likewise.
22846         * modules/mbmemcasecoll-tests (Files): Likewise.
22847         * modules/mbrtowc-tests (Files): Likewise.
22848         * modules/mbscasecmp-tests (Files): Likewise.
22849         * modules/mbscasestr-tests (Files): Likewise.
22850         * modules/mbschr-tests (Files): Likewise.
22851         * modules/mbscspn-tests (Files): Likewise.
22852         * modules/mbsinit-tests (Files): Likewise.
22853         * modules/mbsncasecmp-tests (Files): Likewise.
22854         * modules/mbsnrtowcs-tests (Files): Likewise.
22855         * modules/mbspbrk-tests (Files): Likewise.
22856         * modules/mbspcasecmp-tests (Files): Likewise.
22857         * modules/mbsrchr-tests (Files): Likewise.
22858         * modules/mbsrtowcs-tests (Files): Likewise.
22859         * modules/mbsspn-tests (Files): Likewise.
22860         * modules/mbsstr-tests (Files): Likewise.
22861         * modules/memchr-tests (Files): Likewise.
22862         * modules/memchr2-tests (Files): Likewise.
22863         * modules/memcmp-tests (Files): Likewise.
22864         * modules/memmem-tests (Files): Likewise.
22865         * modules/memrchr-tests (Files): Likewise.
22866         * modules/mkdir-tests (Files): Likewise.
22867         * modules/mkfifo-tests (Files): Likewise.
22868         * modules/mkfifoat-tests (Files): Likewise.
22869         * modules/mknod-tests (Files): Likewise.
22870         * modules/nanosleep-tests (Files): Likewise.
22871         * modules/nl_langinfo-tests (Files): Likewise.
22872         * modules/obstack-printf-tests (Files): Likewise.
22873         * modules/open-tests (Files): Likewise.
22874         * modules/openat-tests (Files): Likewise.
22875         * modules/pipe-filter-gi-tests (Files): Likewise.
22876         * modules/pipe-filter-ii-tests (Files): Likewise.
22877         * modules/pipe2-tests (Files): Likewise.
22878         * modules/popen-safer-tests (Files): Likewise.
22879         * modules/popen-tests (Files): Likewise.
22880         * modules/posixtm-tests (Files): Likewise.
22881         * modules/pread-tests (Files): Likewise.
22882         * modules/printf-frexp-tests (Files): Likewise.
22883         * modules/printf-frexpl-tests (Files): Likewise.
22884         * modules/printf-posix-tests (Files): Likewise.
22885         * modules/priv-set-tests (Files): Likewise.
22886         * modules/quotearg-tests (Files): Likewise.
22887         * modules/random_r-tests (Files): Likewise.
22888         * modules/rawmemchr-tests (Files): Likewise.
22889         * modules/rbtree-list-tests (Files): Likewise.
22890         * modules/rbtree-oset-tests (Files): Likewise.
22891         * modules/rbtreehash-list-tests (Files): Likewise.
22892         * modules/readlink-tests (Files): Likewise.
22893         * modules/remove-tests (Files): Likewise.
22894         * modules/rename-tests (Files): Likewise.
22895         * modules/renameat-tests (Files): Likewise.
22896         * modules/rmdir-tests (Files): Likewise.
22897         * modules/round-tests (Files): Likewise.
22898         * modules/roundf-tests (Files): Likewise.
22899         * modules/roundl-tests (Files): Likewise.
22900         * modules/safe-alloc-tests (Files): Likewise.
22901         * modules/setenv-tests (Files): Likewise.
22902         * modules/sigaction-tests (Files): Likewise.
22903         * modules/signbit-tests (Files): Likewise.
22904         * modules/sleep-tests (Files): Likewise.
22905         * modules/snprintf-posix-tests (Files): Likewise.
22906         * modules/snprintf-tests (Files): Likewise.
22907         * modules/sprintf-posix-tests (Files): Likewise.
22908         * modules/stat-tests (Files): Likewise.
22909         * modules/stat-time-tests (Files): Likewise.
22910         * modules/strcasestr-tests (Files): Likewise.
22911         * modules/strchrnul-tests (Files): Likewise.
22912         * modules/strerror-tests (Files): Likewise.
22913         * modules/striconv-tests (Files): Likewise.
22914         * modules/striconveh-tests (Files): Likewise.
22915         * modules/striconveha-tests (Files): Likewise.
22916         * modules/strsignal-tests (Files): Likewise.
22917         * modules/strstr-tests (Files): Likewise.
22918         * modules/strtod-tests (Files): Likewise.
22919         * modules/strverscmp-tests (Files): Likewise.
22920         * modules/symlink-tests (Files): Likewise.
22921         * modules/symlinkat-tests (Files): Likewise.
22922         * modules/trunc-tests (Files): Likewise.
22923         * modules/truncf-tests (Files): Likewise.
22924         * modules/truncl-tests (Files): Likewise.
22925         * modules/uname-tests (Files): Likewise.
22926         * modules/unicase/cased-tests (Files): Likewise.
22927         * modules/unicase/ignorable-tests (Files): Likewise.
22928         * modules/unicase/locale-language-tests (Files): Likewise.
22929         * modules/unicase/tolower-tests (Files): Likewise.
22930         * modules/unicase/totitle-tests (Files): Likewise.
22931         * modules/unicase/toupper-tests (Files): Likewise.
22932         * modules/unicase/u8-casecmp-tests (Files): Likewise.
22933         * modules/unicase/u8-casecoll-tests (Files): Likewise.
22934         * modules/unicase/u8-casefold-tests (Files): Likewise.
22935         * modules/unicase/u8-is-cased-tests (Files): Likewise.
22936         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
22937         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
22938         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
22939         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
22940         * modules/unicase/u8-tolower-tests (Files): Likewise.
22941         * modules/unicase/u8-totitle-tests (Files): Likewise.
22942         * modules/unicase/u8-toupper-tests (Files): Likewise.
22943         * modules/unicase/u16-casecmp-tests (Files): Likewise.
22944         * modules/unicase/u16-casecoll-tests (Files): Likewise.
22945         * modules/unicase/u16-casefold-tests (Files): Likewise.
22946         * modules/unicase/u16-is-cased-tests (Files): Likewise.
22947         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
22948         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
22949         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
22950         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
22951         * modules/unicase/u16-tolower-tests (Files): Likewise.
22952         * modules/unicase/u16-totitle-tests (Files): Likewise.
22953         * modules/unicase/u16-toupper-tests (Files): Likewise.
22954         * modules/unicase/u32-casecmp-tests (Files): Likewise.
22955         * modules/unicase/u32-casecoll-tests (Files): Likewise.
22956         * modules/unicase/u32-casefold-tests (Files): Likewise.
22957         * modules/unicase/u32-is-cased-tests (Files): Likewise.
22958         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
22959         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
22960         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
22961         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
22962         * modules/unicase/u32-tolower-tests (Files): Likewise.
22963         * modules/unicase/u32-totitle-tests (Files): Likewise.
22964         * modules/unicase/u32-toupper-tests (Files): Likewise.
22965         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
22966         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
22967         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
22968         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
22969         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
22970         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
22971         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
22972         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
22973         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
22974         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
22975         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
22976         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
22977         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
22978         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
22979         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
22980         * modules/unictype/bidicategory-name-tests (Files): Likewise.
22981         * modules/unictype/bidicategory-of-tests (Files): Likewise.
22982         * modules/unictype/bidicategory-test-tests (Files): Likewise.
22983         * modules/unictype/block-list-tests (Files): Likewise.
22984         * modules/unictype/block-of-tests (Files): Likewise.
22985         * modules/unictype/block-test-tests (Files): Likewise.
22986         * modules/unictype/category-C-tests (Files): Likewise.
22987         * modules/unictype/category-Cc-tests (Files): Likewise.
22988         * modules/unictype/category-Cf-tests (Files): Likewise.
22989         * modules/unictype/category-Cn-tests (Files): Likewise.
22990         * modules/unictype/category-Co-tests (Files): Likewise.
22991         * modules/unictype/category-Cs-tests (Files): Likewise.
22992         * modules/unictype/category-L-tests (Files): Likewise.
22993         * modules/unictype/category-Ll-tests (Files): Likewise.
22994         * modules/unictype/category-Lm-tests (Files): Likewise.
22995         * modules/unictype/category-Lo-tests (Files): Likewise.
22996         * modules/unictype/category-Lt-tests (Files): Likewise.
22997         * modules/unictype/category-Lu-tests (Files): Likewise.
22998         * modules/unictype/category-M-tests (Files): Likewise.
22999         * modules/unictype/category-Mc-tests (Files): Likewise.
23000         * modules/unictype/category-Me-tests (Files): Likewise.
23001         * modules/unictype/category-Mn-tests (Files): Likewise.
23002         * modules/unictype/category-N-tests (Files): Likewise.
23003         * modules/unictype/category-Nd-tests (Files): Likewise.
23004         * modules/unictype/category-Nl-tests (Files): Likewise.
23005         * modules/unictype/category-No-tests (Files): Likewise.
23006         * modules/unictype/category-P-tests (Files): Likewise.
23007         * modules/unictype/category-Pc-tests (Files): Likewise.
23008         * modules/unictype/category-Pd-tests (Files): Likewise.
23009         * modules/unictype/category-Pe-tests (Files): Likewise.
23010         * modules/unictype/category-Pf-tests (Files): Likewise.
23011         * modules/unictype/category-Pi-tests (Files): Likewise.
23012         * modules/unictype/category-Po-tests (Files): Likewise.
23013         * modules/unictype/category-Ps-tests (Files): Likewise.
23014         * modules/unictype/category-S-tests (Files): Likewise.
23015         * modules/unictype/category-Sc-tests (Files): Likewise.
23016         * modules/unictype/category-Sk-tests (Files): Likewise.
23017         * modules/unictype/category-Sm-tests (Files): Likewise.
23018         * modules/unictype/category-So-tests (Files): Likewise.
23019         * modules/unictype/category-Z-tests (Files): Likewise.
23020         * modules/unictype/category-Zl-tests (Files): Likewise.
23021         * modules/unictype/category-Zp-tests (Files): Likewise.
23022         * modules/unictype/category-Zs-tests (Files): Likewise.
23023         * modules/unictype/category-and-not-tests (Files): Likewise.
23024         * modules/unictype/category-and-tests (Files): Likewise.
23025         * modules/unictype/category-byname-tests (Files): Likewise.
23026         * modules/unictype/category-name-tests (Files): Likewise.
23027         * modules/unictype/category-none-tests (Files): Likewise.
23028         * modules/unictype/category-of-tests (Files): Likewise.
23029         * modules/unictype/category-or-tests (Files): Likewise.
23030         * modules/unictype/category-test-withtable-tests (Files): Likewise.
23031         * modules/unictype/combining-class-tests (Files): Likewise.
23032         * modules/unictype/ctype-alnum-tests (Files): Likewise.
23033         * modules/unictype/ctype-alpha-tests (Files): Likewise.
23034         * modules/unictype/ctype-blank-tests (Files): Likewise.
23035         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
23036         * modules/unictype/ctype-digit-tests (Files): Likewise.
23037         * modules/unictype/ctype-graph-tests (Files): Likewise.
23038         * modules/unictype/ctype-lower-tests (Files): Likewise.
23039         * modules/unictype/ctype-print-tests (Files): Likewise.
23040         * modules/unictype/ctype-punct-tests (Files): Likewise.
23041         * modules/unictype/ctype-space-tests (Files): Likewise.
23042         * modules/unictype/ctype-upper-tests (Files): Likewise.
23043         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
23044         * modules/unictype/decimal-digit-tests (Files): Likewise.
23045         * modules/unictype/digit-tests (Files): Likewise.
23046         * modules/unictype/mirror-tests (Files): Likewise.
23047         * modules/unictype/numeric-tests (Files): Likewise.
23048         * modules/unictype/property-alphabetic-tests (Files): Likewise.
23049         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
23050         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
23051         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
23052         Likewise.
23053         * modules/unictype/property-bidi-block-separator-tests (Files):
23054         Likewise.
23055         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
23056         Likewise.
23057         * modules/unictype/property-bidi-common-separator-tests (Files):
23058         Likewise.
23059         * modules/unictype/property-bidi-control-tests (Files): Likewise.
23060         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
23061         Likewise.
23062         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
23063         Likewise.
23064         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
23065         Likewise.
23066         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
23067         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
23068         Likewise.
23069         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
23070         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
23071         Likewise.
23072         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
23073         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
23074         * modules/unictype/property-bidi-segment-separator-tests (Files):
23075         Likewise.
23076         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
23077         * modules/unictype/property-byname-tests (Files): Likewise.
23078         * modules/unictype/property-combining-tests (Files): Likewise.
23079         * modules/unictype/property-composite-tests (Files): Likewise.
23080         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
23081         * modules/unictype/property-dash-tests (Files): Likewise.
23082         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
23083         * modules/unictype/property-default-ignorable-code-point-tests (Files):
23084         Likewise.
23085         * modules/unictype/property-deprecated-tests (Files): Likewise.
23086         * modules/unictype/property-diacritic-tests (Files): Likewise.
23087         * modules/unictype/property-extender-tests (Files): Likewise.
23088         * modules/unictype/property-format-control-tests (Files): Likewise.
23089         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
23090         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
23091         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
23092         * modules/unictype/property-hex-digit-tests (Files): Likewise.
23093         * modules/unictype/property-hyphen-tests (Files): Likewise.
23094         * modules/unictype/property-id-continue-tests (Files): Likewise.
23095         * modules/unictype/property-id-start-tests (Files): Likewise.
23096         * modules/unictype/property-ideographic-tests (Files): Likewise.
23097         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
23098         * modules/unictype/property-ids-trinary-operator-tests (Files):
23099         Likewise.
23100         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
23101         * modules/unictype/property-iso-control-tests (Files): Likewise.
23102         * modules/unictype/property-join-control-tests (Files): Likewise.
23103         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
23104         * modules/unictype/property-line-separator-tests (Files): Likewise.
23105         * modules/unictype/property-logical-order-exception-tests (Files):
23106         Likewise.
23107         * modules/unictype/property-lowercase-tests (Files): Likewise.
23108         * modules/unictype/property-math-tests (Files): Likewise.
23109         * modules/unictype/property-non-break-tests (Files): Likewise.
23110         * modules/unictype/property-not-a-character-tests (Files): Likewise.
23111         * modules/unictype/property-numeric-tests (Files): Likewise.
23112         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
23113         * modules/unictype/property-other-default-ignorable-code-point-tests
23114         (Files): Likewise.
23115         * modules/unictype/property-other-grapheme-extend-tests (Files):
23116         Likewise.
23117         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
23118         * modules/unictype/property-other-id-start-tests (Files): Likewise.
23119         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
23120         * modules/unictype/property-other-math-tests (Files): Likewise.
23121         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
23122         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
23123         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
23124         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
23125         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
23126         * modules/unictype/property-private-use-tests (Files): Likewise.
23127         * modules/unictype/property-punctuation-tests (Files): Likewise.
23128         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
23129         * modules/unictype/property-radical-tests (Files): Likewise.
23130         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
23131         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
23132         * modules/unictype/property-space-tests (Files): Likewise.
23133         * modules/unictype/property-terminal-punctuation-tests (Files):
23134         Likewise.
23135         * modules/unictype/property-test-tests (Files): Likewise.
23136         * modules/unictype/property-titlecase-tests (Files): Likewise.
23137         * modules/unictype/property-unassigned-code-value-tests (Files):
23138         Likewise.
23139         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
23140         * modules/unictype/property-uppercase-tests (Files): Likewise.
23141         * modules/unictype/property-variation-selector-tests (Files): Likewise.
23142         * modules/unictype/property-white-space-tests (Files): Likewise.
23143         * modules/unictype/property-xid-continue-tests (Files): Likewise.
23144         * modules/unictype/property-xid-start-tests (Files): Likewise.
23145         * modules/unictype/property-zero-width-tests (Files): Likewise.
23146         * modules/unictype/scripts-tests (Files): Likewise.
23147         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
23148         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
23149         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
23150         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
23151         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
23152         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
23153         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
23154         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
23155         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
23156         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
23157         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
23158         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
23159         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
23160         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
23161         * modules/uninorm/composition-tests (Files): Likewise.
23162         * modules/uninorm/decomposing-form-tests (Files): Likewise.
23163         * modules/uninorm/decomposition-tests (Files): Likewise.
23164         * modules/uninorm/filter-tests (Files): Likewise.
23165         * modules/uninorm/nfc-tests (Files): Likewise.
23166         * modules/uninorm/nfd-tests (Files): Likewise.
23167         * modules/uninorm/nfkc-tests (Files): Likewise.
23168         * modules/uninorm/nfkd-tests (Files): Likewise.
23169         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
23170         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
23171         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
23172         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
23173         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
23174         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
23175         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
23176         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23177         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
23178         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
23179         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
23180         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
23181         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23182         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
23183         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
23184         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
23185         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
23186         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23187         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
23188         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
23189         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
23190         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
23191         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23192         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
23193         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
23194         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
23195         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
23196         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
23197         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
23198         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
23199         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
23200         * modules/uniwidth/u8-width-tests (Files): Likewise.
23201         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
23202         * modules/uniwidth/u16-width-tests (Files): Likewise.
23203         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
23204         * modules/uniwidth/u32-width-tests (Files): Likewise.
23205         * modules/uniwidth/width-tests (Files): Likewise.
23206         * modules/unlink-tests (Files): Likewise.
23207         * modules/unsetenv-tests (Files): Likewise.
23208         * modules/usleep-tests (Files): Likewise.
23209         * modules/utimens-tests (Files): Likewise.
23210         * modules/utimensat-tests (Files): Likewise.
23211         * modules/vasnprintf-posix-tests (Files): Likewise.
23212         * modules/vasnprintf-tests (Files): Likewise.
23213         * modules/vasprintf-posix-tests (Files): Likewise.
23214         * modules/vasprintf-tests (Files): Likewise.
23215         * modules/vdprintf-posix-tests (Files): Likewise.
23216         * modules/vfprintf-posix-tests (Files): Likewise.
23217         * modules/vprintf-posix-tests (Files): Likewise.
23218         * modules/vsnprintf-posix-tests (Files): Likewise.
23219         * modules/vsnprintf-tests (Files): Likewise.
23220         * modules/vsprintf-posix-tests (Files): Likewise.
23221         * modules/wcrtomb-tests (Files): Likewise.
23222         * modules/wcsnrtombs-tests (Files): Likewise.
23223         * modules/wcsrtombs-tests (Files): Likewise.
23224         * modules/wctype-tests (Files): Likewise.
23225         * modules/wcwidth-tests (Files): Likewise.
23226         * modules/xmemdup0-tests (Files): Likewise.
23227         * modules/xprintf-posix-tests (Files): Likewise.
23228         * modules/xvasprintf-tests (Files): Likewise.
23229
23230 2009-12-24  Eric Blake  <ebb9@byu.net>
23231
23232         test-nanosleep: fix typo
23233         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
23234         patch.
23235         Reported by Bruno Haible.
23236
23237 2009-12-24  Bruno Haible  <bruno@clisp.org>
23238
23239         Reduce namespace pollution on glibc systems.
23240         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
23241         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
23242         systems.
23243         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
23244         <getopt.h> on glibc systems.
23245         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
23246         systems.
23247         * lib/fcntl.c: Include <unistd.h> here instead.
23248
23249 2009-12-24  Bruno Haible  <bruno@clisp.org>
23250
23251         * lib/stdlib.in.h (includes): Fix typo in today's commit.
23252
23253 2009-12-24  Eric Blake  <ebb9@byu.net>
23254
23255         tests: add signature checks
23256         * tests/signature.h (SIGNATURE_CHECK): New file.
23257         * modules/atexit-tests (Files): Use it.
23258         * modules/btowc-tests (Files): Likewise.
23259         * modules/canonicalize-lgpl-tests (Files): Likewise.
23260         * modules/ceilf-tests (Files): Likewise.
23261         * modules/ceill-tests (Files): Likewise.
23262         * modules/chown-tests (Files): Likewise.
23263         * modules/dprintf-posix-tests (Files): Likewise.
23264         * modules/dup2-tests (Files): Likewise.
23265         * modules/dup3-tests (Files): Likewise.
23266         * modules/duplocale-tests (Files): Likewise.
23267         * modules/fchdir-tests (Files): Likewise.
23268         * modules/fcntl-tests (Files): Likewise.
23269         * modules/fdopendir-tests (Files): Likewise.
23270         * modules/fflush-tests (Files): Likewise.
23271         * modules/flock-tests (Files): Likewise.
23272         * modules/floorf-tests (Files): Likewise.
23273         * modules/floorl-tests (Files): Likewise.
23274         * modules/fnmatch-tests (Files): Likewise.
23275         * modules/fopen-tests (Files): Likewise.
23276         * modules/fprintf-posix-tests (Files): Likewise.
23277         * modules/freopen-tests (Files): Likewise.
23278         * modules/frexp-nolibm-tests (Files): Likewise.
23279         * modules/frexp-tests (Files): Likewise.
23280         * modules/frexpl-nolibm-tests (Files): Likewise.
23281         * modules/frexpl-tests (Files): Likewise.
23282         * modules/fseek-tests (Files): Likewise.
23283         * modules/fseeko-tests (Files): Likewise.
23284         * modules/fsync-tests (Files): Likewise.
23285         * modules/ftell-tests (Files): Likewise.
23286         * modules/ftello-tests (Files): Likewise.
23287         * modules/futimens-tests (Files): Likewise.
23288         * modules/getaddrinfo-tests (Files): Likewise.
23289         * modules/getcwd-tests (Files): Likewise.
23290         * modules/getdelim-tests (Files): Likewise.
23291         * modules/getdtablesize-tests (Files): Likewise.
23292         * modules/getgroups-tests (Files): Likewise.
23293         * modules/gethostname-tests (Files): Likewise.
23294         * modules/getline-tests (Files): Likewise.
23295         * modules/getopt-posix-tests (Files): Likewise.
23296         * modules/gettimeofday-tests (Files): Likewise.
23297         * modules/glob-tests (Files): Likewise.
23298         * modules/iconv-tests (Files): Likewise.
23299         * modules/inet_ntop-tests (Files): Likewise.
23300         * modules/inet_pton-tests (Files): Likewise.
23301         * modules/isblank-tests (Files): Likewise.
23302         * modules/lchown-tests (Files): Likewise.
23303         * modules/ldexpl-tests (Files): Likewise.
23304         * modules/link-tests (Files): Likewise.
23305         * modules/linkat-tests (Files): Likewise.
23306         * modules/lseek-tests (Files): Likewise.
23307         * modules/lstat-tests (Files): Likewise.
23308         * modules/mbrtowc-tests (Files): Likewise.
23309         * modules/mbsinit-tests (Files): Likewise.
23310         * modules/mbsnrtowcs-tests (Files): Likewise.
23311         * modules/mbsrtowcs-tests (Files): Likewise.
23312         * modules/memchr-tests (Files): Likewise.
23313         * modules/memcmp-tests (Files): Likewise.
23314         * modules/memmem-tests (Files): Likewise.
23315         * modules/memrchr-tests (Files): Likewise.
23316         * modules/mkdir-tests (Files): Likewise.
23317         * modules/mkfifo-tests (Files): Likewise.
23318         * modules/mkfifoat-tests (Files): Likewise.
23319         * modules/mknod-tests (Files): Likewise.
23320         * modules/nanosleep-tests (Files): Likewise.
23321         * modules/nl_langinfo-tests (Files): Likewise.
23322         * modules/obstack-printf-tests (Files): Likewise.
23323         * modules/open-tests (Files): Likewise.
23324         * modules/openat-tests (Files): Likewise.
23325         * modules/perror-tests (Files): Likewise.
23326         * modules/pipe2-tests (Files): Likewise.
23327         * modules/poll-tests (Files): Likewise.
23328         * modules/popen-tests (Files): Likewise.
23329         * modules/posix_spawn-tests (Files): Likewise.
23330         * modules/posix_spawnp-tests (Files): Likewise.
23331         * modules/pread-tests (Files): Likewise.
23332         * modules/printf-posix-tests (Files): Likewise.
23333         * modules/pty-tests (Files): Likewise.
23334         * modules/random_r-tests (Files): Likewise.
23335         * modules/rawmemchr-tests (Files): Likewise.
23336         * modules/readlink-tests (Files): Likewise.
23337         * modules/remove-tests (Files): Likewise.
23338         * modules/rename-tests (Files): Likewise.
23339         * modules/renameat-tests (Files): Likewise.
23340         * modules/rmdir-tests (Files): Likewise.
23341         * modules/round-tests (Files): Likewise.
23342         * modules/roundf-tests (Files): Likewise.
23343         * modules/roundl-tests (Files): Likewise.
23344         * modules/select-tests (Files): Likewise.
23345         * modules/setenv-tests (Files): Likewise.
23346         * modules/sigaction-tests (Files): Likewise.
23347         * modules/sleep-tests (Files): Likewise.
23348         * modules/snprintf-posix-tests (Files): Likewise.
23349         * modules/snprintf-tests (Files): Likewise.
23350         * modules/sprintf-posix-tests (Files): Likewise.
23351         * modules/stat-tests (Files): Likewise.
23352         * modules/strcasestr-tests (Files): Likewise.
23353         * modules/strchrnul-tests (Files): Likewise.
23354         * modules/strerror-tests (Files): Likewise.
23355         * modules/strsignal-tests (Files): Likewise.
23356         * modules/strstr-tests (Files): Likewise.
23357         * modules/strtod-tests (Files): Likewise.
23358         * modules/strverscmp-tests (Files): Likewise.
23359         * modules/symlink-tests (Files): Likewise.
23360         * modules/symlinkat-tests (Files): Likewise.
23361         * modules/times-tests (Files): Likewise.
23362         * modules/trunc-tests (Files): Likewise.
23363         * modules/truncf-tests (Files): Likewise.
23364         * modules/truncl-tests (Files): Likewise.
23365         * modules/tsearch-tests (Files): Likewise.
23366         * modules/uname-tests (Files): Likewise.
23367         * modules/unlink-tests (Files): Likewise.
23368         * modules/unsetenv-tests (Files): Likewise.
23369         * modules/usleep-tests (Files): Likewise.
23370         * modules/utimensat-tests (Files): Likewise.
23371         * modules/vasprintf-tests (Files): Likewise.
23372         * modules/vdprintf-posix-tests (Files): Likewise.
23373         * modules/vfprintf-posix-tests (Files): Likewise.
23374         * modules/vprintf-posix-tests (Files): Likewise.
23375         * modules/vsnprintf-posix-tests (Files): Likewise.
23376         * modules/vsnprintf-tests (Files): Likewise.
23377         * modules/vsprintf-posix-tests (Files): Likewise.
23378         * modules/wcrtomb-tests (Files): Likewise.
23379         * modules/wcsnrtombs-tests (Files): Likewise.
23380         * modules/wcsrtombs-tests (Files): Likewise.
23381         * modules/wcwidth-tests (Files): Likewise.
23382         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
23383         * tests/test-isinf.c (isinf): Likewise.
23384         * tests/test-isnan.c (isnan): Likewise.
23385         * tests/test-signbit.c (signbit): Likewise.
23386         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
23387         declaration, either as macro or with correct signature.
23388         (select): Ensure function under test is declared with correct
23389         signature in correct header.
23390         * tests/test-atexit.c (atexit): Likewise.
23391         * tests/test-btowc.c (btowc): Likewise.
23392         * tests/test-canonicalize-lgpl.c (realpath)
23393         (canonicalize_file_name): Likewise.
23394         * tests/test-ceilf1.c (ceilf): Likewise.
23395         * tests/test-ceill.c (ceill): Likewise.
23396         * tests/test-chown.c (chown): Likewise.
23397         * tests/test-dprintf-posix.c (dprintf): Likewise.
23398         * tests/test-dup2.c (dup2): Likewise.
23399         * tests/test-dup3.c (dup3): Likewise.
23400         * tests/test-duplocale.c (duplocale): Likewise.
23401         * tests/test-fchdir.c (fchdir): Likewise.
23402         * tests/test-fchownat.c (fchownat): Likewise.
23403         * tests/test-fcntl.c (fcntl): Likewise.
23404         * tests/test-fdopendir.c (fdopendir): Likewise.
23405         * tests/test-fflush.c (fflush): Likewise.
23406         * tests/test-flock.c (flock): Likewise.
23407         * tests/test-floorf1.c (floorf): Likewise.
23408         * tests/test-floorl.c (floorl): Likewise.
23409         * tests/test-fnmatch.c (fnmatch): Likewise.
23410         * tests/test-fopen.c (fopen): Likewise.
23411         * tests/test-fprintf-posix.c (fprintf): Likewise.
23412         * tests/test-freopen.c (freopen): Likewise.
23413         * tests/test-frexp.c (frexp): Likewise.
23414         * tests/test-frexpl.c (frexpl): Likewise.
23415         * tests/test-fseek.c (fseek): Likewise.
23416         * tests/test-fseeko.c (fseeko): Likewise.
23417         * tests/test-fstatat.c (fstatat): Likewise.
23418         * tests/test-fsync.c (fsync): Likewise.
23419         * tests/test-ftell.c (ftell): Likewise.
23420         * tests/test-ftello.c (ftello): Likewise.
23421         * tests/test-futimens.c (futimens): Likewise.
23422         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
23423         (gai_strerror): Likewise.
23424         * tests/test-getcwd.c (getcwd): Likewise.
23425         * tests/test-getdelim.c (getdelim): Likewise.
23426         * tests/test-getdtablesize.c (getdtablesize): Likewise.
23427         * tests/test-getgroups.c (getgroups): Likewise.
23428         * tests/test-gethostname.c (gethostname): Likewise.
23429         * tests/test-getline.c (getline): Likewise.
23430         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
23431         Likewise.
23432         * tests/test-gettimeofday.c (gettimeofday): Likewise.
23433         * tests/test-glob.c (glob, globfree): Likewise.
23434         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
23435         * tests/test-inet_ntop.c (inet_ntop): Likewise.
23436         * tests/test-inet_pton.c (inet_pton): Likewise.
23437         * tests/test-isblank.c (isblank): Likewise.
23438         * tests/test-lchown.c (lchown): Likewise.
23439         * tests/test-ldexpl.c (ldexpl): Likewise.
23440         * tests/test-link.c (link): Likewise.
23441         * tests/test-linkat.c (linkat): Likewise.
23442         * tests/test-lseek.c (lseek): Likewise.
23443         * tests/test-lstat.c (lstat): Likewise.
23444         * tests/test-mbrtowc.c (mbrtowc): Likewise.
23445         * tests/test-mbsinit.c (mbsinit): Likewise.
23446         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
23447         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
23448         * tests/test-memchr.c (memchr): Likewise.
23449         * tests/test-memcmp.c (memcmp): Likewise.
23450         * tests/test-memmem.c (memmem): Likewise.
23451         * tests/test-memrchr.c (memrchr): Likewise.
23452         * tests/test-mkdir.c (mkdir): Likewise.
23453         * tests/test-mkdirat.c (mkdirat): Likewise.
23454         * tests/test-mkfifo.c (mkfifo): Likewise.
23455         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
23456         * tests/test-mknod.c (mknod): Likewise.
23457         * tests/test-nanosleep.c (nanosleep): Likewise.
23458         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
23459         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
23460         Likewise.
23461         * tests/test-open.c (open): Likewise.
23462         * tests/test-openat.c (openat): Likewise.
23463         * tests/test-perror.c (perror): Likewise.
23464         * tests/test-pipe2.c (pipe2): Likewise.
23465         * tests/test-poll.c (poll): Likewise.
23466         * tests/test-popen.c (popen, pclose): Likewise.
23467         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
23468         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
23469         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
23470         (posix_spawn_file_actions_destroy)
23471         (posix_spawn_file_actions_addclose)
23472         (posix_spawn_file_actions_addopen)
23473         (posix_spawn_file_actions_adddup2): Likewise.
23474         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
23475         * tests/test-pread.c (pread): Likewise.
23476         * tests/test-printf-posix.c (printf): Likewise.
23477         * tests/test-pty.c (openpty, forkpty): Likewise.
23478         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
23479         (random_r): Likewise.
23480         * tests/test-rawmemchr.c (rawmemchr): Likewise.
23481         * tests/test-readlink.c (readlink): Likewise.
23482         * tests/test-remove.c (remove): Likewise.
23483         * tests/test-rename.c (rename): Likewise.
23484         * tests/test-renameat.c (renameat): Likewise.
23485         * tests/test-rmdir.c (rmdir): Likewise.
23486         * tests/test-round1.c (round): Likewise.
23487         * tests/test-roundf1.c (roundf): Likewise.
23488         * tests/test-roundl.c (roundl): Likewise.
23489         * tests/test-setenv.c (setenv): Likewise.
23490         * tests/test-sigaction.c (sigaction): Likewise.
23491         * tests/test-sleep.c (sleep): Likewise.
23492         * tests/test-snprintf.c (snprintf): Likewise.
23493         * tests/test-sprintf-posix.c (sprintf): Likewise.
23494         * tests/test-stat.c (stat): Likewise.
23495         * tests/test-stpncpy.c (stpncpy): Likewise.
23496         * tests/test-strcasestr.c (strcasestr): Likewise.
23497         * tests/test-strchrnul.c (strchrnul): Likewise.
23498         * tests/test-strerror.c (strerror): Likewise.
23499         * tests/test-strsignal.c (strsignal): Likewise.
23500         * tests/test-strstr.c (strstr): Likewise.
23501         * tests/test-strtod.c (strtod): Likewise.
23502         * tests/test-strverscmp.c (strverscmp): Likewise.
23503         * tests/test-symlink.c (symlink): Likewise.
23504         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
23505         * tests/test-times.c (times): Likewise.
23506         * tests/test-trunc1.c (trunc): Likewise.
23507         * tests/test-truncf1.c (truncf): Likewise.
23508         * tests/test-truncl.c (truncl): Likewise.
23509         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
23510         Likewise.
23511         * tests/test-uname.c (uname): Likewise.
23512         * tests/test-unlink.c (unlink): Likewise.
23513         * tests/test-unlinkat.c (unlinkat): Likewise.
23514         * tests/test-unsetenv.c (unsetenv): Likewise.
23515         * tests/test-usleep.c (usleep): Likewise.
23516         * tests/test-utimensat.c (utimensat): Likewise.
23517         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
23518         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
23519         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
23520         * tests/test-vprintf-posix.c (vprintf): Likewise.
23521         * tests/test-vsnprintf.c (vsnprintf): Likewise.
23522         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
23523         * tests/test-wcrtomb.c (wcrtomb): Likewise.
23524         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
23525         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
23526         * tests/test-wcwidth.c (wcwidth): Likewise.
23527
23528         build: pull in conditional headers during GNULIB_POSIXCHECK
23529         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
23530         definitions from any conditionally-included headers.
23531         * lib/stdlib.in.h (includes): Likewise.
23532         * lib/unistd.in.h (includes): Likewise.
23533
23534 2009-12-24  Bruno Haible  <bruno@clisp.org>
23535
23536         * tests/test-argv-iter.c: Include header file being tested immediately
23537         after config.h.
23538         * tests/test-base64.c: Likewise.
23539         * tests/test-flock.c: Likewise.
23540         * tests/test-fsync.c: Likewise.
23541         * tests/test-getdate.c: Likewise.
23542         * tests/test-getndelim2.c: Likewise.
23543         * tests/test-isfinite.c: Likewise.
23544         * tests/test-isinf.c: Likewise.
23545         * tests/test-strerror.c: Likewise.
23546         * tests/test-strsignal.c: Likewise.
23547
23548 2009-12-23  Eric Blake  <ebb9@byu.net>
23549
23550         unistd: work around cygwin bug
23551         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
23552         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
23553         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23554
23555 2009-12-23  Bruno Haible  <bruno@clisp.org>
23556
23557         localename: More tests.
23558         * tests/test-localename.c (SIZEOF): New macro.
23559         (categories): New variable.
23560         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
23561         test_locale_name_default): Add test w.r.t. thread locale.
23562         (test_locale_name_thread): New function.
23563         (main): Invoke it.
23564
23565         localename: Make aware of thread locale.
23566         * lib/localename.h (gl_locale_name_thread): New declaration.
23567         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
23568         behaviour with respect to thread locale.
23569         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
23570         <langinfo.h>, glthread/lock.h.
23571         (SIZE_BITS): New macro.
23572         (string_hash): New function.
23573         (struct hash_node): New type.
23574         (HASH_TABLE_SIZE): New macro.
23575         (struniq_hash_table, struniq_lock): New variables.
23576         (struniq): New function.
23577         (gl_locale_name_thread): New function.
23578         (gl_locale_name): Invoke it.
23579         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
23580         * modules/localename (Depends-on): Add lock.
23581         Reported by Mike Gran <spk121@yahoo.com>.
23582
23583 2009-12-23  Eric Blake  <ebb9@byu.net>
23584
23585         va-args: new module
23586         * modules/va-args: New file.
23587         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
23588         * MODULES.html.sh (Core language properties): Mention it.
23589
23590         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
23591         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
23592         named alias for __attribute__((__unused__)).
23593         * lib/chown.c: Update client.
23594         * lib/fchmodat.c: Likewise.
23595         * lib/fts.c: Likewise.
23596         * lib/getdate.y: Likewise.
23597         * lib/getgroups.c: Likewise.
23598         * lib/getopt.c: Likewise.
23599         * lib/getugroups.c: Likewise.
23600         * lib/mkdir.c: Likewise.
23601         * lib/mkfifo.c: Likewise.
23602         * lib/mkfifoat.c: Likewise.
23603         * lib/mknod.c: Likewise.
23604         * lib/mknodat.c: Likewise.
23605         * lib/readlink.c: Likewise.
23606         * lib/se-context.in.h: Likewise.
23607         * lib/se-selinux.in.h: Likewise.
23608         * lib/sockets.c: Likewise.
23609         * lib/symlink.c: Likewise.
23610         * lib/symlinkat.c: Likewise.
23611         * lib/unicodeio.c: Likewise.
23612         * lib/unistr.h: Likewise.
23613         * tests/test-areadlink.c: Likewise.
23614         * tests/test-areadlinkat.c: Likewise.
23615         * tests/test-filenamecat.c: Likewise.
23616         * tests/test-fseeko.c: Likewise.
23617         * tests/test-ftello.c: Likewise.
23618         * tests/test-getdate.c: Likewise.
23619         * tests/test-getgroups.c: Likewise.
23620         * tests/test-gethostname.c: Likewise.
23621         * tests/test-quotearg.c: Likewise.
23622         * tests/test-version-etc.c: Likewise.
23623         * tests/test-xalloc-die.c: Likewise.
23624         * tests/test-xfprintf-posix.c: Likewise.
23625         * tests/test-xprintf-posix.c: Likewise.
23626         * tests/test-xvasprintf.c: Likewise.
23627
23628         tests: avoid compiler warnings
23629         * tests/test-fcntl.c (main): Delete unused parameters.
23630         * tests/test-freopen-safer.c (main): Likewise.
23631         * tests/test-xalloc-die.c (main): Mark unused parameters.
23632         * tests/test-fseeko.c (main): Likewise.
23633         * tests/test-ftello.c (main): Likewise.
23634         * tests/test-nanosleep.c (main): Avoid declaration warning.
23635         * tests/test-sleep.c (main): Likewise.
23636         * tests/test-unsetenv.c (main): Silence warning about string
23637         literal.
23638         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
23639
23640 2009-12-23  Bruno Haible  <bruno@clisp.org>
23641
23642         * tests/test-localename.c (test_locale_name): New function, extracted
23643         from main. Also test mixed situations.
23644         (test_locale_name_posix, test_locale_name_environ,
23645         test_locale_name_default): New functions.
23646         (main): Invoke them all.
23647         * modules/localename-tests (configure.ac): Test for newlocale.
23648
23649 2009-12-23  Bruno Haible  <bruno@clisp.org>
23650
23651         unistd: Ensure getcwd gets declared before being overridden.
23652         * lib/unistd.in.h: Conditionally include <io.h>.
23653
23654 2009-12-22  Bruno Haible  <bruno@clisp.org>
23655
23656         wchar: Diagnose broken combination of glibc and gcc versions and flags.
23657         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
23658         (gl_WCHAR_H): Invoke it.
23659         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
23660         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
23661         Reported by Karl Berry <karl@freefriends.org>.
23662
23663 2009-12-22  Eric Blake  <ebb9@byu.net>
23664
23665         math, unistd: avoid redundant includes
23666         * lib/math.in.h (isnan): No need to re-include <math.h>.
23667         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
23668
23669         getsubopt: work around cygwin bug
23670         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
23671         avoid conflicting with system getsubopt.
23672         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
23673         bug.
23674
23675         getopt: synchronize from glibc
23676         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
23677         parameter order.  Adjust all callers.
23678         (_getopt_internal_r, main): Adjust quoting in error messages.
23679         Drop considerations for outdated POSIX 1003.2 error message.
23680         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
23681         callers.
23682         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
23683
23684         test-getopt: test stderr behavior
23685         * modules/getopt-posix-tests (Depends-on): Add dup2.
23686         * tests/test-getopt.c (ASSERT): Avoid stderr.
23687         (main): Move stderr to a temporary file.
23688         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
23689         Instead, add parameter to inform caller if output occurred.
23690         (test_getopt): Adjust all existing tests to expect silence, and
23691         add new tests of leading ":".
23692         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
23693         glibc shortcomings with leading "-:" or "+:" in optstring.
23694         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23695         Likewise.
23696         * doc/posix-functions/getopt.texi (getopt): Likewise.
23697
23698         test-getopt: enhance test
23699         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
23700         supports optind=0.
23701         * tests/test-getopt.c (OPTIND_MIN): Move...
23702         * tests/test-getopt.h (OPTIND_MIN): ...here.
23703         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
23704         Require that optind=0 works, since modern BSD supports it in
23705         addition to optreset, and since coreutils expects it.
23706         (test_getopt_long_only): New test.
23707         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
23708         glibc shortcomings with 'W;', and enforcement of optind=0.
23709         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23710         Likewise.
23711
23712 2009-12-21  Bruno Haible  <bruno@clisp.org>
23713
23714         localename: Improvements for MacOS X and Cygwin.
23715         * lib/localename.h (gl_locale_name_environ): New declaration.
23716         * lib/localename.c (gl_locale_name_environ): New function, extracted from
23717         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
23718         (gl_locale_name_posix): Invoke it.
23719         (gl_locale_name_default): Add comments. Use Windows native API also on
23720         Cygwin.
23721
23722 2009-12-21  Bruno Haible  <bruno@clisp.org>
23723
23724         Update list of Win32 locale ids.
23725         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
23726         (LANG_SAMI): Renamed from LANG_SAAMI.
23727         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
23728         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
23729         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
23730         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
23731         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
23732         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
23733         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
23734         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
23735         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
23736         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
23737         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
23738         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
23739         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
23740         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
23741         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
23742         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
23743         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
23744         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
23745         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
23746         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
23747         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
23748         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
23749         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
23750         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
23751         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
23752         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
23753         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
23754         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
23755         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
23756         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
23757         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
23758         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
23759         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
23760         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
23761         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
23762         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
23763         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
23764         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
23765         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
23766         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
23767         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
23768         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
23769         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
23770         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
23771         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
23772         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
23773         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
23774         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
23775         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
23776         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
23777         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
23778         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
23779         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
23780         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
23781         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
23782         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
23783         Add more languages and countries for Sami, Sorbian. Add more countries
23784         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
23785         for Pashto. Change country for Syriac, Tswana.
23786
23787 2009-12-21  Eric Blake  <ebb9@byu.net>
23788
23789         test-utimens: avoid spurious failure
23790         * tests/test-chown.h (nap): Factor...
23791         * tests/nap.h: ...into new file.
23792         * tests/test-lchown.h (nap): Avoid duplication.
23793         * tests/test-utimens-common.h (nap): Use shared implementation,
23794         necessary on file systems with 1-second resolution.
23795         * modules/chown-tests (Files): Include new file.
23796         * modules/fdutimensat-tests (Files): Likewise.
23797         * modules/futimens-tests (Files): Likewise.
23798         * modules/lchown-tests (Files): Likewise.
23799         * modules/openat-tests (Files): Likewise.
23800         * modules/utimens-tests (Files): Likewise.
23801         * modules/utimensat-tests (Files): Likewise.
23802
23803 2009-12-19  Eric Blake  <ebb9@byu.net>
23804
23805         futimens, utimensat: work around Linux bug
23806         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
23807         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23808         * lib/utimensat.c (rpl_utimensat): Work around it.
23809         * lib/futimens.c (rpl_futimens): Adjust comment.
23810
23811         utimens: work around Linux ctime bug
23812         * lib/utimens.c (detect_ctime_bug): New helper function.
23813         (update_timespec): Differentiate between workaround needed for
23814         this bug vs. what is needed for systems that lack utimensat.
23815         (fdutimens, lutimens): Work around bug.
23816
23817         utimens: check for ctime update
23818         * tests/test-utimens-common.h (check_ctime): Define.
23819         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
23820         * tests/test-futimens.h (test_futimens): Likewise.
23821         * tests/test-lutimens.h (test_lutimens): Likewise.
23822         * doc/posix-functions/futimens.texi (futimens): Document the bug.
23823         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23824
23825 2009-12-19  Bruno Haible  <bruno@clisp.org>
23826
23827         dprintf-posix: Check against memory leak fixed on 2009-12-15.
23828         * tests/test-dprintf-posix2.sh: New file.
23829         * tests/test-dprintf-posix2.c: New file.
23830         * modules/dprintf-posix-tests (Files): Add them.
23831         (configure.ac): Check for getrlimit and setrlimit.
23832         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
23833
23834 2009-12-19  Bruno Haible  <bruno@clisp.org>
23835
23836         fprintf-posix: Check against memory leak fixed on 2009-12-15.
23837         * tests/test-fprintf-posix3.sh: New file.
23838         * tests/test-fprintf-posix3.c: New file.
23839         * modules/fprintf-posix-tests (Files): Add them.
23840         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
23841
23842 2009-12-19  Eric Blake  <ebb9@byu.net>
23843
23844         dirfd: fix prototype
23845         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
23846         * lib/dirfd.c (dirfd): Likewise.
23847
23848         canonicalize: reduce memory usage
23849         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
23850         allocation to size.
23851         Reported by Solar Designer <solar@openwall.com>.
23852
23853 2009-12-19  Bruno Haible  <bruno@clisp.org>
23854
23855         New module attribute 'Applicability'.
23856         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
23857         * gnulib-tool: New option --extract-applicability.
23858         (func_usage): Document it.
23859         (sed_extract_prog): Recognize it.
23860         (func_get_applicability): New function.
23861         (func_import): Generalize handling of 'link-warning' module.
23862         * modules/link-warning (Applicability): New section.
23863         * modules/arg-nonnull (Applicability): New section.
23864         Repoted by Simon Josefsson <simon@josefsson.org>.
23865
23866 2009-12-19  Bruno Haible  <bruno@clisp.org>
23867
23868         fflush: tweak
23869         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
23870         * lib/fseeko.c (rpl_fseeko): Likewise.
23871
23872 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
23873
23874         * lib/gl_list.h: Fix typo in comment.
23875
23876 2009-12-16  Eric Blake  <ebb9@byu.net>
23877
23878         fcntl: use to simplify other modules
23879         * modules/cloexec (Depends-on): Add fcntl.
23880         * modules/fchdir (Depends-on): Likewise.
23881         * modules/fd-safer-flag (Depends-on): Likewise.
23882         * modules/unistd-safer (Depends-on): Likewise.
23883         * modules/dup3 (configure.ac): Set module indicator.
23884         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
23885         missing.
23886         * lib/fchdir.c (_gl_register_dup): Fix comment.
23887         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
23888         * lib/dup-safer.c (dup_safer): Likewise.
23889         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
23890         * lib/dup3.c (dup3): Likewise.
23891         * tests/test-fchdir.c (main): Enhance test.
23892         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
23893
23894         fcntl: port portions of fcntl to mingw
23895         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
23896         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
23897         replacement for mingw.
23898         * modules/fcntl (Description): Update.
23899         (Depends-on): Add dup2.
23900         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
23901         * modules/fcntl-h (Makefile.am): Substitute it.
23902         * lib/fcntl.in.h (fcntl): Update declaration.
23903         (F_DUPFD, F_GETFD): New macros, when needed.
23904         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
23905         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
23906         * tests/test-fcntl.c (check_flags, main): Enhance test for items
23907         we now guarantee.
23908
23909         fcntl: work around cygwin bug in F_DUPFD
23910         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
23911         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
23912         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
23913         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
23914         * doc/posix-functions/fcntl.texi (fcntl): Document it.
23915
23916         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
23917         * modules/fcntl (Files): List new files.
23918         (configure.ac): Run a test.
23919         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
23920         * lib/fcntl.c (rpl_fcntl): Likewise.
23921         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
23922         (gl_FCNTL_H): Always replace fcntl.h.
23923         * modules/fcntl-h (Makefile.am): Substitute witnesses.
23924         * lib/fcntl.in.h (fcntl): Declare replacement.
23925         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
23926         needed, plus a witness.
23927         * doc/posix-functions/fcntl.texi (fcntl): Document this.
23928         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
23929         * tests/test-fcntl.c: New file.
23930         * modules/fcntl-tests: Likewise.
23931
23932         binary-io: avoid potential compilation warning
23933         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
23934         directives.
23935
23936         fflush: avoid compilation error on NetBSD
23937         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
23938         between off_t and fpos_t, since the latter is sometimes a struct.
23939         * lib/fseeko.c (rpl_fseeko): Likewise.
23940         Reported by Alexander Nasonov <alnsn@yandex.ru>.
23941
23942 2009-12-15  Eric Blake  <ebb9@byu.net>
23943
23944         fcntl-h, stdio, sys_ioctl: fix declarations
23945         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
23946         function must not take arguments.
23947         * lib/sys_ioctl.in.h (ioctl): Likewise.
23948         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
23949         (open): Add a link warning.
23950
23951 2009-12-15  Jim Meyering  <meyering@redhat.com>
23952
23953         areadlink, areadlink-with-size: relax license to LGPLv2+
23954         * modules/areadlink (License): Relax to LGPLv2+.
23955         * modules/areadlink-with-size (License): Likewise.
23956
23957 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
23958             Bruno Haible  <bruno@clisp.org>
23959
23960         *printf: Fix memory leak.
23961         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
23962         * lib/vfprintf.c (vfprintf): Likewise.
23963         * lib/dprintf.c (dprintf): Likewise.
23964         * lib/vdprintf.c (vdprintf): Likewise.
23965
23966 2009-12-14  Eric Blake  <ebb9@byu.net>
23967
23968         accept4: adjust module dependencies
23969         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
23970
23971         utimens: one more try at avoiding compiler warning
23972         * lib/utimens.c (lutimens): Lower scope of result.
23973
23974 2009-12-13  Bruno Haible  <bruno@clisp.org>
23975
23976         Move the malloc checking from module 'list' to new module 'xlist'.
23977         * modules/xlist: New file.
23978         * lib/gl_xlist.h: New file.
23979         * lib/gl_xlist.c: New file.
23980         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
23981         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
23982         gl_list_add_last, gl_list_add_before, gl_list_add_after,
23983         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
23984         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
23985         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
23986         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
23987         gl_sortedlist_nx_add): New declarations.
23988         (struct gl_list_implementation): Rename and change methods accordingly.
23989         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
23990         (gl_list_nx_create): Renamed from gl_list_create.
23991         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
23992         (gl_list_nx_set_at): Renamed from gl_list_set_at.
23993         (gl_list_nx_add_first): Renamed from gl_list_add_first.
23994         (gl_list_nx_add_last): Renamed from gl_list_add_last.
23995         (gl_list_nx_add_before): Renamed from gl_list_add_before.
23996         (gl_list_nx_add_after): Renamed from gl_list_add_after.
23997         (gl_list_nx_add_at): Renamed from gl_list_add_at.
23998         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
23999         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
24000         gl_list_create_empty.
24001         (gl_list_nx_create): Renamed from gl_list_create.
24002         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24003         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24004         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24005         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24006         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24007         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24008         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24009         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24010         * lib/gl_array_list.c: Don't include xalloc.h.
24011         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
24012         NULL upon out-of-memory.
24013         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
24014         out-of-memory.
24015         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
24016         Change return type to 'int'.
24017         (gl_array_nx_set_at): Renamed from gl_array_set_at.
24018         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24019         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
24020         upon out-of-memory.
24021         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
24022         upon out-of-memory.
24023         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
24024         upon out-of-memory.
24025         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
24026         upon out-of-memory.
24027         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
24028         out-of-memory.
24029         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
24030         Update.
24031         (gl_array_list_implementation): Update.
24032         * lib/gl_carray_list.c: Don't include xalloc.h.
24033         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
24034         Return NULL upon out-of-memory.
24035         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
24036         out-of-memory.
24037         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
24038         Change return type to 'int'.
24039         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
24040         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24041         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
24042         upon out-of-memory.
24043         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
24044         upon out-of-memory.
24045         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
24046         out-of-memory.
24047         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
24048         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
24049         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
24050         Update.
24051         (gl_carray_list_implementation): Update.
24052         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
24053         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
24054         gl_linked_create_empty. Return NULL upon out-of-memory.
24055         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
24056         out-of-memory.
24057         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
24058         Change return type to 'int'. Return -1 upon out-of-memory.
24059         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
24060         out-of-memory.
24061         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
24062         upon out-of-memory.
24063         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
24064         upon out-of-memory.
24065         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
24066         NULL upon out-of-memory.
24067         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
24068         upon out-of-memory.
24069         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
24070         out-of-memory.
24071         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
24072         Update.
24073         * lib/gl_linked_list.c: Don't include xalloc.h.
24074         (gl_linked_list_implementation): Update.
24075         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
24076         (add_to_bucket): Change return type to 'int'.
24077         (gl_linkedhash_list_implementation): Update.
24078         * lib/gl_anytree_list1.h (free_subtree): New function.
24079         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
24080         gl_tree_create_empty. Return NULL upon out-of-memory.
24081         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
24082         Change return type to 'int'. Return -1 upon out-of-memory.
24083         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
24084         out-of-memory.
24085         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
24086         (gl_tree_remove_node): New function, moved here from
24087         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
24088         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
24089         Update.
24090         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
24091         malloc, not xmalloc. Return NULL upon out-of-memory.
24092         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24093         out-of-memory.
24094         (gl_tree_remove_node_from_tree): New function, extracted from
24095         gl_tree_remove_node.
24096         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24097         upon out-of-memory.
24098         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24099         out-of-memory.
24100         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24101         upon out-of-memory.
24102         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24103         upon out-of-memory.
24104         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24105         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
24106         not xmalloc. Return NULL upon out-of-memory.
24107         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24108         out-of-memory.
24109         (gl_tree_remove_node_from_tree): New function, extracted from
24110         gl_tree_remove_node.
24111         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24112         upon out-of-memory.
24113         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24114         out-of-memory.
24115         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24116         upon out-of-memory.
24117         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24118         upon out-of-memory.
24119         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24120         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
24121         gl_anytree_list1.h before gl_anyavltree_list2.h.
24122         (gl_avltree_list_implementation): Update.
24123         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
24124         gl_anytree_list1.h before gl_anyavltree_list2.h.
24125         (gl_rbtree_list_implementation): Update.
24126         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
24127         Change return type to 'int'. Return -1 upon out-of-memory. Use
24128         __builtin_expect.
24129         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
24130         (gl_avltreehash_list_implementation): Update.
24131         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
24132         (gl_rbtreehash_list_implementation): Update.
24133         * modules/array-list (Depends-on): Remove xalloc.
24134         * modules/carray-list (Depends-on): Likewise.
24135         * modules/linked-list (Depends-on): Likewise.
24136         * modules/linkedhash-list (Depends-on): Likewise.
24137         * modules/avltree-list (Depends-on): Likewise.
24138         * modules/rbtree-list (Depends-on): Likewise.
24139         * modules/avltreehash-list (Depends-on): Likewise.
24140         * modules/rbtreehash-list (Depends-on): Likewise.
24141
24142         * modules/xsublist: New file.
24143         * lib/gl_xsublist.h: New file.
24144         * lib/gl_xsublist.c: New file.
24145         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
24146         (gl_sublist_nx_create): New declaration.
24147         * lib/gl_sublist.c: Don't include xalloc.h.
24148         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
24149         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
24150         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
24151         Change return type to 'int'. Return -1 upon out-of-memory.
24152         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
24153         upon out-of-memory.
24154         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
24155         NULL upon out-of-memory.
24156         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
24157         upon out-of-memory.
24158         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
24159         NULL upon out-of-memory.
24160         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
24161         NULL upon out-of-memory.
24162         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
24163         upon out-of-memory.
24164         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
24165         (gl_sublist_list_implementation): Update.
24166         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
24167         upon out-of-memory.
24168         * modules/sublist (Depends-on): Remove xalloc.
24169
24170         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
24171         * tests/test-carray_list.c: Likewise.
24172         * tests/test-linked_list.c: Likewise.
24173         * tests/test-linkedhash_list.c: Likewise.
24174         * tests/test-avltree_list.c: Likewise.
24175         * tests/test-rbtree_list.c: Likewise.
24176         * tests/test-avltreehash_list.c: Likewise.
24177         * tests/test-rbtreehash_list.c: Likewise.
24178         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
24179         * modules/carray-list-tests (Makefile.am): Likewise.
24180         * modules/linked-list-tests (Makefile.am): Likewise.
24181         * modules/linkedhash-list-tests (Makefile.am): Likewise.
24182         * modules/avltree-list-tests (Makefile.am): Likewise.
24183         * modules/rbtree-list-tests (Makefile.am): Likewise.
24184         * modules/avltreehash-list-tests (Makefile.am): Likewise.
24185         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
24186
24187         * NEWS: Mention the changes.
24188
24189         * lib/clean-temp.c: Include gl_xlist.h.
24190         * modules/clean-temp (Depends-on): Add xlist.
24191
24192         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
24193         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
24194
24195         * tests/test-array_oset.c: Include gl_xlist.h.
24196         * modules/array-oset-tests (Depends-on): Add xlist.
24197
24198         Reported by José E. Marchesi <jemarch@gnu.org>.
24199
24200 2009-12-13  Bruno Haible  <bruno@clisp.org>
24201
24202         Move the malloc checking from module 'oset' to new module 'xoset'.
24203         * modules/xoset: New file.
24204         * lib/gl_xoset.h: New file.
24205         * lib/gl_xoset.c: New file.
24206         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
24207         declarations.
24208         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
24209         (struct gl_oset_implementation): Rename and change methods accordingly.
24210         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
24211         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24212         'int'. Mark as __warn_unused_result__.
24213         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
24214         gl_oset_create_empty.
24215         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24216         'int'.
24217         * lib/gl_array_oset.c: Don't include xalloc.h.
24218         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
24219         malloc, not xmalloc.
24220         (grow): Change return type to 'int'. Don't call xalloc_die.
24221         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
24222         to 'int'.
24223         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
24224         'int'.
24225         (gl_array_oset_implementation): Update.
24226         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
24227         gl_tree_create_empty.
24228         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
24229         'int'.
24230         * lib/gl_avltree_oset.c: Don't include xalloc.h.
24231         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24232         xmalloc.
24233         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24234         not xmalloc.
24235         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24236         xmalloc.
24237         (gl_avltree_oset_implementation): Update.
24238         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
24239         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24240         xmalloc.
24241         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24242         not xmalloc.
24243         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24244         xmalloc.
24245         (gl_rbtree_oset_implementation): Update.
24246         * modules/array-oset (Depends-on): Remove xalloc.
24247         * modules/avltree-oset (Depends-on): Likewise.
24248         * modules/rbtree-oset (Depends-on): Likewise.
24249         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
24250         * tests/test-avltree_oset.c: Likewise.
24251         * tests/test-rbtree_oset.c: Likewise.
24252         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
24253         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
24254         * modules/rbtree-oset-tests (Makefile.am): Likewise.
24255         * NEWS: Mention the change.
24256
24257 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
24258
24259         maint.mk: allow a project to override release-prep commands
24260         * top/maint.mk (alpha, beta, stable): Move release-preparatory
24261         commands into a new rule.
24262         (release-prep): New rule.
24263         (release-prep-hook): New overridable variable.
24264
24265 2009-12-13  Bruno Haible  <bruno@clisp.org>
24266
24267         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
24268
24269 2009-12-13  Jim Meyering  <meyering@redhat.com>
24270
24271         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
24272         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
24273
24274 2009-12-12  Bruno Haible  <bruno@clisp.org>
24275
24276         duplocale: Tweak.
24277         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
24278
24279 2009-12-12  Karl Berry  <karl@gnu.org>
24280
24281         * config/srclist.txt (strtoll.c): tab changes, no more sync.
24282
24283 2009-12-12  Bruno Haible  <bruno@clisp.org>
24284
24285         * m4/po.m4: Undo incorrect untabification.
24286
24287 2009-12-12  Bruno Haible  <bruno@clisp.org>
24288
24289         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
24290         * modules/c-strtod (Depends-on): Add locale.
24291         * modules/c-strtold (Depends-on): Likewise.
24292
24293 2009-12-12  Bruno Haible  <bruno@clisp.org>
24294
24295         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
24296
24297 2009-12-11  Eric Blake  <ebb9@byu.net>
24298
24299         setenv: relax requirement in light of POSIX ruling
24300         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
24301         not NULL.
24302         * tests/test-setenv.c (main): Relax test.
24303         * tests/test-unsetenv.c (main): Likewise.
24304         * doc/posix-functions/setenv.texi (setenv): Document this.
24305         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
24306
24307 2009-12-11  Bruno Haible  <bruno@clisp.org>
24308
24309         New module 'fd-safer-flag'.
24310         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
24311         * lib/dup-safer.c (dup_safer_flag): Remove function.
24312         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
24313         * lib/fd-safer.c (fd_safer_flag): Remove function.
24314         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
24315         * modules/cloexec (configure.ac): Drop indicator macro.
24316         * modules/fd-safer-flag: New file.
24317         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
24318         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
24319         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
24320
24321 2009-12-11  Bruno Haible  <bruno@clisp.org>
24322
24323         Tests for module 'nl_langinfo'.
24324         * modules/nl_langinfo-tests: New file.
24325         * tests/test-nl_langinfo.sh: New file.
24326         * tests/test-nl_langinfo.c: New file.
24327
24328         New module 'nl_langinfo'.
24329         * lib/nl_langinfo.c: New file.
24330         * m4/nl_langinfo.m4: New file.
24331         * modules/nl_langinfo: New file.
24332         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
24333
24334 2009-12-11  Bruno Haible  <bruno@clisp.org>
24335
24336         Tests for module 'langinfo'.
24337         * modules/langinfo-tests: New file.
24338         * tests/test-langinfo.c: New file.
24339
24340         New module 'langinfo'.
24341         * lib/langinfo.in.h: New file.
24342         * m4/langinfo_h.m4: New file.
24343         * modules/langinfo: New file.
24344         * doc/posix-headers/langinfo.texi: Mention the new module.
24345
24346 2009-12-11  Bruno Haible  <bruno@clisp.org>
24347
24348         * lib/config.charset: Untabify.
24349
24350 2009-12-11  Bruno Haible  <bruno@clisp.org>
24351
24352         * modules/unistd-safer (configure.ac): Drop indicator macro.
24353
24354 2009-12-11  Bruno Haible  <bruno@clisp.org>
24355
24356         Move pipe2-safer code to its own file.
24357         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
24358         * lib/pipe-safer.c (pipe2_safer): Remove function.
24359         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
24360         (Makefile.am): Add it to lib_SOURCES.
24361
24362 2009-12-10  Bruno Haible  <bruno@clisp.org>
24363
24364         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
24365
24366 2009-12-10  Bruno Haible  <bruno@clisp.org>
24367
24368         Declare which arguments expect non-NULL values, for GCC and clang.
24369         * build-aux/arg-nonnull.h: New file.
24370         * modules/arg-nonnull: New file.
24371         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
24372         (inet_ntop, inet_pton): Use it.
24373         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
24374         (closedir, dirfd, opendir, scandir, alphasort): Use it.
24375         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
24376         (open, openat): Use it.
24377         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
24378         (fnmatch): Use it.
24379         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
24380         (getopt, getopt_long, getopt_long_only): Use it.
24381         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
24382         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
24383         Use it.
24384         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
24385         (iconv_open): Use it.
24386         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
24387         (strtoimax, strtoumax): Use it.
24388         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
24389         (duplocale): Use it.
24390         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
24391         (frexp, frexpl): Use it.
24392         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
24393         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
24394         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
24395         (tsearch, tfind, tdelete, twalk): Use it.
24396         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
24397         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
24398         sigpending): Use it.
24399         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
24400         (posix_spawn, posix_spawnp, posix_spawnattr_init,
24401         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
24402         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
24403         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
24404         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
24405         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
24406         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
24407         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
24408         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
24409         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
24410         Use it.
24411         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
24412         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
24413         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
24414         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
24415         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
24416         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
24417         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
24418         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
24419         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
24420         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
24421         strtoull, unsetenv): Use it.
24422         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
24423         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
24424         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
24425         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
24426         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
24427         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
24428         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
24429         (strcasecmp, strncasecmp): Use it.
24430         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
24431         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
24432         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
24433         rpl_setsockopt): Use it.
24434         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
24435         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
24436         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
24437         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
24438         (gettimeofday): Use it.
24439         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
24440         (times): Use it.
24441         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
24442         (uname): Use it.
24443         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
24444         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
24445         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
24446         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
24447         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
24448         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
24449         unlinkat, write): Use it.
24450         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
24451         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
24452         * lib/argv-iter.h: Include arg-nonnull.h.
24453         (_ATTRIBUTE_NONNULL_): Remove macro.
24454         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
24455         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
24456         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
24457         optimization.
24458         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
24459         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
24460         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
24461         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
24462         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
24463         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
24464         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
24465         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
24466         * modules/arpa_inet (Depends-on): Add arg-nonnull.
24467         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
24468         * modules/dirent (Depends-on): Add arg-nonnull.
24469         (Makefile.am): Insert arg-nonnull.h into dirent.h.
24470         * modules/fcntl-h (Depends-on): Add arg-nonnull.
24471         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
24472         * modules/fnmatch (Depends-on): Add arg-nonnull.
24473         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
24474         * modules/getopt-posix (Depends-on): Add arg-nonnull.
24475         (Makefile.am): Insert arg-nonnull.h into getopt.h.
24476         * modules/glob (Depends-on): Add arg-nonnull.
24477         (Makefile.am): Insert arg-nonnull.h into glob.h.
24478         * modules/iconv_open (Depends-on): Add arg-nonnull.
24479         (Makefile.am): Insert arg-nonnull.h into iconv.h.
24480         * modules/inttypes (Depends-on): Add arg-nonnull.
24481         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
24482         * modules/locale (Depends-on): Add arg-nonnull.
24483         (Makefile.am): Insert arg-nonnull.h into locale.h.
24484         * modules/math (Depends-on): Add arg-nonnull.
24485         (Makefile.am): Insert arg-nonnull.h into math.h.
24486         * modules/netdb (Depends-on): Add arg-nonnull.
24487         (Makefile.am): Insert arg-nonnull.h into netdb.h.
24488         * modules/search (Depends-on): Add arg-nonnull.
24489         (Makefile.am): Insert arg-nonnull.h into search.h.
24490         * modules/signal (Depends-on): Add arg-nonnull.
24491         (Makefile.am): Insert arg-nonnull.h into signal.h.
24492         * modules/spawn (Depends-on): Add arg-nonnull.
24493         (Makefile.am): Insert arg-nonnull.h into spawn.h.
24494         * modules/stdio (Depends-on): Add arg-nonnull.
24495         (Makefile.am): Insert arg-nonnull.h into stdio.h.
24496         * modules/stdlib (Depends-on): Add arg-nonnull.
24497         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
24498         * modules/string (Depends-on): Add arg-nonnull.
24499         (Makefile.am): Insert arg-nonnull.h into string.h.
24500         * modules/strings (Depends-on): Add arg-nonnull.
24501         (Makefile.am): Insert arg-nonnull.h into strings.h.
24502         * modules/sys_socket (Depends-on): Add arg-nonnull.
24503         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
24504         * modules/sys_stat (Depends-on): Add arg-nonnull.
24505         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
24506         * modules/sys_time (Depends-on): Add arg-nonnull.
24507         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
24508         * modules/sys_times (Depends-on): Add arg-nonnull.
24509         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
24510         * modules/sys_utsname (Depends-on): Add arg-nonnull.
24511         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
24512         * modules/time (Depends-on): Add arg-nonnull.
24513         (Makefile.am): Insert arg-nonnull.h into time.h.
24514         * modules/unistd (Depends-on): Add arg-nonnull.
24515         (Makefile.am): Insert arg-nonnull.h into unistd.h.
24516         * modules/wchar (Depends-on): Add arg-nonnull.
24517         (Makefile.am): Insert arg-nonnull.h into wchar.h.
24518         * modules/argv-iter (Depends-on): Add arg-nonnull.
24519         * tests/test-canonicalize.c (null_ptr): New function.
24520         (main): Use it.
24521         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
24522         (main): Use it.
24523         * tests/test-memmem.c (null_ptr): New function.
24524         (main): Use it.
24525         Reported by Jim Meyering.
24526
24527 2009-12-10  Bruno Haible  <bruno@clisp.org>
24528
24529         Use spaces for indentation, not tabs.
24530         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
24531         * m4/*.m4: Untabify.
24532         * build-aux/*.h: Untabify.
24533         * tests/**/*.[hc]: Untabify.
24534         * README: New section "Indent with spaces, not TABs", based on
24535         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
24536         * NEWS: Mention the change.
24537
24538 2009-12-10  Bruno Haible  <bruno@clisp.org>
24539
24540         pty test: Fix link error.
24541         * modules/pty-tests (Makefile.am): Add the default LDADD value to
24542         test_pty_LDADD.
24543
24544 2009-12-07  Simon Josefsson  <simon@josefsson.org>
24545
24546         * modules/pty: New file.
24547         * modules/pty-tests: New file.
24548         * m4/pty.m4: New file.
24549         * tests/test-pty.c: New file.
24550         * doc/glibc-headers/pty.texi: Modified.
24551         * doc/glibc-functions/forkpty.texi: Modified.
24552         * doc/glibc-functions/openpty.texi: Modified.
24553
24554 2009-12-10  Bruno Haible  <bruno@clisp.org>
24555
24556         Avoid syntax error in C++ mode.
24557         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
24558
24559 2009-12-10  Bruno Haible  <bruno@clisp.org>
24560
24561         Use sed with option -e.
24562         * gnulib-tool (func_version, func_emit_copyright_notice,
24563         func_emit_initmacro_end, func_import, func_create_testdir): Pass
24564         option -e to sed.
24565         * modules/link-warning (Makefile.am): Likewise.
24566
24567 2009-12-10  Jim Meyering  <meyering@redhat.com>
24568
24569         mgetgroups: do not write bytes beyond end of malloc'd buffer
24570         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
24571         username, we call getgroups with a one-element-shorter buffer,
24572         but still told it the length was original, max_n_groups.
24573
24574 2009-12-09  Eric Blake  <ebb9@byu.net>
24575
24576         cloexec: relax license
24577         * modules/cloexec (Maintainer): Add myself.
24578         (License): Use LGPL, not GPL.
24579
24580         link-warning: optimize generation
24581         * modules/link-warning (Makefile.am): Reduce process usage.
24582
24583 2009-12-09  Bruno Haible  <bruno@clisp.org>
24584
24585         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
24586         workaround was added on 2009-11-17.
24587
24588 2009-12-09  Jim Meyering  <meyering@redhat.com>
24589             Bruno Haible  <bruno@clisp.org>
24590
24591         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
24592         * modules/link-warning (Makefile.am): Make the comment-removing sed
24593         command more robust in the face of bootstrap-prepended comment lines.
24594
24595 2009-12-09  Bruno Haible  <bruno@clisp.org>
24596
24597         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
24598         most one group.
24599
24600 2009-12-09  Simon Josefsson <simon@josefsson.org>
24601             Bruno Haible  <bruno@clisp.org>
24602
24603         * build-aux/link-warning.h: Add copyright notice.
24604         * modules/link-warning (Makefile.am): Generate link-warning.h from
24605         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
24606         * NEWS: Mention change in link-warning module.
24607         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
24608         * modules/dirent (Makefile.am): Add dependency to dirent.h.
24609         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
24610         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
24611         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
24612         * modules/math (Makefile.am): Add dependency to math.h.
24613         * modules/search (Makefile.am): Add dependency to search.h.
24614         * modules/signal (Makefile.am): Add dependency to signal.h.
24615         * modules/spawn (Makefile.am): Add dependency to spawn.h.
24616         * modules/stdio (Makefile.am): Add dependency to stdio.h.
24617         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
24618         * modules/string (Makefile.am): Add dependency to string.h.
24619         * modules/strings (Makefile.am): Add dependency to strings.h.
24620         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
24621         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
24622         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
24623         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
24624         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
24625         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
24626         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
24627         * modules/unistd (Makefile.am): Add dependency to unistd.h.
24628         * modules/wchar (Makefile.am): Add dependency to wchar.h.
24629
24630 2009-12-09  Bruno Haible  <bruno@clisp.org>
24631
24632         fchdir: Optimize away rpl_fstat when possible.
24633         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
24634         REPLACE_OPEN_DIRECTORY.
24635         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
24636
24637 2009-12-09  Bruno Haible  <bruno@clisp.org>
24638
24639         * lib/fchdir.c: Update comment.
24640
24641 2009-12-09  Bruno Haible  <bruno@clisp.org>
24642
24643         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
24644
24645 2009-12-08  Eric Blake  <ebb9@byu.net>
24646
24647         fchdir: avoid memory leak on re-registration.
24648         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
24649
24650 2009-12-08  Jim Meyering  <meyering@redhat.com>
24651
24652         init.sh: avoid Solaris 10 /bin/sh portability problem
24653         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
24654         sourced script:
24655           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
24656           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
24657           bar
24658         tests/init.sh relied on that, accepting a --set-path=DIR argument,
24659         and two tests used that idiom.
24660         * tests/init.sh: Update suggested usage comments.
24661         (path_prepend_): New function, to be used in place
24662         of the --src-path=DIR option.
24663         (setup_): Move PATH-prepending code into path_prepend_.
24664         * tests/test-pread.sh: Adapt to new usage.
24665         * tests/test-xalloc-die.sh: Likewise.
24666
24667 2009-12-08  Simon Josefsson  <simon@josefsson.org>
24668
24669         * doc/gnulib.texi (Glibc pty.h): Add.
24670         * doc/glibc-functions/forkpty.texi: Add.
24671         * doc/glibc-functions/openpty.texi: Add.
24672         Suggested by Bruno Haible.
24673
24674 2009-12-08  Eric Blake  <ebb9@byu.net>
24675
24676         fchdir: fix logic bugs
24677         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
24678         * tests/test-fchdir.c (main): Enhance test.
24679         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
24680         is in use.
24681
24682         dup2: fix logic bugs
24683         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
24684         REPLACE_DUP2 to decide when rpl_dup2 is needed.
24685         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
24686         exists.
24687         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
24688
24689 2009-12-07  Eric Blake  <ebb9@byu.net>
24690
24691         unlink: fix m4 detection
24692         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
24693
24694         unistd-safer: add unit test
24695         * modules/unistd-safer-tests: New file.
24696         * tests/test-dup-safer.c: Likewise.
24697         * tests/test-cloexec.c (setmode): Avoid compiler warning.
24698         * tests/test-dup2.c (setmode): Likewise.
24699         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
24700
24701         cloexec: preserve text vs. binary across dup_cloexec
24702         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
24703         mode.
24704         * modules/dup2-tests (Depends-on): Add binary-io.
24705         * modules/cloexec-tests (Depends-on): Likewise.
24706         * tests/test-dup2.c (setmode, is_mode): New helpers.
24707         (main): Add tests that translation mode is preserved.
24708         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
24709         Reported by Bruno Haible.
24710
24711         mgetgroups: reduce duplicate listings
24712         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
24713         resulting array.
24714         * tests/test-chown.h (test_chown): Simplify client.
24715         * tests/test-lchown.h (test_lchown): Likewise.
24716
24717 2009-12-06  Bruno Haible  <bruno@clisp.org>
24718
24719         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
24720         value.
24721
24722 2009-12-06  Bruno Haible  <bruno@clisp.org>
24723
24724         * lib/progname.c: Include stdio.h, stdlib.h.
24725         (set_program_name): Reject a NULL argument.
24726
24727 2009-12-05  Eric Blake  <ebb9@byu.net>
24728
24729         pipe2-safer: new module
24730         * modules/pipe2-safer: New file.
24731         * lib/unistd-safer.h (pipe2_safer): New prototype.
24732         * lib/unistd--.h (pipe2): New wrapper.
24733         * lib/pipe-safer.c (pipe2_safer): New function.
24734         * modules/pipe (Depends-on): Add pipe2-safer.
24735         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
24736
24737         stdlib-safer: preserve cloexec flag for mkostemp[s]
24738         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
24739         fd_safer_flag.
24740
24741         unistd-safer: allow preservation of cloexec status via flag
24742         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
24743         prototypes.
24744         * lib/dup-safer.c (dup_safer_flag): New function.
24745         * lib/fd-safer.c (fd_safer_flag): Likewise.
24746         * modules/cloexec (configure.ac): Set witness.
24747
24748         test-dup2: enhance test
24749         * modules/dup2-tests (Depends-on): Add cloexec.
24750         * tests/test-dup2.c (main): Enhance test.
24751
24752         cloexec: add dup_cloexec
24753         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
24754         header and comments.
24755         * lib/cloexec.c (set_cloexec_flag): Add comments.
24756         (dup_cloexec): New function, with mingw implementation borrowed
24757         from...
24758         * lib/w32spawn.h (dup_noinherit): ...here.
24759         * modules/execute (Depends-on): Add cloexec.
24760         * modules/pipe (Depends-on): Likewise.
24761         * modules/cloexec (Depends-on): Add dup2.
24762         * modules/cloexec-tests (Files): New file.
24763         * tests/test-cloexec.c: Likewise.
24764
24765         test-xalloc-die: fix test for mingw
24766         * modules/xalloc-die-tests (Files): Add tests/init.sh.
24767         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
24768         directory and .exe suffix off argv[0] output.
24769
24770         test-fseeko: fix test for mingw
24771         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
24772         than undefining fseek, so test will pass on mingw.
24773
24774 2009-12-05  Bruno Haible  <bruno@clisp.org>
24775
24776         * lib/progname.h (set_program_name): Clarify specification.
24777         * lib/progname.c (set_program_name): Likewise.
24778         Reported by Jim Meyering.
24779
24780 2009-12-05  Jim Meyering  <meyering@redhat.com>
24781
24782         maint.mk: backslash-escape parens in default regexp
24783         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
24784         backslash-escape the literal parentheses.
24785
24786         maint.mk: news-date-check: use grep -E
24787         * top/maint.mk (today): Define a Make variable, not a...
24788         (news-date-check): ...shell variable.
24789         (news-date-regexp): Use the Make variable.
24790         Use grep's -E option.  Change the failing diagnostic to mention
24791         the variable, $(news-date-regexp).
24792
24793 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
24794
24795         maintainer-makefile: allow customization of NEWS entry format
24796         * top/maint.mk (news-date-regexp): New overridable variable.
24797         (news-date-check): Use it.
24798
24799 2009-12-04  Eric Blake  <ebb9@byu.net>
24800
24801         mgetgroups: add xgetgroups, and avoid ENOSYS failures
24802         * lib/mgetgroups.h (xgetgroups): New prototype.
24803         * lib/mgetgroups.c (xgetgroups): New wrapper.
24804         (mgetgroups): Handle ENOSYS.
24805         * modules/mgetgroups (Depends-on): Add realloc.
24806         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
24807
24808         mgetgroups: avoid argument promotion issues with -1
24809         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
24810         for invalid gid_t.
24811         * tests/test-chown.h (getegid, test_chown): Likewise.
24812         * tests/test-lchown.h (getegid, test_lchown): Likewise.
24813
24814 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
24815
24816         exclude: Fix header file problems.
24817         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
24818
24819 2009-12-01  Jim Meyering  <meyering@redhat.com>
24820
24821         fts: fts_open: do not let an empty string cause immediate failure
24822         This is required in support of GNU rm, for which the command
24823         "rm A '' B" must process and remove both A and B, in spite of
24824         the empty string argument.
24825         * lib/fts.c (fts_open): Do not let the presence of an empty string
24826         cause fts_open to fail immediately.  Most fts-using tools must be
24827         able to process all arguments, in order, and can be expected to
24828         diagnose such arguments themselves.
24829
24830 2009-11-30  Eric Blake  <ebb9@byu.net>
24831
24832         utimens: fix compilation error
24833         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
24834         Declare variable at right scope.
24835
24836 2009-11-29  Jim Meyering  <meyering@redhat.com>
24837
24838         bootstrap: handle perl-5.11's changed --version output
24839         * build-aux/bootstrap (get_version): Handle perl separately,
24840         since perl-5.11's --version output is different.
24841
24842 2009-11-28  Jim Meyering  <meyering@redhat.com>
24843
24844         userspec: depend on the inttostr module, too
24845         * modules/userspec (Depends-on): Add inttostr.
24846
24847         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
24848         * lib/userspec.c (parse_with_separator): Do not accept a user ID
24849         number of MAXUID when it evaluates to (uid_t) -1.
24850         Likewise for group ID.  Reported by Matt McCutchen in
24851         <http://savannah.gnu.org/bugs/?28113>
24852
24853         userspec: reformat to use spaces, not TABs
24854         * lib/userspec.c: Expand TABs to spaces.
24855         Add Emacs' "indent-tabs-mode: nil" hint.
24856
24857 2009-11-27  Eric Blake  <ebb9@byu.net>
24858
24859         getopt-gnu: flush out another BSD bug
24860         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
24861         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
24862         flush out BSD bug.
24863         * tests/test-getopt.h (test_getopt): End lists with NULL.
24864         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24865         (test_getopt_long_posix): Enhance test.
24866         * modules/getopt-posix-tests (Depends-on): Add stdbool.
24867         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
24868         getopt-gnu.
24869         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24870         Likewise.
24871
24872 2009-11-27  Simon Josefsson  <simon@josefsson.org>
24873
24874         * modules/idpriv-droptemp-tests (Notice): Fix text.
24875
24876 2009-11-27  Jim Meyering  <meyering@redhat.com>
24877
24878         test-xalloc-die: avoid spurious failure due to libtool argv difference
24879         In a libtool-enabled project, this test would fail due to a difference
24880         in the emitted program name, e.g.,
24881         -test-xalloc-die: memory exhausted
24882         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
24883         Use program to avoid that.
24884         * modules/xalloc-die-tests (Depends-on): Add progname.
24885         * tests/test-xalloc-die.c: Include progname.h".
24886         (program_name): Remove decl.
24887         (main): Call set_program_name.
24888         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
24889
24890 2009-11-26  Richard Jones  <rjones@redhat.com>
24891
24892         w32sock: leave win32 error in place.
24893         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
24894
24895 2009-11-26  Eric Blake  <ebb9@byu.net>
24896
24897         init.sh: suggest to use skip_ and fail_ functions in comments
24898         * tests/init.sh: Add a sentence.
24899
24900 2009-11-25  Bruno Haible  <bruno@clisp.org>
24901
24902         init.sh: add documentation in comments
24903         * tests/init.sh: Add some developer and user documentation.
24904
24905 2009-11-26  Jim Meyering  <meyering@redhat.com>
24906
24907         init.sh: accommodate even those who specify bogus srcdir manually
24908         * tests/init.sh: Normally, srcdir is guaranteed by automake and
24909         configure-time tests to be sanitized, so that there is no need to
24910         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
24911         (with no double quotes) suffices.  However, since tests may be
24912         invoked manually, and since you may explicitly set srcdir to the
24913         name of a directory containing spaces, do quote its uses here.
24914         * tests/test-pread.sh: Likewise.
24915         Suggested by Bruno Haible.
24916
24917         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
24918         * tests/test-pread.sh: Write no data into the pipe, because
24919         test-pread actually reads none.  This avoids a diagnostic,
24920         "bash: echo: write error: Broken pipe", that arises in the unusual
24921         event something is ignoring SIGPIPE, and might be interpreted
24922         as some sort of failure.  Reported by Bruno Haible.
24923
24924 2009-11-25  Jim Meyering  <meyering@redhat.com>
24925
24926         test-pread: cover failure with ESPIPE and EINVAL
24927         * tests/test-pread.c (main): Test for failure, too.
24928         * tests/test-pread.sh: Invoke with stdin on a pipe.
24929         Suggested by Eric Blake.
24930
24931         pread: improvement and fix
24932         * modules/pread (Depends-on): Depend on lseek, for portability to
24933         e.g., mingw.  Suggested by Eric Blake.
24934         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
24935
24936         unistd.in.h: correct declaration of pread
24937         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
24938         Reported by Richard W.M. Jones.
24939
24940         test-pread.sh: distribute the test script
24941         * modules/pread-tests (Files): Include test-pread.sh.
24942
24943         test-pread.sh: clean up
24944         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
24945         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
24946         That is unnecessary, since it's always ".".
24947         Suggestion from Eric Blake.
24948
24949         test-pread.sh: make executable
24950         * tests/test-pread.sh: Set executable bit.
24951         Reported by Eric Blake.
24952
24953         correct typo in test-pread.sh
24954         * tests/test-pread.sh: Add #! line.
24955
24956         test pread
24957         * tests/test-pread.c: New file.
24958         * tests/test-pread.sh: Likewise.
24959         * modules/pread-tests: Likewise.
24960
24961         pread: new module
24962         * modules/pread: New file.
24963         * lib/unistd.in.h (pread): Define/declare.
24964         * lib/pread.c (pread): New file.
24965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
24966         * modules/unistd (Makefile.am): Substitute witnesses.
24967         * doc/posix-functions/pread.texi (pread): Update.
24968         * MODULES.html.sh: Add pread.
24969
24970 2009-11-25  Jim Meyering  <meyering@redhat.com>
24971
24972         tests/init.sh: new file to be used via most *.sh tests
24973         * tests/init.sh: New file.
24974
24975 2009-11-25  Eric Blake  <ebb9@byu.net>
24976
24977         utimens: work around older Linux failure with symlinks
24978         * lib/utimens.c (lutimensat_works_really): New variable.
24979         (fdutimens, lutimens): Use it to manage kernels that support
24980         nanosecond times on files, but not on symlinks.
24981         Reported by OndÅ™ej Vašík.
24982
24983         utimes: fix configure grammar
24984         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
24985
24986 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
24987
24988         regex: Fix fastmap for multibyte character ranges.
24989         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
24990         characters when a multibyte character range is included.
24991
24992 2009-11-22  Andy Wingo  <wingo@pobox.com>
24993
24994         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
24995         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
24996
24997 2009-11-24  Bruno Haible  <bruno@clisp.org>
24998
24999         doc: Most *_l functions exist in MacOS X 10.5.
25000         * doc/posix-functions/duplocale.texi: Update platforms list.
25001         * doc/posix-functions/freelocale.texi: Likewise.
25002         * doc/posix-functions/newlocale.texi: Likewise.
25003         * doc/posix-functions/uselocale.texi: Likewise.
25004         * doc/posix-functions/isalnum_l.texi: Likewise.
25005         * doc/posix-functions/isalpha_l.texi: Likewise.
25006         * doc/posix-functions/isblank_l.texi: Likewise.
25007         * doc/posix-functions/iscntrl_l.texi: Likewise.
25008         * doc/posix-functions/isdigit_l.texi: Likewise.
25009         * doc/posix-functions/isgraph_l.texi: Likewise.
25010         * doc/posix-functions/islower_l.texi: Likewise.
25011         * doc/posix-functions/isprint_l.texi: Likewise.
25012         * doc/posix-functions/ispunct_l.texi: Likewise.
25013         * doc/posix-functions/isspace_l.texi: Likewise.
25014         * doc/posix-functions/isupper_l.texi: Likewise.
25015         * doc/posix-functions/iswalnum_l.texi: Likewise.
25016         * doc/posix-functions/iswalpha_l.texi: Likewise.
25017         * doc/posix-functions/iswblank_l.texi: Likewise.
25018         * doc/posix-functions/iswcntrl_l.texi: Likewise.
25019         * doc/posix-functions/iswctype_l.texi: Likewise.
25020         * doc/posix-functions/iswdigit_l.texi: Likewise.
25021         * doc/posix-functions/iswgraph_l.texi: Likewise.
25022         * doc/posix-functions/iswlower_l.texi: Likewise.
25023         * doc/posix-functions/iswprint_l.texi: Likewise.
25024         * doc/posix-functions/iswpunct_l.texi: Likewise.
25025         * doc/posix-functions/iswspace_l.texi: Likewise.
25026         * doc/posix-functions/iswupper_l.texi: Likewise.
25027         * doc/posix-functions/iswxdigit_l.texi: Likewise.
25028         * doc/posix-functions/isxdigit_l.texi: Likewise.
25029         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
25030         * doc/posix-functions/strcasecmp_l.texi: Likewise.
25031         * doc/posix-functions/strcoll_l.texi: Likewise.
25032         * doc/posix-functions/strfmon_l.texi: Likewise.
25033         * doc/posix-functions/strftime_l.texi: Likewise.
25034         * doc/posix-functions/strncasecmp_l.texi: Likewise.
25035         * doc/posix-functions/strxfrm_l.texi: Likewise.
25036         * doc/posix-functions/tolower_l.texi: Likewise.
25037         * doc/posix-functions/toupper_l.texi: Likewise.
25038         * doc/posix-functions/towctrans_l.texi: Likewise.
25039         * doc/posix-functions/towlower_l.texi: Likewise.
25040         * doc/posix-functions/towupper_l.texi: Likewise.
25041         * doc/posix-functions/wcscoll_l.texi: Likewise.
25042         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
25043         * doc/posix-functions/wctrans_l.texi: Likewise.
25044         * doc/posix-functions/wctype_l.texi: Likewise.
25045         * doc/glibc-functions/strptime_l.texi: Likewise.
25046         * doc/glibc-functions/strtod_l.texi: Likewise.
25047         * doc/glibc-functions/strtof_l.texi: Likewise.
25048         * doc/glibc-functions/strtol_l.texi: Likewise.
25049         * doc/glibc-functions/strtold_l.texi: Likewise.
25050         * doc/glibc-functions/strtoll_l.texi: Likewise.
25051         * doc/glibc-functions/strtoul_l.texi: Likewise.
25052         * doc/glibc-functions/strtoull_l.texi: Likewise.
25053         * doc/glibc-functions/wcsftime_l.texi: Likewise.
25054         * doc/glibc-functions/wcstod_l.texi: Likewise.
25055         * doc/glibc-functions/wcstof_l.texi: Likewise.
25056         * doc/glibc-functions/wcstol_l.texi: Likewise.
25057         * doc/glibc-functions/wcstold_l.texi: Likewise.
25058         * doc/glibc-functions/wcstoll_l.texi: Likewise.
25059         * doc/glibc-functions/wcstoul_l.texi: Likewise.
25060         * doc/glibc-functions/wcstoull_l.texi: Likewise.
25061
25062 2009-11-24  Bruno Haible  <bruno@clisp.org>
25063
25064         duplocale: Fix logic bug.
25065         * lib/duplocale.c: Don't include <langinfo.h>.
25066         (_NL_LOCALE_NAME): Remove macro.
25067         (rpl_duplocale): Use setlocale instead of nl_langinfo.
25068         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
25069
25070 2009-11-23  Jim Meyering  <meyering@redhat.com>
25071
25072         test-update-copyright: don't hard-code /usr/bin/perl
25073         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
25074         perl to print the current year.  Gilles Espinasse reported that
25075         the replaced use of perl was hard-coded as /usr/bin/perl.
25076
25077 2009-11-23  Bruno Haible  <bruno@clisp.org>
25078
25079         duplocale: Add support for glibc 2.3.x.
25080         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
25081
25082 2009-11-22  Bruno Haible  <bruno@clisp.org>
25083
25084         vasnprintf: Tiny optimization.
25085         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
25086         MacOS X.
25087
25088 2009-11-22  Bruno Haible  <bruno@clisp.org>
25089
25090         Tests for module 'duplocale'.
25091         * modules/duplocale-tests: New file.
25092         * tests/test-duplocale.c: New file.
25093
25094         New module 'duplocale'.
25095         * m4/duplocale.m4: New file.
25096         * lib/locale.in.h (duplocale): New declaration.
25097         * lib/duplocale.c: New file.
25098         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
25099         gl_LOCALE_H_DEFAULTS): New macros.
25100         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
25101         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
25102         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
25103         REPLACE_DUPLOCALE.
25104         * modules/duplocale: New file.
25105         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
25106
25107 2009-11-22  Bruno Haible  <bruno@clisp.org>
25108
25109         * modules/locale-tests (configure.ac): Test for newlocale function.
25110         * tests/test-locale.c: When the system has extended locale functions,
25111         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
25112
25113         locale: Make locale_t available when possible.
25114         * lib/locale.in.h: Include <xlocale.h> when it exists.
25115         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
25116         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
25117         * modules/locale (Depends-on): Add extensions.
25118         (Makefile.am): Also substitute HAVE_XLOCALE_H.
25119         * doc/posix-headers/locale.texi: Document the problem with locale_t.
25120
25121 2009-11-22  Bruno Haible  <bruno@clisp.org>
25122
25123         Add comments.
25124         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
25125         invocation.
25126         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
25127         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25128         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25129
25130 2009-11-22  Bruno Haible  <bruno@clisp.org>
25131
25132         error: account for the possibility of freopen (stdout).
25133         * lib/error.c: Include <unistd.h>.
25134         (flush_stdout): New function, extracted from error and error_at_line.
25135         Determine stdout's fd dynamically.
25136         (error, error_at_line): Invoke flush_stdout.
25137         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
25138         * modules/error (Depends-on): Add unistd.
25139
25140 2009-11-22  Bruno Haible  <bruno@clisp.org>
25141
25142         diffseq: Add comment.
25143         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
25144
25145 2009-11-22  Jim Meyering  <meyering@redhat.com>
25146
25147         c-stack: avoid defining an unused static function
25148         * lib/c-stack.c (find_stack_direction): Do not define this function
25149         when it will not be used.
25150
25151         diffseq: avoid spurious gcc warnings
25152         * lib/diffseq.h (IF_LINT2): Define.
25153         (compareseq): Use it to initialize two members of "part".
25154         This avoids two used-uninitialized warnings.
25155
25156 2009-11-21  Jim Meyering  <meyering@redhat.com>
25157
25158         c-stack: avoid "ignoring return value of `write'" warning
25159         * lib/c-stack.c: Include "ignore-value.h".
25160         (die): Explicitly ignore each write return value.
25161         * modules/c-stack (Depends-on): Add ignore-value.
25162
25163 2009-11-21  Bruno Haible  <bruno@clisp.org>
25164
25165         diffseq: reduce scope of variable 'best'.
25166         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
25167         variable, earlier used for two different purposes.
25168
25169 2009-11-21  Jim Meyering  <meyering@redhat.com>
25170
25171         diffseq: remove useless assignment to "best"
25172         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
25173         assignment.  At that point "best" is already guaranteed to be zero.
25174
25175 2009-11-20  Eric Blake  <ebb9@byu.net>
25176
25177         build: mention ftp redirector in release announcements
25178         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
25179         values that used to come from cfg.mk; mention FTP redirect URL.
25180         * build-aux/announce-gen: Mention the mirror list.
25181         Suggested by Karl Berry.
25182
25183         nanosleep: improve port to mingw
25184         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
25185         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
25186         LIB_NANOSLEEP, but only when needed.
25187         * modules/select (Link): Document LIBSOCKET.
25188         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
25189         enough.
25190
25191         nanosleep: work around cygwin bug
25192         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
25193         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
25194         bug.
25195         (getnow): Delete, not needed.
25196         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
25197         LIB_CLOCK_GETTIME.
25198         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
25199         clock-time, gettime.
25200         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
25201         bug.
25202         * modules/nanosleep-tests: New test.
25203         * tests/test-nanosleep.c: New file.
25204
25205         sleep: work around cygwin bug
25206         * lib/sleep.c (rpl_sleep): Work around the bug.
25207         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
25208         (gl_PREREQ_SLEEP): Delete unused macro.
25209         * modules/sleep (Depends-on): Add verify.
25210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25211         * modules/unistd (Makefile.am): Substitute witness.
25212         * lib/unistd.in.h (sleep): Update prototype.
25213         * doc/posix-functions/sleep.texi (sleep): Document the bug.
25214         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
25215         * modules/sleep-tests (Depends-on): Check for alarm.
25216
25217 2009-11-20  Jim Meyering  <meyering@redhat.com>
25218
25219         maint.mk: improve sc_prohibit_magic_number_exit
25220         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
25221         so it does not match uses like System.exit(1).
25222         Add comments showing how to correct all offenders.
25223
25224 2009-11-19  Eric Blake  <ebb9@byu.net>
25225
25226         xalloc-die-tests: add missing library
25227         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
25228
25229         test-xvasprintf: silence compiler warnings
25230         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
25231         empty string from gcc.
25232
25233 2009-11-19  Jim Meyering  <meyering@redhat.com>
25234
25235         xfreopen: new module, from coreutils
25236         * modules/xfreopen: New module.
25237         * lib/xfreopen.c: New file.
25238         * lib/xfreopen.h: New file.
25239         * MODULES.html.sh (File stream based Input/Output"): Add it.
25240
25241 2009-11-19  Eric Blake  <ebb9@byu.net>
25242
25243         manywarnings: depend on warnings
25244         * modules/manywarnings (Depends-on): Add warnings.
25245
25246         build: avoid compiler warnings
25247         * lib/select.c (rpl_select): Delete unused variable.
25248         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
25249
25250 2009-11-18  Eric Blake  <ebb9@byu.net>
25251
25252         tests: avoid false negative with --with-packager
25253         * tests/test-version-etc.sh: Discard packager information.
25254         * tests/test-argp-version-etc-1.sh: Likewise.
25255         Reported by Mike Frysinger.
25256
25257         utimens: fix regression on Solaris
25258         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
25259         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
25260         can only change fd timestamps via futimesat.  Instead, use an
25261         additional witness macro to avoid BSD bug.
25262         Reported by Jim Meyering.
25263
25264 2009-11-17  Eric Blake  <ebb9@byu.net>
25265
25266         usleep: use it to simplify tests
25267         * modules/stat-time-tests (Depends-on): Add usleep.
25268         (configure.ac): Drop usleep check.
25269         * modules/chown-tests (Depends-on, configure.ac): Likewise.
25270         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
25271         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
25272         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
25273         * modules/openat-tests (Depends-on, configure.ac): Likewise.
25274         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
25275         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
25276         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
25277         Likewise.
25278         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
25279         * tests/test-lchown.h (nap): Likewise.
25280         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
25281         * tests/test-stat-time.c (nap): Likewise.
25282         * tests/test-utimens-common.h (nap): Update comments.
25283
25284         usleep: new module
25285         * modules/usleep: New file.
25286         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
25287         * lib/usleep.c (usleep): Likewise.
25288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25289         * modules/unistd (Makefile.am): Substitute witnesses.
25290         * lib/unistd.in.h (usleep): Add declaration.
25291         * doc/pastposix-functions/usleep.texi (usleep): Document this.
25292         * MODULES.html.sh (Date and time): Likewise.
25293         * modules/usleep-tests (Depends-on): New test.
25294         * tests/test-usleep.c: New file.
25295
25296         chown: work around OpenBSD bug
25297         * lib/chown.c (rpl_chown): Work around the bug.
25298         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
25299         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
25300         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
25301         * modules/chown (Depends-on): Add stdbool.
25302         * modules/lchown (Depends-on): Likewise.
25303         * doc/posix-functions/chown.texi (chown): Document the bug.
25304         * doc/posix-functions/lchown.texi (lchown): Likewise.
25305         * tests/test-lchown.h (test_chown): Relax test.
25306
25307         mkstemp: avoid conflict with C++ keyword template
25308         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
25309         * lib/mkostemp.c (mkostemp): Likewise.
25310         * lib/mkostemps.c (mkostemps): Likewise.
25311         * lib/mkstemp.c (mkstemp): Likewise.
25312         * lib/mkstemps.c (mkstemps): Likewise.
25313
25314         xalloc-die-tests: optimize
25315         * tests/test-xalloc-die.sh: Reduce number of processes.
25316
25317 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25318
25319         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
25320         patch from ludo@gnu.org (Ludovic Courtès).
25321
25322 2009-11-17  Jim Meyering  <meyering@redhat.com>
25323
25324         version-etc: use proper license string
25325         * modules/version-etc (License): Use LGPL, not LGPLv3+.
25326         * modules/version-etc-fsf: Likewise.
25327
25328 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25329
25330         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
25331         printed to stdout.  Deal with EOL differences.
25332
25333 2009-11-17  Eric Blake  <ebb9@byu.net>
25334
25335         unsetenv: work around Solaris bug
25336         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
25337         * lib/unsetenv.c (rpl_unsetenv): Work around it.
25338         Reported by Jim Meyering.
25339
25340         vasnprintf: avoid compiler warnings
25341         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
25342         variables.
25343         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
25344
25345 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25346
25347         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
25348         settings since xalloc-die is no longer the self test,
25349         xalloc-die.sh is.
25350
25351 2009-11-17  Jim Meyering  <meyering@redhat.com>
25352
25353         test-xalloc-die.sh: make the code agree with the commit log
25354         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
25355         at the end, just in case you happen to have a test-xalloc-die
25356         program in some other PATH directory.
25357
25358         test-xalloc-die.sh: fix a portability bug
25359         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
25360         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
25361         Otherwise, argv[0] (as often seen in diagnostics) would be too
25362         system-dependent, sometimes with, and sometimes without the leading "./".
25363
25364         version-etc-fsf: relax license to LGPLv3+
25365         * modules/version-etc-fsf (License): Relax license.
25366
25367 2009-11-16  Eric Blake  <ebb9@byu.net>
25368
25369         xalloc-die-tests: avoid printing null pointer
25370         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
25371         shell script.
25372         * tests/test-xalloc-die.c (program_name): Declare.
25373         * tests/test-xalloc-die.sh (tmpfiles): New file.
25374
25375         setenv, unsetenv: work around various bugs
25376         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
25377         (setenv) [HAVE_SETENV]: Work around bugs.
25378         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
25379         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
25380         for bugs.
25381         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
25382         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
25383         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
25384         * modules/stdlib (Makefile.am): Update substitutions.
25385         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
25386         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
25387         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
25388         * modules/setenv-tests: New test.
25389         * modules/unsetenv-tests: Likewise.
25390         * tests/test-setenv.c: New file.
25391         * tests/test-unsetenv.c: Likewise.
25392
25393 2009-11-16  Jim Meyering  <meyering@redhat.com>
25394
25395         version-etc: relax license to LGPLv3+
25396         * modules/version-etc (License): Relax license.
25397
25398         better AC_REQUIRE expanded-before-required-warning avoidance
25399         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
25400         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
25401         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
25402         which is no longer needed.
25403
25404 2009-11-16  Eric Blake  <ebb9@byu.net>
25405
25406         test-freading: clean up temporary file
25407         * tests/test-freading.c (main): Remove file on success, and use
25408         ASSERT more liberally.
25409         Reported by Jim Meyering.
25410
25411 2009-11-16  Jim Meyering  <meyering@redhat.com>
25412
25413         avoid new AC_REQUIRE expanded-before-required warnings
25414         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
25415         merely using it.
25416         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
25417         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
25418
25419 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25420
25421         * tests/test-xalloc-die.c: New file.
25422         * modules/xalloc-die-tests: New file.
25423         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
25424         XFAIL_TESTS so it can be appended by modules.
25425
25426 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25427
25428         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
25429         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
25430
25431 2009-11-14  Eric Blake  <ebb9@byu.net>
25432
25433         fnmatch: avoid compiler warning
25434         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
25435         to silence compiler warning about mismatch signedness in ?:.
25436         Reported by Robert Millan.
25437
25438         intprops: add double-inclusion guard
25439         * lib/intprops.h: Allow idempotent includes.
25440         Suggested by Bruce Korb.
25441
25442         openat: detect Solaris fchownat bug
25443         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
25444         penalizing glibc chownat when only lchownat is broken.
25445         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
25446         trailing slash bugs.
25447         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
25448         * modules/openat-tests (Files): Include more files.
25449         (Depends-on): Add mgetgroups, sleep, stat-time.
25450         (configure.ac): Add additional checks.
25451         (Makefile.am): Build new test.
25452         * tests/test-fchownat.c: New file.
25453
25454         lchown: detect Solaris and FreeBSD bug
25455         * lib/lchown.c (rpl_lchown): Work around bug.
25456         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
25457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25458         * modules/unistd (Makefile.am): Populate it.
25459         * lib/unistd.in.h (lchown): Update declaration.
25460         * doc/posix-functions/lchown.texi (lchown): Document the bug.
25461         * modules/lchown-tests: New file.
25462         * tests/test-lchown.h (test_lchown): Likewise.
25463         * tests/test-lchown.c (main): Likewise.
25464
25465         chown: detect Solaris and FreeBSD bug
25466         * lib/chown.c (rpl_chown): Work around bug.
25467         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
25468         (gl_PREREQ_CHOWN): Delete.
25469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25470         * modules/unistd (Makefile.am): Populate it.
25471         * lib/unistd.in.h (chown): Update declaration.
25472         * lib/lchown.c (chown): Update client.
25473         * modules/lchown (Depends-on): Add lstat.
25474         * doc/posix-functions/chown.texi (chown): Document the bug.
25475         * doc/posix-functions/getgroups.texi (getgroups): Document
25476         getgroups pitfall.
25477         * modules/chown-tests: New file.
25478         * tests/test-chown.h (test_chown): Likewise.
25479         * tests/test-chown.c (main): Likewise.
25480
25481 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
25482
25483         gnulib-tool: correctly detect absence of m4 directories
25484         * gnulib-tool: Avoid extra newline on data passed to wc -l.
25485
25486 2009-11-14  Jim Meyering  <meyering@redhat.com>
25487
25488         maint.mk: Prohibit inclusion of "xalloc.h" without use.
25489         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25490
25491 2009-11-14  John W. Eaton  <jwe@gnu.org>
25492
25493         strftime.h: wrap funtion declaration in extern "C" block
25494         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
25495
25496 2009-11-13  Eric Blake  <ebb9@byu.net>
25497
25498         getgroups: avoid compiler warning
25499         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
25500
25501         getgroups: work around FreeBSD bug
25502         * lib/getgroups.c (rpl_getgroups): Work around the bug.
25503         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
25504         * doc/posix-functions/getgroups.texi (getgroups): Document it.
25505         * tests/test-getgroups.c (main): Fix buffer overrun.
25506
25507         getgroups: avoid compilation failure
25508         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
25509         * modules/getgroups (Depends-on): Add stdint.
25510
25511 2009-11-13  Jim Meyering  <meyering@redhat.com>
25512
25513         test-getgroups: avoid compilation failure
25514         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
25515
25516 2009-11-13  Eric Blake  <ebb9@byu.net>
25517
25518         mgetgroups: new module, taken from coreutils
25519         * modules/mgetgroups: New file.
25520         * lib/mgetgroups.h: Likewise.
25521         * lib/mgetgroups.c (mgetgroups): Likewise.
25522         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
25523         * MODULES.html.sh (Users and groups): Mention it.
25524
25525         getgroups: don't expose GETGROUPS_T to user
25526         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
25527         an element at a time if GETGROUPS_T is wrong size.
25528         * lib/getugroups.h (getugroups): Change signature.
25529         * lib/unistd.in.h (getgroups): Likewise.
25530         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
25531         signature needs fixing.
25532         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
25533         AC_TYPE_GETGROUPS.
25534         * modules/group-member (Depends-on): Add getgroups.
25535         * lib/group-member.c (group_info, get_group_info): Use gid_t.
25536         (group_member): Rely on getgroups replacement.
25537         * lib/getugroups.c (getugroups): Use gid_t.
25538         * tests/test-getgroups.c (main): Likewise.
25539         * NEWS: Mention the signature change.
25540         * doc/posix-functions/getgroups.texi (getgroups): Mention the
25541         problem with signature.
25542         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
25543         GETGROUPS_T is still useful for setgroups.
25544
25545         getgroups, getugroups: provide stubs for mingw
25546         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
25547         * lib/getugroups.c (getugroups): Likewise.
25548         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
25549         function.  Modernize replacement scheme.
25550         (gl_PREREQ_GETGROUPS): Delete.
25551         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
25552         * modules/getgroups (configure.ac): Declare witness.
25553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25554         * modules/unistd (Depends-on): Substitute witness.
25555         * lib/unistd.in.h (getgroups): Declare replacement.
25556
25557         getgroups: avoid calling exit
25558         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
25559         drop xalloc.
25560         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
25561         dependencies.
25562         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
25563         exiting, in the rare case of malloc failure.
25564
25565         getgroups: fix logic error
25566         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
25567         has more than 20 groups.
25568         * modules/getgroups-tests: New test.
25569         * tests/test-getgroups.c: New file.
25570
25571 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25572
25573         * tests/test-base64.c: Improve.
25574
25575 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25576
25577         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
25578         Blake <ebb9@byu.net>.
25579
25580 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25581
25582         * tests/test-xvasprintf.c: Add %s%s related checks.
25583
25584 2009-11-12  Eric Blake  <ebb9@byu.net>
25585
25586         version-etc: match standards.texi style
25587         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
25588         and use <> only for URLs.
25589
25590 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
25591
25592         fts: do not fail on a submount during traversal
25593         * lib/fts.c (fts_build): Read the stat info again after opening
25594         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
25595         Original report at http://bugzilla.redhat.com/501848.
25596
25597 2009-11-12  Jim Meyering  <meyering@redhat.com>
25598
25599         bootstrap: sync from coreutils
25600         * build-aux/bootstrap (bootstrap_epilogue): New function.
25601         Use git_modules_config in one more place.  This make bootstrap's
25602         --gnulib-srcdir option more useful for testing.
25603
25604         bootstrap: generalize autoheader check
25605         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
25606         AC_CONFIG_HEADERS.
25607
25608 2009-11-11  Eric Blake  <ebb9@byu.net>
25609
25610         mkfifoat: use new modules for Solaris and BSD bugs
25611         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
25612         * lib/mkfifoat.c (mknodat): Split...
25613         * lib/mknodat.c (mknodat): ...into new file.
25614         * modules/mkfifoat (Files): Ship new file.
25615         (Depends-on): Add mkfifo, mknod.
25616         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
25617         (Depends-on): Add symlink.
25618         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
25619         redundant with test_mkfifo.h.
25620         (do_mkfifoat, do_mknodat): New helpers.
25621
25622         mknod: new module
25623         * modules/mknod: New file.
25624         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
25625         * lib/mknod.c (mknod): Likewise.
25626         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
25627         defaults.
25628         * modules/sys_stat (Makefile.am): Substitute them.
25629         * lib/sys_stat.in.h (mknod): Declare replacement.
25630         * MODULES.html.sh (Support for systems lacking POSIX:2008):
25631         Document it.
25632         * doc/posix-functions/mknod.texi (mknod): Likewise.
25633         * modules/mknod-tests: New test.
25634         * tests/test-mknod.c: Likewise.
25635
25636         mkfifo: new module
25637         * modules/mkfifo: New file.
25638         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
25639         * lib/mkfifo.c (mkfifo): Likewise.
25640         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
25641         defaults.
25642         * modules/sys_stat (Makefile.am): Substitute them.
25643         * lib/sys_stat.in.h (mkfifo): Declare replacement.
25644         * MODULES.html.sh (Support for systems lacking POSIX:2008):
25645         Document it.
25646         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
25647         * modules/mkfifo-tests: New test.
25648         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
25649         from test-mkfifoat.c.
25650         * tests/test-mkfifo.c: New file.
25651
25652         readlink: detect FreeBSD bug
25653         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
25654         slash on symlink.
25655         * doc/posix-functions/readlink.texi (readlink): Document the bug.
25656         * tests/test-readlink.h (test_readlink): Enhance test.
25657
25658         symlink: detect FreeBSD bug
25659         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
25660         slash on symlink.
25661         * doc/posix-functions/symlink.texi (symlink): Document the bug.
25662         * tests/test-symlink.h (test_symlink): Enhance test.
25663
25664 2009-11-10  Eric Blake  <ebb9@byu.net>
25665
25666         link: detect FreeBSD bug
25667         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
25668         symlink.
25669         * doc/posix-functions/link.texi (link): Document the bug.
25670         * tests/test-link.h (test_link): Enhance test.
25671         * tests/test-linkat.c (main): Update caller.
25672
25673         unlink, remove: detect FreeBSD bug
25674         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
25675         slash on symlink.
25676         * doc/posix-functions/unlink.texi (unlink): Document the bug.
25677         * doc/posix-functions/remove.texi (remove): Likewise.
25678         * tests/test-unlink.h (test_unlink): Enhance test.
25679         * tests/test-remove.c (main): Likewise.
25680
25681 2009-11-09  Eric Blake  <ebb9@byu.net>
25682
25683         rename: detect FreeBSD bug
25684         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
25685         slash on symlink.
25686         * modules/renameat-tests (Depends-on): Add filenamecat.
25687         * tests/test-rename.h (test_rename): Allow one more errno.
25688         * tests/test-renameat.c (main): Likewise.
25689         * doc/posix-functions/rename.texi (rename): Document the bug.
25690
25691         open: detect FreeBSD bug
25692         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
25693         symlink.
25694         * doc/posix-functions/open.texi (open): Document the bug.
25695         * doc/posix-functions/utimes.texi (utimes): Likewise.
25696         * tests/test-open.h (test_open): Add parameters, and test symlink
25697         handling.
25698         * tests/test-open.c (main): Adjust caller.
25699         * tests/test-fcntl-safer.c (main): Likewise.
25700         * modules/open-tests (Depends-on): Add stdbool, symlink.
25701         * modules/fcntl-safer-tests (Depends-on): Likewise.
25702         * tests/test-openat.c (main): Add test-open tests.
25703
25704         stat: detect FreeBSD bug
25705         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
25706         symlink.
25707         * doc/posix-functions/stat.texi (stat): Document the bug.
25708         * tests/test-stat.h (test_stat_func): Add argument.
25709         * tests/test-stat.c (main): Adjust caller.
25710         * tests/test-fstatat.c (main): Likewise.
25711         * modules/stat-tests (Depends-on): Add stdbool, symlink.
25712         Reported by Jim Meyering.
25713
25714 2009-11-09  James Youngman  <jay@gnu.org>
25715
25716         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
25717         * lib/strftime.c: Correct placement of #include "ignore-value.h".
25718
25719 2009-11-08  Jim Meyering  <meyering@redhat.com>
25720
25721         utimens: remove invalid futimesat call
25722         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
25723         It used the file descriptor of the target file as the DIR_FD
25724         parameter and NULL as the file name.  That caused failure with
25725         errno == EFAULT on FreeBSD-8.0-rc2
25726
25727 2009-11-07  Eric Blake  <ebb9@byu.net>
25728
25729         fflush, freadseek: use fseeko, not fseek
25730         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
25731         (clear_ungetc_buffer): Avoid potential problems on large files.
25732         * lib/freadseek.c (freadseek): Likewise.
25733         * modules/freadseek (Depends-on): Add fseeko.
25734         * modules/fseek (configure.ac): Set a witness.
25735         * tests/test-fflush.c (main): Use fseeko.
25736         * tests/test-fpurge.c (fseek): Disable link warning.
25737         * tests/test-freadable.c (fseek): Likewise.
25738         * tests/test-freading.c (fseek): Likewise.
25739         * tests/test-fseeko.c (fseek): Likewise.
25740         * tests/test-ftell.c (fseek): Likewise.
25741         * tests/test-ftello.c (fseek): Likewise.
25742         * tests/test-fwritable.c (fseek): Likewise.
25743         * tests/test-fwriting.c (fseek): Likewise.
25744
25745 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25746
25747         * modules/memchr (Depends-on): Drop getpagesize dependency.
25748
25749 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25750
25751         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
25752         Reported by Ludovic Courtès.
25753         * build-aux/pmccabe2html: Improve example usage.
25754         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
25755
25756 2009-11-06  Jim Meyering  <meyering@redhat.com>
25757
25758         do-release-commit-and-tag: New module.
25759         Automate the release-commit and tag process.
25760         * build-aux/do-release-commit-and-tag: New script, from coreutils.
25761         * modules/do-release-commit-and-tag: New file.
25762         * MODULES.html.sh (Support for maintaining and releasing): Add it.
25763
25764 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25765
25766         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
25767         because test-select.c uses inet_pton.
25768
25769 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25770
25771         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
25772         GETADDRINFO_LIB.  Bump serial number.
25773         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
25774         Suggested by Eric Blake <ebb9@byu.net>.
25775
25776 2009-11-05  Eric Blake  <ebb9@byu.net>
25777
25778         strtod: detect darwin bug
25779         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
25780         Reported by Leo Davis.
25781
25782         freopen-safer: new module
25783         * modules/freopen-safer: New module.
25784         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
25785         * lib/freopen-safer.c (freopen_safer): New file.
25786         * lib/stdio-safer.h (freopen_safer): New declaration.
25787         * lib/stdio--.h (freopen): New override.
25788         * MODULES.html.sh (File stream based Input/Output): Mention it.
25789         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
25790         freopen-safer module.
25791         * doc/posix-functions/stderr.texi (stderr): Likewise.
25792         * doc/posix-functions/stdin.texi (stdin): Likewise.
25793         * doc/posix-functions/stdout.texi (stdout): Likewise.
25794         * modules/freopen-safer-tests: New test.
25795         * tests/test-reopen-safer.c: New file.
25796
25797 2009-11-05  Jim Meyering  <meyering@redhat.com>
25798
25799         maint.mk: Prohibit inclusion of "close-stream.h" without use.
25800         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25801
25802 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25803
25804         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
25805
25806 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25807
25808         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
25809
25810 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25811
25812         Fix link error.
25813         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
25814         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25815
25816 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25817
25818         * tests/test-func.c: Also test value of __func__.
25819
25820 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25821
25822         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
25823         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
25824
25825 2009-11-05  Bruno Haible  <bruno@clisp.org>
25826
25827         Fix link error.
25828         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
25829         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25830         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
25831
25832 2009-11-05  Bruno Haible  <bruno@clisp.org>
25833
25834         Tests for module 'inet_pton'.
25835         * modules/inet_pton-tests: New file.
25836         * tests/test-inet_pton.c: New file.
25837
25838 2009-11-05  Bruno Haible  <bruno@clisp.org>
25839
25840         Tests for module 'inet_ntop'.
25841         * modules/inet_ntop-tests: New file.
25842         * tests/test-inet_ntop.c: New file.
25843
25844 2009-11-04  Eric Blake  <ebb9@byu.net>
25845
25846         stdlib-safer: wrap all mkstemp variants
25847         * modules/mkostemp (configure.ac): Set witness.
25848         * modules/mkostemps (configure.ac): Likewise.
25849         * modules/mkstemps (configure.ac): Likewise.
25850         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
25851         (mkstemps_safer): Wrap more functions.
25852         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
25853         wrapping.
25854         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
25855         (mkstemps_safer): Implement the wrappers.
25856
25857         mkstemps, mkostemps: new modules
25858         * modules/mkostemps: New module.
25859         * modules/mkstemps: Likewise.
25860         * lib/mkostemps.c (mkostemps): New file.
25861         * lib/mkstemps.c (mkstemps): Likewise.
25862         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
25863         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
25864         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
25865         * modules/stdlib (Makefile.am): Substitute them.
25866         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
25867         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
25868         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25869         * doc/gnulib.texi (Glibc stdlib.h): Include them.
25870         * MODULES.html.sh (File system functions): Mention them.
25871
25872         tempname: resync from glibc
25873         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
25874         same values for __GT_FILE as glibc.  Abort even when assertions
25875         are disabled.
25876         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
25877         match its value otherwise.  Allow idempotent inclusion.
25878         * lib/mkdtemp.c (mkdtemp): Adjust caller.
25879         * lib/mkostemp.c (mkostemp): Likewise.
25880         * lib/mkstemp.c (mkstemp): Likewise.
25881         * lib/tmpfile.c (tmpfile): Likewise.
25882         * NEWS: Document this.
25883
25884         utimens: fix use of futimens on older Linux
25885         * lib/utimens.c (fdutimens): Use updated, rather than original,
25886         timespec to avoid bug in older Linux kernel.
25887         Reported by Simon Josefsson.
25888
25889 2009-11-04  Bruno Haible  <bruno@clisp.org>
25890
25891         Make num_processors more flexible and consistent.
25892         * lib/nproc.h (enum nproc_query): New type.
25893         (num_processors): Add a 'query' argument.
25894         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
25895         (num_processors): Add a 'query' argument. Test the value of the
25896         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
25897         mingw, count the number of CPUs available for the current process.
25898         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
25899         Check for sched_getaffinity and sched_getaffinity_np.
25900         * modules/nproc (Depends-on): Add c-ctype, extensions.
25901         * NEWS: Mention the change.
25902
25903 2009-11-03  Bruno Haible  <bruno@clisp.org>
25904
25905         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
25906
25907 2009-11-03  Jim Meyering  <meyering@redhat.com>
25908
25909         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
25910         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
25911         if it is defined.
25912
25913 2009-11-02  Eric Blake  <ebb9@byu.net>
25914
25915         mktime, timegm: share common declaration
25916         * lib/mktime-internal.h: New file.
25917         * lib/mktime.c: Use it rather than open-coding a declaration.
25918         * lib/timegm.c: Likewise.
25919         * modules/mktime (Files): Ship it.
25920         * modules/timegm (Files): Likewise.
25921         Suggested by Bruno Haible.
25922
25923         test-update-copyright: update test to match script changes
25924         * tests/test-update-copyright.sh: Avoid hard-coding perl
25925         location.  Don't update *.bak created by earlier runs.
25926
25927 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
25928             Simon Josefsson  <simon@josefsson.org>
25929             Bruno Haible  <bruno@clisp.org>
25930
25931         Fix link error on Solaris 8.
25932         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
25933         also in libnsl. Define also INET_PTON_LIB.
25934         * modules/inet_pton (Link): New section.
25935
25936 2009-11-02  Simon Josefsson  <simon@josefsson.org>
25937             Bruno Haible  <bruno@clisp.org>
25938
25939         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
25940         * modules/inet_ntop (Link): New section.
25941         Reported by Boyan Kasarov <bkasarov@gmail.com>.
25942
25943 2009-11-02  Eric Blake  <ebb9@byu.net>
25944
25945         maint: avoid compiler warnings in m4 macros
25946         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
25947         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
25948
25949 2009-11-02  Simon Josefsson  <simon@josefsson.org>
25950
25951         * m4/pmccabe2html.m4: Remove file.
25952         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
25953         function.  Change maintainer.
25954         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
25955         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
25956         Courtès).
25957
25958 2009-10-31  Eric Blake  <ebb9@byu.net>
25959
25960         fseeko: fix m4 regression
25961         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
25962         regression from 2009-10-27.
25963         Reported by Ralf Wildenhues.
25964
25965 2009-10-31  Jim Meyering  <meyering@redhat.com>
25966
25967         inttostr: aesthetics and improved (compile-time) safety
25968         Define inttype_is_signed rather than inttype_is_unsigned,
25969         since the sole use is via "#if inttype_is_signed".
25970         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
25971         inttype_is_unsigned.
25972         * lib/offtostr.c (inttype_is_signed): Likewise.
25973         * lib/uinttostr.c (inttype_is_signed): Likewise.
25974         * lib/umaxtostr.c (inttype_is_signed): Likewise.
25975         * lib/inttostr.c (inttostr): Use verify to cross-check the
25976         inttype_is_signed value and the signedness of the actual type.
25977         * modules/inttostr (Depends-on): Add verify.
25978
25979 2009-10-30  Eric Blake  <ebb9@byu.net>
25980
25981         build: avoid compiler warnings
25982         * lib/fchmodat.c (lchmod): Mark unused variables.
25983         * lib/getopt.c (_getopt_initialize): Likewise.
25984         * lib/mktime.c (__mktime_internal): Provide prototype.
25985         * lib/inttostr.c (inttostr): Avoid compiler warning even with
25986         older gcc that do not understand #pragma GCC diagnostic.
25987         * lib/uinttostr.c (inttype_is_unsigned): Define.
25988         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
25989
25990 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
25991
25992         stat: fix compilation on AIX
25993         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
25994         only see struct stat64.
25995
25996 2009-10-30  Eric Blake  <ebb9@byu.net>
25997
25998         exclude: make more robust
25999         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
26000         rather than masking a coding bug.
26001         Suggested by Bruno Haible.
26002
26003 2009-10-30  Jim Meyering  <meyering@redhat.com>
26004
26005         perl scripts: remove #!/usr/bin/perl in favor of more portable...
26006         Rather than putting #!/usr/bin/perl on the first line,
26007         start with a variant of what's recommended by "man perlrun" that
26008         invokes the first "perl" program from your shell's search path.
26009         * build-aux/gitlog-to-changelog: Replace #!... as above.
26010         Add a "Local Variables" perl mode setting.
26011         Prompted by a patch from Ludovic Courtès.
26012         Improved by Eric Blake.
26013         * build-aux/useless-if-before-free: Likewise.
26014         * build-aux/announce-gen: Likewise.
26015         * build-aux/update-copyright: Likewise.
26016
26017 2009-10-29  Eric Blake  <ebb9@byu.net>
26018
26019         filenamecat-lgpl: adjust clients
26020         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
26021         filenamecat.
26022         * modules/renameat (Depends-on): Likewise.
26023
26024         filenamecat: split into filenamecat-lgpl
26025         * modules/filenamecat-lgpl: New module.
26026         * modules/filenamecat (Files): Move library-safe files into
26027         filenamecat-lgpl.
26028         (Depends-on): Add filenamecat-lgpl.
26029         (configure.ac): Declare witness.
26030         * lib/filenamecat.h (file_name_concat): Only declare when using
26031         GPL module.
26032         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
26033         Move...
26034         * lib/filenamecat-lgpl.c: ...into new file.
26035         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
26036         (gl_FILE_NAME_CONCAT): Use it.
26037         * MODULES.html.sh (File system functions): Mention new module.
26038
26039         argp: avoid memory leak
26040         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
26041         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
26042         base_name, since the latter malloc()s and can call exit().
26043         Leak introduced 2006-07-03.
26044
26045         dirname-lgpl: adjust clients that don't need full dirname
26046         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
26047         * modules/filenamecat (Depends-on): Likewise.
26048         * modules/linkat (Depends-on): Likewise.
26049         * modules/mkancesdirs (Depends-on): Likewise.
26050         * modules/mkdir (Depends-on): Likewise.
26051         * modules/openat (Depends-on): Likewise.
26052         * modules/savewd (Depends-on): Likewise.
26053         * modules/rename (Depends-on): Likewise.
26054         (License): Relax license.
26055         * modules/mkdir-tests (Depends-on): Drop progname.
26056         (Makefile.am): Delete unneeded LDADD.
26057         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
26058
26059         dirname: split into dirname-lgpl
26060         * modules/dirname-lgpl: New module.
26061         * modules/dirname (Files): Move library-safe files into
26062         dirname-lgpl.
26063         (Depends-on): Add dirname-lgpl.
26064         (configure.ac): Declare witness.
26065         * modules/double-slash-root (License): Relax license.
26066         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
26067         module.
26068         * lib/dirname.c (dir_len, mdir_name): Move...
26069         * lib/dirname-lgpl.c: ...into new file.
26070         * lib/basename.c (last_component, base_len): Move...
26071         * lib/basename-lgpl.c: ...into new file.
26072         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
26073         (gl_DIRNAME): Use it.
26074         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
26075         Mention new module.
26076         * modules/dirname-tests (Depends-on): Add progname.
26077         * tests/test-dirname.c (program_name): Delete.
26078
26079         mkdir: make safe for libraries
26080         * modules/mkdir (Depends-on): Drop xalloc.
26081         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
26082         exit.
26083
26084         tests: avoid some compiler warnings
26085         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
26086         literals.
26087         * tests/test-memchr.c (main): Avoid type mismatch.
26088         * tests/test-arpa_inet.c (main): Avoid unused parameters.
26089         * tests/test-base64.c (main): Likewise.
26090         * tests/test-getdelim.c (main): Likewise.
26091         * tests/test-gethostname.c (main): Likewise.
26092         * tests/test-getline.c (main): Likewise.
26093         * tests/test-netinet_in.c (main): Likewise.
26094         * tests/test-select.c (open_server_socket, main): Likewise.
26095         * tests/test-select-stdin.c (main): Likewise.
26096         * tests/test-sockets.c (main): Likewise.
26097         * tests/test-strsignal.c (main): Likewise.
26098         * tests/test-sys_select.c (main): Likewise.
26099         * tests/test-sys_socket.c (main): Likewise.
26100         * tests/test-u64.c (main): Likewise.
26101         * tests/test-xfprintf-posix.c (main): Likewise.
26102         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
26103
26104         sockets: avoid compiler warning
26105         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
26106
26107         maint: detect usage(1) and other suspicious exits
26108         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
26109
26110 2009-10-29  Jim Meyering  <meyering@redhat.com>
26111
26112         timespec: long-to-int truncation could make timespec_cmp malfunction
26113         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
26114         a multiple of 2^32 nanoseconds as no difference.
26115
26116 2009-10-28  Jim Meyering  <meyering@redhat.com>
26117
26118         fprintftime: wrap macro code argument in "do {...} while(0)"
26119         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
26120         cpy macro must be a statement that can be followed by a semicolon.
26121         Now that the else clause contains a comment and is hence longer
26122         than one line, I require curly braces.  That in turn requires
26123         that we wrap this code block in the standard do...while(0).
26124
26125         fprintftime: remove stray semicolon from previous change
26126         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
26127
26128         fprintftime: avoid a warning about ignored fwrite return value
26129         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
26130         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
26131         that is unsafe.
26132         * modules/fprintftime (Depends-on): Add ignore-value.
26133
26134         exclude: avoid an unwarranted warning
26135         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
26136
26137 2009-10-27  Eric Blake  <ebb9@byu.net>
26138
26139         fseek: avoid compilation failure when fflush is replaced
26140         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
26141         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
26142         module is in use.
26143         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
26144         module is not in use; since REPLACE_FSEEK worked otherwise.
26145         (GNULIB_FTELLO): Likewise for ftell.
26146         Reported by Ian Beckwith and others.
26147
26148 2009-10-27  Bruno Haible  <bruno@clisp.org>
26149
26150         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
26151         Reported by Jim Meyering.
26152
26153 2009-10-27  Jim Meyering  <jim@meyering.net>
26154             Bruno Haible  <bruno@clisp.org>
26155
26156         Avoid warning despite dropping the return value of fwrite.
26157         * lib/unicodeio.c: Include ignore-value.h.
26158         (fwrite_success_callback): Explicitly ignore fwrite's return value.
26159         * modules/unicodeio (Depends-on): Add ignore-value.
26160
26161 2009-10-26  Eric Blake  <ebb9@byu.net>
26162
26163         areadlinkat: fix fallback path
26164         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
26165         pointer and zero.
26166
26167 2009-10-22  Pádraig Brady  <P@draigBrady.com>
26168
26169         Use a better IO block size for modern systems
26170         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
26171         * lib/md2.c: Likewise.
26172         * lib/md4.c: Likewise.
26173         * lib/md5.c: Likewise.
26174         * lib/sha1.c: Likewise.
26175         * lib/sha256.c: Likewise.
26176         * lib/sha512.c: Likewise.
26177
26178 2009-10-22  Eric Blake  <ebb9@byu.net>
26179
26180         tests: avoid several compiler warnings
26181         * tests/test-getcwd.c (main): Avoid buffer underflow.
26182         * tests/test-getdate.c (main): String literals are not safe with
26183         putenv, so use setenv.  Declare unused argument.
26184         * modules/getdate-tests (Depends-on): Add setenv.
26185         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
26186         problems with string literals in char *.
26187         * tests/test-hash.c (main): Avoid shadowing declaration.
26188         (insert_new): Treat string literals as char const *.
26189         * tests/test-getopt.h (test_getopt): Likewise.
26190         (getopt_loop): Alter types to minimize casting elsewhere.
26191         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
26192         (test_getopt_long_posix): Likewise.
26193         (do_getopt_long): Add wrapper to minimize casting.
26194         * tests/test-atexit.c (clear_temp_file): Use void.
26195         * tests/test-areadlink-with-size.c (main): Declare unused
26196         arguments.
26197         * tests/test-areadlink.c (main): Likewise.
26198         * tests/test-areadlinkat-with-size.c (main): Likewise.
26199         * tests/test-areadlinkat.c (main): Likewise.
26200         * tests/test-canonicalize-lgpl.c (main): Likewise.
26201         * tests/test-canonicalize.c (main): Likewise.
26202         * tests/test-dirent-safer.c (main): Likewise.
26203         * tests/test-dirname.c (main): Likewise.
26204         * tests/test-dup2.c (main): Likewise.
26205         * tests/test-fchdir.c (main): Likewise.
26206         * tests/test-fcntl-h.c (main): Likewise.
26207         * tests/test-fcntl-safer.c (main): Likewise.
26208         * tests/test-fdopendir.c (main): Likewise.
26209         * tests/test-fdutimensat.c (main): Likewise.
26210         * tests/test-fflush.c (main): Likewise.
26211         * tests/test-filenamecat.c (main): Likewise.
26212         * tests/test-filevercmp.c (main): Likewise.
26213         * tests/test-fopen-safer.c (main): Likewise.
26214         * tests/test-fopen.c (main): Likewise.
26215         * tests/test-fpending.c (main): Likewise.
26216         * tests/test-fpurge.c (main): Likewise.
26217         * tests/test-freading.c (main): Likewise.
26218         * tests/test-fstatat.c (main): Likewise.
26219         * tests/test-fsync.c (main): Likewise.
26220         * tests/test-futimens.c (main): Likewise.
26221         * tests/test-getndelim2.c (main): Likewise.
26222         * tests/test-gettimeofday.c (main): Likewise.
26223         * tests/test-getopt.c (main): Likewise.
26224         * tests/test-i-ring.c (main): Likewise.
26225         * tests/test-inttypes.c (main): Likewise.
26226         * tests/test-link.c (main): Likewise.
26227         * tests/test-lstat.c (main): Likewise.
26228         * tests/test-math.c (main): Likewise.
26229         * tests/test-md5.c (main): Likewise.
26230         * tests/test-memchr2.c (main): Likewise.
26231         * tests/test-memrchr.c (main): Likewise.
26232         * tests/test-mkdir.c (main): Likewise.
26233         * tests/test-mkdirat.c (main): Likewise.
26234         * tests/test-mkfifoat.c (main): Likewise.
26235         * tests/test-open.c (main): Likewise.
26236         * tests/test-openat-safer.c (main): Likewise.
26237         * tests/test-openat.c (main): Likewise.
26238         * tests/test-quotearg.c (main): Likewise.
26239         * tests/test-rawmemchr.c (main): Likewise.
26240         * tests/test-readlink.c (main): Likewise.
26241         * tests/test-remove.c (main): Likewise.
26242         * tests/test-rename.c (main): Likewise.
26243         * tests/test-renameat.c (main): Likewise.
26244         * tests/test-rmdir.c (main): Likewise.
26245         * tests/test-sha1.c (main): Likewise.
26246         * tests/test-signal.c (main): Likewise.
26247         * tests/test-sigaction.c (main): Likewise.
26248         * tests/test-stat.c (main): Likewise.
26249         * tests/test-stat-time.c (main): Likewise.
26250         * tests/test-stddef.c (main): Likewise.
26251         * tests/test-stdint.c (main): Likewise.
26252         * tests/test-stdio.c (main): Likewise.
26253         * tests/test-stdlib.c (main): Likewise.
26254         * tests/test-strchrnul.c (main): Likewise.
26255         * tests/test-strerror.c (main): Likewise.
26256         * tests/test-string.c (main): Likewise.
26257         * tests/test-strtod.c (main): Likewise.
26258         * tests/test-strverscmp.c (main): Likewise.
26259         * tests/test-symlink.c (main): Likewise.
26260         * tests/test-symlinkat.c (main): Likewise.
26261         * tests/test-sys_stat.c (main): Likewise.
26262         * tests/test-sys_time.c (main): Likewise.
26263         * tests/test-time.c (main): Likewise.
26264         * tests/test-unistd.c (main): Likewise.
26265         * tests/test-unlink.c (main): Likewise.
26266         * tests/test-unlinkat.c (main): Likewise.
26267         * tests/test-utimens.c (main): Likewise.
26268         * tests/test-utimensat.c (main): Likewise.
26269         * tests/test-version-etc.c (main): Likewise.
26270         * tests/test-wchar.c (main): Likewise.
26271         * tests/test-wctype.c (main): Likewise.
26272         * tests/test-xprintf-posix.c (main): Likewise.
26273         * tests/test-posixtm.c (main): Likewise.
26274         (STREQ): Delete unused macro.
26275         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
26276         shadowed variables.
26277         * tests/test-memchr.c (main): Likewise.
26278
26279 2009-10-21  Eric Blake  <ebb9@byu.net>
26280
26281         areadlinkat: avoid failure on older glibc
26282         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
26283         rather than mis-comparing 0 against FUNC_RESULT of char*.
26284
26285 2009-10-21  Bruno Haible  <bruno@clisp.org>
26286
26287         * modules/stpncpy (License): Relicense under LGPLv2+.
26288         Reported by David Lutterkort <lutter@redhat.com>.
26289
26290 2009-10-20  Eric Blake  <ebb9@byu.net>
26291
26292         utimensat: work around Solaris 9 bug
26293         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
26294         has trailing slash bugs.
26295         * tests/test-lutimens.h (test_lutimens): Enhance test.
26296         * tests/test-utimens.h (test_utimens): Likewise.
26297         * doc/posix-functions/utime.texi (utime): Enhance documentation.
26298         * doc/posix-functions/utimes.texi (utimes): Likewise.
26299         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26300         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
26301         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
26302         * doc/posix-functions/futimens.texi (futimens): Likewise.
26303
26304         fdutimensat: new module
26305         * modules/fdutimensat: New file.
26306         * lib/fdutimensat.c (fdutimensat): Likewise.
26307         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
26308         * MODULES.html.sh (File system functions): Mention module.
26309         * modules/fdutimensat-tests: New test.
26310         * tests/test-fdutimensat.c: Likewise.
26311
26312         doc: regenerate INSTALL
26313         * doc/INSTALL: Reflect recent autoconf update.
26314         * doc/INSTALL.ISO: Likewise.
26315         * doc/INSTALL.UTF-8: Likewise.
26316
26317 2009-10-20  Pádraig Brady  <P@draigBrady.com>
26318
26319         acl: warn if ACL support is not detected
26320         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
26321
26322 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
26323
26324         * lib/nproc.h: Add extern "C" block for C++.
26325
26326 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
26327             Bruno Haible  <bruno@clisp.org>
26328
26329         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
26330         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
26331         * doc/posix-functions/isalpha.texi: Likewise.
26332         * doc/posix-functions/isblank.texi: Likewise.
26333         * doc/posix-functions/iscntrl.texi: Likewise.
26334         * doc/posix-functions/isdigit.texi: Likewise.
26335         * doc/posix-functions/isgraph.texi: Likewise.
26336         * doc/posix-functions/islower.texi: Likewise.
26337         * doc/posix-functions/isprint.texi: Likewise.
26338         * doc/posix-functions/ispunct.texi: Likewise.
26339         * doc/posix-functions/isspace.texi: Likewise.
26340         * doc/posix-functions/isupper.texi: Likewise.
26341         * doc/posix-functions/isxdigit.texi: Likewise.
26342
26343 2009-10-18  Bruno Haible  <bruno@clisp.org>
26344
26345         Tests for module 'isblank'.
26346         * modules/isblank-tests: New file.
26347         * tests/test-isblank.c: New file.
26348
26349         New module 'isblank'.
26350         * lib/isblank.c: New file.
26351         * m4/isblank.m4: New file.
26352         * modules/isblank: New file.
26353         * doc/posix-functions/isblank.texi: Mention the new module.
26354
26355 2009-10-18  Bruno Haible  <bruno@clisp.org>
26356
26357         New module 'ctype'.
26358         * lib/ctype.in.h: New file.
26359         * m4/ctype.m4: New file.
26360         * modules/ctype: New file.
26361         * doc/posix-headers/ctype.texi: Mention the new module.
26362
26363 2009-10-18  Jim Meyering  <meyering@redhat.com>
26364
26365         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
26366         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
26367         right after its initialization, rather than farther down.
26368         Keeping these in close proximity makes it easier to ensure
26369         that each such variable is initialized.  E.g.,
26370
26371             LIB_CLOCK_GETTIME=
26372             AC_SUBST([LIB_CLOCK_GETTIME])
26373
26374         This change also increments these serial numbers.
26375         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
26376         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26377         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26378
26379 2009-10-18  Bruno Haible  <bruno@clisp.org>
26380
26381         Don't let environment variables perturb build.
26382         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
26383         (gl_PREREQ_GETHRXTIME): ... not here.
26384
26385 2009-10-18  Bruno Haible  <bruno@clisp.org>
26386
26387         Avoid symlink attack in localcharset module.
26388         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
26389         (O_NOFOLLOW): Define fallback.
26390         (get_charset_aliases): Don't open the file if it is a symbolic link.
26391         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
26392         gl_FCNTL_H.
26393         (gl_FCNTL_H): Require it.
26394         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
26395         * modules/localcharset (Files): Add m4/fcntl_h.m4.
26396         Reported by Fergal Glynn <fglynn@veracode.com>.
26397
26398 2009-10-18  Bruno Haible  <bruno@clisp.org>
26399
26400         Implement nproc for mingw.
26401         * lib/nproc.c: Include <windows.h>
26402         (num_processors): On native Windows platforms, try GetSystemInfo.
26403
26404 2009-10-18  Bruno Haible  <bruno@clisp.org>
26405
26406         Implement nproc for IRIX.
26407         * lib/nproc.c: Include <sys/sysmp.h>.
26408         (num_processors): On IRIX systems, try sysmp.
26409         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
26410
26411 2009-10-18  Bruno Haible  <bruno@clisp.org>
26412
26413         Implement nproc for HP-UX.
26414         * lib/nproc.c: Include <sys/pstat.h>
26415         (num_processors): On HP-UX systems, try pstat_getdynamic.
26416         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
26417         pstat_getdynamic.
26418
26419 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
26420             Bruno Haible  <bruno@clisp.org>
26421
26422         Implement nproc for NetBSD, OpenBSD.
26423         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
26424         (ARRAY_SIZE): New macro.
26425         (num_processors): On BSD systems, try sysctl of HW_NCPU.
26426         * m4/nproc.m4: New file.
26427         * modules/nproc (Files): Add m4/nproc.m4.
26428         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
26429         (Makefile.am): Instead, augment lib_SOURCES.
26430
26431 2009-10-18  Bruno Haible  <bruno@clisp.org>
26432
26433         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
26434         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
26435         sys/param.h.
26436
26437 2009-10-16  Eric Blake  <ebb9@byu.net>
26438
26439         utimensat: new module
26440         * modules/utimensat: New file.
26441         * lib/utimensat.c (utimensat): Likewise.
26442         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26443         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
26444         so we can work around Linux bugs.
26445         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26446         * modules/sys_stat (Makefile.am): Substitute them.
26447         * lib/sys_stat.in.h (utimensat): Declare it.
26448         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26449         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26450         * modules/utimensat-tests: New test.
26451         * tests/test-utimensat.c: Likewise.
26452
26453         utimens: let lutimens work on non-symlinks
26454         * lib/utimens.c (lutimens): Fall back to utimens rather than
26455         failing with ENOSYS, when file is not a symlink.
26456         (utimens): Reduce redirection.
26457         * tests/test-lutimens.h (test_lutimens): Update test to cover
26458         non-symlinks.
26459         * tests/test-utimens.h (test_utimens): Update test to cover
26460         symlinks.
26461         * tests/test-utimens.c (main): Update caller.
26462
26463         utimens: cache whether utimensat syscall works
26464         * lib/utimens.c (utimensat_works_really): New cache variable.
26465         (fdutimens, lutimens): Use it to avoid failing syscall.
26466
26467         test-stat-time, test-utimens: improve portability
26468         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
26469         ext4 on alpha, and for cygwin.
26470         * tests/test-utimens-common.h: New file.
26471         (nap): Factor delays into single function.
26472         * tests/test-lutimens.h (test_lutimens): Use new header.
26473         * tests/test-futimens.h (test_futimens): Likewise.
26474         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
26475         timestamps to occur from same machine, as was done previously for
26476         test_utimens.
26477         * modules/utimens-tests (Files): Ship new file.
26478         * modules/futimens-tests (Files): Likewise.
26479         Reported in part by Jim Meyering.
26480
26481         sys_stat: sort replacement declarations
26482         * lib/sys_stat.in.h: Sort declarations.
26483         * lib/futimens.c (futimens): Fix typo.
26484
26485 2009-10-15  Jim Meyering  <meyering@redhat.com>
26486
26487         don't let environment settings perturb build
26488         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
26489         could cause a configure-time and/or build-time malfunction.
26490         Typically, a configure-time function-in-library test is performed
26491         via code like this:
26492
26493           LIB_VAR=
26494           AC_SUBST([LIB_VAR])
26495           prefix_saved_LIBS=$LIBS
26496             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
26497                        [test "$ac_cv_search_FUNC" = "none required" ||
26498                         LIB_VAR=$ac_cv_search_FUNC])
26499           LIBS=$prefix_saved_LIBS
26500
26501         However, in each of the files affected by this change, the LIB_VAR=
26502         initialization was omitted.  Thus, when set in the environment, its
26503         value would propagate into generated Makefiles when FUNC is not found
26504         in LIB_NAME.
26505         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
26506         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26507         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26508
26509 2009-10-14  Eric Blake  <ebb9@byu.net>
26510
26511         fchdir: avoid infinite recursion in mingw
26512         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
26513         recursing.
26514
26515         test-stat-time: port to mingw
26516         * tests/test-stat-time.c (force_unlink): Return a value.
26517         (test_ctime) [W32]: Fix compilation error.
26518         (nap): Don't call usleep with too large an argument.  Use
26519         force_unlink.
26520         * doc/pastposix-functions/usleep.texi (usleep): Document the
26521         portability issue.
26522
26523 2009-10-13  Jim Meyering  <meyering@redhat.com>
26524
26525         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
26526         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
26527         * modules/pipe-filter-ii: Likewise.
26528         * modules/sys_socket-tests: Likewise.
26529         * modules/tsearch-tests: Likewise.
26530         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
26531         (check): Depend on it.
26532
26533 2009-10-12  Eric Blake  <ebb9@byu.net>
26534
26535         utimens-tests: port to NFS file systems
26536         * tests/test-utimens.h (test_utimens): Refactor utimecmp
26537         comparisons to avoid spurious failures from timestamp drift
26538         between NFS machines.
26539
26540 2009-10-12  Eric Blake  <ebb9@byu.net>
26541
26542         stat-time-tests: minor cleanups
26543         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
26544         * tests/test-stat-time.c (nap): Separate assignment from call.
26545         Suggested by Paolo Bonzini and Bruno Haible.
26546
26547         sys_stat: guarantee struct timespec
26548         * lib/sys_stat.in.h (includes): Always include <time.h>
26549         * modules/sys_stat (Depends-on): Add time.
26550         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
26551         mode_t permission values.
26552         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
26553         get at subsecond timestamps.
26554
26555 2009-10-10  Eric Blake  <ebb9@byu.net>
26556
26557         futimens: new module
26558         * modules/futimens: New file.
26559         * lib/futimens.c (futimens): Likewise.
26560         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
26561         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
26562         we can work around Linux bugs.
26563         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26564         * modules/sys_stat (Makefile.am): Substitute them.
26565         * lib/sys_stat.in.h (futimens): Declare it.
26566         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26567         * doc/posix-functions/futimens.texi (futimens): Likewise.
26568         * modules/futimens-tests: New test.
26569         * tests/test-futimens.c: Likewise.
26570
26571         utimens: introduce fdutimens
26572         * lib/utimens.h (fdutimens): New prototype.
26573         * lib/utimens.c (gl_futimens): Move guts...
26574         (fdutimens): ...to new interface.
26575         * tests/test-utimens.c (do_fdutimens): Use it.
26576
26577         utimens: add UTIME_NOW and UTIME_OMIT support
26578         * lib/utimens.c (validate_timespec, update_timespec): New helper
26579         functions.
26580         (gl_futimens, lutimens): Use them.
26581         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
26582         stdbool, sys_stat.
26583         (Link): Mention resulting library dependency.
26584         * modules/utimecmp (Link): Likewise.
26585         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
26586         (Makefile.am): Pick up library dependency.
26587         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
26588         definition.
26589         * tests/test-sys_stat.c: Test the definitions.
26590         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
26591         * NEWS: Document library dependency.
26592
26593         utimecmp: support symlink timestamps
26594         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
26595         hashing when possible.  Use pathconf when available.
26596         (SYSCALL_RESOLUTION): Recognize tighter resolution.
26597         * modules/utimecmp (Depends-on): Add lstat.
26598
26599         utimens: add lutimens interface
26600         * lib/utimens.c (lutimens): New function.
26601         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
26602         * lib/utimens.h (lutimens): Declare new interface.
26603         * tests/test-utimens.c (main): Enhance test.
26604         * tests/test-lutimens.h (test_lutimens): New file.
26605         * modules/utimens-tests (Files): Distribute it.
26606         (Depends-on): Add symlink.
26607         (configure.ac): Check for usleep.
26608
26609         utimens: validate futimens usage
26610         * lib/utimens.c (gl_futimens): Require valid fd up front, using
26611         fewer syscalls on failure later on.  Avoid compiler warning on
26612         mingw.
26613         * modules/utimens (Depends-on): Add dup2.
26614
26615         utimens: add test
26616         * modules/utimens-tests: New test.
26617         * tests/test-utimens.h: New file.
26618         * tests/test-futimens.h: Likewise.
26619         * tests/test-utimens.c: Likewise.
26620
26621         doc: mention timestamp portability issues
26622         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
26623         instead.
26624         * doc/posix-functions/utime.texi (utime): Likewise.
26625         * doc/posix-functions/utimes.texi (utimes): Likewise.
26626         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
26627         instead.
26628         * doc/posix-functions/futimens.texi (futimens): Mention utimens
26629         module.
26630         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26631         Mention weakness with symlink timestamps.
26632         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
26633         to utimensat/futimens instead.
26634         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
26635
26636         test-dup2: enhance test
26637         * tests/test-dup2.c (main): Also check AT_FDCWD.
26638
26639         test-stat-time: avoid more spurious failures
26640         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
26641         xfs; and avoid race if the two timestamps cross quantization edge.
26642
26643         relocatable: prefer 'file system' over 'filesystem'
26644         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
26645         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
26646         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
26647         * doc/relocatable.texi (Enabling Relocatability): Likewise.
26648         * lib/relocatable.c (compute_curr_prefix): Likewise.
26649
26650 2009-10-10  Jim Meyering  <meyering@redhat.com>
26651
26652         stat-time-tests: check for the usleep function
26653         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
26654
26655 2009-10-10  Bruno Haible  <bruno@clisp.org>
26656
26657         * modules/xnanosleep: Put the Link section after the Include section.
26658
26659 2009-10-09  Eric Blake  <ebb9@byu.net>
26660
26661         dup2: work around FreeBSD 6.1 bug
26662         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
26663         * doc/posix-functions/dup2.texi (dup2): Document it.
26664         Reported by Nelson H. F. Beebe and Jim Meyering.
26665
26666         test-stat-time: port to buggy NFS clients
26667         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
26668         (test_ctime): Also skip test if mtime and ctime are skewed.
26669
26670         maint: prefer 'file system' over 'filesystem'
26671         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
26672         * doc/posix-functions/lstat.texi (lstat): Likewise.
26673         * lib/file-has-acl.c (file_has_acl): Likewise.
26674         * lib/fwriteerror.c [TEST]: Likewise.
26675         * tests/test-areadlink.h (test_areadlink): Likewise.
26676         * tests/test-areadlinkat-with-size.c (main): Likewise.
26677         * tests/test-areadlinkat.c (main): Likewise.
26678         * tests/test-canonicalize-lgpl.c (main): Likewise.
26679         * tests/test-canonicalize.c (main): Likewise.
26680         * tests/test-fstatat.c (main): Likewise.
26681         * tests/test-linkat.c (main): Likewise.
26682         * tests/test-lstat.h (test_lstat_func): Likewise.
26683         * tests/test-mkdir.h (test_mkdir): Likewise.
26684         * tests/test-readlink.h (test_readlink): Likewise.
26685         * tests/test-remove.c (main): Likewise.
26686         * tests/test-rename.h (test_rename): Likewise.
26687         * tests/test-renameat.c (main): Likewise.
26688         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26689         * tests/test-symlink.h (test_symlink): Likewise.
26690         * tests/test-symlinkat.c (main): Likewise.
26691         * tests/test-unlink.h (test_unlink_func): Likewise.
26692         * tests/test-unlinkat.c (main): Likewise.
26693
26694         maint: make realtime library usage explicit
26695         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
26696         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
26697         * modules/settime (Link): Likewise.
26698         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
26699
26700         test-stat-time: speed up execution
26701         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
26702         warning on mingw.
26703         (nap): New helper function.
26704         (prepare_test): Use it to reduce sleep time.
26705         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
26706         execution.
26707         * modules/stat-time-tests (configure.ac): Check for usleep.
26708
26709 2009-10-09  Jim Meyering  <meyering@redhat.com>
26710
26711         selinux-h: always use getfilecon wrappers
26712         * lib/getfilecon.c: New file.
26713         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
26714         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
26715         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
26716         (fgetfilecon): Provide a stub.
26717         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
26718         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
26719         file unconditionally.
26720         When <selinux/selinux.h> is found, arrange to use wrappers.
26721         * modules/selinux-h (Files): Add getfilecon.c.
26722         (Makefile.am): Substitute include-next-related bits
26723         into the now-always-generated selinux/selinux.h file.
26724         * doc/glibc-functions/lgetfilecon.texi: New file.
26725         * doc/glibc-functions/fgetfilecon.texi: New file.
26726         * doc/glibc-functions/getfilecon.texi: New file.
26727         * doc/glibc-functions/getfilecon-desc.texi: New file.
26728         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
26729         which to pull in the new files.
26730         * MODULES.html.sh (Misc): Add selinux-h.
26731
26732 2009-10-08  Jim Meyering  <meyering@redhat.com>
26733
26734         unistd: fix comment typo
26735         * lib/unistd.in.h (euidaccess): Fix a comment typo.
26736
26737 2009-10-08  Eric Blake  <ebb9@byu.net>
26738
26739         areadlink: use SIZE_MAX consistently
26740         * modules/areadlink (Depends-on): Add stdint.
26741         * modules/areadlink-with-size (Depends-on): Likewise.
26742         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
26743         gives NULL; drop sys/types, since unistd gives size_t; and add
26744         stdint for SIZE_MAX.
26745         (SIZE_MAX): Rely on headers.
26746         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
26747         and add stdint.
26748         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
26749         (SIZE_MAX): Likewise.
26750         (INITIAL_BUF_SIZE): Turn into enum.
26751         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
26752
26753 2009-10-08  Jim Meyering  <meyering@redhat.com>
26754
26755         areadlinkat: avoid compilation failure
26756         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
26757         Fix typo in comment.
26758
26759 2009-10-07  Eric Blake  <ebb9@byu.net>
26760
26761         areadlinkat-with-size: new module
26762         * modules/areadlinkat-with-size: New module.
26763         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
26764         * lib/areadlink.h (areadlinkat): Declare it.
26765         * MODULES.html.sh (File system functions): Mention it.
26766         * modules/areadlinkat-with-size-tests: New test.
26767         * tests/test-areadlinkat-with-size.c: New file.
26768
26769         xreadlinkat: new module
26770         * modules/xreadlinkat: New module.
26771         * lib/xreadlinkat.c (xreadlinkat): New file.
26772         * lib/xreadlink.h (xreadlinkat): Declare it.
26773         * MODULES.html.sh (File system functions): Mention it.
26774
26775         areadlinkat: new module
26776         * lib/at-func.c (FUNC_FAIL): New define.
26777         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
26778         * modules/areadlinkat: New module.
26779         * lib/linkat.c (areadlinkat): Move...
26780         * lib/areadlinkat.c (areadlinkat): ...to new file.
26781         * lib/areadlink.h (areadlinkat): Declare it.
26782         * modules/linkat (Depends-on): Add areadlinkat.
26783         * MODULES.html.sh (File system functions): Mention it.
26784         * modules/areadlinkat-tests: New test.
26785         * tests/test-areadlinkat.c: New file.
26786
26787         areadlink, areadlink-with-size: add tests
26788         * modules/areadlink-tests: New test.
26789         * modules/areadlink-with-size-tests: Likewise.
26790         * tests/test-areadlink.h: New file.
26791         * tests/test-areadlink.c: Likewise.
26792         * tests/test-areadlink-with-size.c: Likewise.
26793
26794         maint: minor cleanups
26795         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
26796         _UNUSED_PARAMETER_ instead.
26797         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
26798         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
26799         * modules/linkat-tests (Files): Distribute test-link.h.
26800
26801         openat, utimens: whitespace cleanup
26802         * lib/openat.c: Prefer space throughout, rather than mix of 8
26803         spaces vs. tabs.
26804         * lib/at-func.c: Likewise.
26805         * lib/utimens.c: Likewise.
26806
26807         openat: avoid using wrong fd
26808         * lib/openat.c (openat_permissive): Reject user's fd if saving the
26809         working directory chooses same fd.
26810         * lib/at-func.c (AT_FUNC_NAME): Likewise.
26811
26812         mkdir, mkdirat: fix cygwin 1.5.x bug
26813         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
26814         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
26815         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
26816         bug.
26817         (gl_PREREQ_MKDIR): Delete unused macro.
26818         * modules/mkdir (Files): Track file rename.
26819         (configure.ac): Update macro name.
26820         * modules/openat (Depends-on): Add mkdir.
26821         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
26822
26823         mkdir, mkdirat: add tests
26824         * modules/mkdir-tests: New test.
26825         * tests/test-mkdir.h: New file.
26826         * tests/test-mkdir.c: Likewise.
26827         * tests/test-mkdirat.c: Likewise.
26828         * modules/openat-tests (Files): Add new files.
26829         (Makefile.am): Run new test.
26830
26831 2009-10-06  Eric Blake  <ebb9@byu.net>
26832
26833         doc: tweak *at function documentation
26834         * doc/posix-functions/faccessat.texi (faccessat): Mention
26835         known issue with replacement.
26836         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
26837         * doc/posix-functions/linkat.texi (linkat): Likewise.
26838         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26839         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26840         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26841         * doc/posix-functions/renameat.texi (renameat): Likewise.
26842         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26843
26844         openat: fix GNU/Hurd bug in unlinkat
26845         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
26846         broken.
26847         * doc/posix-functions/unlink.texi (unlink): Document this.
26848         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
26849
26850         fdopendir: fix GNU/Hurd bug
26851         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
26852         allowing non-directory fds.
26853         * lib/fdopendir.c (rpl_fdopendir): Work around it.
26854         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26855         * modules/dirent (Makefile.am): Substitute it.
26856         * lib/dirent.in.h (fdopendir): Declare replacement.
26857         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
26858         * tests/test-fdopendir.c (main): Test something other than
26859         /dev/null, since on Hurd that behaves like a directory.
26860
26861         test-symlink: port to GNU/Hurd
26862         * tests/test-symlink.h (test_symlink): Relax expected errno.
26863
26864         doc: tweak more cygwin information
26865         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
26866         now compatible with glibc.
26867         * doc/posix-functions/getopt.texi (getopt): Likewise.
26868
26869         getopt-gnu: add another test
26870         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
26871         guarantee behavior relied on by m4.
26872         * tests/test-getopt.c (main): Use it.
26873         * modules/getopt-posix-tests (Depends-on): Add setenv.
26874         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
26875
26876         getopt: fix compilation on darwin
26877         * lib/getopt.in.h (includes): Leave breadcrumbs during system
26878         include.
26879         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
26880         Reported by Ludovic Courtès.
26881
26882 2009-10-06  Bruno Haible  <bruno@clisp.org>
26883
26884         * modules/size_max (Description): Discourage its use.
26885         Reported by Simon Josefsson.
26886
26887 2009-10-06  Jim Meyering  <meyering@redhat.com>
26888
26889         linkat: avoid compilation failure
26890         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
26891
26892 2009-10-05  Eric Blake  <ebb9@byu.net>
26893
26894         linkat: support Linux 2.6.17
26895         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
26896         linkat on Linux, but allow cache variable override.
26897         * lib/linkat.c (rpl_linkat): Define override.
26898         * modules/linkat (Depends-on): Add symlinkat.
26899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
26900         * modules/unistd (Makefile.am): Substitute it.
26901         * lib/unistd.in.h (linkat): Declare replacement.
26902         Reported by Pádraig Brady.
26903
26904         quotearg: port test to systems with C.UTF-8 locale
26905         * tests/test-quotearg.c (struct result_strings): Add another
26906         member, differentiating between C.ASCII and C.UTF-8 handling.
26907         (compare_strings): Add parameter.
26908         (main): Adjust all callers.
26909
26910         getopt: avoid clash with FreeBSD _getopt_internal
26911         * lib/getopt.in.h (_getopt_internal): Override the name.
26912         * lib/getopt_int.h (includes): Pick up any overrides.
26913         Reported by Reuben Thomas.
26914
26915         hash: allow C89 compilation
26916         * lib/hash.c (check_tuning): Move declaration before statement.
26917         Reported by Reuben Thomas.
26918
26919 2009-10-05  Karl Berry  <karl@gnu.org>
26920
26921         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
26922
26923 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
26924             Bruno Haible  <bruno@clisp.org>
26925
26926         * lib/uname.c (uname): Use a table-driven algorithm to compute
26927         Windows NT versions.
26928
26929 2009-10-04  Bruno Haible  <bruno@clisp.org>
26930
26931         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
26932         program_invocation_short_name.
26933         * modules/progname (configure.ac): Test for presence of
26934         program_invocation_short_name.
26935         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
26936
26937 2009-10-04  Bruno Haible  <bruno@clisp.org>
26938
26939         * lib/progname.c (set_program_name): Fix comment.
26940         Reported by Jim Meyering.
26941
26942 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
26943             Bruno Haible  <bruno@clisp.org>
26944
26945         * lib/uname.c: Include <string.h>.
26946         (uname): Do only one call to GetVersionEx in the common case.
26947
26948 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
26949             Bruno Haible  <bruno@clisp.org>
26950
26951         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
26952         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
26953         (uname): Add support for Windows CE and various non-x86 CPU types.
26954
26955 2009-10-03  Bruno Haible  <bruno@clisp.org>
26956
26957         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
26958         invocation to tests/configure.ac.
26959         Reported by Ian Beckwith <ianb@erislabs.net>.
26960
26961 2009-10-02  Eric Blake  <ebb9@byu.net>
26962
26963         fchdir: avoid compiler warning
26964         * lib/fchdir.c (canonicalize_file_name)
26965         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
26966
26967         test-open: support mingw errno values
26968         * tests/test-open.h (test_open): Relax test.
26969         * tests/test-fopen.h (test_fopen): Likewise.
26970         * tests/test-openat-safer.c (main): Likewise.
26971
26972         open: fix opening directory on mingw
26973         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
26974
26975         test-open: on GNU/Hurd, /dev/null is a directory
26976         * tests/test-fopen.h (main): Rename...
26977         (test_fopen): ...to this.  Use a guaranteed non-directory when
26978         confirming open behavior on trailing slash.
26979         * tests/test-openat-safer.c (main): Likewise.
26980         * tests/test-open.h (main): Likewise....
26981         (test_open): ...to this.
26982         * tests/test-fopen.c (main): Adjust caller.
26983         * tests/test-fopen-safer.c (main): Likewise.
26984         * tests/test-open.c (main): Likewise.
26985         * tests/test-fcntl-safer.c (main): Likewise.
26986         Reported by Samuel Thibault.
26987
26988         rename, fchdir: don't ignore chdir failure
26989         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
26990         * lib/rename.c (rpl_rename) [W32]: Likewise.
26991         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
26992         an empty destination directory if source cannot be renamed,
26993         although there is still possibility for failure.
26994         * doc/posix-functions/rename.texi (rename): Document the race.
26995         Reported by Jim Meyering.
26996
26997         maint: cleanup whitespace in recent commits
26998         * lib/rename.c (rpl_rename): Remove tabs.
26999         * tests/test-link.h (test_link): Likewise.
27000         * lib/fchdir.c (get_name): Likewise.
27001         Reported by Jim Meyering.
27002
27003 2009-10-02  Ben Pfaff  <blp@gnu.org>
27004
27005         relocatable-prog-wrapper: Add missing dependency on
27006         double-slash-root.
27007         * modules/relocatable-prog-wrapper: Add dependency.
27008         Reported by Ian Beckwith <ianb@erislabs.net>.
27009
27010 2009-10-02  Eric Blake  <ebb9@byu.net>
27011
27012         renameat: fix Solaris bugs
27013         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
27014         needed fixing.
27015         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
27016         * modules/stdio (Makefile.am): Substitute it.
27017         * lib/stdio.in.h (renameat): Declare replacement.
27018         * lib/renameat.c (rpl_renameat): Implement fix.
27019
27020         renameat: new module
27021         * modules/renameat: New file.
27022         * lib/renameat.c (renameat): Likewise.
27023         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
27024         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27025         * modules/stdio (Makefile.am): Substitute them.
27026         * lib/stdio.in.h (renameat): Declare it.
27027         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27028         * doc/posix-functions/renameat.texi (renameat): Likewise.
27029         * modules/renameat-tests: New test.
27030         * tests/test-renameat.c: Likewise.
27031
27032         rename: fix mingw bugs
27033         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
27034         directory overwrite bugs.
27035
27036         rename: fix another cygwin 1.5 bug
27037         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
27038         checks.
27039         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
27040         unnecessary cygwin workarounds.  Also work around bug with moving
27041         full directory onto an empty one.
27042         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
27043
27044         rename-dest-slash: merge into rename module
27045         * modules/rename-dest-slash (Status): Mark obsolete.
27046         (Depends-on): Add rename.
27047         (Files): Let rename do it all.
27048         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
27049         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
27050         * m4/rename-dest-slash.m4: ...so this file can be deleted.
27051         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
27052         * lib/rename.c (rpl_rename): Update comments.
27053
27054         rename: fix cygwin 1.5.x bugs
27055         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
27056         * lib/rename.c (rpl_rename): Work around them.
27057         * modules/rename (Depends-on): Add same-inode.
27058
27059         rename: fix Solaris 10 bug
27060         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27061         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
27062         was the only bug.
27063
27064         rename: fix Solaris 9 bug
27065         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
27066         on non-directory.  Avoid calling exit.
27067         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
27068         strdup.
27069         * modules/rename-tests (Depends-on): Drop lstat.
27070         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27071         (gl_PREREQ_RENAME): Delete unused macro.
27072
27073         rename-dest-slash: fix NetBSD bug
27074         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
27075         links.
27076         * modules/rename-dest-slash (Depends-on): Add same-inode.
27077
27078         rename-tests: new test, exposes several platform bugs
27079         * modules/rename-tests: New file.
27080         * tests/test-rename.h: Likewise.
27081         * tests/test-rename.c: Likewise.
27082         * doc/posix-functions/rename.texi (rename): Improve documentation,
27083         including bugs that will eventually be fixed in gnulib.
27084
27085 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
27086
27087         * lib/uname.c: Include <stdlib.h>
27088         (uname): Assume version info is available.
27089
27090 2009-10-02  Jim Meyering  <meyering@redhat.com>
27091
27092         gnu-web-doc-update: correct --help output
27093         * build-aux/gnu-web-doc-update: Make --help output relevant.
27094
27095         gnu-web-doc-update: add standard options
27096         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
27097
27098         gnu-web-doc-update: New module.
27099         Use this script to automatically update the on-line web documentation
27100         for your GNU project at http://www.gnu.org/software/$pkg/manual/
27101         * modules/gnu-web-doc-update: New file, from coreutils.
27102         * build-aux/gnu-web-doc-update: New script.
27103
27104 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
27105
27106         link: LoadLibrary is not needed.
27107         * lib/link.c: Use GetModuleHandle.
27108
27109 2009-10-01  Eric Blake  <ebb9@byu.net>
27110
27111         getopt: bump serial number
27112         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
27113         change.
27114
27115         tests: tighten link, rmdir, and remove tests
27116         * tests/test-link.h (includes): No need to use <config.h> here.
27117         Clean up if directory hard link was created, otherwise test for
27118         trailing '.'.
27119         * tests/test-linkat.c (main): Simplify.
27120         * tests/test-remove.c (main): Enhance test for trailing '.'.
27121         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27122
27123 2009-10-01  Jim Meyering  <meyering@redhat.com>
27124
27125         maint.mk: requiring "make major" was annoying, for a "minor" release.
27126         What is intended is "stable", to contrast with alpha and beta,
27127         so require "make stable", not "make major".
27128         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
27129         (get_tool_versions): Likewise.
27130         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
27131
27132 2009-09-30  Ben Pfaff  <blp@gnu.org>
27133
27134         Fix broken build of replacement for Windows tmpfile().
27135         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
27136         flags argument added along with the 'mkostemp' module.
27137
27138 2009-09-28  Bruno Haible  <bruno@clisp.org>
27139
27140         Avoid identifier clash with POSIX function 'remove' defined as a macro.
27141         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
27142         to 'remove_elt'.
27143         (gl_list_remove): Update.
27144         * lib/gl_list.c (gl_list_remove): Update.
27145         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
27146         to 'remove_elt'.
27147         (gl_oset_remove): Update.
27148         * lib/gl_list.c (gl_oset_remove): Update.
27149         Reported by Eric Blake.
27150
27151 2009-09-28  Eric Blake  <ebb9@byu.net>
27152
27153         doc: mention yet more cygwin 1.7 status
27154         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
27155         cygwin.
27156         * doc/glibc-functions/execvpe.texi (execvpe): New file.
27157         * doc/gnulib.texi (Glibc unistd.h): Mention it.
27158
27159         argp: fix test failure
27160         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
27161         that are not upper-case.  Pass correct range to tolower.
27162
27163 2009-09-27  Jim Meyering  <meyering@redhat.com>
27164
27165         test-yesno: work around sparc-dash here-document infelicity
27166         Without this change, the literal \177 byte in a here document
27167         would make dash 0.5.5.1-3 access uninitialized memory.
27168         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
27169         Instead, use a marker, "@", and filter through tr to create the desired
27170         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
27171
27172 2009-09-27  Bruno Haible  <bruno@clisp.org>
27173
27174         Disable untested support for new flavours of ACLs on AIX.
27175         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
27176         progress.
27177         * lib/set-mode-acl.c (qset_acl): Likewise.
27178
27179 2008-12-07  Bruno Haible  <bruno@clisp.org>
27180
27181         Add support for new flavours of ACLs on AIX. (Untested.)
27182         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
27183         (file_has_acl): Add support for newer AIX.
27184         * lib/set-mode-acl.c (qset_acl): Likewise.
27185         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
27186         Rainer Tammer <tammer@tammer.net>.
27187
27188 2009-09-26  Eric Blake  <ebb9@byu.net>
27189
27190         argp: fix compilation of getopt
27191         * lib/getopt.in.h (includes): Use different guard than glibc.
27192         Reported by Sergey Poznyakoff.
27193
27194         doc: mention more cygwin 1.7 status
27195         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
27196         bug.
27197         * doc/posix-functions/execl.texi (execl): Likewise.
27198         * doc/posix-functions/execle.texi (execle): Likewise.
27199         * doc/posix-functions/execlp.texi (execlp): Likewise.
27200         * doc/posix-functions/execv.texi (execv): Likewise.
27201         * doc/posix-functions/execve.texi (execve): Likewise.
27202         * doc/posix-functions/execvp.texi (execvp): Likewise.
27203         * doc/glibc-functions/canonicalize_file_name.texi
27204         (canonicalize_file_name): Cygwin 1.7 now provides this.
27205         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
27206         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
27207         on AT_SYMLINK_NOFOLLOW.
27208
27209 2009-09-24  Eric Blake  <ebb9@byu.net>
27210
27211         test-linkat: make test more robust
27212         * tests/test-linkat.c (main): Avoid collision with EEXIST.
27213
27214         getopt: fix inclusion guards for cygwin
27215         * modules/getopt-posix (Depends-on): Add include-next.
27216         (Makefile.am): Substitute more items in replacement header.
27217         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
27218         <getopt.h>.
27219         * lib/getopt.in.h (includes): Use split inclusion guard, and
27220         prefer <getopt.h> over include <unistd.h> when one is present.
27221         (option): Also override name of 'struct option'.
27222
27223         same-inode: revert prior change; it is not yet ready
27224         * NEWS: Undo mention of this change.
27225         * lib/same-inode.h (same-inode.h): Undo tri-state change.
27226         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27227         * lib/cycle-check.c (cycle_check): Likewise.
27228         * lib/same.c (same_name): Likewise.
27229         * lib/at-func2.c (at_func2): Likewise.
27230
27231 2009-09-23  Eric Blake  <ebb9@byu.net>
27232
27233         linkat: new module
27234         * modules/linkat: New file.
27235         * lib/at-func2.c (at_func2): Likewise.
27236         * lib/linkat.c (linkat): Likewise.
27237         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27238         * lib/openat-priv.h (at_func2): Add declaration.
27239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27240         * modules/unistd (Makefile.am): Substitute them.
27241         * lib/unistd.in.h (linkat): Declare it.
27242         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27243         * doc/posix-functions/linkat.texi (linkat): Likewise.
27244         * doc/posix-functions/link.texi (link): Tweak wording.
27245         * tests/test-link.c (main): Move guts...
27246         * tests/test-link.h (test_link): ...into new file.
27247         * modules/linkat-tests: New test.
27248         * tests/test-linkat.c: Likewise.
27249         * modules/link-tests (Files): Ship new file.
27250         (Depends-on): Add stdbool.
27251
27252         dirname: add library-safe mdir_name
27253         * lib/dirname.h (mdir_name): New prototype.
27254         * lib/dirname.c (dir_name): Move guts...
27255         (mdir_name): ...to new function that avoids xalloc_die.
27256
27257         fchdir: another mingw fix
27258         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
27259         * lib/fchdir.c (get_name): New helper method; skips canonicalize
27260         on mingw (where it has not yet been ported), and make it optional
27261         elsewhere.
27262         (_gl_register_fd): Use it.
27263
27264         same-inode: make SAME_INODE tri-state, to port to mingw
27265         * NEWS: Mention this change.
27266         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
27267         st_ino always being 0.
27268         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27269         * lib/cycle-check.c (cycle_check): Likewise.
27270         * lib/same.c (same_name): Likewise.
27271
27272         lstat: avoid mingw compilation error
27273         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
27274         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
27275         lstat ourselves.
27276         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
27277         was adequate.
27278         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
27279         the checks for lstat.
27280         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
27281
27282         link: fix test failure on Solaris 9
27283         * lib/link.c (rpl_link): Don't assume link will catch bogus
27284         trailing slash on source.
27285
27286         test-symlinkat: enhance test
27287         * tests/test-readlink.c (main): Move guts...
27288         * tests/test-readlink.h (test_readlink): ...into new file.
27289         * tests/test-symlink.c (main): Move guts...
27290         * tests/test-symlink.h (test_symlink): ...into new file.
27291         * tests/test-symlinkat.c (main): Use new files for further
27292         coverage.
27293         (do_symlink, do_readlink): New helper functions.
27294         * modules/symlink-tests (Files): Ship new file.
27295         (Depends-on): Add stdbool.
27296         * modules/readlink-tests (Files): Ship new file.
27297         (Depends-on): Add stdbool.
27298         * modules/symlinkat-tests (Files): Use new files.
27299
27300 2009-09-23  Eric Blake  <ebb9@byu.net>
27301
27302         readlink: document portability issue with symlink length
27303         * doc/posix-functions/lstat.texi (lstat): Mention that some file
27304         systems have bogus st_size on symlinks, and mention the
27305         areadlink-with-size module.
27306         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
27307         * doc/posix-functions/readlink.texi (readlink): Mention the
27308         areadlink module, and ERANGE failure.
27309         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27310         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
27311
27312         readlink: fix Solaris 9 bug with trailing slash
27313         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
27314         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
27315         * doc/posix-functions/readlink.texi (readlink): Document this.
27316         * modules/readlink-tests: New test.
27317         * tests/test-readlink.c: Likewise.
27318
27319         readlink: fix cygwin 1.5.x bug with return type
27320         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
27321         * lib/unistd.in.h (readlink): Use ssize_t.
27322         * lib/readlink.c (readlink): Likewise.
27323         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27324         * modules/unistd (Makefile.am): Substitute it.
27325         * lib/unistd.in.h (readlink): Declare replacement.
27326         * doc/posix-functions/readlink.texi (readlink): Document this.
27327
27328         symlink: use throughout gnulib
27329         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
27330         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
27331         symlink is not used.
27332         * modules/symlinkat (Depends-on): Add symlink.
27333         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27334         * modules/canonicalize-tests (Depends-on): Likewise.
27335         * modules/lstat-tests (Depends-on): Likewise.
27336         * modules/openat-tests (Depends-on): Likewise.
27337         * modules/remove-tests (Depends-on): Likewise.
27338         * modules/rmdir-tests (Depends-on): Likewise.
27339         * modules/unlink-tests (Depends-on): Likewise.
27340         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
27341         * tests/test-canonicalize.c (symlink): Likewise.
27342         * tests/test-fstatat.c (symlink): Likewise.
27343         * tests/test-lstat.c (symlink): Likewise.
27344         * tests/test-remove.c (symlink): Likewise.
27345         * tests/test-rmdir.c (symlink): Likewise.
27346         * tests/test-unlink.c (symlink): Likewise.
27347         * tests/test-unlinkat.c (symlink): Likewise.
27348
27349         symlink: new module, for Solaris 9 bug
27350         * modules/symlink: New file.
27351         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27352         * lib/symlink.c: Likewise.
27353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27354         * modules/unistd (Makefile.am): Substitute them.
27355         * lib/unistd.in.h (symlink): Declare replacement.
27356         * MODULES.html.sh (File system functions): Mention it.
27357         * doc/posix-functions/symlink.texi (symlink): Likewise.
27358         * modules/symlink-tests: New test.
27359         * tests/test-symlink.c: Likewise.
27360
27361 2009-09-23  Bruno Haible  <bruno@clisp.org>
27362
27363         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
27364         when needed.
27365         Test case: gnulib-tool --import --with-tests atexit inttypes.
27366         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
27367
27368 2009-09-23  Bruno Haible  <bruno@clisp.org>
27369
27370         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
27371         subcommand, not in a subshell.
27372
27373 2009-09-22  Eric Blake  <ebb9@byu.net>
27374
27375         unistd: sort replacement declarations
27376         * lib/unistd.in.h: Sort declarations.
27377
27378         open, openat: minor optimization
27379         * lib/open.c (open): If open succeeded, len is non-zero.
27380         * lib/openat.c (rpl_openat): Likewise.
27381
27382         link-follow: ensure correct result
27383         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
27384         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
27385         distinguish between possible failures.
27386
27387 2009-09-21  Eric Blake  <ebb9@byu.net>
27388
27389         fts: avoid compiler warning
27390         * lib/fts.c (dirent_inode_sort_may_be_useful)
27391         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
27392
27393 2009-09-19  Bruno Haible  <bruno@clisp.org>
27394
27395         * lib/progreloc.c (canonicalize_file_name): New declaration.
27396
27397 2009-09-19  Eric Blake  <ebb9@byu.net>
27398
27399         link: fix quoting
27400         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
27401
27402         openat: fix openat bugs on Solaris 9
27403         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
27404         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
27405         * modules/openat (Depends-on): Add open.
27406         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
27407         * modules/fcntl-h (Makefile.am): Substitute it.
27408         * lib/fcntl.in.h (openat): Declare replacement.
27409         * doc/posix-functions/openat.texi (openat): Document this.
27410
27411         openat: move fstatat and unlinkat into correct files
27412         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
27413         compiled.
27414         * lib/openat.c (fstatat, unlinkat): Move...
27415         * lib/fstatat.c (fstatat): ...into correct files.
27416         * lib/unlinkat.c (unlinkat): Likewise.
27417
27418         openat: fix unlinkat bugs on Solaris 9
27419         * lib/unlinkat.c (unlinkat): New file.
27420         * modules/openat (Depends-on): Add unlink.
27421         (Files): Distribute it.
27422         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
27423         trailing slash behavior is broken.
27424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27425         * modules/unistd (Makefile.am): Substitute it.
27426         * lib/unistd.in.h (unlinkat): Declare replacement.
27427         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
27428
27429         openat: fix fstatat bugs on Solaris 9
27430         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
27431         stat.
27432         * doc/posix-functions/fstatat.texi (fstatat): Document this.
27433
27434         test-unlinkat: enhance test, to expose Solaris 9 bug
27435         * tests/test-unlink.c (main): Factor guts...
27436         * tests/test-unlink.h (test_rmdir_func): ...into new file.
27437         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
27438         * tests/test-rmdir.c (main): Adjust caller.
27439         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
27440         (unlinker): New helper function.
27441         (rmdirat): Enhance check.
27442         * modules/rmdir-tests (Depends-on): Add stdbool.
27443         * modules/unlink-tests (Depends-on): Likewise.
27444         (Files): Add test-unlink.h.
27445         * modules/openat-tests (Files): Likewise.
27446         (Depends-on): Add unlinkdir.
27447
27448         test-fstatat: new test, to expose Solaris 9 bugs
27449         * tests/test-stat.c (main): Factor guts...
27450         * tests/test-stat.h (test_stat_func): ...into new file.
27451         * tests/test-lstat.c (main): Factor guts...
27452         * tests/test-lstat.h (test_lstat_func): ...into new file.
27453         * tests/test-fstatat.c: New file.
27454         * modules/stat-tests (Files): Add test-stat.h.
27455         * modules/lstat-tests (Files): Add test-lstat.h.
27456         (Depends-on): Add stdbool.
27457         * modules/openat-tests (Depends-on): Add pathmax.
27458         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
27459         (Makefile.am): Run new test.
27460
27461         remove: new module, for mingw and Solaris 9 bugs
27462         * modules/remove: New file.
27463         * lib/remove.c: Likewise.
27464         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
27465         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27466         * modules/stdio (Makefile.am): Use them.
27467         * lib/stdio.in.h (remove): Declare replacement.
27468         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27469         * doc/posix-functions/remove.texi (remove): Likewise.
27470         * modules/remove-tests: New test.
27471         * tests/test-remove.c: Likewise.
27472
27473         unlink: new module, for Solaris 9 bug
27474         * modules/unlink: New file.
27475         * lib/unlink.c: Likewise.
27476         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27478         * modules/unistd (Makefile.am): Use them.
27479         * lib/unistd.in.h (stat): Declare replacement.
27480         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27481         * doc/posix-functions/unlink.texi (unlink): Likewise.
27482         * modules/unlink-tests: New test.
27483         * tests/test-unlink.c: Likewise.
27484
27485         lstat: fix Solaris 9 bug
27486         * lib/lstat.c (lstat): Also check for trailing slash on
27487         non-symlink, non-directories.  Use stat module to simplify logic.
27488         * doc/posix-functions/lstat.texi (lstat): Document it.
27489         * modules/lstat-tests (Depends-on): Add errno, same-inode.
27490         (configure.ac): Check for symlink.
27491         * tests/test-lstat.c (main): Add more tests.
27492
27493         stat: add as dependency to other modules
27494         * modules/chown (Depends-on): Add stat.
27495         * modules/euidaccess (Depends-on): Likewise.
27496         * modules/fchdir (Depends-on): Likewise.
27497         * modules/isdir (Depends-on): Likewise.
27498         * modules/link (Depends-on): Likewise.
27499         * modules/lstat (Depends-on): Likewise.
27500         * modules/mkdir-p (Depends-on): Likewise.
27501         * modules/modechange (Depends-on): Likewise.
27502         * modules/open (Depends-on): Likewise.
27503         * modules/readlink (Depends-on): Likewise.
27504         * modules/same (Depends-on): Likewise.
27505
27506         stat: fix Solaris 9 bug
27507         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
27508         slash.
27509         * lib/stat.c (rpl_stat): Work around it.
27510         * doc/posix-functions/stat.texi (stat): Update documentation.
27511
27512         stat: new module, for mingw bug
27513         * modules/stat: New file.
27514         * lib/stat.c: Likewise.
27515         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27516         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27517         * modules/sys_stat (Makefile.am): Use them.
27518         * lib/sys_stat.in.h (stat): Declare replacement.
27519         * lib/openat.c (fstatat): Deal with lstat and stat being function
27520         macros.
27521         * modules/openat (Depends-on): Add inline.
27522         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27523         * doc/posix-functions/stat.texi (stat): Likewise.
27524         * modules/stat-tests: New test.
27525         * tests/test-stat.c: Likewise.
27526
27527 2009-09-19  Jim Meyering  <meyering@redhat.com>
27528
27529         syntax-check: detect unnecessary inclusion of canonicalize.h
27530         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
27531
27532 2009-09-19  Eric Blake  <ebb9@byu.net>
27533
27534         canonicalize-lgpl: adjust clients to use correct header
27535         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27536         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
27537         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
27538         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
27539         * lib/progreloc.c (includes): Likewise.
27540
27541 2009-09-19  Jim Meyering  <meyering@redhat.com>
27542
27543         test-posixtm.c: correct a comment
27544         * tests/test-posixtm.c: Correct first-line comment.
27545         Spotted by Eric Blake.
27546
27547 2009-09-16  Jim Meyering  <meyering@redhat.com>
27548
27549         posixtm-tests: make T const-correct; add a test case
27550         * tests/test-posixtm.c (T): Declare const.
27551         Add a test for -(2^31+1).
27552         Remove useless can-succeed-only-in-2002 test.
27553
27554         posixtm-tests: adjust the sole failing test
27555         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
27556         expected output matches what mktime now produces.  Cross-checked via
27557         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
27558
27559         posixtm: move #ifdef'd tests into a new module
27560         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
27561         * tests/test-posixtm.c: ... this new file.
27562         * modules/posixtm-tests: New module.
27563
27564 2009-09-19  Eric Blake  <ebb9@byu.net>
27565
27566         openat: simplify use of at-func.c
27567         * lib/at-func.c (includes): Include prerequisites here, to
27568         simplify requirements on client files.
27569         * lib/openat-priv.h: Add double-inclusion guard.
27570         * lib/faccessat.c (includes): Simplify.
27571         * lib/fchmodat.c (includes): Likewise.
27572         * lib/fchownat.c (includes): Likewise.
27573         * lib/mkdirat.c (includes): Likewise.
27574         * lib/mkfifoat.c (includes): Likewise.
27575         * lib/symlinkat.c (includes): Likewise.
27576
27577         openat: allow return of fd 0
27578         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
27579         * modules/save-cwd (Depends-on): Replace fcntl-safer with
27580         unistd-safer.
27581         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
27582         <fcntl.h>; this module does not leak fds.
27583         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
27584         must be allowed to return 0, leaving openat_safer to add the
27585         safety.
27586         (openat_permissive): Avoid writing to just-opened fd 2 if
27587         restoring the current directory fails.
27588         * lib/openat-die.c (openat_restore_fail): Add comment.
27589         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
27590         (save_cwd): Guarantee safe fd, but without use of open_safer.
27591         * tests/test-openat.c: New test.
27592         * modules/openat-tests (Files, Makefile.am): Distribute and build
27593         new file.
27594
27595         relocatable-prog-wrapper: fix build
27596         * modules/relocatable-prog-wrapper (Files): Update name of
27597         canonicalize m4 file, broken on 2009-09-17.
27598         Reported by emad hajjar <aleppos@hotmail.com>.
27599
27600 2009-09-19  Bruno Haible  <bruno@clisp.org>
27601
27602         * lib/safe-alloc.h: Use the standard header with GPL copyright.
27603         * lib/safe-alloc.c: Likewise.
27604         Reported by Ian Beckwith <ianb@erislabs.net>.
27605
27606 2009-09-18  Bruno Haible  <bruno@clisp.org>
27607
27608         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
27609         Reported by <erobles@sensacd.com.mx>.
27610
27611 2009-09-17  Eric Blake  <ebb9@byu.net>
27612
27613         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
27614         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
27615         slashes when checking if last component is missing.
27616         * tests/test-canonicalize.c (main): Test this.
27617
27618         canonicalize, canonicalize-lgpl: honor // if distinct from /
27619         * modules/canonicalize (Files): Add double-slash-root.m4.
27620         * modules/canonicalize-lgpl (Files): Likewise.
27621         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27622         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
27623         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
27624         fallback definition.
27625         (canonicalize_filename_mode): Use it to protect //.
27626         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
27627         (__realpath): Likewise.
27628         * tests/test-canonicalize.c (main): Test this.
27629         * tests/test-canonicalize-lgpl.c (main): Likewise.
27630         * modules/canonicalize-tests (Depends-on): Add same-inode.
27631         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27632
27633         canonicalize-lgpl: fix glibc bug with trailing slash
27634         * m4/canonicalize-lgpl.m4: Move contents...
27635         * m4/canonicalize.m4: ...here.
27636         (gl_CANONICALIZE_LGPL): Factor realpath check...
27637         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
27638         glibc 2.3.5 bug, fixed 2005-04-27.
27639         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
27640         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
27641         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
27642         * modules/canonicalize-lgpl (Files): Manage file rename.
27643         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
27644         * modules/stdlib (Makefile.am): Substitute witness.
27645         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
27646         is needed.
27647         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
27648         replacement is required.
27649         * lib/canonicalize.c (canonicalize_file_name): Likewise.
27650         * doc/glibc-functions/canonicalize_file_name.texi
27651         (canonicalize_file_name): Document this.
27652         * doc/posix-functions/realpath.texi (realpath): Likewise.
27653
27654         canonicalize-lgpl: reject non-directory with trailing slash
27655         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
27656         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
27657         catches failures in glibc 2.3.5.
27658         * tests/test-canonicalize.c (main): Likewise.
27659
27660         canonicalize-lgpl: use native realpath if it works
27661         * lib/canonicalize-lgpl.c (realpath): Guard with
27662         FUNC_REALPATH_WORKS.
27663         * lib/stdlib.in.h (realpath): Make declaration optional based on
27664         HAVE_REALPATH.
27665         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
27666         native realpath works.
27667         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
27668         * modules/stdlib (Makefile.am): Substitute witness.
27669
27670         canonicalize, canonicalize-lgpl: use <stdlib.h>
27671         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
27672         (Include): Mention <stdlib.h>.
27673         (configure.ac): Mention functions we provide.
27674         * modules/canonicalize (configure.ac): Likewise.
27675         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
27676         realpath if canonicalize_file_name is missing.
27677         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
27678         * modules/stdlib (Makefile.am): Substitute witnesses.
27679         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
27680         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
27681         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
27682         * NEWS: Document this.
27683         * doc/glibc-functions/canonicalize_file_name.texi
27684         (canonicalize_file_name): Likewise.
27685         * doc/posix-functions/realpath.texi (realpath): Likewise.
27686         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
27687
27688         test-canonicalize: consolidate into single C program
27689         * tests/test-canonicalize.sh: Delete; move setup into...
27690         * tests/test-canonicalize.c (main): ...the program, making it
27691         easier to run in debugger.  Add some tests.
27692         * modules/canonicalize-tests (Files): Remove unused file.
27693         (Depends-on): Add progname.
27694         (configure.ac, Makefile.am): Simplify.
27695
27696         test-canonicalize-lgpl: consolidate into single C program
27697         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
27698         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
27699         easier to run in debugger.  Add some tests.
27700         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
27701         (configure.ac, Makefile.am): Simplify.
27702
27703         canonicalize: avoid resolvepath
27704         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
27705         unnecessary checks.
27706         * lib/canonicalize.c (includes): Simplify.
27707         (canonicalize_file_name): Drop resolvepath implementation.
27708         * modules/canonicalize (Depends-on): Drop filenamecat.
27709
27710         canonicalize: don't lose errno
27711         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
27712         over calls to free.
27713
27714         canonicalize: simplify errno handling
27715         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
27716         assignment.
27717
27718         canonicalize, canonicalize-lgpl: update module dependencies
27719         * modules/canonicalize (Depends-on): Add extensions, lstat,
27720         pathmax, stdlib.
27721         (Files): Drop pathmax.h.
27722         (configure.ac): Adjust macro name.
27723         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
27724         lstat, stdlib, sys_stat.
27725         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
27726         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
27727         extensions.
27728         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
27729         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
27730         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
27731         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
27732         declaration, if available.
27733         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
27734         we can rely on the readlink module.
27735         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
27736         (includes): Use <unistd.h> unconditionally.
27737
27738 2009-09-17  Eric Blake  <ebb9@byu.net>
27739
27740         maint: make Include sections of modules consistent
27741         * modules/alloca: Use only header name; no need to list #include.
27742         * modules/alloca-opt: Likewise.
27743         * modules/arpa_inet: Likewise.
27744         * modules/canon-host: Likewise.
27745         * modules/configmake: Likewise.
27746         * modules/dirent: Likewise.
27747         * modules/eealloc: Likewise.
27748         * modules/environ: Likewise.
27749         * modules/fchdir: Likewise.
27750         * modules/fcntl: Likewise.
27751         * modules/fcntl-h: Likewise.
27752         * modules/gethrxtime: Likewise.
27753         * modules/gettime: Likewise.
27754         * modules/ignore-value: Likewise.
27755         * modules/inet_ntop: Likewise.
27756         * modules/inet_pton: Likewise.
27757         * modules/inttypes: Likewise.
27758         * modules/isnand-nolibm: Likewise.
27759         * modules/isnanf-nolibm: Likewise.
27760         * modules/mbchar: Likewise.
27761         * modules/mbfile: Likewise.
27762         * modules/mbiter: Likewise.
27763         * modules/mbuiter: Likewise.
27764         * modules/netdb: Likewise.
27765         * modules/netinet_in: Likewise.
27766         * modules/nproc: Likewise.
27767         * modules/pagealign_alloc: Likewise.
27768         * modules/poll: Likewise.
27769         * modules/printf-frexp: Likewise.
27770         * modules/pthread: Likewise.
27771         * modules/putenv: Likewise.
27772         * modules/random_r: Likewise.
27773         * modules/relocatable-prog: Likewise.
27774         * modules/search: Likewise.
27775         * modules/select: Likewise.
27776         * modules/selinux-h: Likewise.
27777         * modules/settime: Likewise.
27778         * modules/signal: Likewise.
27779         * modules/size_max: Likewise.
27780         * modules/socklen: Likewise.
27781         * modules/ssize_t: Likewise.
27782         * modules/stdarg: Likewise.
27783         * modules/stdbool: Likewise.
27784         * modules/stddef: Likewise.
27785         * modules/stdint: Likewise.
27786         * modules/stdio: Likewise.
27787         * modules/stdlib: Likewise.
27788         * modules/string: Likewise.
27789         * modules/strings: Likewise.
27790         * modules/sys_file: Likewise.
27791         * modules/sys_ioctl: Likewise.
27792         * modules/sys_select: Likewise.
27793         * modules/sys_socket: Likewise.
27794         * modules/sys_stat: Likewise.
27795         * modules/sys_time: Likewise.
27796         * modules/sys_times: Likewise.
27797         * modules/sys_utsname: Likewise.
27798         * modules/sys_wait: Likewise.
27799         * modules/sysexits: Likewise.
27800         * modules/time: Likewise.
27801         * modules/times: Likewise.
27802         * modules/tmpfile: Likewise.
27803         * modules/trim: Likewise.
27804         * modules/unistd: Likewise.
27805         * modules/wchar: Likewise.
27806         * modules/wctype: Likewise.
27807
27808 2009-09-17  Bruno Haible  <bruno@clisp.org>
27809
27810         Make getdate.y compile on QNX and NetBSD 5 / i386.
27811         * m4/getdate.m4 (gl_GETDATE): Conditionally define
27812         TIME_T_FITS_IN_LONG_INT.
27813         * lib/getdate.y (long_time_t): New type.
27814         (relative_time): Change type of 'seconds' field to long_time_t.
27815         (get_date): Update types of local variables. Check against overflow
27816         during conversion from long_time_t to time_t.
27817         Reported by Matt Kraai <kraai@ftbfs.org>
27818         and Hasso Tepper <hasso@netbsd.org>.
27819
27820 2009-09-17  Bruno Haible  <bruno@clisp.org>
27821
27822         * modules/COPYING: Update copyright years.
27823         * modules/README: Likeiwse.
27824         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
27825         Reported by Ian Beckwith <ianb@erislabs.net>.
27826
27827 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
27828
27829         * users.txt: Update references for gnuit package.
27830
27831 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
27832
27833         * m4/getdelim.m4: Fix typo in copyright line.
27834
27835 2009-09-17  Bruno Haible  <bruno@clisp.org>
27836
27837         * lib/atoll.c: Use the standard header with GPL copyright.
27838         * lib/argz.in.h: Likewise.
27839         * lib/glob.c: Likewise.
27840         * lib/glob-libc.h: Likewise.
27841         * lib/random_r.c: Likewise.
27842         * lib/siglist.h: Likewise.
27843         * lib/strsignal.c: Likewise.
27844         Reported by Ian Beckwith <ianb@erislabs.net>.
27845
27846 2009-09-17  Eric Blake  <ebb9@byu.net>
27847
27848         rmdir: ensure correct dependency order
27849         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
27850
27851 2009-09-17  Bruno Haible  <bruno@clisp.org>
27852
27853         Disable assertion that fails on NetBSD 5 / i386.
27854         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
27855         Reported by Sam Steingold <sds@gnu.org>
27856         and Hasso Tepper <hasso@netbsd.org>.
27857
27858 2009-09-16  Eric Blake  <ebb9@byu.net>
27859
27860         unlinkdir: port to mingw
27861         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
27862         on which no one can unlink a directory.
27863
27864         stdlib: sort witness names
27865         * modules/stdlib (Makefile.am): Sort replacements.
27866         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
27867         * lib/stdlib.in.h: Likewise.
27868
27869         parse-duration-tests: avoid link failure
27870         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
27871         LIBINTL.
27872         Reported by Tom G. Christensen.
27873
27874         openat-tests: ensure unlinkat behaves like rmdir
27875         * tests/test-rmdir.c (main): Factor guts...
27876         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
27877         * modules/rmdir-tests (Files): Ship new file.
27878         * modules/openat-tests: New test.
27879         * tests/test-unlinkat.c: Likewise.
27880
27881         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
27882         * modules/rmdir-errno (Status, Notice): Now obsolete.
27883
27884         rmdir: work around cygwin 1.5.x and mingw bugs
27885         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
27886         * lib/rmdir.c (rmdir): Work around it.
27887         * modules/rmdir (Status, Notice): No longer obsolete.
27888         (Files): Add dos.m4.
27889         (Depends-on): Add unistd.
27890         (configure.ac): Set witnesses.
27891         (License): Relax to LGPLv2+.
27892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
27893         * modules/unistd (Makefile.am): Substitute witnesses.
27894         * lib/unistd.in.h (rmdir): Declare replacement.
27895         * doc/posix-functions/rmdir.texi (rmdir): Document this.
27896         * modules/rmdir-tests: New tests.
27897         * tests/test-rmdir.c: Likewise.
27898
27899 2009-09-15  Eric Blake  <ebb9@byu.net>
27900
27901         fchdir: improve use of replacement functions
27902         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
27903         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
27904         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
27905         REPLACE_CLOSEDIR.
27906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
27907         * modules/sys_stat (Makefile.am): Substitute correct witness.
27908         * modules/dirent (Makefile.am): Likewise.
27909         * modules/unistd (Makefile.am): Likewise.
27910         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
27911         * lib/unistd.in.h (dup): Likewise.
27912         * lib/sys_stat.in.h (fstat): Likewise.
27913
27914         maint: ignore gnulib-tool temp files
27915         * .gitignore: Ignore files created during gnulib-tool --test.
27916
27917 2009-09-13  Jim Meyering  <meyering@redhat.com>
27918
27919         posixtm: don't reject a time that specify "60" as the number of seconds
27920         * lib/posixtm.c (posixtime): The code to reject invalid dates
27921         would also reject a time specified with the .60 suffix.
27922         But POSIX allows that, in order to accommodate leap seconds.
27923         So don't reject it.
27924         (main): Adjust tests accordingly.
27925         * modules/posixtm (Depends-on): Add stpcpy.
27926
27927 2009-09-11  Jim Meyering  <meyering@redhat.com>
27928
27929         announce-gen: include [$release_type] in emitted Subject:
27930         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
27931         e.g., [stable] in the emitted Subject: line.
27932
27933 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27934
27935         Remove obsolete macros from several modules.
27936         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
27937         obsolete Autoconf macros with their modern counterparts.
27938         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
27939         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
27940         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
27941         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
27942         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
27943         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27944         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
27945         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27946         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27947         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
27948         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
27949         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
27950         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
27951         * m4/sockets.m4 (gl_SOCKETS): Likewise.
27952         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
27953         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
27954         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
27955         * m4/time_r.m4 (gl_TIME_R): Likewise.
27956         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27957         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
27958         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
27959
27960         Fix copyright header in build-aux scripts.
27961         * build-aux/git-version-gen: Fix copyright header to match GPLv3
27962         recommendation.
27963         * build-aux/ncftpput-ftp: Likewise.
27964         * build-aux/update-copyright: Likewise.
27965
27966 2009-09-09  Eric Blake  <ebb9@byu.net>
27967
27968         test-link: allow Linux choice of errno
27969         * tests/test-link.c (main): Relax test for alternate error.
27970
27971         strndup: fix improper m4 caching
27972         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
27973         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
27974         (gl_PREREQ_STRNDUP): Delete.
27975         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
27976         * modules/string (Makefile.am): Substitute it.
27977         * lib/string.in.h (strndup): Modernize prototype.
27978
27979         getcwd: port to mingw
27980         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
27981         different from the POSIX assumptions made throughout the getcwd
27982         module; fortunately, the mingw getcwd does not need replacement.
27983         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
27984         * modules/getcwd-tests: New test.
27985         * tests/test-getcwd.c: Likewise.
27986
27987         link: fix platform bugs
27988         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
27989         * lib/link.c (link): Work around them.  Fix related mingw bug.
27990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
27991         * modules/unistd (Makefile.am): Substitute it.
27992         * lib/unistd.in.h (link): Declare replacement.
27993         * doc/posix-functions/link.texi (link): Document this.
27994         * modules/link (Depends-on): Add strdup-posix, sys_stat.
27995
27996         test-link: consolidate into single C program, test more cases
27997         * tests/test-link.sh: Delete.
27998         * tests/test-link.c: Test more error conditions.  Exposes bugs on
27999         at least Cygwin and Solaris.
28000         * modules/link-tests (Files): Remove unused file.
28001         (Depends-on): Add errno, sys_stat.
28002         (Makefile.am): Simplify.
28003
28004 2009-09-08  Bruno Haible  <bruno@clisp.org>
28005
28006         Work around towlower, towupper bug on mingw.
28007         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
28008         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
28009         * doc/posix-functions/towlower.texi: Mention the mingw bug.
28010         * doc/posix-functions/towupper.texi: Likewise.
28011         Reported by Eric Blake.
28012
28013 2009-09-08  Jim Meyering  <meyering@redhat.com>
28014
28015         build: don't try to run autoheader if we don't use it
28016         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
28017         is not used in configure.ac.
28018
28019 2009-09-08  Eric Blake  <ebb9@byu.net>
28020
28021         euidaccess: fix compilation error
28022         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
28023
28024         rawmemchr: relax license
28025         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
28026         okay.
28027         Reported by Jim Meyering.
28028
28029         mkfifoat: new module
28030         * modules/mkfifoat: New file.
28031         * lib/mkfifoat.c: Likewise.
28032         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
28033         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28034         * modules/sys_stat (Makefile.am): Use them.
28035         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
28036         * MODULES.html.sh (File system functions): Mention module.
28037         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28038         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28039         * modules/mkfifoat-tests: New test.
28040         * tests/test-mkfifoat.c: Likewise.
28041
28042         strchrnul: relax license
28043         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
28044         okay.
28045         Reported by Jim Meyering.
28046
28047 2009-09-08  Eric Blake  <ebb9@byu.net>
28048
28049         fstatat: fix compilation on Solaris
28050         * lib/fstatat.c (includes): Add fcntl.h.
28051         Reported by Pádraig Brady.
28052
28053 2009-09-07  Eric Blake  <ebb9@byu.net>
28054
28055         rename: modernize replacement
28056         * modules/rename (Depends-on): Add stdio.
28057         (configure.ac): Declare witness.
28058         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
28059         stdio take care of replacement.
28060         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
28061         * modules/stdio (Makefile.am): Substitute them.
28062         * lib/stdio.in.h (rename): Declare replacement.
28063         * lib/rename.c (includes): Allow cross-compilation to non-windows
28064         machines.
28065         * doc/posix-functions/rename.texi (rename): Improve
28066         documentation.
28067
28068         stdio: sort witness names
28069         * modules/stdio (Makefile.am): Sort replacements.
28070         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28071         * lib/stdio.in.h: Likewise.
28072
28073         getcwd: minor cleanups
28074         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
28075         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
28076
28077         openat: provide more convenience names
28078         * modules/faccessat (configure.ac): Add C witness.
28079         * lib/unistd.in.h (readlinkat): Fix typo.
28080         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
28081         convenience wrappers.
28082         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
28083         wrappers in syntax checks.
28084
28085 2009-09-06  Eric Blake  <ebb9@byu.net>
28086
28087         doc: fix comments in recent patches
28088         * lib/faccessat.c: Mention correct function.
28089         * lib/fchmodat.c: Likewise.
28090         * lib/fchownat.c: Likewise.
28091         * lib/symlinkat.c: Likewise.
28092         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
28093         constants.
28094
28095         faccessat, symlinkat: continue cleanup of previous patch
28096         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
28097         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28098         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
28099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
28100         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
28101         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
28102         set.
28103
28104 2009-09-06  Bruno Haible  <bruno@clisp.org>
28105
28106         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
28107         (fstatat): Declare if GNULIB_FSTATAT is set.
28108         (mkdirat): Declare if GNULIB_MKDIRAT is set.
28109         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
28110         (unlinkat): Declare if GNULIB_UNLINKAT is set.
28111         * modules/fcntl-h (Files): Remove m4/openat.m4.
28112         * modules/sys_stat (Files): Remove m4/openat.m4.
28113         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
28114         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
28115         * modules/unistd (Files): Remove m4/openat.m4.
28116         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
28117         GNULIB_OPENAT.
28118         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
28119         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
28120         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
28121         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
28122         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
28123         gl_OPENAT_DEFAULTS.
28124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
28125         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
28126         Don't require gl_OPENAT_DEFAULTS.
28127         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
28128         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
28129         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
28130         (gl_OPENAT_DEFAULTS): Remove macro.
28131
28132 2009-09-06  Bruno Haible  <bruno@clisp.org>
28133
28134         * modules/openat (configure.ac): Remove unneeded witness.
28135
28136 2009-09-06  Bruno Haible  <bruno@clisp.org>
28137
28138         Set errno to ENOSYS when a function is entirely unsupported.
28139         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
28140         EOPNOTSUPP.
28141         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28142         * modules/chown (Depends-on): Remove errno.
28143
28144 2009-09-06  Bruno Haible  <bruno@clisp.org>
28145
28146         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
28147
28148 2009-09-06  Bruno Haible  <bruno@clisp.org>
28149
28150         * lib/sys_stat.in.h: Fix preprocessor command indentation.
28151
28152 2009-09-06  Ben Pfaff  <blp@gnu.org>
28153             Bruno Haible  <bruno@clisp.org>
28154
28155         Work around a glibc bug in strtok_r.
28156         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
28157         Undefine if UNDEFINE_STRTOK_R is set.
28158         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
28159         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28160         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
28161         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
28162         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
28163         UNDEFINE_STRTOK_R.
28164         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
28165
28166 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28167
28168         exclude: minor fix
28169         * lib/exclude.c: Include wctype.h
28170
28171 2009-09-06  Akim Demaille  <demaille@gostai.com>
28172
28173         bootstrap: improve error message
28174         * build-aux/bootstrap (find_tool): Upon failure, report the list
28175         of candidates.
28176         Honor the initial value of the envvar.
28177
28178 2009-09-05  Eric Blake  <ebb9@byu.net>
28179
28180         symlinkat: new module
28181         * modules/symlinkat: New file.
28182         * lib/symlinkat.c: Likewise.
28183         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
28184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28185         * modules/unistd (Makefile.am): Use them.
28186         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
28187         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
28188         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
28189         * MODULES.html.sh (File system functions): Mention module.
28190         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28191         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28192         * modules/symlinkat-tests: New test.
28193         * tests/test-symlinkat.c: Likewise.
28194
28195         test-openat-safer: add more checks
28196         * tests/test-openat-safer.c (main): Check more code paths.
28197
28198 2009-09-05  Jim Meyering  <meyering@redhat.com>
28199
28200         syntax-check: detect unnecessary inclusion of openat.h
28201         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
28202
28203 2009-09-05  Bruno Haible  <bruno@clisp.org>
28204
28205         Support towlower, towupper.
28206         * doc/posix-functions/towlower.texi: Mention module wctype.
28207         * doc/posix-functions/towupper.texi: Likewise.
28208         * lib/wctype.in.h (towlower, towupper): New functions.
28209         * tests/test-wctype.c: Include stdio.h, stdlib.h.
28210         (ASSERT): New macro.
28211         (e): New variable.
28212         (main): Test also towlower, towupper. Test WEOF argument.
28213         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28214
28215 2009-09-05  Bruno Haible  <bruno@clisp.org>
28216
28217         Fix conversion behaviour when the input is invalid.
28218         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
28219         mark occurring in first pass of indirect conversion.
28220         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
28221         input.
28222         Found by clang's static analyzer.
28223
28224 2009-09-05  Bruno Haible  <bruno@clisp.org>
28225
28226         * tests/test-striconveh.c (main): Test indirect conversion on platforms
28227         where direct conversion is possible.
28228
28229 2009-09-04  Eric Blake  <ebb9@byu.net>
28230
28231         openat: fail with ENOENT on empty name
28232         * lib/openat-proc.c (openat_proc_name): Special-case the empty
28233         buffer.
28234
28235         link-follow: fix logic bug in prior patch
28236         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
28237         reversed sense of yes and no in prior patch.  Avoid confusing
28238         compilation failure with desired semantics.
28239
28240         link-follow: accomodate mingw and cross-compilation
28241         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
28242         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
28243         cross-compilation results to -1, to make linkat easier to
28244         implement when cross-compiling.  Trivially support mingw.
28245         * modules/link-follow (configure.ac): Call new name.
28246         * NEWS: Mention this.
28247
28248 2009-09-03  Eric Blake  <ebb9@byu.net>
28249
28250         faccessat: compile replacement
28251         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
28252         needed.
28253
28254         fts: fix compilation error
28255         * lib/fts.c (includes): Re-add "openat.h", for
28256         openat_needs_fchdir.
28257
28258         faccessat: new module
28259         * modules/faccessat: New file.
28260         * lib/faccessat.c: Likewise.
28261         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28263         * modules/unistd (Makefile.am): Use it.
28264         * lib/unistd.in.h (faccessat): Declare it.
28265         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
28266         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
28267         * MODULES.html.sh (File system functions): Mention it.
28268         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
28269         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28270
28271         euidaccess: prefer POSIX over non-standard implementation
28272         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
28273         * lib/euidaccess.c (euidaccess): Use it if available.
28274
28275         openat: make template easier to use
28276         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
28277         AT_FUNC_F2 to be undefined.
28278         (VALIDATE_FLAG): New macro; use it to reject bad flags.
28279         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
28280         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
28281         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
28282         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
28283         Likewise.
28284         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
28285         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
28286         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
28287         Likewise.
28288
28289         openat: declare in POSIX headers
28290         * NEWS: Mention this.
28291         * modules/openat (configure.ac): Declare witnesses.
28292         (Depends-on): Add fcntl-h, sys_stat, unistd.
28293         (Include): Mention correct headers.
28294         * modules/fcntl-h (Depends-on): Add link-warning.
28295         (Files): Add openat.m4.
28296         (Makefile.am): Substitute witnesses.
28297         * modules/sys_stat (Files, Makefile.am): Likewise.
28298         * modules/unistd (Files, Makefile.am): Likewise.
28299         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
28300         (gl_OPENAT_DEFAULTS): New macro.
28301         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
28302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
28303         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
28304         (SYS_STAT_H): Remove unused variable.
28305         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
28306         * lib/fcntl--.h (includes): Remove unneeded header.
28307         * lib/openat-safer.c (includes): Likewise.
28308         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
28309         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
28310         appropriate headers.
28311         (__OPENAT_PREFIX): Delete.
28312         * lib/fcntl.in.h (openat): Provide declaration.
28313         (AT_FDCWD): Fix Solaris bug.
28314         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
28315         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
28316         * lib/fchmodat.c (includes):  Adjust to find declaration.
28317         * lib/fchownat.c (includes): Likewise.
28318         * lib/mkdirat.c (includes): Likewise.
28319         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
28320         still visible.
28321
28322 2009-09-02  Eric Blake  <ebb9@byu.net>
28323
28324         errno: use consistently
28325         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
28326         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
28327         * lib/canonicalize.c (ELOOP): Likewise.
28328         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
28329         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
28330         * lib/lchown.c (EOPNOTSUPP): Likewise.
28331         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
28332         * lib/savewd.c (ESTALE): Likewise.
28333         * lib/settime.c (ENOSYS): Likewise.
28334         * lib/utimens.c (ENOSYS): Likewise.
28335         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
28336         * lib/chdir-safer.c (ELOOP): Likewise.
28337         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
28338         * modules/c-stack (Depends-on): Add errno.
28339         * modules/canonicalize (Depends-on): Likewise.
28340         * modules/chdir-safer (Depends-on): Likewise.
28341         * modules/fdopendir (Depends-on): Likewise.
28342         * modules/inet_ntop (Depends-on): Likewise.
28343         * modules/inet_pton (Depends-on): Likewise.
28344         * modules/lchown (Depends-on): Likewise.
28345         * modules/openat (Depends-on): Likewise.
28346         * modules/savewd (Depends-on): Likewise.
28347         * modules/settime (Depends-on): Likewise.
28348         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
28349
28350         fts: avoid leaking fds
28351         * modules/fts (Depends-on): Add cloexec.
28352         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
28353         flag.
28354
28355         fts: make directory fds more robust
28356         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
28357         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
28358
28359         backupfile, chdir-long, fts, savedir: make safer
28360         * lib/backupfile.c (includes): Use "dirent--.h", since
28361         numbered_backup can write to stderr during readdir.
28362         * lib/savedir.c (includes): Likewise.
28363         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
28364         emulation can write to stderr on failure.
28365         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
28366         * lib/getcwd.c: Document why opendir_safer is unused.
28367         * lib/glob.c: Likewise.
28368         * lib/scandir.c: Likewise.
28369         * lib/openat-proc.c: Likewise, for open_safer.
28370         * modules/backupfile (Depends-on): Add dirent-safer.
28371         * modules/savedir (Depends-on): Likewise.
28372         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
28373         * modules/chdir-long (Depends-on): Add openat-safer.
28374
28375         openat-safer: new module
28376         * modules/openat-safer: New file.
28377         * lib/openat-safer.c: Likewise.
28378         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
28379         * lib/fcntl-safer.h (openat_safer): Declare.
28380         * lib/fcntl--.h (openat): Override.
28381         * MODULES.html.sh (File descriptor based I/O): Mention it.
28382         * lib/openat.h: Add double-inclusion guards.
28383         * lib/openat.c (includes): Only include "fcntl-safer.h", not
28384         "fcntl--.h", so we can implement openat.
28385         * modules/openat-safer-tests: New test.
28386         * tests/test-openat-safer.c: New file.
28387
28388         dirent-safer: new module
28389         * modules/dirent-safer: New file.
28390         * lib/dirent--.h: Likewise.
28391         * lib/dirent-safer.h: Likewise.
28392         * lib/opendir-safer.c: Likewise.
28393         * m4/dirent-safer.m4: Likewise.
28394         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
28395         * modules/dirent-safer-tests: New test.
28396         * tests/test-dirent-safer.c: New file.
28397         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
28398
28399         fdopendir: optimize on mingw
28400         * lib/unistd.in.h (_gl_directory_name): New prototype.
28401         * lib/fchdir.c (_gl_directory_name): Implement it.
28402         (fchdir): Use it to simplify implementation.
28403         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
28404         fchdir, when available, to avoid calling [f]chdir().
28405
28406         fdopendir: split into its own module
28407         * lib/openat.c (fdopendir): Move...
28408         * lib/fdopendir.c: ...into new file.
28409         * modules/fdopendir: New module.
28410         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
28411         * modules/openat (Depends-on): Add fdopendir.
28412         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
28413         fdopendir here.
28414         * modules/savedir (Depends-on): Only need fdopendir, not full
28415         openat.
28416         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
28417         * lib/openat.h (fdopendir): Drop prototype.
28418         * lib/dirent.in.h (fdopendir): Provide prototype.
28419         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
28420         * modules/dirent (Makefile.am): Substitute them.
28421         * MODULES.html.sh (File system functions): Mention it.
28422         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
28423         * modules/fdopendir-tests: New file.
28424         * tests/test-fdopendir.c: Likewise.
28425
28426         fchdir: use more consistent macro convention
28427         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
28428         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
28429         REPLACE_FCHDIR, rather than relying on config.h macros.
28430         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
28431         inside a single make-time REPLACE_FCHDIR block, rather than using
28432         the config.h FCHDIR_REPLACEMENT.
28433         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
28434         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
28435         Manage fstat replacement.
28436         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
28437         REPLACE_FCHDIR.
28438         * modules/sys_stat (Files): Add m4/unistd_h.m4.
28439         (Makefile.am): Substitute REPLACE_FCHDIR.
28440         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
28441         FCHDIR_REPLACEMENT.
28442         * lib/dup-safer.c (dup_safer): Likewise.
28443         * lib/dup2.c (rpl_dup2): Likewise.
28444         * lib/dup3.c (rpl_dup3): Likewise.
28445         * lib/open.c (rpl_open): Likewise.
28446
28447         fchdir: simplify error handling, and support dup3
28448         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
28449         stdbool, malloc-posix, realloc-posix.
28450         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
28451         (ensure_dirs_slot): Return false on allocation failure.
28452         (rpl_dup2): Delete.
28453         (_gl_register_dup): New function.
28454         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
28455         (_gl_register_fd): Close fd on allocation failure.
28456         * lib/fcntl.in.h (_gl_register_fd): Update signature.
28457         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
28458         prototype.
28459         (rpl_dup2_fchdir): Delete prototype.
28460         * lib/open.c (open): Update caller.
28461         * lib/dup2.c (dup2): Track fchdir metadata.
28462         * lib/dup3.c (dup3): Likewise.
28463         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
28464         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
28465
28466 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28467
28468         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
28469         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
28470         don't pass arguments to AC_OUTPUT.
28471
28472 2009-09-02  Bruno Haible  <bruno@clisp.org>
28473
28474         * modules/mkdtemp (License): Relicense under LGPLv2+.
28475         Reported by Paolo Bonzini.
28476
28477 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28478
28479         Replace uses of obsolete autoconf macros in Jim's modules.
28480         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
28481         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
28482         can evoke a warning from autoconf when run with -Wobsolete
28483         enabled.  They were declared obsolete for good reasons (see
28484         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
28485         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
28486         should not continue using the deprecated macros.
28487         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
28488         obsolete Autoconf macros with modern counterparts.
28489         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28490         * m4/dos.m4 (gl_AC_DOS): Likewise.
28491         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
28492         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28493         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
28494         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
28495         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
28496         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
28497         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
28498         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
28499         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
28500         Likewise.
28501         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28502         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
28503         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
28504         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
28505         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
28506         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
28507
28508 2009-09-01  Eric Blake  <ebb9@byu.net>
28509
28510         fchdir: fix off-by-one bug in previous patch
28511         * lib/fchdir.c (rpl_fstat): Use correct bounds.
28512         (_gl_unregister_fd): Delete useless if.
28513
28514 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
28515
28516         maint.mk: sort the list of syntax-check rules
28517         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
28518         easier to get a sense of progress when the rules are run sequentially
28519         and take a long time.
28520
28521 2009-09-01  Simon Josefsson  <simon@josefsson.org>
28522
28523         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
28524         * modules/netinet_in: Likewise.
28525         * modules/sys_file: Likewise.
28526         * modules/sys_ioctl: Likewise.
28527         * modules/sys_select: Likewise.
28528         * modules/sys_socket: Likewise.
28529         * modules/sys_stat: Likewise.
28530         * modules/sys_time: Likewise.
28531         * modules/sys_times: Likewise.
28532         * modules/sys_utsname: Likewise.
28533         * modules/sys_wait: Likewise.
28534
28535 2009-09-01  Jim Meyering  <meyering@redhat.com>
28536
28537         fts: help ensure that return values are not ignored
28538         * lib/fts_.h (__GNUC_PREREQ): Define.
28539         (__attribute_warn_unused_result__): Define.
28540         (fts_children, fts_close, fts_open, fts_read): Declare with
28541         __attribute_warn_unused_result__.
28542
28543         fts: fts_close now fails also when closing a dir file descriptor fails
28544         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
28545         and propagate to caller, along with errno.
28546
28547         announce-gen: correct formatting in --help output
28548         * build-aux/announce-gen (usage): Move the one-line description in
28549         --help output "up", to where it belongs, just after Usage:.
28550
28551 2009-08-31  Eric Blake  <ebb9@byu.net>
28552
28553         fchdir: port to mingw
28554         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
28555         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
28556         opened, then use a substitute.
28557         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
28558         replacement.
28559         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
28560         (_gl_register_fd): No need to check stat if open already filters
28561         all directories.
28562         (fchdir): Fix error condition to match POSIX.
28563         * modules/fchdir (Depends-on): Add sys_stat.
28564         * doc/posix-functions/open.texi (open): Document the limitation.
28565         * modules/fchdir-tests: New file.
28566         * tests/test-fchdir.c: Likewise.
28567
28568         canonicalize: allow cross-testing from cygwin to mingw
28569         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
28570         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
28571         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
28572         Likewise.
28573         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
28574         target does not support symlinks.
28575         * tests/test-canonicalize-lgpl.sh: Likewise.
28576
28577         chown: avoid compilation warning on mingw
28578         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
28579         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
28580         mingw.
28581         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28582         * modules/chown (Depends-on): Add errno.
28583
28584 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
28585
28586         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
28587         command.
28588
28589 2009-08-31  Jim Meyering  <meyering@redhat.com>
28590
28591         canonicalize: remove useless initialization
28592         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
28593         initialization of local, "end".
28594
28595 2009-08-30  Bruno Haible  <bruno@clisp.org>
28596
28597         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
28598         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
28599         ENOSYS.
28600
28601 2009-08-30  Bruno Haible  <bruno@clisp.org>
28602
28603         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
28604         /usr/xpg4/bin/tr when it exists.
28605         * tests/test-pipe-filter-gi1.sh: Likewise.
28606
28607 2009-08-30  Bruno Haible  <bruno@clisp.org>
28608
28609         Work around deficient /usr/bin/id program on Solaris.
28610         * tests/test-file-has-acl.sh (ID): New variable.
28611         * tests/test-set-mode-acl.sh (ID): Likewise.
28612         * tests/test-copy-acl.sh (ID): Likewise.
28613         * tests/test-copy-file.sh (ID): Likewise.
28614
28615 2009-08-30  Bruno Haible  <bruno@clisp.org>
28616
28617         New module 'xstriconveh'.
28618         * lib/xstriconveh.h: New file.
28619         * lib/xstriconveh.c: New file.
28620         * modules/xstriconveh: New file.
28621
28622 2009-08-30  Bruno Haible  <bruno@clisp.org>
28623
28624         Make it easier to use mem_cd_iconveh.
28625         * lib/striconveh.h (iconveh_t): New type.
28626         (iconveh_open, iconveh_close): New declarations.
28627         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
28628         with a single 'const iconveh_t *' argument.
28629         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
28630         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
28631         with a single 'const iconveh_t *' argument.
28632         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
28633         * tests/test-striconveh.c (main): Update.
28634         * NEWS: Mention the change.
28635
28636 2009-08-30  Bruno Haible  <bruno@clisp.org>
28637
28638         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
28639         problem.
28640
28641 2009-08-30  Bruno Haible  <bruno@clisp.org>
28642
28643         Work around iconv_open problem on Solaris.
28644         * lib/iconv_open-solaris.gperf: New file.
28645         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
28646         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
28647         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
28648         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
28649         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
28650         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
28651
28652 2009-08-29  Jim Meyering  <meyering@redhat.com>
28653
28654         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
28655         * top/maint.mk (cvs-check): Remove target; it was just an alias
28656         to the better-named vc-diff-check.
28657         (maintainer-distcheck): Remove rule.  It was used only from
28658         the (alpha/beta/major) target, and all of its commands but one
28659         were coreutils-specific.
28660         (vc-dist): Remove rule.
28661         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
28662         Run vc-diff-check, not vc-dist.
28663         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
28664
28665 2009-08-27  Bruno Haible  <bruno@clisp.org>
28666
28667         * tests/test-bitrotate.c (main): Remove test that uses a shift count
28668         of 0.
28669
28670 2009-08-27  Bruno Haible  <bruno@clisp.org>
28671
28672         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
28673         compilers.
28674         * doc/func.texi: Document the SunPRO C bug.
28675
28676 2009-08-27  Bruno Haible  <bruno@clisp.org>
28677
28678         Fix link error on Solaris.
28679         * tests/test-parse-duration.c (xstrdup): Remove function.
28680
28681 2009-08-26  Pádraig Brady  <P@draigbrady.com>
28682
28683         ignore-value: handle pointer types, too
28684         * lib/ignore-value.h (__attribute__): Remove definition.
28685         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
28686         of a more concise and more-often effective "(void) i" statement.
28687         (ignore_ptr): New function to suppress warnings from functions that
28688         return pointers, and to make it explicit that one function doesn't
28689         handle all cases.
28690
28691 2009-08-25  Bruno Haible  <bruno@clisp.org>
28692
28693         dup2: work around a Linux bug.
28694         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
28695         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
28696         * doc/posix-functions/dup2.texi: Mention the Linux bug.
28697         Reported by Simon Josefsson.
28698
28699 2009-08-25  Jim Meyering  <meyering@redhat.com>
28700
28701         libguestfs uses gnulib
28702         * users.txt: Add libguestfs.
28703
28704 2009-08-24  Eric Blake  <ebb9@byu.net>
28705
28706         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
28707         * lib/pipe2.c (includes): Add binary-io.h.
28708         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
28709
28710 2009-08-24  Bruno Haible  <bruno@clisp.org>
28711
28712         Tolerate declared but missing accept4 syscall.
28713         * lib/accept4.c (accept4): Invoke original accept4 function first, if
28714         available.
28715         * lib/sys_socket.in.h (accept4): If the function is already present,
28716         override it.
28717         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
28718         * modules/accept4 (Makefile.am): Compile accept4.c always.
28719         Reported by Paolo Bonzini and Eric Blake.
28720
28721 2009-08-23  Bruno Haible  <bruno@clisp.org>
28722
28723         New module 'accept4'.
28724         * lib/sys_socket.in.h (accept4): New declaration.
28725         * lib/accept4.c: New file.
28726         * m4/accept4.m4: New file.
28727         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28728         GNULIB_ACCEPT4, HAVE_ACCEPT4.
28729         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
28730         HAVE_ACCEPT4.
28731         * modules/accept4: New file.
28732         * doc/glibc-functions/accept4.texi: Mention the new module.
28733
28734 2009-08-24  Jim Meyering  <meyering@redhat.com>
28735
28736         progname: also set global program_invocation_name, when possible
28737         Before this change, a libtool-enabled program that calls glibc's
28738         error function would report the program name as
28739         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
28740         * modules/progname (configure.ac): Check for a declaration of
28741         program_invocation_name.
28742         * lib/progname.c:  Include <errno.h>.
28743         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
28744         Set program_invocation_name.
28745
28746 2009-08-23  Bruno Haible  <bruno@clisp.org>
28747
28748         * lib/dup3.c: Include <string.h>.
28749
28750 2009-08-23  Bruno Haible  <bruno@clisp.org>
28751
28752         * lib/dup3.c (dup3): Test only once whether the system actually exists.
28753         * lib/pipe2.c (pipe2): Likewise.
28754         Suggested by Eric Blake.
28755
28756 2009-08-23  Bruno Haible  <bruno@clisp.org>
28757
28758         Tolerate declared but missing dup3 syscall.
28759         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
28760         * lib/unistd.in.h (dup3): If the function is already present,
28761         override it.
28762         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
28763         * modules/dup3 (Makefile.am): Compile dup3.c always.
28764         Reported by Paolo Bonzini.
28765
28766 2009-08-23  Bruno Haible  <bruno@clisp.org>
28767
28768         Tolerate declared but missing pipe2 syscall.
28769         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
28770         available.
28771         * lib/unistd.in.h (pipe2): If the function is already present,
28772         override it.
28773         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
28774         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
28775         Reported by Paolo Bonzini.
28776
28777 2009-08-23  Bruno Haible  <bruno@clisp.org>
28778
28779         * lib/pipe2.c (pipe2): Move #ifs inside function.
28780
28781 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28782
28783         quotearg: document limitations of quote_these_too
28784         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
28785         those limitations are created.
28786         * lib/quotearg.h (set_char_quoting): Document that digits and
28787         letters that are special after backslash are not permitted.
28788         (quotearg_char): Cross-reference set_char_quoting documentation.
28789
28790 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
28791
28792         quotearg: implement custom_quoting_style
28793         * lib/quotearg.c: (struct quoting_options): Add left_quote and
28794         right_quote fields.
28795         (set_custom_quoting): New public function.
28796         (quotearg_buffer_restyled): Add left_quote and right_quote
28797         arguments, handle them very much like locale quoting, and update
28798         all uses.
28799         (quotearg_n_custom): New public function.
28800         (quotearg_n_custom_mem): New public function.
28801         (quotearg_custom): New public function.
28802         (quotearg_custom_mem): New public function.
28803         * lib/quotearg.h: Prototype and document new public functions.
28804         (enum quoting_style): For escape_quoting_style and
28805         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
28806         ignored even though they're otherwise like c_quoting_style.
28807         Add custom_quoting_style member and document with comparison to
28808         clocale_quoting_style.
28809         * tests/test-quotearg.c (custom_quotes): New array.
28810         (custom_results): New array.
28811         (main): Extend to test custom quoting.
28812
28813 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28814
28815         quotearg: fix right quote escaping when it's in quote_these_too
28816         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
28817         quote, be sure to prepend only one backslash.
28818         * tests/test-quotearg.c (use_quote_double_quotes): New function.
28819         (main): Test it.
28820
28821 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28822
28823         quotearg-tests: test escaping of embedded locale quotes
28824         * tests/test-quotearg.c (struct result_strings): Add member for
28825         new input.
28826         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
28827         (inputs): Add new input.
28828         (results_g): Add expected results.
28829         (flag_results): Likewise.
28830         (locale_results): Likewise.
28831         (compare_strings): Check those.
28832
28833 2009-08-23  Bruno Haible  <bruno@clisp.org>
28834
28835         Tests for module 'dup3'.
28836         * modules/dup3-tests: New file.
28837         * tests/test-dup3.c: New file.
28838
28839         New module 'dup3'.
28840         * lib/unistd.in.h (dup3): New declaration.
28841         * lib/dup3.c: New file.
28842         * m4/dup3.m4: New file.
28843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
28844         HAVE_DUP3.
28845         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
28846         * modules/dup3: New file.
28847         * doc/glibc-functions/dup3.texi: Mention the new module.
28848
28849 2009-08-23  Bruno Haible  <bruno@clisp.org>
28850
28851         Tweak the dup2 test.
28852         * tests/test-dup2.c (main): Create the test file empty. Verify that an
28853         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
28854         the test file is still empty. Fix argument order of lseek.
28855
28856 2009-08-23  Bruno Haible  <bruno@clisp.org>
28857
28858         Avoid test link errors when the modules getopt-gnu, gettext are used.
28859         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
28860         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28861
28862 2009-08-23  Bruno Haible  <bruno@clisp.org>
28863
28864         Fix getdtablesize() on mingw.
28865         * lib/getdtablesize.c (getdtablesize): Implement differently.
28866         * lib/unistd.in.h (getdtablesize): Improve comment.
28867
28868 2009-08-23  Bruno Haible  <bruno@clisp.org>
28869
28870         New module 'mkostemp'.
28871         Based on Ulrich Drepper's 2007-08-10 change in glibc.
28872         * lib/stdlib.in.h (mksotemp): New declaration.
28873         * lib/mkostemp.c: New file, from glibc with modifications.
28874         * lib/tempname.h (GT_FILE): Remove outdated comment.
28875         (gen_tempname): Add flags argument.
28876         * lib/tempname.c (__GT_BIGFILE): Remove macro.
28877         (__GT_FILE): Map to 1.
28878         (small_open, large_open): Remove macros.
28879         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
28880         * lib/mkstemp.c (mkstemp): Update.
28881         * lib/mkdtemp.c (mkdtemp): Likewise.
28882         * m4/mkostemp.m4: New file.
28883         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
28884         HAVE_MKOSTEMP.
28885         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
28886         HAVE_MKOSTEMP.
28887         * modules/mkostemp: New file, based on modules/mkstemp.
28888         * doc/glibc-functions/mkostemp.texi: Mention the new module.
28889         * NEWS: Mention the change.
28890
28891 2009-08-23  Bruno Haible  <bruno@clisp.org>
28892
28893         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
28894         Reported by Eric Blake.
28895
28896 2009-08-23  Bruno Haible  <bruno@clisp.org>
28897
28898         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
28899         Reported by Eric Blake.
28900
28901 2009-08-23  Bruno Haible  <bruno@clisp.org>
28902
28903         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
28904         * modules/pipe2 (Depends-on): Likewise.
28905
28906 2009-08-23  Eric Blake  <ebb9@byu.net>
28907
28908         fcntl-h: add O_TTY_INIT support
28909         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
28910         * tests/test-fcntl-h.c (o): Test it.
28911         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28912
28913         fcntl-h: rename from fcntl, in preparation for fcntl(2)
28914         * modules/fcntl: Move <fcntl.h> header replacement...
28915         * modules/fcntl-h: ...to new name, so as not to collide with
28916         like-named function.
28917         * tests/test-fcntl.c: Rename...
28918         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
28919         * modules/fcntl-tests: Rename...
28920         * modules/fcntl-h-tests: ...to this.  Update test file name.
28921         * modules/chdir-long (Depends-on): Update clients.
28922         * modules/chdir-safer (Depends-on): Likewise.
28923         * modules/fcntl-safer (Depends-on): Likewise.
28924         * modules/fts (Depends-on): Likewise.
28925         * modules/mkancesdirs (Depends-on): Likewise.
28926         * modules/mkdir-p (Depends-on): Likewise.
28927         * modules/open (Depends-on): Likewise.
28928         * modules/savewd (Depends-on): Likewise.
28929         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
28930         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28931
28932 2009-08-22  Bruno Haible  <bruno@clisp.org>
28933
28934         * modules/binary-io (License): Relicense under LGPL.
28935         * modules/pipe2 (License): Likewise.
28936
28937 2009-08-22  Bruno Haible  <bruno@clisp.org>
28938
28939         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
28940         return value.
28941         * lib/pipe-filter-gi.c (filter_init): Likewise.
28942         Reported by Eric Blake.
28943
28944 2009-08-22  Bruno Haible  <bruno@clisp.org>
28945
28946         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
28947         * modules/pipe (Depends-on): Add pipe2.
28948
28949 2009-08-22  Bruno Haible  <bruno@clisp.org>
28950
28951         Tests for module 'pipe2'.
28952         * modules/pipe2-tests: New file.
28953         * tests/test-pipe2.c: New file.
28954
28955         New module 'pipe2'.
28956         * lib/unistd.in.h (pipe2): New declaration.
28957         * lib/pipe2.c: New file.
28958         * m4/pipe2.m4: New file.
28959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
28960         HAVE_PIPE2.
28961         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
28962         * modules/pipe2: New file.
28963         * doc/glibc-functions/pipe2.texi: Mention the new module.
28964
28965 2009-08-22  Bruno Haible  <bruno@clisp.org>
28966
28967         Reference some new glibc functions.
28968         * doc/glibc-functions/accept4.texi: New file.
28969         * doc/glibc-functions/dup3.texi: New file.
28970         * doc/glibc-functions/mkostemp.texi: New file.
28971         * doc/glibc-functions/pipe2.texi: New file.
28972         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
28973         (Glibc sys/socket.h): Refer to accept4.
28974         (Glibc unistd.h): Refer to dup3, pipe2.
28975         Reported by Eric Blake.
28976
28977 2009-08-22  Jim Meyering  <meyering@redhat.com>
28978             Bruno Haible  <bruno@clisp.org>
28979
28980         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
28981         This makes it so packages using automake-1.11's silent-rules option
28982         can print e.g., a single "GEN    configmake.h" line, rather than
28983         the 30+ statements that perform the job.  If you want to see the
28984         actual commands, you can still run "make V=1".
28985         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
28986         so that make output is abbreviated when those variables are defined
28987         appropriately.
28988         * modules/argz: Likewise.
28989         * modules/arpa_inet: Likewise.
28990         * modules/byteswap: Likewise.
28991         * modules/configmake: Likewise.
28992         * modules/dirent: Likewise.
28993         * modules/errno: Likewise.
28994         * modules/fcntl: Likewise.
28995         * modules/float: Likewise.
28996         * modules/fnmatch: Likewise.
28997         * modules/getopt-posix: Likewise.
28998         * modules/glob: Likewise.
28999         * modules/iconv_open: Likewise.
29000         * modules/inttypes: Likewise.
29001         * modules/localcharset: Likewise.
29002         * modules/locale: Likewise.
29003         * modules/math: Likewise.
29004         * modules/netdb: Likewise.
29005         * modules/netinet_in: Likewise.
29006         * modules/poll: Likewise.
29007         * modules/posix_spawnp-tests: Likewise.
29008         * modules/sched: Likewise.
29009         * modules/search: Likewise.
29010         * modules/selinux-h: Likewise.
29011         * modules/signal: Likewise.
29012         * modules/spawn: Likewise.
29013         * modules/stdarg: Likewise.
29014         * modules/stdbool: Likewise.
29015         * modules/stddef: Likewise.
29016         * modules/stdint: Likewise.
29017         * modules/stdio: Likewise.
29018         * modules/stdlib: Likewise.
29019         * modules/string: Likewise.
29020         * modules/strings: Likewise.
29021         * modules/sys_file: Likewise.
29022         * modules/sys_ioctl: Likewise.
29023         * modules/sys_select: Likewise.
29024         * modules/sys_socket: Likewise.
29025         * modules/sys_stat: Likewise.
29026         * modules/sys_time: Likewise.
29027         * modules/sys_times: Likewise.
29028         * modules/sys_utsname: Likewise.
29029         * modules/sys_wait: Likewise.
29030         * modules/sysexits: Likewise.
29031         * modules/time: Likewise.
29032         * modules/unistd: Likewise.
29033         * modules/wchar: Likewise.
29034         * modules/wctype: Likewise.
29035
29036 2009-08-22  Jim Meyering  <meyering@redhat.com>
29037
29038         announce-gen: detect write failure
29039         * build-aux/announce-gen: Add Coda at end.
29040         Remove equivalent-but-more-verbose block at top.
29041
29042 2009-08-19  Akim Demaille  <demaille@gostai.com>
29043
29044         bootstrap: --help to stdout.
29045         * bootstrap (usage): Don't send --help to stderr.
29046         Use a here doc instead of a long string.
29047
29048 2009-08-21  Eric Blake  <ebb9@byu.net>
29049
29050         test-popen-safer: split from test-popen
29051         * tests/test-popen.c (main): Move...
29052         * tests/test-popen.h: ...into new file.
29053         * tests/test-popen-safer2.c: New file.
29054         * modules/popen-tests (Files): Add test-popen.h.
29055         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
29056         Suggested by Bruno Haible.
29057
29058         test-fcntl-safer: split from test-open
29059         * tests/test-open.c (main): Move...
29060         * tests/test-open.h: ...into new file.
29061         * tests/test-fcntl-safer.c: New file.
29062         * modules/open-tests (Files): Add test-open.h.
29063         * modules/fcntl-safer-tests: New file.
29064         Suggested by Bruno Haible.
29065
29066         test-fopen-safer: split from test-fopen
29067         * tests/test-fopen.c (main): Move...
29068         * tests/test-fopen.h: ...into new file.
29069         * tests/test-fopen-safer.c: New file.
29070         * modules/fopen-tests (Files): Add test-fopen.h.
29071         * modules/fopen-safer-tests: New file.
29072         Suggested by Bruno Haible.
29073
29074 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29075
29076         popen-safer: test O_CLOEXEC at run-time.
29077         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
29078
29079 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29080
29081         fcntl: move more flags to the header
29082         * lib/cloexec.c: Do not define FD_CLOEXEC here.
29083         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
29084         * lib/fcntl.in.h: Do both things here.
29085
29086 2009-08-21  Jim Meyering  <meyering@redhat.com>
29087
29088         consistently remove $@-t before redirecting to it
29089         * modules/argz: Remove $@-t and $@ before redirecting to the former.
29090         * modules/alloca-opt: Likewise.
29091         * modules/byteswap: Likewise.
29092         * modules/fnmatch: Likewise.
29093         * modules/getopt-posix: Likewise.
29094         * modules/glob: Likewise.
29095         * modules/poll: Likewise.
29096         * modules/posix_spawnp-tests: Likewise.
29097         * modules/sys_socket: Likewise.
29098         * modules/sysexits: Likewise.
29099
29100 2009-08-21  Eric Blake  <ebb9@byu.net>
29101
29102         popen: simplify access to original popen
29103         * lib/popen.c (rpl_popen): No need to worry about popen being a
29104         macro.
29105         Reported by Bruno Haible.
29106
29107 2009-08-20  Eric Blake  <ebb9@byu.net>
29108
29109         build: avoid some compiler warnings
29110         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
29111         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
29112         type.
29113         (new_exclude_segment, excluded_file_pattern_p)
29114         (excluded_file_name_p): Reduce scope.
29115         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
29116         old-style declaration.
29117
29118 2009-08-20  Simon Josefsson  <simon@josefsson.org>
29119
29120         * tests/test-exclude1.sh: Handle Windows EOL.
29121         * tests/test-exclude2.sh: Likewise.
29122         * tests/test-exclude3.sh: Likewise.
29123         * tests/test-exclude4.sh: Likewise.
29124         * tests/test-exclude5.sh: Likewise.
29125         * tests/test-exclude6.sh: Likewise.
29126         * tests/test-exclude7.sh: Likewise.
29127
29128 2009-08-19  Akim Demaille  <demaille@gostai.com>
29129
29130         bootstrap: find sha1sum when named gsha1sum.
29131         * bootstrap (find_tool): New.
29132         ($SHA1SUM): New.
29133         Use it.
29134
29135 2009-08-20  Jim Meyering  <meyering@redhat.com>
29136
29137         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
29138         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
29139         expression that converts "." in a file name to "\." in the resulting
29140         regexp.  Start with a dummy statement, so that prior shell variable
29141         definitions are expanded portably.  Reported by Simon Josefsson.
29142
29143 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
29144
29145         Fix polling for writeability of a screen buffer.
29146         * lib/poll.c: Distinguish input and screen buffers for the
29147         Win32 implementation.
29148         * lib/select.c: Likewise.
29149
29150 2009-08-19  Eric Blake  <ebb9@byu.net>
29151
29152         popen-safer: prevent popen from clobbering std descriptors
29153         * modules/popen-safer: New file.
29154         * lib/popen-safer.c: Likewise.
29155         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
29156         * lib/stdio--.h (popen): Provide override.
29157         * lib/stdio-safer.h (popen_safer): Provide declaration.
29158         * tests/test-popen.c (includes): Partially test this.
29159         * modules/popen-safer-tests: New file, for more tests.
29160         * tests/test-popen-safer.c: Likewise.
29161         * MODULES.html.sh (file stream based Input/Output): Mention it.
29162
29163         tests: test some of the *-safer modules
29164         * modules/fopen-safer (Depends-on): Add fopen.
29165         * modules/fcntl-safer (Depends-on): Add fcntl.
29166         * modules/stdlib-safer (Depends-on): Add stdlib.
29167         (configure.ac): Set indicator.
29168         * modules/unistd-safer (configure.ac): Likewise.
29169         * modules/tmpfile-safer (configure.ac): Likewise.
29170         (Depends-on): Add tmpfile.
29171         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
29172         active.
29173         * tests/test-fopen.c (includes): Test safer versions when they are
29174         in use.
29175         * tests/test-open.c (includes): Likewise.
29176
29177         popen: fix cygwin 1.5 bug when stdin closed
29178         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
29179         * modules/popen: New file.
29180         * modules/popen-tests: Likewise.
29181         * tests/test-popen.c: Likewise.
29182         * m4/popen.m4: Likewise.
29183         * lib/popen.c: Likewise.
29184         * lib/stdio.in.h (popen): New declaration.
29185         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
29186         * modules/stdio (Makefile.am): Likewise.
29187         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
29188
29189 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
29190
29191         maint.mk: give full control over update-copyright exclusions
29192         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
29193         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
29194         (update-copyright): Don't force inclusion of top-level
29195         ChangeLog.  Don't force exclusion of all COPYING files, but make
29196         them the default exclusion instead.
29197
29198 2009-08-16  Bruno Haible  <bruno@clisp.org>
29199
29200         Fix test failures on Solaris 10.
29201         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
29202         tests when Solaris iconv() is used.
29203         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
29204         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
29205         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
29206         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
29207         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
29208
29209 2009-08-16  Bruno Haible  <bruno@clisp.org>
29210
29211         Fix test failures on Solaris 10.
29212         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
29213         'tr' program and pass it as first argument.
29214         * tests/test-pipe-filter-gi1.sh: Likewise.
29215         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
29216         program as first argument.
29217         * tests/test-pipe-filter-gi1.c (main): Likewise.
29218
29219 2009-08-16  Eric Blake  <ebb9@byu.net>
29220
29221         fpurge: fix previous commits
29222         * modules/fpurge (Makefile.am): Make replacement conditional,
29223         partially reverting 2007-04-29 change; missed in previous
29224         attempt.
29225         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
29226         is missing.
29227
29228 2009-08-16  Bruno Haible  <bruno@clisp.org>
29229
29230         Clarify fpurge's effect on the file position.
29231         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
29232         * tests/test-fpurge.c (main): Make a second pass for checking the file
29233         position.
29234
29235 2009-08-16  Bruno Haible  <bruno@clisp.org>
29236
29237         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
29238         declaration of fpurge is missing.
29239         * tests/test-fpurge.c (main): Check that the file has not more contents
29240         than expected. Close the file before removing it.
29241
29242 2009-08-15  Eric Blake  <ebb9@byu.net>
29243
29244         fpurge: don't wrap working cygwin implementation
29245         * lib/fpurge.c (fpurge): Fix comment typo.
29246         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
29247         1.7 to avoid replacement.
29248         * tests/test-fpurge.c (main): Enhance test.
29249
29250 2009-08-15  Eric Blake  <ebb9@byu.net>
29251         and Jim Meyering  <meyering@redhat.com>
29252
29253         test-update-copyright: skip if perl is insufficient
29254         * tests/test-update-copyright.sh: Failure to run maintainer tool
29255         should not cause testsuite failure on cygwin 1.5.
29256
29257 2009-08-14  Eric Blake  <ebb9@byu.net>
29258
29259         doc: mention more functions added in cygwin 1.7.0
29260         * doc/posix-headers/limits.texi (limits.h): Update for recent
29261         cygwin additions.
29262         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
29263         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
29264         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
29265         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
29266         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
29267
29268 2009-08-14  Eric Blake  <ebb9@byu.net>
29269
29270         maint.mk: simplify update-copyright rule
29271         * top/maint.mk (update-copyright-local): Delete, and document how
29272         to do it in cfg.mk instead.
29273         (update-copyright-exclude-regexp): Delete, and document how to do
29274         it in .x-update-copyright instead.
29275         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
29276         exclude ChangeLog.
29277
29278 2009-08-14  Bruno Haible  <bruno@clisp.org>
29279
29280         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
29281
29282 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29283
29284         maint.mk: support update-copyright-env
29285         * top/maint.mk (update-copyright-env): Define place-holder.
29286         (update-copyright): Expand $(update-copyright-env) before
29287         invoking update-copyright.
29288
29289 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29290
29291         update-copyright: implement forced reformatting
29292         * build-aux/update-copyright: Implement and document
29293         UPDATE_COPYRIGHT_FORCE.
29294         * tests/test-update-copyright.sh: Test it.
29295
29296 2009-08-14  Eric Blake  <ebb9@byu.net>
29297         and Bruno Haible  <bruno@clisp.org>
29298
29299         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
29300         * tests/test-locale.c: Revert previous patch related to NULL.
29301         * tests/test-stdio.c: Likewise.
29302         * tests/test-stdlib.c: Likewise.
29303         * tests/test-string.c: Likewise.
29304         * tests/test-unistd.c: Likewise.
29305         * modules/time-tests (Depends-on): Add verify.
29306         * modules/wchar-tests (Depends-on): Likewise.
29307         * tests/test-time.c: Test for NULL compliance.
29308         * tests/test-wchar.c: Likewise.
29309         * modules/locale (Depends-on): Add stddef.
29310         * modules/stdio (Depends-on): Likewise.
29311         * modules/stdlib (Depends-on): Likewise.
29312         * modules/string (Depends-on): Likewise.
29313         * modules/time (Depends-on): Likewise.
29314         * modules/unistd (Depends-on): Likewise.
29315         * modules/wchar (Depends-on): Likewise.
29316         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
29317         * lib/stdlib.in.h (includes): Likewise.
29318         * lib/string.in.h (includes): Likewise.
29319         * lib/time.in.h (includes): Likewise.
29320         * lib/unistd.in.h (includes): Likewise.
29321         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
29322         replaced.
29323         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29324         * m4/stddef_h.m4: New file.
29325         * modules/stddef: Likewise.
29326         * lib/stddef.in.h: Likewise.
29327         * modules/stddef-tests: Likewise.
29328         * tests/test-stddef.c: Likewise.
29329         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
29330         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
29331         * doc/posix-headers/locale.texi (locale.h): Likewise.
29332         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
29333         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29334         * doc/posix-headers/string.texi (string.h): Likewise.
29335         * doc/posix-headers/time.texi (time.h): Likewise.
29336         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
29337         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
29338
29339 2009-08-14  Eric Blake  <ebb9@byu.net>
29340
29341         doc: improve git diff of texinfo files
29342         * .gitattributes: Add rule for *.texi files, with hint on how to
29343         use it.
29344         Copied from m4, and based on a report by Bruno Haible.
29345
29346 2009-08-14  Bruno Haible  <bruno@clisp.org>
29347
29348         Disable multithread support by default on Cygwin 1.5.x for real.
29349         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
29350
29351 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29352
29353         update-copyright: much ado about intervals
29354         * build-aux/update-copyright: Implement and document
29355         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
29356         of copyright year intervals.
29357         Also, document UPDATE_COPYRIGHT_YEAR.
29358         * tests/test-update-copyright.sh: Test it.
29359
29360         update-copyright: convert 2-digit to 4-digit years
29361         * build-aux/update-copyright: Implement and document.
29362         * tests/test-update-copyright.sh: Update.
29363
29364 2009-08-14  Jim Meyering  <meyering@redhat.com>
29365
29366         test-exclude: avoid coreutils "make check" failure
29367         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
29368         just as in test-argmatch.c.
29369
29370 2009-08-13  Eric Blake  <ebb9@byu.net>
29371
29372         test-dup2: fix bad assumption
29373         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
29374         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
29375
29376         test-version-etc: fix CRLF portability issue
29377         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
29378         recognize \r.
29379         * tests/test-argp-version-etc-1.sh: Likewise.
29380
29381         getopt: update client modules
29382         * modules/argp (Depends-on): Use getopt-gnu.
29383         * modules/git-merge-changelog (Depends-on): Likewise.
29384         * modules/long-options (Depends-on): Likewise.
29385         * modules/xstrtol (Depends-on): Likewise.
29386
29387 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29388
29389         * tests/test-version-etc.sh: Don't fail on different
29390         project/version.  Don't fail on CRLF differences.  Rewrite to use
29391         multiple -e instead of multiple sed forks, suggested by Eric Blake
29392         <ebb9@byu.net>.
29393         * tests/test-argp-version-etc-1.sh: Likewise.
29394
29395 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29396
29397         * tests/test-version-etc.sh: Don't fail on different
29398         project/version.
29399
29400 2009-08-12  Bruno Haible  <bruno@clisp.org>
29401
29402         Tests for modules 'getopt-posix', 'getopt-gnu'.
29403         * modules/getopt-posix-tests: New file.
29404         * tests/test-getopt.c: New file.
29405         * tests/test-getopt.h: New file.
29406         * tests/test-getopt_long.h: New file.
29407
29408         New modules 'getopt-posix', 'getopt-gnu'.
29409         * modules/getopt-gnu: New file, renamed from modules/getopt.
29410         * modules/getopt-posix: New file.
29411         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
29412         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
29413         (gl_GETOPT): Remove macro.
29414         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
29415         Disable the test against BSD systems that declare optreset. Test
29416         against mingw bug. Test against lack of support of optional arguments
29417         on many platforms.
29418         * doc/glibc-headers/getopt.texi: Update module name and list of
29419         relevant platforms.
29420         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
29421         'getopt-gnu' and more portability problems.
29422         * NEWS: Mention the changes.
29423
29424 2009-08-12  Bruno Haible  <bruno@clisp.org>
29425
29426         Ensure that optarg etc. get declared by <unistd.h>.
29427         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
29428         AC_USE_SYSTEM_EXTENSIONS.
29429         * modules/getopt (Depends-on): Add 'extensions'.
29430
29431 2009-08-12  Bruno Haible  <bruno@clisp.org>
29432
29433         Avoid test link errors.
29434         * modules/pipe-filter-ii-tests (Makefile.am): Define
29435         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
29436         * modules/pipe-filter-gi-tests (Makefile.am): Define
29437         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
29438         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29439
29440 2009-08-12  Bruno Haible  <bruno@clisp.org>
29441
29442         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
29443         gl_GETOPT_SUBSTITUTE before.
29444         (gl_GETOPT): Use it.
29445         * m4/argp.m4 (gl_ARGP): Update.
29446         Reported by Sergey Poznyakoff.
29447
29448         * m4/getopt.m4: Reorder macros.
29449         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
29450         (gl_GETOPT_SUBSTITUTE): Remove macro.
29451
29452 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29453
29454         Minor improvement in gitlog-to-changelog
29455
29456         * build-aux/gitlog-to-changelog: New option `--format' makes
29457         output format string configurable.
29458
29459 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29460
29461         Optimize exclude: use hash tables for non-wildcard patterns.
29462
29463         * lib/exclude.c: Include hash.h and mbuiter.h
29464         (struct exclude_pattern, exclude_segment): New data types.
29465         (struct exclude): Rewrite.
29466         (fnmatch_pattern_has_wildcards): New function.
29467         (new_exclude_segment, free_exclude_segment): New functions.
29468         (excluded_file_pattern_p, excluded_file_name_p): New functions.
29469         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
29470         * lib/exclude.h (is_fnmatch_pattern): New prototype.
29471         * modules/exclude: Depend on hash and mbuiter.
29472
29473         * modules/exclude-tests: New file.
29474         * tests/test-exclude.c: New file.
29475         * tests/test-exclude1.sh: New file.
29476         * tests/test-exclude2.sh: New file.
29477         * tests/test-exclude3.sh: New file.
29478         * tests/test-exclude4.sh: New file.
29479         * tests/test-exclude5.sh: New file.
29480         * tests/test-exclude6.sh: New file.
29481         * tests/test-exclude7.sh: New file.
29482
29483 2009-08-12  Bruno Haible  <bruno@clisp.org>
29484
29485         Ensure that getopt() gets declared by <unistd.h>.
29486         * lib/unistd.in.h: Conditionally include getopt.h.
29487         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
29488         Set GNULIB_UNISTD_H_GETOPT.
29489         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29490         GNULIB_UNISTD_H_GETOPT.
29491         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
29492
29493 2009-08-12  Bruno Haible  <bruno@clisp.org>
29494
29495         Clarify logic.
29496         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
29497         gl_replace_getopt instead of GETOPT_H.
29498
29499 2009-08-12  Bruno Haible  <bruno@clisp.org>
29500
29501         * m4/getopt.m4: Add comments.
29502
29503 2009-08-12  Bruno Haible  <bruno@clisp.org>
29504
29505         Disable multithread support by default on Cygwin 1.5.x.
29506         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
29507         set gl_use_threads=no if not specified otherwise.
29508
29509 2009-08-11  Bruno Haible  <bruno@clisp.org>
29510
29511         Avoid compilation error on NetBSD 5.0.
29512         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
29513         * tests/test-stdio.c: Likewise.
29514         * tests/test-stdlib.c: Likewise.
29515         * tests/test-string.c: Likewise.
29516         * tests/test-unistd.c: Likewise.
29517         Reported by Greg Troxel <gdt@ir.bbn.com>
29518         at <https://savannah.gnu.org/support/?106973>.
29519
29520 2009-08-11  Bruno Haible  <bruno@clisp.org>
29521
29522         * modules/dup2-tests (Depends-on): Remove close.
29523
29524         Undo 2009-07-19 commit.
29525         * modules/acl-tests (Depends-on): Remove close.
29526         * modules/binary-io-tests (Depends-on): Likewise.
29527         * modules/closein-tests (Depends-on): Likewise.
29528         * modules/flock-tests (Depends-on): Likewise.
29529         * modules/fsync-tests (Depends-on): Likewise.
29530         * modules/lseek-tests (Depends-on): Likewise.
29531         * modules/pipe-tests (Depends-on): Likewise.
29532         * modules/posix_spawn-tests (Depends-on): Likewise.
29533         * modules/posix_spawnp-tests (Depends-on): Likewise.
29534         * modules/stat-time-tests (Depends-on): Likewise.
29535         * modules/yesno-tests (Depends-on): Likewise.
29536
29537 2009-08-10  Bruno Haible  <bruno@clisp.org>
29538
29539         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
29540
29541 2009-08-10  Bruno Haible  <bruno@clisp.org>
29542
29543         Fix a gcc warning.
29544         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
29545
29546 2009-08-10  Bruno Haible  <bruno@clisp.org>
29547
29548         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
29549         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
29550         not only the first time.
29551         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
29552         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
29553         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
29554         is 1, not only the the first time.
29555
29556 2009-08-10  Bruno Haible  <bruno@clisp.org>
29557
29558         Make it possible to use module 'gethostname' without module 'close'.
29559         * lib/unistd.in.h (close): Evoke a link error only if
29560         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
29561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29562         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29563         * modules/unistd (Makefile.am): Substitute
29564         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29565         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
29566         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
29567         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
29568         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29569         * modules/sys_ioctl (Makefile.am): Substitute
29570         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29571         * modules/socket (configure.ac): On native Windows, set
29572         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
29573         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29574         Reported by Sam Steingold <sds@gnu.org>.
29575
29576 2009-08-10  Bruno Haible  <bruno@clisp.org>
29577
29578         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
29579         * modules/ioctl (configure.ac): Likewise.
29580
29581 2009-08-10  Bruno Haible  <bruno@clisp.org>
29582
29583         Avoid collision between gnulib wrapper and libintl wrapper.
29584         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
29585         already defined in intl/printf.c.
29586         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
29587         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
29588
29589 2009-08-09  Bruno Haible  <bruno@clisp.org>
29590
29591         Make <sys/select.h> really self-contained, also on Solaris 10.
29592         * lib/sys_select.in.h: Include <string.h>.
29593         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
29594         Solaris 10 problem.
29595         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
29596         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
29597         Reported by Jim Meyering.
29598
29599 2009-08-09  Bruno Haible  <bruno@clisp.org>
29600
29601         Avoid warnings from 'aclocal' that are due to a use of macro name
29602         AM_XGETTEXT_OPTION that is not defined in automake.
29603         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
29604         automake.
29605         * modules/error (configure.ac): Likewise.
29606         * modules/propername (configure.ac): Likewise.
29607         * modules/vasprintf (configure.ac): Likewise.
29608         * modules/verror (configure.ac): Likewise.
29609         * modules/xprintf (configure.ac): Likewise.
29610         * modules/xvasprintf (configure.ac): Likewise.
29611
29612 2009-08-08  Bruno Haible  <bruno@clisp.org>
29613
29614         Avoid compilation error in C++ mode.
29615         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
29616         Reported by Sam Steingold <sds@gnu.org>.
29617
29618 2009-08-08  Bruno Haible  <bruno@clisp.org>
29619
29620         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
29621         for the various Unix platforms.
29622         * doc/posix-headers/limits.texi: Update platforms list regarding
29623         HOST_NAME_MAX.
29624         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29625
29626 2009-08-07  Jim Meyering  <meyering@redhat.com>
29627
29628         selinux-at: fix typo in a comment
29629         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
29630         Spotted by Paolo Bonzini.
29631
29632         selinux-at: remove redundant m4 code, add documentation
29633         * modules/selinux-at (configure.ac): Remove redundant code.
29634         LIB_SELINUX is already set via the dependent module, selinux-h.
29635         (Include): Add quotes around selinux-at.h.
29636         * lib/selinux-at.h: Add documentation.
29637         Reported by Bruno Haible in
29638         http://marc.info/?l=gnulib-bug&m=124958988300749
29639
29640 2009-08-07  Bruno Haible  <bruno@clisp.org>
29641
29642         Avoid link error on MacOS X 10.3 and 10.4.
29643         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
29644         on non-ELF systems.
29645         * lib/argp-pv.c (argp_program_version): Likewise.
29646         Reported by Simon Josefsson.
29647
29648 2009-08-07  Simon Josefsson  <simon@josefsson.org>
29649
29650         * tests/test-version-etc.sh: Use $EXEEXT.
29651
29652 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
29653
29654         update-copyright: update documentation to point to maint.mk
29655         * build-aux/update-copyright: Here.
29656
29657 2009-08-06  Jim Meyering  <meyering@redhat.com>
29658
29659         maint.mk: support update-copyright-local
29660         * top/maint.mk (update-copyright-local): Define place-holder.
29661         (update-copyright): Depend on $(update-copyright-local).
29662
29663 2009-08-06  Jim Meyering  <meyering@redhat.com>
29664
29665         selinux-at: new module
29666         Initially written for coreutils, this module will soon be
29667         used by findutils, too.
29668         * MODULES.html.sh [Misc]: Add selinux-at.
29669         * lib/selinux-at.h: New file, from coreutils.
29670         * lib/selinux-at.c: Likewise.
29671         * modules/selinux-at: Likewise.
29672         (License): Change from LGPL to GPL, since it depends
29673         on the GPL'd openat module.
29674
29675         doc: update README
29676         * README: Remove references to cogito.
29677         Remove cvs-repo-updating instructions from 2007.
29678         Don't imply that CVS is better if you have limited disk space.
29679
29680 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29681
29682         update-copyright: support C-style comments
29683         * build-aux/update-copyright: Implement and document.
29684         * tests/test-update-copyright.sh: Test.
29685
29686 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29687
29688         update-copyright: support omitted "(C)"
29689         * build-aux/update-copyright: Implement and document.  Also,
29690         allow variable whitespace before "(C)".
29691         * tests/test-update-copyright.sh: Test.
29692
29693 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29694
29695         update-copyright: don't trip on non-FSF copyright statements
29696         * build-aux/update-copyright: Fix so that the first correctly
29697         formatted FSF copyright statement is recognized no matter what
29698         appears before it.  Update documentation.
29699         * tests/test-update-copyright.sh: Test that.
29700
29701 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29702
29703         update-copyright: clean up code a little
29704         * build-aux/update-copyright: Append "_re" to the name of any
29705         variable holding a regular expression.
29706         Replace "old" and "new" with "stmt" in variable names.
29707         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
29708         handled correctly.
29709         Format code more consistently.
29710
29711 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29712
29713         update-copyright-tests: improve portability
29714         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
29715         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
29716
29717 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
29718
29719         update-copyright: support @copyright{} and &copy;
29720         * build-aux/update-copyright: Implement and document.
29721         * tests/test-update-copyright.sh: Test.
29722
29723 2009-08-04  Jim Meyering  <meyering@redhat.com>
29724
29725         update-copyright-tests: correctly test EOL=\r\n handling
29726         * tests/test-update-copyright.sh: Put \r at the end of some lines
29727         for the dos-eol tests.  Based on a patch by Joel E. Denny.
29728
29729         maint.mk: make update-copyright exclusion list more configurable
29730         * top/maint.mk (update-copyright): Default to excluding COPYING,
29731         but allow an override, in case someone does want to update that file.
29732
29733         maint.mk: don't update copyright date in COPYING
29734         * top/maint.mk (update-copyright): Exclude COPYING.
29735
29736         maint.mk: add a copyright-updating rule
29737         * top/maint.mk (update-copyright): New rule.
29738         Derived from coreutils/Makefile.am.
29739
29740         update-copyright: rename some variables
29741         * build-aux/update-copyright: Rename a few variables for clarity.
29742         Tweak syntax.  List Joel E. Denny as coauthor.
29743
29744 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
29745
29746         update-copyright: fix bug for 2-digit last year and add tests
29747         * build-aux/update-copyright: Fix bug.
29748         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
29749         specified.
29750         * modules/update-copyright-tests: New
29751         * tests/test-update-copyright.sh: New.
29752
29753 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29754
29755         update-copyright: handle leading tabs in line prefix
29756         * build-aux/update-copyright: Count leading tabs as 8 spaces
29757         when computing margin.  This helps with the formatting of
29758         ChangeLogs, for example.
29759         Fix documentation a little.
29760
29761 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29762
29763         update-copyright: support EOL=\r\n
29764         * build-aux/update-copyright: Implement that.
29765
29766 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29767
29768         update-copyright: automatically format copyright statements
29769         * build-aux/update-copyright: Implement that.
29770         Also, be a little more predictable and safer by always failing
29771         when the full copyright format is not perfectly recognized as an
29772         unbroken whole.  Discussed at
29773         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
29774         Rewrite documentation.
29775
29776 2009-08-03  Bruno Haible  <bruno@clisp.org>
29777
29778         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
29779
29780 2009-08-02  Bruno Haible  <bruno@clisp.org>
29781
29782         Tests for module 'uname'.
29783         * modules/uname-tests: New file.
29784         * tests/test-uname.c: New file.
29785
29786         New module 'uname'.
29787         * lib/uname.c: New file.
29788         * m4/uname.m4: New file.
29789         * modules/uname: New file.
29790         * doc/posix-functions/uname.texi: Mention the new module.
29791
29792 2009-08-02  Bruno Haible  <bruno@clisp.org>
29793
29794         Tests for module 'sys_utsname'.
29795         * modules/sys_utsname-tests: New file.
29796         * tests/test-sys_utsname.c: New file.
29797
29798         New module 'sys_utsname'.
29799         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
29800         * m4/sys_utsname_h.m4: New file.
29801         * modules/sys_utsname: New file.
29802         * doc/posix-headers/sys_utsname.texi: Mention the new module.
29803
29804 2009-08-02  Bruno Haible  <bruno@clisp.org>
29805
29806         Implicitly initialize the sockets library.
29807         * lib/gethostname.c: Include sockets.h.
29808         (rpl_gethostname): Invoke gl_sockets_startup.
29809         * lib/socket.c: Include sockets.h.
29810         (rpl_socket): Invoke gl_sockets_startup.
29811         * modules/gethostname (Depends-on): Add sockets.
29812         * modules/socket (Depends-on): Likewise.
29813         * tests/test-poll.c: Don't include sockets.h.
29814         (main): Don't invoke gl_sockets_startup.
29815         * tests/test-select.c: Don't include sockets.h.
29816         (main): Don't invoke gl_sockets_startup.
29817
29818 2009-08-02  Bruno Haible  <bruno@clisp.org>
29819
29820         Allow multiple calls to gl_sockets_startup.
29821         * lib/sockets.c (initialized_sockets_version): New variable.
29822         (gl_sockets_startup): Do nothing if already called for this or a higher
29823         version.
29824         (gl_sockets_cleanup): Reset initialized_sockets_version.
29825
29826 2009-08-03  Simon Josefsson  <simon@josefsson.org>
29827
29828         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
29829         different project/version.
29830
29831 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
29832             Bruno Haible  <bruno@clisp.org>
29833
29834         Tests for module 'pipe-filter-gi'.
29835         * modules/pipe-filter-gi-tests: New file.
29836         * tests/test-pipe-filter-gi1.sh: New file.
29837         * tests/test-pipe-filter-gi1.c: New file.
29838         * tests/test-pipe-filter-gi2.sh: New file.
29839         * tests/test-pipe-filter-gi2-main.c: New file.
29840         * tests/test-pipe-filter-gi2-child.c: New file.
29841
29842         New module 'pipe-filter-gi'.
29843         * lib/pipe-filter-gi.c: New file.
29844         * modules/pipe-filter-gi: New file.
29845
29846 2009-08-02  Bruno Haible  <bruno@clisp.org>
29847             Paolo Bonzini  <bonzini@gnu.org>
29848
29849         Tests for module 'pipe-filter-ii'.
29850         * modules/pipe-filter-ii-tests: New file.
29851         * tests/test-pipe-filter-ii1.sh: New file.
29852         * tests/test-pipe-filter-ii1.c: New file.
29853         * tests/test-pipe-filter-ii2.sh: New file.
29854         * tests/test-pipe-filter-ii2-main.c: New file.
29855         * tests/test-pipe-filter-ii2-child.c: New file.
29856
29857         New module 'pipe-filter-ii'.
29858         * lib/pipe-filter.h: New file.
29859         * lib/pipe-filter-ii.c: New file.
29860         * lib/pipe-filter-aux.h: New file.
29861         * modules/pipe-filter-ii: New file.
29862
29863 2009-08-02  Simon Josefsson  <simon@josefsson.org>
29864
29865         * lib/gc-libgcrypt.c: Change copyright to FSF.
29866         * lib/gc-gnulib.c: Likewise.
29867
29868 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
29869
29870         * lib/gethostname.c: Include limits.h.
29871
29872 2009-08-02  Simon Josefsson  <simon@josefsson.org>
29873             Bruno Haible  <bruno@clisp.org>
29874
29875         Ensure HOST_NAME_MAX as part of the gethostname module.
29876         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
29877         define also HOST_NAME_MAX.
29878         * tests/test-gethostname.c: Include <limits.h>.
29879         (main): Check also HOST_NAME_MAX.
29880         * doc/posix-headers/limits.texi: Document the mingw problem.
29881
29882 2009-08-02  Bruno Haible  <bruno@clisp.org>
29883
29884         * lib/gethostname.c (gethostname): Fix handling of large len argument.
29885         Add comments.
29886
29887 2009-03-31  Simon Josefsson  <simon@josefsson.org>
29888
29889         * lib/gethostname.c: Add Windows wrapper.
29890         * m4/gethostname.m4: Look for gethostname in -lws2_32.
29891         * modules/gethostname: Depend on sys_socket & errno, for also
29892         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
29893         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
29894
29895 2009-07-31  Jim Meyering  <meyering@redhat.com>
29896
29897         getloadavg: fix symbol name in comment
29898         * lib/getloadavg.c: Correct a typo I introduced when adding
29899         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
29900         Matt Kraai spotted the problem.
29901
29902 2009-07-29  Matt Kraai  <mkraai@beckman.com>
29903
29904         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
29905         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
29906         code also if ! defined N_NAME_POINTER.
29907         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
29908         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
29909         but the n_name member is a 12-byte array.
29910
29911 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
29912
29913         update-copyright: generalize comment handling
29914         * build-aux/update-copyright: Handle copyright statements
29915         within more comment styles.
29916         Document usage.
29917         Report any file with an external copyright holder or parse failure.
29918
29919 2009-07-29  Jim Meyering  <meyering@redhat.com>
29920
29921         mktime: correct setting of REPLACE_MKTIME
29922         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
29923
29924         update-copyright: new module
29925         * modules/update-copyright: New file.
29926         * build-aux/update-copyright: New file.
29927         * MODULES.html.sh (maint+release support): Add update-copyright.
29928
29929 2009-07-27  Bruno Haible  <bruno@clisp.org>
29930
29931         Fix compilation error when <ctime> is used and mktime is replaced.
29932         * lib/time.in.h (mktime): New declaration.
29933         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
29934         REPLACE_MKTIME instead of defining mktime in config.h.
29935         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
29936         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
29937         Reported by Ross McFarland <rwmcfa1@neces.com>.
29938
29939 2009-07-27  Bruno Haible  <bruno@clisp.org>
29940
29941         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
29942         Reported by Matt Kraai <mkraai@beckman.com>.
29943
29944 2009-07-25  Jim Meyering  <meyering@redhat.com>
29945
29946         maint.mk: avoid warnings about missing files
29947         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
29948         diagnostic when .prev-version does not exist.
29949         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
29950         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
29951         nonexistent cfg.mk.
29952         Suggestions from Simon Josefsson.
29953
29954 2009-07-25  Bruno Haible  <bruno@clisp.org>
29955
29956         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
29957         defined as macros. Needed on QNX 6.4.1.
29958         Reported by Matt Kraai <mkraai@beckman.com>.
29959
29960 2009-07-23  Jim Meyering  <meyering@redhat.com>
29961
29962         maint.mk: invoke "make dist" with a working value of XZ_OPT
29963         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
29964
29965 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
29966
29967         Make fseeko.c compile on QNX.
29968         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
29969
29970 2009-07-22  Peter Simons  <simons@cryp.to>
29971
29972         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
29973         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
29974         * lib/md4.h: Likewise.
29975         * lib/md5.h: Likewise.
29976         * lib/sha1.h: Likewise.
29977         * lib/sha256.h: Likewise.
29978         * lib/sha512.h: Likewise.
29979
29980         tests-sha1: don't assign literal string to 'char *' variable
29981         * tests/test-sha1.c (main): Declare locals with "const" to match
29982         attributes of the right hand side.
29983
29984 2009-07-21  Eric Blake  <ebb9@byu.net>
29985
29986         dup2: fix more mingw problems
29987         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
29988         fd to itself.
29989         * doc/posix-functions/dup2.texi (dup2): Document the bug.
29990         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
29991         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
29992         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
29993         care of mingw bugs.
29994
29995 2009-07-21  Jim Meyering  <meyering@redhat.com>
29996
29997         vc-list-files: avoid failure when /bin/sh is dash
29998         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
29999         On some Debian based systems, /bin/sh is a symlink to dash, and running
30000         this command would omit the "/" following each 'tests' prefix:
30001           dash -x build-aux/vc-list-files -C . tests
30002         That is because bash and dash work differently:
30003           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
30004           bash ok
30005           dash odd
30006
30007 2009-07-21  Eric Blake  <ebb9@byu.net>
30008
30009         dup2-tests: test previous patch
30010         * modules/dup2-tests: New file.
30011         * tests/test-dup2.c: Likewise.
30012         * tests/test-open.c (main): Avoid unspecified behavior.
30013         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
30014         test.
30015
30016         dup2: work around mingw and cygwin 1.5 bug
30017         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
30018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30019         * modules/unistd (Makefile.am): Substitute it.
30020         * lib/unistd.in.h (dup2): Declare the replacement.
30021         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
30022         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
30023         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
30024         * modules/execute (Depends-on): Add dup2.
30025         * modules/fseterr (Depends-on): Likewise.
30026         * modules/pipe (Depends-on): Likewise.
30027         * modules/posix_spawn-internal (Depends-on): Likewise.
30028
30029 2009-07-21  Bruno Haible  <bruno@clisp.org>
30030
30031         * modules/.gitattributes: New file.
30032
30033 2009-07-20  Bruno Haible  <bruno@clisp.org>
30034
30035         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
30036         (main): Use it.
30037
30038 2009-07-20  Eric Blake  <ebb9@byu.net>
30039
30040         test-pipe: make a bit more robust.
30041         * tests/test-pipe.c (myerr): Allow error messages regardless of
30042         what we do to stderr.
30043         (test_pipe): Rearrange to avoid deadlock.
30044         (child_main): Try a larger read, to ensure we avoided deadlock.
30045         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
30046         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
30047         if misused.
30048
30049 2009-07-19  Jim Meyering  <meyering@redhat.com>
30050
30051         fts: avoid false-positive cycle-detection
30052         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
30053         for each new command line argument.
30054
30055 2009-07-19  Bruno Haible  <bruno@clisp.org>
30056
30057         Fix build error on mingw with the modules sys_select and unistd.
30058         * modules/acl-tests (Depends-on): Add close.
30059         * modules/binary-io-tests (Depends-on): Likewise.
30060         * modules/closein-tests (Depends-on): Likewise.
30061         * modules/flock-tests (Depends-on): Likewise.
30062         * modules/fsync-tests (Depends-on): Likewise.
30063         * modules/lseek-tests (Depends-on): Likewise.
30064         * modules/pipe-tests (Depends-on): Likewise.
30065         * modules/posix_spawn-tests (Depends-on): Likewise.
30066         * modules/posix_spawnp-tests (Depends-on): Likewise.
30067         * modules/stat-time-tests (Depends-on): Likewise.
30068         * modules/yesno-tests (Depends-on): Likewise.
30069
30070 2009-07-19  Bruno Haible  <bruno@clisp.org>
30071
30072         Unify conditionals.
30073         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
30074         macros, not at the compiler macros.
30075         * lib/pipe.c: Likewise.
30076         * lib/execute.c: Likewise.
30077         * lib/spawni.c: Likewise.
30078
30079 2009-07-19  Bruno Haible  <bruno@clisp.org>
30080
30081         Fix handling of closed stdin/stdout/stderr on mingw.
30082         * lib/w32spawn.h: Include unistd.h.
30083         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
30084         file descriptor with O_NOINHERIT flag.
30085         (fd_safer_noinherit): New function, based on fd-safer.c.
30086         (dup_safer_noinherit): New function, based on dup-safer.c.
30087         (undup_safer_noinherit): New function.
30088         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
30089         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
30090         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
30091         instead of fd_safer.
30092         * tests/test-pipe.c: Include <windows.h>.
30093         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
30094         result.
30095
30096         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
30097         from main.
30098         (test_pipe): Pass an extra argument for disambiguation.
30099         (main): Invoke parent_main or child_main.
30100
30101         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
30102         consistently.
30103
30104 2009-07-18  Eric Blake  <ebb9@byu.net>
30105
30106         test-pipe: fix mingw build
30107         * tests/test-pipe.c (main): Avoid fcntl on mingw.
30108
30109 2009-07-18  Bruno Haible  <bruno@clisp.org>
30110
30111         * modules/pipe-tests (Makefile.am): Fix typo.
30112
30113 2009-07-18  Eric Blake  <ebb9@byu.net>
30114
30115         error: fix mingw build
30116         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
30117         Reported by Bruno Haible.
30118
30119         error: avoid undefined use of stdout
30120         * lib/error.c (error, error_at_line): Check that fd 1 is open
30121         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
30122         is handling faults and the close_stdout module wants to report the
30123         detection of closed stdout as an error.
30124
30125 2009-07-17  Eric Blake  <ebb9@byu.net>
30126
30127         pipe: be robust in face of closed fds
30128         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
30129         should cause child to misbehave.
30130         * modules/pipe-tests: New module.
30131         * tests/test-pipe.c: New file.
30132         * tests/test-pipe.sh: New file.
30133         Reported by Akim Demaille.
30134
30135 2009-07-14  Bruno Haible  <bruno@clisp.org>
30136
30137         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
30138         Reported by anonymous kc.
30139
30140 2009-07-07  Jim Meyering  <meyering@redhat.com>
30141
30142         maint.mk: don't look for translatable strings in *.m4 or *.mk
30143         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
30144         when searching for translatable strings.
30145
30146 2009-07-05  Jim Meyering  <meyering@redhat.com>
30147
30148         remove superfluous parentheses in STREQ definition
30149         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
30150         * lib/getugroups.c (STREQ): Likewise.
30151         * lib/fnmatch.c (STREQ): Likewise.
30152         Spotted by Bruno Haible.
30153
30154 2009-07-04  Jim Meyering  <meyering@redhat.com>
30155
30156         argv-iter: new module
30157         * MODULES.html.sh: Add argv-iter.
30158         * lib/argv-iter.c, lib/argv-iter.h: New files.
30159         * modules/argv-iter: New file.
30160         * modules/argv-iter-tests: New file.
30161         * tests/test-argv-iter.c: Test it.
30162
30163 2009-07-04  Bruno Haible  <bruno@clisp.org>
30164
30165         Fix assertion.
30166         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
30167         contains more exact copies of a given entry than file2, leave the extra
30168         copies unpaired rather than aborting.
30169         Reported by Eric Blake.
30170
30171 2009-07-02  Bruno Haible  <bruno@clisp.org>
30172
30173         Speedup git-merge-changelog for git cherry-pick.
30174         * lib/git-merge-changelog.c (struct entries_mapping): New type.
30175         (entries_mapping_get): New function, extracted from compute_mapping.
30176         (entries_mapping_reverse_get): New function.
30177         (compute_mapping): Add a 'full' argument. Return the result in a
30178         'struct entries_mapping'.
30179         (main): Update. Access the mappings through entries_mapping_get.
30180         Reported by Eric Blake.
30181
30182 2009-07-02  Bruno Haible  <bruno@clisp.org>
30183
30184         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
30185         best_i.
30186
30187 2009-07-02  Bruno Haible  <bruno@clisp.org>
30188
30189         Speed up approximate search for matching ChangeLog entries.
30190         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
30191         argument. Call fstrcmp_bounded instead of fstrcmp.
30192         (compute_mapping, try_split_merged_entry, main): Update callers.
30193
30194 2009-07-02  Bruno Haible  <bruno@clisp.org>
30195
30196         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
30197
30198 2009-06-30  Bruno Haible  <bruno@clisp.org>
30199
30200         Reduce the number of uc_is_cased calls.
30201         * lib/unicase.h (casing_suffix_context_t): Add
30202         'first_char_except_ignorable' field.
30203         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
30204         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
30205         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
30206         Update initializer.
30207         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
30208         case-ignorable characters.
30209         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
30210         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
30211         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
30212         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
30213         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
30214
30215 2009-06-30  Bruno Haible  <bruno@clisp.org>
30216
30217         Tests for module 'unicase/ignorable'.
30218         * modules/unicase/ignorable-tests: New file.
30219         * tests/unicase/test-ignorable.c: New file, generated by
30220         gen-uni-tables.
30221
30222         Tests for module 'unicase/cased'.
30223         * modules/unicase/cased-tests: New file.
30224         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
30225         * tests/unicase/test-predicate-part1.h: New file, derived from
30226         tests/unictype/test-predicate-part1.h.
30227         * tests/unicase/test-predicate-part2.h: New file, same as
30228         tests/unictype/test-predicate-part2.h.
30229
30230         Fix evaluation of "Before C" condition of FINAL_SIGMA.
30231         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
30232         (output_casing_properties): New function.
30233         (main): Call it.
30234         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
30235         * lib/unicase/cased.c: Include unictype/bitmap.h.
30236         (uc_is_cased): Define through a bitmap lookup.
30237         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
30238         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
30239         (uc_is_case_ignorable): Define through a bitmap lookup.
30240         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
30241         lib/unictype/bitmap.h.
30242         (Depends-on): Add inline. Clean up.
30243         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
30244         lib/unictype/bitmap.h.
30245         (Depends-on): Add inline. Clean up.
30246         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
30247         recognition.
30248         * tests/unicase/test-u16-tolower.c (main): Likewise.
30249         * tests/unicase/test-u32-tolower.c (main): Likewise.
30250
30251 2009-06-30  Bruno Haible  <bruno@clisp.org>
30252
30253         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
30254         * lib/unicase/u16-casemap.c: Likewise.
30255         * lib/unicase/u32-casemap.c: Likewise.
30256
30257 2009-06-29  Bruno Haible  <bruno@clisp.org>
30258
30259         Define u32_casefold as a wrapper around u32_ct_casefold.
30260         * lib/unicase/u32-casefold.c: Update.
30261         * modules/unicase/u32-casefold (Depends-on): Add
30262         unicase/u32-ct-casefold, unicase/empty-prefix-context,
30263         unicase/empty-suffix-context. Clean up.
30264
30265         Define u16_casefold as a wrapper around u16_ct_casefold.
30266         * lib/unicase/u16-casefold.c: Update.
30267         * modules/unicase/u16-casefold (Depends-on): Add
30268         unicase/u16-ct-casefold, unicase/empty-prefix-context,
30269         unicase/empty-suffix-context. Clean up.
30270
30271         Define u8_casefold as a wrapper around u8_ct_casefold.
30272         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
30273         * lib/unicase/u8-casefold.c: Update.
30274         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
30275         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30276
30277         Define u32_totitle as a wrapper around u32_ct_totitle.
30278         * lib/unicase/u32-totitle.c: Update.
30279         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
30280         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30281
30282         Define u16_totitle as a wrapper around u16_ct_totitle.
30283         * lib/unicase/u16-totitle.c: Update.
30284         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
30285         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30286
30287         Define u8_totitle as a wrapper around u8_ct_totitle.
30288         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
30289         functions.
30290         (FUNC): Delegate to U_CT_TOTITLE.
30291         * lib/unicase/u8-totitle.c: Update.
30292         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
30293         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30294
30295         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
30296         invocation.
30297         * modules/unicase/u32-tolower (Depends-on): Add
30298         unicase/empty-prefix-context, unicase/empty-suffix-context.
30299
30300         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
30301         invocation.
30302         * modules/unicase/u16-tolower (Depends-on): Add
30303         unicase/empty-prefix-context, unicase/empty-suffix-context.
30304
30305         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
30306         * modules/unicase/u8-tolower (Depends-on): Add
30307         unicase/empty-prefix-context, unicase/empty-suffix-context.
30308
30309         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
30310         invocation.
30311         * modules/unicase/u32-toupper (Depends-on): Add
30312         unicase/empty-prefix-context, unicase/empty-suffix-context.
30313
30314         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
30315         invocation.
30316         * modules/unicase/u16-toupper (Depends-on): Add
30317         unicase/empty-prefix-context, unicase/empty-suffix-context.
30318
30319         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
30320         * modules/unicase/u8-toupper (Depends-on): Add
30321         unicase/empty-prefix-context, unicase/empty-suffix-context.
30322
30323         New module 'unicase/u32-ct-casefold'.
30324         * lib/unicase/u32-ct-casefold.c: New file.
30325         * modules/unicase/u32-ct-casefold: New file.
30326
30327         New module 'unicase/u16-ct-casefold'.
30328         * lib/unicase/u16-ct-casefold.c: New file.
30329         * modules/unicase/u16-ct-casefold: New file.
30330
30331         New module 'unicase/u8-ct-casefold'.
30332         * lib/unicase/u8-ct-casefold.c: New file.
30333         * lib/unicase/u-ct-casefold.h: New file, derived from
30334         lib/unicase/u-casefold.h.
30335         * modules/unicase/u8-ct-casefold: New file.
30336
30337         New module 'unicase/u32-ct-totitle'.
30338         * lib/unicase/u32-ct-totitle.c: New file.
30339         * modules/unicase/u32-ct-totitle: New file.
30340
30341         New module 'unicase/u16-ct-totitle'.
30342         * lib/unicase/u16-ct-totitle.c: New file.
30343         * modules/unicase/u16-ct-totitle: New file.
30344
30345         New module 'unicase/u8-ct-totitle'.
30346         * lib/unicase/u8-ct-totitle.c: New file.
30347         * lib/unicase/u-ct-totitle.h: New file, derived from
30348         lib/unicase/u-totitle.h.
30349         * modules/unicase/u8-ct-totitle: New file.
30350
30351         New module 'unicase/u32-ct-tolower'.
30352         * lib/unicase/u32-ct-tolower.c: New file.
30353         * modules/unicase/u32-ct-tolower: New file.
30354
30355         New module 'unicase/u16-ct-tolower'.
30356         * lib/unicase/u16-ct-tolower.c: New file.
30357         * modules/unicase/u16-ct-tolower: New file.
30358
30359         New module 'unicase/u8-ct-tolower'.
30360         * lib/unicase/u8-ct-tolower.c: New file.
30361         * modules/unicase/u8-ct-tolower: New file.
30362
30363         New module 'unicase/u32-ct-toupper'.
30364         * lib/unicase/u32-ct-toupper.c: New file.
30365         * modules/unicase/u32-ct-toupper: New file.
30366
30367         New module 'unicase/u16-ct-toupper'.
30368         * lib/unicase/u16-ct-toupper.c: New file.
30369         * modules/unicase/u16-ct-toupper: New file.
30370
30371         New module 'unicase/u8-ct-toupper'.
30372         * lib/unicase/u8-ct-toupper.c: New file.
30373         * modules/unicase/u8-ct-toupper: New file.
30374
30375         Add context arguments to u*_casemap functions.
30376         * lib/unicase/unicasemap.h: Include unicase.h.
30377         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
30378         suffix_context arguments.
30379         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
30380         functions.
30381         (FUNC): Add prefix_context and suffix_context arguments. Use
30382         uc_is_cased and uc_is_case_ignorable.
30383         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
30384         * lib/unicase/u16-casemap.c: Likewise.
30385         * lib/unicase/u32-casemap.c: Likewise.
30386         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
30387         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30388         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
30389         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30390         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
30391         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30392
30393         New module 'unicase/u32-suffix-context'.
30394         * lib/unicase/u32-suffix-context.c: New file.
30395         * modules/unicase/u32-suffix-context: New file.
30396
30397         New module 'unicase/u16-suffix-context'.
30398         * lib/unicase/u16-suffix-context.c: New file.
30399         * modules/unicase/u16-suffix-context: New file.
30400
30401         New module 'unicase/u8-suffix-context'.
30402         * lib/unicase/u8-suffix-context.c: New file.
30403         * lib/unicase/u-suffix-context.h: New file.
30404         * modules/unicase/u8-suffix-context: New file.
30405
30406         New module 'unicase/empty-suffix-context'.
30407         * lib/unicase/empty-suffix-context.c: New file.
30408         * modules/unicase/empty-suffix-context: New file.
30409
30410         New module 'unicase/u32-prefix-context'.
30411         * lib/unicase/u32-prefix-context.c: New file.
30412         * modules/unicase/u32-prefix-context: New file.
30413
30414         New module 'unicase/u16-prefix-context'.
30415         * lib/unicase/u16-prefix-context.c: New file.
30416         * modules/unicase/u16-prefix-context: New file.
30417
30418         New module 'unicase/u8-prefix-context'.
30419         * lib/unicase/u8-prefix-context.c: New file.
30420         * lib/unicase/u-prefix-context.h: New file.
30421         * lib/unicase/context.h: New file.
30422         * modules/unicase/u8-prefix-context: New file.
30423
30424         New module 'unicase/empty-prefix-context'.
30425         * lib/unicase/empty-prefix-context.c: New file.
30426         * modules/unicase/empty-prefix-context: New file.
30427
30428         New module 'unicase/ignorable'.
30429         * lib/unicase/ignorable.c: New file.
30430         * modules/unicase/ignorable: New file.
30431
30432         New module 'unicase/cased'.
30433         * lib/unicase/caseprop.h: New file.
30434         * lib/unicase/cased.c: New file.
30435         * modules/unicase/cased: New file.
30436
30437         New functions for case mapping of substrings.
30438         * lib/unicase.h (casing_prefix_context_t): New type.
30439         (unicase_empty_prefix_context): New variable.
30440         (u8_casing_prefix_context, u16_casing_prefix_context,
30441         u32_casing_prefix_context, u8_casing_prefixes_context,
30442         u16_casing_prefixes_context, u32_casing_prefixes_context): New
30443         declarations.
30444         (casing_suffix_context_t): New type.
30445         (unicase_empty_suffix_context): New variable.
30446         (u8_casing_suffix_context, u16_casing_suffix_context,
30447         u32_casing_suffix_context, u8_casing_suffixes_context,
30448         u16_casing_suffixes_context, u32_casing_suffixes_context,
30449         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
30450         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
30451         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
30452         declarations.
30453
30454 2009-06-28  Jim Meyering  <meyering@redhat.com>
30455
30456         boostrap: indent only with spaces
30457         * build-aux/bootstrap: Indent only with spaces, never TABs.
30458
30459         bootstrap: split long lines
30460         * build-aux/bootstrap: Keep line length < 80.
30461
30462         bootstrap: sync from coreutils
30463         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
30464         just as autoreconf does.  Verify a list of prerequisite
30465         package-name,version-number pairs if defined in bootstrap.conf.
30466         Refer to README-prereq, if prerequisites are not satisfied.
30467
30468 2009-06-27  Eric Blake  <ebb9@byu.net>
30469
30470         tests: add test for bogus NULL definition
30471         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
30472         * tests/test-stdlib.c: Likewise.
30473         * tests/test-string.c: Likewise.
30474         * tests/test-locale.c: Likewise.
30475         * tests/test-unistd.c: Likewise.
30476         * modules/stdio-tests (Depends-on): Add verify.
30477         * modules/stdlib-tests (Depends-on): Likewise.
30478         * modules/string-tests (Depends-on): Likewise.
30479         * modules/locale-tests (Depends-on): Likewise.
30480         * modules/unistd-tests (Depends-on): Likewise.
30481
30482 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
30483
30484         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
30485         self-explaining comment.
30486         * m4/selinux-selinux-h: Update serial.
30487         (gl_LIBSELINUX): New macro, adding a warning for missing development
30488         packages to code extracted from...
30489         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
30490         Add warning for missing development packages here, too.
30491
30492 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
30493
30494         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
30495
30496 2009-06-25  Eric Blake  <ebb9@byu.net>
30497
30498         version-etc: fix regression
30499         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
30500         gcc.
30501         (version_etc): Use it, to catch bugs with trailing NULL.
30502         * lib/version-etc.c (version_etc_arn): Delete unused argument.
30503         (version_etc_va): Fix logic bug.
30504         * modules/version-etc-tests: Add test.
30505         * tests/test-version-etc.c: New file.
30506         * tests/test-version-etc.sh: Likewise.
30507
30508 2009-06-25  Sam Steingold  <sds@gnu.org>
30509
30510         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
30511         mbtowc declaration.
30512
30513 2009-06-25  Eric Blake  <ebb9@byu.net>
30514
30515         fpurge: migrate into <stdio.h>
30516         * lib/fpurge.h: Delete...
30517         * lib/stdio.in.h (fpurge): ...and declare here, instead.
30518         * lib/fpurge.c (fpurge): Change declaring header.
30519         * modules/fpurge (Files): Drop deleted file.
30520         (Depends-on): Add stdio.
30521         (configure.ac): Set witness.
30522         * modules/stdio (Makefile.am): Support fpurge macros.
30523         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30524         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
30525         * lib/fflush.c: Update client.
30526         * tests/test-fpurge.c: Likewise.
30527         * NEWS: Mention the change.
30528
30529 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30530
30531         * lib/argp-version-etc.c (program_authors): Add const
30532         qualifier.
30533         * lib/version-etc.c: Fix typos in the comments.
30534         * modules/argp-version-etc: Depends on version-etc.
30535
30536 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30537
30538         argp-version-etc: new module.
30539
30540         * lib/argp-version-etc.c: New file.
30541         * lib/argp-version-etc.h: New file.
30542         * modules/argp-version-etc: New file.
30543         * modules/argp-version-etc-tests: New file.
30544         * tests/test-argp-version-etc.c: New test.
30545         * tests/test-argp-version-etc-1.sh: New test.
30546
30547 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30548
30549         Provide additional interfaces and documentation for version-etc
30550         module.
30551
30552         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
30553         interfaces.
30554         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
30555         prototypes.
30556
30557 2009-06-24  Bruno Haible  <bruno@clisp.org>
30558
30559         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
30560         HAVE_LIB${NAME} macro.
30561         Reported by Sam Steingold <sds@gnu.org>.
30562
30563 2009-06-23  Simon Josefsson  <simon@josefsson.org>
30564
30565         * modules/hash-tests (test_hash_LDADD): Link to libintl when
30566         needed.
30567
30568 2009-06-21  Bruno Haible  <bruno@clisp.org>
30569
30570         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
30571         work.
30572         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
30573         together with LIB${NAME}, LTLIB${NAME}.
30574         Reported by Sam Steingold <sds@gnu.org>.
30575
30576 2009-06-20  Jim Meyering  <meyering@redhat.com>
30577
30578         tests: make sc_require_test_exit_idiom more generic
30579         * top/maint.mk (Exit_witness_file): New overridable variable.
30580         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
30581         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
30582
30583 2009-06-19  Jim Meyering  <meyering@redhat.com>
30584
30585         hash: reverse order of src/dst parameters in an internal interface
30586         * lib/hash.c (transfer_entries): Reverse order of parameters to
30587         put DST before SRC.  Adjust callers.
30588
30589         tests: test-hash: avoid wholesale duplication
30590         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
30591         Instead, use a loop and add a single conditional.
30592
30593         tests: test-hash: allow seed selection via a command line argument
30594         * tests/test-hash.c (get_seed): New function.
30595         (main): Use it.
30596
30597 2009-06-19  Eric Blake  <ebb9@byu.net>
30598
30599         hash: avoid memory leak on allocation failure
30600         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
30601         failure.  Factor repeated algorithm...
30602         (transfer_entries): ...into new helper routine.
30603         (hash_delete): React to hash_rehash return value.
30604
30605         hash: reduce memory pressure in hash_rehash no-op case
30606         * lib/hash.c (next_prime): Avoid overflow.
30607         (hash_initialize): Factor bucket size computation...
30608         (compute_bucket_size): ...into new helper function.
30609         (hash_rehash): Use new function and open coding to reduce memory
30610         pressure, and avoid a memory leak in USE_OBSTACK code.
30611         Reported by Jim Meyering.
30612
30613 2009-06-18  Eric Blake  <ebb9@byu.net>
30614
30615         hash: make rotation more obvious
30616         * modules/hash (Depends-on): Add bitrotate and stdint.
30617         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
30618         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
30619         (SIZE_MAX): Rely on headers for definition.
30620         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
30621         (raw_hasher): Use rotr_sz.
30622         Suggested by Jim Meyering.
30623
30624         hash: fix memory leak in last patch
30625         * lib/hash.c (hash_rehash): Avoid memory leak.
30626
30627         hash: avoid no-op rehashing
30628         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
30629
30630         hash: provide default callback functions
30631         * lib/hash.c (raw_hasher, raw_comparator): New functions.
30632         (hash_initialize): Use them as defaults.
30633         * tests/test-hash.c (main): Test this.
30634
30635         hash: minor optimization
30636         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
30637         when possible.
30638         (hash_initialize): Document this promise.
30639         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
30640         * tests/test-hash.c (hash_compare_strings): Test this.
30641
30642 2009-06-18  Bruno Haible  <bruno@clisp.org>
30643
30644         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
30645         going to be replaced anyway.
30646
30647 2009-06-18  Bruno Haible  <bruno@clisp.org>
30648
30649         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
30650         in one place.
30651         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
30652         be replaced anyway.
30653
30654 2009-06-18  Eric Blake  <ebb9@byu.net>
30655
30656         hash: check for resize before insertion
30657         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
30658         threshold before insertion, so that a pathological hash_rehash
30659         that fills every bucket can still trigger another rehash.
30660
30661 2009-06-18  Jim Meyering  <meyering@redhat.com>
30662
30663         hash-tests: add a loop around the small tests
30664         * tests/test-hash.c (main): Repeat small tests with selected
30665         small initial table sizes.
30666
30667 2009-06-17  Eric Blake  <ebb9@byu.net>
30668
30669         hash: minor cleanups
30670         * lib/hash.h (hash_entry): Make opaque, by moving...
30671         * lib/hash.c (hash_entry): ...here.
30672         (hash_insert): Clarify restrictions on what can be inserted.
30673         (hash_get_next): Clarify when it is safe to remove an element
30674         during traversal.
30675         (check_tuning): Skip verification when tuning is known safe.
30676         (hash_initialize): Clarify restrictions on tuning.
30677
30678 2009-06-17  Jim Meyering  <jim@meyering.net>
30679         and Eric Blake  <ebb9@byu.net>
30680
30681         hash-tests: new module
30682         * modules/hash-tests: New file.
30683         * tests/test-hash.c: New file.
30684
30685 2009-06-17  Eric Blake  <ebb9@byu.net>
30686
30687         strstr-simple: document new module
30688         * MODULES.html.sh: Document new module.
30689
30690         strstr, strcasestr: replace on platforms with broken memchr
30691         * modules/strstr: Split into...
30692         * modules/strstr-simple: ...new module that does not care about
30693         performance, but does care about glibc bug.
30694         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
30695         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
30696         if platform memchr is broken, per Debian bug 521737.
30697         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
30698         memchr.
30699         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
30700         * doc/posix-functions/strstr.texi (strstr): Document the fix.
30701         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30702         * modules/mountlist (Depends-on): Add strstr-simple.
30703         * modules/gen-uni-tables (Depends-on): Likewise.
30704         * modules/argz (Depends-on): Add strstr.
30705
30706 2009-06-17  Bruno Haible  <bruno@clisp.org>
30707
30708         * modules/posix_spawn-internal (Depends-on): Add errno.
30709
30710 2009-06-17  Bruno Haible  <bruno@clisp.org>
30711
30712         Define missing ESTALE on Interix 3.5.
30713         * lib/errno.in.h (ESTALE): Assign a value if missing.
30714         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
30715         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
30716         missing.
30717         * doc/posix-headers/errno.texi: Mention the Interix bug.
30718         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
30719
30720 2009-06-15  Eric Blake  <ebb9@byu.net>
30721
30722         memchr, memchr2: add valgrind exception
30723         * lib/memchr.valgrind: New file.
30724         * lib/memchr2.valgrind: New file.
30725         * modules/memchr (Files): Distribute valgrind file.
30726         * modules/memchr2 (Files): Likewise.
30727
30728         docs: memchr is no longer obsolete
30729         * MODULES.html.sh: Move memchr from obsolete to string.h section.
30730         * lib/string.in.h (memchr): Simplify logic.
30731
30732 2009-06-14  Jim Meyering  <meyering@redhat.com>
30733
30734         link-follow: fix the "checking..." message to not mention trailing slash
30735         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
30736         never considered trailing slashes.
30737
30738 2009-06-14  Bruno Haible  <bruno@clisp.org>
30739
30740         * m4/memchr.m4: Mention also the bug on IA-64.
30741         * doc/posix-functions/memchr.texi: Likewise.
30742
30743 2009-06-12  Eric Blake  <ebb9@byu.net>
30744
30745         memchr: detect broken x86_64 and alpha implementations
30746         * modules/memchr-tests (Depends-on): Move mmap detection...
30747         * modules/memchr (Depends-on): ...here.
30748         (configure.ac): Set indicator.
30749         * lib/string.in.h (memchr): Declare replacement.
30750         * modules/string (Makefile.am): Trigger replacement.
30751         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
30752         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
30753         bugs.
30754         * doc/posix-functions/memchr.texi (memchr): Document the bug.
30755         * modules/getpagesize (License): Relax license.
30756
30757 2009-06-11  Bruno Haible  <bruno@clisp.org>
30758
30759         * lib/idpriv.h: Add more references.
30760
30761 2009-06-08  Bruno Haible  <bruno@clisp.org>
30762
30763         Tests for module 'idpriv-droptemp'.
30764         * modules/idpriv-droptemp-tests: New file.
30765         * tests/test-idpriv-droptemp.sh: New file.
30766         * tests/test-idpriv-droptemp.su.sh: New file.
30767         * tests/test-idpriv-droptemp.c: New file.
30768
30769         New module 'idpriv-droptemp'.
30770         * lib/idpriv-droptemp.c: New file.
30771         * modules/idpriv-droptemp: New file.
30772
30773 2009-06-08  Bruno Haible  <bruno@clisp.org>
30774
30775         Tests for module 'idpriv-drop'.
30776         * modules/idpriv-drop-tests: New file.
30777         * tests/test-idpriv-drop.sh: New file.
30778         * tests/test-idpriv-drop.su.sh: New file.
30779         * tests/test-idpriv-drop.c: New file.
30780
30781         New module 'idpriv-drop'.
30782         * lib/idpriv.h: New file.
30783         * lib-idpriv-drop.c: New file.
30784         * m4/idpriv.m4: New file.
30785         * modules/idpriv-drop: New file.
30786
30787 2009-06-08  Bruno Haible  <bruno@clisp.org>
30788
30789         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
30790         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30791         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30792         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30793         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30794         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30795         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30796
30797 2009-06-08  Eric Blake  <ebb9@byu.net>
30798
30799         test-strstr: use memory fence, when possible
30800         * tests/test-strstr.c (main): Use memory fence, in order to be
30801         more likely to trigger Debian bug 521737.
30802         * modules/strstr-tests (Files): Pull in additional files.
30803
30804         memchr: no longer obsolete, for wider field testing
30805         * modules/memchr (Status, Notice): Delete, this module is no
30806         longer obsolete.
30807         * modules/vasnprintf (Depends-on): Add memchr.
30808
30809 2009-06-07  Jim Meyering  <meyering@redhat.com>
30810
30811         hash: declare some functions with the warn_unused_result attribute
30812         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
30813
30814 2009-06-07  Bruno Haible  <bruno@clisp.org>
30815
30816         * tests/test-alignof.c: Don't test int64_t if it does not exist.
30817         Reported by Eric Blake.
30818
30819 2009-06-06  Eric Blake  <ebb9@byu.net>
30820
30821         test-alignof: fix typo with long double
30822         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
30823         compiler error.
30824
30825 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
30826
30827         Escape non-texinfo { and }s.
30828         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
30829         markup error.
30830
30831 2009-06-04  Jim Meyering  <meyering@redhat.com>
30832
30833         gitlog-to-changelog: don't infloop on an empty commit log
30834         * build-aux/gitlog-to-changelog: Warn about an empty log message.
30835         Reported by Boris Petersen <transacid@centerim.org>.
30836
30837 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
30838
30839         version-etc: extend for packagers
30840         Add three new configure options, intended for packagers:
30841           --with-packager="packager name"
30842           --with-packager-version="packager-specific version"
30843           --with-packager-bug-reports="packager bug reporting"
30844         An example with coreutils:
30845           $ ./configure \
30846             --with-packager=Gentoo \
30847             --with-packager-bug-report=http://bugs.gentoo.org/ \
30848             --with-packager-version="patchset 1.6"
30849           $ ./src/ls --version | head -n2
30850           ls (GNU coreutils) 7.1-dirty
30851           Packaged by Gentoo (patchset 1.6)
30852         Note that the bug reporting info via --help doesn't show up because
30853         coreutils uses its own custom emit_bug_reporting_address() implementation
30854         in src/system.h.  If it didn't, it'd look like:
30855           $ ./src/ls --help | tail -n4
30856           Report bugs to <bug-coreutils@gnu.org>.
30857           Report Gentoo bugs to <http://bugs.gentoo.org/>.
30858           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
30859           General help using GNU software: <http://www.gnu.org/gethelp/>.
30860         * lib/version-etc.c: Print new information, if provided.
30861         * m4/version-etc.m4: New file.
30862         * modules/version-etc (Files): Add m4/version-etc.m4.
30863         (configure.ac): Add gl_VERSION_ETC.
30864
30865 2009-05-31  Bruno Haible  <bruno@clisp.org>
30866
30867         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
30868         and 'int64_t'.
30869         * modules/alignof-tests (Dependencies): Add stdint.
30870         Reported by Eric Blake.
30871
30872 2009-05-31  Bruno Haible  <bruno@clisp.org>
30873
30874         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
30875         restriction due to compiler bugs.
30876         Reported by Eric Blake.
30877
30878 2009-05-31  Simon Josefsson  <simon@josefsson.org>
30879             Bruno Haible  <bruno@clisp.org>
30880
30881         Fix test-alignof failure.
30882         * lib/alignof.h (alignof_slot): New macro.
30883         (alignof_type): New macro, with the same semantics as the previous
30884         'alignof'.
30885         (alignof): Alias to alignof_slot.
30886         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
30887         check that the results are usable as constant expressions.
30888
30889 2009-05-31  Bruno Haible  <bruno@clisp.org>
30890
30891         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
30892         * tests/test-memchr.c (main): Check that memchr does not read past the
30893         first occurrence of the byte.
30894         * tests/test-strstr.c (main): Update comment.
30895         Suggested by Eric Blake.
30896
30897 2009-05-30  Bruno Haible  <bruno@clisp.org>
30898
30899         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
30900         detail how to use dumpbin.
30901         Reported by David Byron <dbyron@dbyron.com>.
30902
30903 2009-06-02  Simon Josefsson  <simon@josefsson.org>
30904
30905         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
30906
30907 2009-06-02  Simon Josefsson  <simon@josefsson.org>
30908
30909         * m4/manywarnings.m4: Add GCC 4.4 warnings.
30910
30911 2009-05-28  Bruno Haible  <bruno@clisp.org>
30912
30913         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
30914         build-aux/ files.
30915
30916 2009-05-28  Simon Josefsson  <simon@josefsson.org>
30917
30918         * gnulib-tool (func_import): Transform license on build-aux/ files too.
30919
30920 2009-05-27  Simon Josefsson  <simon@josefsson.org>
30921
30922         * gnulib-tool (sed_transform_main_lib_file)
30923         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
30924         regexps.
30925
30926 2009-05-26  Simon Josefsson  <simon@josefsson.org>
30927
30928         * tests/test-strstr.c: Add another self-test.
30929         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
30930         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
30931
30932 2009-05-23  Bruno Haible  <bruno@clisp.org>
30933
30934         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
30935         change.
30936
30937 2009-05-21  Bruno Haible  <bruno@clisp.org>
30938
30939         Simplify use of mode_t varargs.
30940         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
30941         uses 'mode_t' or 'int'.
30942         * lib/openat.c (openat): Likewise.
30943         * lib/open-safer.c (open_safer): Likewise.
30944         * m4/mode_t.m4: New file.
30945         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
30946         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
30947         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
30948         * modules/open (Files): Add m4/mode_t.m4.
30949         * modules/openat (Files): Likewise.
30950         * modules/fcntl-safer (Files): Likewise.
30951         Suggested by Eric Blake.
30952
30953 2009-05-21  Pádraig Brady  <P@draigbrady.com>
30954
30955         * doc/glibc-functions/fallocate.texi: New file.
30956         * doc/gnulib.texi: Include it.
30957
30958 2009-05-21  Eric Blake  <ebb9@byu.net>
30959             Bruno Haible  <bruno@clisp.org>
30960
30961         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
30962         invocations.
30963         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30964
30965 2009-05-21  Eric Blake  <ebb9@byu.net>
30966             Bruno Haible  <bruno@clisp.org>
30967
30968         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
30969         include_next. Fix of 2008-11-20 commit.
30970         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
30971         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
30972         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
30973         NEXT_MATH_H.
30974         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
30975         instead of NEXT_MATH_H.
30976
30977 2009-05-21  Bruno Haible  <bruno@clisp.org>
30978
30979         Avoid redefinition warnings for SIZE_MAX.
30980         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
30981         Reported by Simon Josefsson.
30982
30983 2009-05-21  Bruno Haible  <bruno@clisp.org>
30984
30985         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
30986         AC_CACHE_VAL.
30987
30988 2009-05-20  Bruno Haible  <bruno@clisp.org>
30989
30990         Make zeroptr.h work on mingw.
30991         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
30992         mprotect.
30993         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
30994         * modules/memchr2-tests (configure.ac): Likewise.
30995         * modules/memcmp-tests (configure.ac): Likewise.
30996         * modules/memmem-tests (configure.ac): Likewise.
30997         * modules/memrchr-tests (configure.ac): Likewise.
30998         Reported by Simon Josefsson.
30999
31000 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31001
31002         * tests/test-glob.c: Include string.h for strcmp prototype.
31003
31004 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31005
31006         * modules/getdelim (Depends-on): Add explicit stdint, although it
31007         was implicitly already pulled in via realloc-posix.
31008         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
31009
31010 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31011
31012         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
31013         G. Christensen" <tgc@jupiterrise.com>.
31014         * m4/sys_socket_h.m4: Check for sa_family_t.
31015         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
31016         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
31017         * tests/test-sys_socket.c: Check that sa_family_t works.
31018
31019 2009-05-18  Eric Blake  <ebb9@byu.net>
31020
31021         maint.mk: allow gnulib_dir in VPATH build
31022         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
31023
31024 2009-05-15  Jim Meyering  <meyering@redhat.com>
31025
31026         maint.mk: Give gnulib_dir a default definition.
31027         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
31028         Thus, most packages no longer need to specify this variable in cfg.mk
31029
31030 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
31031
31032         rename.m4: fix typos that would make non-mingw cross-configure fail
31033         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
31034
31035 2009-05-13  Eric Blake  <ebb9@byu.net>
31036
31037         mmap-anon: avoid out-of-order autoconf expansion
31038         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
31039         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
31040         * modules/memchr-tests (Depends-on): Add extensions.
31041         * modules/memchr2-tests (Depends-on): Add extensions.
31042         * modules/memcmp-tests (Depends-on): Add extensions.
31043         * modules/memmem-tests (Depends-on): Add extensions.
31044         * modules/memrchr-tests (Depends-on): Add extensions.
31045
31046 2009-05-13  Bruno Haible  <bruno@clisp.org>
31047
31048         Make some tests ISO C 99 compliant.
31049         * tests/zerosize-ptr.h: New file.
31050         * tests/test-memchr.c: Include zerosize-ptr.h.
31051         (main): Use a zero-size object pointer instead of NULL.
31052         * tests/test-memchr2.c: Include zerosize-ptr.h.
31053         (main): Use a zero-size object pointer instead of NULL.
31054         * tests/test-memcmp.c: Include zerosize-ptr.h.
31055         (main): Use a zero-size object pointer instead of NULL.
31056         * tests/test-memmem.c: Include zerosize-ptr.h.
31057         (main): Use a zero-size object pointer instead of NULL.
31058         * tests/test-memrchr.c: Include zerosize-ptr.h.
31059         (main): Use a zero-size object pointer instead of NULL.
31060         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
31061         m4/mmap-anon.m4.
31062         (Depends-on): Add getpagesize.
31063         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31064         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
31065         m4/mmap-anon.m4.
31066         (Depends-on): Add getpagesize.
31067         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31068         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
31069         m4/mmap-anon.m4.
31070         (Depends-on): Add getpagesize.
31071         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31072         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
31073         m4/mmap-anon.m4.
31074         (Depends-on): Add getpagesize.
31075         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31076         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
31077         m4/mmap-anon.m4.
31078         (Depends-on): Add getpagesize.
31079         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31080
31081 2009-05-12  Bruno Haible  <bruno@clisp.org>
31082
31083         Tests for module 'alignof'.
31084         * modules/alignof-tests: New file.
31085         * tests/test-alignof.c: New file.
31086
31087 2009-05-12  Bruno Haible  <bruno@clisp.org>
31088
31089         Fix alignof macro.
31090         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
31091         vendor compilers that are always correct.
31092
31093 2009-05-12  Bruno Haible  <bruno@clisp.org>
31094
31095         Make the MAP_ANONYMOUS detection work on HP-UX 11.
31096         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
31097         not whether its fully works.
31098
31099 2009-05-12  Bruno Haible  <bruno@clisp.org>
31100
31101         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
31102
31103 2009-05-12  Jim Meyering  <meyering@redhat.com>
31104
31105         * top/maint.mk: Adjust backslash alignment.
31106
31107 2009-05-11  Simon Josefsson  <simon@josefsson.org>
31108
31109         * top/maint.mk: Make $(srcdir)/build-aux configurable.
31110
31111 2009-05-11  Eric Blake  <ebb9@byu.net>
31112
31113         argp: avoid undefined behavior
31114         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
31115         macros.
31116
31117 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31118
31119         * tests/test-vc-list-files-git.sh: Do git config of user.email and
31120         user.name to prevent git commit from complaining.
31121
31122 2009-05-10  Bruno Haible  <bruno@clisp.org>
31123
31124         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
31125         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
31126         it rewrites every file name only once.
31127         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
31128
31129 2009-05-08  Bruno Haible  <bruno@clisp.org>
31130
31131         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
31132         instead of 'max'.
31133
31134 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31135
31136         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
31137         sockaddr_storage test.
31138
31139 2009-05-07  Simon Josefsson  <simon@josefsson.org>
31140
31141         * modules/sys_socket (Makefile.am): Substitute
31142         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
31143         * m4/sys_socket_h.m4: Check for sockaddr_storage.
31144         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
31145         * tests/test-sys_socket.c: Check sockaddr_storage.
31146
31147 2009-05-08  Bruno Haible  <bruno@clisp.org>
31148
31149         New module 'alignof'.
31150         * lib/alignof.h: New file.
31151         * modules/alignof: New file.
31152
31153 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31154             Bruno Haible  <bruno@clisp.org>
31155
31156         Fix test-file-has-acl on FreeBSD.
31157         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
31158         mask is implicitly added.
31159         * tests/test-file-has-acl.c: Include <signal.h>.
31160         (main): Terminate the test after 5 seconds.
31161         * modules/acl-tests (configure.ac): Check for alarm function.
31162
31163 2009-05-04  Bruno Haible  <bruno@clisp.org>
31164
31165         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
31166         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
31167         * modules/errno (configure.ac): Drop AC_REQUIRE.
31168         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
31169         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
31170
31171 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31172
31173         * modules/glob-tests: New module.
31174         * tests/test-glob.c: Add.
31175
31176 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31177
31178         * modules/fnmatch-tests: New module.
31179         * tests/test-fnmatch.c: Add.
31180
31181 2009-05-04  Eric Blake  <ebb9@byu.net>
31182
31183         maint: make the new no-submodule-changes rule VPATH-safe
31184         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
31185
31186 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31187             Bruno Haible  <bruno@clisp.org>
31188
31189         acl: Fix infinite loop on FreeBSD.
31190         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
31191         of return value from acl_get_entry.
31192         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
31193         Likewise.
31194
31195 2009-05-03  Bruno Haible  <bruno@clisp.org>
31196
31197         * lib/acl-internal.h (acl_entries): Clarify return value.
31198         * lib/acl_entries.c (acl_entries): Likewise.
31199
31200 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31201
31202         Bug fix in acl module.
31203         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
31204
31205 2009-05-03  Bruno Haible  <bruno@clisp.org>
31206
31207         Create gperf-generated file in the source dir, not in the build dir.
31208         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
31209         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
31210         * modules/unicase/locale-language (unicase/locale-languages.h):
31211         Likewise.
31212         * modules/unicase/special-casing (unicase/special-casing-table.h):
31213         Likewise.
31214         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
31215         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
31216         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
31217         Reported by Ralf Wildenhues.
31218
31219 2009-05-03  Bruno Haible  <bruno@clisp.org>
31220
31221         * modules/fnmatch (Description, configure.ac): Taken from
31222         fnmatch-posix.
31223         * modules/fnmatch-posix: Turn into a symbolic reference to the
31224         'fnmatch' module, and deprecate.
31225         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
31226
31227 2009-05-03  Bruno Haible  <bruno@clisp.org>
31228
31229         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
31230         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
31231         Reported by Ralf Wildenhues.
31232
31233 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31234
31235         * m4/fnmatch.m4: Fix fnmatch re-define.
31236
31237 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31238
31239         priv-set: new module and tests; adapt write-any-file
31240         * lib/priv-set.c: New file.
31241         * lib/priv-set.h: New file.
31242         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
31243         * lib/write-any-file.c: Simplify by using priv-set module.
31244         * m4/priv-set.m4: New file.
31245         * modules/priv-set: New file.
31246         * modules/unlinkdir: Add dependency on priv-set module.
31247         * modules/write-any-file: Likewise.
31248
31249         Tests for module 'priv-set'.
31250         * modules/priv-set-tests: New file.
31251         * tests/test-priv-set.c: New file.
31252
31253 2009-05-03  Jim Meyering  <meyering@redhat.com>
31254             Bruno Haible  <bruno@clisp.org>
31255
31256         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
31257         use the converted UTF-8 variant of the name instead.
31258
31259 2009-05-03  Jim Meyering  <meyering@redhat.com>
31260
31261         tests: tighten some getdate tests
31262         * tests/test-getdate.c (main): Tighten tests: require equality,
31263         not just greater than.  Set TZ envvar to UTC0.
31264
31265 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
31266
31267         getdate: correctly interpret "next monday" when run on a Monday
31268         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
31269         that e.g., "next tues" (when run on a tuesday) results in a date
31270         that is one week in the future, and not today's date.
31271         I.e., add a week when the wday is the same as the current one.
31272         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
31273         and earlier by Martin Bernreuther and Jan Minář.
31274         * tests/test-getdate.c (main): Check that "next DAY" is always in
31275         the future and that "last DAY" is always in the past.
31276
31277 2009-05-02  Jim Meyering  <meyering@redhat.com>
31278
31279         build: ensure that a release build fails when a submodule is unclean
31280         * top/maint.mk (no-submodule-changes): New rule.
31281         (alpha beta major): Depend on it.
31282
31283 2009-05-02  Bruno Haible  <bruno@clisp.org>
31284
31285         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
31286         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
31287         shell variable gl_fnmatch_required to detect which variant is
31288         requested.
31289         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
31290         gl_FUNC_FNMATCH_POSIX.
31291         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
31292         exclude fnmatch-posix.
31293
31294 2009-05-02  Bruno Haible  <bruno@clisp.org>
31295
31296         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
31297         * modules/mbsrtowcs (License): Change to LGPLv2+.
31298         * modules/strnlen1 (License): Likewise.
31299         Reported by Simon Josefsson.
31300
31301 2009-05-02  Bruno Haible  <bruno@clisp.org>
31302
31303         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
31304         "cross".
31305         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
31306         gnulib-tool was called with option --source-base=lib.
31307
31308 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31309
31310         Use automake *-local hooks without commands, for extensibility.
31311         * modules/localcharset (Makefile.am): Rename install-exec-local
31312         rule to install-exec-localcharset, and make it a prerequisite of
31313         install-exec-local.  Likewise, rename the uninstall-local rule to
31314         uninstall-localcharset, and make it a prerequisite of the former.
31315
31316 2009-05-01  Bruno Haible  <bruno@clisp.org>
31317
31318         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
31319         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31320         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
31321         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
31322         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
31323         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31324         m4/locale-zh.m4, m4/codeset.m4.
31325
31326         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31327         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
31328         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31329         m4/locale-zh.m4.
31330
31331         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
31332         REPLACE_WCRTOMB if mbstate_t must be replaced.
31333         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
31334         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
31335
31336 2009-05-01  Bruno Haible  <bruno@clisp.org>
31337
31338         Avoid compiler warnings when redefining macros defined by <libintl.h>.
31339         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
31340         dngettext, dcngettext, textdomain, bindtextdomain,
31341         bind_textdomain_codeset): Undefine before redefining.
31342
31343 2009-04-30  Bruno Haible  <bruno@clisp.org>
31344
31345         Fix bug introduced on 2009-04-25.
31346         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
31347         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
31348         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
31349         is defined.
31350         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
31351         is defined.
31352         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
31353         is defined.
31354         Reported by Elbert_Pol <elbert.pol@gmail.com>.
31355
31356 2009-04-28  Bruno Haible  <bruno@clisp.org>
31357
31358         Comment tweaks.
31359         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
31360         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
31361         * lib/unicase.h (u*_casexfrm): Likewise.
31362         Reported by Paolo Bonzini.
31363
31364 2009-04-28  Bruno Haible  <bruno@clisp.org>
31365
31366         Fix a compilation error.
31367         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
31368         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31369         Reported by Jim Meyering.
31370
31371 2009-04-27  Bruno Haible  <bruno@clisp.org>
31372
31373         New module 'libunistring'.
31374         * modules/libunistring: New file.
31375         * m4/libunistring.m4: New file.
31376         * MODULES.html.sh (Unicode string functions): Add it.
31377
31378 2009-04-27  Eric Blake  <ebb9@byu.net>
31379
31380         maint.mk: allow package-specific header to provide <config.h>
31381         * top/maint.mk (sc_require_config_h): New variable.
31382         (sc_require_config_h, sc_require_config_h_first): Use it.
31383
31384 2009-04-27  Simon Josefsson  <simon@josefsson.org>
31385
31386         * top/maint.mk (sc_avoid_if_before_free): Except
31387         useless-if-before-free script.
31388
31389 2009-04-27  Eric Blake  <ebb9@byu.net>
31390
31391         maintainer-makefile: depend on all required helper scripts
31392         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
31393         useless-if-before-free.
31394         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
31395         version, rather than assuming gnulib checkout is available.
31396         Reported by Simen Josefsson.
31397
31398 2009-04-26  Bruno Haible  <bruno@clisp.org>
31399
31400         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
31401         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
31402         "../" or "..".
31403
31404 2009-04-26  Bruno Haible  <bruno@clisp.org>
31405
31406         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
31407         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
31408         AC_LIB_HAVE_LINKFLAGS.
31409
31410 2009-04-26  Bruno Haible  <bruno@clisp.org>
31411
31412         Simplify calling convention of u*_conv_from_encoding.
31413         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
31414         u32_conv_from_encoding): Expect a resultbuf argument and return the
31415         result directly as a pointer.
31416         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
31417         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
31418         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
31419         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
31420         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
31421         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31422         Update.
31423         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
31424         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
31425         * lib/vasnprintf.c (VASNPRINTF): Update.
31426         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
31427         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
31428         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
31429         * NEWS: Mention the change.
31430
31431 2009-04-26  Bruno Haible  <bruno@clisp.org>
31432
31433         Simplify calling convention of u*_conv_to_encoding.
31434         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
31435         u32_conv_to_encoding): Expect a resultbuf argument and return the
31436         result directly as a pointer.
31437         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31438         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
31439         freeing scaled_offsets if mem_iconveha failed.
31440         * lib/unicase/u-casexfrm.h (FUNC): Update.
31441         * lib/uninorm/u-normxfrm.h (FUNC): Update.
31442         * lib/vasnprintf.c (VASNPRINTF): Update.
31443         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
31444         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
31445         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
31446         * NEWS: Mention the change.
31447
31448 2009-04-26  Bruno Haible  <bruno@clisp.org>
31449
31450         Avoid test failures on AIX and OSF/1.
31451         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
31452         malloc(0).
31453         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31454         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31455         Likewise.
31456         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
31457         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
31458         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
31459         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
31460         * doc/posix-functions/malloc.texi: Document the portability problem
31461         related to malloc(0).
31462
31463 2009-04-26  Bruno Haible  <bruno@clisp.org>
31464
31465         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
31466         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
31467         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
31468
31469 2009-04-25  Bruno Haible  <bruno@clisp.org>
31470
31471         Avoid link error when creating a namespace clean library.
31472         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
31473         as macro with arguments if already defined as an alias.
31474         * lib/signbitf.c (gl_signbitf): Don't undefine.
31475         * lib/signbitd.c (gl_signbitd): Don't undefine.
31476         * lib/signbitl.c (gl_signbitl): Don't undefine.
31477
31478 2009-04-25  Jim Meyering  <meyering@redhat.com>
31479
31480         vc-list-files: fix another quoting bug
31481         * build-aux/vc-list-files: Avoid sed backslash expansion
31482         of pathological directory names.
31483
31484 2009-04-25  Eric Blake  <ebb9@byu.net>
31485
31486         vc-list-files: fix shell quoting error
31487         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
31488         timestamp.
31489
31490 2009-04-25  Jim Meyering  <meyering@redhat.com>
31491
31492         vc-list-files: restore lost functionality with subdir argument
31493         * build-aux/vc-list-files: When given a non-"." sub-directory
31494         argument, substitute the $dir/ prefix back onto each resulting name.
31495         Otherwise, coreutils' root_tests check would fail.
31496
31497 2009-04-24  Eric Blake  <ebb9@byu.net>
31498
31499         vc-list-files: ignore git symlinks
31500         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
31501         than ls-files, to ignore git symlinks.
31502
31503         maint.mk: import improvements from m4
31504         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
31505         (move_if_change): Delete unused macro.
31506         (news-date-check, vc-diff-check): Support VPATH builds.
31507         (announcement): Likewise.  Split --bootstrap-tools list...
31508         (boostrap-tools): ...into separate list, which can be overridden
31509         in cfg.mk.
31510         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
31511         requiring dependency on useless-if-before-free module.
31512         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
31513         Support VPATH builds.
31514
31515 2009-04-24  Jim Meyering  <meyering@redhat.com>
31516
31517         maint.mk: remove coreutils-specific rules and variables
31518         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
31519         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
31520         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
31521
31522         maint.mk: remove obsolete rule
31523         * top/maint.mk (rel-check): Remove rule.
31524         (WGET, WGETFLAGS): Remove now-unused variables.
31525
31526 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31527
31528         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
31529         consistency.
31530
31531         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
31532         '$(PATH_SEPARATOR)' instead of ':'.
31533
31534 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31535
31536         * lib/getopt1.c (main): Use 'const' for static array.
31537
31538 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31539
31540         * top/maint.mk: Sync with coreutils.
31541         * NEWS: Explain incompatibilities.
31542
31543 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31544             Bruno Haible  <bruno@clisp.org>
31545
31546         Fix cross-compilation results.
31547         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
31548         statement, as third argument of AC_TRY_RUN.
31549         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31550         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31551         Likewise.
31552         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31553         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
31554         Likewise.
31555         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31556         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
31557         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
31558
31559 2009-04-20  Bruno Haible  <bruno@clisp.org>
31560
31561         Avoid test failure on mingw.
31562         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
31563
31564 2009-04-20  Bruno Haible  <bruno@clisp.org>
31565
31566         Avoid compilation error on mingw.
31567         * modules/localename-tests (Depends-on): Add locale.
31568
31569 2009-04-19  Bruno Haible  <bruno@clisp.org>
31570
31571         Support for building a shared library on Windows platforms.
31572         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
31573         (main): Test the presence of UNINORM_NFC here.
31574         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
31575         (main): Test the presence of UNINORM_NFD here.
31576         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
31577         (main): Test the presence of UNINORM_NFKC here.
31578         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
31579         (main): Test the presence of UNINORM_NFKD here.
31580
31581 2009-04-19  Bruno Haible  <bruno@clisp.org>
31582
31583         Avoid a compiler warning.
31584         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
31585         Change type of variable 'sequence'.
31586
31587 2009-04-19  Bruno Haible  <bruno@clisp.org>
31588
31589         * modules/configmake (Makefile.am): When the contents of configmake.h
31590         does not change, arrange to preserve its modification time.
31591
31592 2009-04-17  Simon Josefsson  <simon@josefsson.org>
31593
31594         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
31595         gettext domain.
31596
31597 2009-04-16  Jim Meyering  <meyering@redhat.com>
31598
31599         useless-if-before-free: improve conversion code
31600         * build-aux/useless-if-before-free: Adjust code-in-comment to match
31601         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
31602
31603 2009-04-14  Bruno Haible  <bruno@clisp.org>
31604
31605         * modules/fcntl (Depends-on): Add extensions.
31606         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
31607
31608 2009-04-12  Ben Pfaff  <blp@gnu.org>
31609
31610         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
31611         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
31612
31613 2009-03-20  Ben Pfaff  <blp@gnu.org>
31614
31615         Make rename replace existing destinations on Windows.
31616         * m4/rename.m4: Add test for Mingw.
31617         * lib/rename.c: Add rename replacement that uses MoveFileEx with
31618         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
31619         * doc/posix-functions/rename.texi: Document.
31620
31621 2009-04-10  Bruno Haible  <bruno@clisp.org>
31622
31623         New include file "iconveh.h".
31624         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
31625         * lib/striconveh.h: Include it.
31626         (enum iconv_ilseq_handler): Remove definition.
31627         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
31628         striconveh.h.
31629         * lib/striconveha.c: Include striconveh.h.
31630         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
31631         * modules/striconveh (Files): Add lib/iconveh.h.
31632         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
31633         lib/striconveh.h.
31634
31635 2009-04-10  Bruno Haible  <bruno@clisp.org>
31636
31637         * lib/uniconv.h: Update comment.
31638
31639 2009-04-10  Bruno Haible  <bruno@clisp.org>
31640
31641         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
31642         always.
31643         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31644         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31645         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31646         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
31647         "unistring-notinline.h", so that the function gets defined always.
31648         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31649         * lib/unistr/u8-uctomb.c: Likewise.
31650         * lib/unistr/u16-mbtouc.c: Likewise.
31651         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31652         * lib/unistr/u16-uctomb.c: Likewise.
31653         * lib/unistr/u32-mbtouc.c: Likewise.
31654         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31655         * lib/unistr/u32-uctomb.c: Likewise.
31656
31657 2009-04-10  Bruno Haible  <bruno@clisp.org>
31658
31659         Mark 'utime' obsolete.
31660         * modules/utime (Status, Notice): New sections.
31661         Suggested by Jim Meyering.
31662
31663         Fix cross-compile guess for utime test.
31664         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
31665         autoconf.
31666         * doc/posix-functions/utime.texi: Give more precisions.
31667         Reported by Jan <ipif@ymail.com>.
31668
31669 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
31670
31671         filevercmp: correct today's change
31672         * lib/filevercmp.c: Also handle coreutils' test inputs.
31673         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
31674
31675         Fix regression in 'filevercmp' module. Thanks Sven Joachim
31676         for reporting it.
31677         * lib/filevercmp.c: Special handle for "", "." and "..".
31678         * tests/test-filevercmp.c: Enlarge the set suite.
31679
31680 2009-04-07  Jim Meyering  <meyering@redhat.com>
31681
31682         useless-if-before-free: show how to remove braced useless free, too
31683         * build-aux/useless-if-before-free: still only in a comment, though.
31684
31685 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
31686
31687         maint.mk: import changes to syntax-check macros from coreutils
31688         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
31689         Use them in the relevant macros.
31690
31691 2009-04-06  Bruno Haible  <bruno@clisp.org>
31692
31693         Fix unportable use of bit-fields.
31694         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
31695         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
31696         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
31697
31698 2009-04-06  Bruno Haible  <bruno@clisp.org>
31699
31700         Avoid test failures on AIX and OSF/1.
31701         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
31702         that malloc(0) = NULL.
31703         * tests/unicase/test-u8-tolower.c (check): Likewise.
31704         * tests/unicase/test-u8-totitle.c (check): Likewise.
31705         * tests/unicase/test-u8-toupper.c (check): Likewise.
31706         * tests/unicase/test-u16-casefold.c (check): Likewise.
31707         * tests/unicase/test-u16-tolower.c (check): Likewise.
31708         * tests/unicase/test-u16-totitle.c (check): Likewise.
31709         * tests/unicase/test-u16-toupper.c (check): Likewise.
31710         * tests/unicase/test-u32-casefold.c (check): Likewise.
31711         * tests/unicase/test-u32-tolower.c (check): Likewise.
31712         * tests/unicase/test-u32-totitle.c (check): Likewise.
31713         * tests/unicase/test-u32-toupper.c (check): Likewise.
31714         * tests/uninorm/test-u8-nfc.c (check): Likewise.
31715         * tests/uninorm/test-u8-nfd.c (check): Likewise.
31716         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
31717         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
31718         * tests/uninorm/test-u16-nfc.c (check): Likewise.
31719         * tests/uninorm/test-u16-nfd.c (check): Likewise.
31720         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
31721         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
31722         * tests/uninorm/test-u32-nfc.c (check): Likewise.
31723         * tests/uninorm/test-u32-nfd.c (check): Likewise.
31724         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
31725         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
31726
31727 2009-04-05  Bruno Haible  <bruno@clisp.org>
31728
31729         Work around an autoconf limitation.
31730         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
31731         comment line if it would be longer than 3 KB.
31732
31733 2009-04-05  Bruno Haible  <bruno@clisp.org>
31734
31735         Avoid test failure with libiconv-1.13.
31736         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
31737         of the expected test results.
31738
31739 2009-04-05  Bruno Haible  <bruno@clisp.org>
31740
31741         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
31742         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
31743         that it should be installed.
31744
31745 2009-04-05  Bruno Haible  <bruno@clisp.org>
31746
31747         * gnulib-tool: New option --copy-file.
31748         (func_usage): Document it.
31749         (func_dest_tmpfilename): Moved out of func_import.
31750         (func_add_file, func_update_file): New functions, extracted from
31751         func_import.
31752         (func_import): Update.
31753
31754 2009-04-05  Karl Berry  <karl@gnu.org>
31755
31756         * README: prominently mention gnulib-tool.
31757         Rearrange sections so getting the code is near the top.
31758
31759 2009-04-05  Bruno Haible  <bruno@clisp.org>
31760
31761         * lib/unicase.h: Mention u*_cmp2.
31762         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
31763         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
31764         * lib/unicase/ulc-casecmp.c: Likewise.
31765         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
31766         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
31767         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
31768         unistr/u8-cmp.
31769         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
31770         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
31771         unistr/u16-cmp.
31772         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
31773         unistr/u32-cmp.
31774
31775         * lib/uninorm.h: Mention u*_cmp2.
31776         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
31777         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
31778         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
31779         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
31780         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
31781         unistr/u8-cmp.
31782         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
31783         unistr/u16-cmp.
31784         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
31785         unistr/u32-cmp.
31786
31787         New module 'unistr/u32-cmp2'.
31788         * lib/unistr/u32-cmp2.c: New file.
31789         * modules/unistr/u32-cmp2: New file.
31790
31791         New module 'unistr/u16-cmp2'.
31792         * lib/unistr/u16-cmp2.c: New file.
31793         * modules/unistr/u16-cmp2: New file.
31794
31795         New module 'unistr/u8-cmp2'.
31796         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
31797         * lib/unistr/u8-cmp2.c: New file.
31798         * lib/unistr/u-cmp2.h: New file.
31799         * modules/unistr/u8-cmp2: New file.
31800
31801 2009-04-05  Bruno Haible  <bruno@clisp.org>
31802
31803         * lib/unictype.h (uc_property_is_valid): New macro.
31804         * tests/unictype/test-pr_byname.c (main): Use it.
31805
31806         * lib/unistr.h: Doc fixes.
31807         * lib/uniconv.h: Doc fixes.
31808         * lib/unictype.h: Doc fixes.
31809
31810 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
31811
31812         Port coreutils 7.2 to Solaris 8.
31813
31814         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
31815         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
31816         for Solaris 8.  This is a bit of a hack, as it means it's the
31817         caller's responsibility to add -lnsl if needed, but most likely it
31818         won't be needed since only getaddrinfo uses this and getaddrinfo
31819         isn't needed on Solaris 8.
31820
31821         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
31822         problem to Solaris 8 encountered with coreutils 7.2, which
31823         resulted in a message "fnmatch.c:292: warning: passing argument 4
31824         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
31825         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
31826
31827 2009-04-03  Simon Josefsson  <simon@josefsson.org>
31828
31829         * m4/ld-version-script.m4: Add FIXME comment.
31830
31831 2009-04-02  Simon Josefsson  <simon@josefsson.org>
31832
31833         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
31834         SOVERSION variable.
31835
31836 2009-04-02  Bruno Haible  <bruno@clisp.org>
31837
31838         * Makefile (info, html, dvi, pdf): Combine the rules.
31839         Suggested by Jim Meyering.
31840
31841 2009-04-01  Bruno Haible  <bruno@clisp.org>
31842
31843         * Makefile (info, html, dvi, pdf): New targets.
31844         Reported by Reuben Thomas <rrt@sc3d.org>.
31845
31846 2009-04-01  Bruno Haible  <bruno@clisp.org>
31847
31848         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
31849         can be put into PATH.
31850         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
31851
31852 2009-04-01  Bruno Haible  <bruno@clisp.org>
31853
31854         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
31855
31856 2009-04-01  Bruno Haible  <bruno@clisp.org>
31857
31858         Rename module 'visibility'.
31859         * modules/lib-symbol-visibility: Renamed from modules/visibility.
31860         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
31861         * doc/gnulib.texi: Update.
31862         * MODULES.html.sh (Misc): Update.
31863         * NEWS: Mention the change.
31864
31865 2009-04-01  Simon Josefsson  <simon@josefsson.org>
31866
31867         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
31868         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
31869         Eric Blake <ebb9@byu.net> for review.
31870         * MODULES.html.sh: Add lib-msvc-compat.
31871         * doc/gnulib.texi: Link to new section.
31872         * m4/ld-output-def.m4: New file.
31873         * doc/ld-output-def.texi: New file.
31874
31875 2009-04-01  Simon Josefsson  <simon@josefsson.org>
31876
31877         Rename ld-version-script to lib-symbol-versions.  Suggested by
31878         Bruno Haible <bruno@clisp.org>.
31879         * modules/ld-version-script: Renamed to lib-symbol-versions.
31880         * doc/ld-version-script.texi: Fix module name.
31881         * MODULES.html.sh: Add lib-symbol-versions.
31882
31883 2009-03-31  Simon Josefsson  <simon@josefsson.org>
31884
31885         * modules/u64-tests: New file.
31886         * tests/test-u64.c: New file.
31887
31888 2009-03-04  Simon Josefsson  <simon@josefsson.org>
31889
31890         * MODULES.html.sh: Mention u64.
31891         * modules/u64: New module.
31892         * modules/crypto/sha512: Depend on u64 module instead of providing
31893         u64.h.
31894
31895 2009-03-27  Eric Blake  <ebb9@byu.net>
31896
31897         test-strerror: make debugging EAI_SYSTEM easier
31898         * modules/getaddrinfo-tests (Depends-on): Add strerror.
31899         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
31900         failure was EAI_SYSTEM.
31901
31902 2009-03-25  Bruno Haible  <bruno@clisp.org>
31903
31904         Fix a problem with --enable-relocatable on Solaris 7.
31905         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
31906         since 2008-02-24.
31907
31908 2009-03-25  Eric Blake  <ebb9@byu.net>
31909
31910         test-sockets: avoid gcc warning
31911         * tests/test-sockets.c (main): Silence compiler warning.
31912
31913 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
31914
31915         New modules nproc, pthread, contributed by Glen Lenker.
31916
31917         * MODULES.html.sh: Add pthread, nproc.
31918         * lib/nproc.c: New file.
31919         * lib/nproc.h: New file.
31920         * lib/pthread.in.h: New file.
31921         * m4/pthread.m4: New file.
31922         * modules/nproc: New file.
31923         * modules/pthread: New file.
31924
31925 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31926
31927         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
31928         New variable.
31929
31930 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
31931
31932         filevercmp: handle simple~ and numbered.~3~ backup suffixes
31933         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
31934         * tests/test-filevercmp.c: Add tests for backup suffixes.
31935
31936 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31937
31938         * modules/stdlib (Depends-on): Add stdint, needed when defining
31939         struct random_data on, for example, HP-UX 10.20.  Reported by
31940         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31941
31942 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31943
31944         * lib/readline.c (readline): Call fflush on stdout after printing
31945         prompt.
31946
31947 2009-03-20  Bruno Haible  <bruno@clisp.org>
31948
31949         Remove dependency from 'close' module to -lws2_32 on native Windows.
31950         * lib/close-hook.h: New file.
31951         * lib/close-hook.c: New file.
31952         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
31953         w32sock.h.
31954         (_gl_close_fd_maybe_socket): Remove function.
31955         (rpl_close): Invoke execute_all_close_hooks instead of
31956         _gl_close_fd_maybe_socket.
31957         * lib/sockets.c: Include close-hook.h, w32sock.h.
31958         (close_fd_maybe_socket): New function, essentially from lib/close.c.
31959         (close_sockets_hook): New variable.
31960         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
31961         (gl_sockets_cleanup): Unregister it.
31962         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
31963         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
31964         * modules/close-hook: New file.
31965         * modules/close (Files): Remove lib/w32sock.h.
31966         (Depends-on): Add close-hook.
31967         (Link): Remove section.
31968         * modules/sockets (Files): Add lib/w32sock.h.
31969         (Depends-on): Add close-hook.
31970         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
31971         invocation.
31972         * NEWS: Mention that LIB_CLOSE is gone.
31973
31974 2009-03-23  Eric Blake  <ebb9@byu.net>
31975
31976         signal-tests: test previous patch
31977         * tests/test-signal.c: New file.
31978         * modules/signal-tests: Likewise.
31979
31980         signal.h: always support 'volatile sig_atomic_t'
31981         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
31982         (gl_SIGNAL_H_DEFAULTS): Add a default.
31983         * modules/signal (Makefile.am): Substitute if needed.
31984         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
31985         users can blindly add volatile.
31986         * doc/posix-headers/signal.texi (signal.h): Document it.
31987         Reported by Matthew Woehlke.
31988
31989 2009-03-23  Jim Meyering  <meyering@redhat.com>
31990
31991         pathmax: PATH_MAX: use pathconf only when available
31992         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
31993         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
31994         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
31995         This avoids a link failure in a PSP cross-compilation environment
31996         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
31997
31998         * lib/vasnprintf.c (divide): Fix typo in comment.
31999
32000 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32001
32002         * gnulib-tool (func_filter_filelist): Fix comment.
32003
32004 2009-03-20  Bruno Haible  <bruno@clisp.org>
32005
32006         Make sockets.h self-contained.
32007         * lib/sockets.c: Include sockets.h first.
32008         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
32009
32010 2009-03-19  Eric Blake  <ebb9@byu.net>
32011
32012         doc: mention more functions added in cygwin 1.7.0
32013         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
32014         addition.
32015         * doc/posix-functions/log2f.texi: Likewise.
32016
32017 2009-03-19  Jim Meyering  <meyering@redhat.com>
32018
32019         fsusage: avoid syntax error due to statement-before-declaration
32020         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
32021         after all declarations.  Reported by Matthew Woehlke in
32022         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
32023
32024 2009-03-18  Eric Blake  <ebb9@byu.net>
32025
32026         build-aux/compile: sync from automake
32027         * build-aux/compile: New file, from automake.
32028         * config/srclist.txt: Mention build-aux/compile.
32029
32030 2009-03-17  Bruno Haible  <bruno@clisp.org>
32031
32032         * lib/git-merge-changelog.c: Fix typo in comment.
32033         Reported by Reuben Thomas <rrt@sc3d.org>.
32034
32035 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
32036
32037         * m4/regex.m4: update and improve help for
32038         --without-included-regex.
32039
32040 2009-03-17  Simon Josefsson  <simon@josefsson.org>
32041
32042         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
32043         failure on missing include files.
32044
32045 2009-03-17  Eric Blake  <ebb9@byu.net>
32046
32047         doc: mention more functions added in cygwin 1.7.0
32048         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
32049         addition.
32050         * doc/posix-functions/fwscanf.texi: Likewise.
32051         * doc/posix-functions/swprintf.texi: Likewise.
32052         * doc/posix-functions/swscanf.texi: Likewise.
32053         * doc/posix-functions/vfwprintf.texi: Likewise.
32054         * doc/posix-functions/vfwscanf.texi: Likewise.
32055         * doc/posix-functions/vswprintf.texi: Likewise.
32056         * doc/posix-functions/vswscanf.texi: Likewise.
32057         * doc/posix-functions/vwprintf.texi: Likewise.
32058         * doc/posix-functions/vwscanf.texi: Likewise.
32059         * doc/posix-functions/wcscasecmp.texi: Likewise.
32060         * doc/posix-functions/wcsdup.texi: Likewise.
32061         * doc/posix-functions/wcsftime.texi: Likewise.
32062         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32063         * doc/posix-functions/wprintf.texi: Likewise.
32064         * doc/posix-functions/wscanf.texi: Likewise.
32065         * doc/glibc-functions/gethostbyname2.texi: Likewise.
32066
32067 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32068
32069         maint.mk: really add $(AM_MAKEFLAGS)
32070         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
32071         was inadvertently omitted in the last commit.
32072         Spotted by Bruno Haible.
32073
32074         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
32075         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
32076         $(AM_MAKEFLAGS)' rather than plain `make'.
32077
32078         gnulib-tool: execute $MAKE not make
32079         * gnulib-tool: Default $MAKE to 'make'.
32080         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
32081         than make.  Initialize $MAKE in the do-autobuild script.
32082
32083         gnulib-tool: use $MAKE not make in generated files
32084         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
32085         make, in generated files.  Initialize $MAKE in the do-autobuild
32086         script.
32087
32088         * top/GNUmakefile (_have-git-version-gen): Fix typo.
32089
32090         GNUmakefile: disable parallelism only for multiple, recursive targets
32091         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
32092         additions in the Makefile.
32093         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
32094         by Automake.
32095         (.NOTPARALLEL): Only disable parallel builds if multiple targets
32096         are listed on the command line and at least one of them is
32097         listed in $(ALL_RECURSIVE_TARGETS).
32098
32099 2009-03-14  Bruno Haible  <bruno@clisp.org>
32100
32101         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
32102         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
32103         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
32104         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
32105         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
32106         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
32107         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
32108         unistr/u8-uctomb.
32109         * modules/unistr/u8-strchr (Depends-on): Likewise.
32110         * modules/unistr/u8-strrchr (Depends-on): Likewise.
32111         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
32112         unistr/u16-uctomb.
32113         * modules/unistr/u16-strchr (Depends-on): Likewise.
32114         * modules/unistr/u16-strrchr (Depends-on): Likewise.
32115
32116 2009-03-12  Bruno Haible  <bruno@clisp.org>
32117
32118         Work around select() bug on Interix 3.5.
32119         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
32120         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
32121         * m4/select.m4: New file.
32122         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
32123         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
32124         * modules/select (Files): Add m4/select.m4.
32125         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
32126         * modules/nanosleep (Depends-on): Add select.
32127         * modules/poll (Depends-on): Likewise.
32128         * doc/posix-functions/select.texi: Mention the Interix bug.
32129         Reported by Markus Duft <mduft@gentoo.org>.
32130
32131         * lib/select.c: Renamed from lib/winsock-select.c.
32132         * modules/select (Files): Add lib/select.c, remove
32133         lib/winsock-select.c.
32134         (configure.ac): Update.
32135
32136 2009-03-12  Jim Meyering  <meyering@redhat.com>
32137
32138         avoid gcc warnings about unused macro definitions
32139         * lib/readtokens.c (STREQ): Remove unused definition.
32140         * lib/xmalloc.c (SIZE_MAX): Likewise.
32141         * lib/openat-die.c (N_): Likewise.
32142         * lib/mountlist.c (SIZE_MAX): Remove definition.
32143         Instead, include <stdint.h>.
32144         * lib/readutmp.c: Likewise.
32145         * modules/readutmp (Depends-on): Add stdint.
32146         * modules/mountlist (Depends-on): Add stdint.
32147         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
32148
32149 2009-03-10  Bruno Haible  <bruno@clisp.org>
32150
32151         Tests for module 'mbmemcasecoll'.
32152         * modules/mbmemcasecoll-tests: New file.
32153         * tests/test-mbmemcasecoll1.sh: New file.
32154         * tests/test-mbmemcasecoll2.sh: New file.
32155         * tests/test-mbmemcasecoll3.sh: New file.
32156         * tests/test-mbmemcasecoll.c: New file.
32157
32158         New module 'mbmemcasecoll'.
32159         * lib/mbmemcasecoll.h: New file.
32160         * lib/mbmemcasecoll.c: New file.
32161         * modules/mbmemcasecoll: New file.
32162
32163         * tests/test-mbmemcasecmp.h: New file, extracted from
32164         tests/test-mbmemcasecmp.c.
32165         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
32166         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
32167         (main): Update.
32168         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
32169
32170 2009-03-09  Bruno Haible  <bruno@clisp.org>
32171
32172         Tests for module 'mbmemcasecmp'.
32173         * modules/mbmemcasecmp-tests: New file.
32174         * tests/test-mbmemcasecmp1.sh: New file.
32175         * tests/test-mbmemcasecmp2.sh: New file.
32176         * tests/test-mbmemcasecmp3.sh: New file.
32177         * tests/test-mbmemcasecmp.c: New file.
32178
32179         New module 'mbmemcasecmp'.
32180         * lib/mbmemcasecmp.h: New file.
32181         * lib/mbmemcasecmp.c: New file.
32182         * modules/mbmemcasecmp: New file.
32183
32184 2009-03-09  Bruno Haible  <bruno@clisp.org>
32185
32186         Tests for module 'unicase/ulc-casecoll'.
32187         * modules/unicase/ulc-casecoll-tests: New file.
32188         * tests/unicase/test-ulc-casecoll1.sh: New file.
32189         * tests/unicase/test-ulc-casecoll2.sh: New file.
32190         * tests/unicase/test-ulc-casecoll.c: New file.
32191
32192         New module 'unicase/ulc-casecoll'.
32193         * lib/unicase.h (ulc_casecoll): New declaration.
32194         * lib/unicase/ulc-casecoll.c: New file.
32195         * modules/unicase/ulc-casecoll: New file.
32196
32197         New module 'unicase/ulc-casexfrm'.
32198         * lib/unicase.h (ulc_casexfrm): New declaration.
32199         * lib/unicase/ulc-casexfrm.c: New file.
32200         * modules/unicase/ulc-casexfrm: New file.
32201
32202 2009-03-09  Bruno Haible  <bruno@clisp.org>
32203
32204         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
32205         invocations.
32206
32207         * m4/mbscasecmp.m4: Remove file.
32208         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
32209         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
32210
32211         * m4/mbscasestr.m4: Remove file.
32212         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
32213         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
32214
32215         * m4/mbschr.m4: Remove file.
32216         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
32217         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
32218
32219         * m4/mbscspn.m4: Remove file.
32220         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
32221         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
32222
32223         * m4/mbslen.m4: Remove file.
32224         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
32225         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
32226
32227         * m4/mbsncasecmp.m4: Remove file.
32228         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
32229         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
32230
32231         * m4/mbsnlen.m4: Remove file.
32232         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
32233         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
32234
32235         * m4/mbspbrk.m4: Remove file.
32236         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
32237         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
32238
32239         * m4/mbspcasecmp.m4: Remove file.
32240         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
32241         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
32242
32243         * m4/mbsrchr.m4: Remove file.
32244         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
32245         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
32246
32247         * m4/mbssep.m4: Remove file.
32248         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
32249         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
32250
32251         * m4/mbsspn.m4: Remove file.
32252         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
32253         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
32254
32255         * m4/mbsstr.m4: Remove file.
32256         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
32257         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
32258
32259         * m4/mbstok_r.m4: Remove file.
32260         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
32261         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
32262
32263         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
32264
32265         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
32266         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
32267
32268         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
32269
32270 2009-03-08  Bruno Haible  <bruno@clisp.org>
32271
32272         Tests for module 'unicase/ulc-casecmp'.
32273         * modules/unicase/ulc-casecmp-tests: New file.
32274         * tests/unicase/test-ulc-casecmp1.sh: New file.
32275         * tests/unicase/test-ulc-casecmp2.sh: New file.
32276         * tests/unicase/test-ulc-casecmp.c: New file.
32277
32278         New module 'unicase/ulc-casecmp'.
32279         * lib/unicase.h (ulc_casecmp): New declaration.
32280         * lib/unicase/ulc-casecmp.c: New file.
32281         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
32282         'const SRC_UNIT *'.
32283         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
32284         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
32285         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
32286         * modules/unicase/ulc-casecmp: New file.
32287
32288         Tests for module 'unicase/u32-is-cased'.
32289         * modules/unicase/u32-is-cased-tests: New file.
32290         * tests/unicase/test-u32-is-cased.c: New file.
32291
32292         Tests for module 'unicase/u16-is-cased'.
32293         * modules/unicase/u16-is-cased-tests: New file.
32294         * tests/unicase/test-u16-is-cased.c: New file.
32295
32296         Tests for module 'unicase/u8-is-cased'.
32297         * modules/unicase/u8-is-cased-tests: New file.
32298         * tests/unicase/test-u8-is-cased.c: New file.
32299         * tests/unicase/test-is-cased.h: New file.
32300
32301         New module 'unicase/u32-is-cased'.
32302         * lib/unicase/u32-is-cased.c: New file.
32303         * modules/unicase/u32-is-cased: New file.
32304
32305         New module 'unicase/u16-is-cased'.
32306         * lib/unicase/u16-is-cased.c: New file.
32307         * modules/unicase/u16-is-cased: New file.
32308
32309         New module 'unicase/u8-is-cased'.
32310         * lib/unicase/u8-is-cased.c: New file.
32311         * lib/unicase/u-is-cased.h: New file.
32312         * modules/unicase/u8-is-cased: New file.
32313
32314         Tests for module 'unicase/u32-is-casefolded'.
32315         * modules/unicase/u32-is-casefolded-tests: New file.
32316         * tests/unicase/test-u32-is-casefolded.c: New file.
32317
32318         Tests for module 'unicase/u16-is-casefolded'.
32319         * modules/unicase/u16-is-casefolded-tests: New file.
32320         * tests/unicase/test-u16-is-casefolded.c: New file.
32321
32322         Tests for module 'unicase/u8-is-casefolded'.
32323         * modules/unicase/u8-is-casefolded-tests: New file.
32324         * tests/unicase/test-u8-is-casefolded.c: New file.
32325         * tests/unicase/test-is-casefolded.h: New file.
32326
32327         New module 'unicase/u32-is-casefolded'.
32328         * lib/unicase/u32-is-casefolded.c: New file.
32329         * modules/unicase/u32-is-casefolded: New file.
32330
32331         New module 'unicase/u16-is-casefolded'.
32332         * lib/unicase/u16-is-casefolded.c: New file.
32333         * modules/unicase/u16-is-casefolded: New file.
32334
32335         New module 'unicase/u8-is-casefolded'.
32336         * lib/unicase/u8-is-casefolded.c: New file.
32337         * modules/unicase/u8-is-casefolded: New file.
32338
32339         Tests for module 'unicase/u32-is-titlecase'.
32340         * modules/unicase/u32-is-titlecase-tests: New file.
32341         * tests/unicase/test-u32-is-titlecase.c: New file.
32342
32343         Tests for module 'unicase/u16-is-titlecase'.
32344         * modules/unicase/u16-is-titlecase-tests: New file.
32345         * tests/unicase/test-u16-is-titlecase.c: New file.
32346
32347         Tests for module 'unicase/u8-is-titlecase'.
32348         * modules/unicase/u8-is-titlecase-tests: New file.
32349         * tests/unicase/test-u8-is-titlecase.c: New file.
32350         * tests/unicase/test-is-titlecase.h: New file.
32351
32352         New module 'unicase/u32-is-titlecase'.
32353         * lib/unicase/u32-is-titlecase.c: New file.
32354         * modules/unicase/u32-is-titlecase: New file.
32355
32356         New module 'unicase/u16-is-titlecase'.
32357         * lib/unicase/u16-is-titlecase.c: New file.
32358         * modules/unicase/u16-is-titlecase: New file.
32359
32360         New module 'unicase/u8-is-titlecase'.
32361         * lib/unicase/u8-is-titlecase.c: New file.
32362         * modules/unicase/u8-is-titlecase: New file.
32363
32364         Tests for module 'unicase/u32-is-lowercase'.
32365         * modules/unicase/u32-is-lowercase-tests: New file.
32366         * tests/unicase/test-u32-is-lowercase.c: New file.
32367
32368         Tests for module 'unicase/u16-is-lowercase'.
32369         * modules/unicase/u16-is-lowercase-tests: New file.
32370         * tests/unicase/test-u16-is-lowercase.c: New file.
32371
32372         Tests for module 'unicase/u8-is-lowercase'.
32373         * modules/unicase/u8-is-lowercase-tests: New file.
32374         * tests/unicase/test-u8-is-lowercase.c: New file.
32375         * tests/unicase/test-is-lowercase.h: New file.
32376
32377         New module 'unicase/u32-is-lowercase'.
32378         * lib/unicase/u32-is-lowercase.c: New file.
32379         * modules/unicase/u32-is-lowercase: New file.
32380
32381         New module 'unicase/u16-is-lowercase'.
32382         * lib/unicase/u16-is-lowercase.c: New file.
32383         * modules/unicase/u16-is-lowercase: New file.
32384
32385         New module 'unicase/u8-is-lowercase'.
32386         * lib/unicase/u8-is-lowercase.c: New file.
32387         * modules/unicase/u8-is-lowercase: New file.
32388
32389         Tests for module 'unicase/u32-is-uppercase'.
32390         * modules/unicase/u32-is-uppercase-tests: New file.
32391         * tests/unicase/test-u32-is-uppercase.c: New file.
32392
32393         Tests for module 'unicase/u16-is-uppercase'.
32394         * modules/unicase/u16-is-uppercase-tests: New file.
32395         * tests/unicase/test-u16-is-uppercase.c: New file.
32396
32397         Tests for module 'unicase/u8-is-uppercase'.
32398         * modules/unicase/u8-is-uppercase-tests: New file.
32399         * tests/unicase/test-u8-is-uppercase.c: New file.
32400         * tests/unicase/test-is-uppercase.h: New file.
32401
32402         New module 'unicase/u32-is-uppercase'.
32403         * lib/unicase/u32-is-uppercase.c: New file.
32404         * modules/unicase/u32-is-uppercase: New file.
32405
32406         New module 'unicase/u16-is-uppercase'.
32407         * lib/unicase/u16-is-uppercase.c: New file.
32408         * modules/unicase/u16-is-uppercase: New file.
32409
32410         New module 'unicase/u8-is-uppercase'.
32411         * lib/unicase/u8-is-uppercase.c: New file.
32412         * modules/unicase/u8-is-uppercase: New file.
32413
32414         New module 'unicase/u32-is-invariant'.
32415         * lib/unicase/u32-is-invariant.c: New file.
32416         * modules/unicase/u32-is-invariant: New file.
32417
32418         New module 'unicase/u16-is-invariant'.
32419         * lib/unicase/u16-is-invariant.c: New file.
32420         * modules/unicase/u16-is-invariant: New file.
32421
32422         New module 'unicase/u8-is-invariant'.
32423         * lib/unicase/u8-is-invariant.c: New file.
32424         * lib/unicase/invariant.h: New file.
32425         * lib/unicase/u-is-invariant.h: New file.
32426         * modules/unicase/u8-is-invariant: New file.
32427
32428         Tests for module 'unicase/u32-casecoll'.
32429         * modules/unicase/u32-casecoll-tests: New file.
32430         * tests/unicase/test-u32-casecoll.c: New file.
32431
32432         Tests for module 'unicase/u16-casecoll'.
32433         * modules/unicase/u16-casecoll-tests: New file.
32434         * tests/unicase/test-u16-casecoll.c: New file.
32435
32436         Tests for module 'unicase/u8-casecoll'.
32437         * modules/unicase/u8-casecoll-tests: New file.
32438         * tests/unicase/test-u8-casecoll.c: New file.
32439
32440         New module 'unicase/u32-casecoll'.
32441         * lib/unicase/u32-casecoll.c: New file.
32442         * modules/unicase/u32-casecoll: New file.
32443
32444         New module 'unicase/u16-casecoll'.
32445         * lib/unicase/u16-casecoll.c: New file.
32446         * modules/unicase/u16-casecoll: New file.
32447
32448         New module 'unicase/u8-casecoll'.
32449         * lib/unicase/u8-casecoll.c: New file.
32450         * lib/unicase/u-casecoll.h: New file.
32451         * modules/unicase/u8-casecoll: New file.
32452
32453         New module 'unicase/u32-casexfrm'.
32454         * lib/unicase/u32-casexfrm.c: New file.
32455         * modules/unicase/u32-casexfrm: New file.
32456
32457         New module 'unicase/u16-casexfrm'.
32458         * lib/unicase/u16-casexfrm.c: New file.
32459         * modules/unicase/u16-casexfrm: New file.
32460
32461         New module 'unicase/u8-casexfrm'.
32462         * lib/unicase/u8-casexfrm.c: New file.
32463         * lib/unicase/u-casexfrm.h: New file.
32464         * modules/unicase/u8-casexfrm: New file.
32465
32466         Tests for module 'unicase/u32-casecmp'.
32467         * modules/unicase/u32-casecmp-tests: New file.
32468         * tests/unicase/test-u32-casecmp.c: New file.
32469
32470         Tests for module 'unicase/u16-casecmp'.
32471         * modules/unicase/u16-casecmp-tests: New file.
32472         * tests/unicase/test-u16-casecmp.c: New file.
32473
32474         Tests for module 'unicase/u8-casecmp'.
32475         * modules/unicase/u8-casecmp-tests: New file.
32476         * tests/unicase/test-u8-casecmp.c: New file.
32477         * tests/unicase/test-casecmp.h: New file.
32478
32479         New module 'unicase/u32-casecmp'.
32480         * lib/unicase/u32-casecmp.c: New file.
32481         * modules/unicase/u32-casecmp: New file.
32482
32483         New module 'unicase/u16-casecmp'.
32484         * lib/unicase/u16-casecmp.c: New file.
32485         * modules/unicase/u16-casecmp: New file.
32486
32487         New module 'unicase/u8-casecmp'.
32488         * lib/unicase/u8-casecmp.c: New file.
32489         * lib/unicase/u-casecmp.h: New file.
32490         * modules/unicase/u8-casecmp: New file.
32491
32492         Tests for module 'unicase/u32-casefold'.
32493         * modules/unicase/u32-casefold-tests: New file.
32494         * tests/unicase/test-u32-casefold.c: New file.
32495
32496         Tests for module 'unicase/u16-casefold'.
32497         * modules/unicase/u16-casefold-tests: New file.
32498         * tests/unicase/test-u16-casefold.c: New file.
32499
32500         Tests for module 'unicase/u8-casefold'.
32501         * modules/unicase/u8-casefold-tests: New file.
32502         * tests/unicase/test-u8-casefold.c: New file.
32503
32504         New module 'unicase/u32-casefold'.
32505         * lib/unicase/u32-casefold.c: New file.
32506         * modules/unicase/u32-casefold: New file.
32507
32508         New module 'unicase/u16-casefold'.
32509         * lib/unicase/u16-casefold.c: New file.
32510         * modules/unicase/u16-casefold: New file.
32511
32512         New module 'unicase/u8-casefold'.
32513         * lib/unicase/u8-casefold.c: New file.
32514         * lib/unicase/u-casefold.h: New file.
32515         * modules/unicase/u8-casefold: New file.
32516
32517         New module 'unicase/tocasefold'.
32518         * lib/unicase/casefold.h: New file.
32519         * lib/unicase/tocasefold.c: New file.
32520         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
32521         * modules/unicase/tocasefold: New file.
32522
32523         Tests for module 'unicase/u32-totitle'.
32524         * modules/unicase/u32-totitle-tests: New file.
32525         * tests/unicase/test-u32-totitle.c: New file.
32526
32527         Tests for module 'unicase/u16-totitle'.
32528         * modules/unicase/u16-totitle-tests: New file.
32529         * tests/unicase/test-u16-totitle.c: New file.
32530
32531         Tests for module 'unicase/u8-totitle'.
32532         * modules/unicase/u8-totitle-tests: New file.
32533         * tests/unicase/test-u8-totitle.c: New file.
32534
32535         New module 'unicase/u32-totitle'.
32536         * lib/unicase/u32-totitle.c: New file.
32537         * modules/unicase/u32-totitle: New file.
32538
32539         New module 'unicase/u16-totitle'.
32540         * lib/unicase/u16-totitle.c: New file.
32541         * modules/unicase/u16-totitle: New file.
32542
32543         New module 'unicase/u8-totitle'.
32544         * lib/unicase/u8-totitle.c: New file.
32545         * lib/unicase/u-totitle.h: New file.
32546         * modules/unicase/u8-totitle: New file.
32547
32548         Tests for module 'unicase/u32-tolower'.
32549         * modules/unicase/u32-tolower-tests: New file.
32550         * tests/unicase/test-u32-tolower.c: New file.
32551
32552         Tests for module 'unicase/u16-tolower'.
32553         * modules/unicase/u16-tolower-tests: New file.
32554         * tests/unicase/test-u16-tolower.c: New file.
32555
32556         Tests for module 'unicase/u8-tolower'.
32557         * modules/unicase/u8-tolower-tests: New file.
32558         * tests/unicase/test-u8-tolower.c: New file.
32559
32560         New module 'unicase/u32-tolower'.
32561         * lib/unicase/u32-tolower.c: New file.
32562         * modules/unicase/u32-tolower: New file.
32563
32564         New module 'unicase/u16-tolower'.
32565         * lib/unicase/u16-tolower.c: New file.
32566         * modules/unicase/u16-tolower: New file.
32567
32568         New module 'unicase/u8-tolower'.
32569         * lib/unicase/u8-tolower.c: New file.
32570         * modules/unicase/u8-tolower: New file.
32571
32572         Tests for module 'unicase/u32-toupper'.
32573         * modules/unicase/u32-toupper-tests: New file.
32574         * tests/unicase/test-u32-toupper.c: New file.
32575
32576         Tests for module 'unicase/u16-toupper'.
32577         * modules/unicase/u16-toupper-tests: New file.
32578         * tests/unicase/test-u16-toupper.c: New file.
32579
32580         Tests for module 'unicase/u8-toupper'.
32581         * modules/unicase/u8-toupper-tests: New file.
32582         * tests/unicase/test-u8-toupper.c: New file.
32583
32584         New module 'unicase/u32-toupper'.
32585         * lib/unicase/u32-toupper.c: New file.
32586         * modules/unicase/u32-toupper: New file.
32587
32588         New module 'unicase/u16-toupper'.
32589         * lib/unicase/u16-toupper.c: New file.
32590         * modules/unicase/u16-toupper: New file.
32591
32592         New module 'unicase/u8-toupper'.
32593         * lib/unicase/u8-toupper.c: New file.
32594         * modules/unicase/u8-toupper: New file.
32595
32596         New module 'unicase/u32-casemap'.
32597         * lib/unicase/u32-casemap.c: New file.
32598         * modules/unicase/u32-casemap: New file.
32599
32600         New module 'unicase/u16-casemap'.
32601         * lib/unicase/u16-casemap.c: New file.
32602         * modules/unicase/u16-casemap: New file.
32603
32604         New module 'unicase/u8-casemap'.
32605         * lib/unicase/unicasemap.h: New file.
32606         * lib/unicase/u8-casemap.c: New file.
32607         * lib/unicase/u-casemap.h: New file.
32608         * modules/unicase/u8-casemap: New file.
32609
32610         New module 'unicase/special-casing'.
32611         * lib/unicase/special-casing.h: New file.
32612         * lib/unicase/special-casing.c: New file.
32613         * lib/unicase/special-casing-table.gperf: New file, generated by
32614         gen-uni-tables.c.
32615         * modules/unicase/special-casing: New file.
32616
32617         Tests for module 'unicase/locale-language'.
32618         * modules/unicase/locale-language-tests: New file.
32619         * tests/unicase/test-locale-language.sh: New file.
32620         * tests/unicase/test-locale-language.c: New file.
32621
32622         New module 'unicase/locale-language'.
32623         * lib/unicase/locale-language.c: New file.
32624         * lib/unicase/locale-languages.gperf: New file.
32625         * modules/unicase/locale-language: New file.
32626
32627         Generate more tables for case conversion and case folding.
32628         * lib/gen-uni-tables.c (SCC_*): New enum items.
32629         (struct special_casing_rule): New type.
32630         (casing_rules, num_casing_rules, allocated_casing_rules): New
32631         variables.
32632         (add_casing_rule, fill_casing_rules): New functions.
32633         (struct casefold_rule): New type.
32634         (casefolding_rules, num_casefolding_rules,
32635         allocated_casefolding_rules): New variables.
32636         (fill_casefolding_rules): New function.
32637         (unicode_casefold): New variable.
32638         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
32639         sort_casing_rules, output_casing_rules): New functions.
32640         (main): Accept to more arguments: SpecialCasing.txt and
32641         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
32642         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
32643         Output mapping for casefolding.
32644
32645         * lib/unicase.h: Include stdbool.h, uninorm.h.
32646         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
32647         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
32648         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
32649         arguments.
32650         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
32651         resultp arguments.
32652         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
32653         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
32654         resultp arguments.
32655         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
32656         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
32657         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
32658         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
32659         declarations.
32660         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
32661
32662 2009-03-08  Bruno Haible  <bruno@clisp.org>
32663
32664         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
32665         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
32666         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
32667         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
32668
32669 2009-03-07  Bruno Haible  <bruno@clisp.org>
32670
32671         Adjust u*_normcmp, u*_normcoll API.
32672         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
32673         u16_normcoll, u32_normcoll): Change failure conventions.
32674         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
32675         errno and return -1.
32676         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
32677
32678 2009-03-07  Bruno Haible  <bruno@clisp.org>
32679
32680         Tests for module 'uninorm/u32-normcoll'.
32681         * modules/uninorm/u32-normcoll-tests: New file.
32682         * tests/uninorm/test-u32-normcoll.c: New file.
32683
32684         Tests for module 'uninorm/u16-normcoll'.
32685         * modules/uninorm/u16-normcoll-tests: New file.
32686         * tests/uninorm/test-u16-normcoll.c: New file.
32687
32688         Tests for module 'uninorm/u8-normcoll'.
32689         * modules/uninorm/u8-normcoll-tests: New file.
32690         * tests/uninorm/test-u8-normcoll.c: New file.
32691
32692 2009-03-07  Bruno Haible  <bruno@clisp.org>
32693
32694         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
32695         tests/uninorm/test-u32-normcmp.c.
32696         * tests/uninorm/test-u32-normcmp.c: Include it.
32697         (test_nonascii): New function, extracted from main. Add some more
32698         tests.
32699         (main): Invoke test_ascii and test_nonascii.
32700         * modules/uninorm/u32-normcmp-tests (Files): Add
32701         tests/uninorm/test-u32-normcmp.h.
32702         (Depends-on): Remove uninorm/u32-normcmp.
32703
32704         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
32705         tests/uninorm/test-u16-normcmp.c.
32706         * tests/uninorm/test-u16-normcmp.c: Include it.
32707         (test_nonascii): New function, extracted from main. Add some more
32708         tests.
32709         (main): Invoke test_ascii and test_nonascii.
32710         * modules/uninorm/u16-normcmp-tests (Files): Add
32711         tests/uninorm/test-u16-normcmp.h.
32712         (Depends-on): Remove uninorm/u16-normcmp.
32713
32714         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
32715         tests/uninorm/test-u8-normcmp.c.
32716         * tests/uninorm/test-u8-normcmp.c: Include it.
32717         (test_nonascii): New function, extracted from main. Add some more
32718         tests.
32719         (main): Invoke test_ascii and test_nonascii.
32720         * modules/uninorm/u8-normcmp-tests (Files): Add
32721         tests/uninorm/test-u8-normcmp.h.
32722         (Depends-on): Remove uninorm/u8-normcmp.
32723
32724 2009-03-07  Bruno Haible  <bruno@clisp.org>
32725
32726         New module 'uninorm/u32-normcoll'.
32727         * lib/uninorm/u32-normcoll.c: New file.
32728         * modules/uninorm/u32-normcoll: New file.
32729
32730         New module 'uninorm/u16-normcoll'.
32731         * lib/uninorm/u16-normcoll.c: New file.
32732         * modules/uninorm/u16-normcoll: New file.
32733
32734         New module 'uninorm/u8-normcoll'.
32735         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
32736         declarations.
32737         * lib/uninorm/u8-normcoll.c: New file.
32738         * lib/uninorm/u-normcoll.h: New file.
32739         * modules/uninorm/u8-normcoll: New file.
32740
32741         New module 'uninorm/u32-normxfrm'.
32742         * lib/uninorm/u32-normxfrm.c: New file.
32743         * modules/uninorm/u32-normxfrm: New file.
32744
32745         New module 'uninorm/u16-normxfrm'.
32746         * lib/uninorm/u16-normxfrm.c: New file.
32747         * modules/uninorm/u16-normxfrm: New file.
32748
32749         New module 'uninorm/u8-normxfrm'.
32750         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
32751         declarations.
32752         * lib/uninorm/u8-normxfrm.c: New file.
32753         * lib/uninorm/u-normxfrm.h: New file.
32754         * modules/uninorm/u8-normxfrm: New file.
32755
32756 2009-03-07  Bruno Haible  <bruno@clisp.org>
32757
32758         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
32759         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
32760         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
32761
32762 2009-03-07  Bruno Haible  <bruno@clisp.org>
32763
32764         New module 'memxfrm'.
32765         * lib/memxfrm.h: New file.
32766         * lib/memxfrm.c: New file.
32767         * modules/memxfrm: New file.
32768
32769 2009-03-07  Bruno Haible  <bruno@clisp.org>
32770
32771         New module 'memcmp2'.
32772         * lib/memcmp2.h: New file.
32773         * lib/memcmp2.c: New file.
32774         * modules/memcmp2: New file.
32775
32776 2009-03-07  Bruno Haible  <bruno@clisp.org>
32777
32778         Tests for module 'uninorm/decomposing-form'.
32779         * modules/uninorm/decomposing-form-tests: New file.
32780         * tests/uninorm/test-decomposing-form.c: New file.
32781
32782         New module 'uninorm/decomposing-form'.
32783         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
32784         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
32785         Add 'decomposing_variant' field.
32786         * lib/uninorm/decomposing-form.c: New file.
32787         * lib/uninorm/nfc.c (uninorm_nfc): Update.
32788         * lib/uninorm/nfd.c (uninorm_nfd): Update.
32789         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
32790         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
32791         * modules/uninorm/decomposing-form: New file.
32792         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
32793         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
32794
32795 2009-03-07  Bruno Haible  <bruno@clisp.org>
32796
32797         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
32798         strings.
32799
32800 2009-03-06  Bruno Haible  <bruno@clisp.org>
32801
32802         Tests for module 'uninorm/u32-normcmp'.
32803         * tests/uninorm/test-u32-normcmp.c: New file.
32804         * modules/uninorm/u32-normcmp-tests: New file.
32805
32806         Tests for module 'uninorm/u16-normcmp'.
32807         * tests/uninorm/test-u16-normcmp.c: New file.
32808         * modules/uninorm/u16-normcmp-tests: New file.
32809
32810         Tests for module 'uninorm/u8-normcmp'.
32811         * tests/uninorm/test-u8-normcmp.c: New file.
32812         * modules/uninorm/u8-normcmp-tests: New file.
32813
32814         New module 'uninorm/u32-normcmp'.
32815         * lib/uninorm/u32-normcmp.c: New file.
32816         * modules/uninorm/u32-normcmp: New file.
32817
32818         New module 'uninorm/u16-normcmp'.
32819         * lib/uninorm/u16-normcmp.c: New file.
32820         * modules/uninorm/u16-normcmp: New file.
32821
32822         New module 'uninorm/u8-normcmp'.
32823         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
32824         declarations.
32825         * lib/uninorm/u8-normcmp.c: New file.
32826         * lib/uninorm/u-normcmp.h: New file.
32827         * modules/uninorm/u8-normcmp: New file.
32828
32829 2009-03-06  Bruno Haible  <bruno@clisp.org>
32830
32831         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
32832         Reported by Eric Blake.
32833
32834 2009-03-06  Eric Blake  <ebb9@byu.net>
32835             Bruno Haible  <bruno@clisp.org>
32836
32837         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
32838         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
32839         condition.
32840         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
32841         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
32842         condition.
32843         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
32844
32845 2009-03-06  Eric Blake  <ebb9@byu.net>
32846
32847         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
32848         to avoid compiler warnings.
32849         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
32850
32851 2009-03-05  Bruno Haible  <bruno@clisp.org>
32852
32853         * tests/test-ftell.c (main): Disable test beyond end of file on
32854         FreeMiNT.
32855         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
32856
32857 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
32858
32859         * lib/filevercmp.c: Move hidden files up in ordering.
32860         * tests/test-filevercmp.c: Add tests for hidden files.
32861
32862 2009-03-04  Bruno Haible  <bruno@clisp.org>
32863
32864         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
32865         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
32866         AM_CFLAGS.
32867         Reported by Simon Josefsson.
32868
32869 2009-03-03  Bruno Haible  <bruno@clisp.org>
32870
32871         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
32872         Reported by Simon Josefsson.
32873
32874         * doc/ld-version-script.texi: Update node reference.
32875
32876 2009-03-03  Bruno Haible  <bruno@clisp.org>
32877
32878         * modules/visibility (License): Change to 'unlimited'.
32879         Suggested by Simon Josefsson.
32880
32881 2009-03-03  Jim Meyering  <meyering@redhat.com>
32882
32883         unlinkdir: cannot_unlink_dir may modify process state
32884         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
32885         it's neither thread-safe nor appropriate for use in a library.
32886
32887 2009-03-03  Eric Blake  <ebb9@byu.net>
32888
32889         test-closein: silence test under Darwin
32890         * tests/test-closein.sh: Ignore stderr from cat, since we don't
32891         care if it dies from EPIPE or EBADF.
32892
32893 2009-03-03  Bruno Haible  <bruno@clisp.org>
32894
32895         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
32896         earlier.
32897         * doc/visibility.texi: Fix @node and @section.
32898
32899 2009-03-03  Simon Josefsson  <simon@josefsson.org>
32900
32901         * doc/gnulib.texi: Link to sections for ld version script and
32902         visibility.
32903         * doc/visibility.texi: Add @node and @section.
32904         * modules/ld-version-script: New module.
32905         * m4/ld-version-script.m4: New file.
32906         * doc/ld-version-script.texi: New file.
32907
32908 2009-03-02  David Lutterkort  <lutter@redhat.com>
32909
32910         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
32911         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32912
32913 2009-03-02  Bruno Haible  <bruno@clisp.org>
32914
32915         * doc/visibility.texi: Mention libtool's -export-symbols option.
32916
32917 2009-03-02  Jim Meyering  <meyering@redhat.com>
32918
32919         announce-gen: new option: --no-print-checksums
32920         * build-aux/announce-gen (usage): Describe it.
32921         (print_checksums): Print a newline here, not in the [*] footnote.
32922         (main): Honor it.
32923
32924 2009-03-01  Bruno Haible  <bruno@clisp.org>
32925
32926         Use socklen_t in the native Windows replacements prototypes.
32927         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
32928         instead of 'int'.
32929         * lib/getsockopt.c (rpl_getsockopt): Likewise.
32930         * lib/setsockopt.c (rpl_setsockopt): Likewise.
32931         * modules/getsockopt (Depends-on): Add socklen.
32932         * modules/setsockopt (Depends-on): Add socklen.
32933
32934 2009-03-01  Bruno Haible  <bruno@clisp.org>
32935
32936         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
32937         least 4.2.
32938
32939 2009-03-01  Eric Blake  <ebb9@byu.net>
32940             Bruno Haible  <bruno@clisp.org>
32941
32942         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
32943         error messages.
32944         * lib/wait-process.c (wait_subprocess): Omit error message about
32945         deadly signal sent to the child of termsigp != NULL.
32946
32947 2009-03-01  Eric Blake  <ebb9@byu.net>
32948
32949         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
32950
32951 2009-03-01  Bruno Haible  <bruno@clisp.org>
32952
32953         Avoid a gcc warning.
32954         * tests/test-sched.c (b): Make global.
32955         Reported by Eric Blake.
32956
32957 2009-01-19  Martin Lambers  <marlam@marlam.de>
32958
32959         Provide POSIX semantics for socket timeout options on W32.
32960         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
32961         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
32962         * modules/setsockopt: Depend on sys_time module for struct timeval.
32963         * modules/getsockopt: Depend on sys_time module for struct timeval.
32964
32965 2009-03-01  Simon Josefsson  <simon@josefsson.org>
32966
32967         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
32968         __USE_GNU, for consistency with netdb.in.h.
32969         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32970
32971 2009-03-01  Bruno Haible  <bruno@clisp.org>
32972
32973         More support for FreeMiNT.
32974         * lib/fseeko.c (rpl_fseeko): Complete last commit.
32975         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32976
32977 2009-03-01  Bruno Haible  <bruno@clisp.org>
32978
32979         More support for FreeMiNT.
32980         * lib/fpurge.c (fpurge): Correct last commit.
32981         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32982
32983 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32984
32985         Fix unportable awk script in vc-list-files.
32986         * build-aux/vc-list-files: In the replacement awk script, use
32987         substr with a second argument of 1, not zero.
32988         Report by Simon Josefsson.
32989
32990 2009-02-28  Bruno Haible  <bruno@clisp.org>
32991
32992         More support for FreeMiNT.
32993         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
32994         to FreeMiNT today.
32995         * lib/fwriting.c (fwriting): Likewise.
32996         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
32997
32998 2009-02-28  Bruno Haible  <bruno@clisp.org>
32999
33000         * tests/test-freadseek.c (main): Disable test beyond end of file on
33001         FreeMiNT.
33002         * tests/test-ftello.c (main): Likewise.
33003         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
33004
33005 2009-02-28  Bruno Haible  <bruno@clisp.org>
33006
33007         Add tentative support for FreeMiNT.
33008         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
33009         * lib/fpurge.c (fpurge): Likewise.
33010         * lib/freadable.c (freadable): Likewise.
33011         * lib/freading.c (freading): Likewise.
33012         * lib/freadptr.c (freadptr): Likewise.
33013         * lib/freadseek.c (freadptrinc): Likewise.
33014         * lib/fseeko.c (rpl_fseeko): Likewise.
33015         * lib/fseterr.c (fseterr): Likewise.
33016         * lib/fwritable.c (fwritable): Likewise.
33017         * lib/fwriting.c (fwriting): Likewise.
33018         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
33019         Hourihane.
33020         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33021
33022 2009-02-28  Bruno Haible  <bruno@clisp.org>
33023
33024         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
33025         SIGCHLD.
33026         Reported by Jim Meyering.
33027
33028 2009-02-28  Bruno Haible  <bruno@clisp.org>
33029
33030         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
33031         Mention the results of these tests on various platforms.
33032         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
33033         order.
33034         * doc/posix-functions/printf.texi: Likewise.
33035         * doc/posix-functions/snprintf.texi: Likewise.
33036         * doc/posix-functions/sprintf.texi: Likewise.
33037         * doc/posix-functions/vfprintf.texi: Likewise.
33038         * doc/posix-functions/vprintf.texi: Likewise.
33039         * doc/posix-functions/vsnprintf.texi: Likewise.
33040         * doc/posix-functions/vsprintf.texi: Likewise.
33041         * doc/glibc-functions/obstack_printf.texi: Likewise.
33042         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
33043
33044 2009-02-28  Bruno Haible  <bruno@clisp.org>
33045
33046         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
33047         Reported by Loïc Minier <lool@dooz.org>.
33048
33049 2009-02-27  Bruno Haible  <bruno@clisp.org>
33050
33051         * gnulib-tool (func_import): Make the sed expression used to create the
33052         sed script for updating the .gitignore file POSIX compliant.
33053         Reported by Eric Blake.
33054
33055 2009-02-27  Bruno Haible  <bruno@clisp.org>
33056
33057         * gnulib-tool (sed): Don't alias as "sed --posix".
33058         Reported by Eric Blake.
33059
33060 2009-02-27  Bruno Haible  <bruno@clisp.org>
33061
33062         Avoid test link errors.
33063         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
33064         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
33065         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
33066         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
33067         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33068
33069 2009-02-27  Bruno Haible  <bruno@clisp.org>
33070
33071         Avoid spurious "(cached)" in configure output.
33072         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
33073         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
33074         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
33075         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
33076         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
33077         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
33078         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
33079         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
33080         Reported by Eric Blake.
33081
33082 2009-02-27  Eric Blake  <ebb9@byu.net>
33083
33084         printf: fix regression in previous patch
33085         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
33086
33087 2009-02-27  Bruno Haible  <bruno@clisp.org>
33088
33089         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
33090         value.
33091         * lib/stdint.in.h: Likewise.
33092         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
33093
33094 2009-02-27  Eric Blake  <ebb9@byu.net>
33095
33096         doc: mention more functions added in cygwin 1.7.0
33097         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
33098         addition.
33099         * doc/posix-functions/open_wmemstream.texi: Likewise.
33100         * doc/posix-functions/wcsnlen.texi: Likewise.
33101         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33102         * doc/posix-functions/wcstod.texi: Likewise.
33103         * doc/posix-functions/wcstof.texi: Likewise.
33104         * doc/posix-functions/wcstoimax.texi: Likewise.
33105         * doc/posix-functions/wcstok.texi: Likewise.
33106         * doc/posix-functions/wcstoumax.texi: Likewise.
33107
33108         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
33109         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
33110         * doc/posix-functions/fprintf.texi: Update.
33111         * doc/posix-functions/printf.texi: Update.
33112         * doc/posix-functions/snprintf.texi: Update.
33113         * doc/posix-functions/sprintf.texi: Update.
33114         * doc/posix-functions/vfprintf.texi: Update.
33115         * doc/posix-functions/vprintf.texi: Update.
33116         * doc/posix-functions/vsnprintf.texi: Update.
33117         * doc/posix-functions/vsprintf.texi: Update.
33118         * doc/glibc-functions/obstack_printf.texi: Update.
33119         * doc/glibc-functions/obstack_vprintf.texi: Update.
33120
33121 2009-02-26  Eric Blake  <ebb9@byu.net>
33122
33123         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
33124         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
33125         compilation bug by using runtime conversion.
33126         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33127         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
33128         * modules/ceill-tests (Files): Use nan.h.
33129         * modules/floorl-tests (Files): Likewise.
33130         * modules/frexpl-tests (Files): Likewise.
33131         * modules/isnanl-tests (Files): Likewise.
33132         * modules/ldexpl-tests (Files): Likewise.
33133         * modules/roundl-tests (Files): Likewise.
33134         * modules/truncl-tests (Files): Likewise.
33135         * tests/test-ceill.c (main): Use a working NaN.
33136         * tests/test-floorl.c (main): Likewise.
33137         * tests/test-frexpl.c (main): Likewise.
33138         * tests/test-isnan.c (test_long_double): Likewise.
33139         * tests/test-isnanl.h (main): Likewise.
33140         * tests/test-ldexpl.h (main): Likewise.
33141         * tests/test-roundl.h (main): Likewise.
33142         * tests/test-truncl.h (main): Likewise.
33143         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
33144
33145 2009-02-26  Eric Blake  <ebb9@byu.net>
33146             Bruno Haible  <bruno@clisp.org>
33147
33148         Work around a *printf bug with %ls on Solaris.
33149         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
33150         precision is specified, sprintf stops converting the wide string
33151         argument when the number of bytes that have been produced by this
33152         conversion equals or exceeds the precision.
33153         * doc/posix-functions/fprintf.texi: Update.
33154         * doc/posix-functions/printf.texi: Update.
33155         * doc/posix-functions/snprintf.texi: Update.
33156         * doc/posix-functions/sprintf.texi: Update.
33157         * doc/posix-functions/vfprintf.texi: Update.
33158         * doc/posix-functions/vprintf.texi: Update.
33159         * doc/posix-functions/vsnprintf.texi: Update.
33160         * doc/posix-functions/vsprintf.texi: Update.
33161         * doc/glibc-functions/obstack_printf.texi: Update.
33162         * doc/glibc-functions/obstack_vprintf.texi: Update.
33163
33164 2009-02-26  Eric Blake  <ebb9@byu.net>
33165
33166         stdlib: favor compiler check of random.h
33167         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
33168         to avoid an ObjC random.h installed by Swarm.
33169
33170 2009-02-26  Bruno Haible  <bruno@clisp.org>
33171
33172         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
33173         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
33174         Reported by Gary V. Vaughan <gary@gnu.org>.
33175
33176 2009-02-26  Bruno Haible  <bruno@clisp.org>
33177
33178         Fix *printf behaviour regarding the %ls directive.
33179         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
33180         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
33181         NEED_PRINTF_DIRECTIVE_LS.
33182         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
33183         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33184         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33185         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
33186         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
33187         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
33188         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33189         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33190         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33191         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33192         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33193         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
33194         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33195         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33196         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33197         * doc/posix-functions/fprintf.texi: Update.
33198         * doc/posix-functions/printf.texi: Update.
33199         * doc/posix-functions/snprintf.texi: Update.
33200         * doc/posix-functions/sprintf.texi: Update.
33201         * doc/posix-functions/vfprintf.texi: Update.
33202         * doc/posix-functions/vprintf.texi: Update.
33203         * doc/posix-functions/vsnprintf.texi: Update.
33204         * doc/posix-functions/vsprintf.texi: Update.
33205         * doc/glibc-functions/obstack_printf.texi: Update.
33206         * doc/glibc-functions/obstack_vprintf.texi: Update.
33207         Reported by Eric Blake.
33208
33209 2009-02-25  Bruno Haible  <bruno@clisp.org>
33210
33211         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
33212         with known value.
33213         Reported by Gary V. Vaughan <gary@gnu.org>.
33214
33215 2009-02-25  Bruno Haible  <bruno@clisp.org>
33216
33217         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
33218         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
33219         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
33220         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
33221         Reported by Gary V. Vaughan <gary@gnu.org>.
33222
33223 2009-02-25  Bruno Haible  <bruno@clisp.org>
33224
33225         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
33226         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
33227         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
33228         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
33229         Reported by Gary V. Vaughan <gary@gnu.org>.
33230
33231 2009-02-25  Eric Blake  <ebb9@byu.net>
33232
33233         tests: skip fseek/ftell tests if ungetc is broken
33234         * m4/ungetc.m4: New file.
33235         * modules/fseek-tests: Split test, so ungetc dependency is
33236         separate from rest of test.
33237         * modules/fseeko-tests: Likewise.
33238         * modules/ftell-tests: Likewise.
33239         * modules/ftello-tests: Likewise.
33240         * tests/test-fseek.c (main): Isolate ungetc dependency.
33241         * tests/test-fseeko.c (main): Likewise.
33242         * tests/test-ftell.c (main): Likewise.
33243         * tests/test-ftello.c (main): Likewise.
33244         * tests/test-fseek2.sh: New file.
33245         * tests/test-fseeko2.sh: Likewise.
33246         * tests/test-ftell2.sh: Likewise.
33247         * tests/test-ftello2.sh: Likewise.
33248
33249 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
33250
33251         test-getaddrinfo: fix usage of skip return code 77
33252         * tests/test-gettaddrinfo.c: Return skip code 77 only
33253         for first occurance of skip (4x77 is not 77)
33254
33255 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
33256
33257         strtod: avoid C99 decl-after-statement
33258         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
33259
33260 2009-02-24  Eric Blake  <ebb9@byu.net>
33261
33262         strtod: detect HP-UX 11.31 bug
33263         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
33264         Reported by Gary V. Vaughan.
33265
33266 2009-02-23  Bruno Haible  <bruno@clisp.org>
33267
33268         Fix invalid read past end of memory block.
33269         * lib/vasnprintf.c (DCHAR_SET): Define.
33270         (local_wcslen): Define only when needed.
33271         (local_strnlen, local_wcsnlen): New functions.
33272         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
33273         directives that involve a conversion ourselves.
33274         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
33275         wcsnlen, mbrtowc, wcrtomb.
33276         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
33277         * tests/test-vasprintf-posix.c (test_function): Likewise.
33278         * tests/test-snprintf-posix.h (test_function): Likewise.
33279         * tests/test-sprintf-posix.h (test_function): Likewise.
33280         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33281
33282 2009-02-22  Bruno Haible  <bruno@clisp.org>
33283
33284         Implement new clarified decomposition of Hangul syllables.
33285         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
33286         of type LTV, return only a pairwise decomposition.
33287         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
33288         Likewise.
33289         * tests/uninorm/test-decomposition.c (main): Updated expected result.
33290         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
33291         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
33292
33293 2009-02-22  Bruno Haible  <bruno@clisp.org>
33294
33295         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
33296         zero-length results and shrink excess allocated memory.
33297         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
33298         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
33299         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
33300         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
33301         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
33302         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
33303         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
33304         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
33305         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
33306         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
33307         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
33308         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
33309
33310 2009-02-21  Bruno Haible  <bruno@clisp.org>
33311
33312         * doc/gnulib.texi: Include safe-alloc.texi earlier.
33313         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
33314         spaces after a period. Put a space between a macro name and its
33315         argument list. Trivial rewordings.
33316         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
33317         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
33318         (main): Return 0 explicitly.
33319
33320 2009-02-21  Bruno Haible  <bruno@clisp.org>
33321
33322         Tests for module 'uninorm/filter'.
33323         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
33324         * modules/uninorm/filter-tests: New file.
33325
33326         New module 'uninorm/filter'.
33327         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
33328         uninorm_filter_flush, uninorm_filter_free): New declarations.
33329         * lib/uninorm/uninorm-filter.c: New file.
33330         * modules/uninorm/filter: New file.
33331
33332 2009-02-21  Bruno Haible  <bruno@clisp.org>
33333
33334         Tests for module 'uninorm/nfkc'.
33335         * tests/uninorm/test-nfkc.c: New file.
33336         * tests/uninorm/test-u8-nfkc.c: New file.
33337         * tests/uninorm/test-u16-nfkc.c: New file.
33338         * tests/uninorm/test-u32-nfkc.c: New file.
33339         * tests/uninorm/test-u32-nfkc-big.sh: New file.
33340         * tests/uninorm/test-u32-nfkc-big.c: New file.
33341         * modules/uninorm/nfkc-tests: New file.
33342
33343         New module 'uninorm/nfkc'.
33344         * lib/uninorm/nfkc.c: New file.
33345         * modules/uninorm/nfkc: New file.
33346
33347         Tests for module 'uninorm/nfkd'.
33348         * tests/uninorm/test-nfkd.c: New file.
33349         * tests/uninorm/test-u8-nfkd.c: New file.
33350         * tests/uninorm/test-u16-nfkd.c: New file.
33351         * tests/uninorm/test-u32-nfkd.c: New file.
33352         * tests/uninorm/test-u32-nfkd-big.sh: New file.
33353         * tests/uninorm/test-u32-nfkd-big.c: New file.
33354         * modules/uninorm/nfkd-tests: New file.
33355
33356         New module 'uninorm/nfkd'.
33357         * lib/uninorm/nfkd.c: New file.
33358         * modules/uninorm/nfkd: New file.
33359
33360         Tests for module 'uninorm/nfc'.
33361         * tests/uninorm/test-nfc.c: New file.
33362         * tests/uninorm/test-u8-nfc.c: New file.
33363         * tests/uninorm/test-u16-nfc.c: New file.
33364         * tests/uninorm/test-u32-nfc.c: New file.
33365         * tests/uninorm/test-u32-nfc-big.sh: New file.
33366         * tests/uninorm/test-u32-nfc-big.c: New file.
33367         * modules/uninorm/nfc-tests: New file.
33368
33369         New module 'uninorm/nfc'.
33370         * lib/uninorm/nfc.c: New file.
33371         * modules/uninorm/nfc: New file.
33372
33373         Tests for module 'uninorm/nfd'.
33374         * tests/uninorm/test-nfd.c: New file.
33375         * tests/uninorm/test-u8-nfd.c: New file.
33376         * tests/uninorm/test-u16-nfd.c: New file.
33377         * tests/uninorm/test-u32-nfd.c: New file.
33378         * tests/uninorm/test-u32-nfd-big.sh: New file.
33379         * tests/uninorm/test-u32-nfd-big.c: New file.
33380         * tests/uninorm/test-u32-normalize-big.h: New file.
33381         * tests/uninorm/test-u32-normalize-big.c: New file.
33382         * tests/uninorm/NormalizationTest.txt: New file, created from
33383         Unicode 5.1.0 NormalizationTest.txt.
33384         * modules/uninorm/nfd-tests: New file.
33385
33386         New module 'uninorm/nfd'.
33387         * lib/uninorm/nfd.c: New file.
33388         * modules/uninorm/nfd: New file.
33389
33390         New module 'uninorm/u32-normalize'.
33391         * lib/uninorm/u32-normalize.c: New file.
33392         * modules/uninorm/u32-normalize: New file.
33393
33394         New module 'uninorm/u16-normalize'.
33395         * lib/uninorm/u16-normalize.c: New file.
33396         * modules/uninorm/u16-normalize: New file.
33397
33398         New module 'uninorm/u8-normalize'.
33399         * lib/uninorm/u8-normalize.c: New file.
33400         * lib/uninorm/normalize-internal.h: New file.
33401         * lib/uninorm/u-normalize-internal.h: New file.
33402         * modules/uninorm/u8-normalize: New file.
33403
33404         New module 'uninorm/decompose-internal'.
33405         * lib/uninorm/decompose-internal.c: New file.
33406         * modules/uninorm/decompose-internal: New file.
33407
33408         Tests for module 'uninorm/composition'.
33409         * tests/uninorm/test-composition.c: New file.
33410         * modules/uninorm/composition-tests: New file.
33411
33412         New module 'uninorm/composition'.
33413         * lib/uninorm/composition.c: New file.
33414         * lib/uninorm/composition-table.gperf: New file, generated by
33415         gen-uni-tables.
33416         * modules/uninorm/composition: New file.
33417
33418         Tests for module 'uninorm/compat-decomposition'.
33419         * tests/uninorm/test-compat-decomposition.c: New file.
33420         * modules/uninorm/compat-decomposition-tests: New file.
33421
33422         New module 'uninorm/compat-decomposition'.
33423         * lib/uninorm/decompose-internal.h: New file.
33424         * lib/uninorm/compat-decomposition.c: New file.
33425         * modules/uninorm/compat-decomposition: New file.
33426
33427         Tests for module 'uninorm/canonical-decomposition'.
33428         * tests/uninorm/test-canonical-decomposition.c: New file.
33429         * modules/uninorm/canonical-decomposition-tests: New file.
33430
33431         New module 'uninorm/canonical-decomposition'.
33432         * lib/uninorm/canonical-decomposition.c: New file.
33433         * modules/uninorm/canonical-decomposition: New file.
33434
33435         Tests for module 'uninorm/decomposition'.
33436         * tests/uninorm/test-decomposition.c: New file.
33437         * modules/uninorm/decomposition-tests: New file.
33438
33439         New module 'uninorm/decomposition'.
33440         * lib/uninorm/decomposition.c: New file.
33441         * modules/uninorm/decomposition: New file.
33442
33443         New module 'uninorm/decomposition-table'.
33444         * lib/uninorm/decomposition-table.h: New file.
33445         * lib/uninorm/decomposition-table.c: New file.
33446         * lib/uninorm/decomposition-table1.h: New file, generated by
33447         gen-uni-tables.
33448         * lib/uninorm/decomposition-table2.h: New file, generated by
33449         gen-uni-tables.
33450         * modules/uninorm/decomposition-table: New file.
33451
33452         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
33453         (UC_DECOMP_*): New enumeration items.
33454         (get_decomposition): New function.
33455         (struct decomp_table): New type.
33456         (output_decomposition, output_decomposition_tables): New functions.
33457         (unicode_composition_exclusions): New variable.
33458         (fill_composition_exclusions, debug_output_composition_tables): New
33459         functions.
33460         (main): Accept one more argument. Invoke fill_composition_exclusions.
33461         Output decomposition and composition tables.
33462
33463         New module 'uninorm/base'.
33464         * lib/uninorm.h: New file.
33465         * lib/unictype.h: Update comment.
33466         * modules/uninorm/base: New file.
33467
33468 2009-02-21  David Lutterkort  <lutter@redhat.com>
33469
33470         Tests for module 'safe-alloc'.
33471         * tests/test-safe-alloc.c: New file.
33472         * modules/safe-alloc-tests: New file.
33473
33474         New module 'safe-alloc'.
33475         * lib/safe-alloc.h: New file.
33476         * lib/safe-alloc.c: New file.
33477         * m4/safe-alloc.m4: New file.
33478         * modules/safe-alloc: New file.
33479         * doc/safe-alloc.texi: New file.
33480         * doc/gnulib.texi: Include it.
33481         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
33482         safe-alloc.
33483
33484 2009-02-18  Bruno Haible  <bruno@clisp.org>
33485
33486         Fix link error on non-glibc systems.
33487         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
33488         variable.
33489         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33490
33491 2009-02-18  Jim Meyering  <meyering@redhat.com>
33492
33493         fts: avoid used-uninitialized error due to recent change
33494         * lib/fts.c (fts_read): Guard uses of the new member,
33495         parent->fts_n_dirs_remaining, since it's not relevant for
33496         the parent of a directory specified on the command-line.
33497
33498 2009-02-17  James Youngman  <jay@gnu.org>
33499             Bruno Haible  <bruno@clisp.org>
33500
33501         * m4/include_next.m4: Reformulate comment.
33502
33503 2009-02-16  Jim Meyering  <meyering@redhat.com>
33504
33505         fts: add #if guards so that the fts_lgpl module still builds
33506         * lib/fts.c: Guard just-added hash-table-using parts with
33507         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
33508         Reported by Simon Josefsson.
33509
33510 2009-02-15  Bruno Haible  <bruno@clisp.org>
33511
33512         * modules/array-mergesort-tests: New file.
33513         * tests/test-array-mergesort.c: New file.
33514
33515         New module 'array-mergesort'.
33516         * modules/array-mergesort: New file.
33517         * lib/array-mergesort.h: New file.
33518
33519 2009-02-15  Bruno Haible  <bruno@clisp.org>
33520
33521         Fix 2009-02-07 commit.
33522         * lib/gen-uni-tables.c (output_predicate, output_category,
33523         output_combclass, output_bidi_category, output_decimal_digit,
33524         output_digit, output_numeric, output_mirror, output_scripts,
33525         output_ident_category, output_simple_mapping): Fix format directives.
33526         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
33527
33528 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
33529
33530         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
33531         fixes are available from IBM.
33532
33533 2009-02-13  Jim Meyering  <meyering@redhat.com>
33534
33535         fts: arrange not to stat non-directories in more cases
33536         This makes GNU find (when it doesn't need to stat each file)
33537         *much* more efficient at traversing reiserfs file systems.
33538         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
33539         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
33540         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
33541         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
33542         (leaf_optimization_applies): New function.
33543         (LCO_hash, LCO_compare): New helper functions.
33544         (link_count_optimize_ok): New function.
33545         (fts_stat): Initialize new member (if dir).
33546         (fts_read): Decrement parent's fts_n_dirs_remaining count if
33547         we've just stat'ed a directory.  Skip the stat call when possible.
33548         ---
33549         Note this AFS-related exchange:
33550         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
33551         and note find's pioctl call in find/fstype.c.
33552         But that is necessary only if you want to enable the
33553         optimization for AFS, and for now, I don't.
33554
33555         fts: move a function definition "up" (no semantic change)
33556         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
33557         "up" to precede upcoming use of a related function.
33558
33559 2009-02-11  Jim Meyering  <meyering@redhat.com>
33560
33561         fts: correct internal computation of nlinks (optimization-related)
33562         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
33563         whether the current entry is a directory, so don't test it.
33564
33565 2009-02-10  Bruno Haible  <bruno@clisp.org>
33566
33567         Tests for module 'uniwbrk/ulc-wordbreaks'.
33568         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
33569         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
33570         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
33571
33572         Tests for module 'uniwbrk/u32-wordbreaks'.
33573         * modules/uniwbrk/u32-wordbreaks-tests: New file.
33574         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
33575
33576         Tests for module 'uniwbrk/u16-wordbreaks'.
33577         * modules/uniwbrk/u16-wordbreaks-tests: New file.
33578         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
33579
33580         Tests for module 'uniwbrk/u8-wordbreaks'.
33581         * modules/uniwbrk/u8-wordbreaks-tests: New file.
33582         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
33583
33584 2009-02-10  Bruno Haible  <bruno@clisp.org>
33585
33586         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
33587         property.
33588         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
33589         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
33590         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
33591
33592 2009-02-10  Simon Josefsson  <simon@josefsson.org>
33593
33594         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
33595         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
33596
33597 2009-02-10  Bruno Haible  <bruno@clisp.org>
33598
33599         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
33600         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
33601         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
33602         * lib/unilbrk/u8-possible-linebreaks.c: Update.
33603         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
33604         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
33605
33606 2009-02-09  Simon Josefsson  <simon@josefsson.org>
33607
33608         * lib/sockets.h (gl_fd_to_handle): New function.
33609
33610         * tests/test-sockets.c: Call gl_fd_to_handle.
33611
33612 2009-02-09  Bruno Haible  <bruno@clisp.org>
33613
33614         * doc/havelib.texi: Document the conventions on bi-arch systems.
33615
33616 2009-02-08  Bruno Haible  <bruno@clisp.org>
33617
33618         Document the AC_LIB_LINKFLAGS macro.
33619         * doc/havelib.texi: New file, mostly written on 2005-05-24.
33620         * doc/gnulib.texi: Include it.
33621
33622 2009-02-08  Bruno Haible  <bruno@clisp.org>
33623
33624         Fix wrong order of sections, compared to TOC.
33625         * doc/gnulib.texi: Include relocatable-maint.texi after the
33626         "Regular expressions" node, not before.
33627
33628 2009-02-08  Bruno Haible  <bruno@clisp.org>
33629
33630         Tests for module 'unicase/totitle'.
33631         * modules/unicase/totitle-tests: New file.
33632
33633         Tests for module 'unicase/tolower'.
33634         * modules/unicase/tolower-tests: New file.
33635
33636         Tests for module 'unicase/toupper'.
33637         * modules/unicase/toupper-tests: New file.
33638         * tests/unicase/test-mapping-part1.h: New file.
33639         * tests/unicase/test-mapping-part2.h: New file.
33640
33641         New module 'unicase/totitle'.
33642         * modules/unicase/totitle: New file.
33643         * lib/unicase/totitle.c: New file.
33644
33645         New module 'unicase/tolower'.
33646         * modules/unicase/tolower: New file.
33647         * lib/unicase/tolower.c: New file.
33648
33649         New module 'unicase/toupper'.
33650         * modules/unicase/toupper: New file.
33651         * lib/unicase/toupper.c: New file.
33652         * lib/unicase/simple-mapping.h: New file.
33653
33654         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
33655         (mapping_table): New structure.
33656         (output_simple_mapping): New function.
33657         (main): Invoke output_simple_mapping_test and output_simple_mapping.
33658         * modules/gen-uni-tables (Description): Update.
33659         * lib/unicase/toupper.h: New file, automatically generated by
33660         gen-uni-tables.
33661         * lib/unicase/tolower.h: New file, automatically generated by
33662         gen-uni-tables.
33663         * lib/unicase/totitle.h: New file, automatically generated by
33664         gen-uni-tables.
33665         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
33666         gen-uni-tables.
33667         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
33668         gen-uni-tables.
33669         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
33670         gen-uni-tables.
33671
33672         New module 'unicase/base'.
33673         * modules/unicase/base: New file.
33674         * lib/unicase.h: New file.
33675
33676 2009-02-08  Bruno Haible  <bruno@clisp.org>
33677
33678         New module 'uniwbrk/ulc-wordbreaks'.
33679         * modules/uniwbrk/ulc-wordbreaks: New file.
33680         * lib/uniwbrk/ulc-wordbreaks.c: New file.
33681
33682         New module 'uniwbrk/u32-wordbreaks'.
33683         * modules/uniwbrk/u32-wordbreaks: New file.
33684         * lib/uniwbrk/u32-wordbreaks.c: New file.
33685
33686         New module 'uniwbrk/u16-wordbreaks'.
33687         * modules/uniwbrk/u16-wordbreaks: New file.
33688         * lib/uniwbrk/u16-wordbreaks.c: New file.
33689
33690         New module 'uniwbrk/u8-wordbreaks'.
33691         * modules/uniwbrk/u8-wordbreaks: New file.
33692         * lib/uniwbrk/u8-wordbreaks.c: New file.
33693         * lib/uniwbrk/u-wordbreaks.h: New file.
33694
33695         New module 'uniwbrk/table'.
33696         * modules/uniwbrk/table: New file.
33697         * lib/uniwbrk/wbrktable.h: New file.
33698         * lib/uniwbrk/wbrktable.c: New file.
33699
33700         New module 'uniwbrk/wordbreak-property'.
33701         * modules/uniwbrk/wordbreak-property: New file.
33702         * lib/uniwbrk/wordbreak-property.c: New file.
33703
33704         * lib/gen-uni-tables.c (WBP_*): New enum items.
33705         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
33706         (unicode_org_wbp): New variable.
33707         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
33708         New functions.
33709         (wbp_table): New structure.
33710         (output_wbp, output_wbrk_tables): New functions.
33711         (main): Accept additional argument. Invoke fill_org_wbp,
33712         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
33713         output_wbrk_tables.
33714         * modules/gen-uni-tables (Description): Update.
33715         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
33716         gen-uni-tables.
33717
33718         New module 'uniwbrk/base'.
33719         * modules/uniwbrk/base: New file.
33720         * lib/uniwbrk.h: New file.
33721
33722 2009-02-08  Bruno Haible  <bruno@clisp.org>
33723
33724         Update to Unicode 5.1.0.
33725         * lib/gen-uni-tables.c (is_property_alphabetic): Include
33726         U+2185..U+2188.
33727         (is_property_default_ignorable_code_point): Don't include characters
33728         of category Cc or Cs and not-a-characters.
33729         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
33730         U+0D79, U+109E, U+109F, U+A60C.
33731         * lib/unictype/bidi_of.h: Regenerated.
33732         * lib/unictype/blocks.h: Regenerated.
33733         * lib/unictype/categ_C.h: Regenerated.
33734         * lib/unictype/categ_Cf.h: Regenerated.
33735         * lib/unictype/categ_Cn.h: Regenerated.
33736         * lib/unictype/categ_L.h: Regenerated.
33737         * lib/unictype/categ_Ll.h: Regenerated.
33738         * lib/unictype/categ_Lm.h: Regenerated.
33739         * lib/unictype/categ_Lo.h: Regenerated.
33740         * lib/unictype/categ_Lu.h: Regenerated.
33741         * lib/unictype/categ_M.h: Regenerated.
33742         * lib/unictype/categ_Mc.h: Regenerated.
33743         * lib/unictype/categ_Me.h: Regenerated.
33744         * lib/unictype/categ_Mn.h: Regenerated.
33745         * lib/unictype/categ_N.h: Regenerated.
33746         * lib/unictype/categ_Nd.h: Regenerated.
33747         * lib/unictype/categ_Nl.h: Regenerated.
33748         * lib/unictype/categ_No.h: Regenerated.
33749         * lib/unictype/categ_P.h: Regenerated.
33750         * lib/unictype/categ_Pd.h: Regenerated.
33751         * lib/unictype/categ_Pe.h: Regenerated.
33752         * lib/unictype/categ_Pf.h: Regenerated.
33753         * lib/unictype/categ_Pi.h: Regenerated.
33754         * lib/unictype/categ_Po.h: Regenerated.
33755         * lib/unictype/categ_Ps.h: Regenerated.
33756         * lib/unictype/categ_S.h: Regenerated.
33757         * lib/unictype/categ_Sk.h: Regenerated.
33758         * lib/unictype/categ_Sm.h: Regenerated.
33759         * lib/unictype/categ_So.h: Regenerated.
33760         * lib/unictype/categ_of.h: Regenerated.
33761         * lib/unictype/combining.h: Regenerated.
33762         * lib/unictype/ctype_alnum.h: Regenerated.
33763         * lib/unictype/ctype_alpha.h: Regenerated.
33764         * lib/unictype/ctype_graph.h: Regenerated.
33765         * lib/unictype/ctype_lower.h: Regenerated.
33766         * lib/unictype/ctype_print.h: Regenerated.
33767         * lib/unictype/ctype_punct.h: Regenerated.
33768         * lib/unictype/ctype_upper.h: Regenerated.
33769         * lib/unictype/decdigit.h: Regenerated.
33770         * lib/unictype/digit.h: Regenerated.
33771         * lib/unictype/mirror.h: Regenerated.
33772         * lib/unictype/numeric.h: Regenerated.
33773         * lib/unictype/pr_alphabetic.h: Regenerated.
33774         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
33775         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
33776         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
33777         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
33778         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
33779         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
33780         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
33781         * lib/unictype/pr_combining.h: Regenerated.
33782         * lib/unictype/pr_dash.h: Regenerated.
33783         * lib/unictype/pr_decimal_digit.h: Regenerated.
33784         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
33785         * lib/unictype/pr_deprecated.h: Regenerated.
33786         * lib/unictype/pr_diacritic.h: Regenerated.
33787         * lib/unictype/pr_extender.h: Regenerated.
33788         * lib/unictype/pr_format_control.h: Regenerated.
33789         * lib/unictype/pr_grapheme_base.h: Regenerated.
33790         * lib/unictype/pr_grapheme_extend.h: Regenerated.
33791         * lib/unictype/pr_grapheme_link.h: Regenerated.
33792         * lib/unictype/pr_id_continue.h: Regenerated.
33793         * lib/unictype/pr_id_start.h: Regenerated.
33794         * lib/unictype/pr_ideographic.h: Regenerated.
33795         * lib/unictype/pr_ignorable_control.h: Regenerated.
33796         * lib/unictype/pr_lowercase.h: Regenerated.
33797         * lib/unictype/pr_math.h: Regenerated.
33798         * lib/unictype/pr_numeric.h: Regenerated.
33799         * lib/unictype/pr_other_alphabetic.h: Regenerated.
33800         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
33801         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
33802         * lib/unictype/pr_other_id_continue.h: Regenerated.
33803         * lib/unictype/pr_other_lowercase.h: Regenerated.
33804         * lib/unictype/pr_other_math.h: Regenerated.
33805         * lib/unictype/pr_punctuation.h: Regenerated.
33806         * lib/unictype/pr_sentence_terminal.h: Regenerated.
33807         * lib/unictype/pr_soft_dotted.h: Regenerated.
33808         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
33809         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
33810         * lib/unictype/pr_unified_ideograph.h: Regenerated.
33811         * lib/unictype/pr_uppercase.h: Regenerated.
33812         * lib/unictype/pr_xid_continue.h: Regenerated.
33813         * lib/unictype/pr_xid_start.h: Regenerated.
33814         * lib/unictype/pr_zero_width.h: Regenerated.
33815         * lib/unictype/scripts.h: Regenerated.
33816         * lib/unictype/scripts_byname.gperf: Regenerated.
33817         * lib/unictype/sy_java_ident.h: Regenerated.
33818         * lib/unilbrk/lbrkprop1.h: Regenerated.
33819         * lib/unilbrk/lbrkprop2.h: Regenerated.
33820         * tests/unictype/test-categ_C.c: Regenerated.
33821         * tests/unictype/test-categ_Cf.c: Regenerated.
33822         * tests/unictype/test-categ_Cn.c: Regenerated.
33823         * tests/unictype/test-categ_L.c: Regenerated.
33824         * tests/unictype/test-categ_Ll.c: Regenerated.
33825         * tests/unictype/test-categ_Lm.c: Regenerated.
33826         * tests/unictype/test-categ_Lo.c: Regenerated.
33827         * tests/unictype/test-categ_Lu.c: Regenerated.
33828         * tests/unictype/test-categ_M.c: Regenerated.
33829         * tests/unictype/test-categ_Mc.c: Regenerated.
33830         * tests/unictype/test-categ_Me.c: Regenerated.
33831         * tests/unictype/test-categ_Mn.c: Regenerated.
33832         * tests/unictype/test-categ_N.c: Regenerated.
33833         * tests/unictype/test-categ_Nd.c: Regenerated.
33834         * tests/unictype/test-categ_Nl.c: Regenerated.
33835         * tests/unictype/test-categ_No.c: Regenerated.
33836         * tests/unictype/test-categ_P.c: Regenerated.
33837         * tests/unictype/test-categ_Pd.c: Regenerated.
33838         * tests/unictype/test-categ_Pe.c: Regenerated.
33839         * tests/unictype/test-categ_Pf.c: Regenerated.
33840         * tests/unictype/test-categ_Pi.c: Regenerated.
33841         * tests/unictype/test-categ_Po.c: Regenerated.
33842         * tests/unictype/test-categ_Ps.c: Regenerated.
33843         * tests/unictype/test-categ_S.c: Regenerated.
33844         * tests/unictype/test-categ_Sk.c: Regenerated.
33845         * tests/unictype/test-categ_Sm.c: Regenerated.
33846         * tests/unictype/test-categ_So.c: Regenerated.
33847         * tests/unictype/test-ctype_alnum.c: Regenerated.
33848         * tests/unictype/test-ctype_alpha.c: Regenerated.
33849         * tests/unictype/test-ctype_graph.c: Regenerated.
33850         * tests/unictype/test-ctype_lower.c: Regenerated.
33851         * tests/unictype/test-ctype_print.c: Regenerated.
33852         * tests/unictype/test-ctype_punct.c: Regenerated.
33853         * tests/unictype/test-ctype_upper.c: Regenerated.
33854         * tests/unictype/test-decdigit.h: Regenerated.
33855         * tests/unictype/test-digit.h: Regenerated.
33856         * tests/unictype/test-numeric.h: Regenerated.
33857         * tests/unictype/test-pr_alphabetic.c: Regenerated.
33858         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
33859         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
33860         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
33861         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
33862         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
33863         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
33864         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
33865         * tests/unictype/test-pr_combining.c: Regenerated.
33866         * tests/unictype/test-pr_dash.c: Regenerated.
33867         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
33868         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
33869         * tests/unictype/test-pr_deprecated.c: Regenerated.
33870         * tests/unictype/test-pr_diacritic.c: Regenerated.
33871         * tests/unictype/test-pr_extender.c: Regenerated.
33872         * tests/unictype/test-pr_format_control.c: Regenerated.
33873         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
33874         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
33875         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
33876         * tests/unictype/test-pr_id_continue.c: Regenerated.
33877         * tests/unictype/test-pr_id_start.c: Regenerated.
33878         * tests/unictype/test-pr_ideographic.c: Regenerated.
33879         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
33880         * tests/unictype/test-pr_lowercase.c: Regenerated.
33881         * tests/unictype/test-pr_math.c: Regenerated.
33882         * tests/unictype/test-pr_numeric.c: Regenerated.
33883         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
33884         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
33885         Regenerated.
33886         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
33887         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
33888         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
33889         * tests/unictype/test-pr_other_math.c: Regenerated.
33890         * tests/unictype/test-pr_punctuation.c: Regenerated.
33891         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
33892         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
33893         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
33894         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
33895         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
33896         * tests/unictype/test-pr_uppercase.c: Regenerated.
33897         * tests/unictype/test-pr_xid_continue.c: Regenerated.
33898         * tests/unictype/test-pr_xid_start.c: Regenerated.
33899         * tests/unictype/test-pr_zero_width.c: Regenerated.
33900
33901         Update to Unicode 5.1.0.
33902         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
33903         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
33904         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
33905         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
33906         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
33907         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
33908         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
33909         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
33910         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
33911         (nonspacing_table_ind): Update.
33912         * tests/uniwidth/test-uc_width2.sh: Update expected result.
33913
33914         Update to Unicode 5.1.0.
33915         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
33916         code transform.
33917         * lib/uniname/uniname.c (unicode_character_name,
33918         unicode_name_character): Add the range 0x1Fxxx to the code transform.
33919         * lib/uniname/uninames.h: Regenerated.
33920         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
33921
33922 2009-02-07  Bruno Haible  <bruno@clisp.org>
33923
33924         Merge gen-ctype and gen-lbrk into a single program.
33925         * lib/gen-uni-tables.c: New file, incorporating
33926         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
33927         Add directory prefixes to the names of the generated files.
33928         * lib/unictype/gen-ctype.c: Remove file.
33929         * lib/unilbrk/gen-lbrk.c: Remove file.
33930         * modules/gen-uni-tables: New file.
33931         * modules/unictype/gen-ctype: Remove file.
33932         * modules/unilbrk/gen-lbrk: Remove file.
33933
33934 2009-02-07  Bruno Haible  <bruno@clisp.org>
33935
33936         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
33937
33938         New module 'unistr/u32-strcoll'.
33939         * modules/unistr/u32-strcoll: New file.
33940         * lib/unistr/u32-strcoll.c: New file.
33941
33942         New module 'unistr/u16-strcoll'.
33943         * modules/unistr/u16-strcoll: New file.
33944         * lib/unistr/u16-strcoll.c: New file.
33945
33946         New module 'unistr/u8-strcoll'.
33947         * modules/unistr/u8-strcoll: New file.
33948         * lib/unistr/u8-strcoll.c: New file.
33949         * lib/unistr/u-strcoll.h: New file.
33950
33951 2009-02-07  Bruno Haible  <bruno@clisp.org>
33952
33953         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
33954         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
33955         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
33956         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
33957         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
33958         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
33959
33960 2009-02-07  Bruno Haible  <bruno@clisp.org>
33961
33962         Make 64-bit clean.
33963         * lib/unictype/gen-ctype.c (output_predicate, output_category,
33964         output_combclass, output_bidi_category, output_decimal_digit,
33965         output_digit, output_numeric, output_mirror, output_scripts,
33966         output_ident_category): Use proper width specifier in format strings.
33967
33968 2009-02-07  Bruno Haible  <bruno@clisp.org>
33969
33970         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
33971         failure behaviour.
33972
33973 2009-02-07  Jim Meyering  <meyering@redhat.com>
33974
33975         regex: avoid compilation failure with upcoming gcc-4.4
33976         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
33977         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
33978         "... error: integer overflow in preprocessor expression".
33979
33980 2009-02-05  Ben Pfaff  <blp@gnu.org>
33981
33982         Fix link errors on Windows when close module is used.
33983         * modules/close: Add $(LIB_CLOSE) to Link section.
33984         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
33985         $(LIB_CLOSE) on Windows.
33986
33987 2009-02-05  Jim Meyering  <meyering@redhat.com>
33988
33989         still avoid unused-parameter warnings, but do it cleanly
33990         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
33991         (get_fs_usage): Cast to void instead.
33992         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
33993         (dev_from_mount_options, read_file_system_list): Cast to void.
33994         Prompted by Bruno Haible.
33995
33996 2009-02-04  Jim Meyering  <meyering@redhat.com>
33997
33998         fsusage.c: correct copyright year
33999         * lib/fsusage.c: Reflect year in which the change is pushed into
34000
34001         avoid misc. warnings
34002         * lib/fsusage.c (UNUSED_PARAM): Define.
34003         (get_fs_usage): Mark parameter "disk" as unused.
34004         * lib/getugroups.c (getgrent): Use "void" in prototype.
34005         * lib/mountlist.c: Mark unused parameters.
34006         (read_file_system_list): Declare a local with "const".
34007         * lib/nanosleep.c (getnow): Declare static.
34008         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
34009
34010         dirfd: set errno upon failure
34011         * lib/dirfd.c: Include <errno.h>.
34012         Set errno to ENOTSUP when returning -1.
34013         * modules/dirfd (Depends-on): Add errno.
34014         Suggested by John Kodis <kodis@comcast.net>.
34015
34016 2009-02-01  Bruno Haible  <bruno@clisp.org>
34017
34018         Don't assume sizeof (long) >= sizeof (void *).
34019         * lib/memcmp.c: Include stdint.h.
34020         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
34021         srcp2 to 'const byte *'.
34022         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
34023         types to uintptr_t.
34024         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
34025         * modules/memcmp (Depends-on): Add stdint.
34026         Reported by Ozkan Sezer <sezeroz@gmail.com>.
34027
34028 2009-01-30  Eric Blake  <ebb9@byu.net>
34029
34030         fix more require-before-expand issues
34031         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
34032         expand, AC_PROG_AWK.
34033         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
34034
34035 2009-01-28  Eric Blake  <ebb9@byu.net>
34036
34037         version-etc: use consistent URL formatting
34038         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
34039         Improve formatting.  Use fputs for string without %.
34040
34041 2009-01-28  Jim Meyering  <meyering@redhat.com>
34042
34043         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
34044         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
34045         "underquoted definition of NAME" from autoconf-2.59.
34046
34047 2009-01-28  Bruno Haible  <bruno@clisp.org>
34048
34049         * doc/gnulib.texi: Add "Obsolete modules" to index.
34050
34051 2009-01-28  Jim Meyering  <meyering@redhat.com>
34052
34053         useless-if-before-free: recognize more variants
34054         * build-aux/useless-if-before-free: Also recognize e.g.,
34055         if (NULL != p) free (p);
34056
34057 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
34058
34059         test-getaddrinfo: skip (don't fail) this test when there's no network
34060         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
34061         on the presumption that it means you lack network access.
34062
34063 2009-01-26  Jim Meyering  <meyering@redhat.com>
34064
34065         fflush: avoid warnings on modern systems
34066         * lib/fflush.c (rpl_fflush): Move declarations of locals,
34067         pos and result, into scopes where they're used.
34068
34069 2009-01-26  Eric Blake  <ebb9@byu.net>
34070
34071         Silence warning reintroduced by recent extensions patch.
34072         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
34073         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
34074         autoconf.
34075
34076         Backport improved autoconf semantics of AC_DEFUN_ONCE.
34077         * m4/00gnulib.m4: New file.
34078         * gnulib-tool (func_get_filelist): Always use it.
34079         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
34080         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
34081
34082 2009-01-25  Bruno Haible  <bruno@clisp.org>
34083
34084         Make test-quotearg work on MacOS X and AIX.
34085         * tests/test-quotearg.sh: New file.
34086         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
34087         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
34088         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
34089         include <libintl.h>.
34090         (fake_locale): Remove variable.
34091         (gettext, dgettext, dcgettext): Remove functions.
34092         (main): Instead of setting a fake locale, set a real locale. Call
34093         textdomain and bindtextdomain.
34094         * modules/quotearg-tests (Files): Add the new files.
34095         (Depends-on): Add gettext, setenv, unsetenv.
34096         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
34097         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
34098         Augment TESTS_ENVIRONMENT.
34099
34100 2009-01-25  Bruno Haible  <bruno@clisp.org>
34101
34102         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
34103         fr_FR.ISO8859-1 locale on MacOS X.
34104         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
34105         ja_JP.eucJP locale on MacOS X.
34106         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
34107         zh_CN.GB18030 locale on MacOS X.
34108
34109 2009-01-25  Bruno Haible  <bruno@clisp.org>
34110
34111         Avoid link errors on MacOS X 10.3.
34112         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
34113         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
34114
34115 2009-01-25  Bruno Haible  <bruno@clisp.org>
34116
34117         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34118         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
34119         * modules/pipe (Files): Remove m4/posix_spawn.m4.
34120         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34121         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
34122         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34123         posix_spawnattr_init, posix_spawnattr_setsigmask,
34124         posix_spawnattr_setflags, posix_spawnattr_destroy.
34125
34126         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34127         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
34128         * modules/execute (Files): Remove m4/posix_spawn.m4.
34129         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34130         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34131         posix_spawnattr_init, posix_spawnattr_setsigmask,
34132         posix_spawnattr_setflags, posix_spawnattr_destroy.
34133
34134 2009-01-25  Bruno Haible  <bruno@clisp.org>
34135
34136         * lib/glthread/threadlib.c: Include <stdlib.h>.
34137
34138 2009-01-25  Bruno Haible  <bruno@clisp.org>
34139
34140         * lib/glthread/threadlib.c (dummy): New declaration.
34141
34142 2009-01-25  Bruno Haible  <bruno@clisp.org>
34143
34144         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
34145         multibyte characters also for the GB18030 encoding. Don't crash when
34146         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
34147
34148 2009-01-25  Bruno Haible  <bruno@clisp.org>
34149
34150         Avoid redefining 'struct random_data' on OSF/1 5.1.
34151         * lib/stdlib.in.h: Include <random.h> if it exists.
34152         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
34153         HAVE_RANDOM_H. Include <random.h> when testing whether
34154         'struct random_data' exists.
34155         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
34156
34157 2009-01-25  Bruno Haible  <bruno@clisp.org>
34158
34159         Don't install charset.alias on MacOS X >= 10.3.
34160         * lib/localcharset.c (DARWIN7): New macro.
34161         (get_charset_aliases): Hardcode the result for Darwin7.
34162         * modules/localcharset (install-exec-local): Don't install
34163         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
34164
34165 2009-01-25  Bruno Haible  <bruno@clisp.org>
34166
34167         Don't install charset.alias on mingw and Cygwin.
34168         * modules/localcharset (install-exec-local): Don't install
34169         charset.alias on mingw and Cygwin, if the file does not yet exist.
34170         The result for these platforms is hardcoded in localcharset.c.
34171
34172 2009-01-25  Bruno Haible  <bruno@clisp.org>
34173
34174         Make it possible again to use AC_GNU_SOURCE together with gnulib.
34175         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
34176         before requiring AC_USE_SYSTEM_EXTENSIONS.
34177
34178 2009-01-25  Jim Meyering  <meyering@redhat.com>
34179
34180         c-strtod: avoid warnings
34181         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
34182         "assignment discards qualifiers from pointer target type" warnings.
34183
34184 2009-01-24  Bruno Haible  <bruno@clisp.org>
34185
34186         Add support for non-UTF-8 locales on MacOS X.
34187         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
34188         canonical encodings. For Darwin 7 and newer, don't map traditional
34189         encodings to UTF-8.
34190         Reported by Vincent Lefevre <vincent@vinc17.org>
34191         at <http://savannah.gnu.org/bugs/?25235>.
34192
34193 2009-01-24  Bruno Haible  <bruno@clisp.org>
34194
34195         * doc/gnulib.texi (Obsolete modules): New section.
34196         Reported by Mike Frysinger <vapier@gentoo.org>.
34197
34198 2009-01-24  Bruno Haible  <bruno@clisp.org>
34199
34200         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
34201         (%.dvi): New rule.
34202
34203 2009-01-24  Bruno Haible  <bruno@clisp.org>
34204
34205         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
34206         Reported by Eric Blake.
34207
34208 2009-01-24  Bruno Haible  <bruno@clisp.org>
34209
34210         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
34211         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
34212         Reported by Gary V. Vaughan <gary@gnu.org>.
34213
34214 2009-01-24  Bruno Haible  <bruno@clisp.org>
34215
34216         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
34217
34218 2009-01-23  Bruno Haible  <bruno@clisp.org>
34219
34220         Make c-strtod, c-strtold usable in libraries.
34221         * lib/c-strtod.c: Include string.h instead of xalloc.h.
34222         (C_STRTOD): Call strdup instead of xstrdup.
34223         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
34224         * modules/c-strtold (Depends-on): Likewise.
34225         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
34226         * NEWS: Mention the change.
34227         Reported by Michael Gold <mgold@ncf.ca>.
34228
34229 2009-01-23  Jim Meyering  <meyering@redhat.com>
34230
34231         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
34232         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
34233         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
34234
34235 2009-01-23  Simon Josefsson  <simon@josefsson.org>
34236
34237         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
34238         GNU CoreUtils.
34239         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
34240         * modules/version-etc (Description): Update.
34241
34242 2009-01-22  Bruno Haible  <bruno@clisp.org>
34243
34244         Cache the C locale object.
34245         * lib/c-strtod.c (c_locale_cache): New variable.
34246         (c_locale): New function.
34247         (C_STRTOD): Use it, and don't call freelocale.
34248         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
34249         Suggested by Paolo Bonzini.
34250
34251 2009-01-21  Bruno Haible  <bruno@clisp.org>
34252
34253         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
34254         conditions other than overflow.
34255
34256 2009-01-21  Bruno Haible  <bruno@clisp.org>
34257
34258         * lib/c-strtod.c: Include errno.h.
34259         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
34260         value from STRTOD_L and STRTOD.
34261
34262 2009-01-21  Bruno Haible  <bruno@clisp.org>
34263         and Jim Meyering  <meyering@redhat.com>
34264
34265         nanosleep: skip configure test (fail it) for apple universal builds
34266         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
34267         universal builds, assume that nanosleep does not work.
34268         * modules/nanosleep (Depends-on): Add multiarch.
34269
34270         mktime: skip configure test (fail it) for apple universal builds
34271         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
34272         universal builds, assume that mktime does not work.
34273         * modules/mktime (Depends-on): Add multiarch.
34274
34275 2009-01-21  Eric Blake  <ebb9@byu.net>
34276
34277         multiarch: avoid expand-before-require warning
34278         * modules/multiarch (configure.ac): Require, rather than expand,
34279         gl_MULTIARCH.
34280         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
34281         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
34282         enforce that all clients require it.  Partial reversion of
34283         2008-12-29 patch.
34284
34285         error: avoid expand-before-require warning
34286         * modules/errno (configure.ac): Require, rather than expand,
34287         gl_HEADER_ERRNO_H.
34288         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
34289         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
34290         enforce that all clients require it.
34291
34292         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
34293         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
34294         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
34295         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
34296
34297 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
34298
34299         Revert:
34300         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34301
34302         regex: do not depend on obsolete modules.
34303         * modules/regex: Remove memcmp and memmove.
34304
34305 2009-01-20  Bruno Haible  <bruno@clisp.org>
34306
34307         Make the 'link' module link on Windows NT 4.
34308         * lib/link.c (_WIN32_WINNT): Don't define.
34309         (CreateHardLinkFuncType): New type.
34310         (CreateHardLinkFunc, initialized): New variables.
34311         (initialize): New function.
34312         (link): Invoke CreateHardLink indirectly through the function pointer.
34313
34314 2009-01-20  Bruno Haible  <bruno@clisp.org>
34315
34316         Fix compilation failure on mingw.
34317         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
34318
34319 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
34320
34321         * doc/c-strtod.texi: Mention a couple of restrictions.
34322
34323 2009-01-20  Jim Meyering  <meyering@redhat.com>
34324
34325         gettimeofday: move more declarations out of functions
34326         * lib/gettimeofday.c: Move extern declarations of tzset and
34327         gmtime out of containing functions.  Prompted by Bruno Haible.
34328
34329 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34330
34331         regex: do not depend on obsolete modules.
34332         * modules/regex: Remove memcmp and memmove.
34333
34334 2009-01-19  Bruno Haible  <bruno@clisp.org>
34335
34336         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34337         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
34338         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34339         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
34340         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
34341
34342 2009-01-19  Bruno Haible  <bruno@clisp.org>
34343
34344         * tests/test-link.c: Include <errno.h>.
34345         (main): Exit with code 77 when a hard link cannot be created due to
34346         the file system.
34347         * tests/test-link.sh: Skip test when a hard link cannot be created due
34348         to the file system.
34349         Suggested by Eric Blake.
34350
34351 2009-01-19  Martin Lambers  <marlam@marlam.de>
34352
34353         * modules/link-tests: New file.
34354         * tests/test-link.sh: New file.
34355         * tests/test-link.c: New file.
34356
34357 2009-01-19  Eric Blake  <ebb9@byu.net>
34358
34359         doc: mention another function added in cygwin 1.7.0
34360         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
34361         Another new function in cygwin 1.7.
34362
34363 2009-01-19  Bruno Haible  <bruno@clisp.org>
34364
34365         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34366         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
34367         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
34368         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34369         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34370         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
34371         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
34372         * m4/md4.m4 (gl_MD4): Likewise.
34373         * m4/md5.m4 (gl_MD5): Likewise.
34374         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
34375         * m4/sha1.m4 (gl_SHA1): Likewise.
34376         * m4/sha256.m4 (gl_SHA256): Likewise.
34377         * m4/sha512.m4 (gl_SHA512): Likewise.
34378
34379 2009-01-19  Bruno Haible  <bruno@clisp.org>
34380
34381         * modules/uniname/uniname-tests (Depends-on): Add progname.
34382         * tests/uniname/test-uninames.c: Include progname.h.
34383         (main): Call set_program_name.
34384
34385         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
34386         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
34387         (main): Call set_program_name.
34388
34389         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
34390         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
34391         (main): Call set_program_name.
34392
34393         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
34394         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
34395         (main): Call set_program_name.
34396
34397         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
34398         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
34399         (main): Call set_program_name.
34400
34401         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
34402         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
34403         (main): Call set_program_name.
34404
34405         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
34406         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
34407         (main): Call set_program_name.
34408
34409         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
34410         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
34411         (main): Call set_program_name.
34412
34413         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
34414         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
34415         (main): Call set_program_name.
34416
34417 2009-01-19  Eric Blake  <ebb9@byu.net>
34418
34419         test-unistd: test previous patch
34420         * tests/test-unistd.c: Test *_FILENO macros.
34421
34422         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
34423         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34424         Guarantee a definition.
34425         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
34426         * modules/unistd-safer (Depends-on): Add dependency on unistd.
34427         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
34428         * lib/dup-safer.c (STDERR_FILENO): Likewise.
34429         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34430         Likewise.
34431         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
34432         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
34433         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34434         Likewise.
34435         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
34436         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
34437         (STDERR_FILENO): Likewise.
34438         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
34439         (STDERR_FILENO): Likewise.
34440         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
34441         (STDERR_FILENO): Likewise.
34442         Reported by Elbert Pol.
34443
34444 2009-01-19  Eric Blake  <ebb9@byu.net>
34445
34446         doc: mention more functions added in cygwin 1.7.0
34447         * doc/posix-functions/abort.texi (abort): Update wording related
34448         to cygwin.
34449         * doc/posix-functions/daylight.texi (daylight): Likewise.
34450         * doc/posix-functions/optarg.texi (optarg): Likewise.
34451         * doc/posix-functions/optarg.texi (opterr): Likewise.
34452         * doc/posix-functions/optarg.texi (optind): Likewise.
34453         * doc/posix-functions/optarg.texi (optopt): Likewise.
34454         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
34455         worked in 1.5.x, and was withdrawn in 1.7.
34456         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
34457         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
34458         cygwin versions.
34459         * doc/posix-functions/perror.texi (perror): Likewise.
34460         * doc/posix-functions/printf.texi (printf): Likewise.
34461         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
34462         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
34463         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
34464         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
34465         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
34466         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
34467         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
34468         Likewise.
34469         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
34470         Likewise.
34471         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
34472         this function.
34473         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
34474         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
34475         Likewise.
34476         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
34477         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
34478         * doc/posix-functions/confstr.texi (confstr): Likewise.
34479         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
34480         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
34481         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
34482         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
34483         * doc/posix-functions/fputws.texi (fputws): Likewise.
34484         * doc/posix-functions/fwide.texi (fwide): Likewise.
34485         * doc/posix-functions/getwc.texi (getwc): Likewise.
34486         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
34487         * doc/posix-functions/putwc.texi (putwc): Likewise.
34488         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
34489         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
34490         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
34491         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
34492         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
34493         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
34494         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
34495         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
34496         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
34497         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
34498         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
34499
34500 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34501
34502         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
34503         * lib/ioctl.c: Include <sys/ioctl.h>.
34504
34505 2009-01-19  Simon Josefsson  <simon@josefsson.org>
34506
34507         * modules/getdate-tests (Depends-on): Add progname.
34508         * tests/test-getdate.c: Use progname module, to avoid link errors
34509         on non-glibc systems.
34510
34511 2009-01-18  Simon Josefsson  <simon@josefsson.org>
34512
34513         * modules/filenamecat-tests (Depends-on): Add progname.
34514         * modules/fstrcmp-tests (Depends-on): Likewise.
34515
34516         * tests/test-filenamecat.c: Use progname module, to avoid link
34517         errors on non-glibc systems.
34518         * tests/test-fstrcmp.c: Likewise.
34519
34520 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34521
34522         gettimeofday: avoid warning: nested extern declaration of 'localtime'
34523         * lib/gettimeofday.c: Move extern declaration out of function.
34524
34525 2009-01-18  Bruno Haible  <bruno@clisp.org>
34526
34527         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
34528         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
34529         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
34530
34531 2009-01-18  Bruno Haible  <bruno@clisp.org>
34532
34533         * lib/strftime.c (MEMPCPY): Remove unused macro.
34534         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
34535
34536 2009-01-18  Martin Lambers  <marlam@marlam.de>
34537
34538         New module 'link'.
34539         * lib/unistd.in.h (link): New declaration.
34540         * lib/link.c: New file.
34541         * m4/link.m4: New file.
34542         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
34543         HAVE_LINK.
34544         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
34545         * modules/link: New file.
34546         * doc/posix-functions/link.texi: Mention the new module.
34547
34548 2009-01-18  Bruno Haible  <bruno@clisp.org>
34549
34550         * tests/test-avltree_list.c (main): Call set_program_name.
34551         * tests/test-avltree_oset.c (main): Likewise.
34552         * tests/test-obstack-printf.c: Include progname.h.
34553         (main): Call set_program_name.
34554         * tests/test-quotearg.c: Include progname.h.
34555         (main): Call set_program_name.
34556         * tests/test-xmemdup0.c: Include progname.h.
34557         (main): Call set_program_name.
34558
34559 2009-01-18  Bruno Haible  <bruno@clisp.org>
34560
34561         New module 'alphasort'.
34562         * lib/dirent.in.h (alphasort): New declaration.
34563         * lib/alphasort.c: New file, from glibc with modifications.
34564         * m4/alphasort.m4: New file.
34565         * modules/alphasort: New file.
34566         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
34567         HAVE_ALPHASORT.
34568         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
34569         HAVE_ALPHASORT.
34570         * doc/posix-functions/alphasort.texi: Mention the new module and the
34571         portability problems.
34572
34573 2009-01-18  Bruno Haible  <bruno@clisp.org>
34574
34575         New module 'scandir'.
34576         * lib/dirent.in.h (scandir): New declaration.
34577         * lib/scandir.c: New file, from glibc with modifications.
34578         * m4/scandir.m4: New file.
34579         * modules/scandir: New file.
34580         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
34581         HAVE_SCANDIR.
34582         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
34583         HAVE_SCANDIR.
34584         * doc/posix-functions/scandir.texi: Mention the new module and the
34585         portability problems.
34586
34587 2009-01-17  Bruno Haible  <bruno@clisp.org>
34588
34589         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
34590         Update documentation.
34591         (func_remove_suffix): Escape all dots in the suffix. Update
34592         documentation.
34593         (func_filter_filelist): Update documentation.
34594         Reported by Ralf Wildenhues.
34595
34596 2009-01-17  Bruno Haible  <bruno@clisp.org>
34597
34598         * modules/dprintf-posix-tests: New file.
34599         * tests/test-dprintf-posix.sh: New file.
34600         * tests/test-dprintf-posix.c: New file.
34601
34602         New modules 'dprintf', 'dprintf-posix'.
34603         * lib/stdio.in.h (dprintf): New declaration.
34604         * lib/dprintf.c: New file.
34605         * m4/dprintf.m4: New file.
34606         * m4/dprintf-posix.m4: New file.
34607         * modules/dprintf: New file.
34608         * modules/dprintf-posix: New file.
34609         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
34610         HAVE_DPRINTF, REPLACE_DPRINTF.
34611         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
34612         HAVE_DPRINTF, REPLACE_DPRINTF.
34613         * doc/posix-functions/dprintf.texi: Mention the new modules.
34614
34615 2009-01-17  Bruno Haible  <bruno@clisp.org>
34616
34617         * modules/vdprintf-posix-tests: New file.
34618         * tests/test-vdprintf-posix.sh: New file.
34619         * tests/test-vdprintf-posix.c: New file.
34620
34621         New modules 'vdprintf', 'vdprintf-posix'.
34622         * lib/stdio.in.h (vdprintf): New declaration.
34623         * lib/vdprintf.c: New file.
34624         * m4/vdprintf.m4: New file.
34625         * m4/vdprintf-posix.m4: New file.
34626         * modules/vdprintf: New file.
34627         * modules/vdprintf-posix: New file.
34628         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
34629         HAVE_VDPRINTF, REPLACE_VDPRINTF.
34630         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
34631         HAVE_VDPRINTF, REPLACE_VDPRINTF.
34632         * doc/posix-functions/vdprintf.texi: Mention the new modules.
34633
34634 2009-01-17  Bruno Haible  <bruno@clisp.org>
34635
34636         Fix replacement of fopen on mingw.
34637         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
34638         mingw.
34639
34640 2009-01-17  Bruno Haible  <bruno@clisp.org>
34641
34642         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
34643         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
34644
34645 2009-01-17  Bruno Haible  <bruno@clisp.org>
34646
34647         Avoid test-fflush2.sh failure on mingw.
34648         * tests/test-fflush2.c: Include binary-io.h.
34649         (main): Put standard input into binary mode.
34650         * modules/fflush-tests (Depends-on): Add binary-io.
34651
34652 2009-01-17  Bruno Haible  <bruno@clisp.org>
34653
34654         * lib/wchar.in.h: In another particular situation, include only the
34655         system's <wchar.h> file.
34656         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
34657         Reported by Albert Chin-A-Young <china@thewrittenword.com>
34658         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
34659
34660 2009-01-17  Bruno Haible  <bruno@clisp.org>
34661
34662         Support for stripping executables in --enable-relocatable.
34663         * build-aux/install-reloc: Expect one more argument, or an environment
34664         variable RELOC_STRIP_PROG. If set, strip the destination program and
34665         its wrapper.
34666         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
34667         RELOC_STRIP_PROG.
34668         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
34669         to set RELOCATABLE_STRIP.
34670         * NEWS: Mention the new Makefile requirement.
34671
34672 2009-01-17  Bruno Haible  <bruno@clisp.org>
34673
34674         * build-aux/install-reloc: Remove debugging information left over by
34675         C compiler on MacOS X.
34676
34677 2009-01-17  Bruno Haible  <bruno@clisp.org>
34678
34679         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
34680         * lib/progreloc.c (find_executable): Fix type of pointer passed to
34681         _NSGetExecutablePath.
34682
34683 2009-01-16  Jim Meyering  <meyering@redhat.com>
34684
34685         strerror: avoid warnings about discarding "const"
34686         * lib/strerror.c (rpl_strerror): Instead of returning a const
34687         string from each and every "case", use a variable, and add a single
34688         cast after the switch.
34689
34690 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
34691
34692         * lib/arpa_inet.in.h: Add extern "C" block for C++.
34693
34694 2009-01-16  Bruno Haible  <bruno@clisp.org>
34695
34696         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
34697         array initializer syntax that also works in C++ mode.
34698         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34699
34700 2009-01-16  Jim Meyering  <meyering@redhat.com>
34701
34702         poll: suppress a warning
34703         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
34704         to ignore "...unsigned expression < 0 is always false" warnings.
34705
34706 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
34707
34708         poll: remove declarations of unused variables
34709         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
34710         sockbuf and optlen.
34711
34712 2009-01-15  Bruno Haible  <bruno@clisp.org>
34713
34714         Make fflush-after-ungetc POSIX compliant on BSD systems.
34715         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
34716         (clear_ungetc_buffer): Implement also for other systems.
34717         (rpl_fflush): On glibc systems, invoke
34718         clear_ungetc_buffer_preserving_position. Otherwise, invoke
34719         clear_ungetc_buffer after fetching the stream's position, not before.
34720
34721 2009-01-15  Bruno Haible  <bruno@clisp.org>
34722
34723         Make fflush-after-ungetc POSIX compliant on glibc systems.
34724         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
34725         after ungetc.
34726         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
34727         (rpl_fflush): On glibc systems, simply call the system's fflush
34728         function after clearing the ungetc buffer.
34729         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
34730         Instead, lseek only to the end of file, then use the system's fseeko
34731         for the rest. On glibc systems, reset the EOF indicator bit.
34732
34733 2009-01-15  Jim Meyering  <meyering@redhat.com>
34734
34735         openmp.m4: revert quote-adding change, for portability to older autoconf
34736         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
34737         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
34738         Simon Josefsson noticed the problem when using autoconf-2.61.
34739
34740 2009-01-15  Bruno Haible  <bruno@clisp.org>
34741
34742         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
34743         * tests/test-fflush2.c (ASSERT): Always fail.
34744         (main): Add two tests for fflush() after ungetc(), taking into account
34745         the Austin Group's clarification.
34746         Suggested by Eric Blake.
34747
34748 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
34749
34750         mktime.m4: remove K&R-style function prototypes
34751         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
34752         for the Sun C++ compiler.
34753
34754 2009-01-14  Bruno Haible  <bruno@clisp.org>
34755
34756         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
34757         while including <wchar.h>.
34758         * lib/wchar.in.h: In two particular situations on HP-UX, include only
34759         the system's <wchar.h> file.
34760         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34761
34762 2009-01-14  Bruno Haible  <bruno@clisp.org>
34763
34764         * m4/csharp.m4: Don't mention gettext on the serial number line.
34765         * m4/csharpexec.m4: Likewise.
34766         * m4/eaccess.m4: Likewise.
34767         * m4/javaexec.m4: Likewise.
34768         * m4/sig_atomic_t.m4: Likewise.
34769         * m4/tmpdir.m4: Likewise.
34770         * m4/intldir.m4: Bump gettext version.
34771         * m4/lib-ld.m4: Likewise.
34772
34773 2009-01-14  Bruno Haible  <bruno@clisp.org>
34774
34775         * lib/progname.c (set_program_name): Add more comments.
34776         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34777
34778 2009-01-14  Simon Josefsson  <simon@josefsson.org>
34779
34780         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
34781         were sys/stat.h does not define it.
34782
34783 2009-01-14  Jim Meyering  <meyering@redhat.com>
34784
34785         many *.m4 files: improve m4 quoting
34786         99% of this change was performed by running the following commands:
34787         git ls-files | grep '\.m4$' | xargs perl -pi \
34788           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
34789           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
34790           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
34791           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
34792         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
34793         The remainder were to add Copyright dates, increment serial numbers,
34794         undo some changes in comments, exclude m4/intl.m4, and add quotes
34795         around the "1" in ",1" where the unusual spacing prohibited the
34796         above regexps from doing the job.  For more details, see
34797         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
34798         * m4/acl.m4: Modified.
34799         * m4/afs.m4: Likewise.
34800         * m4/alloca.m4: Likewise.
34801         * m4/argp.m4: Likewise.
34802         * m4/argz.m4: Likewise.
34803         * m4/atexit.m4: Likewise.
34804         * m4/bison-i18n.m4: Likewise.
34805         * m4/bison.m4: Likewise.
34806         * m4/byteswap.m4: Likewise.
34807         * m4/c-stack.m4: Likewise.
34808         * m4/c-strtod.m4: Likewise.
34809         * m4/calloc.m4: Likewise.
34810         * m4/canonicalize-lgpl.m4: Likewise.
34811         * m4/chown.m4: Likewise.
34812         * m4/clock_time.m4: Likewise.
34813         * m4/codeset.m4: Likewise.
34814         * m4/copy-file.m4: Likewise.
34815         * m4/csharp.m4: Likewise.
34816         * m4/csharpcomp.m4: Likewise.
34817         * m4/csharpexec.m4: Likewise.
34818         * m4/d-ino.m4: Likewise.
34819         * m4/d-type.m4: Likewise.
34820         * m4/dirfd.m4: Likewise.
34821         * m4/double-slash-root.m4: Likewise.
34822         * m4/eaccess.m4: Likewise.
34823         * m4/eealloc.m4: Likewise.
34824         * m4/environ.m4: Likewise.
34825         * m4/errno_h.m4: Likewise.
34826         * m4/euidaccess.m4: Likewise.
34827         * m4/execute.m4: Likewise.
34828         * m4/fatal-signal.m4: Likewise.
34829         * m4/fchdir.m4: Likewise.
34830         * m4/fcntl_h.m4: Likewise.
34831         * m4/fileblocks.m4: Likewise.
34832         * m4/filenamecat.m4: Likewise.
34833         * m4/findprog.m4: Likewise.
34834         * m4/flexmember.m4: Likewise.
34835         * m4/fnmatch.m4: Likewise.
34836         * m4/fopen.m4: Likewise.
34837         * m4/fpending.m4: Likewise.
34838         * m4/fprintf-posix.m4: Likewise.
34839         * m4/free.m4: Likewise.
34840         * m4/frexp.m4: Likewise.
34841         * m4/frexpl.m4: Likewise.
34842         * m4/fsusage.m4: Likewise.
34843         * m4/ftruncate.m4: Likewise.
34844         * m4/gc-camellia.m4: Likewise.
34845         * m4/gc-random.m4: Likewise.
34846         * m4/gc.m4: Likewise.
34847         * m4/getaddrinfo.m4: Likewise.
34848         * m4/getcwd-abort-bug.m4: Likewise.
34849         * m4/getcwd-path-max.m4: Likewise.
34850         * m4/getdate.m4: Likewise.
34851         * m4/getdomainname.m4: Likewise.
34852         * m4/getgroups.m4: Likewise.
34853         * m4/gethostname.m4: Likewise.
34854         * m4/gethrxtime.m4: Likewise.
34855         * m4/getline.m4: Likewise.
34856         * m4/getloadavg.m4: Likewise.
34857         * m4/getndelim2.m4: Likewise.
34858         * m4/getpass.m4: Likewise.
34859         * m4/gettext.m4: Likewise.
34860         * m4/gettime.m4: Likewise.
34861         * m4/gettimeofday.m4: Likewise.
34862         * m4/gnulib-common.m4: Likewise.
34863         * m4/group-member.m4: Likewise.
34864         * m4/host-os.m4: Likewise.
34865         * m4/iconv.m4: Likewise.
34866         * m4/iconv_open.m4: Likewise.
34867         * m4/inet_ntop.m4: Likewise.
34868         * m4/inet_pton.m4: Likewise.
34869         * m4/inline.m4: Likewise.
34870         * m4/intldir.m4: Likewise.
34871         * m4/intlmacosx.m4: Likewise.
34872         * m4/intmax.m4: Likewise.
34873         * m4/intmax_t.m4: Likewise.
34874         * m4/inttypes.m4: Likewise.
34875         * m4/inttypes_h.m4: Likewise.
34876         * m4/inttypes-pri.m4: Likewise.
34877         * m4/isapipe.m4: Likewise.
34878         * m4/isnand.m4: Likewise.
34879         * m4/isnanf.m4: Likewise.
34880         * m4/isnanl.m4: Likewise.
34881         * m4/javacomp.m4: Likewise.
34882         * m4/javaexec.m4: Likewise.
34883         * m4/jm-winsz1.m4: Likewise.
34884         * m4/jm-winsz2.m4: Likewise.
34885         * m4/lchown.m4: Likewise.
34886         * m4/lcmessage.m4: Likewise.
34887         * m4/ldexpl.m4: Likewise.
34888         * m4/lib-ld.m4: Likewise.
34889         * m4/lib-link.m4: Likewise.
34890         * m4/libsigsegv.m4: Likewise.
34891         * m4/link-follow.m4: Likewise.
34892         * m4/localcharset.m4: Likewise.
34893         * m4/locale-fr.m4: Likewise.
34894         * m4/locale-ja.m4: Likewise.
34895         * m4/locale-tr.m4: Likewise.
34896         * m4/locale-zh.m4: Likewise.
34897         * m4/lock.m4: Likewise.
34898         * m4/longlong.m4: Likewise.
34899         * m4/ls-mntd-fs.m4: Likewise.
34900         * m4/lstat.m4: Likewise.
34901         * m4/malloc.m4: Likewise.
34902         * m4/mathl.m4: Likewise.
34903         * m4/mbrtowc.m4: Likewise.
34904         * m4/mbstate_t.m4: Likewise.
34905         * m4/mbswidth.m4: Likewise.
34906         * m4/memchr.m4: Likewise.
34907         * m4/memcmp.m4: Likewise.
34908         * m4/memcpy.m4: Likewise.
34909         * m4/memmem.m4: Likewise.
34910         * m4/memmove.m4: Likewise.
34911         * m4/mempcpy.m4: Likewise.
34912         * m4/memrchr.m4: Likewise.
34913         * m4/memset.m4: Likewise.
34914         * m4/minmax.m4: Likewise.
34915         * m4/mkdir-slash.m4: Likewise.
34916         * m4/mkdtemp.m4: Likewise.
34917         * m4/mktime.m4: Likewise.
34918         * m4/mmap-anon.m4: Likewise.
34919         * m4/mountlist.m4: Likewise.
34920         * m4/nanosleep.m4: Likewise.
34921         * m4/nls.m4: Likewise.
34922         * m4/nocrash.m4: Likewise.
34923         * m4/open.m4: Likewise.
34924         * m4/openat.m4: Likewise.
34925         * m4/openmp.m4: Likewise.
34926         * m4/pathmax.m4: Likewise.
34927         * m4/perl.m4: Likewise.
34928         * m4/physmem.m4: Likewise.
34929         * m4/pipe.m4: Likewise.
34930         * m4/po.m4: Likewise.
34931         * m4/poll.m4: Likewise.
34932         * m4/posixtm.m4: Likewise.
34933         * m4/posixver.m4: Likewise.
34934         * m4/printf-frexp.m4: Likewise.
34935         * m4/printf-frexpl.m4: Likewise.
34936         * m4/printf-posix.m4: Likewise.
34937         * m4/printf-posix-rpl.m4: Likewise.
34938         * m4/printf.m4: Likewise.
34939         * m4/progtest.m4: Likewise.
34940         * m4/putenv.m4: Likewise.
34941         * m4/readline.m4: Likewise.
34942         * m4/readlink.m4: Likewise.
34943         * m4/readutmp.m4: Likewise.
34944         * m4/realloc.m4: Likewise.
34945         * m4/regex.m4: Likewise.
34946         * m4/relocatable.m4: Likewise.
34947         * m4/relocatable-lib.m4: Likewise.
34948         * m4/rename-dest-slash.m4: Likewise.
34949         * m4/rename.m4: Likewise.
34950         * m4/rmdir-errno.m4: Likewise.
34951         * m4/rmdir.m4: Likewise.
34952         * m4/roundf.m4: Likewise.
34953         * m4/roundl.m4: Likewise.
34954         * m4/rpmatch.m4: Likewise.
34955         * m4/save-cwd.m4: Likewise.
34956         * m4/selinux-selinux-h.m4: Likewise.
34957         * m4/setenv.m4: Likewise.
34958         * m4/settime.m4: Likewise.
34959         * m4/sig2str.m4: Likewise.
34960         * m4/sig_atomic_t.m4: Likewise.
34961         * m4/signalblocking.m4: Likewise.
34962         * m4/signbit.m4: Likewise.
34963         * m4/sigpipe.m4: Likewise.
34964         * m4/sockets.m4: Likewise.
34965         * m4/sockpfaf.m4: Likewise.
34966         * m4/st_dm_mode.m4: Likewise.
34967         * m4/stat-time.m4: Likewise.
34968         * m4/stdbool.m4: Likewise.
34969         * m4/stdint.m4: Likewise.
34970         * m4/stdint_h.m4: Likewise.
34971         * m4/stpcpy.m4: Likewise.
34972         * m4/stpncpy.m4: Likewise.
34973         * m4/strcase.m4: Likewise.
34974         * m4/strchrnul.m4: Likewise.
34975         * m4/strcspn.m4: Likewise.
34976         * m4/strdup.m4: Likewise.
34977         * m4/strftime.m4: Likewise.
34978         * m4/strndup.m4: Likewise.
34979         * m4/strnlen.m4: Likewise.
34980         * m4/strpbrk.m4: Likewise.
34981         * m4/strptime.m4: Likewise.
34982         * m4/strsep.m4: Likewise.
34983         * m4/strtod.m4: Likewise.
34984         * m4/strtoimax.m4: Likewise.
34985         * m4/strtok_r.m4: Likewise.
34986         * m4/strtol.m4: Likewise.
34987         * m4/strtoll.m4: Likewise.
34988         * m4/strtoul.m4: Likewise.
34989         * m4/strtoull.m4: Likewise.
34990         * m4/strtoumax.m4: Likewise.
34991         * m4/strverscmp.m4: Likewise.
34992         * m4/threadlib.m4: Likewise.
34993         * m4/timegm.m4: Likewise.
34994         * m4/tm_gmtoff.m4: Likewise.
34995         * m4/tmpdir.m4: Likewise.
34996         * m4/tmpfile.m4: Likewise.
34997         * m4/tzset.m4: Likewise.
34998         * m4/uintmax_t.m4: Likewise.
34999         * m4/unlinkdir.m4: Likewise.
35000         * m4/unlocked-io.m4: Likewise.
35001         * m4/uptime.m4: Likewise.
35002         * m4/userspec.m4: Likewise.
35003         * m4/utimbuf.m4: Likewise.
35004         * m4/utime.m4: Likewise.
35005         * m4/utimes-null.m4: Likewise.
35006         * m4/utimes.m4: Likewise.
35007         * m4/vararrays.m4: Likewise.
35008         * m4/vasnprintf.m4: Likewise.
35009         * m4/vfprintf-posix.m4: Likewise.
35010         * m4/vprintf-posix.m4: Likewise.
35011         * m4/wait-process.m4: Likewise.
35012         * m4/wchar_t.m4: Likewise.
35013         * m4/wint_t.m4: Likewise.
35014         * m4/write-any-file.m4: Likewise.
35015         * m4/yield.m4: Likewise.
35016
35017 2009-01-13  Bruno Haible  <bruno@clisp.org>
35018
35019         Avoid test-copy-file.sh failures when ACL support insufficient.
35020         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
35021         TESTS_ENVIRONMENT.
35022         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
35023         Reported by Jim Meyering.
35024
35025 2009-01-13  Bruno Haible  <bruno@clisp.org>
35026
35027         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
35028         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
35029         * modules/unistdio/u8-printf-parse (Files): Likewise.
35030         * modules/unistdio/u32-printf-parse (Files): Likewise.
35031         * modules/unistdio/ulc-printf-parse (Files): Likewise.
35032
35033 2009-01-13  Simon Josefsson  <simon@josefsson.org>
35034
35035         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
35036         and m4/inttypes_h.m4 too.
35037
35038 2009-01-12  Eric Blake  <ebb9@byu.net>
35039
35040         tests: IRIX 6.2 cc can't compile -0.0 into .data
35041         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
35042         rather than at compile-time.
35043         * tests/test-floorl.c (minus_zero): Likewise.
35044         * tests/test-frexpl.c (minus_zero): Likewise.
35045         * tests/test-isnan.c (minus_zerol): Likewise.
35046         * tests/test-isnanl.h (minus_zero): Likewise.
35047         * tests/test-ldexpl.c (minus_zero): Likewise.
35048         * tests/test-roundl.c (minus_zero): Likewise.
35049         * tests/test-signbit.c (minus_zerol): Likewise.
35050         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35051         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35052         * tests/test-truncl.c (minus_zero): Likewise.
35053         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35054         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35055         Reported by Tom G. Christensen and Nelson H. F. Beebe.
35056
35057 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35058
35059         regex: fix glibc bug 9697
35060         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
35061         handling.
35062
35063 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35064
35065         regex: fix glibc bug 697
35066         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
35067         being NULL also if there are no backreferences.
35068
35069 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35070
35071         regex: merge glibc changes
35072         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
35073         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
35074         re_string_skip_chars, re_string_reconstruct): Likewise.
35075         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
35076
35077 2009-01-07  Jim Meyering  <meyering@redhat.com>
35078
35079         poll: filter through cppi
35080         * lib/poll.c: Indent cpp directives to reflect nesting.
35081
35082 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
35083
35084         poll: don't return uninitialized
35085         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
35086
35087 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
35088
35089         avoid compile failure on AIX 6.1
35090         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
35091         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
35092
35093 2009-01-04  Jim Meyering  <meyering@redhat.com>
35094
35095         remove duplicate inclusion of <stdio.h>
35096         * tests/test-fprintf-posix.c: Likewise.
35097         * tests/test-printf-posix.c: Likewise.
35098         * tests/test-snprintf-posix.c: Likewise.
35099         * tests/test-sprintf-posix.c: Likewise.
35100         * tests/test-vasprintf-posix.c: Likewise.
35101         * tests/test-vfprintf-posix.c: Likewise.
35102         * tests/test-vprintf-posix.c: Likewise.
35103         * tests/test-vsnprintf-posix.c: Likewise.
35104         * tests/test-vsprintf-posix.c: Likewise.
35105
35106 2009-01-03  Jim Meyering  <meyering@redhat.com>
35107
35108         gnulib-tool: fix sed-based filtering
35109         * gnulib-tool (func_filter_filelist): Remove extra backslash
35110         in sed_fff_filter definition.
35111
35112 2009-01-02  Jim Meyering  <meyering@redhat.com>
35113
35114         strftime: avoid compilation failure on Solaris 2.6
35115         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
35116         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
35117         Don't #define mbrlen or mbsinit, since now they're guaranteed to
35118         be available.  Reported by Tom G. Christensen.  Details in
35119         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
35120
35121 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35122             Bruno Haible  <bruno@clisp.org>
35123
35124         Speed up gnulib-tool by doing more string processing through shell
35125         built-ins.
35126         * gnulib-tool (fast_func_append): New variable.
35127         (func_remove_prefix, func_remove_suffix): New functions.
35128         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
35129         (func_filter_filelist): New function.
35130         (func_get_dependencies): Use func_remove_suffix instead of sed.
35131         (func_get_automake_snippet): Use func_filter_filelist instead of a
35132         subshell and sed invocation.
35133
35134 2009-01-01  Bruno Haible  <bruno@clisp.org>
35135
35136         Fix a security bug.
35137         * gnulib-tool (func_import, import, update): Don't allow the characters
35138         '"', '$', '`', '\' in macro arguments that become part of commands that
35139         are evaluated.
35140
35141 2009-01-01  Bruno Haible  <bruno@clisp.org>
35142
35143         * gnulib-tool (func_reset_sigpipe): Add more comments.
35144
35145 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35146
35147         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
35148         func_emit_tests_Makefile_am, func_import): Abort loops early if we
35149         already know the answer.
35150
35151 2009-01-01  Jim Meyering  <meyering@redhat.com>
35152
35153         * lib/version-etc.c (version_etc_va): Update copyright year.
35154
35155 2008-12-30  Bruno Haible  <bruno@clisp.org>
35156
35157         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
35158         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
35159         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
35160
35161 2008-12-29  Eric Blake  <ebb9@byu.net>
35162
35163         multiarch: avoid autoconf AC_REQUIRE bug
35164         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
35165         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
35166         2.63 and older.
35167         Reported by Bruno Haible, and analyzed in
35168         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
35169
35170 2008-12-29  Bruno Haible  <bruno@clisp.org>
35171
35172         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
35173         files in subdirectories correctly.
35174         Reported by Ralf Wildenhues.
35175
35176 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35177
35178         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
35179         rather than 'join FILE -', for Solaris join.
35180
35181 2008-12-29  Bruno Haible  <bruno@clisp.org>
35182
35183         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
35184         quoting.
35185         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
35186         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
35187         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
35188         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
35189         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
35190         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
35191         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
35192         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
35193         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
35194         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
35195         * m4/nls.m4 (AM_NLS): Likewise.
35196         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
35197         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
35198         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
35199         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
35200         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
35201         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
35202         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
35203         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
35204         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
35205         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
35206         * m4/xsize.m4 (gl_XSIZE): Likewise.
35207         Suggested by Jim Meyering.
35208
35209 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35210
35211         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
35212         * lib/parse-duration.c: use a switch instead of cascading if's.
35213
35214 2008-12-29  Eric Blake  <ebb9@byu.net>
35215
35216         wchar.h: supply WEOF on Irix 5.3
35217         * lib/wchar.in.h (wint_t): Also supply WEOF.
35218         * lib/wctype.in.h (wint_t): Likewise.
35219         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
35220         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
35221         Reported by Tom G. Christensen.
35222
35223 2008-12-26  Bruno Haible  <bruno@clisp.org>
35224
35225         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
35226         i486, i586, i686.
35227
35228 2008-12-26  Bruno Haible  <bruno@clisp.org>
35229
35230         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
35231
35232 2008-12-26  Bruno Haible  <bruno@clisp.org>
35233
35234         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
35235         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
35236         not __STDC_CONSTANT_MACROS.
35237         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35238
35239 2008-12-25  Bruno Haible  <bruno@clisp.org>
35240
35241         Add support for universal builds to vasnprintf.
35242         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
35243         universal builds, guess no.
35244         * modules/vasnprintf-posix (Depends-on): Add multiarch.
35245         * modules/vasprintf-posix (Depends-on): Likewise.
35246         * modules/fprintf-posix (Depends-on): Likewise.
35247         * modules/vfprintf-posix (Depends-on): Likewise.
35248         * modules/snprintf-posix (Depends-on): Likewise.
35249         * modules/vsnprintf-posix (Depends-on): Likewise.
35250         * modules/sprintf-posix (Depends-on): Likewise.
35251         * modules/vsprintf-posix (Depends-on): Likewise.
35252         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35253         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35254         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35255         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35256         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35257         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35258         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35259
35260         Add support for universal builds to <inttypes.h>.
35261         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
35262         _SCNu64_PREFIX): In Apple
35263         universal builds, define directly, using _LP64.
35264         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
35265         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
35266         * modules/inttypes (Depends-on): Add multiarch.
35267         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35268
35269         Add support for universal builds to <stdint.h>.
35270         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
35271         universal builds, define directly, using _LP64.
35272         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
35273         Apple universal builds, don't test for the size and suffix of ptrdiff_t
35274         and size_t.
35275         * modules/stdint (Depends-on): Add multiarch.
35276         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35277
35278         New module 'multiarch'.
35279         * modules/multiarch: New file.
35280         * m4/multiarch.m4: New file.
35281
35282 2008-12-25  Bruno Haible  <bruno@clisp.org>
35283
35284         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
35285
35286 2008-12-25  Bruno Haible  <bruno@clisp.org>
35287
35288         * modules/btowc (License): Relicense under LGPLv2+.
35289         * modules/mbsinit (License): Likewise.
35290         * modules/mbrtowc (License): Likewise.
35291         * modules/wcrtomb (License): Likewise.
35292         * modules/streq (License): Likewise.
35293         Reported by David Lutterkort <lutter@redhat.com>.
35294
35295 2008-12-23  Bruno Haible  <bruno@clisp.org>
35296
35297         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
35298
35299 2008-12-23  Bruno Haible  <bruno@clisp.org>
35300
35301         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
35302         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
35303         GETADDRINFO_LIB, not in LIBS.
35304         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
35305         * modules/canon-host (Link): Likewise.
35306         * NEWS: Mention the change.
35307         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
35308         GETADDRINFO_LIB.
35309
35310 2008-12-22  Bruno Haible  <bruno@clisp.org>
35311
35312         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
35313         * doc/posix-functions/iswalpha_l.texi: Likewise.
35314         * doc/posix-functions/iswblank_l.texi: Likewise.
35315         * doc/posix-functions/iswcntrl_l.texi: Likewise.
35316         * doc/posix-functions/iswctype_l.texi: Likewise.
35317         * doc/posix-functions/iswdigit_l.texi: Likewise.
35318         * doc/posix-functions/iswgraph_l.texi: Likewise.
35319         * doc/posix-functions/iswlower_l.texi: Likewise.
35320         * doc/posix-functions/iswprint_l.texi: Likewise.
35321         * doc/posix-functions/iswpunct_l.texi: Likewise.
35322         * doc/posix-functions/iswspace_l.texi: Likewise.
35323         * doc/posix-functions/iswupper_l.texi: Likewise.
35324         * doc/posix-functions/iswxdigit_l.texi: Likewise.
35325         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
35326         * doc/posix-functions/open_wmemstream.texi: Likewise.
35327         * doc/posix-functions/swscanf.texi: Likewise.
35328         * doc/posix-functions/towctrans_l.texi: Likewise.
35329         * doc/posix-functions/towlower.texi: Likewise.
35330         * doc/posix-functions/towlower_l.texi: Likewise.
35331         * doc/posix-functions/towupper.texi: Likewise.
35332         * doc/posix-functions/towupper_l.texi: Likewise.
35333         * doc/posix-functions/vfwprintf.texi: Likewise.
35334         * doc/posix-functions/vfwscanf.texi: Likewise.
35335         * doc/posix-functions/vswscanf.texi: Likewise.
35336         * doc/posix-functions/vwprintf.texi: Likewise.
35337         * doc/posix-functions/vwscanf.texi: Likewise.
35338         * doc/posix-functions/wcpcpy.texi: Likewise.
35339         * doc/posix-functions/wcpncpy.texi: Likewise.
35340         * doc/posix-functions/wcscasecmp.texi: Likewise.
35341         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
35342         * doc/posix-functions/wcscoll_l.texi: Likewise.
35343         * doc/posix-functions/wcsdup.texi: Likewise.
35344         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35345         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
35346         * doc/posix-functions/wcsnlen.texi: Likewise.
35347         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35348         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
35349         * doc/posix-functions/wctrans_l.texi: Likewise.
35350         * doc/posix-functions/wctype_l.texi: Likewise.
35351         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
35352         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
35353         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
35354         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
35355         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
35356         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
35357         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
35358         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
35359         * doc/glibc-functions/wcschrnul.texi: Likewise.
35360         * doc/glibc-functions/wcsftime_l.texi: Likewise.
35361         * doc/glibc-functions/wcstod_l.texi: Likewise.
35362         * doc/glibc-functions/wcstof_l.texi: Likewise.
35363         * doc/glibc-functions/wcstol_l.texi: Likewise.
35364         * doc/glibc-functions/wcstold_l.texi: Likewise.
35365         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35366         * doc/glibc-functions/wcstoq.texi: Likewise.
35367         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35368         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35369         * doc/glibc-functions/wcstouq.texi: Likewise.
35370         * doc/glibc-functions/wmempcpy.texi: Likewise.
35371
35372 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
35373             Eric Blake  <ebb9@byu.net>
35374             Paolo Bonzini  <bonzini@gnu.org>
35375             Bruno Haible  <bruno@clisp.org>
35376
35377         Make c-stack work on Haiku.
35378         * lib/c-stack.c (SA_ONSTACK): Define fallback.
35379         (c_stack_action): Use SA_ONSTACK flag.
35380
35381 2008-12-22  Bruno Haible  <bruno@clisp.org>
35382
35383         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
35384
35385 2008-12-22  Bruno Haible  <bruno@clisp.org>
35386
35387         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
35388         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
35389         being overridden.
35390         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
35391         New macros.
35392         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
35393         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
35394         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
35395         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
35396
35397 2008-12-22  Bruno Haible  <bruno@clisp.org>
35398
35399         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
35400         from test code.
35401
35402 2008-12-22  Eric Blake  <ebb9@byu.net>
35403
35404         Avoid gcc warnings on cygwin.
35405         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
35406         Avoid unused variable.
35407         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
35408         Likewise.
35409
35410 2008-12-22  Bruno Haible  <bruno@clisp.org>
35411
35412         Remove HAVE_MBRTOWC conditionals.
35413         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
35414         (mbscasecmp): Assume mbrtowc function.
35415         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
35416         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
35417         * lib/mbschr.c: Include mbuiter.h unconditionally.
35418         (mbschr): Assume mbrtowc function.
35419         * lib/mbscspn.c: Include mbuiter.h unconditionally.
35420         (mbscspn): Assume mbrtowc function.
35421         * lib/mbslen.c: Include mbuiter.h unconditionally.
35422         (mbslen): Assume mbrtowc function.
35423         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
35424         (mbsncasecmp): Assume mbrtowc function.
35425         * lib/mbsnlen.c: Include mbiter.h unconditionally.
35426         (mbsnlen): Assume mbrtowc function.
35427         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
35428         (mbspbrk): Assume mbrtowc function.
35429         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
35430         (mbspcasecmp): Assume mbrtowc function.
35431         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
35432         (mbsrchr): Assume mbrtowc function.
35433         * lib/mbssep.c: Include mbuiter.h unconditionally.
35434         (mbssep): Assume mbrtowc function.
35435         * lib/mbsspn.c: Include mbuiter.h unconditionally.
35436         (mbsspn): Assume mbrtowc function.
35437         * lib/mbsstr.c: Include mbuiter.h unconditionally.
35438         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
35439         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
35440         (mbstok_r): Assume mbrtowc function.
35441         * lib/propername.c: Include mbuiter.h unconditionally.
35442         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
35443         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
35444         (trim2): Assume mbrtowc function.
35445         * lib/mbswidth.c (mbsinit): Remove fallback definition.
35446         (mbsnwidth): Assume mbrtowc function.
35447         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
35448         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
35449         fallback definitions.
35450         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
35451
35452 2008-12-22  Bruno Haible  <bruno@clisp.org>
35453
35454         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
35455
35456 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
35457
35458         * modules/regex: Request emulations for the mb*/wc* functions we need.
35459         * m4/regex.m4: Don't look for those functions here.
35460         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
35461
35462 2008-12-22  Bruno Haible  <bruno@clisp.org>
35463
35464         * modules/fnmatch (Depends-on): Remove duplicated dependency.
35465
35466 2008-12-21  Bruno Haible  <bruno@clisp.org>
35467
35468         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
35469         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
35470         (Include): Remove conditionalization.
35471         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
35472         (Include): Remove conditionalization.
35473         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
35474         (Include): Remove conditionalization.
35475         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
35476         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35477         * NEWS: Mention the change.
35478         Reported by Alan Hourihane <alanh@fairlite.co.uk>
35479         via Sergey Poznyakoff <gray@gnu.org.ua>.
35480
35481 2008-12-21  Bruno Haible  <bruno@clisp.org>
35482
35483         * MODULES.html.sh (Extended multibyte and wide character utilities
35484         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
35485         wcrtomb, wcsrtombs.
35486         (Support for systems lacking POSIX:2008): Add accept, bind, close,
35487         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
35488         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
35489         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
35490
35491 2008-12-21  Bruno Haible  <bruno@clisp.org>
35492
35493         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
35494
35495 2008-12-21  Bruno Haible  <bruno@clisp.org>
35496
35497         * modules/wcsnrtombs-tests: New file.
35498         * tests/test-wcsnrtombs1.sh: New file.
35499         * tests/test-wcsnrtombs2.sh: New file.
35500         * tests/test-wcsnrtombs3.sh: New file.
35501         * tests/test-wcsnrtombs4.sh: New file.
35502         * tests/test-wcsnrtombs.c: New file.
35503
35504         New module 'wcsnrtombs'.
35505         * lib/wchar.in.h (wcsnrtombs): New declaration.
35506         * lib/wcsnrtombs.c: New file.
35507         * lib/wcsrtombs-state.c: New file.
35508         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
35509         (internal_state): Remove variable.
35510         * m4/wcsnrtombs.m4: New file.
35511         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
35512         compilation units.
35513         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
35514         HAVE_WCSNRTOMBS.
35515         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
35516         HAVE_WCSNRTOMBS.
35517         * modules/wcsnrtombs: New file.
35518         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
35519         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
35520
35521 2008-12-21  Bruno Haible  <bruno@clisp.org>
35522
35523         * modules/wcsrtombs-tests: New file.
35524         * tests/test-wcsrtombs1.sh: New file.
35525         * tests/test-wcsrtombs2.sh: New file.
35526         * tests/test-wcsrtombs3.sh: New file.
35527         * tests/test-wcsrtombs4.sh: New file.
35528         * tests/test-wcsrtombs.c: New file.
35529
35530         New module 'wcsrtombs'.
35531         * lib/wchar.in.h (wcsrtombs): New declaration.
35532         * lib/wcsrtombs.c: New file.
35533         * m4/wcsrtombs.m4: New file.
35534         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
35535         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
35536         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
35537         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
35538         * modules/wcsrtombs: New file.
35539         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
35540         bugs.
35541
35542 2008-12-21  Bruno Haible  <bruno@clisp.org>
35543
35544         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
35545         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
35546         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
35547         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
35548         if not correct.
35549         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
35550         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
35551         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35552         m4/locale-zh.m4, m4/codeset.m4.
35553         * doc/posix-functions/wcrtomb.texi: Document the bug.
35554
35555 2008-12-21  Bruno Haible  <bruno@clisp.org>
35556
35557         Work around a btowc() bug on IRIX 6.5.
35558         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
35559         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
35560         REPLACE_WTOBC if not.
35561         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
35562         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
35563         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
35564
35565 2008-12-21  Bruno Haible  <bruno@clisp.org>
35566
35567         * modules/wcrtomb-tests: New file.
35568         * tests/test-wcrtomb.sh: New file.
35569         * tests/test-wcrtomb.c: New file.
35570
35571         New module 'wcrtomb'.
35572         * lib/wchar.in.h (wcrtomb): New declaration.
35573         * lib/wcrtomb.c: New file.
35574         * m4/wcrtomb.m4: New file.
35575         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
35576         HAVE_WCRTOMB.
35577         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
35578         HAVE_WCRTOMB.
35579         * modules/wcrtomb: New file.
35580         * doc/posix-functions/wcrtomb.texi: Mention the new module.
35581
35582 2008-12-21  Bruno Haible  <bruno@clisp.org>
35583
35584         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
35585         * modules/mbsrtowcs (Files): Likewise.
35586         * modules/wctob (Files): Likewise.
35587         * modules/c-strcase-tests (Files): Likewise.
35588         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35589         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35590         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35591         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35592         * modules/vasnprintf-posix-tests (Files): Likewise.
35593
35594 2008-12-21  William Pursell  <bill.pursell@gmail.com>
35595
35596         gitlog-to-changelog: pass all command-line arguments to git-log
35597         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
35598         it is sometimes convenient to filter the commits in various ways.
35599         gitlog-to-changelog only allows --since to specify a start date,
35600         but git-log itself supports many other filtering mechanisms.
35601         At the moment, I want to filter by branch name.  Rather than
35602         adding a --branch option to gitlog-to-changelog, it seems more
35603         flexible to simply pass all options directly to git-log and let
35604         git do the work.  Notice that this effectively makes --since a
35605         redundant option for gitlog-to-changelog, but removing it would
35606         require current usage to change since calls would then require
35607         an additional '--'.
35608
35609 2008-12-21  Bruno Haible  <bruno@clisp.org>
35610
35611         * modules/mbsnrtowcs-tests: New file.
35612         * tests/test-mbsnrtowcs1.sh: New file.
35613         * tests/test-mbsnrtowcs2.sh: New file.
35614         * tests/test-mbsnrtowcs3.sh: New file.
35615         * tests/test-mbsnrtowcs4.sh: New file.
35616         * tests/test-mbsnrtowcs.c: New file.
35617
35618         New module 'mbsnrtowcs'.
35619         * lib/wchar.in.h (mbsnrtowcs): New declaration.
35620         * lib/mbsnrtowcs.c: New file.
35621         * lib/mbsrtowcs-state.c: New file.
35622         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
35623         (internal_state): Remove variable.
35624         * m4/mbsnrtowcs.m4: New file.
35625         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
35626         compilation units.
35627         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
35628         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
35629         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
35630         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
35631         * modules/mbsnrtowcs: New file.
35632         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
35633         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
35634         portability problem.
35635
35636 2008-12-21  Bruno Haible  <bruno@clisp.org>
35637
35638         Work around mbsrtowcs bug.
35639         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
35640         (gl_FUNC_MBSRTOWCS): Invoke it.
35641         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35642         m4/locale-zh.m4.
35643         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
35644
35645 2008-12-21  Bruno Haible  <bruno@clisp.org>
35646
35647         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
35648
35649 2008-12-21  Bruno Haible  <bruno@clisp.org>
35650
35651         Update doc for AIX.
35652         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
35653         16-bit wchar_t type.
35654         * doc/posix-functions/btowc.texi: Likewise.
35655         * doc/posix-functions/fgetwc.texi: Likewise.
35656         * doc/posix-functions/fgetws.texi: Likewise.
35657         * doc/posix-functions/fputwc.texi: Likewise.
35658         * doc/posix-functions/fputws.texi: Likewise.
35659         * doc/posix-functions/fwide.texi: Likewise.
35660         * doc/posix-functions/fwprintf.texi: Likewise.
35661         * doc/posix-functions/fwscanf.texi: Likewise.
35662         * doc/posix-functions/getwchar.texi: Likewise.
35663         * doc/posix-functions/getwc.texi: Likewise.
35664         * doc/posix-functions/iswalnum.texi: Likewise.
35665         * doc/posix-functions/iswalpha.texi: Likewise.
35666         * doc/posix-functions/iswblank.texi: Likewise.
35667         * doc/posix-functions/iswcntrl.texi: Likewise.
35668         * doc/posix-functions/iswctype.texi: Likewise.
35669         * doc/posix-functions/iswdigit.texi: Likewise.
35670         * doc/posix-functions/iswgraph.texi: Likewise.
35671         * doc/posix-functions/iswlower.texi: Likewise.
35672         * doc/posix-functions/iswprint.texi: Likewise.
35673         * doc/posix-functions/iswpunct.texi: Likewise.
35674         * doc/posix-functions/iswspace.texi: Likewise.
35675         * doc/posix-functions/iswupper.texi: Likewise.
35676         * doc/posix-functions/iswxdigit.texi: Likewise.
35677         * doc/posix-functions/mbrtowc.texi: Likewise.
35678         * doc/posix-functions/mbsrtowcs.texi: Likewise.
35679         * doc/posix-functions/mbstowcs.texi: Likewise.
35680         * doc/posix-functions/mbtowc.texi: Likewise.
35681         * doc/posix-functions/putwchar.texi: Likewise.
35682         * doc/posix-functions/putwc.texi: Likewise.
35683         * doc/posix-functions/swprintf.texi: Likewise.
35684         * doc/posix-functions/tolower.texi: Likewise.
35685         * doc/posix-functions/toupper.texi: Likewise.
35686         * doc/posix-functions/towctrans.texi: Likewise.
35687         * doc/posix-functions/ungetwc.texi: Likewise.
35688         * doc/posix-functions/vswprintf.texi: Likewise.
35689         * doc/posix-functions/wcrtomb.texi: Likewise.
35690         * doc/posix-functions/wcscat.texi: Likewise.
35691         * doc/posix-functions/wcschr.texi: Likewise.
35692         * doc/posix-functions/wcscmp.texi: Likewise.
35693         * doc/posix-functions/wcscoll.texi: Likewise.
35694         * doc/posix-functions/wcscpy.texi: Likewise.
35695         * doc/posix-functions/wcscspn.texi: Likewise.
35696         * doc/posix-functions/wcsftime.texi: Likewise.
35697         * doc/posix-functions/wcslen.texi: Likewise.
35698         * doc/posix-functions/wcsncat.texi: Likewise.
35699         * doc/posix-functions/wcsncmp.texi: Likewise.
35700         * doc/posix-functions/wcsncpy.texi: Likewise.
35701         * doc/posix-functions/wcspbrk.texi: Likewise.
35702         * doc/posix-functions/wcsrchr.texi: Likewise.
35703         * doc/posix-functions/wcsrtombs.texi: Likewise.
35704         * doc/posix-functions/wcsspn.texi: Likewise.
35705         * doc/posix-functions/wcsstr.texi: Likewise.
35706         * doc/posix-functions/wcstod.texi: Likewise.
35707         * doc/posix-functions/wcstof.texi: Likewise.
35708         * doc/posix-functions/wcstoimax.texi: Likewise.
35709         * doc/posix-functions/wcstok.texi: Likewise.
35710         * doc/posix-functions/wcstold.texi: Likewise.
35711         * doc/posix-functions/wcstoll.texi: Likewise.
35712         * doc/posix-functions/wcstol.texi: Likewise.
35713         * doc/posix-functions/wcstombs.texi: Likewise.
35714         * doc/posix-functions/wcstoull.texi: Likewise.
35715         * doc/posix-functions/wcstoul.texi: Likewise.
35716         * doc/posix-functions/wcstoumax.texi: Likewise.
35717         * doc/posix-functions/wcswidth.texi: Likewise.
35718         * doc/posix-functions/wcsxfrm.texi: Likewise.
35719         * doc/posix-functions/wctob.texi: Likewise.
35720         * doc/posix-functions/wctomb.texi: Likewise.
35721         * doc/posix-functions/wctrans.texi: Likewise.
35722         * doc/posix-functions/wctype.texi: Likewise.
35723         * doc/posix-functions/wcwidth.texi: Likewise.
35724         * doc/posix-functions/wmemchr.texi: Likewise.
35725         * doc/posix-functions/wmemcmp.texi: Likewise.
35726         * doc/posix-functions/wmemcpy.texi: Likewise.
35727         * doc/posix-functions/wmemmove.texi: Likewise.
35728         * doc/posix-functions/wmemset.texi: Likewise.
35729         * doc/posix-functions/wprintf.texi: Likewise.
35730         * doc/posix-functions/wscanf.texi: Likewise.
35731
35732 2008-12-21  Bruno Haible  <bruno@clisp.org>
35733
35734         Update doc for HP-UX 11.11.
35735         * doc/posix-functions/btowc.texi: Clarify that the function is missing
35736         in HP-UX version 11.00, not in all versions of HP-UX 11.
35737         * doc/posix-functions/fwide.texi: Likewise.
35738         * doc/posix-functions/fwprintf.texi: Likewise.
35739         * doc/posix-functions/fwscanf.texi: Likewise.
35740         * doc/posix-functions/inet_ntop.texi: Likewise.
35741         * doc/posix-functions/inet_pton.texi: Likewise.
35742         * doc/posix-functions/mbrlen.texi: Likewise.
35743         * doc/posix-functions/mbrtowc.texi: Likewise.
35744         * doc/posix-functions/mbsinit.texi: Likewise.
35745         * doc/posix-functions/mbsrtowcs.texi: Likewise.
35746         * doc/posix-functions/swprintf.texi: Likewise.
35747         * doc/posix-functions/swscanf.texi: Likewise.
35748         * doc/posix-functions/towctrans.texi: Likewise.
35749         * doc/posix-functions/vfwprintf.texi: Likewise.
35750         * doc/posix-functions/vswprintf.texi: Likewise.
35751         * doc/posix-functions/vwprintf.texi: Likewise.
35752         * doc/posix-functions/wcrtomb.texi: Likewise.
35753         * doc/posix-functions/wcsrtombs.texi: Likewise.
35754         * doc/posix-functions/wcsstr.texi: Likewise.
35755         * doc/posix-functions/wctob.texi: Likewise.
35756         * doc/posix-functions/wctrans.texi: Likewise.
35757         * doc/posix-functions/wmemchr.texi: Likewise.
35758         * doc/posix-functions/wmemcmp.texi: Likewise.
35759         * doc/posix-functions/wmemcpy.texi: Likewise.
35760         * doc/posix-functions/wmemmove.texi: Likewise.
35761         * doc/posix-functions/wmemset.texi: Likewise.
35762         * doc/posix-functions/wprintf.texi: Likewise.
35763         * doc/posix-functions/wscanf.texi: Likewise.
35764
35765 2008-12-21  Bruno Haible  <bruno@clisp.org>
35766
35767         Work around a portability problem.
35768         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
35769         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
35770
35771 2008-12-20  Bruno Haible  <bruno@clisp.org>
35772
35773         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
35774         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
35775         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
35776         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
35777         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
35778
35779         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
35780         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
35781         set.
35782         (GNULIB_defined_mbstate_t): New macro.
35783         (mbsinit): Redefine if REPLACE_MBSINIT is set.
35784         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
35785         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
35786         reuses the system's mbrtowc function but works around the bugs.
35787         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
35788         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
35789         macros.
35790         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
35791         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
35792         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
35793         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
35794         REPLACE_MBSINIT if mbsinit needs to be overridden.
35795         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
35796         REPLACE_MBSINIT, REPLACE_MBRTOWC.
35797         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
35798         REPLACE_MBSINIT, REPLACE_MBRTOWC.
35799         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35800         m4/locale-zh.m4.
35801         (Depends): Add mbsinit.
35802         * modules/mbsinit (Depends): Add mbrtowc.
35803         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
35804
35805 2008-12-20  Bruno Haible  <bruno@clisp.org>
35806
35807         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
35808         so that there are no conversion errors on AIX.
35809         * tests/test-mbsrtowcs.c (main): LIkewise.
35810
35811 2008-12-20  Bruno Haible  <bruno@clisp.org>
35812
35813         Work around wctob bug on Solaris <= 9.
35814         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
35815         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
35816         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
35817         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
35818         * modules/wctob (Files): Add m4/locale-fr.m4.
35819         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
35820
35821 2008-12-20  Bruno Haible  <bruno@clisp.org>
35822
35823         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
35824         /dev/null.
35825         * tests/test-select-in.sh: Likewise.
35826         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35827
35828 2008-12-20  Bruno Haible  <bruno@clisp.org>
35829
35830         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
35831         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
35832         Cygwin 1.5.x.
35833
35834 2008-12-20  Bruno Haible  <bruno@clisp.org>
35835
35836         Ensure mbstate_t is defined on HP-UX 11.11.
35837         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
35838         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
35839         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
35840         AC_USE_SYSTEM_EXTENSIONS.
35841         * modules/fnmatch (Depends-on): Add extensions.
35842         * modules/mbrlen (Depends-on): Likewise.
35843         * modules/mbrtowc (Depends-on): Likewise.
35844         * modules/mbsinit (Depends-on): Likewise.
35845         * modules/mbsrtowcs (Depends-on): Likewise.
35846         * modules/mbswidth (Depends-on): Likewise.
35847         * modules/quotearg (Depends-on): Likewise.
35848         * modules/strftime (Depends-on): Likewise.
35849
35850 2008-12-20  Bruno Haible  <bruno@clisp.org>
35851
35852         Ensure wctob is declared on IRIX 6.5.
35853         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
35854         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
35855         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
35856         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
35857         of HAVE_WCTOB.
35858         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
35859         HAVE_WCTOB.
35860         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
35861
35862 2008-12-19  Bruno Haible  <bruno@clisp.org>
35863
35864         * modules/mbsrtowcs-tests: New file.
35865         * tests/test-mbsrtowcs1.sh: New file.
35866         * tests/test-mbsrtowcs2.sh: New file.
35867         * tests/test-mbsrtowcs3.sh: New file.
35868         * tests/test-mbsrtowcs4.sh: New file.
35869         * tests/test-mbsrtowcs.c: New file.
35870
35871         New module 'mbsrtowcs'.
35872         * lib/wchar.in.h (mbsrtowcs): New declaration.
35873         * lib/mbsrtowcs.c: New file.
35874         * m4/mbsrtowcs.m4: New file.
35875         * modules/mbsrtowcs: New file.
35876         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
35877         HAVE_MBSRTOWCS.
35878         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
35879         HAVE_MBSRTOWCS.
35880         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
35881
35882 2008-12-19  Bruno Haible  <bruno@clisp.org>
35883
35884         New module 'mbrlen'.
35885         * lib/wchar.in.h (mbrlen): New declaration.
35886         * lib/mbrlen.c: New file.
35887         * m4/mbrlen.m4: New file.
35888         * modules/mbrlen: New file.
35889         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
35890         HAVE_MBRLEN.
35891         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
35892         HAVE_MBRLEN.
35893         * doc/posix-functions/mbrlen.texi: Document the new module.
35894
35895 2008-12-19  Bruno Haible  <bruno@clisp.org>
35896
35897         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
35898         * modules/mbrtowc (Depends-on): Add verify.
35899         Suggested by Paul Eggert.
35900
35901 2008-12-18  Bruno Haible  <bruno@clisp.org>
35902
35903         * modules/mbsinit-tests: New file.
35904         * tests/test-mbsinit.sh: New file.
35905         * tests/test-mbsinit.c: New file.
35906
35907 2008-12-18  Bruno Haible  <bruno@clisp.org>
35908
35909         * modules/mbrtowc-tests: New file.
35910         * tests/test-mbrtowc1.sh: New file.
35911         * tests/test-mbrtowc2.sh: New file.
35912         * tests/test-mbrtowc3.sh: New file.
35913         * tests/test-mbrtowc4.sh: New file.
35914         * tests/test-mbrtowc.c: New file.
35915
35916         New module 'mbrtowc'.
35917         * lib/wchar.in.h (mbstate_t): Override when the system does not have
35918         mbsinit and mbrtowc.
35919         (mbrtowc): New declaration.
35920         * lib/mbrtowc.c: New file.
35921         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
35922         * modules/mbrtowc: New file.
35923         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
35924         HAVE_MBRTOWC.
35925         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
35926         HAVE_MBRTOWC.
35927         * doc/posix-functions/mbrtowc.texi: Document the new module.
35928
35929 2008-12-18  Bruno Haible  <bruno@clisp.org>
35930
35931         New module 'wctob'.
35932         * lib/wchar.in.h (wctob): New declaration.
35933         * lib/wctob.c: New file.
35934         * m4/wctob.m4: New file.
35935         * modules/wctob: New file.
35936         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
35937         HAVE_WCTOB.
35938         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
35939         * doc/posix-functions/wctob.texi: Document the new module.
35940
35941 2008-12-18  Bruno Haible  <bruno@clisp.org>
35942
35943         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
35944         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
35945
35946 2008-12-18  Simon Josefsson  <simon@josefsson.org>
35947
35948         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
35949         G. Christensen" <tgc@jupiterrise.com>.
35950
35951         * lib/flock.c: Need to include errno.h.  Reported by "Tom
35952         G. Christensen" <tgc@jupiterrise.com>.
35953
35954         * lib/flock.c: Need to include string.h.  Reported by "Tom
35955         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
35956         <ebb9@byu.net>.
35957
35958 2008-12-18  Bruno Haible  <bruno@clisp.org>
35959
35960         * m4/locale-ja.m4: New file, from GNU gettext.
35961
35962 2008-12-17  Bruno Haible  <bruno@clisp.org>
35963
35964         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
35965         Suggested by Eric Blake.
35966
35967 2008-12-17  Bruno Haible  <bruno@clisp.org>
35968
35969         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
35970
35971 2008-12-17  Bruno Haible  <bruno@clisp.org>
35972
35973         * lib/mbsinit.c: Include verify.h. Verify an assumption.
35974         * modules/mbsinit (Depends-on): Add verify.
35975         Suggested by Paul Eggert.
35976
35977 2008-12-17  Bruno Haible  <bruno@clisp.org>
35978
35979         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
35980         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
35981         gl_FUNC_MBRTOWC.
35982         * m4/mbiter.m4 (gl_MBITER): LIkewise.
35983         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
35984         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
35985         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
35986         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
35987         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
35988         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
35989         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
35990         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
35991         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
35992         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
35993         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
35994         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
35995         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
35996         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
35997         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
35998         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
35999         * modules/trim (configure.ac): Likewise.
36000
36001 2008-12-17  Bruno Haible  <bruno@clisp.org>
36002
36003         * modules/btowc-tests: New file.
36004         * tests/test-btowc1.sh: New file.
36005         * tests/test-btowc2.sh: New file.
36006         * tests/test-btowc.c: New file.
36007
36008         New module 'btowc'.
36009         * lib/wchar.in.h (btowc): New declaration.
36010         * lib/btowc.c: New file.
36011         * m4/btowc.m4: New file.
36012         * modules/btowc: New file.
36013         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
36014         HAVE_BTOWC.
36015         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
36016         * doc/posix-functions/btowc.texi: Document the new module.
36017
36018 2008-12-17  Bruno Haible  <bruno@clisp.org>
36019
36020         New module 'mbsinit'.
36021         * lib/wchar.in.h (mbsinit): New declaration.
36022         * lib/mbsinit.c: New file.
36023         * m4/mbsinit.m4: New file.
36024         * modules/mbsinit: New file.
36025         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
36026         HAVE_MBSINIT.
36027         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
36028         HAVE_MBSINIT.
36029         * doc/posix-functions/mbsinit.texi: Document the new module.
36030
36031 2008-12-16  Bruno Haible  <bruno@clisp.org>
36032
36033         * lib/unistd.in.h: Add comment.
36034         * tests/test-environ.c: Don't include <stdlib.h>.
36035
36036 2008-12-16  Bruno Haible  <bruno@clisp.org>
36037
36038         * lib/parse-duration.h (parse_duration): Document return value
36039         convention.
36040         * lib/parse-duration.c: Include specification header first. Add
36041         comments.
36042         (_): Remove macro.
36043         (parse_year_month_day, parse_hour_minute_second): Move side effects
36044         outside of strchr call.
36045         (parse_non_iso8601): Move side effects outside of isspace call.
36046         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
36047         call.
36048
36049 2008-12-16  Bruno Haible  <bruno@clisp.org>
36050
36051         * tests/test-parse-duration.sh: Produce no output when the test
36052         succeeds.
36053
36054 2008-12-16  Bruno Haible  <bruno@clisp.org>
36055
36056         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
36057         expressions.
36058
36059 2008-12-15  Bruno Haible  <bruno@clisp.org>
36060
36061         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
36062         * doc/glibc-functions/flistxattr.texi: Likewise.
36063         * doc/glibc-functions/fopencookie.texi: Likewise.
36064         * doc/glibc-functions/fremovexattr.texi: Likewise.
36065         * doc/glibc-functions/fsetxattr.texi: Likewise.
36066         * doc/glibc-functions/getxattr.texi: Likewise.
36067         * doc/glibc-functions/lgetxattr.texi: Likewise.
36068         * doc/glibc-functions/listxattr.texi: Likewise.
36069         * doc/glibc-functions/llistxattr.texi: Likewise.
36070         * doc/glibc-functions/lremovexattr.texi: Likewise.
36071         * doc/glibc-functions/lsetxattr.texi: Likewise.
36072         * doc/glibc-functions/removexattr.texi: Likewise.
36073         * doc/glibc-functions/setxattr.texi: Likewise.
36074         * doc/posix-functions/open_memstream.texi: Likewise.
36075
36076 2008-12-15  Eric Blake  <ebb9@byu.net>
36077
36078         Update doc for cygwin 1.7.
36079         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
36080         functions.
36081         * doc/posix-functions/fchmodat.texi: Likewise.
36082         * doc/posix-functions/fchownat.texi: Likewise.
36083         * doc/posix-functions/fdopendir.texi: Likewise.
36084         * doc/posix-functions/fmemopen.texi: Likewise.
36085         * doc/posix-functions/freeaddrinfo.texi: Likewise.
36086         * doc/posix-functions/fstatat.texi: Likewise.
36087         * doc/posix-functions/futimens.texi: Likewise.
36088         * doc/posix-functions/gai_strerror.texi: Likewise.
36089         * doc/posix-functions/getaddrinfo.texi: Likewise.
36090         * doc/posix-functions/getnameinfo.texi: Likewise.
36091         * doc/posix-functions/if_freenameindex.texi: Likewise.
36092         * doc/posix-functions/if_indextoname.texi: Likewise.
36093         * doc/posix-functions/if_nameindex.texi: Likewise.
36094         * doc/posix-functions/if_nametoindex.texi: Likewise.
36095         * doc/posix-functions/insque.texi: Likewise.
36096         * doc/posix-functions/linkat.texi: Likewise.
36097         * doc/posix-functions/llrint.texi: Likewise.
36098         * doc/posix-functions/llrintf.texi: Likewise.
36099         * doc/posix-functions/llrintl.texi: Likewise.
36100         * doc/posix-functions/lockf.texi: Likewise.
36101         * doc/posix-functions/lrintl.texi: Likewise.
36102         * doc/posix-functions/mkdirat.texi: Likewise.
36103         * doc/posix-functions/mkfifoat.texi: Likewise.
36104         * doc/posix-functions/mknodat.texi: Likewise.
36105         * doc/posix-functions/mq_close.texi: Likewise.
36106         * doc/posix-functions/mq_getattr.texi: Likewise.
36107         * doc/posix-functions/mq_notify.texi: Likewise.
36108         * doc/posix-functions/mq_open.texi: Likewise.
36109         * doc/posix-functions/mq_receive.texi: Likewise.
36110         * doc/posix-functions/mq_send.texi: Likewise.
36111         * doc/posix-functions/mq_setattr.texi: Likewise.
36112         * doc/posix-functions/mq_timedreceive.texi: Likewise.
36113         * doc/posix-functions/mq_timedsend.texi: Likewise.
36114         * doc/posix-functions/mq_unlink.texi: Likewise.
36115         * doc/posix-functions/open_memstream.texi: Likewise.
36116         * doc/posix-functions/openat.texi: Likewise.
36117         * doc/posix-functions/posix_fadvise.texi: Likewise.
36118         * doc/posix-functions/posix_fallocate.texi: Likewise.
36119         * doc/posix-functions/posix_madvise.texi: Likewise.
36120         * doc/posix-functions/posix_memalign.texi: Likewise.
36121         * doc/posix-functions/posix_openpt.texi: Likewise.
36122         * doc/posix-functions/readlinkat.texi: Likewise.
36123         * doc/posix-functions/remque.texi: Likewise.
36124         * doc/posix-functions/renameat.texi: Likewise.
36125         * doc/posix-functions/rintl.texi: Likewise.
36126         * doc/posix-functions/sem_unlink.texi: Likewise.
36127         * doc/posix-functions/shm_open.texi: Likewise.
36128         * doc/posix-functions/shm_unlink.texi: Likewise.
36129         * doc/posix-functions/signgam.texi: Likewise.
36130         * doc/posix-functions/sigset.texi: Likewise.
36131         * doc/posix-functions/stpcpy.texi: Likewise.
36132         * doc/posix-functions/stpncpy.texi: Likewise.
36133         * doc/posix-functions/strerror.texi: Likewise.
36134         * doc/posix-functions/strtod.texi: Likewise.
36135         * doc/posix-functions/symlinkat.texi: Likewise.
36136         * doc/posix-functions/unlinkat.texi: Likewise.
36137         * doc/posix-functions/utimensat.texi: Likewise.
36138         * doc/glibc-functions/bindresvport.texi: Likewise.
36139         * doc/glibc-functions/dn_expand.texi: Likewise.
36140         * doc/glibc-functions/exp10.texi: Likewise.
36141         * doc/glibc-functions/exp10f.texi: Likewise.
36142         * doc/glibc-functions/fgetxattr.texi: Likewise.
36143         * doc/glibc-functions/flistxattr.texi: Likewise.
36144         * doc/glibc-functions/fopencookie.texi: Likewise.
36145         * doc/glibc-functions/freeifaddrs.texi: Likewise.
36146         * doc/glibc-functions/fremovexattr.texi: Likewise.
36147         * doc/glibc-functions/fsetxattr.texi: Likewise.
36148         * doc/glibc-functions/getifaddrs.texi: Likewise.
36149         * doc/glibc-functions/getxattr.texi: Likewise.
36150         * doc/glibc-functions/lgetxattr.texi: Likewise.
36151         * doc/glibc-functions/listxattr.texi: Likewise.
36152         * doc/glibc-functions/llistxattr.texi: Likewise.
36153         * doc/glibc-functions/lremovexattr.texi: Likewise.
36154         * doc/glibc-functions/lsetxattr.texi: Likewise.
36155         * doc/glibc-functions/pow10.texi: Likewise.
36156         * doc/glibc-functions/pow10f.texi: Likewise.
36157         * doc/glibc-functions/rcmd_af.texi: Likewise.
36158         * doc/glibc-functions/removexattr.texi: Likewise.
36159         * doc/glibc-functions/res_init.texi: Likewise.
36160         * doc/glibc-functions/res_mkquery.texi: Likewise.
36161         * doc/glibc-functions/res_query.texi: Likewise.
36162         * doc/glibc-functions/res_querydomain.texi: Likewise.
36163         * doc/glibc-functions/res_send.texi: Likewise.
36164         * doc/glibc-functions/rresvport_af.texi: Likewise.
36165         * doc/glibc-functions/setxattr.texi: Likewise.
36166         * doc/glibc-functions/strcasestr.texi: Likewise.
36167
36168 2008-12-15  Bruno Haible  <bruno@clisp.org>
36169
36170         Fix compilation error on OSF/1 4.0.
36171         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
36172         <sys/time.h>, simply delegate to the system header.
36173         Reported by Daniel Richard G. <oss@teragram.com>.
36174
36175 2008-12-15  Bruno Haible  <bruno@clisp.org>
36176
36177         * doc/posix-functions/openat.texi: Mention the 'openat' module.
36178         * doc/posix-functions/fchmodat.texi: Likewise.
36179         * doc/posix-functions/fchownat.texi: Likewise.
36180         * doc/posix-functions/fdopendir.texi: Likewise.
36181         * doc/posix-functions/fstatat.texi: Likewise.
36182         * doc/posix-functions/mkdirat.texi: Likewise.
36183         * doc/posix-functions/unlinkat.texi: Likewise.
36184
36185 2008-12-14  Bruno Haible  <bruno@clisp.org>
36186
36187         Update doc for POSIX:2008.
36188         * doc/posix-functions/faccessat.texi: New file.
36189         * doc/posix-functions/fchmodat.texi: New file.
36190         * doc/posix-functions/fchownat.texi: New file.
36191         * doc/posix-functions/fdopendir.texi: New file.
36192         * doc/posix-functions/fstatat.texi: New file.
36193         * doc/posix-functions/futimens.texi: New file.
36194         * doc/posix-functions/linkat.texi: New file.
36195         * doc/posix-functions/mkdirat.texi: New file.
36196         * doc/posix-functions/mkfifoat.texi: New file.
36197         * doc/posix-functions/mknodat.texi: New file.
36198         * doc/posix-functions/open_wmemstream.texi: New file.
36199         * doc/posix-functions/openat.texi: New file.
36200         * doc/posix-functions/psiginfo.texi: New file.
36201         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
36202         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
36203         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
36204         * doc/posix-functions/readlinkat.texi: New file.
36205         * doc/posix-functions/renameat.texi: New file.
36206         * doc/posix-functions/strerror_l.texi: New file.
36207         * doc/posix-functions/symlinkat.texi: New file.
36208         * doc/posix-functions/unlinkat.texi: New file.
36209         * doc/posix-functions/utimensat.texi: New file.
36210         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36211
36212 2008-12-14  Bruno Haible  <bruno@clisp.org>
36213
36214         Update doc for POSIX:2008.
36215         * doc/posix-functions/alphasort.texi: Renamed from
36216         doc/glibc-functions/alphasort.texi.
36217         * doc/posix-functions/dirfd.texi: Renamed from
36218         doc/glibc-functions/dirfd.texi.
36219         * doc/posix-functions/dprintf.texi: Renamed from
36220         doc/glibc-functions/dprintf.texi.
36221         * doc/posix-functions/duplocale.texi: Renamed from
36222         doc/glibc-functions/duplocale.texi.
36223         * doc/posix-functions/fexecve.texi: Renamed from
36224         doc/glibc-functions/fexecve.texi.
36225         * doc/posix-functions/fmemopen.texi: Renamed from
36226         doc/glibc-functions/fmemopen.texi.
36227         * doc/posix-functions/freelocale.texi: Renamed from
36228         doc/glibc-functions/freelocale.texi.
36229         * doc/posix-functions/getdate_err.texi: Renamed from
36230         doc/glibc-functions/getdate_err.texi.
36231         * doc/posix-functions/isalnum_l.texi: Renamed from
36232         doc/glibc-functions/isalnum_l.texi.
36233         * doc/posix-functions/isalpha_l.texi: Renamed from
36234         doc/glibc-functions/isalpha_l.texi.
36235         * doc/posix-functions/isblank_l.texi: Renamed from
36236         doc/glibc-functions/isblank_l.texi.
36237         * doc/posix-functions/iscntrl_l.texi: Renamed from
36238         doc/glibc-functions/iscntrl_l.texi.
36239         * doc/posix-functions/isdigit_l.texi: Renamed from
36240         doc/glibc-functions/isdigit_l.texi.
36241         * doc/posix-functions/isgraph_l.texi: Renamed from
36242         doc/glibc-functions/isgraph_l.texi.
36243         * doc/posix-functions/islower_l.texi: Renamed from
36244         doc/glibc-functions/islower_l.texi.
36245         * doc/posix-functions/isprint_l.texi: Renamed from
36246         doc/glibc-functions/isprint_l.texi.
36247         * doc/posix-functions/ispunct_l.texi: Renamed from
36248         doc/glibc-functions/ispunct_l.texi.
36249         * doc/posix-functions/isspace_l.texi: Renamed from
36250         doc/glibc-functions/isspace_l.texi.
36251         * doc/posix-functions/isupper_l.texi: Renamed from
36252         doc/glibc-functions/isupper_l.texi.
36253         * doc/posix-functions/iswalnum_l.texi: Renamed from
36254         doc/glibc-functions/iswalnum_l.texi.
36255         * doc/posix-functions/iswalpha_l.texi: Renamed from
36256         doc/glibc-functions/iswalpha_l.texi.
36257         * doc/posix-functions/iswblank_l.texi: Renamed from
36258         doc/glibc-functions/iswblank_l.texi.
36259         * doc/posix-functions/iswcntrl_l.texi: Renamed from
36260         doc/glibc-functions/iswcntrl_l.texi.
36261         * doc/posix-functions/iswctype_l.texi: Renamed from
36262         doc/glibc-functions/iswctype_l.texi.
36263         * doc/posix-functions/iswdigit_l.texi: Renamed from
36264         doc/glibc-functions/iswdigit_l.texi.
36265         * doc/posix-functions/iswgraph_l.texi: Renamed from
36266         doc/glibc-functions/iswgraph_l.texi.
36267         * doc/posix-functions/iswlower_l.texi: Renamed from
36268         doc/glibc-functions/iswlower_l.texi.
36269         * doc/posix-functions/iswprint_l.texi: Renamed from
36270         doc/glibc-functions/iswprint_l.texi.
36271         * doc/posix-functions/iswpunct_l.texi: Renamed from
36272         doc/glibc-functions/iswpunct_l.texi.
36273         * doc/posix-functions/iswspace_l.texi: Renamed from
36274         doc/glibc-functions/iswspace_l.texi.
36275         * doc/posix-functions/iswupper_l.texi: Renamed from
36276         doc/glibc-functions/iswupper_l.texi.
36277         * doc/posix-functions/iswxdigit_l.texi: Renamed from
36278         doc/glibc-functions/iswxdigit_l.texi.
36279         * doc/posix-functions/isxdigit_l.texi: Renamed from
36280         doc/glibc-functions/isxdigit_l.texi.
36281         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
36282         doc/glibc-functions/mbsnrtowcs.texi.
36283         * doc/posix-functions/mkdtemp.texi: Renamed from
36284         doc/glibc-functions/mkdtemp.texi.
36285         * doc/posix-functions/newlocale.texi: Renamed from
36286         doc/glibc-functions/newlocale.texi.
36287         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
36288         doc/glibc-functions/nl_langinfo_l.texi.
36289         * doc/posix-functions/open_memstream.texi: Renamed from
36290         doc/glibc-functions/open_memstream.texi.
36291         * doc/posix-functions/opterr.texi: Renamed from
36292         doc/glibc-functions/opterr.texi.
36293         * doc/posix-functions/optind.texi: Renamed from
36294         doc/glibc-functions/optind.texi.
36295         * doc/posix-functions/optopt.texi: Renamed from
36296         doc/glibc-functions/optopt.texi.
36297         * doc/posix-functions/psignal.texi: Renamed from
36298         doc/glibc-functions/psignal.texi.
36299         * doc/posix-functions/scandir.texi: Renamed from
36300         doc/glibc-functions/scandir.texi.
36301         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
36302         doc/glibc-functions/sched_get_priority_min.texi.
36303         * doc/posix-functions/signgam.texi: Renamed from
36304         doc/glibc-functions/signgam.texi.
36305         * doc/posix-functions/stpcpy.texi: Renamed from
36306         doc/glibc-functions/stpcpy.texi.
36307         * doc/posix-functions/stpncpy.texi: Renamed from
36308         doc/glibc-functions/stpncpy.texi.
36309         * doc/posix-functions/strcasecmp_l.texi: Renamed from
36310         doc/glibc-functions/strcasecmp_l.texi.
36311         * doc/posix-functions/strcoll_l.texi: Renamed from
36312         doc/glibc-functions/strcoll_l.texi.
36313         * doc/posix-functions/strfmon_l.texi: Renamed from
36314         doc/glibc-functions/strfmon_l.texi.
36315         * doc/posix-functions/strftime_l.texi: Renamed from
36316         doc/glibc-functions/strftime_l.texi.
36317         * doc/posix-functions/strncasecmp_l.texi: Renamed from
36318         doc/glibc-functions/strncasecmp_l.texi.
36319         * doc/posix-functions/strndup.texi: Renamed from
36320         doc/glibc-functions/strndup.texi.
36321         * doc/posix-functions/strnlen.texi: Renamed from
36322         doc/glibc-functions/strnlen.texi.
36323         * doc/posix-functions/strsignal.texi: Renamed from
36324         doc/glibc-functions/strsignal.texi.
36325         * doc/posix-functions/strxfrm_l.texi: Renamed from
36326         doc/glibc-functions/strxfrm_l.texi.
36327         * doc/posix-functions/timer_gettime.texi: Renamed from
36328         doc/glibc-functions/timer_gettime.texi.
36329         * doc/posix-functions/tolower_l.texi: Renamed from
36330         doc/glibc-functions/tolower_l.texi.
36331         * doc/posix-functions/toupper_l.texi: Renamed from
36332         doc/glibc-functions/toupper_l.texi.
36333         * doc/posix-functions/towctrans_l.texi: Renamed from
36334         doc/glibc-functions/towctrans_l.texi.
36335         * doc/posix-functions/towlower_l.texi: Renamed from
36336         doc/glibc-functions/towlower_l.texi.
36337         * doc/posix-functions/towupper_l.texi: Renamed from
36338         doc/glibc-functions/towupper_l.texi.
36339         * doc/posix-functions/uselocale.texi: Renamed from
36340         doc/glibc-functions/uselocale.texi.
36341         * doc/posix-functions/vdprintf.texi: Renamed from
36342         doc/glibc-functions/vdprintf.texi.
36343         * doc/posix-functions/wcpcpy.texi:
36344         Renamed from doc/glibc-functions/wcpcpy.texi.
36345         * doc/posix-functions/wcpncpy.texi: Renamed from
36346         doc/glibc-functions/wcpncpy.texi.
36347         * doc/posix-functions/wcscasecmp.texi: Renamed from
36348         doc/glibc-functions/wcscasecmp.texi.
36349         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
36350         doc/glibc-functions/wcscasecmp_l.texi.
36351         * doc/posix-functions/wcscoll_l.texi: Renamed from
36352         doc/glibc-functions/wcscoll_l.texi.
36353         * doc/posix-functions/wcsdup.texi: Renamed from
36354         doc/glibc-functions/wcsdup.texi.
36355         * doc/posix-functions/wcsncasecmp.texi: Renamed from
36356         doc/glibc-functions/wcsncasecmp.texi.
36357         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
36358         doc/glibc-functions/wcsncasecmp_l.texi.
36359         * doc/posix-functions/wcsnlen.texi: Renamed from
36360         doc/glibc-functions/wcsnlen.texi.
36361         * doc/posix-functions/wcsnrtombs.texi: Renamed from
36362         doc/glibc-functions/wcsnrtombs.texi.
36363         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
36364         doc/glibc-functions/wcsxfrm_l.texi.
36365         * doc/posix-functions/wctrans_l.texi: Renamed from
36366         doc/glibc-functions/wctrans_l.texi.
36367         * doc/posix-functions/wctype_l.texi: Renamed from
36368         doc/glibc-functions/wctype_l.texi.
36369         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36370         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
36371         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
36372         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
36373         these subsections.
36374         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
36375         Remove sections.
36376
36377 2008-12-14  Bruno Haible  <bruno@clisp.org>
36378
36379         Update doc for POSIX:2008.
36380         * doc/posix-functions/*.texi: Update URL of POSIX specification.
36381
36382 2008-12-14  Bruno Haible  <bruno@clisp.org>
36383
36384         Update doc for POSIX:2008.
36385         * doc/pastposix-functions/bcmp.texi: Renamed from
36386         doc/posix-functions/bcmp.texi.
36387         * doc/pastposix-functions/bcopy.texi: Renamed from
36388         doc/posix-functions/bcopy.texi.
36389         * doc/pastposix-functions/bsd_signal.texi: Renamed from
36390         doc/posix-functions/bsd_signal.texi.
36391         * doc/pastposix-functions/bzero.texi: Renamed from
36392         doc/posix-functions/bzero.texi.
36393         * doc/pastposix-functions/ecvt.texi: Renamed from
36394         doc/posix-functions/ecvt.texi.
36395         * doc/pastposix-functions/fcvt.texi: Renamed from
36396         doc/posix-functions/fcvt.texi.
36397         * doc/pastposix-functions/ftime.texi: Renamed from
36398         doc/posix-functions/ftime.texi.
36399         * doc/pastposix-functions/gcvt.texi: Renamed from
36400         doc/posix-functions/gcvt.texi.
36401         * doc/pastposix-functions/getcontext.texi: Renamed from
36402         doc/posix-functions/getcontext.texi.
36403         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
36404         doc/posix-functions/gethostbyaddr.texi.
36405         * doc/pastposix-functions/gethostbyname.texi: Renamed from
36406         doc/posix-functions/gethostbyname.texi.
36407         * doc/pastposix-functions/getwd.texi: Renamed from
36408         doc/posix-functions/getwd.texi.
36409         * doc/pastposix-functions/h_errno.texi: Renamed from
36410         doc/posix-functions/h_errno.texi.
36411         * doc/pastposix-functions/index.texi: Renamed from
36412         doc/posix-functions/index.texi.
36413         * doc/pastposix-functions/makecontext.texi: Renamed from
36414         doc/posix-functions/makecontext.texi.
36415         * doc/pastposix-functions/mktemp.texi: Renamed from
36416         doc/posix-functions/mktemp.texi.
36417         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
36418         doc/posix-functions/pthread_attr_getstackaddr.texi.
36419         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
36420         doc/posix-functions/pthread_attr_setstackaddr.texi.
36421         * doc/pastposix-functions/rindex.texi: Renamed from
36422         doc/posix-functions/rindex.texi.
36423         * doc/pastposix-functions/scalb.texi: Renamed from
36424         doc/posix-functions/scalb.texi.
36425         * doc/pastposix-functions/setcontext.texi: Renamed from
36426         doc/posix-functions/setcontext.texi.
36427         * doc/pastposix-functions/swapcontext.texi: Renamed from
36428         doc/posix-functions/swapcontext.texi.
36429         * doc/pastposix-functions/ualarm.texi: Renamed from
36430         doc/posix-functions/ualarm.texi.
36431         * doc/pastposix-functions/usleep.texi: Renamed from
36432         doc/posix-functions/usleep.texi.
36433         * doc/pastposix-functions/vfork.texi: Renamed from
36434         doc/posix-functions/vfork.texi.
36435         * doc/pastposix-functions/wcswcs.texi: Renamed from
36436         doc/posix-functions/wcswcs.texi.
36437         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
36438         (Function Substitutes): Update.
36439
36440 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36441
36442         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
36443         m4/strerror.m4.
36444
36445 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36446             Bruno Haible  <bruno@clisp.org>
36447
36448         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
36449
36450 2008-12-13  Bruno Haible  <bruno@clisp.org>
36451
36452         * modules/strtoull (Depends-on): Remove unistd.
36453
36454 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36455
36456         * modules/strtoull (Depends-on): Add stdlib.
36457
36458 2008-12-11  Simon Josefsson  <simon@josefsson.org>
36459
36460         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
36461
36462 2008-12-10  Jim Meyering  <meyering@redhat.com>
36463
36464         gl_ASSERT: don't say assertions are disabled when they're not
36465         * m4/assert.m4 (gl_ASSERT): Do not make configure report
36466         "checking whether to enable assertions... no", when they are in
36467         fact enabled.  This is solely a bug in the output of configure.
36468         In spite of saying "no", NDEBUG was not defined in that case.
36469         Also, as noted by Eric Blake, leave assertions enabled upon
36470         --enable-assert=INVALID.
36471
36472 2008-12-10  Bruno Haible  <bruno@clisp.org>
36473
36474         Change MODULES.html to refer to POSIX:2008 where possible.
36475         * MODULES.html.sh (POSIX2008_URL): New variable.
36476         (posix_headers): Remove sys/timeb, ucontext.
36477         (posix2001_headers): New variable.
36478         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
36479         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
36480         index, makecontext, mktemp, pthread_attr_getstackaddr,
36481         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
36482         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
36483         (posix2001_functions): New variable.
36484         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
36485         otherwise.
36486
36487 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36488
36489         add missing include to parse-duration.c
36490         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
36491         * modules/parse-duration (Depends-on): Add xalloc.
36492
36493         fix sed script reading maint.mk
36494         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
36495         (syntax-check-rules): Use it.
36496
36497 2008-12-09  Bruno Haible  <bruno@clisp.org>
36498
36499         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
36500         MacOS X 10.4/PowerPC.
36501         Reported by Simon Josefsson.
36502
36503 2008-12-08  Jim Meyering  <meyering@redhat.com>
36504
36505         work around mingw's lack of some S_IF definitions
36506         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
36507         Reported by Simon Josefsson.
36508
36509 2008-12-08  Bruno Haible  <bruno@clisp.org>
36510
36511         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
36512         applied to variables. Needed on MacOS X 10.4/PowerPC.
36513         Reported by Simon Josefsson.
36514
36515 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
36516         and Eric Blake  <ebb9@byu.net>
36517
36518         assert: honor --enable-assert
36519         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
36520         order to honor --enable-assert, rather than treating it as a
36521         synonym for --disable-assert.
36522
36523 2008-12-08  Jim Meyering  <meyering@redhat.com>
36524
36525         * lib/posixtm.c: Remove now-useless declaration of mktime.
36526
36527         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
36528
36529 2008-12-07  Bruno Haible  <bruno@clisp.org>
36530
36531         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
36532         test_once): Mark functions as static.
36533         * tests/test-tls.c (test_tls): Likewise.
36534
36535 2008-12-07  Bruno Haible  <bruno@clisp.org>
36536
36537         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
36538         iconv_register_autodetect.
36539
36540 2008-12-07  Jim Meyering  <meyering@redhat.com>
36541
36542         posixtm.c: avoid a warning
36543         * lib/posixtm.c (posixtime): Don't initialize tm0.
36544         It's no longer needed to placate gcc4's -Wuninitialized,
36545         and the attempt to placate would elicit a new warning.
36546
36547         unicodeio.c: mark unused parameters
36548         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
36549         (fallback_failure_callback): Likewise.
36550
36551 2008-12-07  Bruno Haible  <bruno@clisp.org>
36552
36553         * gnulib-tool (func_create_testdir): When building the tests
36554         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
36555         Reported by Simon Josefsson.
36556
36557 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36558
36559         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
36560
36561 2008-12-06  Bruno Haible  <bruno@clisp.org>
36562
36563         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
36564         Suggested by Eric Blake.
36565
36566 2008-12-06  Bruno Haible  <bruno@clisp.org>
36567
36568         Fix a c-stack test failure on MacOS X.
36569         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
36570         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
36571         handler for SIGBUS as well.
36572         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
36573         install a signal handler for SIGBUS as well.
36574         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
36575
36576 2008-12-06  Bruno Haible  <bruno@clisp.org>
36577
36578         Advocacy documentation.
36579         * doc/gnulib-intro.texi (Benefits): New section.
36580         * doc/gnulib.texi: Update.
36581
36582 2008-12-06  Bruno Haible  <bruno@clisp.org>
36583
36584         Document the 'manywarnings' module.
36585         * doc/manywarnings.texi: New file.
36586         * doc/gnulib.texi: Include it.
36587
36588 2008-12-05  Eric Blake  <ebb9@byu.net>
36589
36590         tests: silence some gcc warnings
36591         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
36592         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
36593         type mismatches.
36594
36595 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36596             Bruno Haible  <bruno@clisp.org>
36597
36598         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
36599
36600 2008-11-29  Jim Meyering  <meyering@redhat.com>
36601
36602         unicodeio.c: mark unused parameters
36603         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
36604         (fallback_failure_callback): Likewise.
36605
36606         fts: fix a thinko
36607         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
36608         (set_stat_type): Return S_IF*-valued "type" directly.
36609         Prompted by James Youngman's spotting a related bug.
36610         Confirmed by further testing through find.
36611
36612         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
36613         * lib/fts.c (D_TYPE): Define.
36614         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
36615         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
36616         (s_ifmt_shift_bits): New function.
36617         (set_stat_type): New function.
36618         (fts_build): When not calling fts_stat, call set_stat_type
36619         to propagate dirent.d_type info to fts_read caller.
36620         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
36621         fts_statp->st_mode type information may be valid.
36622
36623 2008-11-28  Simon Josefsson  <simon@josefsson.org>
36624
36625         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
36626         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
36627         <sds@gnu.org>.
36628
36629 2008-11-20  Bruno Haible  <bruno@clisp.org>
36630
36631         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
36632         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
36633         INCLUDE_NEXT.
36634         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
36635         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
36636         * modules/math (Makefile.am): Substitute
36637         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
36638         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36639
36640 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
36641             Bruno Haible  <bruno@clisp.org>
36642
36643         * lib/stdint.in.h: Define all type macros so that their expansion is
36644         a single typedef'ed token. Fixes a compilation failure in Boost which
36645         does "using ::int8_t;".
36646
36647 2008-11-18  Simon Josefsson  <simon@josefsson.org>
36648
36649         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
36650         gl_MANYWARN_ALL_GCC.
36651         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
36652         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
36653         * modules/manywarnings: New file.
36654         * MODULES.html.sh: Mention manywarnings module.
36655
36656 2008-11-18  Bruno Haible  <bruno@clisp.org>
36657
36658         * doc/gnulib-tool.texi (Unit tests): New section.
36659
36660 2008-11-18  Simon Josefsson  <simon@josefsson.org>
36661
36662         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
36663         paths like 'lib/po/foo.po'.
36664
36665 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36666
36667         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
36668         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
36669
36670 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36671
36672         * m4/warnings.m4: Use CPPFLAGS to really check whether the
36673         parameter works.
36674
36675 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36676
36677         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
36678
36679 2008-11-17  Bruce Korb  <bkorb@gnu.org>
36680
36681         * modules/parse-duration-tests: New file.
36682         * tests/test-parse-duration.sh: New file.
36683         * tests/test-parse-duration.c: New file.
36684
36685         New module 'parse-duration'.
36686         * lib/parse-duration.h: New file.
36687         * lib/parse-duration.c: New file.
36688         * modules/parse-duration: New file.
36689
36690 2008-11-17  Bruno Haible  <bruno@clisp.org>
36691
36692         * tests/test-select-out.sh: Comment out the first pipe test.
36693         Reported by Simon Josefsson.
36694
36695 2008-11-17  Bruno Haible  <bruno@clisp.org>
36696
36697         * modules/getaddrinfo (Depends-on): Add servent, hostent.
36698         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
36699         gl_HOSTENT.
36700
36701 2008-11-17  Bruno Haible  <bruno@clisp.org>
36702
36703         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
36704         -lnetwork and -lnet. Needed for Haiku and BeOS.
36705
36706 2008-11-16  Bruno Haible  <bruno@clisp.org>
36707
36708         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
36709
36710 2008-11-16  Bruno Haible  <bruno@clisp.org>
36711
36712         Avoid test failure on Haiku.
36713         * tests/test-fsync.c: Include <errno.h>.
36714         (main): Don't require that fsync (0) fails.
36715
36716 2008-11-15  Bruno Haible  <bruno@clisp.org>
36717
36718         New module 'hostent'.
36719         * modules/hostent: New file.
36720         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
36721
36722 2008-11-15  Bruno Haible  <bruno@clisp.org>
36723
36724         New module 'servent'.
36725         * modules/servent: New file.
36726         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
36727
36728 2008-11-15  Bruno Haible  <bruno@clisp.org>
36729
36730         Avoid generating same test program with two different rules.
36731         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
36732         test-frexp to test-frexp-nolibm.
36733         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
36734         test-frexpl to test-frexpl-nolibm.
36735
36736 2008-11-15  Bruno Haible  <bruno@clisp.org>
36737
36738         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
36739         $(FREXPL_LIBM).
36740
36741 2008-11-15  Bruno Haible  <bruno@clisp.org>
36742
36743         * lib/netdb.in.h: Activate the definitions also when the system's
36744         <netdb.h> has 'struct addrinfo'.
36745         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
36746         EAI_OVERFLOW or AI_NUMERICSERV.
36747         * doc/posix-headers/netdb.texi: Document the problem.
36748
36749 2008-11-15  Bruno Haible  <bruno@clisp.org>
36750
36751         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
36752
36753         Make the 'sched' module work on platforms where <sched.h> exists but
36754         is incomplete (such as Haiku).
36755         * lib/sched.in.h; Include the system's <sched.h> if it exists.
36756         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
36757         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
36758         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
36759         HAVE_STRUCT_SCHED_PARAM.
36760         * modules/sched (Depends-on): Add include_next.
36761         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
36762         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
36763         * doc/posix-headers/sched.texi: Document the issue.
36764
36765 2008-11-13  Jim Meyering  <meyering@redhat.com>
36766
36767         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
36768         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
36769         test would fail due to the difference in the Report bugs to ...
36770         line.  The expected address is empty, "<>", while the actual
36771         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
36772
36773 2008-11-12  Bruno Haible  <bruno@clisp.org>
36774
36775         lstat: don't compile lstat.c on systems lacking lstat
36776         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
36777         which don't have lstat; this is handled by lib/sys_stat.in.h already.
36778         Reported by Daniel P. Berrange via Jim Meyering.
36779
36780 2008-11-12  Jim Meyering  <meyering@redhat.com>
36781
36782         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
36783
36784 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36785
36786         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
36787         instead.
36788
36789 2008-11-12  Bruno Haible  <bruno@clisp.org>
36790
36791         * lib/unicodeio.c: Include unistr.h.
36792         (utf8_wctomb): Remove function.
36793         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
36794
36795 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36796
36797         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
36798         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
36799         <bruno@clisp.org>.
36800         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
36801
36802 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36803
36804         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
36805         * doc/gnulib.texi: Add section for warnings.
36806
36807 2008-11-11  Bruno Haible  <bruno@clisp.org>
36808
36809         * lib/sockets.h: Add a comment.
36810
36811 2008-11-11  Karl Berry  <karl@gnu.org>
36812
36813         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
36814
36815 2008-11-11  Eric Blake  <ebb9@byu.net>
36816
36817         fdl.texi: avoid git symlinks
36818         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
36819
36820 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36821
36822         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
36823
36824 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36825
36826         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
36827         (gl_WARN_ADD): Substitute $2 if literal.
36828
36829 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36830
36831         * m4/warning.m4: Remove.
36832
36833 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36834
36835         * m4/warnings.m4: Almost complete rewrite. :-)
36836
36837 2008-11-10  Simon Josefsson  <simon@josefsson.org>
36838
36839         * modules/warnings: New module.
36840         * m4/warnings.m4: New file.
36841         * MODULES.html.sh: Mention warnings module.
36842         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
36843         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36844
36845 2008-11-10  Eric Blake  <ebb9@byu.net>
36846
36847         fdl.texi: make a symlink to the latest version
36848         * doc/standards.texi: Revert today's earlier change.
36849         * doc/fdl-1.2.texi: Rename from old fdl.texi...
36850         * doc/fdl.texi: ...and replace this with a symlink to the newer
36851         fdl-1.3.texi.
36852
36853 2008-11-10  Bruno Haible  <bruno@clisp.org>
36854
36855         * tests/test-select-fd.c (main): Accept the result file name as fourth
36856         argument.
36857         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
36858         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
36859
36860 2008-11-10  Bruno Haible  <bruno@clisp.org>
36861
36862         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
36863         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
36864         as autoconf-substituted macros.
36865         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
36866         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
36867         gl_NETDB_H_DEFAULTS. Set these variables.
36868         * modules/netdb (Makefile.am): Substitute these variables.
36869
36870 2008-11-10  Eric Blake  <ebb9@byu.net>
36871
36872         standards.texi: include correct file for FDL 1.3
36873         * doc/standards.texi (GNU Free Documentation License): Change
36874         include file to pull in FDL 1.3, not 1.2.
36875
36876         fdl.texi: revert accidental change to license
36877         * doc/fdl.texi: This is FDL 1.2, not 1.3.
36878
36879 2008-11-10  Bruno Haible  <bruno@clisp.org>
36880
36881         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
36882         cross-compiling guesses also when the native compile gives no result.
36883
36884 2008-11-10  Bruno Haible  <bruno@clisp.org>
36885
36886         * lib/spawni.c (__spawni): Force variable into the stack.
36887
36888 2008-11-10  Bruno Haible  <bruno@clisp.org>
36889
36890         Add support for Haiku.
36891         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
36892         glibc and BeOS, but also on Haiku.
36893         * lib/fpurge.c (fpurge): Likewise.
36894         * lib/freadable.c (freadable): Likewise.
36895         * lib/freadahead.c (freadahead): Likewise.
36896         * lib/freading.c (freading): Likewise.
36897         * lib/freadptr.c (freadptr): Likewise.
36898         * lib/freadseek.c (freadptrinc): Likewise.
36899         * lib/fseeko.c (rpl_fseeko): Likewise.
36900         * lib/fseterr.c (fseterr): Likewise.
36901         * lib/fwritable.c (fwritable): Likewise.
36902         * lib/fwriting.c (fwriting): Likewise.
36903         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
36904
36905 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
36906
36907         * lib/config.charset: Treat Haiku like BeOS.
36908
36909 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
36910
36911         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
36912         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
36913
36914 2008-11-08  Bruno Haible  <bruno@clisp.org>
36915
36916         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
36917         AC_CACHE_CHECK.
36918
36919 2008-11-08  Bruno Haible  <bruno@clisp.org>
36920
36921         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
36922
36923 2008-11-08  Bruno Haible  <bruno@clisp.org>
36924
36925         * tests/test-select-fd.c: New file.
36926         * tests/test-select-in.sh: New file.
36927         * tests/test-select-out.sh: New file.
36928         * tests/test-select-stdin.c: New file.
36929         * modules/select-tests (Files): Add the new files.
36930         (Depends-on): Add gettimeofday.
36931         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
36932         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
36933         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
36934
36935 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
36936             Bruno Haible  <bruno@clisp.org>
36937
36938         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
36939
36940 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
36941
36942         * build-aux/pmccabe2html: Added support for C++ source files.
36943
36944 2008-11-05  Ben Pfaff  <blp@gnu.org>
36945
36946         Fix lib/close.c build on Windows.
36947         * modules/close (Files): Add lib/w32sock.h.
36948
36949 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
36950
36951         Accept Bison's NEWS format.
36952         * build-aux/announce-gen (print_news_deltas): Tweak
36953         $re_prefix.
36954
36955 2008-11-04  Bruno Haible  <bruno@clisp.org>
36956
36957         * modules/random_r (Maintainer): Add glibc.
36958
36959 2008-11-04  Simon Josefsson  <simon@josefsson.org>
36960
36961         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
36962         by karl@freefriends.org (Karl Berry).
36963         * doc/alloca.texi: Likewise.
36964         * doc/c-ctype.texi: Likewise.
36965         * doc/c-strcase.texi: Likewise.
36966         * doc/c-strcaseeq.texi: Likewise.
36967         * doc/c-strcasestr.texi: Likewise.
36968         * doc/c-strstr.texi: Likewise.
36969         * doc/c-strtod.texi: Likewise.
36970         * doc/c-strtold.texi: Likewise.
36971         * doc/ctime.texi: Likewise.
36972         * doc/error.texi: Likewise.
36973         * doc/fdl.texi: Likewise.
36974         * doc/gcd.texi: Likewise.
36975         * doc/getdate.texi: Likewise.
36976         * doc/gnulib-intro.texi: Likewise.
36977         * doc/gnulib-tool.texi: Likewise.
36978         * doc/gnulib.texi: Likewise.
36979         * doc/inet_ntoa.texi: Likewise.
36980         * doc/maintain.texi: Likewise.
36981         * doc/make-stds.texi: Likewise.
36982         * doc/quote.texi: Likewise.
36983         * doc/regexprops-generic.texi: Likewise.
36984         * doc/standards.texi: Likewise.
36985         * doc/verify.texi: Likewise.
36986         * doc/visibility.texi: Likewise.
36987         * doc/gnulib.texi (GNU Free Documentation License): Include
36988         fdl-1.3.texi instead of fdl.texi.
36989
36990 2008-11-04  Simon Josefsson  <simon@josefsson.org>
36991
36992         * doc/fdl-1.3.texi: New file, from
36993         <http://www.gnu.org/licenses/fdl-1.3.texi>.
36994         * modules/fdl-1.3: Add.
36995         * MODULES.html.sh: Add fdl-1.3.
36996
36997 2008-11-03  Bruno Haible  <bruno@clisp.org>
36998
36999         Make determination of absolute name of header file work with AIX xlc.
37000         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
37001         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
37002         preprocessing.
37003         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37004         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37005
37006 2008-11-03  Simon Josefsson  <simon@josefsson.org>
37007
37008         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
37009         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
37010         <ludo@gnu.org>.
37011
37012 2008-11-02  Bruno Haible  <bruno@clisp.org>
37013
37014         Mark 'strpbrk' obsolete.
37015         * modules/strpbrk (Status, Notice): New sections.
37016         * modules/strtok_r (Depends-on): Add strpbrk.
37017
37018 2008-11-02  Bruno Haible  <bruno@clisp.org>
37019
37020         Mark 'strdup' obsolete.
37021         * modules/strdup (Status, Notice): New sections.
37022         * modules/findprog (Depends-on): Add strdup.
37023         * modules/getaddrinfo (Depends-on): Likewise.
37024         * modules/localename (Depends-on): Likewise.
37025         * modules/relocatable-lib (Depends-on): Likewise.
37026         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
37027         * modules/relocatable-prog (Depends-on): Likewise.
37028         * modules/trim (Depends-on): Likewise.
37029         * modules/unictype/gen-ctype (Depends-on): Likewise.
37030         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37031
37032 2008-11-02  Bruno Haible  <bruno@clisp.org>
37033
37034         Mark 'strcspn' obsolete.
37035         * modules/strcspn (Status, Notice): New sections.
37036
37037 2008-11-02  Bruno Haible  <bruno@clisp.org>
37038
37039         Mark 'rmdir' obsolete.
37040         * modules/rmdir (Status, Notice): New sections.
37041         * modules/clean-temp (Depends-on): Add rmdir.
37042         * modules/openat (Depends-on): Likewise.
37043
37044 2008-11-02  Bruno Haible  <bruno@clisp.org>
37045
37046         Mark 'raise' obsolete.
37047         * modules/raise (Status, Notice): New sections.
37048         (Include): Specify <signal.h>.
37049         * modules/stdio (Depends-on): Add raise.
37050         * modules/write (Depends-on): Likewise.
37051
37052 2008-11-02  Bruno Haible  <bruno@clisp.org>
37053
37054         Mark 'memset' obsolete.
37055         * modules/memset (Status, Notice): New sections.
37056
37057 2008-11-02  Bruno Haible  <bruno@clisp.org>
37058
37059         Mark 'memmove' obsolete.
37060         * modules/memmove (Status, Notice): New sections.
37061         * modules/argp (Depends-on): Add memmove.
37062         * modules/argz (Depends-on): Likewise.
37063         * modules/canonicalize (Depends-on): Likewise.
37064         * modules/canonicalize-lgpl (Depends-on): Likewise.
37065         * modules/fts (Depends-on): Likewise.
37066         * modules/getcwd (Depends-on): Likewise.
37067         * modules/human (Depends-on): Likewise.
37068         * modules/regex (Depends-on): Likewise.
37069         * modules/striconveh (Depends-on): Likewise.
37070         * modules/trim (Depends-on): Likewise.
37071         * modules/unistr/u8-move (Depends-on): Likewise.
37072         * modules/unistr/u16-move (Depends-on): Likewise.
37073         * modules/unistr/u32-move (Depends-on): Likewise.
37074
37075 2008-11-02  Bruno Haible  <bruno@clisp.org>
37076
37077         Mark 'memcpy' obsolete.
37078         * modules/memcpy (Status, Notice): New sections.
37079
37080 2008-11-02  Bruno Haible  <bruno@clisp.org>
37081
37082         Mark 'memcmp' obsolete.
37083         * modules/memcmp (Status, Notice): New sections.
37084         * modules/argmatch (Depends-on): Add memchr.
37085         * modules/backupfile (Depends-on): Likewise.
37086         * modules/c-strcasestr (Depends-on): Likewise.
37087         * modules/crypto/des (Depends-on): Likewise.
37088         * modules/csharpcomp (Depends-on): Likewise.
37089         * modules/fnmatch (Depends-on): Likewise.
37090         * modules/git-merge-changelog (Depends-on): Likewise.
37091         * modules/isnand (Depends-on): Likewise.
37092         * modules/isnand-nolibm (Depends-on): Likewise.
37093         * modules/isnanf (Depends-on): Likewise.
37094         * modules/isnanf-nolibm (Depends-on): Likewise.
37095         * modules/isnanl (Depends-on): Likewise.
37096         * modules/isnanl-nolibm (Depends-on): Likewise.
37097         * modules/mbchar (Depends-on): Likewise.
37098         * modules/memcoll (Depends-on): Likewise.
37099         * modules/quotearg (Depends-on): Likewise.
37100         * modules/regex (Depends-on): Likewise.
37101         * modules/relocatable-prog (Depends-on): Likewise.
37102         * modules/same (Depends-on): Likewise.
37103         * modules/signbit (Depends-on): Likewise.
37104         * modules/strcasestr-simple (Depends-on): Likewise.
37105         * modules/unictype/gen-ctype (Depends-on): Likewise.
37106         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37107         * modules/uniname/uniname (Depends-on): Likewise.
37108         * modules/unistr/u8-cmp (Depends-on): Likewise.
37109
37110 2008-11-02  Bruno Haible  <bruno@clisp.org>
37111
37112         Mark 'memchr' obsolete.
37113         * modules/memchr (Status, Notice): New sections.
37114         * modules/argp (Depends-on): Add memchr.
37115         * modules/base64 (Depends-on): Likewise.
37116         * modules/c-strcasestr (Depends-on): Likewise.
37117         * modules/chdir-long (Depends-on): Likewise.
37118         * modules/fnmatch (Depends-on): Likewise.
37119         * modules/getsubopt (Depends-on): Likewise.
37120         * modules/git-merge-changelog (Depends-on): Likewise.
37121         * modules/glob (Depends-on): Likewise.
37122         * modules/strcasestr-simple (Depends-on): Likewise.
37123         * modules/strnlen (Depends-on): Likewise.
37124
37125 2008-11-02  Bruno Haible  <bruno@clisp.org>
37126
37127         Mark 'atexit' obsolete.
37128         * modules/atexit (Status, Notice): New sections.
37129         * modules/chdir-long (Depends-on): Add atexit.
37130         * modules/wait-process (Depends-on): Likewise.
37131
37132 2008-11-02  Bruno Haible  <bruno@clisp.org>
37133
37134         * gnulib-tool: New option --with-obsolete.
37135         (func_usage): Document it.
37136         (func_modules_transitive_closure): Drop obsolete dependencies if
37137         incobsolete is not true.
37138         (func_import): Read and save the incobsolete variable to the cache.
37139
37140 2008-11-02  Bruno Haible  <bruno@clisp.org>
37141
37142         * modules/TEMPLATE-EXTENDED: New field 'Status'.
37143         * gnulib-tool: New option --extract-status.
37144         (func_usage): Document it.
37145         (sed_extract_prog): Recognize it.
37146         (func_get_status): New function.
37147
37148 2008-10-30  Simon Josefsson  <simon@josefsson.org>
37149
37150         * modules/sockets (License): Change from LGPL to LGPLv2+.
37151
37152 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37153
37154         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
37155
37156 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37157
37158         * MODULES.html.sh (Support for systems lacking POSIX:2001):
37159         Mention times and sys_times.
37160         * modules/sys_times, modules/sys_times-tests: New modules.
37161         * modules/times, modules/times-tests: Likewise
37162         * m4/sys_times_h.m4: New file.
37163         * lib/sys_times.in.h: Likewise
37164         * lib/times.c: Likewise.
37165         * tests/test-sys_times.c: Likewise.
37166         * tests/test-times.c: Likewise.
37167         * doc/posix-headers/sys_times.texi: Update.
37168         * doc/posix-functions/times.texi: Update.
37169
37170 2008-10-28  Jim Meyering  <meyering@redhat.com>
37171
37172         * modules/tempname (Depends-on): Add lstat.
37173
37174         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
37175
37176 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37177
37178         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
37179         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
37180         using idiom used elsewhere in gnulib.
37181
37182 2008-10-27  Jim Meyering  <meyering@redhat.com>
37183
37184         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
37185
37186 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37187
37188         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
37189         TESTS_ENVIRONMENT, for shell scripts that needs to call built
37190         programs.
37191         * tests/test-argp-2.sh: Use $EXEEXT when needed.
37192
37193 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37194
37195         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
37196
37197 2008-10-27  Bruno Haible  <bruno@clisp.org>
37198
37199         * tests/test-lstat.c: Include <stdio.h>.
37200
37201 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37202
37203         * modules/lstat-tests: New module.
37204         * tests/test-lstat.c: New file.
37205
37206 2008-10-26  Jim Meyering  <meyering@redhat.com>
37207
37208         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
37209
37210 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37211             Bruno Haible  <bruno@clisp.org>
37212
37213         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
37214         * modules/configmake (Include): Add a note that the include must come
37215         after all system headers.
37216         * lib/javaversion.c: Include configmake.h after all other includes.
37217
37218 2008-10-26  Bruno Haible  <bruno@clisp.org>
37219
37220         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
37221         HAVE_STRUCT_RANDOM_DATA to 1.
37222         (gl_STDLIB_H): Simplify.
37223
37224 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37225
37226         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
37227         substitute HAVE_STRUCT_RANDOM_DATA.
37228         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
37229         random_data.
37230         * modules/stdlib (Makefile.am): Substitute
37231         HAVE_STRUCT_RANDOM_DATA.
37232
37233 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37234
37235         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
37236         * doc/gnulib-intro.texi (Copyright): Likewise.
37237
37238 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37239
37240         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
37241         findings.
37242
37243 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
37244             Bruno Haible  <bruno@clisp.org>
37245
37246         * lib/unistd.in.h: Include <winsock2.h>.
37247         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
37248         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
37249         Provide dummy declarations.
37250         (gethostname): Override.
37251         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
37252         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
37253         gl_PREREQ_SYS_H_WINSOCK2.
37254         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
37255         * doc/posix-functions/gethostname.texi: More details.
37256
37257 2008-10-25  Bruno Haible  <bruno@clisp.org>
37258
37259         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37260         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
37261         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
37262
37263         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
37264         here ...
37265         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
37266         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
37267         gl_UNISTD_H_DEFAULTS.
37268
37269 2008-10-25  Eric Blake  <ebb9@byu.net>
37270
37271         signbit: avoid spurious compiler failure
37272         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
37273         declarations inside function.
37274
37275 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37276             Bruno Haible  <bruno@clisp.org>
37277
37278         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
37279         * modules/random_r (Depends-on): Add stdint.
37280
37281 2008-10-24  Bruno Haible  <bruno@clisp.org>
37282
37283         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
37284         Eggert.
37285         * modules/strerror (License): Likewise.
37286
37287 2008-10-24  Jim Meyering  <meyering@redhat.com>
37288
37289         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
37290         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
37291
37292 2008-10-24  Eric Blake  <ebb9@byu.net>
37293
37294         getgroups: fix compilation when getgroups is available
37295         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
37296         but with <config.h> override of getgroups disabled.
37297
37298 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37299
37300         * doc/gnulib.texi (Header files): Add note about C++ problems.
37301         Explained by Bruno Haible <bruno@clisp.org>.
37302
37303 2008-10-23  Bruno Haible  <bruno@clisp.org>
37304
37305         Define a dummy SA_NODEFER macro on Interix.
37306         * lib/signal.in.h (SA_NODEFER): Define fallback.
37307         Reported by Aleksey Cheusov <cheusov@tut.by> via
37308         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
37309
37310 2008-10-23  Bruno Haible  <bruno@clisp.org>
37311
37312         * modules/freadahead (License): Change to LGPLv2+.
37313         Suggested by Simon Josefsson.
37314
37315 2008-10-23  Jim Meyering  <meyering@redhat.com>
37316
37317         random_r: new module
37318         * modules/random_r: New file.
37319         * m4/random_r.m4: New file.
37320         * lib/random_r.c: New file, from glibc.
37321         * modules/random_r-tests: New file.
37322         * tests/test-random_r.c: New file.
37323         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
37324          Declare.
37325         (RAND_MAX): Define.
37326         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
37327         * modules/stdlib: Substitute them, too.
37328         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
37329         * doc/glibc-functions/initstate_r.texi: Mention the new module.
37330         * doc/glibc-functions/random_r.texi: Likewise.
37331         * doc/glibc-functions/setstate_r.texi: Likewise.
37332         * doc/glibc-functions/srandom_r.texi: Likewise.
37333         * config/srclist.txt: Mention it.
37334
37335 2008-10-23  David Lutterkort  <lutter@redhat.com>
37336
37337         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
37338         link requirement
37339
37340 2008-10-23  Jim Meyering  <meyering@redhat.com>
37341
37342         selinux-h: mark parameters of stub functions as intentionally unused
37343         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
37344         * lib/se-context.in.h: Likewise.
37345
37346 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37347
37348         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
37349
37350 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37351
37352         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
37353
37354 2008-10-22  Eric Blake  <ebb9@byu.net>
37355
37356         glthread/thread: avoid compiler warning
37357         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
37358         Add unreachable abort to silence compiler.
37359
37360 2008-10-22  Eric Blake  <ebb9@byu.net>
37361
37362         netdb: also supply struct addrinfo for cygwin 1.5.x
37363         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
37364         older cygwin.
37365         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
37366         cygwin.
37367         * doc/posix-headers/netdb.texi (netdb.h): Document this.
37368
37369 2008-10-22  Bruno Haible  <bruno@clisp.org>
37370
37371         * users.txt: Update entry about pspp.
37372
37373 2008-10-21  Bruno Haible  <bruno@clisp.org>
37374
37375         Simplification.
37376         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
37377         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
37378
37379         Simplification.
37380         * lib/ioctl.c (ioctl): Don't undefine.
37381         * lib/socket.c (socket): Don't undefine.
37382
37383         Remove unused module indicator macros.
37384         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
37385         GNULIB_$1 as a C macro.
37386
37387         * doc/posix-functions/close.texi: Undo last change.
37388         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
37389         Windows platforms.
37390
37391 2008-10-21  Bruno Haible  <bruno@clisp.org>
37392
37393         Add gethostname() declaration to <unistd.h>.
37394         * lib/unistd.in.h (gethostname): New declaration.
37395         * lib/gethostname.c: Include <unistd.h>.
37396         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
37397         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
37398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
37399         and HAVE_GETHOSTNAME.
37400         * modules/gethostname (Depends-on): Add unistd.
37401         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37402         (Include): Specify <unistd.h>.
37403         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
37404         HAVE_GETHOSTNAME.
37405         * tests/test-gethostname.c: Include <unistd.h> first.
37406
37407 2008-10-21  Bruno Haible  <bruno@clisp.org>
37408
37409         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
37410         * modules/select-tests (Depends-on): Likewise.
37411         Reported by Simon Josefsson.
37412
37413 2008-10-21  Simon Josefsson  <simon@josefsson.org>
37414
37415         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
37416         * lib/accept.c: New file, based on winsock.c.
37417         * lib/bind.c: New file, based on winsock.c.
37418         * lib/connect.c: New file, based on winsock.c.
37419         * lib/getpeername.c: New file, based on winsock.c.
37420         * lib/getsockname.c: New file, based on winsock.c.
37421         * lib/getsockopt.c: New file, based on winsock.c.
37422         * lib/ioctl.c: New file, based on winsock.c.
37423         * lib/listen.c: New file, based on winsock.c.
37424         * lib/recv.c: New file, based on winsock.c.
37425         * lib/recvfrom.c: New file, based on winsock.c.
37426         * lib/send.c: New file, based on winsock.c.
37427         * lib/sendto.c: New file, based on winsock.c.
37428         * lib/setsockopt.c: New file, based on winsock.c.
37429         * lib/shutdown.c: New file, based on winsock.c.
37430         * lib/socket.c: New file, based on winsock.c.
37431         * lib/w32sock.h: New file, based on winsock.c.
37432         * lib/winsock.c: Remove file.
37433         * modules/accept: Likewise.
37434         * modules/bind: Likewise.
37435         * modules/connect: Likewise.
37436         * modules/getpeername: Likewise.
37437         * modules/getsockname: Likewise.
37438         * modules/getsockopt: Likewise.
37439         * modules/ioctl: Likewise.
37440         * modules/listen: Likewise.
37441         * modules/recv: Likewise.
37442         * modules/recvfrom: Likewise.
37443         * modules/send: Likewise.
37444         * modules/sendto: Likewise.
37445         * modules/setsockopt: Likewise.
37446         * modules/shutdown: Likewise.
37447         * modules/socket: Use socket.c instead of winsock.c.
37448         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
37449         * doc/posix-functions/accept.texi: Doc fix.
37450         * doc/posix-functions/bind.texi: Doc fix.
37451         * doc/posix-functions/close.texi: Doc fix.
37452         * doc/posix-functions/connect.texi: Doc fix.
37453         * doc/posix-functions/getpeername.texi: Doc fix.
37454         * doc/posix-functions/getsockname.texi: Doc fix.
37455         * doc/posix-functions/getsockopt.texi: Doc fix.
37456         * doc/posix-functions/ioctl.texi: Doc fix.
37457         * doc/posix-functions/listen.texi: Doc fix.
37458         * doc/posix-functions/recv.texi: Doc fix.
37459         * doc/posix-functions/recvfrom.texi: Doc fix.
37460         * doc/posix-functions/send.texi: Doc fix.
37461         * doc/posix-functions/sendto.texi: Doc fix.
37462         * doc/posix-functions/setsockopt.texi: Doc fix.
37463         * doc/posix-functions/shutdown.texi: Doc fix.
37464         * doc/posix-functions/socket.texi: Doc fix.
37465
37466 2008-10-20  Bruno Haible  <bruno@clisp.org>
37467
37468         Take into account the role of SIGABRT_COMPAT on Windows 2008.
37469         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
37470         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
37471         as an alias for SIGABRT.
37472         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
37473         (sigaction): Map it to SIGABRT.
37474         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
37475
37476 2008-10-20  Bruno Haible  <bruno@clisp.org>
37477
37478         * lib/fts.c: Don't include lstat.h.
37479         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
37480
37481         Move the lstat() declaration to <sys/stat.h>.
37482         * lib/lstat.h: Remove file.
37483         * lib/sys_stat.in.h: Add special invocation convention.
37484         (lstat): New declaration.
37485         * lib/lstat.c (orig_lstat): New function.
37486         (rpl_lstat): Use orig_lstat instead of lstat.
37487         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
37488         AC_C_INLINE. Set REPLACE_LSTAT.
37489         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
37490         and REPLACE_LSTAT.
37491         * modules/lstat (Files): Remove lib/lstat.h.
37492         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37493         (Include): Specify <sys/stat.h> instead of lstat.h.
37494         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
37495         REPLACE_LSTAT.
37496         * NEWS: Mention the change.
37497
37498 2008-10-20  Bruno Haible  <bruno@clisp.org>
37499
37500         * modules/posix_spawn-tests: New file.
37501         * tests/test-posix_spawn3.c: New file.
37502
37503 2008-10-20  Bruno Haible  <bruno@clisp.org>
37504
37505         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
37506         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37507         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
37508         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37509         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
37510
37511 2008-10-20  Bruno Haible  <bruno@clisp.org>
37512
37513         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
37514         of posix_spawn on AIX 5.3.
37515
37516 2008-10-20  Bruno Haible  <bruno@clisp.org>
37517
37518         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
37519
37520 2008-10-20  Bruno Haible  <bruno@clisp.org>
37521
37522         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
37523         of AC_LANG_PROGRAM.
37524
37525 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37526
37527         * lib/netdb.in.h: Don't define GNU specific constants until they
37528         are supported or needed.  Reported by Bruno Haible
37529         <bruno@clisp.org>.
37530
37531 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37532
37533         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
37534
37535 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37536
37537         * lib/getaddrinfo.h: Remove file.
37538         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
37539         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
37540         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
37541         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
37542         * modules/netdb: Substitute GNULIB_GETADDRINFO.
37543         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
37544         * tests/test-getaddrinfo.c: Likewise.
37545         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
37546         * NEWS: Mention change.
37547
37548 2008-10-19  Bruno Haible  <bruno@clisp.org>
37549
37550         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
37551
37552 2008-10-19  Bruno Haible  <bruno@clisp.org>
37553
37554         * lib/wait-process.c: Include simply <sys/wait.h>.
37555         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
37556         WIFSTOPPED): Remove fallback definitions.
37557         * modules/wait-process (Depends-on): Add sys_wait.
37558
37559         New module 'sys_wait'.
37560         * modules/sys_wait: New file.
37561         * lib/sys_wait.in.h: New file, partially copied from
37562         lib/wait-process.c.
37563         * m4/sys_wait_h.m4: New file.
37564         * doc/posix-headers/sys_wait.texi: Mention the new module.
37565
37566 2008-10-19  Bruno Haible  <bruno@clisp.org>
37567
37568         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
37569
37570 2008-10-19  Bruno Haible  <bruno@clisp.org>
37571
37572         Assume that waitpid() fills an 'int' status, not a 'union wait'.
37573         * lib/wait-process.c (WAIT_T): Remove type.
37574         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
37575         (wait_subprocess): Update.
37576
37577 2008-10-19  Bruno Haible  <bruno@clisp.org>
37578
37579         New module 'atoll'.
37580         * modules/atoll: New file.
37581         * lib/stdlib.in.h (atoll): New declaration.
37582         * lib/atoll.c: New file, from glibc with modifications.
37583         * m4/atoll.m4: New file.
37584         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
37585         HAVE_ATOLL.
37586         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
37587         * doc/posix-functions/atoll.texi: Mention the new module.
37588
37589 2008-10-19  Bruno Haible  <bruno@clisp.org>
37590
37591         Add strtoull() declaration to <stdlib.h>.
37592         * lib/stdlib.in.h (strtoull): New declaration.
37593         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
37594         Set HAVE_STRTOULL.
37595         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
37596         HAVE_STRTOULL.
37597         * modules/strtoull (Depends-on): Add stdlib.
37598         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37599         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
37600         HAVE_STRTOULL.
37601
37602 2008-10-19  Bruno Haible  <bruno@clisp.org>
37603
37604         Add strtoll() declaration to <stdlib.h>.
37605         * lib/stdlib.in.h (strtoll): New declaration.
37606         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
37607         Set HAVE_STRTOLL.
37608         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
37609         HAVE_STRTOLL.
37610         * modules/strtoll (Depends-on): Add stdlib.
37611         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37612         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
37613
37614 2008-10-19  Bruno Haible  <bruno@clisp.org>
37615
37616         * modules/bcopy (Depends-on): Add strings.
37617         (Include): Specify <strings.h>.
37618
37619 2008-10-19  Bruno Haible  <bruno@clisp.org>
37620
37621         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
37622
37623 2008-10-19  Bruno Haible  <bruno@clisp.org>
37624
37625         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
37626         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
37627         mingw.
37628
37629 2008-10-19  Bruno Haible  <bruno@clisp.org>
37630
37631         * lib/atanl.c: Don't include isnanl.h.
37632         * lib/cosl.c: Likewise.
37633         * lib/ldexpl.c: Likewise.
37634         * lib/logl.c: Likewise.
37635         * lib/sinl.c: Likewise.
37636         * lib/sqrtl.c: Likewise.
37637         * lib/tanl.c: Likewise.
37638
37639         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
37640         * lib/isnanf.h: Remove file.
37641         * lib/isnand.h: Remove file.
37642         * lib/isnanl.h: Remove file.
37643         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
37644         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
37645         macros.
37646         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
37647         HAVE_ISNANF, don't define it as a C macro.
37648         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
37649         HAVE_ISNAND, don't define it as a C macro.
37650         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
37651         HAVE_ISNANL, don't define it as a C macro.
37652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
37653         HAVE_ISNAN[FDL].
37654         * modules/isnanf (Files): Remove lib/isnanf.h.
37655         (Depends-on): Add math.
37656         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37657         (Include): Specify <math.h> instead of isnanf.h.
37658         * modules/isnand (Files): Remove lib/isnand.h.
37659         (Depends-on): Add math.
37660         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37661         (Include): Specify <math.h> instead of isnand.h.
37662         * modules/isnanl (Files): Remove lib/isnanl.h.
37663         (Depends-on): Add math.
37664         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37665         (Include): Specify <math.h> instead of isnanl.h.
37666         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
37667         HAVE_ISNAN[FDL].
37668         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
37669         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
37670         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
37671         * NEWS: Mention the change.
37672
37673 2008-10-18  Bruno Haible  <bruno@clisp.org>
37674
37675         Add getusershell(), setusershell(), endusershell() declarations to
37676         <unistd.h>.
37677         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
37678         declarations.
37679         * lib/getusershell.c: Include unistd.h.
37680         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
37681         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
37682         HAVE_GETUSERSHELL.
37683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
37684         and HAVE_GETUSERSHELL.
37685         * modules/getusershell (Depends-on): Add unistd, extensions.
37686         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37687         (Include): Specify <unistd.h>.
37688         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
37689         HAVE_GETUSERSHELL.
37690
37691 2008-10-18  Bruno Haible  <bruno@clisp.org>
37692
37693         Add a getloadavg() declaration to <stdlib.h>.
37694         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
37695         getloadavg declaration.
37696         (getloadavg): New declaration.
37697         * lib/getloadavg.c: Include <stdlib.h> first.
37698         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
37699         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
37700         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
37701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
37702         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
37703         * modules/getloadavg (Depends-on): Add stdlib, extensions.
37704         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37705         (Include): Specify <stdlib.h>.
37706         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
37707         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
37708
37709 2008-10-18  Bruno Haible  <bruno@clisp.org>
37710
37711         * lib/dirchownmod.c: Don't include lchmod.h.
37712
37713         Move the lchmod() declaration to <sys/stat.h>.
37714         * lib/lchmod.h: Remove file.
37715         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
37716         (lchmod): New declaration, moved here from lib/lchown.h.
37717         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
37718         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
37719         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
37720         and HAVE_LCHMOD.
37721         * modules/lchmod (Files): Remove lib/lchmod.h.
37722         (Depends-on): Add sys_stat, extensions.
37723         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37724         (Include): Specify <sys/stat.h> instead of lchmod.h.
37725         * modules/sys_stat (Depends-on): Add link-warning.
37726         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
37727         definition of GL_LINK_WARNING.
37728         * NEWS: Mention the change.
37729
37730 2008-10-18  Bruno Haible  <bruno@clisp.org>
37731
37732         * lib/fchdir.c: Don't include dirfd.h.
37733         * lib/fts.c: Likewise.
37734         * lib/getcwd.c: Likewise.
37735         * lib/glob.c: Likewise.
37736
37737         Move the dirfd() declaration to <dirent.h>.
37738         * lib/dirfd.h: Remove file.
37739         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
37740         (dirfd): New declaration.
37741         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
37742         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
37743         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
37744         HAVE_DECL_DIRFD.
37745         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
37746         HAVE_DECL_DIRFD.
37747         * modules/dirfd (Files): Remove lib/dirfd.h.
37748         (Depends-on): Add dirent, extensions.
37749         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
37750         (Include): Specify <dirent.h> instead of dirfd.h.
37751         * modules/dirent (Depends-on): Add link-warning.
37752         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
37753         definition of GL_LINK_WARNING.
37754         * NEWS: Mention the change.
37755
37756 2008-10-18  Bruno Haible  <bruno@clisp.org>
37757
37758         Move the euidaccess() declaration to <unistd.h>.
37759         * lib/euidaccess.h: Remove file.
37760         * lib/unistd.in.h (euidaccess): New declaration.
37761         * lib/euidaccess.c: Don't include euidaccess.h.
37762         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
37763         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
37764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
37765         and HAVE_EUIDACCESS.
37766         * modules/euidaccess (Files): Remove lib/euidaccess.h.
37767         (Depends-on): Add unistd.
37768         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37769         (Include): Specify <unistd.h> instead of euidaccess.h.
37770         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
37771         HAVE_EUIDACCESS.
37772         * NEWS: Mention the change.
37773
37774 2008-10-18  Bruno Haible  <bruno@clisp.org>
37775
37776         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
37777
37778         Move the getdomainname() declaration to <unistd.h>.
37779         * lib/getdomainname.h: Remove file.
37780         * lib/unistd.in.h (getdomainname): New declaration.
37781         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
37782         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
37783         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
37784         HAVE_GETDOMAINNAME.
37785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37786         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
37787         * modules/getdomainname (Files): Remove lib/getdomainname.h.
37788         (Depends-on): Add unistd, extensions.
37789         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37790         (Includes): Specify <unistd.h> instead of getdomainname.h.
37791         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
37792         HAVE_GETDOMAINNAME.
37793         * NEWS: Mention the change.
37794
37795 2008-10-18  Bruno Haible  <bruno@clisp.org>
37796
37797         * modules/dirent: New file.
37798         * m4/dirent_h.m4: New file.
37799         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
37800         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
37801         * modules/fchdir (Files): Remove lib/dirent.in.h.
37802         (Depends-on): Add dirent.
37803         (Makefile.am): Move rules to modules/dirent.
37804         * doc/posix-headers/dirent.texi: Mention the new module.
37805
37806 2008-10-18  Bruno Haible  <bruno@clisp.org>
37807
37808         Avoid -Wunused-parameter warnings in public gnulib header files.
37809         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
37810         macro.
37811         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
37812
37813 2008-10-18  Bruno Haible  <bruno@clisp.org>
37814
37815         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
37816         * doc/glibc-functions/error.texi: Mention the module 'error'.
37817         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
37818         * doc/glibc-functions/getdomainname.texi: Mention the module
37819         'getdomainname'.
37820         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
37821         * doc/glibc-functions/getpagesize.texi: Mention the module
37822         'getpagesize'.
37823         * doc/glibc-functions/getusershell.texi: Mention the module
37824         'getusershell'.
37825         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
37826         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
37827         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
37828         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
37829         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
37830         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
37831         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
37832         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
37833         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
37834         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
37835         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
37836         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
37837         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
37838         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
37839
37840 2008-10-17  Bruno Haible  <bruno@clisp.org>
37841
37842         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
37843         HP-UX and IRIX, use -0.0L.
37844         * tests/test-ceill.c (minus_zero): Likewise.
37845         * tests/test-floorl.c (minus_zero): Likewise.
37846         * tests/test-frexpl.c (minus_zero): Likewise.
37847         * tests/test-isnan.c (minus_zerol): Likewise.
37848         * tests/test-isnanl.h (minus_zero): Likewise.
37849         * tests/test-ldexpl.c (minus_zero): Likewise.
37850         * tests/test-roundl.c (minus_zero): Likewise.
37851         * tests/test-signbit.c (minus_zerol): Likewise.
37852         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
37853         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
37854         * tests/test-truncl.c (minus_zero): Likewise.
37855         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
37856         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
37857         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
37858         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
37859
37860 2008-10-17  Bruno Haible  <bruno@clisp.org>
37861
37862         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
37863         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
37864         that it gets activated only for gcc >= 3.0.
37865         * lib/dirent.in.h: Likewise.
37866         * lib/errno.in.h: Likewise.
37867         * lib/fcntl.in.h: Likewise.
37868         * lib/float.in.h: Likewise.
37869         * lib/iconv.in.h: Likewise.
37870         * lib/inttypes.in.h: Likewise.
37871         * lib/locale.in.h: Likewise.
37872         * lib/math.in.h: Likewise.
37873         * lib/netdb.in.h: Likewise.
37874         * lib/netinet_in.in.h: Likewise.
37875         * lib/search.in.h: Likewise.
37876         * lib/signal.in.h: Likewise.
37877         * lib/spawn.in.h: Likewise.
37878         * lib/stdarg.in.h: Likewise.
37879         * lib/stdint.in.h: Likewise.
37880         * lib/stdio.in.h: Likewise.
37881         * lib/stdlib.in.h: Likewise.
37882         * lib/string.in.h: Likewise.
37883         * lib/strings.in.h: Likewise.
37884         * lib/sys_file.in.h: Likewise.
37885         * lib/sys_ioctl.in.h: Likewise.
37886         * lib/sys_select.in.h: Likewise.
37887         * lib/sys_socket.in.h: Likewise.
37888         * lib/sys_stat.in.h: Likewise.
37889         * lib/sys_time.in.h: Likewise.
37890         * lib/sysexits.in.h: Likewise.
37891         * lib/time.in.h: Likewise.
37892         * lib/unistd.in.h: Likewise.
37893         * lib/wchar.in.h: Likewise.
37894         * lib/wctype.in.h: Likewise.
37895         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37896
37897 2008-10-17  Jim Meyering  <meyering@redhat.com>
37898
37899         ignore-value: don't depend on inline module
37900         * modules/ignore-value (Depends-on): Remove 'inline'.
37901         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
37902         Suggestion from Bruno Haible.
37903
37904 2008-10-17  Bruno Haible  <bruno@clisp.org>
37905
37906         New implementation of condition variables for Win32.
37907         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
37908         (gl_linked_waitqueue_t): New type.
37909         (gl_cond_t): Use it.
37910         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
37911         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
37912         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
37913         (glthread_cond_init_func, glthread_cond_wait_func,
37914         glthread_cond_timedwait_func, glthread_cond_signal_func,
37915         glthread_cond_broadcast_func, glthread_cond_destroy_func):
37916         Reimplemented on the basis of gl_linked_waitqueue_t.
37917         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
37918         gl_waitqueue_t.
37919         (gl_rwlock_t): Update.
37920         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
37921
37922 2008-10-17  Simon Josefsson  <simon@josefsson.org>
37923
37924         * modules/recvfrom (Depends-on): Add dependency on getpeername.
37925         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37926
37927 2008-10-17  Jim Meyering  <meyering@redhat.com>
37928
37929         ignore-value: new module
37930         * modules/ignore-value: New file.
37931         * lib/ignore-value.h: New file.
37932         * MODULES.html.sh (Compiler warning management): New section,
37933         just for this module.  More to come.
37934
37935 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37936
37937         open-safer.c: avoid 'signed and unsigned in conditional...' warning
37938         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
37939         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
37940
37941 2008-10-16  Jim Meyering  <meyering@redhat.com>
37942
37943         openat-die.c: avoid 'no previous prototype' warning
37944         * lib/openat-die.c: Include "openat.h".
37945         Reported by Reuben Thomas <rrt@sc3d.org>.
37946
37947 2008-10-16  Simon Josefsson  <simon@josefsson.org>
37948
37949         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
37950         * lib/netdb.in.h: Fix typo.
37951         Reported by Bruno Haible  <bruno@clisp.org>
37952
37953         * lib/netdb.in.h: Include sys/socket.h for platforms without
37954         netdb.h, to get structures like hostent on MinGW.
37955         * modules/netdb (Depends-on): Add sys_socket.
37956
37957 2008-10-15  Simon Josefsson  <simon@josefsson.org>
37958
37959         * modules/netdb, modules/netdb-tests: New file.
37960         * m4/netdb_h.m4: New file.
37961         * lib/netdb.in.h: Add, currently just an empty file pending
37962         definitions.
37963         * tests/test-netdb.c: New file.
37964         * doc/posix-headers/netdb.texi: Mention that we replace it if
37965         needed.
37966         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37967         netdb.
37968
37969 2008-10-15  Simon Josefsson  <simon@josefsson.org>
37970
37971         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
37972         with code.
37973
37974 2008-10-13  Bruno Haible  <bruno@clisp.org>
37975
37976         * lib/glthread/cond.c (glthread_cond_wait_func,
37977         glthread_cond_timedwait_func): Add a comment.
37978
37979 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37980
37981         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
37982         * tests/test-select.c: Likewise,
37983
37984 2008-10-13  Bruno Haible  <bruno@clisp.org>
37985
37986         * lib/glthread/cond.c (glthread_cond_wait_func,
37987         glthread_cond_timedwait_func): Fix variable name.
37988         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37989
37990 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
37991
37992         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
37993         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
37994         struct sockaddr.sa_len.
37995         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
37996
37997 2008-10-13  Simon Josefsson  <simon@josefsson.org>
37998
37999         * build-aux/pmccabe2html: Add css and css_url parameters.
38000
38001 2008-10-12  Bruno Haible  <bruno@clisp.org>
38002
38003         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
38004         calling aclx_get.
38005         Reported by Rainer Tammer <tammer@tammer.net>.
38006
38007 2008-10-12  Bruno Haible  <bruno@clisp.org>
38008
38009         Use msvcrt aware primitives for creation/termination of Win32 threads.
38010         * lib/glthread/thread.c: Include <process.h>.
38011         (glthread_create_func): Use _beginthreadex instead of CreateThread.
38012         (wrapper_func): Update signature.
38013         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
38014
38015 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38016             Bruno Haible  <bruno@clisp.org>
38017
38018         Provide a Win32 implementation of the 'cond' module.
38019         * lib/glthread/cond.h [USE_WIN32]: New implementation.
38020         * lib/glthread/cond.c (glthread_cond_init_func,
38021         glthread_cond_wait_func, glthread_cond_timedwait_func,
38022         glthread_cond_signal_func, glthread_cond_broadcast_func,
38023         glthread_cond_destroy_func) [USE_WIN32]: New functions.
38024         * modules/cond (Dependencies): Add gettimeofday.
38025
38026 2008-10-11  Bruno Haible  <bruno@clisp.org>
38027
38028         Make sleep work on older versions of mingw.
38029         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
38030         only whether it exists.
38031         * doc/posix-functions/sleep.texi: Mention the problem with older
38032         versions of mingw.
38033
38034 2008-10-11  Bruno Haible  <bruno@clisp.org>
38035
38036         New module 'shutdown'.
38037         * modules/shutdown: New file.
38038         * lib/sys_socket.in.h (shutdown): New declaration.
38039         * lib/winsock.c (shutdown): New function.
38040         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38041         GNULIB_SHUTDOWN.
38042         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
38043         * doc/posix-functions/shutdown.texi: Document the new module.
38044
38045 2008-10-11  Jim Meyering  <meyering@redhat.com>
38046
38047         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
38048
38049 2008-10-11  Bruno Haible  <bruno@clisp.org>
38050
38051         New module 'fclose'.
38052         * modules/fclose: New file.
38053         * lib/stdio.in.h (fclose): New declaration.
38054         * lib/fclose.c: New file.
38055         * m4/fclose.m4: New file.
38056         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
38057         REPLACE_FCLOSE.
38058         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
38059         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
38060         REPLACE_FCLOSE.
38061         * modules/close (Depends-on): fclose.
38062         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
38063
38064 2008-10-11  Bruno Haible  <bruno@clisp.org>
38065
38066         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
38067         set errno and don't call _close.
38068
38069 2008-10-10  Bruno Haible  <bruno@clisp.org>
38070
38071         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
38072         ACL, not afterwards. Fixes test failure on Cygwin.
38073
38074 2008-10-09  Ben Pfaff  <blp@gnu.org>
38075
38076         * build-aux/announce-gen: Fix gnulib version related part of usage
38077         message.  Die with a useful error message if no tarballs are
38078         found.
38079
38080 2008-10-10  Jim Meyering  <meyering@redhat.com>
38081
38082         bootstrap: use git's --depth=N option only if it's supported
38083         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
38084         recognize the --depth option.  Reported by Pádraig Brady.
38085
38086 2008-10-09  Bruno Haible  <bruno@clisp.org>
38087
38088         New module 'ioctl'.
38089         * modules/ioctl: New file.
38090         * lib/sys_socket.in.h (ioctl): Remove declaration.
38091         * lib/winsock.c: Include <sys/ioctl.h>.
38092         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
38093         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
38094         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
38095         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
38096         * doc/posix-functions/ioctl.texi: Mention the new module.
38097
38098 2008-10-09  Bruno Haible  <bruno@clisp.org>
38099
38100         New module 'sys_ioctl'.
38101         * lib/sys_ioctl.in.h: New file.
38102         * m4/sys_ioctl_h.m4: New file.
38103         * modules/sys_ioctl: New file.
38104         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
38105
38106 2008-10-09  Bruno Haible  <bruno@clisp.org>
38107
38108         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
38109         * lib/winsock.c: Include <stdarg.h>.
38110         (rpl_ioctl): Change to second argument 'int' and then varargs.
38111
38112 2008-10-09  Bruno Haible  <bruno@clisp.org>
38113
38114         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
38115         when the sys_socket module is present and the system has <winsock2.h>.
38116
38117 2008-10-09  Bruno Haible  <bruno@clisp.org>
38118
38119         * doc/posix-functions/close.texi: Mention module 'close' instead of
38120         module 'sys_socket'.
38121
38122 2008-10-09  Bruno Haible  <bruno@clisp.org>
38123
38124         * doc/glibc-headers/sys_ioctl.texi: New file.
38125         * doc/gnulib.texi: Include it.
38126
38127 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38128             Bruno Haible  <bruno@clisp.org>
38129
38130         Combine the two replacements of 'close'.
38131         * lib/sys_socket.in.h (close): Define to a reminder to include
38132         <unistd.h>.
38133         (_gl_close_fd_maybe_socket): New declaration.
38134         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
38135         * lib/winsock.c (close): Remove undefinition.
38136         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
38137         needed for the gnulib module 'close'.
38138         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
38139         define to an error symbol or to a warning, if suitable.
38140         * lib/close.c: Include <sys/socket.h>.
38141         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
38142         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
38143         UNISTD_H_HAVE_WINSOCK2_H.
38144         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
38145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38146         UNISTD_H_HAVE_WINSOCK2_H.
38147         * modules/sys_socket (Files): Add m4/unistd_h.m4.
38148         (configure.ac): Set a module indicator.
38149         (Makefile.am): Substitute GNULIB_CLOSE.
38150         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
38151         * modules/poll-tests (Depends-on): Add close.
38152         * modules/select-tests (Depends-on): Likewise.
38153
38154 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38155             Bruno Haible  <bruno@clisp.org>
38156
38157         New module 'close'.
38158         * modules/close: New file.
38159         * lib/unistd.in.h (close): Move declaration out of the
38160         FCHDIR_REPLACEMENT scope.
38161         (_gl_unregister_fd): New declaration.
38162         * lib/close.c: New file.
38163         * lib/fchdir.c (rpl_close): Remove function.
38164         * m4/close.m4: New file.
38165         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38166         close.
38167         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
38168         REPLACE_CLOSE.
38169         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
38170         REPLACE_CLOSE.
38171         * modules/fchdir (Depends-on): Add close.
38172
38173 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38174             Bruno Haible  <bruno@clisp.org>
38175
38176         * lib/fcntl.in.h (open): Simplify conditionals.
38177         (_gl_register_fd): New declaration.
38178         * lib/fchdir.c (rpl_open): Remove function.
38179         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
38180         also.
38181         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
38182         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38183         open.
38184
38185 2008-10-09  Jim Meyering  <meyering@redhat.com>
38186
38187         GNUmakefile: use the more name-space-friendly "_version"
38188         * top/GNUmakefile (_dummy): Update.
38189         (_version): Rename from "version".
38190
38191 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38192             Bruno Haible  <bruno@clisp.org>
38193
38194         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
38195         rpl_close.
38196         (_gl_register_fd): New function, extracted from rpl_open.
38197         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
38198         (rpl_open, rpl_opendir): Use _gl_register_fd.
38199
38200 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38201
38202         Fix organization of 'open' replacement.
38203         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
38204         (gl_FUNC_OPEN): Use it.
38205         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
38206
38207 2008-10-08  Bruno Haible  <bruno@clisp.org>
38208
38209         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
38210
38211 2008-10-08  Simon Josefsson  <simon@josefsson.org>
38212
38213         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
38214         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
38215         listen).
38216
38217 2008-10-08  Eric Blake  <ebb9@byu.net>
38218
38219         GNUmakefile: add 'make version' target
38220         * top/GNUmakefile (_curr-ver): Split version update rules...
38221         (version): ...into a target.
38222
38223 2008-10-07  Bruno Haible  <bruno@clisp.org>
38224
38225         Use a more portable replacement expression for -0.0L.
38226         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
38227         instead of -0.0L. Fix m4 quotation.
38228
38229         * tests/test-signbit.c: Include <float.h>.
38230         (minus_zero): New variable.
38231         (test_signbitl): Use minus_zero instead of -zero.
38232         * modules/signbit-tests (Depends-on): Add float.
38233
38234         * tests/test-ceill.c: Include <float.h>.
38235         (zero): Remove variable.
38236         (minus_zero): New variable.
38237         (main): Use minus_zero instead of -zero.
38238         * modules/ceill-tests (Depends-on): Add float.
38239
38240         * tests/test-floorl.c: Include <float.h>.
38241         (zero): Remove variable.
38242         (minus_zero): New variable.
38243         (main): Use minus_zero instead of -zero.
38244         * modules/floorl-tests (Depends-on): Add float.
38245
38246         * tests/test-roundl.c: Include <float.h>.
38247         (zero): Remove variable.
38248         (minus_zero): New variable.
38249         (main): Use minus_zero instead of -zero.
38250         * modules/roundl-tests (Depends-on): Add float.
38251
38252         * tests/test-truncl.c: Include <float.h>.
38253         (zero): Remove variable.
38254         (minus_zero): New variable.
38255         (main): Use minus_zero instead of -zero.
38256         * modules/truncl-tests (Depends-on): Add float.
38257
38258         * tests/test-frexpl.c (zero): Remove variable.
38259         (minus_zero): New variable.
38260         (main): Use minus_zero instead of -zero.
38261         * modules/frexpl-tests (Depends-on): Add float.
38262
38263         * tests/test-isnan.c (zerol): Remove variable.
38264         (minus_zerol): New variable.
38265         (test_long_double): Use minus_zerol instead of -zerol.
38266         * modules/isnan-tests (Depends-on): Add float.
38267
38268         * tests/test-isnanl.h (zero): Remove variable.
38269         (minus_zero): New variable.
38270         (main): Use minus_zero instead of -zero.
38271         * modules/isnanl-nolibm-tests (Depends-on): Add float.
38272         * modules/isnanl-tests (Depends-on): Add float.
38273
38274         * tests/test-ldexpl.c (zero): Remove variable.
38275         (minus_zero): New variable.
38276         (main): Use minus_zero instead of -zero.
38277         * modules/ldexpl-tests (Depends-on): Add float.
38278
38279         * tests/test-snprintf-posix.h (zerol): Remove variable.
38280         (minus_zerol): New variable.
38281         (test_function): Use minus_zerol instead of -zerol.
38282         * modules/snprintf-posix-tests (Depends-on): Add float.
38283         * modules/vsnprintf-posix-tests (Depends-on): Add float.
38284
38285         * tests/test-sprintf-posix.h (zerol): Remove variable.
38286         (minus_zerol): New variable.
38287         (test_function): Use minus_zerol instead of -zerol.
38288         * modules/sprintf-posix-tests (Depends-on): Add float.
38289         * modules/vsprintf-posix-tests (Depends-on): Add float.
38290
38291         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
38292         (minus_zerol): New variable.
38293         (test_function): Use minus_zerol instead of -zerol.
38294         * modules/vasnprintf-posix-tests (Depends-on): Add float.
38295
38296         * tests/test-vasprintf-posix.c (zerol): Remove variable.
38297         (minus_zerol): New variable.
38298         (test_function): Use minus_zerol instead of -zerol.
38299         * modules/vasprintf-posix-tests (Depends-on): Add float.
38300
38301 2008-10-07  Simon Josefsson  <simon@josefsson.org>
38302
38303         * MODULES.html.sh (Support for building documentation): Mention
38304         pmccabe2html.  Sort entries.
38305
38306         Add pmccabe2html module, from gnupdf.
38307         * build-aux/pmccabe.css: New file.
38308         * build-aux/pmccabe2html: New file.
38309         * m4/pmccabe2html.m4: New file.
38310         * modules/pmccabe2html: New file.
38311
38312 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
38313
38314         flock: new module
38315         * MODULES.html.sh: Add to list of modules.
38316         * lib/flock.c: flock implementation for Windows and Unix systems
38317         which have fcntl.
38318         * doc/glibc-functions/flock.texi: Update documentation.
38319         * lib/sys_file.in.h: <sys/file.h> header file.
38320         * m4/flock.m4: M4 macros.
38321         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
38322         * modules/flock: flock module.
38323         * modules/flock-tests: flock tests module.
38324         * modules/sys_file: sys/file.h module.
38325         * tests/test-flock.c: test suite for flock.
38326
38327 2008-10-06  Jim Meyering  <meyering@redhat.com>
38328
38329         bootstrap: check for LT_INIT more portably still ;-)
38330         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
38331         Spotted by Bruno Haible.
38332
38333 2008-10-06  Eric Blake  <ebb9@byu.net>
38334
38335         test-signbit: avoid tripping Irix cc bug on -0.0L
38336         * tests/test-signbit.c (minus_zerol): Delete, and replace with
38337         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
38338         entire testsuite consistent and avoids an Irix 6.2 bug.
38339
38340 2008-10-05  Bruno Haible  <bruno@clisp.org>
38341             Jim Meyering  <jim@meyering.net>
38342
38343         Add an option for ignoring EPIPE during close_stdout.
38344         * lib/closeout.h: Include <stdbool.h>.
38345         (close_stdout_set_ignore_EPIPE): New declaration.
38346         * lib/closeout.c: Include <stdbool.h>.
38347         (ignore_EPIPE): New variable.
38348         (close_stdout_set_ignore_EPIPE): New function.
38349         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
38350         * lib/close-stream.c (close_stream): Mention the possible EPIPE
38351         failure.
38352         * modules/closeout (Depends-on): Add stdbool.
38353
38354 2008-10-05  Bruno Haible  <bruno@clisp.org>
38355
38356         * modules/accept: New file.
38357         * modules/bind: New file.
38358         * modules/connect: New file.
38359         * modules/getpeername: New file.
38360         * modules/getsockname: New file.
38361         * modules/getsockopt: New file.
38362         * modules/listen: New file.
38363         * modules/recv: New file.
38364         * modules/recvfrom: New file.
38365         * modules/send: New file.
38366         * modules/sendto: New file.
38367         * modules/setsockopt: New file.
38368         * modules/socket: New file.
38369         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
38370         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
38371         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
38372         the particular module is requested. Add a link warning when the
38373         particular module is not requested.
38374         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
38375         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
38376         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
38377         the particular module is requested.
38378         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
38379         gl_SYS_SOCKET_H_DEFAULTS): New macros.
38380         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
38381         * modules/sys_socket (Depends-on): Add link-warning.
38382         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
38383         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
38384         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
38385         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
38386         GL_LINK_WARNING.
38387         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
38388         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
38389         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
38390         * doc/posix-functions/getpeername.texi: Mention the new module
38391         'getpeername'.
38392         * doc/posix-functions/getsockname.texi: Mention the new module
38393         'getsockname'.
38394         * doc/posix-functions/getsockopt.texi: Mention the new module
38395         'getsockopt'.
38396         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
38397         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
38398         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
38399         * doc/posix-functions/send.texi: Mention the new module 'send'.
38400         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
38401         * doc/posix-functions/setsockopt.texi: Mention the new module
38402         'setsockopt'.
38403         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
38404         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
38405         listen, connect, accept.
38406         * modules/select-tests (Depends-on): Likewise.
38407
38408 2008-10-05  Bruno Haible  <bruno@clisp.org>
38409
38410         * lib/winsock.c (strerror): Remove unused #undef.
38411         (rpl_close): Remove unused local variable.
38412
38413         * modules/sys_socket (Depends-on); Add errno.
38414
38415 2008-10-05  Bruno Haible  <bruno@clisp.org>
38416
38417         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
38418         (select): Add a link warning when the 'select' module is not used.
38419         * modules/sys_select (Depends-on): Add link-warning.
38420         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
38421         Suggested by Paolo Bonzini.
38422
38423 2008-10-05  Jim Meyering  <meyering@redhat.com>
38424
38425         bootstrap: check for LT_INIT more portably
38426         * build-aux/bootstrap: Avoid using grep -E, since it's not
38427         portable enough.  Suggestion from Bruno Haible.
38428
38429 2008-10-05  Bruno Haible  <bruno@clisp.org>
38430
38431         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
38432         as being fixed by gnulib.
38433
38434 2008-10-05  Bruno Haible  <bruno@clisp.org>
38435
38436         * modules/select-tests: New file, mostly copied from
38437         modules/sys_select-tests.
38438         * tests/test-select.c: New file, mostly copied from
38439         tests/test-sys_select.c.
38440         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
38441         * modules/sys_select-tests (Depends-on): Remove all dependencies.
38442         (Makefile.am): Remove test_sys_select_LDADD.
38443
38444         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
38445         to an undefined symbol, for an error message.
38446         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
38447         (gl_SYS_SELECT_H_DEFAULTS): New macro.
38448         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
38449         winsock-select.c here.
38450         * modules/sys_select (Files): Remove lib/winsock-select.c.
38451         (Depends-on): Remove alloca.
38452         (Makefile.am): Substitute GNULIB_SELECT.
38453         * modules/select: New file.
38454         * doc/posix-functions/select.texi: Update.
38455
38456 2008-10-05  Bruno Haible  <bruno@clisp.org>
38457
38458         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
38459         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
38460         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
38461         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
38462         getdtablesize.
38463         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
38464         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
38465
38466 2008-10-05  Bruno Haible  <bruno@clisp.org>
38467
38468         * modules/getdtablesize-tests: New file.
38469         * tests/test-getdtablesize.c: New file.
38470
38471         New module 'getdtablesize'.
38472         * lib/unistd.in.h (getdtablesize): New declaration.
38473         * lib/getdtablesize.c: New file.
38474         * m4/getdtablesize.m4: New file.
38475         * modules/getdtablesize: New file.
38476         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38477         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
38478         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
38479         HAVE_GETDTABLESIZE.
38480         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
38481
38482 2008-10-05  Bruno Haible  <bruno@clisp.org>
38483
38484         * modules/sched (Makefile.am): Fix typo.
38485         Reported by Simon Josefsson.
38486
38487 2008-10-05  Jim Meyering  <meyering@redhat.com>
38488
38489         bootstrap: check for LT_INIT, too
38490         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
38491         are deprecated.  Suggestion from Ralf Wildenhues.
38492
38493 2008-10-05  Bruno Haible  <bruno@clisp.org>
38494
38495         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
38496         overriding them by ours.
38497         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
38498
38499 2008-10-05  Jim Meyering  <meyering@redhat.com>
38500
38501         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
38502         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
38503         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
38504
38505 2008-10-04  Bruno Haible  <bruno@clisp.org>
38506
38507         * modules/dup2 (License): Change to LGPLv2+.
38508         * modules/sleep (License): Likewise.
38509         * modules/perror (License): Likewise.
38510         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
38511         Blake.
38512         * modules/signal (License): Likewise.
38513         * modules/sigprocmask (License): Likewise.
38514         * modules/raise (License): Change to LGPLv2+, with approval by Jim
38515         Meyering.
38516
38517 2008-10-04  Bruno Haible  <bruno@clisp.org>
38518
38519         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
38520         Reported by Rainer Tammer <tammer@tammer.net>.
38521
38522 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
38523             Bruno Haible  <bruno@clisp.org>
38524
38525         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
38526         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
38527         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
38528
38529 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
38530
38531         filevercmp: new module
38532         * lib/filevercmp.h: New function filevercmp comparing version strings.
38533         * lib/filevercmp.c: Implementation of filevercmp function.
38534         * modules/filevercmp: Module metadata.
38535         * tests/test-filevercmp.c: Unit test for new module.
38536         * modules/filevercmp-tests: Unit test metadata.
38537         * MODULES.html.sh: Add filevercmp module.
38538
38539 2008-10-03  Bruno Haible  <bruno@clisp.org>
38540
38541         * lib/c-ctype.h: Add comment.
38542         Reported by Jim Meyering.
38543
38544 2008-10-02  Bruno Haible  <bruno@clisp.org>
38545
38546         * modules/posix_spawn-internal (Depends-on): Add 'open'.
38547
38548 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38549
38550         * build-aux/bootstrap: Allow renaming bootstrap, and change the
38551         name of bootstrap.conf accordingly.
38552
38553 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38554
38555         * build-aux/bootstrap: Install git-merge-changelog configuration
38556         items into .gitconfig if needed.
38557
38558 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38559
38560         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
38561         git repository, and initialize/update it accordingly.
38562
38563 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
38564
38565         * modules/fsync-tests: New file.
38566         * tests/test-fsync.c: New file.
38567
38568         New module 'fsync'.
38569         * lib/fsync.c: New file.
38570         * m4/fsync.m4: New file.
38571         * modules/fsync: New file.
38572         * lib/unistd.in.h (fsync): New declaration.
38573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
38574         GNULIB_FSYNC and HAVE_FSYNC.
38575         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
38576         * MODULES.html.sh (posix_functions): Add fsync.
38577         * doc/posix-functions/fsync.texi: Mention the new module.
38578
38579 2008-10-02  Jim Meyering  <meyering@redhat.com>
38580
38581         fts.c: sync with similar code from coreutils' remove.c
38582         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
38583         Guard also with "#if defined __linux__", since for now at least,
38584         this code is Linux-kernel-specific.
38585
38586 2008-10-02  Jim Meyering  <meyering@redhat.com>
38587
38588         fts: bug fixes
38589         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
38590         Include <sys/vfs.h>, not <sys/statfs.h>.
38591
38592         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
38593         Include <sys/vfs.h>, not <sys/statfs.h>.
38594
38595 2008-10-01  Bruno Haible  <bruno@clisp.org>
38596
38597         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
38598         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
38599         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
38600         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
38601         * doc/posix-functions/posix_spawnp.texi: Likewise.
38602         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
38603         whether posix_spawn actually works.
38604         * m4/pipe.m4 (gl_PIPE): Likewise.
38605         * modules/execute (Files): Add m4/posix_spawn.m4.
38606         * modules/pipe (Files): Add m4/posix_spawn.m4.
38607         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
38608
38609 2008-10-01  Jim Meyering  <meyering@redhat.com>
38610
38611         remove trailing spaces
38612         * NEWS: Likewise.
38613         * lib/poll.c (poll): Likewise.
38614         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
38615         * lib/winsock.c (rpl_close): Likewise.
38616         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
38617         * modules/yield: Likewise.
38618         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
38619         * tests/test-sys_select.c (connect_to_socket): Likewise.
38620
38621         fts.c: adjust a new interface to be more generally useful
38622         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
38623         (fts_build): Adjust caller.
38624
38625 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38626
38627         * modules/cond-tests: New file.
38628         * tests/test-cond.c: New file.
38629
38630 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38631             Bruno Haible  <bruno@clisp.org>
38632
38633         * modules/cond (Dependencies): Add errno, time.
38634         * lib/glthread/cond.h: Include <time.h>.
38635         (gl_cond_define, gl_cond_define_initialized): Use the same definition
38636         across platforms.
38637
38638 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38639             Bruno Haible  <bruno@clisp.org>
38640
38641         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
38642
38643 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38644             Bruno Haible  <bruno@clisp.org>
38645
38646         * modules/tls-tests (Depends-on): Add thread, yield.
38647         (configure.ac): Remove all checks.
38648         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
38649         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
38650         gl_thread_self): Remove definitions. Include glthread/thread.h and
38651         glthread/yield.h instead.
38652         (test_tls): Pass an additional NULL argument to gl_thread_join.
38653
38654 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38655             Bruno Haible  <bruno@clisp.org>
38656
38657         * modules/lock-tests (Depends-on): Add thread, yield.
38658         (configure.ac): Remove all checks.
38659         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
38660         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
38661         gl_thread_self): Remove definitions. Include glthread/thread.h and
38662         glthread/yield.h instead.
38663         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
38664         additional NULL argument to gl_thread_join.
38665
38666 2008-09-30  Bruno Haible  <bruno@clisp.org>
38667
38668         Fix the Win32 implementation of the 'thread' module.
38669         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
38670         pointer type.
38671         (gl_thread_self): Invoke gl_thread_self_func.
38672         (gl_thread_self_func): New declaration.
38673         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
38674         (do_init_self_key, init_self_key): New functions.
38675         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
38676         Remove some fields.
38677         (running_threads, running_lock): Remove variables.
38678         (get_current_thread_handle): New function.
38679         (gl_thread_self_func, wrapper_func, glthread_create_func,
38680         glthread_join_func, gl_thread_exit_func): Largely rewritten and
38681         simplified.
38682
38683 2008-09-30  Bruno Haible  <bruno@clisp.org>
38684
38685         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
38686         files.
38687
38688 2008-09-30  Jim Meyering  <meyering@redhat.com>
38689
38690         fts.m4: correct the test for statfs.f_type
38691         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
38692         when checking for statfs.f_type.
38693
38694 2008-09-15  Simon Josefsson  <simon@josefsson.org>
38695
38696         tests: avoid some compiler warnings
38697         * tests/test-memchr.c (main): Pass NULL indirectly.
38698         * tests/test-getdate.c (main): Remove unused variable 'ret'.
38699
38700 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
38701
38702         getdate.y: disallow countable dayshifts like "4 yesterday ago"
38703         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
38704         exactly specified dayshifts.
38705         (dayshift): New rule.
38706         (rel): Add dayshift.
38707         (relative_time_table) [tomorrow, yesterday, today, now]:
38708         Use tDAY_SHIFT in place of tDAY_UNIT.
38709         * tests/test-getdate.c: Add tests for now-disallowed countable
38710         dayshifts, e.g., "4 yesterday ago".
38711
38712 2008-09-29  Bruno Haible  <bruno@clisp.org>
38713
38714         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
38715         * tests/test-posix_spawn1.in.sh: Renamed from
38716         tests/test-posix_spawn.in.sh.
38717         * tests/test-posix_spawn2.c: New file.
38718         * tests/test-posix_spawn2.in.sh: New file.
38719         * modules/posix_spawnp-tests (Files): Update.
38720         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
38721
38722 2008-09-29  Bruno Haible  <bruno@clisp.org>
38723
38724         Propagate effects of putenv/setenv/unsetenv to child processes.
38725         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
38726         * lib/pipe.c (create_pipe): Likewise.
38727
38728 2008-09-29  Bruno Haible  <bruno@clisp.org>
38729
38730         Enable use of shell scripts as executables in mingw.
38731         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
38732         run the program as a shell script.
38733         * lib/pipe.c (create_pipe): Likewise.
38734         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
38735         resulting array.
38736
38737 2008-09-29  Eric Blake  <ebb9@byu.net>
38738
38739         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
38740
38741 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
38742
38743         * doc/posix-functions/accept.texi: Update mingw problems.
38744         * doc/posix-functions/bind.texi: Update mingw problems.
38745         * doc/posix-functions/close.texi: Update mingw problems.
38746         * doc/posix-functions/connect.texi: Update mingw problems.
38747         * doc/posix-functions/getpeername.texi: Update mingw problems.
38748         * doc/posix-functions/getsockname.texi: Update mingw problems.
38749         * doc/posix-functions/getsockopt.texi: Update mingw problems.
38750         * doc/posix-functions/ioctl.texi: Update mingw problems.
38751         * doc/posix-functions/listen.texi: Update mingw problems.
38752         * doc/posix-functions/recv.texi: Update mingw problems.
38753         * doc/posix-functions/recvfrom.texi: Update mingw problems.
38754         * doc/posix-functions/select.texi: Update mingw problems.
38755         * doc/posix-functions/send.texi: Update mingw problems.
38756         * doc/posix-functions/sendto.texi: Update mingw problems.
38757         * doc/posix-functions/setsockopt.texi: Update mingw problems.
38758         * doc/posix-functions/socket.texi: Update mingw problems.
38759
38760 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
38761             Bruno Haible  <bruno@clisp.org>
38762
38763         * lib/sys_select.in.h: Include sys/time.h.
38764         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
38765         * modules/sys_select: Depend on sys_time.
38766         * tests/test-sys_select.c: Test that sys/select.h defines struct
38767         timeval fully.
38768
38769 2008-09-29  Bruno Haible  <bruno@clisp.org>
38770
38771         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
38772         * lib/sys_select.in.h: Likewise.
38773
38774 2008-09-29  Bruno Haible  <bruno@clisp.org>
38775
38776         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
38777
38778 2008-09-29  Bruno Haible  <bruno@clisp.org>
38779
38780         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
38781         Set LIBSOCKET instead of augmenting LIBS.
38782         * modules/sockets (Link): New section.
38783         * modules/sockets-tests (test_sockets_LDADD): New variable.
38784         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
38785         * modules/poll-tests (test_poll_LDADD): New variable.
38786         * NEWS: Document the change.
38787
38788 2008-09-29  Bruno Haible  <bruno@clisp.org>
38789
38790         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
38791         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
38792         ARPA_INET_H directly.
38793         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38794
38795 2008-09-28  Bruno Haible  <bruno@clisp.org>
38796
38797         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
38798         from gl_HEADER_SYS_SOCKET.
38799         (gl_HEADER_SYS_SOCKET): Invoke it.
38800         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38801
38802 2008-09-28  Bruno Haible  <bruno@clisp.org>
38803
38804         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
38805         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
38806         Needed on OSF/1 4.0.
38807
38808 2008-09-28  Bruno Haible  <bruno@clisp.org>
38809
38810         Override open more carefully.
38811         * lib/open.c (orig_open): New function.
38812         (rpl_open): Use orig_open instead of open.
38813         * lib/fcntl.in.h: Add special invocation convention.
38814         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
38815         (gl_FUNC_OPEN): Invoke it.
38816
38817         Override freopen more carefully.
38818         * lib/freopen.c (orig_freopen): New function.
38819         (rpl_freopen): Use orig_freopen instead of freopen.
38820         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
38821         (gl_FUNC_FREOPEN): Invoke it.
38822
38823         Override fopen more carefully.
38824         * lib/fopen.c (orig_fopen): New function.
38825         (rpl_fopen): Use orig_fopen instead of fopen.
38826         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
38827         (gl_FUNC_FOPEN): Invoke it.
38828         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
38829
38830 2008-09-28  Bruno Haible  <bruno@clisp.org>
38831
38832         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
38833         SIGPIPE.
38834
38835 2008-09-28  Bruno Haible  <bruno@clisp.org>
38836
38837         * tests/test-sigaction.c (handler, main): Disable the check whether
38838         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
38839         glibc systems with LinuxThreads.
38840
38841 2008-09-28  Bruno Haible  <bruno@clisp.org>
38842
38843         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
38844
38845         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
38846         with AIX xlc.
38847         * lib/fcntl.in.h (open): Likewise.
38848         Reported by Rainer Tammer <tammer@tammer.net>.
38849
38850 2008-09-28  Bruno Haible  <bruno@clisp.org>
38851
38852         * modules/posix_spawnp-tests: New file.
38853         * tests/test-posix_spawn.c: New file.
38854         * tests/test-posix_spawn.in.sh: New file.
38855
38856         New module 'posix_spawnp'.
38857         * modules/posix_spawnp: New file.
38858         * lib/spawnp.c: New file, from GNU libc with modifications.
38859         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
38860
38861         New module 'posix_spawn'.
38862         * modules/posix_spawn: New file.
38863         * lib/spawn.c: New file, from GNU libc with modifications.
38864         * doc/posix-functions/posix_spawn.texi: Mention the new module.
38865
38866         New module 'posix_spawnattr_destroy'.
38867         * modules/posix_spawnattr_destroy: New file.
38868         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
38869         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
38870         module.
38871
38872         New module 'posix_spawnattr_setsigmask'.
38873         * modules/posix_spawnattr_setsigmask: New file.
38874         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
38875         modifications.
38876         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
38877         new module.
38878
38879         New module 'posix_spawnattr_getsigmask'.
38880         * modules/posix_spawnattr_getsigmask: New file.
38881         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
38882         modifications.
38883         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
38884         new module.
38885
38886         New module 'posix_spawnattr_setsigdefault'.
38887         * modules/posix_spawnattr_setsigdefault: New file.
38888         * lib/spawnattr_setdefault.c: New file, from GNU libc with
38889         modifications.
38890         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
38891         new module.
38892
38893         New module 'posix_spawnattr_getsigdefault'.
38894         * modules/posix_spawnattr_getsigdefault: New file.
38895         * lib/spawnattr_getdefault.c: New file, from GNU libc with
38896         modifications.
38897         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
38898         new module.
38899
38900         New module 'posix_spawnattr_setschedpolicy'.
38901         * modules/posix_spawnattr_setschedpolicy: New file.
38902         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
38903         modifications.
38904         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
38905         new module.
38906
38907         New module 'posix_spawnattr_getschedpolicy'.
38908         * modules/posix_spawnattr_getschedpolicy: New file.
38909         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
38910         modifications.
38911         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
38912         new module.
38913
38914         New module 'posix_spawnattr_setschedparam'.
38915         * modules/posix_spawnattr_setschedparam: New file.
38916         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
38917         modifications.
38918         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
38919         new module.
38920
38921         New module 'posix_spawnattr_getschedparam'.
38922         * modules/posix_spawnattr_getschedparam: New file.
38923         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
38924         modifications.
38925         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
38926         new module.
38927
38928         New module 'posix_spawnattr_setpgroup'.
38929         * modules/posix_spawnattr_setpgroup: New file.
38930         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
38931         modifications.
38932         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
38933         module.
38934
38935         New module 'posix_spawnattr_getpgroup'.
38936         * modules/posix_spawnattr_getpgroup: New file.
38937         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
38938         modifications.
38939         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
38940         module.
38941
38942         New module 'posix_spawnattr_setflags'.
38943         * modules/posix_spawnattr_setflags: New file.
38944         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
38945         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
38946         module.
38947
38948         New module 'posix_spawnattr_getflags'.
38949         * modules/posix_spawnattr_getflags: New file.
38950         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
38951         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
38952         module.
38953
38954         New module 'posix_spawnattr_init'.
38955         * modules/posix_spawnattr_init: New file.
38956         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
38957         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
38958         module.
38959
38960         New module 'posix_spawn_file_actions_destroy'.
38961         * modules/posix_spawn_file_actions_destroy: New file.
38962         * lib/spawn_faction_destroy.c: New file, from GNU libc with
38963         modifications.
38964         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
38965         the new module.
38966
38967         New module 'posix_spawn_file_actions_addopen'.
38968         * modules/posix_spawn_file_actions_addopen: New file.
38969         * lib/spawn_faction_addopen.c: New file, from GNU libc with
38970         modifications.
38971         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
38972         the new module.
38973
38974         New module 'posix_spawn_file_actions_adddup2'.
38975         * modules/posix_spawn_file_actions_adddup2: New file.
38976         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
38977         modifications.
38978         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
38979         the new module.
38980
38981         New module 'posix_spawn_file_actions_addclose'.
38982         * modules/posix_spawn_file_actions_addclose: New file.
38983         * lib/spawn_faction_addclose.c: New file, from GNU libc with
38984         modifications.
38985         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
38986         the new module.
38987
38988         New module 'posix_spawn_file_actions_init'.
38989         * modules/posix_spawn_file_actions_init: New file.
38990         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
38991         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
38992         new module.
38993
38994         New module 'posix_spawn-internal'.
38995         * modules/posix_spawn-internal: New file.
38996         * lib/spawn_int.h: New file, from GNU libc with modifications.
38997         * lib/spawni.c: New file, from GNU libc with modifications.
38998         * m4/posix_spawn.m4: New file.
38999
39000         New module 'spawn'.
39001         * modules/spawn: New file.
39002         * lib/spawn.in.h: New file, from GNU libc with modifications.
39003         * m4/spawn_h.m4: New file.
39004         * doc/posix-headers/spawn.texi: Mention the new module.
39005
39006 2008-09-28  Bruno Haible  <bruno@clisp.org>
39007
39008         * modules/sched-tests: New file.
39009         * tests/test-sched.c: New file.
39010
39011         New module 'sched'.
39012         * modules/sched: New file.
39013         * lib/sched.in.h: New file.
39014         * m4/sched_h.m4: New file.
39015         * doc/posix-headers/sched.texi: Mention the new module.
39016
39017 2008-09-27  Eric Blake  <ebb9@byu.net>
39018
39019         Fix previous patch, and tweak references to $0.
39020         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
39021         (func_version, func_gnulib_dir): Don't call this program
39022         gnulib-tool.
39023         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
39024         with using $0 in function.
39025         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
39026         (func_fatal_error): Reuse the name the user invoked us with.
39027
39028 2008-09-27  Bruno Haible  <bruno@clisp.org>
39029
39030         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
39031         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
39032         (gl_ICONV_H): Not here.
39033         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
39034         instead of assigning ICONV_H directly.
39035
39036         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
39037         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
39038         WCHAR_H directly.
39039
39040 2008-09-27  Bruno Haible  <bruno@clisp.org>
39041
39042         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
39043         * modules/arpa_inet (Depends-on): Add link-warning.
39044         (Makefile.am): Insert the definition of GL_LINK-WARNING.
39045         * modules/unistd (Makefile.am): Likewise.
39046
39047 2008-09-26  Bruno Haible  <bruno@clisp.org>
39048
39049         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
39050         variables.
39051         (func_version): Essentially copied from gnulib-tool.
39052         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
39053         func_readlink): Copied from gnulib-tool.
39054
39055 2008-09-26  Bruno Haible  <bruno@clisp.org>
39056
39057         * gnulib-tool (func_version): Change directory to $gnulib_dir before
39058         invoking git-version-gen.
39059
39060 2008-09-26  Bruno Haible  <bruno@clisp.org>
39061
39062         * posix-modules: Update to directory names changed on 2008-01-19.
39063         Remove commas in output before splitting into words. No more need to
39064         avoid 'ftruncate' since 2007-02-19.
39065
39066 2008-09-26  Bruno Haible  <bruno@clisp.org>
39067
39068         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
39069
39070 2008-09-26  Bruno Haible  <bruno@clisp.org>
39071
39072         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
39073         * modules/fwriteerror (Depends-on): Add errno.
39074
39075 2008-09-26  Bruno Haible  <bruno@clisp.org>
39076
39077         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
39078         * tests/test-vc-list-files-cvs.sh: Likewise.
39079
39080 2008-09-26  Bruno Haible  <bruno@clisp.org>
39081
39082         * doc/posix-headers/sys_resource.texi: Reorder items.
39083
39084 2008-09-26  Jim Meyering  <meyering@redhat.com>
39085
39086         fts: tweak inode comparison function
39087         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
39088         inode numbers, as documented.
39089
39090         fts: sort dirent entries on inode number before traversing
39091         This avoids a quadratic, seek-related performance penalty when
39092         operating on a directory containing many entries (measurable at 10k;
39093         3.5 hours at 2 million entries with a cold cache) on certain types
39094         of file systems, including ext3 and ext4, but not tmpfs.
39095         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
39096         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
39097         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
39098         (fs_handles_readdir_ordered_dirents_efficiently): New function.
39099         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
39100         (fts_build): Set the stat.st_ino member from D_INO.
39101         If it is likely to be useful, sort dirent entries on inode number.
39102
39103         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
39104         and the struct statfs.f_type member.
39105         * modules/fts (Depends-on): Add d-ino.
39106
39107 2008-09-26  Bruno Haible  <bruno@clisp.org>
39108
39109         * modules/sigpipe-die (Depends-on): Add sigpipe.
39110
39111         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
39112         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
39113         and GNULIB_STDIO_H_SIGPIPE are set.
39114         * lib/stdio-write.c: New file.
39115         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
39116         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39117         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39118         REPLACE_STDIO_WRITE_FUNCS.
39119         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
39120         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39121         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39122         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39123         * modules/stdio (Files): Add lib/stdio-write.c.
39124         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
39125         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39126         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39127         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39128         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
39129         REPLACE_FPRINTF_POSIX.
39130         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
39131         REPLACE_PRINTF_POSIX.
39132         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
39133         REPLACE_VFPRINTF_POSIX.
39134         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
39135         REPLACE_VPRINTF_POSIX.
39136         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
39137         SIGPIPE issue.
39138         * doc/posix-functions/fputc.texi: Likewise.
39139         * doc/posix-functions/fputs.texi: Likewise.
39140         * doc/posix-functions/fwrite.texi: Likewise.
39141         * doc/posix-functions/printf.texi: Likewise.
39142         * doc/posix-functions/putc.texi: Likewise.
39143         * doc/posix-functions/putchar.texi: Likewise.
39144         * doc/posix-functions/puts.texi: Likewise.
39145         * doc/posix-functions/vfprintf.texi: Likewise.
39146         * doc/posix-functions/vprintf.texi: Likewise.
39147
39148         * modules/safe-write (Depends-on): Add write.
39149
39150         * modules/sigpipe-tests: New file.
39151         * tests/test-sigpipe.c: New file.
39152         * tests/test-sigpipe.sh: New file.
39153
39154         * modules/write: New file.
39155         * lib/unistd.in.h: Include <sys/types.h>.
39156         (write): New declaration.
39157         * lib/write.c: New file.
39158         * m4/write.m4: New file.
39159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39160         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
39161         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
39162         GNULIB_WRITE, REPLACE_WRITE.
39163         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
39164         and the SIGPIPE issue.
39165
39166         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
39167         (raise): New declaration.
39168         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
39169         (ext_signal): New function.
39170         (rpl_raise): New function.
39171         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
39172         GNULIB_SIGNAL_H_SIGPIPE.
39173         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
39174         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
39175
39176         * modules/sigpipe: New file.
39177         * m4/sigpipe.m4: New file.
39178
39179 2008-09-25  Derek Price  <derek@ximbiot.com>
39180             Bruno Haible  <bruno@clisp.org>
39181
39182         * gnulib-tool (func_import): Report all license incompatibilities, not
39183         just the first one.
39184
39185 2008-09-25  Bruno Haible  <bruno@clisp.org>
39186
39187         * gnulib-tool (func_import): When computing the edits, consider not
39188         only the Makefile.ams that exist but also those that will be generated.
39189
39190 2008-09-25  Simon Josefsson  <simon@josefsson.org>
39191
39192         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
39193         fixes gnulib-tool --test warning about duplicate dependency.
39194
39195 2008-09-25  Bruno Haible  <bruno@clisp.org>
39196
39197         * gnulib-tool: Don't ask the user to perform edits in the generated
39198         Makefile.ams.
39199         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
39200         apply to the Makefile.am being generated.
39201         (func_emit_tests_Makefile_am): Execute edits that apply to the
39202         Makefile.am being generated.
39203         (func_import): Setup list of Makefile.am edits before emitting the
39204         Makefile.ams, not at the end.
39205         (func_create_testdir): Update.
39206         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39207
39208 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39209
39210         * gnulib-tool (func_import): Store the --tests-base option in the
39211         comment in gnulib-cache.m4.
39212
39213 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
39214
39215         * NEWS: Document increased portability that sys_select now provides.
39216
39217         * lib/sys_select.in.h: Install select wrapper.
39218         * lib/sys_socket.in.h: Use more descriptive name when there is no
39219         select wrapper.
39220         * lib/winsock-select.c: New.
39221         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
39222         Require gl_HEADER_SYS_SOCKET.
39223         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
39224         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
39225         * tests/test-sys_select.c: Add functional tests.
39226
39227 2008-09-24  Eric Blake  <ebb9@byu.net>
39228
39229         open, fopen: close fd leak in last patch
39230         * lib/open.c (rpl_open): Close fd before returning error.
39231         * lib/fopen.c (rpl_fopen): Close fd before returning error.
39232         * doc/posix-functions/open.texi (open): Document that Irix also
39233         has the bug.
39234         * doc/posix-functions/fopen.texi (fopen): Likewise.
39235         Reported by Paolo Bonzini.
39236
39237 2008-09-24  Bruno Haible  <bruno@clisp.org>
39238
39239         Ensure that a filename ending in a slash cannot be used to access a
39240         non-directory.
39241         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
39242         to check whether it's really a directory.
39243         * lib/fopen.c: Include fcntl.h, unistd.h.
39244         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
39245         and fdopen().
39246         * modules/fopen (Depends-on): Add unistd.
39247         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
39248         * tests/test-fopen.c (main): Likewise.
39249         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
39250         * doc/posix-functions/fopen.texi: Likewise.
39251         Reported by Eric Blake.
39252
39253 2008-09-23  Eric Blake  <ebb9@byu.net>
39254
39255         c-stack: avoid compiler optimizations when provoking overflow
39256         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
39257         recursion harder to optimize, to ensure a stack overflow occurs.
39258         * tests/test-c-stack.c (recurse): Likewise.
39259         Borrowed from libsigsegv.
39260
39261         c-stack: work around Irix sigaltstack bug
39262         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
39263         whether sigaltstack uses wrong end of stack_t (copied in part from
39264         libsigsegv).
39265         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
39266         Irix bug, without requiring an over-allocation.
39267         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
39268         bug.
39269
39270         fopen: document mingw bug on directories
39271         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
39272         not allowing a stream visiting a directory, even though reading
39273         from such a stream is not portable.
39274
39275 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39276
39277         * lib/poll.c: Rewrite.
39278         * modules/poll: Depend on alloca.
39279
39280 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39281
39282         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
39283         instead define prototypes for a full set of wrappers.  Ensure
39284         that Cygwin does not use the compatibility code, which is only
39285         for MinGW.
39286         * lib/winsock.c: New.
39287         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
39288         * modules/sys_socket: Add lib/winsock.c.
39289
39290         * modules/poll-tests: Add errno and perror.
39291         * tests/test-poll.c: Use ioctl, not ioctlsocket.
39292
39293 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39294
39295         * tests/test-poll.c: Downgrade minimum needed Winsock version.
39296
39297 2008-09-23  Bruno Haible  <bruno@clisp.org>
39298
39299         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
39300         * doc/glibc-functions/*: Likewise.
39301
39302 2008-09-23  Simon Josefsson  <simon@josefsson.org>
39303
39304         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
39305         success.
39306
39307 2008-09-22  Eric Blake  <ebb9@byu.net>
39308             Bruno Haible  <bruno@clisp.org>
39309
39310         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
39311         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
39312         supply %A but mishandle pseudo-NaN.
39313         Reported by Simon Josefsson.
39314
39315 2008-09-21  Bruno Haible  <bruno@clisp.org>
39316
39317         * tests/test-lock.c (main): Tweak skip message.
39318         * tests/test-tls.c (main): Likewise.
39319
39320 2008-09-21  Bruno Haible  <bruno@clisp.org>
39321
39322         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
39323         whether 'struct sigaction' has sa_sigaction here...
39324         (gl_PREREQ_SIG_HANDLER_H): ... not here.
39325         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
39326
39327 2008-09-21  Bruno Haible  <bruno@clisp.org>
39328
39329         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
39330         section.
39331         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
39332         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
39333         the new section.
39334         (Support for obsolete systems lacking POSIX:2001): New section.
39335         (String handling <string.h>): Move strdup to the new section.
39336         Suggested by Simon Josefsson and Paolo Bonzini.
39337
39338 2008-09-21  Bruno Haible  <bruno@clisp.org>
39339
39340         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
39341         exponents in %e and %g results on 'long double'. Needed for mingw's
39342         improved *printf functions.
39343         * tests/test-vasprintf-posix.c (test_function): Likewise.
39344         * tests/test-snprintf-posix.h (test_function): Likewise.
39345         * tests/test-sprintf-posix.h (test_function): Likewise.
39346         Reported by Eric Blake.
39347
39348 2008-09-21  Bruno Haible  <bruno@clisp.org>
39349
39350         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
39351         * tests/test-sprintf-posix.h (test_function): Likewise.
39352
39353 2008-09-21  Bruno Haible  <bruno@clisp.org>
39354
39355         * modules/getpass (Depends-on): Add strdup-posix.
39356
39357         New module 'strdup-posix'.
39358         * modules/strdup-posix: New file.
39359         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
39360         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
39361         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39362         REPLACE_STRDUP.
39363         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
39364         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
39365         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39366         strdup-posix.
39367
39368         * modules/strdup (Depends-on): Remove malloc-posix.
39369
39370 2008-09-20  Bruno Haible  <bruno@clisp.org>
39371
39372         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
39373         Wildenhues.
39374
39375 2008-09-20  Bruno Haible  <bruno@clisp.org>
39376
39377         Ensure that wint_t gets defined on IRIX 5.3.
39378         * lib/wchar.in.h (wint_t): Define if not defined by the system.
39379         * lib/wctype.in.h (wint_t): Likewise.
39380         (__wctype_wint_t): Remove type.
39381         (isw*): Use wint_t instead of __wctype_wint_t.
39382         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
39383         * modules/wchar (Files): Add m4/wint_t.m4.
39384         (Makefile.am): Substitute HAVE_WINT_T.
39385         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
39386         * tests/test-wctype.c: Check that wint_t is defined.
39387         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
39388         * doc/posix-headers/wctype.texi: Likewise.
39389         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39390
39391 2008-09-18  Bruno Haible  <bruno@clisp.org>
39392
39393         * gnulib-tool (func_exit): Update comment.
39394
39395 2008-09-18  Simon Josefsson  <simon@josefsson.org>
39396
39397         * modules/getaddrinfo (Depends-on): Remove strdup, this module
39398         assumes strdup exists and does not depend on strdup to return
39399         ENOMEM on out of memory conditions.
39400
39401 2008-09-18  Bruno Haible  <bruno@clisp.org>
39402
39403         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
39404         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
39405         digits for the exponent.
39406
39407 2008-09-18  Jim Meyering  <meyering@redhat.com>
39408             Bruno Haible  <bruno@clisp.org>
39409
39410         * lib/vasnprintf.c (decimal_point_char): Define also if
39411         NEED_PRINTF_INFINITE_LONG_DOUBLE.
39412
39413 2008-09-16  Bruno Haible  <bruno@clisp.org>
39414         and Eric Blake  <ebb9@byu.net>
39415
39416         vasnprintf: support Irix 5.3
39417         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
39418         that mishandle long double infinity.
39419         Reported by Tom G. Christensen.
39420
39421 2008-09-16  Bruno Haible  <bruno@clisp.org>
39422
39423         * doc/glibc-functions/scandir.texi: Mention the function is missing on
39424         Solaris 9.
39425         * doc/glibc-functions/alphasort.texi: Likewise.
39426         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
39427
39428 2008-09-16  Jim Meyering  <meyering@redhat.com>
39429
39430         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
39431         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
39432         a umask modification leak out of a subshell.  Otherwise, the
39433         opensolaris /bin/sh would be accepted and thus cause unwarranted
39434         failures in the coreutils test suite.
39435
39436 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
39437
39438         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
39439         to succeed.
39440
39441 2008-09-16  Jim Meyering  <meyering@redhat.com>
39442
39443         avoid spurious test failure when library is built without ACL support
39444         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
39445         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
39446         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
39447         * tests/test-copy-acl.sh: Likewise.
39448
39449 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39450
39451         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
39452         based on character occurrence counts.
39453
39454 2008-09-15  Eric Blake  <ebb9@byu.net>
39455
39456         tests: avoid some compiler warnings
39457         * tests/test-memchr.c (main): Pass NULL indirectly.
39458         * tests/test-closein.c (main): Avoid unused variable.
39459
39460 2008-09-15  Bruno Haible  <bruno@clisp.org>
39461
39462         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
39463         are missing on OpenBSD 4.0 individually.
39464         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39465
39466 2008-09-15  Bruno Haible  <bruno@clisp.org>
39467
39468         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
39469         * doc/posix-functions/strerror.texi: Mention also Cygwin.
39470         * doc/posix-functions/perror.texi: Likewise.
39471         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
39472         is missing.
39473         Reported by Eric Blake.
39474
39475         * lib/errno.in.h: Use replacement values >= 2000.
39476         Reported by Eric Blake.
39477
39478 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39479
39480         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
39481         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
39482         limit.
39483         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
39484         compareseq was aborted.
39485
39486 2008-09-14  Bruno Haible  <bruno@clisp.org>
39487
39488         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
39489         yvec_edit_count.
39490         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
39491         (fstrcmp_bounded): Simplify result computation accordingly.
39492
39493 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39494
39495         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
39496         (fstrcmp): Define in terms of fstrcmp_bounded.
39497         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
39498         lower_bound argument.
39499         Return quickly if the result is certainly < lower_bound.
39500         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
39501
39502 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39503
39504         * lib/diffseq.h (EARLY_ABORT): New macro.
39505         (compareseq): Change return type to bool. Return true when EARLY_ABORT
39506         evaluates to true.
39507
39508 2008-09-14  Bruno Haible  <bruno@clisp.org>
39509
39510         * modules/perror-tests: New file.
39511         * tests/test-perror.sh: New file.
39512         * tests/test-perror.c: New file.
39513
39514         New module 'perror'.
39515         * lib/stdio.in.h (perror): New declaration.
39516         * lib/perror.c: New file.
39517         * m4/perror.m4: New file.
39518         * modules/perror: New file.
39519         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
39520         * doc/posix-functions/perror.texi: Mention the perror module.
39521         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
39522         REPLACE_PERROR.
39523         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
39524         REPLACE_PERROR.
39525
39526 2008-09-14  Bruno Haible  <bruno@clisp.org>
39527
39528         * modules/stdio (Makefile.am): Reorder to match the order in
39529         lib/stdio.in.h.
39530         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39531
39532 2008-09-13  Bruno Haible  <bruno@clisp.org>
39533
39534         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
39535
39536 2008-09-13  Bruno Haible  <bruno@clisp.org>
39537
39538         Extend strerror to cover the added errno values.
39539         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
39540         (rpl_strerror): Provide error messages for the added errno values and
39541         for the WSA* values.
39542         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
39543         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
39544         strerror.
39545         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
39546         * modules/strerror (Depends-on): Add errno.
39547         * doc/posix-functions/strerror.texi: Document the change.
39548         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
39549         and EOVERFLOW.
39550
39551 2008-09-13  Bruno Haible  <bruno@clisp.org>
39552
39553         * modules/EOVERFLOW: Remove file.
39554         * m4/eoverflow.m4: Remove file.
39555         * modules/EOVERFLOW-tests: Remove file.
39556         * tests/test-EOVERFLOW.c: Remove file.
39557         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
39558         * modules/ftell (Depends-on): Likewise.
39559         * modules/getdelim (Depends-on): Likewise.
39560         * modules/getugroups (Depends-on): Likewise.
39561         * modules/poll (Depends-on): Likewise.
39562         * modules/snprintf (Depends-on): Likewise.
39563         * modules/sprintf-posix (Depends-on): Likewise.
39564         * modules/vasnprintf (Depends-on): Likewise.
39565         * modules/vasprintf (Depends-on): Likewise.
39566         * modules/vfprintf-posix (Depends-on): Likewise.
39567         * modules/vsnprintf (Depends-on): Likewise.
39568         * modules/vsprintf-posix (Depends-on): Likewise.
39569         * modules/xvasprintf (Depends-on): Likewise.
39570         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39571         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
39572         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
39573         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
39574         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39575         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
39576         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
39577         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
39578         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39579         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
39580         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
39581         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
39582         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39583         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
39584         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
39585         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
39586         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39587         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
39588         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
39589         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
39590         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39591         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
39592         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
39593         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
39594         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
39595         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39596         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
39597         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
39598         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
39599         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
39600         * MODULES.html.sh: Remove EOVERFLOW.
39601         * NEWS: Mention the change.
39602
39603 2008-09-13  Bruno Haible  <bruno@clisp.org>
39604
39605         * modules/errno-tests: New file.
39606         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
39607
39608         * lib/errno.in.h: New file.
39609         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
39610         * modules/errno: New file.
39611         * doc/posix-headers/errno.texi: Update documentation.
39612         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
39613
39614 2008-09-13  Bruno Haible  <bruno@clisp.org>
39615
39616         * tests/test-poll.c: Use #if for native Windows, rather than testing
39617         __MSVCRT__.
39618
39619 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39620             Bruno Haible  <bruno@clisp.org>
39621
39622         * lib/glob.c: Don't include <pwd.h> on native Windows.
39623         (WINDOWS32): New macro.
39624         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
39625
39626 2008-09-13  Bruno Haible  <bruno@clisp.org>
39627
39628         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
39629         (ETIMEDOUT): Remove macro.
39630         (glthread_cond_timedwait_multithreaded): New declaration.
39631         (glthread_cond_timedwait): Use it.
39632         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
39633         (glthread_cond_timedwait_multithreaded): New function.
39634
39635 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39636
39637         * modules/poll-tests: Do not check for io.h.
39638         * tests/test-poll.c: Check for __MSVCRT__ instead.
39639
39640 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39641
39642         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
39643         * modules/poll-tests: Add inet_pton, stdbool, sockets.
39644         * tests/test-poll.c: Use them.  Use _pipe on Windows.
39645
39646 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39647
39648         * modules/poll-tests: New.
39649         * tests/test-poll.c: New.
39650
39651 2008-09-12  Eric Blake  <ebb9@byu.net>
39652
39653         frexp: test for NetBSD failure on -0.0
39654         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
39655         not all, bugs from NetBSD 3.0 have been fixed.
39656         * doc/posix-functions/frexp.texi (frexp): Document bug.
39657         Reported by Thomas Klausner.
39658
39659         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
39660         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
39661         literal -0.0.
39662         Reported by Jonathan C. Patschke <jp@centtech.com>.
39663
39664 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39665
39666         * lib/glthread/cond.h: Use dummy implementation also if
39667         USE_WIN32_THREADS.
39668
39669 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39670
39671         * modules/fnmatch-posix (License): Change to LGPLv2+.
39672         * modules/fnmatch-gnu (License): Likewise.
39673
39674 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39675
39676         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
39677
39678 2008-09-11  Jim Meyering  <meyering@redhat.com>
39679
39680         * users.txt: Add gtk-vnc.
39681
39682 2008-09-08  Simon Josefsson  <simon@josefsson.org>
39683
39684         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
39685         rotate amounts.
39686
39687         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
39688         required for 16-bit and 8-bit rotates.
39689         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
39690         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
39691         UINT8_MAX instead of hard-coded constants.
39692         Suggested by Paul Eggert.
39693
39694 2008-09-07  Bruno Haible  <bruno@clisp.org>
39695
39696         * tests/test-striconveh.c (main): Check behaviour when converting from
39697         UTF-7.
39698
39699         Make striconveh work better with stateful encodings.
39700         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
39701         that iconv does not increment the inptr when returning -1/EINVAL.
39702
39703 2008-09-07  Bruno Haible  <bruno@clisp.org>
39704
39705         * build-aux/config.rpath: Update according to libtool-2.2.6.
39706         * build-aux/config.libpath: Likewise.
39707
39708 2008-09-06  Bruno Haible  <bruno@clisp.org>
39709
39710         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
39711         * lib/freadptr.c (freadptr): Likewise.
39712         * lib/freadseek.c (freadptrinc): Likewise.
39713         Reported by Simon Josefsson.
39714
39715 2008-09-06  Bruno Haible  <bruno@clisp.org>
39716
39717         * modules/freadptr (License): Change to LGPLv2+.
39718         * modules/freadseek (License): Likewise.
39719         Suggested by Eric Blake.
39720
39721         * modules/memchr2 (License): Change to LGPLv2+.
39722         Approved by Eric Blake.
39723
39724 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39725             Bruno Haible  <bruno@clisp.org>
39726
39727         Make gnulib-tool work with native 'sed' on AIX.
39728         * gnulib-tool (sed_noop): New variable.
39729         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
39730         func_add_or_update, func_create_testdir): Use it to initialize sed
39731         script variables.
39732         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39733
39734 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
39735             Bruno Haible  <bruno@clisp.org>
39736
39737         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
39738         also works after #include directives.
39739
39740 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
39741
39742         getdate.y: reject an out-of-range timezone value
39743         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
39744         the range [-24...+24].  When specified with only one or two digits,
39745         * tests/test-getdate.c: Tests for the fix.
39746         * doc/getdate.texi: Document this change.
39747
39748 2008-09-03  Bruno Haible  <bruno@clisp.org>
39749
39750         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
39751
39752 2008-09-02  Simon Josefsson  <simon@josefsson.org>
39753
39754         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
39755         <bruce.korb@gmail.com> with ideas from Ben Pfaff
39756         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
39757         Blake <ebb9@byu.net>.
39758
39759         * tests/test-bitrotate.c: Add more test vectors.
39760
39761 2008-09-02  Eric Blake  <ebb9@byu.net>
39762
39763         vasnprintf-posix: handle large precision via %.*d
39764         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
39765         when handling it ourselves.
39766         * tests/test-vasnprintf-posix.c (test_function): Add test.
39767         * tests/test-snprintf-posix.h (test_function): Likewise.
39768         * tests/test-sprintf-posix.h (test_function): Likewise.
39769         * tests/test-vasprintf-posix.c (test_function): Likewise.
39770         Reported by Alain Guibert.
39771
39772 2008-09-01  Eric Blake  <ebb9@byu.net>
39773
39774         c-stack: make configure-time check more robust
39775         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
39776         successful sigaction call.
39777         Reported by Tom G. Christensen.
39778
39779 2008-09-01  Bruno Haible  <bruno@clisp.org>
39780
39781         New module 'findprog-lgpl'.
39782         * modules/findprog-lgpl: New file.
39783         * lib/findprog-lgpl.c: New file.
39784         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
39785         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
39786         to decide whether to use strdup or xstrdup, concatenated_filename or
39787         xconcatenated_filename.
39788
39789 2008-09-01  Bruno Haible  <bruno@clisp.org>
39790
39791         Split module 'concat-filename' into 'concat-filename' (LGPL) and
39792         'xconcat-filename' (GPL).
39793         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
39794         (License): Change to LGPLv2+.
39795         * modules/xconcat-filename: New file.
39796         * lib/concat-filename.h (concatenated_filename): Change specification.
39797         (xconcatenated_filename): New declaration.
39798         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
39799         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
39800         memory situations.
39801         * lib/xconcat-filename.c: New file.
39802         * NEWS: Mention the change.
39803         * lib/findprog.c: Include concat-filename.h, not filename.h.
39804         (find_in_path): Use xconcatenated_filename instead of
39805         concatenated_filename.
39806         * lib/javacomp.c: Include concat-filename.h, not filename.h.
39807         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
39808         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
39809         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
39810         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
39811         instead of concatenated_filename.
39812         * lib/javaexec.c: Include concat-filename.h, not filename.h.
39813         (execute_java_class): Use xconcatenated_filename instead of
39814         concatenated_filename.
39815         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
39816         * modules/javacomp (Depends-on): Likewise.
39817         * modules/javaexec (Depends-on): Likewise.
39818
39819 2008-09-01  Bruno Haible  <bruno@clisp.org>
39820
39821         Split module 'filename' into 'filename' and 'concat-filename'.
39822         * modules/filename: Keep only lib/filename.h.
39823         (License): Change to LGPLv2+.
39824         * modules/concat-filename: New file, extracted from modules/filename.
39825         * lib/filename.h (concatenated_filename): Remove declaration.
39826         * lib/concat-filename.h: New file, extracted from lib/filename.h.
39827         * lib/concat-filename.c: Include concat-filename.h.
39828         * NEWS: Mention the change.
39829
39830 2008-09-01  Simon Josefsson  <simon@josefsson.org>
39831
39832         * lib/bitrotate.h (rotl8, rotr8): Add.
39833
39834         * modules/bitrotate (configure.ac): Need
39835         AC_REQUIRE([AC_C_INLINE]).
39836         (Description): Mention stdint.h.  Reported by Bruno Haible
39837         <bruno@clisp.org>.
39838
39839         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
39840         Paolo Bonzini <bonzini@gnu.org>.
39841
39842 2008-08-31  Bruno Haible  <bruno@clisp.org>
39843
39844         Assume Solaris specific bi-arch conventions on Solaris systems.
39845         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
39846         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
39847         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
39848         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
39849         like acl_libdirstem.
39850         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
39851         acl_libdirstem.
39852         * NEWS: Mention the change.
39853         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
39854
39855 2008-08-31  Jim Meyering  <meyering@redhat.com>
39856
39857         * lib/strftime.h: Add comments describing the two added arguments.
39858
39859         remove duplicate #include directives
39860         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
39861         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
39862
39863 2008-08-31  Bruno Haible  <bruno@clisp.org>
39864
39865         New module 'sigpipe-die'.
39866         * modules/sigpipe-die: New file.
39867         * lib/sigpipe-die.h: New file.
39868         * lib/sigpipe-die.c: New file.
39869         * MODULES.html.sh (Signal handling): Add sigpipe-die.
39870
39871 2008-08-31  Bruno Haible  <bruno@clisp.org>
39872
39873         Don't override previously installed signal handlers.
39874         * lib/fatal-signal.c (saved_sigactions): New variable.
39875         (uninstall_handlers): Reset the signal to the saved handler, not
39876         to SIG_DFL (except when ignored).
39877         (install_handlers): Save the previous handlers.
39878
39879 2008-08-30  Bruno Haible  <bruno@clisp.org>
39880
39881         * gnulib-tool (func_reset_sigpipe): New function.
39882         (func_get_automake_snippet, func_modules_transitive_closure,
39883         func_import): Invoke it before a join command that reads from stdin,
39884         to avoid "echo: write error: Broken pipe" error messages on stderr.
39885         Reported by Sam Steingold <sds@gnu.org>.
39886
39887 2008-08-30  Bruno Haible  <bruno@clisp.org>
39888
39889         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
39890         Code copied from m4/open.m4.
39891         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
39892         access and the filename ends in a slash. Code copied from lib/open.c.
39893         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
39894         * tests/test-fopen.c (main): Check against bug with trailing slash.
39895
39896 2008-08-29  Bruno Haible  <bruno@clisp.org>
39897
39898         Avoid some "gcc -pedantic" warnings.
39899         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
39900         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
39901         * lib/dirent.in.h: Likewise.
39902         * lib/fcntl.in.h: Likewise.
39903         * lib/float.in.h: Likewise.
39904         * lib/iconv.in.h: Likewise.
39905         * lib/inttypes.in.h: Likewise.
39906         * lib/locale.in.h: Likewise.
39907         * lib/math.in.h: Likewise.
39908         * lib/netinet_in.in.h: Likewise.
39909         * lib/search.in.h: Likewise.
39910         * lib/signal.in.h: Likewise.
39911         * lib/stdarg.in.h: Likewise.
39912         * lib/stdint.in.h: Likewise.
39913         * lib/stdio.in.h: Likewise.
39914         * lib/stdlib.in.h: Likewise.
39915         * lib/string.in.h: Likewise.
39916         * lib/strings.in.h: Likewise.
39917         * lib/sys_select.in.h: Likewise.
39918         * lib/sys_socket.in.h: Likewise.
39919         * lib/sys_stat.in.h: Likewise.
39920         * lib/sys_time.in.h: Likewise.
39921         * lib/sysexits.in.h: Likewise.
39922         * lib/time.in.h: Likewise.
39923         * lib/unistd.in.h: Likewise.
39924         * lib/wchar.in.h: Likewise.
39925         * lib/wctype.in.h: Likewise.
39926         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
39927         * modules/fchdir (Makefile.am): Likewise.
39928         * modules/fcntl (Makefile.am): Likewise.
39929         * modules/float (Makefile.am): Likewise.
39930         * modules/iconv_open (Makefile.am): Likewise.
39931         * modules/inttypes (Makefile.am): Likewise.
39932         * modules/locale (Makefile.am): Likewise.
39933         * modules/math (Makefile.am): Likewise.
39934         * modules/netinet_in (Makefile.am): Likewise.
39935         * modules/search (Makefile.am): Likewise.
39936         * modules/signal (Makefile.am): Likewise.
39937         * modules/stdarg (Makefile.am): Likewise.
39938         * modules/stdint (Makefile.am): Likewise.
39939         * modules/stdio (Makefile.am): Likewise.
39940         * modules/stdlib (Makefile.am): Likewise.
39941         * modules/string (Makefile.am): Likewise.
39942         * modules/strings (Makefile.am): Likewise.
39943         * modules/sys_select (Makefile.am): Likewise.
39944         * modules/sys_socket (Makefile.am): Likewise.
39945         * modules/sys_stat (Makefile.am): Likewise.
39946         * modules/sys_time (Makefile.am): Likewise.
39947         * modules/sysexits (Makefile.am): Likewise.
39948         * modules/time (Makefile.am): Likewise.
39949         * modules/unistd (Makefile.am): Likewise.
39950         * modules/wchar (Makefile.am): Likewise.
39951         * modules/wctype (Makefile.am): Likewise.
39952         Reported by Reuben Thomas <rrt@sc3d.org>.
39953
39954 2008-08-29  Bruno Haible  <bruno@clisp.org>
39955
39956         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
39957         any more.
39958
39959 2008-08-29  Simon Josefsson  <simon@josefsson.org>
39960
39961         * MODULES.html.sh (Misc): Add bitrotate.
39962
39963         * modules/bitrotate: New file.
39964
39965         * lib/bitrotate.h: New file.
39966
39967         * modules/bitrotate-tests: New file.
39968
39969         * tests/test-bitrotate.c: New file.
39970
39971         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
39972         on the bitrotate module.
39973
39974         * lib/arctwo.c: Use new bitrotate module.
39975
39976 2008-08-29  Jim Meyering  <meyering@redhat.com>
39977
39978         bootstrap: merge changes from coreutils
39979         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
39980         of copied files.  Remove a kludge, now that this is fixed.
39981         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
39982         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
39983         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
39984
39985 2008-08-29  Bruno Haible  <bruno@clisp.org>
39986
39987         * MODULES.html.sh: Remove --cvs-urls option.
39988
39989 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
39990
39991         maint.mk: adjust to file name change
39992         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
39993
39994 2008-08-28  Jim Meyering  <meyering@redhat.com>
39995
39996         * modules/getndelim2 (License): Relicense to LGPLv2+.
39997         Approved by Richard Stallman for the version of 1995, and by
39998         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
39999
40000 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
40001
40002         * lib/getdelim.c (flockfile, funlockfile): Make all of them
40003         dummy if one is not available.  Do not touch them if
40004         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
40005         (getc_maybe_unlocked): New.
40006         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
40007
40008 2008-08-26  Eric Blake  <ebb9@byu.net>
40009
40010         doc/INSTALL: resync from autoconf
40011         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
40012         (INSTALL_PRELUDE): Delete; this is done more efficiently by
40013         moving...
40014         * install.texi [!autoconf]: ...here.  Resync from autoconf.
40015         * INSTALL: Regenerate.
40016         * INSTALL.ISO: New file.
40017         * INSTALL.UTF-8: Likewise.
40018
40019 2008-08-26  Jim Meyering  <meyering@redhat.com>
40020
40021         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
40022         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
40023         these definitions conditional, so that they may be overridden, too.
40024
40025 2008-08-26  Bruno Haible  <bruno@clisp.org>
40026
40027         Generate INSTALL file variants with prettier quotes.
40028         * doc/Makefile (INSTALL_PRELUDE): New macro.
40029         (INSTALL): Use it.
40030         (INSTALL.ISO, INSTALL.UTF-8): New rules.
40031
40032 2008-08-26  Bruno Haible  <bruno@clisp.org>
40033
40034         Run makeinfo in an English locale.
40035         * doc/Makefile (MAKEINFO): New variable.
40036
40037 2008-08-26  Bruno Haible  <bruno@clisp.org>
40038
40039         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
40040         Suggested by Eric Blake.
40041
40042 2008-08-25  Bruno Haible  <bruno@clisp.org>
40043
40044         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
40045
40046 2008-08-25  Eric Blake  <ebb9@byu.net>
40047
40048         c-stack: test that stack overflow can be caught
40049         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
40050         that platform allows handling stack overflow; at least OS/2 EMX
40051         has sigaltstack, but crashes before transferring control to
40052         handler on stack overflow.
40053         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
40054         check for HAVE_STACK_OVERFLOW_HANDLING.
40055         Reported by Elbert Pol.
40056
40057 2008-08-25  Bruno Haible  <bruno@clisp.org>
40058
40059         * doc/posix-functions/strftime.texi: Fix description of strftime
40060         module.
40061
40062 2008-08-24  Bruno Haible  <bruno@clisp.org>
40063
40064         * tests/uniwidth/test-uc_width2.c: New file.
40065         * tests/uniwidth/test-uc_width2.sh: New file.
40066         * modules/uniwidth/width-tests (Files): Add the new files.
40067         (TESTS): Add uniwidth/test-uc_width2.sh.
40068         (TESTS_ENVIRONMENT): New variable.
40069         (check_PROGRAMS): Add test-uc_width2.
40070         (test_uc_width2_SOURCES): New variable.
40071
40072         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
40073         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
40074         not 0x00AB.
40075         Reported by Alexander V. Lukyanov <lav@netis.ru>.
40076
40077 2008-08-22  Eric Blake  <ebb9@byu.net>
40078
40079         test-lock, test-tls: mention why a test is skipped
40080         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
40081         skipped.
40082         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
40083
40084         count-one-bits: relax license
40085         * modules/count-one-bits (License): Relicense to LGPLv2+.
40086         Suggested by Ludovic Courtès, approved by Ben Pfaff.
40087
40088 2008-08-22  Andreas Schwab  <schwab@suse.de>
40089
40090         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
40091         Remove spurious space in assignment.
40092
40093 2008-08-21  Simon Josefsson  <simon@josefsson.org>
40094
40095         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
40096         Paul Eggert <eggert@CS.UCLA.EDU>.
40097
40098 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
40099
40100         * modules/gettext: Add m4/threadlib.m4.
40101
40102 2008-08-19  Eric Blake  <ebb9@byu.net>
40103
40104         test-c-stack: fix compilation failure on FreeBSD 5.0
40105         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
40106         headers before <sys/resource.h>.
40107         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
40108         the bug.
40109         Reported by Nelson H. F. Beebe.
40110
40111         strverscmp: migrate from "strverscmp.h" to <string.h>
40112         * modules/string (Makefile.am): Add new hooks.
40113         * modules/strverscmp (Files): Remove strverscmp.h.
40114         (Depends-on): Add string.
40115         (configure.ac): Add indicator.
40116         (Include): Mention new header.
40117         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
40118         defaults.
40119         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
40120         results.
40121         * lib/strverscmp.h: Delete.
40122         * lib/string.in.h (strverscmp): Provide declaration, when needed.
40123         * tests/test-strverscmp.c (includes): Adjust client.
40124         * lib/check-version.c (includes): Likewise.
40125         * NEWS: Document the change.
40126
40127         strverscmp: add unit test
40128         * modules/strverscmp-tests: New file.
40129         * tests/test-strverscmp.c: Likewise.
40130
40131 2008-08-19  Simon Josefsson  <simon@josefsson.org>
40132
40133         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
40134         regarding Windows crypto stuff, from Mono.
40135
40136 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
40137
40138         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
40139         if present, for intel RND.  Return error on failures.
40140
40141 2008-08-18  Ben Pfaff  <blp@gnu.org>
40142
40143         gitlog-to-changelog: give better diagnostic for failed pipe-open
40144         * build-aux/gitlog-to-changelog: Improve error message: suggest
40145         that the version of Git may be too old.
40146
40147 2008-08-18  Simon Josefsson  <simon@josefsson.org>
40148
40149         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
40150         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
40151
40152 2008-08-18  Bruno Haible  <bruno@clisp.org>
40153
40154         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
40155         pthread_in_use().
40156
40157 2008-08-18  Bruno Haible  <bruno@clisp.org>
40158
40159         * lib/glthread/threadlib.c: Include <pthread.h>.
40160
40161 2008-08-18  Bruno Haible  <bruno@clisp.org>
40162
40163         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
40164         glthread_recursive_lock_* macros.
40165         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
40166         Fix syntax error.
40167
40168 2008-08-18  Bruno Haible  <bruno@clisp.org>
40169
40170         * lib/glthread/thread.c: Avoid forcing a context switch right after
40171         thread creation.
40172
40173 2008-08-17  Bruno Haible  <bruno@clisp.org>
40174
40175         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
40176         * lib/glthread/thread.h: Provide Win32 specific implementation.
40177         * modules/thread (Files): Add lib/glthread/thread.c.
40178         (Depends-on): Add lock.
40179         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
40180
40181 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40182
40183         New module 'yield'.
40184         * modules/yield: New file.
40185         * lib/glthread/yield.h: New file.
40186         * m4/yield.m4: New file.
40187         * MODULES.html.sh (Multithreading): Add yield.
40188
40189 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40190
40191         New module 'thread'.
40192         * modules/thread: New file.
40193         * lib/glthread/thread.h: New file.
40194         * m4/thread.m4: New file.
40195         * MODULES.html.sh (Multithreading): Add thread.
40196
40197 2008-08-17  Bruno Haible  <bruno@clisp.org>
40198
40199         * lib/glthread/lock.h: Include <stdlib.h> always.
40200         * lib/glthread/tls.h: Likewise.
40201         * lib/glthread/cond.h: Likewise.
40202
40203 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40204
40205         New module 'cond'.
40206         * modules/cond: New file.
40207         * lib/glthread/cond.h: New file.
40208         * lib/glthread/cond.c: New file.
40209         * m4/cond.m4: New file.
40210         * MODULES.html.sh (Multithreading): Add cond.
40211
40212 2008-08-16  Eric Blake  <ebb9@byu.net>
40213
40214         c-stack: fix regression on Irix 5.3 from 2008-06-21
40215         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
40216         sa_sigaction...
40217         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
40218         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
40219         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
40220         * modules/signal (Makefile.am): Use the value.
40221         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
40222         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
40223         * doc/posix-headers/signal.texi (signal.h): Document this
40224         portability issue.
40225         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
40226         Reported by Tom G. Christensen.
40227
40228 2008-08-17  Bruno Haible  <bruno@clisp.org>
40229
40230         New module 'threadlib'.
40231         * modules/threadlib: New file.
40232         * lib/glthread/threadlib.c: New file, extracted from
40233         lib/glthread/lock.c.
40234         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
40235         functions.
40236         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
40237         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
40238         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
40239         macros.
40240         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
40241         (gl_DISABLE_THREADS): Remove macro.
40242         * modules/lock (Files): Remove build-aux/config.rpath.
40243         (Depends-on): Remove havelib. Add threadlib.
40244         (configure.ac-early): Remove section.
40245         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
40246         * modules/tls (Depends-on): Remove lock. Add threadlib.
40247         (Link): New section, copied from threadlib.
40248         * MODULES.html.sh (Multithreading): Add threadlib.
40249
40250 2008-08-14  Bruno Haible  <bruno@clisp.org>
40251
40252         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
40253         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
40254         glthread_rwlock_unlock, glthread_rwlock_destroy,
40255         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
40256         glthread_recursive_lock_destroy): Define as macros always.
40257         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
40258         glthread_lock_lock.
40259         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
40260         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
40261         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
40262         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
40263         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
40264         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
40265         (glthread_recursive_lock_lock_func): Renamed from
40266         glthread_recursive_lock_lock.
40267         (glthread_recursive_lock_unlock_func): Renamed from
40268         glthread_recursive_lock_unlock.
40269         (glthread_recursive_lock_destroy_func): Renamed from
40270         glthread_recursive_lock_destroy.
40271
40272 2008-08-14  Bruno Haible  <bruno@clisp.org>
40273
40274         * lib/glthread/lock.h: Renamed from lib/lock.h.
40275         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
40276         * lib/glthread/tls.h: Renamed from lib/tls.h.
40277         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
40278         * lib/fstrcmp.c: Update includes.
40279         * lib/strsignal.c: Update includes.
40280         * modules/lock (Files, Makefile.am): Update.
40281         (Include): Change to "glthread/lock.h".
40282         * modules/tls (Files, Makefile.am): Update.
40283         (Include): Change to "glthread/tls.h".
40284         * tests/test-lock.c: Update includes.
40285         * tests/test-tls.c: Update includes.
40286         * NEWS: Mention the renamed header files.
40287
40288 2008-08-11  Jim Meyering  <meyering@redhat.com>
40289
40290         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
40291
40292 2008-08-11  Eric Blake  <ebb9@byu.net>
40293
40294         test-c-stack: avoid C99-ism
40295         * tests/test-c-stack.c (main): Fix whitespace, move declaration
40296         before statement.
40297         Reported by Alain Guibert.
40298
40299 2008-08-10  Jim Meyering  <meyering@redhat.com>
40300
40301         ensure that return value of uinttostr et al are not ignored
40302         * lib/inttostr.h (__GNUC_PREREQ): Define.
40303         (__attribute_warn_unused_result__): Define.
40304         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
40305
40306 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
40307
40308         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
40309         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
40310
40311 2008-08-07  Jim Meyering  <meyering@redhat.com>
40312
40313         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
40314
40315         * modules/mkstemp (License): Relicense under LGPLv2+.
40316         * modules/tempname (License): Likewise.
40317
40318 2008-08-06  Bruno Haible  <bruno@clisp.org>
40319
40320         * lib/poll.c (poll): Further micro-optimization.
40321
40322 2008-08-06  Jim Meyering  <meyering@redhat.com>
40323
40324         inet_pton.c: use locale-independent tolower
40325         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
40326         (inet_pton6): Use c_tolower rather than tolower.
40327         * modules/inet_pton (Depends-on): Add c-ctype.
40328
40329 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
40330
40331         * lib/poll.c (poll): Avoid division when timeout is 0, cache
40332         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
40333
40334 2008-08-06  Jim Meyering  <meyering@redhat.com>
40335
40336         * modules/inet_pton (License): Relicense under LGPLv2+.
40337
40338 2008-08-03  Bruno Haible  <bruno@clisp.org>
40339
40340         Additional non-aborting API for lock and tls.
40341         * lib/lock.h: Include <errno.h>.
40342         (glthread_lock_init): New macro/function.
40343         (gl_lock_init): Define as wrapper around glthread_lock_init.
40344         (glthread_lock_lock): New macro/function.
40345         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
40346         (glthread_lock_unlock): New macro/function.
40347         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
40348         (glthread_lock_destroy): New macro/function.
40349         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
40350         (glthread_rwlock_init): New macro/function.
40351         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
40352         (glthread_rwlock_rdlock): New macro/function.
40353         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
40354         (glthread_rwlock_wrlock): New macro/function.
40355         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
40356         (glthread_rwlock_unlock): New macro/function.
40357         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
40358         (glthread_rwlock_destroy): New macro/function.
40359         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
40360         (glthread_recursive_lock_init): New macro/function.
40361         (gl_recursive_lock_init): Define as wrapper around
40362         glthread_recursive_lock_init.
40363         (glthread_recursive_lock_lock): New macro/function.
40364         (gl_recursive_lock_lock): Define as wrapper around
40365         glthread_recursive_lock_lock.
40366         (glthread_recursive_lock_unlock): New macro/function.
40367         (gl_recursive_lock_unlock): Define as wrapper around
40368         glthread_recursive_lock_unlock.
40369         (glthread_recursive_lock_destroy): New macro/function.
40370         (gl_recursive_lock_destroy): Define as wrapper around
40371         glthread_recursive_lock_destroy.
40372         (glthread_once): New macro/function.
40373         (gl_once): Define as wrapper around glthread_once.
40374         Update function declarations.
40375         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
40376         glthread_rwlock_init. Return error code.
40377         (glthread_rwlock_rdlock_multithreaded): Renamed from
40378         glthread_rwlock_rdlock. Return error code.
40379         (glthread_rwlock_wrlock_multithreaded): Renamed from
40380         glthread_rwlock_wrlock. Return error code.
40381         (glthread_rwlock_unlock_multithreaded): Renamed from
40382         glthread_rwlock_unlock. Return error code.
40383         (glthread_rwlock_destroy_multithreaded): Renamed from
40384         glthread_rwlock_destroy. Return error code.
40385         (glthread_recursive_lock_init_multithreaded): Renamed from
40386         glthread_recursive_lock_init. Return error code.
40387         (glthread_recursive_lock_lock_multithreaded): Renamed from
40388         glthread_recursive_lock_lock. Return error code.
40389         (glthread_recursive_lock_unlock_multithreaded): Renamed from
40390         glthread_recursive_lock_unlock. Return error code.
40391         (glthread_recursive_lock_destroy_multithreaded): Renamed from
40392         glthread_recursive_lock_destroy. Return error code.
40393         (glthread_once_call): Make static.
40394         (glthread_once_multithreaded): Renamed from glthread_once.
40395         * lib/tls.h: Include <errno.h>.
40396         (glthread_tls_key_init): New macro/function.
40397         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
40398         (glthread_tls_set): New macro/function.
40399         (gl_tls_set): Define as wrapper around glthread_tls_set.
40400         (glthread_tls_key_destroy): New macro/function.
40401         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
40402         Update function declarations.
40403         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
40404         glthread_tls_get.
40405         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40406
40407 2008-08-04  Eric Blake  <ebb9@byu.net>
40408
40409         gnumakefile: use space, not TAB, outside of targets
40410         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
40411
40412 2008-08-02  Jim Meyering  <meyering@redhat.com>
40413
40414         getdate.y: avoid locale-dependent date parsing failure
40415         In Turkish locales, getdate would fail to recognize keywords
40416         containing a lowercase "i".  The solution is not to rely on
40417         locale-sensitive case-conversion.
40418         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
40419         (lookup_word): Use c_toupper in place of toupper.
40420         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
40421         Reported by Vefa Bicakci <bicave@superonline.com> in
40422         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
40423         * modules/getdate (Depends-on): Add c-ctype.
40424
40425 2008-08-02  Bruno Haible  <bruno@clisp.org>
40426
40427         * gnulib-tool (func_import): When updating or creating a .gitignore
40428         file, prepend each added line with a slash, and ignore leading slashes
40429         from the existing lines.
40430         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
40431
40432 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40433
40434         Portability fix for GNU make 3.79.1.
40435         * top/GNUmakefile: Avoid 'else COND', which older GNU make
40436         versions do not understand.
40437
40438 2008-08-01  Bruno Haible  <bruno@clisp.org>
40439
40440         Work around bug of HP-UX 10.20 cc with -0.0 literal.
40441         * tests/test-isnanf.h (zero): New variable.
40442         (main): Avoid literal -0.0f.
40443         * tests/test-isnand.h (zero): New variable.
40444         (main): Avoid literal -0.0.
40445         * tests/test-isnanl.h (zero): New variable.
40446         (main): Avoid literal -0.0L.
40447         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
40448         (test_float, test_double, test_long_double): Avoid literals -0.0f,
40449         -0.0, -0.0L.
40450         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
40451         (test_signbitd): Avoid literal -0.0.
40452         (test_signbitl): Avoid literal -0.0L.
40453         * tests/test-ceilf1.c (zero): New variable.
40454         (main): Avoid literal -0.0f.
40455         * tests/test-ceill.c (zero): New variable.
40456         (main): Avoid literal -0.0L.
40457         * tests/test-floorf1.c (zero): New variable.
40458         (main): Avoid literal -0.0f.
40459         * tests/test-floorl.c (zero): New variable.
40460         (main): Avoid literal -0.0L.
40461         * tests/test-roundf1.c (zero): New variable.
40462         (main): Avoid literal -0.0f.
40463         * tests/test-round1.c (zero): New variable.
40464         (main): Avoid literal -0.0.
40465         * tests/test-roundl.c (zero): New variable.
40466         (main): Avoid literal -0.0L.
40467         * tests/test-truncf1.c (zero): New variable.
40468         (main): Avoid literal -0.0f.
40469         * tests/test-trunc1.c (zero): New variable.
40470         (main): Avoid literal -0.0.
40471         * tests/test-truncl.c (zero): New variable.
40472         (main): Avoid literal -0.0L.
40473         * tests/test-frexp.c (zero): New variable.
40474         (main): Avoid literal -0.0.
40475         * tests/test-frexpl.c (zero): New variable.
40476         (main): Avoid literal -0.0L.
40477         * tests/test-ldexpl.c (zero): New variable.
40478         (main): Avoid literal -0.0L.
40479         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40480         (zerod, zerol): New variables.
40481         (test_function): Avoid literals -0.0, -0.0L.
40482         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40483         (zerod, zerol): New variables.
40484         (test_function): Avoid literals -0.0, -0.0L.
40485         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40486         (zerod, zerol): New variables.
40487         (test_function): Avoid literals -0.0, -0.0L.
40488         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40489         (zerod, zerol): New variables.
40490         (test_function): Avoid literals -0.0, -0.0L.
40491         * tests/test-strtod.c (zero): New variable.
40492         (main): Avoid literal -0.0.
40493         Reported by Jonathan C. Patschke <jp@centtech.com>.
40494
40495 2008-07-31  Jim Meyering  <meyering@redhat.com>
40496
40497         sha256.h: correct definition of SHA224_DIGEST_SIZE
40498         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
40499         Reported by Paulie Pena IV <paulie4@gmail.com>.
40500         Define as 224 / 8, rather than as a literal.
40501         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
40502         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
40503         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
40504
40505 2008-07-31  Bruno Haible  <bruno@clisp.org>
40506
40507         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
40508         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
40509         Reported by Jonathan Patschke <jp@centtech.com>.
40510
40511 2008-07-31  Bruno Haible  <bruno@clisp.org>
40512
40513         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
40514         Reported by Paolo Bonzini <bonzini@gnu.org>.
40515
40516 2008-07-30  Eric Blake  <ebb9@byu.net>
40517
40518         test-strtod: allow compilation without -lm
40519         * tests/test-strtod.c (main): Avoid link dependence on fabs.
40520         Reported by Dennis Clarke <blastwave@gmail.com>.
40521
40522 2008-07-28  Jim Meyering  <meyering@redhat.com>
40523
40524         bootstrap: work also when there are no .po files in po/
40525         * build-aux/bootstrap (update_po_files): Complete the change
40526         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
40527
40528 2008-07-27  Jim Meyering  <meyering@redhat.com>
40529
40530         * users.txt: Add zile.
40531
40532 2008-07-26  Ben Pfaff  <blp@gnu.org>
40533
40534         Add missing dependencies on new m4/exponent[fdl].m4 files.
40535         * modules/isnanf-nolibm: Add m4/exponentf.m4.
40536         * modules/isnand-nolibm: Add m4/exponentd.m4.
40537         * modules/isnanl-nolibm: Add m4/exponentl.m4.
40538         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
40539         m4/isnan[fdl].m4, because the macros actually used moved.
40540         Reported by Jim Meyering.
40541
40542 2008-07-14  Ben Pfaff  <blp@gnu.org>
40543
40544         Add isinf module.
40545         * lib/isinf.c: New file.
40546         * lib/math.in.h: Define isinf macro if we have decided to replace
40547         it.
40548         * m4/isinf.m4: New file.
40549         * m4/math_h.m4: Initialize and substitute variables for isinf
40550         module.
40551         * modules/isinf: New file.
40552         * modules/isinf-tests: New file.
40553         * modules/math: Add substitutions for new module.
40554         * tests/test-isinf.c: New file.
40555         * doc/posix-functions/isinf.texi: Mention new module.
40556         * MODULES.html.sh: Mention new module.
40557
40558 2008-07-14  Ben Pfaff  <blp@gnu.org>
40559
40560         Factor out some macros for use by additional modules.
40561         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
40562         exponentf.m4.
40563         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
40564         exponentd.m4.
40565         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
40566         file exponentl.m4.
40567         * m4/exponentf.m4: New file.
40568         * m4/exponentd.m4: New file.
40569         * m4/exponentl.m4: New file.
40570         * modules/isnanf: Use new file m4/exponentf.m4.
40571         * modules/isnand: Use new file m4/exponentd.m4.
40572         * modules/isnanl: Use new file m4/exponentl.m4.
40573
40574 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
40575
40576         mktime.c: normalize tp->tm_isdst value to -1/0/1.
40577         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
40578         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
40579         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
40580
40581         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
40582         readlink on platforms without PATH_MAX.
40583
40584 2008-07-21  Eric Blake  <ebb9@byu.net>
40585
40586         Warn, not fail, on stale version.
40587         * top/GNUmakefile (_curr-ver): Tone down previous patch.
40588
40589         Don't allow installation with stale devel version number.
40590         * top/GNUmakefile (_is-install-target): New macro.
40591         (_curr-ver): Forbid installation with stale version number.
40592
40593 2008-07-20  Bruno Haible  <bruno@clisp.org>
40594
40595         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
40596         TESTS_ENVIRONMENT.
40597         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
40598
40599 2008-07-20  Bruno Haible  <bruno@clisp.org>
40600
40601         * lib/c-stack.h (c_stack_action): Add documentation.
40602         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
40603
40604 2008-07-20  Bruno Haible  <bruno@clisp.org>
40605
40606         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
40607         * modules/readlink (License): Likewise.
40608
40609 2008-07-17  Eric Blake  <ebb9@byu.net>
40610
40611         * modules/c-stack (Link): Fix typo.
40612
40613         Make c-stack use libsigsegv, when available.
40614         * modules/c-stack (Depends-on): Add libsigsegv.
40615         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
40616         needed.
40617         * lib/c-stack.c (SIGSTKSZ): Define fallback.
40618         (segv_handler, overflow_handler, c_stack_action)
40619         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
40620         implementation when libsigsegv is available, but only when using
40621         the library is necessary.
40622         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
40623         comment, explaining why XSI check fails on Linux.
40624         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
40625         * tests/test-c-stack2.sh: Tweak skip message.
40626         * NEWS: Document new link-time requirements.
40627
40628 2008-07-16  Eric Blake  <ebb9@byu.net>
40629
40630         c-stack: Expose false positives when not using libsigsegv.
40631         * modules/c-stack-tests (Files): Expand test.
40632         * tests/test-c-stack.c (main): Add means to conditionally trigger
40633         non-overflow SIGSEGV.
40634         * tests/test-c-stack2.sh: New file.
40635
40636 2008-07-14  Bruno Haible  <bruno@clisp.org>
40637
40638         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
40639         Reported by Eric Blake.
40640
40641 2008-07-14  Sam Steingold  <sds@gnu.org>
40642             Bruno Haible  <bruno@clisp.org>
40643
40644         New module libsigsegv.
40645         * modules/libsigsegv: New file.
40646         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
40647         modifications.
40648         * MODULES.html.sh (Signal handling): New section.
40649
40650 2008-07-14  Bruno Haible  <bruno@clisp.org>
40651
40652         * modules/unictype/ctype-* (Description): Add the word "function".
40653         Improves the resulting doc in MODULES.html.
40654
40655 2008-07-12  Ben Pfaff  <blp@gnu.org>
40656
40657         Add longlong module.
40658         * modules/longlong: New file.
40659
40660 2008-07-12  Bruno Haible  <bruno@clisp.org>
40661
40662         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
40663         to empty.
40664
40665 2008-07-10  Ben Pfaff  <blp@gnu.org>
40666
40667         Add isnan module.
40668         * doc/posix-functions/isnan.texi: Mention new module.
40669         * lib/math.in.h: Define isnan macro if we have decided to replace
40670         it.
40671         * m4/isnan.m4: New file.
40672         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
40673         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
40674         also.
40675         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
40676         redundancy.
40677         * m4/math_h.m4: Initialize and substitute variables for isnan
40678         module.
40679         * modules/isnan: New file.
40680         * modules/isnan-tests: New file.
40681         * modules/math: Add substitutions for new module.
40682         * tests/test-isnan.c: New file.
40683         * MODULES.html.sh: Mention new module.
40684
40685 2008-07-10  Ben Pfaff  <blp@gnu.org>
40686
40687         Add isnanf module.
40688         * lib/isnanf.m4: New file.
40689         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
40690         (gl_HAVE_ISNANF_IN_LIBM): New macro.
40691         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
40692         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
40693         * modules/isnanf: New file.
40694         * modules/isnanf-tests: New file.
40695         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
40696         files.
40697         * tests/test-isnanf-nolibm.c: factored most of its contents into
40698         new file tests/test-isnanf.h.
40699         * tests/test-isnanf.h: New file.
40700         * tests/test-isnanf.c: New file.
40701         * MODULES.html.sh: Mention new module.
40702         * doc/glibc-functions/isnanf.texi: Mention new module.
40703
40704 2008-07-10  Ben Pfaff  <blp@gnu.org>
40705
40706         Add isnand module.
40707         * lib/isnand.h: New file.
40708         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
40709         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
40710         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
40711         functionality also.
40712         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
40713         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
40714         (gl_HAVE_ISNAND_IN_LIBM): New macro.
40715         * modules/isnand: New file.
40716         * modules/isnand-tests: New file.
40717         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
40718         files.
40719         * tests/test-isnand-nolibm.c: factored most of its contents into
40720         new file tests/test-isnand.h.
40721         * tests/test-isnand.h: New file.
40722         * tests/test-isnand.c: New file.
40723         * MODULES.html.sh: Mention new module.
40724
40725 2008-07-10  Ben Pfaff  <blp@gnu.org>
40726
40727         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
40728         * lib/isnand.h: Rename lib/isnand-nolibm.h.
40729         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
40730         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
40731         * modules/isnanf-nolibm: Update references to renamed files.
40732         * modules/isnand-nolibm: Likewise.
40733         * modules/isnanf-nolibm-tests: Likewise.
40734         * modules/isnand-nolibm-tests: Likewise.
40735         * lib/frexp.c: Likewise.
40736         * lib/isfinite.c: Likewise.
40737         * lib/signbitd.c: Likewise.
40738         * lib/signbitf.c: Likewise.
40739         * lib/vasnprintf.c: Likewise.
40740         * tests/test-ceilf1.c: Likewise.
40741         * tests/test-ceilf2.c: Likewise.
40742         * tests/test-floorf1.c: Likewise.
40743         * tests/test-floorf2.c: Likewise.
40744         * tests/test-frexp.c: Likewise.
40745         * tests/test-round1.c: Likewise.
40746         * tests/test-round2.c: Likewise.
40747         * tests/test-roundf1.c: Likewise.
40748         * tests/test-strtod.c: Likewise.
40749         * tests/test-trunc1.c: Likewise.
40750         * tests/test-trunc2.c: Likewise.
40751         * tests/test-truncf1.c: Likewise.
40752         * tests/test-truncf2.c: Likewise.
40753         * NEWS: Mention the renamed header files.
40754
40755 2008-07-11  Jim Meyering  <meyering@redhat.com>
40756
40757         vc-list-files: make the last-resort awk code more portable
40758         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
40759         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
40760         does not support it.
40761
40762 2008-07-10  Eric Blake  <ebb9@byu.net>
40763
40764         Work with tar's bootstrap.
40765         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
40766         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
40767         an m4 comment.
40768
40769 2008-07-09  Jim Meyering  <meyering@redhat.com>
40770
40771         posix-shell.m4: fix typo that made this test malfunction
40772         * m4/posix-shell.m4: Remove capitalization in variable name.
40773
40774 2008-07-08  Bruno Haible  <bruno@clisp.org>
40775
40776         * m4/onceonly.m4: Update comments.
40777         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40778
40779 2008-07-04  Jim Meyering  <meyering@redhat.com>
40780
40781         * users.txt: Add vc-dwim.
40782         (bison, coreutils): Use the gitweb URL.
40783
40784 2008-07-03  Jim Meyering  <meyering@redhat.com>
40785
40786         * users.txt: Add libffcall.  From Sam Steingold.
40787
40788 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
40789
40790         getdate.y: do not ignore TZ with relative day, month or year offset
40791         * lib/getdate.y (get_date): Move the tz-handling block to follow the
40792         relative-date-handling, since otherwise, the latter would clobber the
40793         sole output (an updated Start value) of the tz-handling block.
40794         * tests/test-getdate.c: Tests for the fix
40795
40796 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40797
40798         Recognize 'foo_LIBRARIES += libgnu.a'.
40799         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
40800         makefile snippet has already specified an installation location,
40801         also using '+='.
40802
40803 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
40804
40805         getdate.y: factor out common actions
40806         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
40807         Use them in place of open-coded actions.
40808
40809 2008-07-01  Simon Josefsson  <simon@josefsson.org>
40810
40811         Add self-test for getdate module.
40812         * modules/getdate-tests: New file.
40813         * tests/test-getdate.c: New file.
40814
40815 2008-06-29  Bruno Haible  <bruno@clisp.org>
40816
40817         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
40818         .gitignore.
40819         Reported by Sylvain Beucler <beuc@beuc.net>.
40820
40821 2008-06-29  Bruno Haible  <bruno@clisp.org>
40822
40823         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
40824         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
40825
40826 2008-06-29  Bruno Haible  <bruno@clisp.org>
40827
40828         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
40829         EXTRA_DIST.
40830         Reported by Sylvain Beucler <beuc@beuc.net>.
40831
40832 2008-06-26  Jim Meyering  <meyering@redhat.com>
40833
40834         make several modules depend on the "open" module
40835         This provides slightly increased consistency when opening-for-write
40836         the name of a non-directory spelled with a trailing slash.
40837         * modules/chdir-safer: Likewise.
40838         * modules/chown: Likewise.
40839         * modules/clean-temp: Likewise.
40840         * modules/copy-file: Likewise.
40841         * modules/fchdir: Likewise.
40842         * modules/fcntl-safer: Likewise.
40843         * modules/pipe: Likewise.
40844         * modules/utime: Likewise.
40845         Prompted by Eric Blake and Bruno Haible.
40846
40847 2008-06-24  Andreas Schwab  <schwab@suse.de>
40848
40849         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
40850         literals can be used as initializers for global variables.
40851
40852 2008-06-23  Eric Blake  <ebb9@byu.net>
40853
40854         Make gnulib-cache.m4 easier to diff.
40855         * gnulib-tool (func_import): Allow newlines when reading cached
40856         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
40857
40858 2008-06-23  Bruno Haible  <bruno@clisp.org>
40859
40860         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
40861         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
40862         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
40863         m4/signalblocking.m4.
40864         (gl_PREREQ_SIGACTION): Don't invoke it.
40865         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
40866         gl_PREREQ_SIG_HANDLER_H.
40867         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40868         Don't check for sigaction here.
40869
40870 2008-06-23  Bruno Haible  <bruno@clisp.org>
40871
40872         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
40873         (install_handlers): Don't set the SA_RESETHAND flag.
40874
40875 2008-06-23  Bruno Haible  <bruno@clisp.org>
40876
40877         * m4/sigaction.m4: Comment fixes.
40878         * lib/signal.in.h: Likewise.
40879
40880 2008-06-23  Eric Blake  <ebb9@byu.net>
40881
40882         Fix typo.
40883         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
40884
40885         Avoid SA_ namespace.
40886         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
40887         Reported by Ralf Wildenhues.
40888
40889         Avoid test failure due to SA_RESTORER.
40890         * tests/test-sigaction.c (SA_MASK): New macro.
40891         (main): Avoid failing due to extension flags being set.
40892         Reported by Jim Meyering.
40893
40894         Revert use of sig-handler.h in sigprocmask.c.
40895         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
40896         it requires the existence of struct sigaction.
40897         * lib/sigprocmask.c (handler_t): Restore typedef.
40898         (rpl_signal, old_handlers): Use local type.
40899
40900 2008-06-22  Bruno Haible  <bruno@clisp.org>
40901
40902         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
40903         conditionally.
40904         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40905
40906 2008-06-22  Bruno Haible  <bruno@clisp.org>
40907
40908         * doc/posix-functions/siginterrupt.texi: Move note.
40909
40910         * lib/signal.in.h (SA_RESTART): New macro.
40911         * lib/sigaction.c: Update comment.
40912
40913         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
40914
40915         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
40916         (gl_PREREQ_SIGPROCMASK): Invoke it.
40917         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
40918
40919         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
40920
40921         * lib/sigprocmask.c: Update a comment.
40922
40923 2008-06-21  Eric Blake  <ebb9@byu.net>
40924
40925         Use sigaction module rather than signal().
40926         * modules/c-stack (Depends-on): Add sigaction.
40927         * modules/fatal-signal (Depends-on): Likewise.
40928         * modules/nanosleep (Depends-on): Likewise.
40929         * modules/sigprocmask (Files): Add sig-handler.h.
40930         * modules/sigaction (Files): Likewise.
40931         * lib/sig-handler.h (get_handler): New file, suggested by Paul
40932         Eggert.
40933         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
40934         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
40935         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
40936         (init_fatal_signals): Likewise.
40937         * lib/nanosleep.c (rpl_nanosleep): Likewise.
40938         (siginterrupt): Delete fallback.
40939         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
40940         instead.
40941         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
40942         siginterrupt.
40943
40944         New module sigaction, for mingw.
40945         * modules/sigaction: New module...
40946         * modules/sigaction-tests: ...and its test.
40947         * m4/sigaction.m4: New file.
40948         * lib/sigaction.c: Likewise.
40949         * tests/test-sigaction.c: Likewise.
40950         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
40951         * modules/signal (Makefile.am): Likewise.
40952         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
40953         needed.
40954         * doc/posix-headers/signal.texi (signal.h): Mention provided
40955         types.
40956         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
40957         that sigaction is preferable.
40958         * doc/posix-functions/sigaction.texi (sigaction): Mention new
40959         module.
40960         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40961         sigaction.
40962
40963         Improve robustness of sigprocmask by overriding signal.
40964         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
40965         is in use.
40966         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
40967         (SIGKILL, SIGSTOP): Provide fallbacks.
40968         (rpl_signal): Implement.
40969         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
40970         signal can be called inside handlers.
40971
40972         Fix nanosleep module on mingw.
40973         * modules/nanosleep (Depends-on): Add sys_select.
40974         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
40975
40976         Fix licensing of sigprocmask.
40977         * modules/raise (License): Relicense as LGPL.
40978
40979 2008-06-21  Bruno Haible  <bruno@clisp.org>
40980
40981         * lib/propername.c (proper_name_utf8): Don't use the transliterated
40982         result if it contains question marks.
40983         Reported by Michael Geng <linux@michaelgeng.de>.
40984
40985 2008-06-19  Bruno Haible  <bruno@clisp.org>
40986
40987         Fix CVS-ism.
40988         * doc/gnulib.texi: Include updated-stamp.texi.
40989         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
40990         (updated-stamp.texi): New rule.
40991         (gnulib.info): Depend on it.
40992         * doc/.gitignore: Add updated-stamp.texi.
40993         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
40994
40995 2008-06-19  Bruno Haible  <bruno@clisp.org>
40996
40997         * doc/Makefile (gnulib.info): Update and simplify dependencies.
40998         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40999
41000 2008-06-19  Eric Blake  <ebb9@byu.net>
41001
41002         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
41003         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
41004         Reported by Stepan Kasal.
41005
41006 2008-06-18  Bruno Haible  <bruno@clisp.org>
41007
41008         * lib/fatal-signal.c (init_fatal_signals): Add comment.
41009         Reported by Eric Blake.
41010
41011 2008-06-18  Eric Blake  <ebb9@byu.net>
41012
41013         Work around cygwin 1.5.25 strsignal bug.
41014         * tests/test-strsignal.c: Allow for const char *.
41015         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
41016
41017 2008-06-18  Simon Josefsson  <simon@josefsson.org>
41018
41019         * users.txt: Update URL to article and add author/date
41020         information.
41021
41022 2008-06-17  Bruno Haible  <bruno@clisp.org>
41023
41024         New macro gl_DISABLE_THREADS.
41025         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
41026         if the user did not pass --enable-threads or --disable-threads option.
41027         (gl_DISABLE_THREADS): New macro.
41028         Reported by Eric Blake <ebb9@byu.net>.
41029
41030 2008-06-17  Bruno Haible  <bruno@clisp.org>
41031
41032         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
41033         when the macro ignores it.
41034         Based on a patch by Eric Blake <ebb9@byu.net>.
41035
41036 2008-06-17  Bruno Haible  <bruno@clisp.org>
41037
41038         * modules/tls (License): Change to LGPLv2+.
41039         Reported by Eric Blake.
41040
41041 2008-06-17  Eric Blake  <ebb9@byu.net>
41042
41043         Simplify c-stack prerequisites.
41044         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
41045         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
41046         no longer requires <ucontext.h> to exist.  Optimize setrlimit
41047         check.
41048         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
41049         <sys/resource.h>.
41050
41051         Move c-stack test into testsuite.
41052         * modules/c-stack-tests: New file.
41053         * lib/c-stack.c [DEBUG]: Move test program...
41054         * tests/test-c-stack.c: ...into this new file.  Skip rather than
41055         fail test if sigaltstack is lacking.
41056         * tests/test-c-stack.sh: New driver file.
41057
41058 2008-06-16  Eric Blake  <ebb9@byu.net>
41059
41060         Use raise module consistently.
41061         * modules/fatal-signal (Depends-on): Add raise.
41062         * modules/sigprocmask (Depends-on): Likewise.
41063         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
41064         * lib/sigprocmask.c (sigprocmask): Likewise.
41065         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41066         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
41067
41068         Fix compliance bug in sigpending.
41069         * lib/sigprocmask.c (sigpending): Return pending array via
41070         parameter, not return value.
41071
41072 2008-06-14  Eric Blake  <ebb9@byu.net>
41073
41074         Improve obstack-printf test code.
41075         * tests/test-obstack-printf.c (test_function): Fix comment, and
41076         simplify usage of obstack_* in macros.  Add a test for coverage.
41077         Reported by Bruno Haible.
41078
41079 2008-06-14  Bruno Haible  <bruno@clisp.org>
41080
41081         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
41082         array size as a constant, not as a const variable.
41083         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
41084         AC_USE_SYSTEM_EXTENSIONS.
41085         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41086         Test whether the obstack_printf function actually exists.
41087         * modules/obstack-printf (Depends-on): Add extensions.
41088         (Include): Remove obstack.h.
41089         * modules/obstack-printf-posix (Depends-on): Add extensions.
41090         (Include): Remove obstack.h.
41091
41092 2008-06-13  Eric Blake  <ebb9@byu.net>
41093
41094         Add obstack-printf and obstack-printf-posix modules.
41095         * modules/obstack-printf: New file.
41096         * modules/obstack-printf-posix: Likewise.
41097         * MODULES.html.sh (Misc): Mention them.
41098         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41099         Likewise.
41100         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41101         Likewise.
41102         * modules/stdio (Makefile.am): Accomodate new modules.
41103         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41104         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
41105         Declare.
41106         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
41107         functions.
41108         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
41109         (gl_REPLACE_OBSTACK_PRINTF): New macros
41110         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
41111         * tests/test-obstack-printf.c: New file.
41112         * modules/obstack-printf-tests: Likewise.
41113         * modules/obstack-printf-posix-tests: Likewise.
41114
41115 2008-06-11  Bruno Haible  <bruno@clisp.org>
41116
41117         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
41118         * lib/open.c: Include errno.h.
41119         (open): Fail when attempting to write to a file that has a trailing
41120         slash.
41121         * tests/test-open.c (main): Test against trailing slash bug.
41122         * doc/posix-functions/open.texi: Mention the trailing slash bug.
41123
41124 2008-06-10  Bruno Haible  <bruno@clisp.org>
41125
41126         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
41127         for $? to work inside the trap command, with various /bin/sh-s.
41128         * tests/test-vc-list-files-cvs.sh: Likewise.
41129
41130 2008-06-10  Bruno Haible  <bruno@clisp.org>
41131
41132         * lib/acl-internal.h: Don't include gettext.h here.
41133         * lib/set-mode-acl.c: Include gettext.h here.
41134         * lib/copy-acl.c: Likewise.
41135
41136 2008-06-10  Bruno Haible  <bruno@clisp.org>
41137
41138         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
41139         * lib/wait-process.c (wait_subprocess): Likewise.
41140         * lib/execute.h (execute): Add termsigp argument.
41141         * lib/execute.c (execute): Likewise.
41142         * lib/csharpcomp.c (compile_csharp_using_pnet,
41143         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
41144         * lib/csharpexec.c (execute_csharp_using_pnet,
41145         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
41146         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
41147         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
41148         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
41149         is_jikes_present): Update.
41150         * lib/javaexec.c (execute_java_class): Update.
41151         * lib/javaversion.c (execute_and_read_line): Update.
41152         * NEWS: Document the changes.
41153         Reported by Eric Blake.
41154
41155 2008-06-10  Eric Blake  <ebb9@byu.net>
41156
41157         Add missing include.
41158         * tests/test-strstr.c (includes): Add <signal.h>.
41159         * tests/test-strcasestr.c (includes): Likewise.
41160         * tests/test-memmem.c (includes): Likewise.
41161
41162 2008-06-10  Bruno Haible  <bruno@clisp.org>
41163
41164         * lib/wait-process.c (wait_subprocess): Add an assertion.
41165
41166 2008-06-10  Bruno Haible  <bruno@clisp.org>
41167
41168         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
41169
41170 2008-06-10  Bruno Haible  <bruno@clisp.org>
41171
41172         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
41173         using alarm().
41174         * tests/test-strcasestr.c (main): Likewise.
41175         * tests/test-strstr.c (main): Likewise.
41176
41177 2008-06-09  Bruno Haible  <bruno@clisp.org>
41178
41179         Work around the Solaris 10 ACE ACLs ABI change.
41180         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
41181         declare if ACL_NO_TRIVIAL is present.
41182         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
41183         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
41184         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
41185         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
41186         define if ACL_NO_TRIVIAL is present.
41187         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
41188         and use the current ABI.
41189         (file_has_acl): Use same #if condition as elsewhere.
41190         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
41191         in use, and use the current ABI.
41192         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
41193         Reported by Jim Meyering.
41194
41195 2008-06-09  Eric Blake  <ebb9@byu.net>
41196
41197         Work around environments that (stupidly) ignore SIGALRM.
41198         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
41199         before using alarm().
41200         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41201         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41202         Reported by Ian Beckwith <ianb@erislabs.net>.
41203
41204         Produce autobuild blurb earlier in log.
41205         * modules/autobuild (configure.ac-early): Move AB_INIT here.
41206
41207 2008-06-09  Jim Meyering  <meyering@redhat.com>
41208         and OndÅ™ej Vašík  <ovasik@redhat.com>
41209
41210         utimens.c: correct kernel bug work-around
41211         OndÅ™ej Vašík found that the invalid return value of 280 indicates
41212         failure, not success, and the kernel bug we're trying to work
41213         around affects not just the utimensat call, but also the fallback
41214         futimens call.
41215         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
41216         not success.
41217         [HAVE_FUTIMENS]: Use the same work-around, here.
41218
41219 2008-06-09  Jim Meyering  <meyering@redhat.com>
41220
41221         add more guards around definition of ACE_-related code
41222         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
41223         ALLOW and ACE_OWNER are also defined.
41224
41225 2008-06-08  Bruno Haible  <bruno@clisp.org>
41226
41227         * lib/acl-internal.h: Add me as co-author.
41228         * lib/file-has-acl.c: Likewise.
41229         * lib/set-mode-acl.c: Likewise.
41230         * lib/copy-acl.c: Likewise.
41231
41232 2008-06-08  Bruno Haible  <bruno@clisp.org>
41233
41234         Add support for AIX ACLs.
41235         * lib/acl-internal.h (acl_nontrivial): New declaration.
41236         * lib/file-has-acl.c (acl_nontrivial): New function.
41237         (file_has_acl): Add implementation using AIX 4 ACL API.
41238         * lib/set-mode-acl.c (qset_acl): Likewise.
41239         * lib/copy-acl.c (qcopy_acl): Likewise.
41240
41241 2008-06-08  Bruno Haible  <bruno@clisp.org>
41242
41243         Add support for HP-UX ACLs.
41244         * lib/acl-internal.h (acl_nontrivial): New declaration.
41245         * lib/file-has-acl.c (acl_nontrivial): New function.
41246         (file_has_acl): Add implementation using HP-UX 11 ACL API.
41247         * lib/set-mode-acl.c (qset_acl): Likewise.
41248         * lib/copy-acl.c (qcopy_acl): Likewise.
41249
41250 2008-06-08  Bruno Haible  <bruno@clisp.org>
41251
41252         Add support for Cygwin ACLs.
41253         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
41254         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
41255         the chmod_or_fchmod call.
41256         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
41257
41258 2008-06-08  Bruno Haible  <bruno@clisp.org>
41259
41260         Fix bug with setuid modes in Solaris 10+ code.
41261         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
41262         succeeded, when the mode contains some special bits.
41263
41264 2008-06-08  Bruno Haible  <bruno@clisp.org>
41265
41266         Add support for Solaris 7..10 ACLs.
41267         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
41268         declarations.
41269         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
41270         functions.
41271         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
41272         * lib/set-mode-acl.c (qset_acl): Likewise.
41273         * lib/copy-acl.c (qcopy_acl): Likewise.
41274
41275 2008-06-08  Bruno Haible  <bruno@clisp.org>
41276
41277         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
41278         declaration.
41279         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
41280         (acl_access_nontrivial): Remove MacOS X case.
41281         (file_has_acl): Use acl_extended_nontrivial.
41282         * lib/copy-acl.c (qcopy_acl): Likewise.
41283
41284 2008-06-08  Bruno Haible  <bruno@clisp.org>
41285
41286         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
41287
41288 2008-06-08  Jim Meyering  <meyering@redhat.com>
41289
41290         * modules/acl (Maintainer): Add Bruno Haible.
41291
41292 2008-06-07  Bruno Haible  <bruno@clisp.org>
41293
41294         Improve support for Tru64 ACLs.
41295         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
41296         ACL on OSF/1.
41297
41298 2008-06-07  Bruno Haible  <bruno@clisp.org>
41299
41300         Add support for MacOS X ACLs.
41301         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
41302         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
41303         * lib/set-mode-acl.c (qset_acl): Likewise.
41304         * lib/copy-acl.c (qcopy_acl): Likewise.
41305
41306 2008-06-07  Bruno Haible  <bruno@clisp.org>
41307
41308         Fix memory leak introduced on 2008-05-22.
41309         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
41310         use.
41311
41312 2008-06-07  Bruno Haible  <bruno@clisp.org>
41313
41314         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
41315         to construct an empty ACL.
41316
41317 2008-06-07  Bruno Haible  <bruno@clisp.org>
41318
41319         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
41320         precisely.
41321         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
41322
41323 2008-06-07  Bruno Haible  <bruno@clisp.org>
41324
41325         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
41326         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
41327
41328 2008-06-07  Bruno Haible  <bruno@clisp.org>
41329
41330         * doc/posix-functions/_setjmp.texi: Explain the use of this function
41331         regardless of POSIX.
41332         * doc/posix-functions/_longjmp.texi: Likewise.
41333         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
41334         SystemV platform in this case.
41335
41336 2008-06-06  Eric Blake  <ebb9@byu.net>
41337
41338         Document abort() bugs.
41339         * doc/posix-functions/abort.texi (abort): Mention anomalies.
41340
41341         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
41342         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
41343         sigsetjmp.
41344         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
41345         siglongjmp, but only as a macro.
41346         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
41347         is obsolete.
41348         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
41349
41350         Tweak documentation to cover cygwin argz bugs.
41351         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
41352         argz bug fix; no code change needed since no cygwin releases
41353         occurred between the last fix and the bug being tested.
41354         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
41355         module and recently fixed cygwin bugs.
41356         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
41357         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
41358         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
41359         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
41360         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
41361         Likewise.
41362         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
41363         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
41364         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
41365         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
41366         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
41367         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
41368         Likewise.
41369
41370         Avoid gcc warning on cygwin.
41371         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
41372         !ACL_NO_TRIVIAL]: Avoid unused variable.
41373
41374 2008-06-05  Eric Blake  <ebb9@byu.net>
41375
41376         Be tolerant of UNKNOWN version in gnulib-tool test dir.
41377         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
41378         git-version-gen fails to come up with a version.
41379         Reported by Simon Josefsson.
41380
41381 2008-06-05  Jim Meyering  <meyering@redhat.com>
41382             Paul Eggert  <eggert@cs.ucla.edu>
41383
41384         utimens.c: work around a probable Linux kernel bug
41385         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
41386         appears to be a kernel bug that causes utimensat to return 280
41387         instead of 0, indicating success.
41388
41389 2008-06-04  Bruno Haible  <bruno@clisp.org>
41390
41391         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
41392         2008-06-01 commit.
41393
41394 2008-06-04  Bruno Haible  <bruno@clisp.org>
41395
41396         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
41397         * lib/file-has-acl.c (acl_access_nontrivial): New function.
41398         (file_has_acl): Use it. Save errno afterwards.
41399         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
41400
41401 2008-06-03  Bruno Haible  <bruno@clisp.org>
41402
41403         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
41404         draft code. Simplify #ifs.
41405         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
41406         Put Solaris code after POSIX-draft code. Fix comments regarding
41407         Solaris 10, HP-UX. Mention Cygwin.
41408         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
41409
41410 2008-06-03  Eric Blake  <ebb9@byu.net>
41411
41412         Provide fallback for older kernels.
41413         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
41414         Provide runtime fallback if kernel lacks support.
41415         Reported by Mike Frysinger.
41416
41417 2008-06-02  Bruno Haible  <bruno@clisp.org>
41418
41419         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
41420         it exists.
41421
41422 2008-06-02  Bruno Haible  <bruno@clisp.org>
41423
41424         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
41425         * lib/copy-acl.c (qcopy_acl): Update comment.
41426
41427 2008-06-02  Bruno Haible  <bruno@clisp.org>
41428
41429         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
41430         like ACL APIs.
41431
41432 2008-06-02  Bruno Haible  <bruno@clisp.org>
41433
41434         * tests/test-file-has-acl.sh: Use different code for Cygwin.
41435         * tests/test-set-mode-acl.sh: Likewise.
41436         * tests/test-copy-acl.sh: Likewise.
41437         * tests/test-copy-file.sh: Likewise.
41438
41439 2008-06-02  Bruno Haible  <bruno@clisp.org>
41440
41441         * tests/test-file-has-acl.sh: Remove unused code.
41442
41443 2008-06-01  Bruno Haible  <bruno@clisp.org>
41444
41445         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
41446         (copy_acl): Just a wrapper around qcopy_acl that emits the error
41447         messages.
41448         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
41449
41450 2008-06-01  Bruno Haible  <bruno@clisp.org>
41451
41452         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
41453         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
41454         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
41455         APIs.
41456         * modules/acl-tests (configure.ac): Remove tests now contained in
41457         m4/acl.m4.
41458
41459 2008-06-02  Jim Meyering  <meyering@redhat.com>
41460
41461         announce-gen: use a better key-server host name
41462         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
41463         it may be more consistently reliable.  Suggested by Werner Koch
41464         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
41465
41466 2008-06-01  Bruno Haible  <bruno@clisp.org>
41467
41468         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
41469         Reported by Voroskoi Andras <voroskoi@gmail.com>.
41470
41471 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
41472
41473         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
41474
41475 2008-06-01  Bruno Haible  <bruno@clisp.org>
41476
41477         New ACL tests.
41478         * tests/test-file-has-acl.sh: New file.
41479         * tests/test-file-has-acl.c: New file.
41480         * tests/test-set-mode-acl.sh: New file.
41481         * tests/test-set-mode-acl.c: New file.
41482         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
41483         * tests/test-copy-acl.c: New file.
41484         * modules/acl-tests: New file, based on modules/copy-file-tests.
41485         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
41486         (Depends-on): Add acl-tests.
41487         (configure.ac): Remove checks.
41488         (Makefile.am): Don't create test-sameacls program here any more.
41489
41490 2008-06-01  Bruno Haible  <bruno@clisp.org>
41491
41492         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
41493         * tests/test-sameacls.c: Include progname.h.
41494         (main): Invoke set_program_name. Portability fixes for MacOS X,
41495         Solaris, HP-UX.
41496
41497 2008-06-01  Bruno Haible  <bruno@clisp.org>
41498
41499         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
41500         function.
41501         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
41502
41503 2008-06-01  Bruno Haible  <bruno@clisp.org>
41504
41505         * modules/rpmatch (Depends-on): Add strdup.
41506
41507 2008-06-01  Bruno Haible  <bruno@clisp.org>
41508
41509         * lib/pipe.c: Include unistd-safer.h.
41510         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
41511         * modules/pipe (Depends-on): Add unistd-safer.
41512
41513 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41514
41515         * modules/autobuild (configure.ac): Call AB_INIT.
41516
41517 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41518
41519         * tests/test-getaddrinfo.c: Don't print debug messages by default.
41520         Suggested by Bruno Haible <bruno@clisp.org>.
41521
41522 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41523
41524         * tests/test-base64.c: Cast size_t to unsigned long when invoking
41525         printf.  Use %lu instead of %d.  Reported by Bruno Haible
41526         <bruno@clisp.org>.
41527
41528 2008-05-29  Eric Blake  <ebb9@byu.net>
41529
41530         Prefer new POSIX 200x interfaces over futimesat.
41531         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
41532         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
41533         when available.
41534         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
41535
41536 2008-05-28  Bruno Haible  <bruno@clisp.org>
41537
41538         * modules/stpcpy (License): Change to LGPLv2+.
41539         Requested by David Lutterkort <dlutter@redhat.com>.
41540
41541 2008-05-27  Bruno Haible  <bruno@clisp.org>
41542
41543         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
41544         current mingw.
41545         Reported by Jose E. Marchesi <jemarch@gnu.org>.
41546
41547 2008-05-27  Bruno Haible  <bruno@clisp.org>
41548
41549         * modules/iconv_open (Link): New section, from module 'iconv'.
41550         * modules/striconv (Link): Likewise.
41551         * modules/striconveh (Link): Likewise.
41552         * modules/xstriconv (Link): Likewise.
41553         * modules/unicodeio (Link): Likewise.
41554         * modules/propername (Link): Likewise.
41555         Reported by Jim Meyering.
41556
41557 2008-05-26  Jim Meyering  <meyering@redhat.com>
41558
41559         sha256: do not artificially restrict buffer length to be < 2^32
41560         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
41561         uint32_t to size_t.
41562         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
41563         to match.
41564
41565         avoid unaligned access errors, e.g., on sparc
41566         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
41567         direct access through a possibly-unaligned uint64* pointer.
41568         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
41569         direct access through a possibly-unaligned uint32* pointer.
41570         Prompted by this patch from Tom "spot" Callaway:
41571         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
41572
41573         sha512.c: fix typo in comment
41574         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
41575
41576 2008-05-25  Bruno Haible  <bruno@clisp.org>
41577
41578         * lib/set-mode-acl.c: Renamed from lib/acl.c.
41579         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
41580         (Makefile.am): Update lib_SOURCES.
41581
41582 2008-05-25  Bruno Haible  <bruno@clisp.org>
41583
41584         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
41585
41586 2008-05-25  Jim Meyering  <meyering@redhat.com>
41587
41588         useless-if-before-free: freed expr may have white-space differences
41589         * build-aux/useless-if-before-free: Recognize cases in which the
41590         freed expression differs from the tested one in embedded white
41591         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
41592         $1 was used, so we can't make any regexp shy.  Improved tests now
41593         detect this.
41594
41595         useless-if-before-free: accept white space in the expression.
41596         * build-aux/useless-if-before-free: For now, any white space
41597         in the expression must be identical in the free argument.
41598
41599         useless-if-before-free: efficiency tweak
41600         * build-aux/useless-if-before-free: Make the expression-matching
41601         regexp "shy".
41602         Make the *outer* regexp shy, not the expr-matching one.
41603
41604         update code-in-comment to accept cast of free arg
41605         * build-aux/useless-if-before-free: Update regexp.
41606
41607 2008-05-25  Bruno Haible  <bruno@clisp.org>
41608
41609         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
41610         * modules/copy-file-tests (Files, Makefile.am): Update.
41611         * tests/test-copy-file.c (func_test_copy): Update.
41612
41613 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
41614
41615         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
41616
41617 2008-05-23  Bruno Haible  <bruno@clisp.org>
41618
41619         Improve support for ACLs on OSF/1.
41620         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
41621         Remove fallback for unknown flavors of ACLs.
41622
41623 2008-05-22  Bruno Haible  <bruno@clisp.org>
41624
41625         Add support for ACLs on OSF/1.
41626         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
41627         replacements.
41628         (acl_free_text): New macro fallback.
41629         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
41630         acl_free.
41631         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
41632         acl_free_text function. Require AC_C_INLINE.
41633
41634 2008-05-22  Bruno Haible  <bruno@clisp.org>
41635
41636         Make copy_acl work on MacOS X 10.5.
41637         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
41638         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
41639         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
41640         If MODE_INSIDE_ACL, don't assume that every system has the same text
41641         representation for ACLs as FreeBSD.
41642         * lib/copy-acl.c (copy_acl): Add support for platforms with
41643         !MODE_INSIDE_ACL.
41644         * lib/file-has-acl.c (file_has_acl): Likewise.
41645         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
41646         FreeBSD, MacOS X, or IRIX, respectively.
41647
41648 2008-05-22  Bruno Haible  <bruno@clisp.org>
41649
41650         * lib/acl.h: Don't include <sys/acl.h>.
41651         (GETACLCNT): Move fallback to lib/acl-internal.h.
41652         * lib/acl-internal.h: Include <sys/acl.h> here.
41653         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
41654
41655 2008-05-22  Bruno Haible  <bruno@clisp.org>
41656
41657         Split off copy_acl function to separate file.
41658         * lib/copy-acl.c: New file, extracted from lib/acl.c.
41659         * lib/acl.c (copy_acl): Moved function to separate file.
41660         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
41661         * modules/acl (Files): Add lib/copy-acl.c.
41662         (Makefiles.am): Augment lib_SOURCES.
41663
41664 2008-05-22  Bruno Haible  <bruno@clisp.org>
41665
41666         * modules/copy-file-tests: New file.
41667         * tests/test-copy-file.sh: New file.
41668         * tests/test-copy-file.c: New file.
41669         * tests/test-copy-file-sameacls.c: New file.
41670
41671 2008-05-22  Eric Blake  <ebb9@byu.net>
41672
41673         Avoid gcc warning.
41674         * tests/test-memcmp.c (main): Pass NULL indirectly.
41675
41676 2008-05-21  Bruno Haible  <bruno@clisp.org>
41677
41678         Add reference doc about ACLs.
41679         * doc/acl-resources.txt: New file.
41680         * doc/acl-cygwin.txt: New file.
41681
41682 2008-05-21  Bruno Haible  <bruno@clisp.org>
41683
41684         Avoid one more warning from gcc.
41685         * lib/vasnprintf.c (IF_LINT): Update comments.
41686         (VASNPRINTF): Use it also for the 'prefix' array initializer.
41687
41688 2008-05-21  Jim Meyering  <meyering@redhat.com>
41689
41690         avoid a warning from gcc
41691         * lib/vasnprintf.c (IF_LINT): Define.
41692         (scale10_round_decimal_long_double):
41693         Use it to avoid a "may be used uninitialized" warning.
41694         (scale10_round_decimal_double): Likewise.
41695
41696 2008-05-21  Simon Josefsson  <simon@josefsson.org>
41697
41698         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
41699         declared.
41700
41701 2008-05-20  Bruno Haible  <bruno@clisp.org>
41702
41703         * tests/test-memcmp.c (main): Test also the sign of the result. Test
41704         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
41705
41706 2008-05-20  Simon Josefsson  <simon@josefsson.org>
41707
41708         * modules/memcmp-tests: New file.
41709         * tests/test-memcmp.c: New file.
41710
41711 2008-05-19  Bruno Haible  <bruno@clisp.org>
41712
41713         * modules/propername (Notice, configure.ac): Put quoted "..." into
41714         --keyword option.
41715         * lib/propername.h: Update comments accordingly.
41716         Reported by Eric Blake.
41717
41718 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
41719
41720         * modules/getpass-gnu (Depends-on): Add fseeko.
41721
41722 2008-05-19  Simon Josefsson  <simon@josefsson.org>
41723
41724         * modules/base64-tests: New file.
41725
41726 2008-05-19  Bo Borgerson <gigabo@gmail.com>
41727
41728         * lib/base64.c (base64_decode_ctx): If a decode context structure
41729         was passed in use it to ignore newlines.  If a context structure
41730         was _not_ passed in, continue to treat newlines as garbage (this
41731         is the historical behavior).  Formerly base64_decode.
41732         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
41733         takes a decode context structure.
41734         * lib/base64.h (base64_decode): Macro for four-argument calls.
41735         (base64_decode_alloc): Likewise.
41736         * lib/base64.c (base64_decode_ctx): If a decode context structure
41737         was passed in use it to ignore newlines.  If a context structure
41738         was _not_ passed in, continue to treat newlines as garbage (this
41739         is the historical behavior).  Formerly base64_decode.
41740         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
41741         takes a decode context structure.
41742         * lib/base64.h (base64_decode): Macro for four-argument calls.
41743         (base64_decode_alloc): Likewise.
41744
41745 2008-05-19  Jim Meyering  <meyering@redhat.com>
41746
41747         avoid a warning from gcc
41748         * lib/trim.c (IF_LINT): Define.
41749         (trim2): Use it to avoid a "may be used uninitialized" warning.
41750
41751         Fix doc typo.
41752         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
41753
41754 2008-05-19  Bruno Haible  <bruno@clisp.org>
41755
41756         * doc/glibc-functions/getpass.texi: Document limits of other
41757         implementations.
41758
41759 2008-05-19  Simon Josefsson  <simon@josefsson.org>
41760             Bruno Haible <bruno@clisp.org>
41761
41762         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
41763
41764 2008-05-18  Bruno Haible  <bruno@clisp.org>
41765
41766         * modules/propername: New file, from GNU gettext.
41767         * lib/propername.h: New file, from GNU gettext.
41768         * lib/propername.c: New file, from GNU gettext.
41769         * MODULES.html.sh (Internationalization functions): Add propername.
41770
41771 2008-05-16  Jim Meyering  <meyering@redhat.com>
41772             Bruno Haible  <bruno@clisp.org>
41773
41774         Avoid some warnings from "gcc -Wshadow".
41775         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
41776
41777 2008-05-15  Eric Blake  <ebb9@byu.net>
41778
41779         Extend previous patch to cygwin 1.7.0.
41780         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
41781         fast implementation in cygwin >= 1.7.0.
41782         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41783         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41784
41785 2008-05-15  Bruno Haible  <bruno@clisp.org>
41786
41787         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
41788         implementation in glibc >= 2.9.
41789         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41790         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41791
41792 2008-05-15  Bruno Haible  <bruno@clisp.org>
41793
41794         * MODULES.html.sh (Internationalization functions): Remove linebreak.
41795         (Unicode string functions): Add unilbrk/*.
41796         Reported by Karl Berry.
41797
41798 2008-05-15  Eric Blake  <ebb9@byu.net>
41799
41800         Fix violation of <stdbool.h> replacement in regex.
41801         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
41802         * lib/regexec.c (re_search_internal): Likewise.
41803         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
41804
41805 2008-05-15  Jim Meyering  <meyering@redhat.com>
41806
41807         avoid distracting test output when git or cvs is not found
41808         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
41809         * tests/test-vc-list-files-git.sh: Likewise.
41810
41811 2008-05-15  Eric Blake  <ebb9@byu.net>
41812
41813         Glibc finally accepted the memmem speedup code, bugzilla #5514.
41814         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
41815         glibc version.
41816         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
41817         * doc/posix-functions/strstr.texi (strstr): Likewise.
41818         * lib/str-two-way.h (MAX): Sychronize with glibc.
41819
41820 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
41821
41822         * lib/regcomp.c (optimize_utf8): Add a note on why we test
41823         opr.ctx_type.
41824         (calc_first): Initialize constraint field.
41825         (duplicate_node_closure): Use it instead of special casing ANCHORS.
41826         Fix grammar.
41827         (duplicate_node): Merge constraint field for all node types.
41828         (calc_eclosure_iter): Look at constraint field for all node types.
41829         * lib/regex_internal.c (create_cd_newstate): Don't look at
41830         opr.ctx_type.
41831
41832 2008-05-14  Bruno Haible  <bruno@clisp.org>
41833
41834         Help GCC to do better code generation.
41835         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
41836         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
41837         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
41838         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
41839         Declare with attribute 'malloc' if supported.
41840
41841 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
41842
41843         use "echo STR|wc -c" rather than unportable "expr length STR"
41844         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
41845         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
41846
41847 2008-05-14  Jim Meyering  <meyering@redhat.com>
41848
41849         use dd ibs=$n count=1 ... rather than less-portable head -c$n
41850         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
41851         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
41852         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
41853         via Collin Lasse.
41854
41855 2008-05-14  Eric Blake  <ebb9@byu.net>
41856
41857         Avoid quadratic growth in gl_LIBSOURCES.
41858         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
41859         Suggested by Bruno Haible.
41860
41861         Test xmemdup0.
41862         * modules/xmemdup0-tests: New file.
41863         * tests/test-xmemdup0.c: Likewise.
41864
41865 2008-05-13  Eric Blake  <ebb9@byu.net>
41866
41867         Split xmemdup0 into its own module.
41868         * modules/xmemdup0: New file.
41869         * lib/xmemdup0.h: Likewise.
41870         * lib/xmemdup0.c: Likewise.
41871         * MODULES.html.sh (Memory management functions): Add xmemdup0.
41872         * lib/xalloc.h (xmemdup0): Remove.
41873         * lib/xmalloc.c (xmemdup0): Likewise.
41874
41875 2008-05-13  Eric Blake  <ebb9@byu.net>
41876             Bruno Haible  <bruno@clisp.org>
41877
41878         Reduce number of forks required during autoconf.
41879         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
41880         and gl_LIBSOURCES_DIR.
41881         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
41882         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
41883         m4_syscmd per file.
41884         <m4_foreach_w>: Move...
41885         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
41886
41887 2008-05-13  Eric Blake  <ebb9@byu.net>
41888
41889         * gnulib-tool: Fix various comment typos.
41890
41891 2008-05-12  Bruno Haible  <bruno@clisp.org>
41892
41893         Tailor the linebreaking algorithm.
41894         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
41895
41896 2008-05-12  Bruno Haible  <bruno@clisp.org>
41897
41898         Update to Unicode 5.0.0.
41899         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
41900         LBP_JV, LBP_JT. Redistribute values.
41901         (unilbrk_table): Change size.
41902         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
41903         Unicode TR#14 rev. 22.
41904         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
41905         LBP_JV, LBP_JT. Redistribute values.
41906         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
41907         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
41908         Update.
41909         * lib/unilbrk/lbrkprop1.h: Regenerated.
41910         * lib/unilbrk/lbrkprop2.h: Regenerated.
41911         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
41912         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
41913         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
41914         Likewise.
41915         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
41916         Likewise.
41917         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
41918         result.
41919         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
41920         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
41921         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
41922         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
41923         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
41924         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
41925
41926 2008-05-11  Bruno Haible  <bruno@clisp.org>
41927
41928         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
41929
41930 2008-05-11  Bruno Haible  <bruno@clisp.org>
41931
41932         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
41933         * modules/unilbrk/gen-lbrk: New file.
41934
41935 2008-05-11  Bruno Haible  <bruno@clisp.org>
41936
41937         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
41938         * m4/sha512.m4 (gl_SHA512): Likewise.
41939
41940 2008-05-11  Jim Meyering  <meyering@redhat.com>
41941
41942         New modules: crypto/sha256, crypto/sha512 (from coreutils)
41943         * modules/crypto/sha256: New file.
41944         * modules/crypto/sha512: Likewise.
41945         * lib/sha256.c: Likewise.
41946         * lib/sha256.h: Likewise.
41947         * lib/sha512.c: Likewise.
41948         * lib/sha512.h: Likewise.
41949         * lib/u64.h: Likewise.
41950         * m4/sha256.m4: Likewise.
41951         * m4/sha512.m4: Likewise.
41952         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
41953
41954 2008-05-10  Bruno Haible  <bruno@clisp.org>
41955
41956         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
41957         (Input/Output <stdio.h>): Add xprintf.
41958         (Signal handling <signal.h>): Add strsignal.
41959         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
41960         (Core language properties): Add func.
41961         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
41962         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
41963         strings.
41964         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
41965         (Input/output): New section.
41966         (File system functions): Add openat-die, stat-macros.
41967         (Networking functions): Add sockets.
41968         (Unicode string functions): Add unictype/*.
41969         (Support for building libraries and executables): Add gperf.
41970         (Support for building documentation): Add agpl-3.0.
41971         (Misc): Add nocrash.
41972
41973 2008-05-10  Bruno Haible  <bruno@clisp.org>
41974
41975         * modules/unictype/gen-ctype: New file.
41976
41977 2008-05-10  Jim Meyering  <meyering@redhat.com>
41978
41979         Make chdir-safer.c more efficient on a system with no symlinks.
41980         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
41981         also if ELOOP is zero.  Suggested by Bruno Haible.
41982
41983         Make chdir-safer.c slightly safer.
41984         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
41985         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
41986
41987         Avoid compile failure on systems without ELOOP (like mingw).
41988         * lib/chdir-safer.c (ELOOP): Define if not already defined.
41989         Reported by Bruno Haible.
41990
41991 2008-05-10  Bruno Haible  <bruno@clisp.org>
41992
41993         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
41994         (is_utf8_encoding): Use a case-insensitive comparison.
41995         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
41996         streq.
41997
41998 2008-05-10  Bruno Haible  <bruno@clisp.org>
41999
42000         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
42001         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
42002         * lib/unilbrk/ulc-common.h (iconv_string_length,
42003         iconv_string_keeping_offsets): Remove declarations.
42004         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
42005         Don't include <iconv.h>, streq.h, xsize.h.
42006         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
42007         conversion.
42008         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
42009         <iconv.h>, streq.h, xsize.h.
42010         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
42011         conversion.
42012         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
42013         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
42014         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
42015         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
42016
42017 2008-05-10  Bruno Haible  <bruno@clisp.org>
42018
42019         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
42020         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
42021
42022         * modules/unilbrk/u32-width-linebreaks-tests: New file.
42023         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
42024
42025         * modules/unilbrk/u16-width-linebreaks-tests: New file.
42026         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
42027
42028         * modules/unilbrk/u8-width-linebreaks-tests: New file.
42029         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
42030
42031         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
42032         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
42033
42034         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
42035         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
42036
42037         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
42038         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
42039
42040         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
42041         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
42042
42043 2008-05-10  Bruno Haible  <bruno@clisp.org>
42044
42045         Split up 'linebreak' module.
42046         * lib/unilbrk.h: New file, based on lib/linebreak.h.
42047         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
42048         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
42049         modifications.
42050         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
42051         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
42052         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
42053         lib/linebreak.c.
42054         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
42055         lib/linebreak.c.
42056         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
42057         lib/linebreak.c.
42058         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
42059         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
42060         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
42061         lib/linebreak.c.
42062         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
42063         lib/linebreak.c.
42064         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
42065         lib/linebreak.c.
42066         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
42067         lib/linebreak.c.
42068         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
42069         lib/linebreak.c.
42070         * modules/unilbrk/base: New file.
42071         * modules/unilbrk/tables: New file.
42072         * modules/unilbrk/u8-possible-linebreaks: New file.
42073         * modules/unilbrk/u16-possible-linebreaks: New file.
42074         * modules/unilbrk/u32-possible-linebreaks: New file.
42075         * modules/unilbrk/ulc-common: New file.
42076         * modules/unilbrk/ulc-possible-linebreaks: New file.
42077         * modules/unilbrk/u8-width-linebreaks: New file.
42078         * modules/unilbrk/u16-width-linebreaks: New file.
42079         * modules/unilbrk/u32-width-linebreaks: New file.
42080         * modules/unilbrk/ulc-width-linebreaks: New file.
42081         * lib/linebreak.h: Remove file.
42082         * lib/linebreak.c: Remove file.
42083         * m4/linebreak.m4: Remove file.
42084         * modules/linebreak: Remove file.
42085         * NEWS: Mention the changes.
42086
42087 2008-05-09  Eric Blake  <ebb9@byu.net>
42088
42089         Add xmemdup0.
42090         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
42091         implementation.
42092         * lib/xmalloc.c (xmemdup0): New C implementation.
42093
42094 2008-05-08  Bruno Haible  <bruno@clisp.org>
42095
42096         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
42097
42098 2008-05-07  Eric Blake  <ebb9@byu.net>
42099
42100         Support cross-compilation of <wctype.h>.
42101         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
42102         AC_CACHE_CHECK.
42103
42104 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
42105
42106         * build-aux/vc-list-files: Add support for bzr.
42107
42108 2008-05-03  Jim Meyering  <meyering@redhat.com>
42109
42110         avoid failed assertion with tight malloc
42111         * tests/test-getndelim2.c: Correct an off-by-one assertion.
42112
42113 2008-05-03  Simon Josefsson  <simon@josefsson.org>
42114
42115         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
42116         are needed from arpa/inet.h.
42117         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
42118         Reported by Bruno Haible.
42119
42120 2008-05-02  Jim Meyering  <meyering@redhat.com>
42121
42122         avoid compilation error on FreeBSD 6
42123         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
42124
42125 2008-05-01  Jim Meyering  <meyering@redhat.com>
42126
42127         useless-if-before-free: correct --help's exit status description
42128         * build-aux/useless-if-before-free (usage): Like grep, exit 0
42129         for one or more matches, etc.  Reported by Bruno Haible.
42130
42131         vc-list-files: make the stand-alone gnulib test work
42132         * modules/vc-list-files-tests (configure.ac):
42133         Define and AC_SUBST abs_aux_dir.
42134         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
42135         $(abs_top_srcdir) to each script and having each of them
42136         duplicate the work of setting PATH, set PATH here, using
42137         the new variable, abs_aux_dir instead.
42138         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
42139         * tests/test-vc-list-files-git.sh: Likewise.
42140         Reported by Bruno Haible.
42141
42142 2008-05-01  Bruno Haible  <bruno@clisp.org>
42143
42144         * lib/getndelim2.c (getndelim2): Fix newsize computation during
42145         reallocation. Rename 'done' to 'found_delimiter'.
42146
42147 2008-05-01  Jim Meyering  <meyering@redhat.com>
42148
42149         vc-list-files: accommodate /bin/sh like the one from Solaris 10
42150         * build-aux/vc-list-files: Use `...`, not $(...).
42151
42152 2008-04-30  Jim Meyering  <meyering@redhat.com>
42153
42154         add tests for vc-list-files
42155         * modules/vc-list-files-tests: New module.
42156         * tests/test-vc-list-files-cvs.sh: New file.
42157         * tests/test-vc-list-files-git.sh: New file.
42158
42159         avoid a warning from gcc
42160         * lib/getndelim2.c (IF_LINT): Define.
42161         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
42162
42163         vc-list-files: work properly with build-aux/cvsu, too
42164         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
42165         to all cvs-based clauses.
42166
42167         vc-list-files: work properly in the CVS+awk case, too
42168         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
42169
42170         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
42171         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
42172         take more than one file argument, so .  Add quotes, just in case $dir
42173         ever contains a shell meta-character.  Prompted by Soren Hansen in
42174         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
42175
42176 2008-04-29  Eric Blake  <ebb9@byu.net>
42177
42178         Optimize getndelim2 to use block operations when possible.
42179         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
42180         freadseek, and memchr2.
42181         * lib/getndelim2.c (getndelim2): Use them for block reads.
42182
42183 2008-04-29  Bruno Haible  <bruno@clisp.org>
42184
42185         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
42186         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42187         * modules/inet_ntop (Depends-on): Add extensions.
42188         * modules/inet_pton (Depends-on): Likewise.
42189         Reported by Simon Josefsson.
42190
42191 2008-04-29  Jim Meyering  <meyering@redhat.com>
42192
42193         When the is more than one match in a block, match all of them.
42194         * build-aux/useless-if-before-free: Iterate through each block
42195         until there are no more matches.
42196
42197         Fix broken useless-if-before-free script.
42198         * build-aux/useless-if-before-free: Fix typo: missing "?" after
42199         the expression to match cast of argument to free-like function.
42200
42201 2008-04-29  Eric Blake  <ebb9@byu.net>
42202
42203         Use new header.
42204         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
42205
42206 2008-04-29  Jim Meyering  <meyering@redhat.com>
42207
42208         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
42209         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
42210         by gnulib to exist and to declare e.g., inet_ntop.
42211         Don't include "inet_ntop.h", now removed.
42212
42213         * m4/arpa_inet_h.m4: Remove trailing blanks.
42214
42215 2008-04-29  Eric Blake  <ebb9@byu.net>
42216
42217         Silence valgrind on safe reads beyond potential array bounds.
42218         * lib/rawmemchr.valgrind: New file.
42219         * lib/strchrnul.valgrind: Likewise.
42220         * modules/rawmemchr (Files): Distribute new file.
42221         * modules/strchrnul (Files): Likewise.
42222         Suggested by Bruno Haible.
42223
42224 2008-04-29  Bruno Haible  <bruno@clisp.org>
42225
42226         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
42227         (inet_ntop, inet_pton): Change portability warning's wording.
42228         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
42229         Invoke gl_CHECK_NEXT_HEADERS.
42230         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
42231         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
42232         set ARPA_INET_H.
42233         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42234         * modules/arpa_inet (Description): No longer only for systems that
42235         lack it.
42236         (Depends-on): Add include_next.
42237         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
42238         HAVE_ARPA_INET_H.
42239
42240 2008-04-29  Jim Meyering  <meyering@redhat.com>
42241
42242         * modules/mkdir (License): Re-license as LGPLv2+.
42243
42244 2008-04-29  Bruno Haible  <bruno@clisp.org>
42245
42246         * modules/rawmemchr (Maintainer): Set to Eric.
42247         * modules/strchrnul (Maintainer): Likewise.
42248
42249 2008-04-29  Simon Josefsson  <simon@josefsson.org>
42250
42251         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
42252         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
42253
42254         * modules/arpa_inet (arpa/inet.h): Use them.
42255
42256 2008-04-28  Eric Blake  <ebb9@byu.net>
42257
42258         Test getndelim2.
42259         * modules/getndelim2-tests: New file.
42260         * tests/test-getndelim2.c: Likewise.
42261         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
42262         stream.
42263         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
42264
42265         * MODULES.html.sh: Document new module.
42266
42267 2008-04-20  Bruno Haible  <bruno@clisp.org>
42268
42269         * lib/c-stack.c (die): Use raise.
42270         * modules/c-stack (Depends-on): Add raise.
42271
42272 2008-04-28  Bruno Haible  <bruno@clisp.org>
42273
42274         Expect rpmatch to be declared.
42275         * lib/yesno.c (rpmatch): Remove declaration.
42276
42277         Declare rpmatch.
42278         * lib/stdlib.in.h (rpmatch): New declaration.
42279         * lib/rpmatch.c: Include <stdlib.h> first.
42280         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
42281         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
42282         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
42283         HAVE_RPMATCH.
42284         * modules/rpmatch (Depends-on): Add stdlib, extensions.
42285         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42286         (Include): Set to <stdlib.h>.
42287         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
42288         HAVE_RPMATCH.
42289         * NEWS: Document the change.
42290
42291 2008-04-28  Bruno Haible  <bruno@clisp.org>
42292
42293         Change rpmatch to use nl_langinfo when appropriate.
42294         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
42295         (N_): New macro.
42296         (localized_pattern): New function/macro.
42297         (try): Remove match, nomatch arguments. Copy the pattern into safe
42298         memory before caching it.
42299         (rpmatch): Use localized_pattern. Add translator comments.
42300         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
42301         Suggested by Eric Blake.
42302         * modules/rpmatch (Depends-on): Add stdbool.
42303
42304 2008-04-28  Eric Blake  <ebb9@byu.net>
42305
42306         Add rawmemchr module, matching glibc.
42307         * modules/string (Makefile.am): New indicator.
42308         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
42309         * lib/string.in.h (rawmemchr): Declare when appropriate.
42310         * modules/rawmemchr: New file.
42311         * m4/rawmemchr.m4: Likewise.
42312         * lib/rawmemchr.c: Likewise.
42313         * modules/rawmemchr-tests: Likewise.
42314         * tests/test-rawmemchr.c: Likewise.
42315         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
42316         module.
42317         * modules/strchrnul (Depends-on): Add rawmemchr.
42318         * lib/strchrnul.c (strchrnul): Optimize a corner case.
42319
42320         Whitespace cleanup.
42321         * tests/test-strchrnul.c: Reindent.
42322         * lib/strchrnul.c: Likewise.
42323
42324         Optimize and test strchrnul.
42325         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
42326         * modules/strchrnul-tests: New file.
42327         * tests/test-strchrnul.c: Likewise.
42328
42329         Remove intprops dependency.
42330         * modules/memchr (Depends-on): Remove intprops.
42331         * modules/memrchr (Depends-on): Likewise.
42332         * modules/memchr2 (Depends-on): Likewise.
42333         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
42334         * lib/memrchr.c (__memrchr): Likewise.
42335         * lib/memrchr2.c (memchr2): Likewise.
42336         Reported by Simon Josefsson.
42337
42338 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42339
42340         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
42341         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42342
42343 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42344
42345         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
42346
42347         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
42348
42349         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
42350
42351         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
42352         declarations.
42353         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
42354
42355         * m4/inet_pton.m4: Don't check for header files.
42356
42357         * m4/inet_ntop.m4: Don't check for header files.
42358
42359 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42360
42361         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
42362         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
42363         trigger for cygwin).
42364         Reported by Bruno Haible  <bruno@clisp.org>.
42365
42366 2008-04-28  Bruno Haible  <bruno@clisp.org>
42367
42368         * doc/posix-functions/strdup.texi: Mention mingw problem.
42369
42370 2008-04-27  Bruno Haible  <bruno@clisp.org>
42371
42372         * modules/stat-time-tests (Depends-on): Add sleep.
42373         * tests/test-stat-time.c (force_unlink): New function.
42374         (cleanup): Use it.
42375         (test_mtime): Remove the ctime related tests.
42376         (test_ctime): New function, containing the ctime related tests.
42377         (main): Call test_ctime, except on native Windows platforms.
42378
42379 2008-04-27  Bruno Haible  <bruno@clisp.org>
42380
42381         * lib/rpmatch.c (rpmatch): Add some comments.
42382         Reported by James Youngman <jay@gnu.org>.
42383
42384 2008-04-27  Bruno Haible  <bruno@clisp.org>
42385
42386         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
42387         quiet NaNs.
42388
42389 2008-04-27  Bruno Haible  <bruno@clisp.org>
42390
42391         Make test-yesno.sh work on mingw.
42392         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
42393         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
42394         (main): Set stdin to binary mode.
42395         * modules/yesno-tests (Depends-on): Add binary-io.
42396
42397 2008-04-27  Bruno Haible  <bruno@clisp.org>
42398
42399         Fix 'isfinite' on x86, x86_64, ia64 platforms.
42400         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
42401         argument that lie outside the IEEE 854 domain.
42402         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
42403         (gl_ISFINITE): Use it.
42404         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
42405
42406 2008-04-27  Bruno Haible  <bruno@clisp.org>
42407
42408         Allow local renaming in config.h.
42409         * lib/memrchr.c (memrchr): Don't undefine outside libc.
42410
42411 2008-04-27  Bruno Haible  <bruno@clisp.org>
42412
42413         * lib/memchr.c (__memchr): Change type of 'i'.
42414         * lib/memchr2.c (memchr2): Likewise.
42415
42416 2008-04-26  Eric Blake  <ebb9@byu.net>
42417         and Bruno Haible  <bruno@clisp.org>
42418
42419         Optimize and test memrchr.
42420         * modules/memrchr (Depends-on): Add intprops.
42421         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
42422         * modules/memrchr-tests: New file.
42423         * tests/test-memrchr.c: New file.
42424
42425 2008-04-26  Bruno Haible  <bruno@clisp.org>
42426
42427         Add tentative support for DragonFly BSD.
42428         * lib/stdio-impl.h: Add macros for DragonFly BSD.
42429         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
42430         fp.
42431         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42432         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
42433         * lib/fpurge.c (fpurge): Likewise.
42434         * lib/freadable.c (freaadable): Likewise.
42435         * lib/freadahead.c (freadahead): Likewise.
42436         * lib/freading.c (freading): Likewise.
42437         * lib/freadptr.c (freadptr): Likewise.
42438         * lib/freadseek.c (freadptrinc): Likewise.
42439         * lib/fseeko.c (fseeko): Likewise.
42440         * lib/fseterr.c (fseterr): Likewise.
42441         * lib/fwritable.c (fwritable): Likewise.
42442         * lib/fwriting.c (fwriting): Likewise.
42443
42444 2008-04-26  Bruno Haible  <bruno@clisp.org>
42445
42446         * lib/stdio-impl.h: New file.
42447         * lib/fbufmode.c: Include stdio-impl.h.
42448         (fbufmode): Use fp_, remove redundant #defines.
42449         * lib/fflush.c: Include stdio-impl.h.
42450         (clear_ungetc_buffer): Remove redundant #defines.
42451         * lib/fpurge.c: Include stdio-impl.h.
42452         (fpurge): Remove redundant #defines.
42453         * lib/freadable.c: Include stdio-impl.h.
42454         (freadable): Remove redundant #defines.
42455         * lib/freadahead.c: Include stdio-impl.h.
42456         (freadahead): Remove redundant #defines.
42457         * lib/freading.c: Include stdio-impl.h.
42458         (freading): Remove redundant #defines.
42459         * lib/freadptr.c: Include stdio-impl.h.
42460         (freadptr): Remove redundant #defines.
42461         * lib/freadseek.c: Include stdio-impl.h.
42462         (freadptrinc): Remove redundant #defines.
42463         * lib/fseeko.c: Include stdio-impl.h.
42464         (rpl_fseeko): Remove redundant #defines.
42465         * lib/fseterr.c: Include stdio-impl.h.
42466         (fseterr): Remove redundant #defines.
42467         * lib/fwritable.c: Include stdio-impl.h.
42468         (fwritable: Remove redundant #defines.
42469         * lib/fwriting.c: Include stdio-impl.h.
42470         (fwriting): Remove redundant #defines.
42471         * modules/fbufmode (Files): Add lib/stdio-impl.h.
42472         * modules/fflush (Files): Likewise.
42473         * modules/fpurge (Files): Likewise.
42474         * modules/freadable (Files): Likewise.
42475         * modules/freadahead (Files): Likewise.
42476         * modules/freading (Files): Likewise.
42477         * modules/freadptr (Files): Likewise.
42478         * modules/freadseek (Files): Likewise.
42479         * modules/fseeko (Files): Likewise.
42480         * modules/fseterr (Files): Likewise.
42481         * modules/fwritable (Files): Likewise.
42482         * modules/fwriting (Files): Likewise.
42483
42484 2008-04-26  Bruno Haible  <bruno@clisp.org>
42485
42486         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42487         restore_seek_optimization, update_fpos_cache): New functions, extracted
42488         from rpl_fflush.
42489         (rpl_fflush): Use them.
42490         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
42491         (gl_REPLACE_FFLUSH): Use it.
42492
42493 2008-04-26  Bruno Haible  <bruno@clisp.org>
42494
42495         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
42496         on Solaris.
42497         * tests/test-xstrtoimax.sh: Likewise.
42498         * tests/test-xstrtoumax.sh: Likewise.
42499         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42500
42501 2008-04-26  Bruno Haible  <bruno@clisp.org>
42502
42503         * modules/memchr-tests: New file.
42504         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
42505
42506 2008-04-26  Eric Blake  <ebb9@byu.net>
42507             Bruno Haible  <bruno@clisp.org>
42508
42509         * lib/memchr.c: Include intprops.h.
42510         (__memchr): Optimize parallel detection of matching bytes. Rename local
42511         variables. Add explanatory comments.
42512
42513 2008-04-26  Bruno Haible  <bruno@clisp.org>
42514
42515         Fix module 'memchr', broken since 2000-10-28.
42516         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
42517
42518 2008-04-26  Bruno Haible  <bruno@clisp.org>
42519
42520         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
42521         comments.
42522
42523 2008-04-25  Eric Blake  <ebb9@byu.net>
42524
42525         Use native fstatat on cygwin 1.7.0.
42526         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
42527         first.
42528
42529 2008-04-23  Eric Blake  <ebb9@byu.net>
42530
42531         Improve memchr2 performance.
42532         * lib/memchr2.c (memchr2): Further optimize parallel detection of
42533         NUL bytes.
42534         * modules/memchr2 (Depends-on): Use intprops.h.
42535
42536 2008-04-23  Simon Josefsson  <simon@josefsson.org>
42537
42538         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
42539         an inline function instead of a CPP macro.  Patch by Ben Pfaff
42540         <blp@cs.stanford.edu>.
42541
42542 2008-04-23  Simon Josefsson  <simon@josefsson.org>
42543
42544         * lib/arpa_inet.in.h: New file.
42545
42546         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
42547         (Makefile.am): Sed in substitute header file.
42548
42549         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
42550         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
42551
42552         * modules/inet_ntop (configure.ac): Use
42553         gl_ARPA_INET_MODULE_INDICATOR.
42554
42555         * modules/inet_pton (configure.ac): Use
42556         gl_ARPA_INET_MODULE_INDICATOR.
42557
42558 2008-04-22  Jim Meyering  <meyering@redhat.com>
42559
42560         * modules/verify (License): Re-license as LGPLv2+.
42561
42562 2008-04-22  Simon Josefsson  <simon@josefsson.org>
42563
42564         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
42565         parameter to void* as per POSIX standard (MinGW uses char*).
42566
42567 2008-04-21  Bruno Haible  <bruno@clisp.org>
42568
42569         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
42570         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
42571         Define to replacements if REPLACE_ISWCNTRL is 1.
42572         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
42573         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
42574         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
42575         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
42576         what it fixes.
42577         * doc/posix-functions/iswalpha.texi: Likewise.
42578         * doc/posix-functions/iswblank.texi: Likewise.
42579         * doc/posix-functions/iswcntrl.texi: Likewise.
42580         * doc/posix-functions/iswdigit.texi: Likewise.
42581         * doc/posix-functions/iswgraph.texi: Likewise.
42582         * doc/posix-functions/iswlower.texi: Likewise.
42583         * doc/posix-functions/iswprint.texi: Likewise.
42584         * doc/posix-functions/iswpunct.texi: Likewise.
42585         * doc/posix-functions/iswspace.texi: Likewise.
42586         * doc/posix-functions/iswupper.texi: Likewise.
42587         * doc/posix-functions/iswxdigit.texi: Likewise.
42588         Reported by Alain Guibert.
42589
42590 2008-04-21  Bruno Haible  <bruno@clisp.org>
42591
42592         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
42593         Patch by Alain Guibert.
42594
42595 2008-04-21  Bruno Haible  <bruno@clisp.org>
42596
42597         Fix test failures on mingw.
42598         * tests/test-xstrtol.c (print_no_progname): New function.
42599         (main): Install it in error_print_progname hook.
42600         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
42601         * tests/test-xstrtoimax.sh: Likewise.
42602         * tests/test-xstrtoumax.sh: Likewise.
42603
42604 2008-04-21  Bruno Haible  <bruno@clisp.org>
42605
42606         Fix test failure on mingw.
42607         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
42608
42609 2008-04-21  Bruno Haible  <bruno@clisp.org>
42610
42611         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
42612         Actually assign a value.
42613
42614 2008-04-20  Bruno Haible  <bruno@clisp.org>
42615
42616         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
42617         take 2.
42618         * lib/canonicalize.c (canonicalize_file_name): Elide if the
42619         'canonicalize-lgpl' module is also used.
42620         * lib/canonicalize-lgpl.c: Undo last change.
42621         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
42622
42623 2008-04-20  Bruno Haible  <bruno@clisp.org>
42624
42625         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
42626         config.h. Provide _mkdir based fallback for mingw.
42627         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
42628         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
42629         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
42630         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
42631         rather than defining mkdir in config.h.
42632         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
42633         (gl_SYS_STAT_H_DEFAULTS): New macro.
42634         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
42635         HAVE_IO_H any more.
42636         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
42637         HAVE_DECL_MKDIR and HAVE_IO_H.
42638
42639 2008-04-20  Bruno Haible  <bruno@clisp.org>
42640
42641         * lib/isapipe.c: Port to native Windows platforms.
42642
42643 2008-04-20  Bruno Haible  <bruno@clisp.org>
42644
42645         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
42646
42647 2008-04-21  Eric Blake  <ebb9@byu.net>
42648
42649         Work around preprocessors that don't handle UINTMAX_MAX.
42650         * lib/memchr2.c (memchr2): Avoid embedded #if.
42651         Reported by Alain Guibert, fix suggested by Bruno Haible.
42652
42653 2008-04-21  Simon Josefsson  <simon@josefsson.org>
42654
42655         * doc/posix-functions/strftime.texi (strftime): Explain better
42656         Windows incompatibility.  Suggested by Micah Cowan
42657         <micah@cowan.name>.
42658
42659 2008-04-20  Bruno Haible  <bruno@clisp.org>
42660
42661         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
42662         unistr/u8-mblen.
42663
42664 2008-04-20  Bruno Haible  <bruno@clisp.org>
42665
42666         Fix test failure on platforms with non-GNU iconv.
42667         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
42668         (U_TO_U8): Use it, rather than u16_to_u8.
42669         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
42670         units at the end of the input string.
42671         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
42672
42673 2008-04-20  Bruno Haible  <bruno@clisp.org>
42674
42675         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
42676         when the resulting length is 0.
42677         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
42678
42679 2008-04-20  Bruno Haible  <bruno@clisp.org>
42680
42681         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
42682         works.
42683         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
42684
42685 2008-04-20  Bruno Haible  <bruno@clisp.org>
42686
42687         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
42688         * modules/tsearch-tests (configure.ac): Test for initstate function.
42689
42690 2008-04-20  Bruno Haible  <bruno@clisp.org>
42691
42692         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
42693         for nlink_t if missing.
42694         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
42695
42696 2008-04-19  Bruno Haible  <bruno@clisp.org>
42697
42698         Work around snprintf bug on Linux libc5.
42699         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
42700         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42701         gl_SNPRINTF_SIZE1.
42702         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42703         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
42704         that test failed.
42705         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
42706         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
42707         * modules/snprintf (Files): Add m4/printf.m4.
42708         * modules/vsnprintf (Files): Likewise.
42709         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
42710         * doc/posix-functions/vsnprintf.texi: Likewise.
42711
42712 2008-04-19  Bruno Haible  <bruno@clisp.org>
42713
42714         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
42715         from 0.0058 to less than 10^-7.
42716
42717 2008-04-19  Bruno Haible  <bruno@clisp.org>
42718
42719         Fix rounding when a precision is given.
42720         * lib/vasnprintf.c (is_borderline): New function.
42721         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
42722         9...9x.
42723         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
42724         %e, %g.
42725         * tests/test-vasprintf-posix.c (test_function): Likewise.
42726         * tests/test-snprintf-posix.h (test_function): Likewise.
42727         * tests/test-sprintf-posix.h (test_function): Likewise.
42728         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
42729         * tests/test-printf-posix.h (test_function): Likewise.
42730         * tests/test-printf-posix.output: Update.
42731         Reported by John Darrington <john@darrington.wattle.id.au> via
42732         Ben Pfaff <blp@cs.stanford.edu>.
42733
42734 2008-04-18  Simon Josefsson  <simon@josefsson.org>
42735
42736         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
42737         Suggested by Bruno Haible <bruno@clisp.org>.
42738
42739 2008-04-17  Bruno Haible  <bruno@clisp.org>
42740
42741         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
42742         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
42743         implementation.
42744         Patch by Bruce Merry <bmerry@gmail.com>.
42745
42746 2008-04-17  Simon Josefsson  <simon@josefsson.org>
42747
42748         * doc/posix-functions/strftime.texi (strftime): Mention that %e
42749         doesn't work under Windows.
42750
42751 2008-04-16  Bruno Haible  <bruno@clisp.org>
42752
42753         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
42754         New macros.
42755         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
42756         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
42757         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
42758         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
42759         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
42760         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
42761         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
42762         macros.
42763         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
42764         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
42765         Northern Sotho, Uighur.
42766
42767 2008-04-16  Bruno Haible  <bruno@clisp.org>
42768
42769         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
42770         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
42771         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
42772         Reported by Daniel Bergström <daniel@octocode.com>.
42773
42774 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
42775             Bruno Haible  <bruno@clisp.org>
42776
42777         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
42778         function.
42779         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
42780         New functions, mostly extracted from gl_locale_name_default.
42781         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
42782
42783 2008-04-16  Eric Blake  <ebb9@byu.net>
42784
42785         Adjust strtod detection to catch glibc 2.7 bug.
42786         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
42787         Reported by John Gatewood Ham.
42788
42789 2008-04-16  Bruno Haible  <bruno@clisp.org>
42790
42791         Add tentative support for Linux libc5.
42792         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
42793         * lib/fpurge.c (fpurge): Likewise.
42794         * lib/freadable.c (freadable): Likewise.
42795         * lib/freadahead.c (freadahead): Likewise.
42796         * lib/freading.c (freading): Likewise.
42797         * lib/freadptr.c (freadptr): Likewise.
42798         * lib/freadseek.c (freadptrinc): Likewise.
42799         * lib/fseeko.c (rpl_fseeko): Likewise.
42800         * lib/fseterr.c (fseterr): Likewise.
42801         * lib/fwritable.c (fwritable): Likewise.
42802         * lib/fwriting.c (fwriting): Likewise.
42803         Reported by Alain Guibert <alguibert+bts@free.fr>.
42804
42805 2008-04-15  Bruno Haible  <bruno@clisp.org>
42806
42807         * modules/mathl (configure.ac): Define module indicator.
42808
42809 2008-04-15  Bruno Haible  <bruno@clisp.org>
42810
42811         * lib/logl.c (logl): Remove unused variables.
42812
42813 2008-04-15  Bruno Haible  <bruno@clisp.org>
42814
42815         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
42816         fails.
42817
42818 2008-04-15  Bruno Haible  <bruno@clisp.org>
42819
42820         * lib/trim.c (trim2): Fix argument of isspace() macro.
42821
42822 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
42823
42824         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
42825         to 0.
42826         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
42827
42828 2008-04-14  Bruno Haible  <bruno@clisp.org>
42829
42830         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
42831         AC_LANG_PROGRAM argument.
42832         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
42833         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
42834         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42835         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
42836         * m4/math_h.m4 (gl_MATH_H): Likewise.
42837         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
42838         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42839         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
42840         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
42841         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
42842         * m4/regex.m4 (gl_REGEX): Likewise.
42843         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
42844         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
42845         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42846         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
42847         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42848         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42849         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42850         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
42851
42852 2008-04-14  Jim Meyering  <meyering@redhat.com>
42853
42854         test-strtod: fix typos: s/abs/fabs/
42855         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
42856
42857 2008-04-13  Bruno Haible  <bruno@clisp.org>
42858
42859         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
42860         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
42861         module is also used and while not building the reloc-wrapper.
42862
42863 2008-04-13  Bruno Haible  <bruno@clisp.org>
42864
42865         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
42866
42867 2008-04-13  Bruno Haible  <bruno@clisp.org>
42868
42869         Fix AIX compilation failure introduced on 2008-04-02.
42870         * tests/test-frexp.c (exp): Undefine before redefining.
42871         * tests/test-frexpl.c (exp): Likewise.
42872
42873 2008-04-13  Bruno Haible  <bruno@clisp.org>
42874
42875         Work around a HP-UX stdio bug.
42876         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
42877         * tests/test-ftello.c (main): Likewise.
42878         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
42879         * doc/posix-functions/ftello.texi: Likewise.
42880
42881 2008-04-13  Bruno Haible  <bruno@clisp.org>
42882
42883         Make test-signbit pass on HP-UX/hppa.
42884         * tests/test-signbit.c (minus_zerol): New variable.
42885         (test_signbitl): Use it.
42886
42887 2008-04-13  Bruno Haible  <bruno@clisp.org>
42888
42889         Make truncl work on OSF/1 4.0.
42890         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
42891         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
42892         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
42893         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
42894         HAVE_DECL_TRUNCL.
42895         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
42896         HAVE_DECL_TRUNCL.
42897         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
42898
42899 2008-04-13  Bruno Haible  <bruno@clisp.org>
42900
42901         * lib/unictype.h: Remove trailing comma from enumeration definitions.
42902
42903 2008-04-13  Bruno Haible  <bruno@clisp.org>
42904
42905         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
42906         expression, so as to avoid HP-UX 11 cc compiler bug.
42907
42908 2008-04-13  Bruno Haible  <bruno@clisp.org>
42909
42910         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
42911
42912 2008-04-13  Bruno Haible  <bruno@clisp.org>
42913
42914         * lib/git-merge-changelog.c: Remove empty declaration outside of
42915         functions.
42916
42917 2008-04-13  Bruno Haible  <bruno@clisp.org>
42918
42919         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
42920
42921 2008-04-13  Bruno Haible  <bruno@clisp.org>
42922
42923         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
42924         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
42925         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
42926         also if it exists but lacks definitions of the SHUT_* macros.
42927         * modules/sys_socket (Description): Update.
42928         Reported by Elbert Pol <e.pol@chello.nl>.
42929
42930 2008-04-13  Bruno Haible  <bruno@clisp.org>
42931
42932         * lib/localcharset.c (OS2): Don't redefine if already defined.
42933         Reported by Elbert Pol <e.pol@chello.nl>.
42934
42935 2008-04-13  Bruno Haible  <bruno@clisp.org>
42936
42937         * lib/binary-io.h [__EMX__]: Include <io.h>.
42938         Reported by Elbert Pol <e.pol@chello.nl>.
42939
42940 2008-04-12  Bruno Haible  <bruno@clisp.org>
42941
42942         * lib/fpucw.h: Enable the definitions also for x86_64.
42943         Needed for NetBSD/x86_64.
42944         Reported by Thomas Klausner <tk@giga.or.at>.
42945
42946 2008-04-12  Bruno Haible  <bruno@clisp.org>
42947
42948         * tests/test-strtod.c: Include isnand.h.
42949         (main): Use isnand instead of isnan.
42950         Reported by Jim Meyering.
42951
42952 2008-04-12  Bruno Haible  <bruno@clisp.org>
42953
42954         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
42955         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
42956
42957 2008-04-12  Jim Meyering  <meyering@redhat.com>
42958
42959         * m4/math_h.m4 (gl_MATH_H): Fix typos.
42960
42961 2008-04-12  Bruno Haible  <bruno@clisp.org>
42962
42963         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
42964         Reported by Elbert Pol <e.pol@chello.nl>.
42965
42966 2008-04-12  Eric Blake  <ebb9@byu.net>
42967
42968         Work around Solaris 10 math.h bug.
42969         * m4/math_h.m4 (gl_MATH_H): Check for bug.
42970         (gl_MATH_H_DEFAULTS): Set up default.
42971         * modules/math (Makefile.am): Replace new indicators.
42972         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
42973         * tests/test-math.c (main): Test this.
42974         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
42975         * doc/posix-headers/math.texi (math.h): Mention bug.
42976         Reported by Nelson H. F. Beebe and Jim Meyering.
42977
42978 2008-04-11  Bruno Haible  <bruno@clisp.org>
42979
42980         Adapt to future versions of Apple GCC.
42981         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
42982         Reported by Peter O'Gorman <peter@pogma.com>.
42983
42984 2008-04-11  Bruno Haible  <bruno@clisp.org>
42985
42986         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
42987
42988 2008-04-11  Bruno Haible  <bruno@clisp.org>
42989
42990         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
42991
42992         * modules/getaddrinfo-tests (Makefile.am): Define
42993         test_getaddrinfo_LDADD.
42994
42995 2008-04-11  Bruno Haible  <bruno@clisp.org>
42996
42997         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
42998         (init): Fix syntax error.
42999         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
43000         is declared.
43001
43002 2008-04-11  Bruno Haible  <bruno@clisp.org>
43003
43004         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
43005         * modules/glob (Depends-on): Add stdbool.
43006
43007 2008-04-11  Bruno Haible  <bruno@clisp.org>
43008
43009         * lib/trim.c: Include <string.h>.
43010
43011 2008-04-11  Eric Blake  <ebb9@byu.net>
43012
43013         Avoid compile failure on OS/2.
43014         * lib/regex_internal.h (internal_function): Disable optimization
43015         on OS/2 (__EMX__), where it caused compiler error.
43016         Reported by Elbert Pol.
43017
43018 2008-04-11  Bruno Haible  <bruno@clisp.org>
43019
43020         Flush the standard error stream before aborting. Needed on mingw.
43021         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
43022         * tests/test-array_list.c (ASSERT): Likewise.
43023         * tests/test-array_oset.c (ASSERT): Likewise.
43024         * tests/test-avltree_list.c (ASSERT): Likewise.
43025         * tests/test-avltree_oset.c (ASSERT): Likewise.
43026         * tests/test-avltreehash_list.c (ASSERT): Likewise.
43027         * tests/test-binary-io.c (ASSERT): Likewise.
43028         * tests/test-byteswap.c (ASSERT): Likewise.
43029         * tests/test-c-ctype.c (ASSERT): Likewise.
43030         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
43031         * tests/test-c-strcasestr.c (ASSERT): Likewise.
43032         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
43033         * tests/test-c-strstr.c (ASSERT): Likewise.
43034         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
43035         * tests/test-canonicalize.c (ASSERT): Likewise.
43036         * tests/test-carray_list.c (ASSERT): Likewise.
43037         * tests/test-ceilf1.c (ASSERT): Likewise.
43038         * tests/test-ceilf2.c (ASSERT): Likewise.
43039         * tests/test-ceill.c (ASSERT): Likewise.
43040         * tests/test-count-one-bits.c (ASSERT): Likewise.
43041         * tests/test-fbufmode.c (ASSERT): Likewise.
43042         * tests/test-fflush2.c (ASSERT): Likewise.
43043         * tests/test-floorf1.c (ASSERT): Likewise.
43044         * tests/test-floorf2.c (ASSERT): Likewise.
43045         * tests/test-floorl.c (ASSERT): Likewise.
43046         * tests/test-fopen.c (ASSERT): Likewise.
43047         * tests/test-fpending.c (ASSERT): Likewise.
43048         * tests/test-fprintf-posix.c (ASSERT): Likewise.
43049         * tests/test-fpurge.c (ASSERT): Likewise.
43050         * tests/test-freadable.c (ASSERT): Likewise.
43051         * tests/test-freadahead.c (ASSERT): Likewise.
43052         * tests/test-freading.c (ASSERT): Likewise.
43053         * tests/test-freadptr.c (ASSERT): Likewise.
43054         * tests/test-freadptr2.c (ASSERT): Likewise.
43055         * tests/test-freadseek.c (ASSERT): Likewise.
43056         * tests/test-freopen.c (ASSERT): Likewise.
43057         * tests/test-frexp.c (ASSERT): Likewise.
43058         * tests/test-frexpl.c (ASSERT): Likewise.
43059         * tests/test-fseek.c (ASSERT): Likewise.
43060         * tests/test-fseeko.c (ASSERT): Likewise.
43061         * tests/test-fstrcmp.c (ASSERT): Likewise.
43062         * tests/test-ftell.c (ASSERT): Likewise.
43063         * tests/test-ftello.c (ASSERT): Likewise.
43064         * tests/test-func.c (ASSERT): Likewise.
43065         * tests/test-fwritable.c (ASSERT): Likewise.
43066         * tests/test-fwriting.c (ASSERT): Likewise.
43067         * tests/test-getdelim.c (ASSERT): Likewise.
43068         * tests/test-getline.c (ASSERT): Likewise.
43069         * tests/test-i-ring.c (ASSERT): Likewise.
43070         * tests/test-iconv-utf.c (ASSERT): Likewise.
43071         * tests/test-iconv.c (ASSERT): Likewise.
43072         * tests/test-isfinite.c (ASSERT): Likewise.
43073         * tests/test-isnand.c (ASSERT): Likewise.
43074         * tests/test-isnanf.c (ASSERT): Likewise.
43075         * tests/test-isnanl.h (ASSERT): Likewise.
43076         * tests/test-ldexpl.c (ASSERT): Likewise.
43077         * tests/test-linked_list.c (ASSERT): Likewise.
43078         * tests/test-linkedhash_list.c (ASSERT): Likewise.
43079         * tests/test-localename.c (ASSERT): Likewise.
43080         * tests/test-lseek.c (ASSERT): Likewise.
43081         * tests/test-mbscasecmp.c (ASSERT): Likewise.
43082         * tests/test-mbscasestr1.c (ASSERT): Likewise.
43083         * tests/test-mbscasestr2.c (ASSERT): Likewise.
43084         * tests/test-mbscasestr3.c (ASSERT): Likewise.
43085         * tests/test-mbscasestr4.c (ASSERT): Likewise.
43086         * tests/test-mbschr.c (ASSERT): Likewise.
43087         * tests/test-mbscspn.c (ASSERT): Likewise.
43088         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
43089         * tests/test-mbspbrk.c (ASSERT): Likewise.
43090         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
43091         * tests/test-mbsrchr.c (ASSERT): Likewise.
43092         * tests/test-mbsspn.c (ASSERT): Likewise.
43093         * tests/test-mbsstr1.c (ASSERT): Likewise.
43094         * tests/test-mbsstr2.c (ASSERT): Likewise.
43095         * tests/test-mbsstr3.c (ASSERT): Likewise.
43096         * tests/test-memchr2.c (ASSERT): Likewise.
43097         * tests/test-memmem.c (ASSERT): Likewise.
43098         * tests/test-open.c (ASSERT): Likewise.
43099         * tests/test-printf-frexp.c (ASSERT): Likewise.
43100         * tests/test-printf-frexpl.c (ASSERT): Likewise.
43101         * tests/test-printf-posix.c (ASSERT): Likewise.
43102         * tests/test-quotearg.c (ASSERT): Likewise.
43103         * tests/test-rbtree_list.c (ASSERT): Likewise.
43104         * tests/test-rbtree_oset.c (ASSERT): Likewise.
43105         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
43106         * tests/test-round1.c (ASSERT): Likewise.
43107         * tests/test-roundf1.c (ASSERT): Likewise.
43108         * tests/test-roundl.c (ASSERT): Likewise.
43109         * tests/test-signbit.c (ASSERT): Likewise.
43110         * tests/test-sleep.c (ASSERT): Likewise.
43111         * tests/test-snprintf-posix.c (ASSERT): Likewise.
43112         * tests/test-snprintf.c (ASSERT): Likewise.
43113         * tests/test-sprintf-posix.c (ASSERT): Likewise.
43114         * tests/test-stat-time.c (ASSERT): Likewise.
43115         * tests/test-strcasestr.c (ASSERT): Likewise.
43116         * tests/test-strerror.c (ASSERT): Likewise.
43117         * tests/test-striconv.c (ASSERT): Likewise.
43118         * tests/test-striconveh.c (ASSERT): Likewise.
43119         * tests/test-striconveha.c (ASSERT): Likewise.
43120         * tests/test-strsignal.c (ASSERT): Likewise.
43121         * tests/test-strstr.c (ASSERT): Likewise.
43122         * tests/test-strtod.c (ASSERT): Likewise.
43123         * tests/test-trunc1.c (ASSERT): Likewise.
43124         * tests/test-trunc2.c (ASSERT): Likewise.
43125         * tests/test-truncf1.c (ASSERT): Likewise.
43126         * tests/test-truncf2.c (ASSERT): Likewise.
43127         * tests/test-truncl.c (ASSERT): Likewise.
43128         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
43129         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
43130         * tests/test-vasnprintf.c (ASSERT): Likewise.
43131         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
43132         * tests/test-vasprintf.c (ASSERT): Likewise.
43133         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
43134         * tests/test-vprintf-posix.c (ASSERT): Likewise.
43135         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
43136         * tests/test-vsnprintf.c (ASSERT): Likewise.
43137         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
43138         * tests/test-wcwidth.c (ASSERT): Likewise.
43139         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
43140         * tests/test-xprintf-posix.c (ASSERT): Likewise.
43141         * tests/test-xvasprintf.c (ASSERT): Likewise.
43142         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
43143         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
43144         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
43145         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
43146         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
43147         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
43148         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
43149         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
43150         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
43151         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
43152         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
43153         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
43154         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
43155         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
43156         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
43157         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
43158         * tests/unictype/test-block_list.c (ASSERT): Likewise.
43159         * tests/unictype/test-block_of.c (ASSERT): Likewise.
43160         * tests/unictype/test-block_test.c (ASSERT): Likewise.
43161         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
43162         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
43163         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
43164         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
43165         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
43166         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
43167         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
43168         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
43169         * tests/unictype/test-combining.c (ASSERT): Likewise.
43170         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
43171         * tests/unictype/test-digit.c (ASSERT): Likewise.
43172         * tests/unictype/test-mirror.c (ASSERT): Likewise.
43173         * tests/unictype/test-numeric.c (ASSERT): Likewise.
43174         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
43175         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
43176         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
43177         * tests/unictype/test-scripts.c (ASSERT): Likewise.
43178         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
43179         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
43180         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
43181         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
43182         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
43183         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
43184         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
43185         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
43186         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
43187         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
43188         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
43189         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
43190         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
43191         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
43192         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
43193         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
43194         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
43195         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
43196         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
43197         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
43198         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
43199         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
43200         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
43201         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
43202         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
43203         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
43204         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
43205         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
43206         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
43207         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
43208         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
43209         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
43210         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
43211         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
43212         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
43213         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
43214         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
43215         Reported by Eric Blake.
43216
43217 2008-04-11  Bruno Haible  <bruno@clisp.org>
43218
43219         * lib/wchar.in.h: Tweak comment.
43220
43221 2008-04-11  Bruno Haible  <bruno@clisp.org>
43222
43223         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
43224         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
43225         gl_COMMON.
43226         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
43227
43228 2008-04-11  Bruno Haible  <bruno@clisp.org>
43229
43230         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
43231
43232 2008-04-11  Simon Josefsson  <simon@josefsson.org>
43233
43234         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
43235         of attempting to use non-existing /dev/*random.  Based on patch
43236         from Adam Strzelecki <ono@java.pl> in
43237         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
43238
43239 2008-04-08  Bruno Haible  <bruno@clisp.org>
43240
43241         Add tentative support for emx+gcc.
43242         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
43243         * lib/fpurge.c (fpurge): Likewise.
43244         * lib/freadable.c (freadable): Likewise.
43245         * lib/freadahead.c (freadahead): Likewise.
43246         * lib/freading.c (freading): Likewise.
43247         * lib/freadptr.c (freadptr): Likewise.
43248         * lib/freadseek.c (freadptrinc): Likewise.
43249         * lib/fseeko.c (rpl_fseeko): Likewise.
43250         * lib/fseterr.c (fseterr): Likewise.
43251         * lib/fwritable.c (fwritable): Likewise.
43252         * lib/fwriting.c (fwriting): Likewise.
43253         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
43254
43255 2008-04-09  Eric Blake  <ebb9@byu.net>
43256
43257         Avoid some autoconf warnings.
43258         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
43259         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
43260         * m4/afs.m4 (gl_AFS): Likewise.
43261         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
43262         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
43263         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43264         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
43265         (gl_INTEGER_TYPE_SUFFIX): Likewise.
43266         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
43267         (AC_CHECK_DECLS_ONCE): Likewise.
43268         Rename file...
43269         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
43270         gnulib-tool requires autoconf 2.59 or better.
43271         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
43272
43273 2008-04-08  Eric Blake  <ebb9@byu.net>
43274
43275         Use 'git describe --match' if present (added in git 1.5.5).
43276         * build-aux/git-version-gen: Limit result to tags that match 'v*'
43277         if possible.
43278
43279 2008-04-08  Bruno Haible  <bruno@clisp.org>
43280
43281         Add tentative support for OpenServer.
43282         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
43283         _ptr, _cnt.
43284         * lib/fpurge.c (fpurge): Likewise.
43285         * lib/freadable.c (freadable): Likewise.
43286         * lib/freadahead.c (freadahead): Likewise.
43287         * lib/freading.c (freading): Likewise.
43288         * lib/freadptr.c (freadptr): Likewise.
43289         * lib/freadseek.c (freadptrinc): Likewise.
43290         * lib/fseeko.c (rpl_fseeko): Likewise.
43291         * lib/fseterr.c (fseterr): Likewise.
43292         * lib/fwritable.c (fwritable): Likewise.
43293         * lib/fwriting.c (fwriting): Likewise.
43294         Reported by Roger Cornelius <rac@tenzing.org> and
43295         Brian K. White <brian@aljex.com>.
43296
43297 2008-04-06  Jim Meyering  <meyering@redhat.com>
43298
43299         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
43300
43301 2008-04-06  Bruno Haible  <bruno@clisp.org>
43302
43303         Avoid possible error with non-ASCII bytes in UTF-8 locales.
43304         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
43305         * tests/test-printf-posix.sh: Likewise.
43306         * tests/test-vfprintf-posix.sh: Likewise.
43307         * tests/test-vprintf-posix.sh: Likewise.
43308         * tests/test-xprintf-posix.sh: Likewise.
43309
43310 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43311
43312         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
43313         hide error from 'ls', needed on OS/2.
43314         Report by Elbert Pol <elbert.pol@gmail.com>.
43315
43316 2008-04-04  Eric Blake  <ebb9@byu.net>
43317
43318         Make test-fseeko.c failures meaningful.
43319         * tests/test-fseeko.c: Print line number on failure.
43320         * tests/test-fseek.c: Likewise.
43321         Reported by Nelson H. F. Beebe.
43322
43323         Improve strtod bug detection check.
43324         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
43325         required for Solaris 10.
43326         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
43327
43328 2008-04-04  Bruno Haible  <bruno@clisp.org>
43329
43330         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
43331         by m4/setenv.m4.
43332
43333 2008-04-03  Eric Blake  <ebb9@byu.net>
43334
43335         Ensure sane .version contents.
43336         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
43337         version string.
43338         * build-aux/git-version-gen: Improve documentation.
43339
43340         Make GNU make output nicer.
43341         * top/GNUmakefile [!_have-Makefile]: Add dependency on
43342         MAKECMDGOALS to enforce message for all command line targets.  Set
43343         srcdir for use in maint.mk.
43344
43345         Another maintainer tweak.
43346         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
43347         a target that regenerates version.
43348
43349 2008-04-03  Jim Meyering  <meyering@redhat.com>
43350
43351         vc-list-files: don't cause coreutils "make po-check" failure
43352         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
43353
43354 2008-04-03  Eric Blake  <ebb9@byu.net>
43355
43356         Allow VPATH usage of vc-list-files.
43357         * build-aux/vc-list-files (scriptversion): Add timestamp.
43358         (options): Add --help, --version, -C.
43359         (CVS): Support installed cvsu.
43360
43361 2008-04-02  Bruno Haible  <bruno@clisp.org>
43362
43363         Avoid some "statement with no effect" warnings from gcc.
43364         * tests/test-wctype.c (main): Explicitly ignore unused values.
43365         Reported by Jim Meyering.
43366
43367 2008-04-02  Jim Meyering  <meyering@redhat.com>
43368
43369         Avoid some warnings from "gcc -Wshadow".
43370         * tests/test-frexp.c (exp): Define to a different identifier.
43371         * tests/test-frexpl.c (exp): Likewise.
43372
43373 2008-04-03  Jim Meyering  <meyering@redhat.com>
43374
43375         bootstrap: remove dangling *.[ch] symlinks from lib
43376         * build-aux/bootstrap [dangling symlink removal]: Move find's
43377         -depth option to precede all others, to avoid a warning.
43378         Remove *.[ch] files too, and from "$source_base" (usually lib/).
43379
43380 2008-04-02  Bruno Haible  <bruno@clisp.org>
43381
43382         Avoid some warnings from "gcc -Wshadow".
43383         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
43384         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
43385         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
43386         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
43387         Reported by Jim Meyering.
43388
43389 2008-04-01  Bruno Haible  <bruno@clisp.org>
43390
43391         Fix test to work on IRIX 6.5 with cc.
43392         * tests/test-math.c (numeric_equal): New function.
43393         (main): Use it.
43394
43395 2008-04-01  Bruno Haible  <bruno@clisp.org>
43396
43397         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
43398
43399 2008-04-01  Bruno Haible  <bruno@clisp.org>
43400
43401         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
43402         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43403         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
43404         (Depends-on): Remove math.
43405
43406         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
43407         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43408         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
43409         (Depends-on): Remove math.
43410
43411         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
43412         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43413         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
43414         (Depends-on): Remove math.
43415         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
43416         (Depends-on): Remove math.
43417
43418         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
43419         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43420         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
43421         (Depends-on): Remove math.
43422         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
43423         (Depends-on): Remove math.
43424
43425         * tests/test-round1.c: Include nan.h.
43426         (main): Use NaNd instead of NAN.
43427         * modules/round-tests (Files): Add tests/nan.h.
43428
43429         * tests/test-trunc1.c: Include nan.h.
43430         (main): Use NaNd instead of NAN.
43431         * modules/trunc-tests (Files): Add tests/nan.h.
43432
43433         * tests/test-roundf1.c: Include nan.h.
43434         (main): Use NaNf instead of NAN.
43435         * modules/roundf-tests (Files): Add tests/nan.h.
43436
43437         * tests/test-truncf1.c: Include nan.h.
43438         (main): Use NaNf instead of NAN.
43439         * modules/truncf-tests (Files): Add tests/nan.h.
43440
43441         * tests/test-ceilf1.c: Include nan.h.
43442         (main): Use NaNf instead of NAN.
43443         * modules/ceilf-tests (Files): Add tests/nan.h.
43444
43445         * tests/test-floorf1.c: Include nan.h.
43446         (main): Use NaNf instead of NAN.
43447         * modules/floorf-tests (Files): Add tests/nan.h.
43448
43449         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
43450         (main): Use NaNf instead of NAN.
43451         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
43452
43453         * tests/test-isnand.c: Include nan.h instead of <math.h>.
43454         (main): Use NaNd instead of NAN.
43455         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
43456
43457         * tests/test-frexp.c: Include nan.h.
43458         (main): Use NaNd instead of NAN.
43459         * modules/frexp-tests (Files): Add tests/nan.h.
43460
43461         * lib/isnan.c: Don't include <math.h>.
43462         (FUNC): Don't use NAN macro.
43463         * modules/isnand-nolibm (Depends-on): Remove math.
43464         * modules/isnanf-nolibm (Depends-on): Remove math.
43465         * modules/isnanl (Depends-on): Remove math.
43466         * modules/isnanl-nolibm (Depends-on): Remove math.
43467
43468         * tests/nan.h: New file.
43469
43470 2008-04-01  Eric Blake  <ebb9@byu.net>
43471
43472         Fix typos.
43473         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
43474         values to be the right type.
43475
43476         For now, cater to gnulib strtod inaccuracies.
43477         * tests/test-strtod.c (main): Allow 1-ulp error on expected
43478         fractional results.  While not as nice from a QoI perspective, it
43479         is a quicker patch than correctly implementing decimal to binary
43480         rounding.
43481
43482 2008-03-31  Eric Blake  <ebb9@byu.net>
43483
43484         Guarantee a definition of NAN.
43485         * lib/math.in.h (NAN): Define if missing.
43486         * tests/test-math.c (main): Test it.
43487         * doc/posix-headers/math.texi (math.h): Document this.
43488         * lib/isnan.c (rpl_isnand): Use it.
43489         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
43490         * tests/test-floorf1.c (NaN): Likewise.
43491         * tests/test-frexp.c (NaN): Likewise.
43492         * tests/test-isnand.c (NaN): Likewise.
43493         * tests/test-isnanf.c (NaN): Likewise.
43494         * tests/test-round1.c (NaN): Likewise.
43495         * tests/test-roundf1.c (NaN): Likewise.
43496         * tests/test-snprintf-posix.h (NaN): Likewise.
43497         * tests/test-sprintf-posix.h (NaN): Likewise.
43498         * tests/test-trunc1.c (NaN): Likewise.
43499         * tests/test-truncf1.c (NaN): Likewise.
43500         * tests/test-vasnprintf-posix.c (NaN): Likewise.
43501         * tests/test-vasprintf-posix.c (NaN): Likewise.
43502         * modules/isnand-nolibm (Depends-on): Add math.
43503         * modules/isnanf-nolibm (Depends-on): Likewise.
43504         * modules/isnanl (Depends-on): Likewise.
43505         * modules/isnanl-nolibm (Depends-on): Likewise.
43506         * modules/snprintf-posix-tests (Depends-on): Likewise.
43507         * modules/sprintf-posix-tests (Depends-on): Likewise.
43508         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
43509         * modules/vsprintf-posix-tests (Depends-on): Likewise.
43510         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
43511         * modules/vasprintf-posix-tests (Depends-on): Likewise.
43512
43513 2008-03-31  Bruno Haible  <bruno@clisp.org>
43514
43515         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
43516         * doc/posix-functions/strtod.texi: Likewise.
43517
43518 2008-03-31  Bruno Haible  <bruno@clisp.org>
43519
43520         * tests/test-strtod.c (main): Don't use C99 syntax.
43521
43522 2008-03-31  Bruno Haible  <bruno@clisp.org>
43523
43524         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
43525         Reported by Eric Blake.
43526
43527 2008-03-31  Jim Meyering  <meyering@redhat.com>
43528
43529         Don't compare actual signbit return values.
43530         * tests/test-strtod.c (main): Rather, compare only their
43531         zero/non-zero nature.
43532
43533 2008-03-31  Eric Blake  <ebb9@byu.net>
43534
43535         More strtod documentation.
43536         * doc/posix-functions/strtod.texi (strtod): Interpret more test
43537         failures as distinct bugs.
43538
43539 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
43540
43541         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
43542         Problem reported by Erik Benada in
43543         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
43544
43545 2008-03-30  Bruno Haible  <bruno@clisp.org>
43546
43547         * tests/test-strtod.c: Add comments about which assertion fails on which
43548         platform.
43549         * doc/posix-functions/strtod.texi: Add info about many more platforms.
43550
43551 2008-03-30  Eric Blake  <ebb9@byu.net>
43552
43553         Test signbit behavior on zeros.
43554         * tests/test-signbit.c (test_signbitf): Add tests for zero.
43555         (test_signbitd, test_signbitl): Likewise.
43556
43557         More strtod touchups.
43558         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
43559         sign of negative underflow, for now.  Use .5, not .1.
43560         * doc/posix-functions/strtod.texi (strtod): Mention these
43561         limitations.
43562         Reported by Jim Meyering.
43563
43564 2008-03-30  Bruno Haible  <bruno@clisp.org>
43565
43566         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
43567         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
43568
43569 2008-03-30  Bruno Haible  <bruno@clisp.org>
43570
43571         Avoid failure when attempting to return empty iconv results on some
43572         platforms.
43573         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
43574         allocation, don't report ENOMEM when the resulting string is empty.
43575
43576 2008-03-30  Bruno Haible  <bruno@clisp.org>
43577
43578         Fix buffer overrun.
43579         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
43580         Don't consider the width for tmp_length. Check count against tmp_length
43581         before doing the padding. Ensure enough allocation during padding.
43582
43583 2008-03-30  Eric Blake  <ebb9@byu.net>
43584
43585         strtod touchups.
43586         * lib/strtod.c (strtod): Avoid compiler warnings.
43587         Reported by Jim Meyering.
43588
43589 2008-03-30  Bruno Haible  <bruno@clisp.org>
43590
43591         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
43592         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
43593         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
43594         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
43595         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
43596         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
43597         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
43598         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
43599
43600         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
43601         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
43602         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
43603         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
43604         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
43605         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
43606         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
43607         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
43608
43609         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
43610         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
43611         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
43612         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
43613         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
43614         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
43615         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
43616         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
43617
43618         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
43619         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
43620
43621         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
43622         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
43623
43624         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
43625         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
43626
43627         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
43628         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
43629         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
43630
43631         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
43632         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
43633         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
43634
43635         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
43636         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
43637         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
43638
43639         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
43640         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
43641         * modules/vasprintf (Depends-on): Add EOVERFLOW.
43642
43643         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
43644         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
43645         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
43646         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
43647         (Depends-on): Add EOVERFLOW.
43648         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
43649         (Depends-on): Add EOVERFLOW.
43650         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
43651         (Depends-on): Add EOVERFLOW.
43652         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
43653         (Depends-on): Add EOVERFLOW.
43654         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
43655         (Depends-on): Add EOVERFLOW.
43656         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
43657         (Depends-on): Add EOVERFLOW.
43658         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
43659         (Depends-on): Add EOVERFLOW.
43660         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
43661         (Depends-on): Add EOVERFLOW.
43662
43663         * lib/sprintf.c (EOVERFLOW): Remove fallback.
43664         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
43665         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
43666
43667         * lib/snprintf.c (EOVERFLOW): Remove fallback.
43668         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
43669         * modules/snprintf (Depends-on): Add EOVERFLOW.
43670
43671         * lib/poll.c (EOVERFLOW): Remove fallback.
43672         * modules/poll (Depends-on): Add EOVERFLOW.
43673
43674         * lib/getugroups.c (EOVERFLOW): Remove fallback.
43675         * modules/getugroups (Depends-on): Add EOVERFLOW.
43676
43677         * lib/getdelim.c (EOVERFLOW): Remove fallback.
43678         * modules/getdelim (Depends-on): Add EOVERFLOW.
43679
43680         * lib/ftell.c (EOVERFLOW): Remove fallback.
43681         * modules/ftell (Depends-on): Add EOVERFLOW.
43682
43683         * lib/fprintf.c (EOVERFLOW): Remove fallback.
43684         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
43685         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
43686
43687         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
43688
43689         * modules/EOVERFLOW-tests: New file.
43690         * tests/test-EOVERFLOW.c: New file.
43691
43692         * modules/EOVERFLOW: New file.
43693         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
43694
43695 2008-03-30  Bruno Haible  <bruno@clisp.org>
43696
43697         Fix bug introduced on 2007-06-10.
43698         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
43699         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
43700
43701 2008-03-30  Bruno Haible  <bruno@clisp.org>
43702
43703         Improve freadseek's efficiency after ungetc.
43704         * lib/freadseek.c: Include freadahead.h.
43705         (freadptrinc): New function, extracted from freadseek.
43706         (freadseek): Use it in a loop. Use freadahead to determine the number
43707         of loop iterations.
43708         * modules/freadseek (Depends-on): Add freadahead.
43709         (configure.ac): Require AC_C_INLINE.
43710
43711 2008-03-30  Bruno Haible  <bruno@clisp.org>
43712
43713         * lib/freadseek.c (freadseek): Don't ignore the return value of
43714         freadptr.
43715
43716 2008-03-29  Eric Blake  <ebb9@byu.net>
43717
43718         Add hex float support.
43719         * modules/strtod (Depends-on): Add c-ctype.
43720         (Link): Mention POW_LIB.
43721         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
43722         whitespace between 'e' and exponent.
43723         * tests/test-strtod.c (main): Enable hex float tests.
43724         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
43725         now provides.
43726
43727         Document various strtod bugs, with some fixes.
43728         * doc/posix-functions/strtod.texi (strtod): Document bugs with
43729         "-0x", "inf", "nan", and hex constants.
43730         * doc/posix-functions/atof.texi (atof): Likewise.
43731         * modules/stdlib (Makefile.am): Support strtod.
43732         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
43733         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
43734         detect additional strtod bugs.
43735         * lib/stdlib.in.h (rpl_strtod): Add declarations.
43736         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
43737         bool where appropriate.  Parse 'inf' and 'nan'.
43738         * tests/test-strtod.c: New file.
43739         * modules/strtod (Depends-on): Add stdbool, stdlib.
43740         (configure.ac): Turn on module indicator.
43741         * modules/strtod-tests: New module.
43742
43743 2008-03-29  Eric Blake  <ebb9@byu.net>
43744
43745         Fix ftell on mingw.
43746         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
43747         * modules/ftell-tests (Depends-on): Add binary-io.
43748         * modules/ftello-tests (Depends-on): Likewise.
43749         * tests/test-ftell.c (main): Enhance test to cover behavior after
43750         ungetc.  Enforce binary mode.
43751         * tests/test-ftello.c (main): Likewise.
43752
43753         Pass test-freadseek on cygwin.
43754         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
43755         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
43756         ungetc buffer.
43757
43758         * tests/test-fflush2.c (main): Fix typo.
43759
43760 2008-03-29  Bruno Haible  <bruno@clisp.org>
43761
43762         * tests/test-fflush2.c (main): Temporarily disable the contents of
43763         this test.
43764         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
43765         Reported by Eric Blake.
43766
43767 2008-03-28  Simon Josefsson  <simon@josefsson.org>
43768
43769         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
43770         (GC_SHA224_DIGEST_SIZE): Add.
43771
43772         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
43773         (gc_hash_digest_length): Likewise.
43774         (gc_hash_buffer): Likewise.
43775
43776 2008-03-25  Bruno Haible  <bruno@clisp.org>
43777
43778         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
43779         detail which gettext release to use.
43780         Reported by Simon Josefsson.
43781
43782 2008-03-26  Jim Meyering  <meyering@redhat.com>
43783
43784         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
43785         * modules/gnumakefile (clean-GNUmakefile): Also, use
43786         test ... && ... || : syntax rather than if-then ... fi.
43787
43788         gnumakefile: Don't double-quote-expand $(VPATH) value.
43789         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
43790
43791 2008-03-24  Eric Blake  <ebb9@byu.net>
43792
43793         Alter GNUmakefile to install into top directory.
43794         * modules/maintainer-makefile: Split, and add dependency...
43795         * modules/gnumakefile: to this new module.
43796         * build-aux/GNUmakefile: Move...
43797         * top/GNUmakefile: ...here.
43798         * build-aux/maint.mk: Move...
43799         * top/maint.mk: ...here.
43800         * MODULES.html.sh (Support for maintaining...): Document new
43801         module.
43802
43803 2008-03-23  Bruno Haible  <bruno@clisp.org>
43804
43805         * gnulib-tool: New options --vc-files, --no-vc-files.
43806         (func_usage): Document them.
43807         (vc_files): New variable.
43808         (func_import): Consider vc_files.
43809         (func_create_testdir): Set vc_files to empty.
43810         Suggested by Jim Meyering and Karl Berry.
43811
43812 2008-03-23  Bruno Haible  <bruno@clisp.org>
43813
43814         Fix regex compilation error on HP-UX 11.
43815         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
43816         * modules/regex (Files): Add m4/mbstate_t.m4.
43817         Reported by Ton Voon <ton.voon@altinity.com>.
43818
43819 2008-03-23  Bruno Haible  <bruno@clisp.org>
43820
43821         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
43822
43823 2008-03-23  Eric Blake  <ebb9@byu.net>
43824             Bruno Haible  <bruno@clisp.org>
43825
43826         Install files from top/ in the destination directory.
43827         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
43828         augmentation also for the files from top/.
43829         (func_import, func_create_testdir): Rewrite file names:
43830         top/filename -> filename.
43831
43832 2008-03-23  Bruno Haible  <bruno@clisp.org>
43833
43834         Tweak "gnulib --version" output.
43835         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
43836
43837 2008-03-23  Bruno Haible  <bruno@clisp.org>
43838
43839         Tweak "gnulib --version" output.
43840         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
43841         rather than contents of ChangeLog, when possible.
43842
43843 2008-03-21  Eric Blake  <ebb9@byu.net>
43844
43845         More --version tweaks.
43846         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
43847         date of last ChangeLog entry.
43848
43849 2008-03-21  Jim Meyering  <meyering@redhat.com>
43850
43851         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
43852
43853 2008-03-20  Eric Blake  <ebb9@byu.net>
43854
43855         VPATH fix.
43856         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
43857
43858 2008-03-20  Simon Josefsson  <simon@josefsson.org>
43859
43860         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
43861         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
43862
43863 2008-03-20  Eric Blake  <ebb9@byu.net>
43864
43865         Sync GNUmakefile with coreutils.
43866         * build-aux/GNUmakefile (have-Makefile): Rename...
43867         (_have-Makefile): ...to this, for namespace consideration.
43868         (GNUmakefile.cfg): Include, if present.
43869         (_autoreconf): Define a default.
43870         (_is-dist-target): New rule for rebuilds to pick up intra-release
43871         version.
43872         (maint-cfg.mk): Rename...
43873         (cfg.mk): ...to this.
43874
43875 2008-03-18  Jim Meyering  <meyering@redhat.com>
43876
43877         New script and module: mktempd
43878         * MODULES.html.sh (maint+release support): Add mktempd.
43879         * build-aux/mktempd: New file.
43880         * modules/mktempd: New file.
43881
43882 2008-03-15  Jim Meyering  <meyering@redhat.com>
43883
43884         Undo last change.
43885         * lib/sha1.c, lib/md5.c: 63 != ~63.
43886         Reported by Andreas Schwab.
43887
43888         sha1.c, md5.c: Hoist a redundant expression.
43889         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
43890         "ctx->buflen" only once, before calling *_process_block.
43891         * lib/md5.c (md5_process_bytes): Likewise.
43892
43893 2008-03-14  Eric Blake  <ebb9@byu.net>
43894
43895         Bump copyright year in files generated by gnulib-tool.
43896         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
43897         gnulib-tool, rather than hard-coding it.
43898
43899         Fix 'gnulib-tool --version' output to work with git.
43900         * gnulib-tool (func_gnulib_dir): New function, extracted from...
43901         (startup): ...here.
43902         (func_version): Use it to invoke git-version-gen, rather than
43903         relying on CVS keyword expansion.  Modernize wording.
43904         (cvsdatestamp, last_checkin_date, version): Kill unused
43905         variables.
43906
43907 2008-03-12  Jim Meyering  <meyering@redhat.com>
43908
43909         Recognize optional cast of the argument to free.
43910         * build-aux/useless-if-before-free: Update regexps.
43911
43912         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
43913
43914 2008-03-11  Bruno Haible  <bruno@clisp.org>
43915
43916         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
43917         by a single package.
43918         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
43919         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
43920         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
43921         Reported by Sam Steingold <sds@gnu.org>.
43922
43923 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43924
43925         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
43926         repositories.
43927
43928 2008-03-11  Bruno Haible  <bruno@clisp.org>
43929
43930         Avoid conflicts between local macro definitions.
43931         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
43932         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
43933
43934 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
43935             Bruno Haible  <bruno@clisp.org>
43936
43937         Make va_copy work with some version of xlc on AIX 5.1.
43938         * lib/stdarg.in.h: New file.
43939         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
43940         On AIX, use a <stdarg.h> file substitute.
43941         * modules/stdarg (Files): Add lib/stdarg.in.h.
43942         (Depends-on): Add include_next.
43943         (Makefile.am): Build a stdarg.h substitute if requested.
43944         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
43945
43946 2008-03-10  Bruno Haible  <bruno@clisp.org>
43947
43948         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
43949         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43950         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
43951
43952 2008-03-10  Bruno Haible  <bruno@clisp.org>
43953
43954         * modules/stdlib (Depends-on): Add include_next, remove
43955         absolute-header.
43956
43957 2008-03-09  Bruno Haible  <bruno@clisp.org>
43958
43959         * lib/freadahead.h (freadahead): Document more precisely.
43960         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
43961         the sum of both buffer sizes.
43962         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
43963         * NEWS: Document the change.
43964
43965 2008-03-09  Bruno Haible  <bruno@clisp.org>
43966
43967         Extend freadptr to return also the buffer size.
43968         * lib/freadptr.h (freadptr): Add sizep argument.
43969         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
43970         (freadptr): Add sizep argument. Determine buffer size like freadahead
43971         does.
43972         * tests/test-freadptr.c: Don't include freadahead.h.
43973         (main): Adapt for new calling convention of freadptr.
43974         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
43975         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
43976         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
43977         tests/test-freadptr2.sh.
43978         (Depends): Remove freadahead.
43979         (TESTS): Add test-freadptr2.sh.
43980         (check_PROGRAMS): Add test-freadptr2.
43981
43982 2008-03-09  Bruno Haible  <bruno@clisp.org>
43983
43984         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
43985         Report and solution by Simon Josefsson.
43986
43987 2008-03-06  Bruno Haible  <bruno@clisp.org>
43988
43989         Make fflush after ungetc work on BSD platforms.
43990         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
43991         * tests/test-fflush2.c: New file.
43992         * tests/test-fflush2.sh: New file.
43993         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
43994         tests/test-fflush2.c.
43995         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
43996         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
43997
43998 2008-03-06  Eric Blake  <ebb9@byu.net>
43999
44000         Likewise for ftello.
44001         * modules/ftello (Dependencies): Add extensions.
44002         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
44003
44004 2008-03-06  Bruno Haible  <bruno@clisp.org>
44005
44006         * modules/fseeko (Dependencies): Add extensions.
44007         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
44008         Needed on glibc systems.
44009
44010 2008-03-06  Bruno Haible  <bruno@clisp.org>
44011
44012         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
44013         email address.
44014         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44015
44016 2008-03-06  Bruno Haible  <bruno@clisp.org>
44017
44018         * users.txt: Add libgnupdf.
44019
44020 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44021
44022         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
44023         (Header File Substitutes, Function Substitutes,
44024         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
44025         (Build robot for gnulib): Fix typo.
44026
44027 2008-03-06  Bruno Haible  <bruno@clisp.org>
44028
44029         * doc/gnulib-tool.texi (VCS Issues): Small updates.
44030         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44031
44032 2008-03-06  Bruno Haible  <bruno@clisp.org>
44033
44034         * doc/func.texi: New file, extracted from doc/gnulib.texi.
44035         * doc/gnulib.texi: Include it.
44036
44037 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44038
44039         * modules/func (License): Change license to unlimited; there was
44040         no LGPL parts in the module anyway.
44041
44042 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44043
44044         * modules/__func__: Renamed to modules/func.
44045         * modules/__func__-tests: Renamed to modules/func-tests.
44046         * tests/test-__func__.c: Renamed to tests/test-func.c.
44047         * m4/__func__.m4: Renamed to m4/func.m4.
44048         * doc/gnulib.texi (__func__): Section renamed to func.
44049         Suggested by Eric Blake <ebb9@byu.net>.
44050
44051 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44052
44053         * doc/gnulib.texi (__func__): Use C99 terminology when talking
44054         about __func__.  Make example self-contained.  Suggested by Eric
44055         Blake <ebb9@byu.net>.
44056
44057         * tests/test-__func__.c (main): Avoid extraneous () around __func.
44058         Suggested by Eric Blake <ebb9@byu.net>.
44059
44060 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44061
44062         * modules/__func__: New file.
44063         * modules/__func__-tests: New file.
44064         * tests/test-__func__.c: New file.
44065         * m4/__func__.m4: New file.
44066         * doc/gnulib.texi (__func__): Document __func__ module.
44067
44068 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44069
44070         * modules/byteswap (License): Re-license as LGPLv2+.
44071
44072 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44073
44074         * doc/Makefile: Add pdf target.
44075
44076 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44077
44078         * modules/inline (License): Use 'unlimited', since there are only
44079         *.m4 files in this module.
44080
44081 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44082             Bruno Haible  <bruno@clisp.org>
44083
44084         Add support for HP C 7.1 on OpenVMS 8.3.
44085         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
44086
44087 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44088
44089         Update VMS specifics.
44090         * lib/getopt.c [VMS]: Remove include of unixlib.h.
44091
44092 2008-03-02  Jim Meyering  <meyering@redhat.com>
44093
44094         Remove the last dependency on the "free" module.
44095         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
44096         Reported by Bob Proulx.
44097
44098         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
44099
44100         Remove useless "if" tests before free.  Deprecate "free" module.
44101         * doc/posix-functions/free.texi: Mention that this
44102         module is no longer useful.
44103         * modules/free (Notice): Say this module is obsolete.
44104         * modules/readutmp (Depends-on): Remove free.
44105         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
44106         * lib/putenv.c (putenv): Likewise.
44107         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
44108         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
44109         * tests/test-c-strcasestr.c (main): Likewise.
44110         * tests/test-c-strstr.c (main): Likewise.
44111         * tests/test-mbscasestr1.c (main): Likewise.
44112         * tests/test-mbscasestr2.c (main): Likewise.
44113         * tests/test-mbsstr1.c (main): Likewise.
44114         * tests/test-mbsstr2.c (main): Likewise.
44115         * tests/test-memmem.c (main): Likewise.
44116         * tests/test-strcasestr.c (main): Likewise.
44117         * tests/test-striconv.c (main): Likewise.
44118         * tests/test-striconveh.c (main): Likewise.
44119         * tests/test-striconveha.c (main): Likewise.
44120         * tests/test-strstr.c (main): Likewise.
44121
44122         * build-aux/git-version-gen: Adjust a comment and the Usage string.
44123
44124         bootstrap: sync from coreutils again
44125         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
44126
44127 2008-03-01  Jim Meyering  <meyering@redhat.com>
44128
44129         bootstrap: sync from coreutils
44130         * build-aux/bootstrap (update_po_files): Copy a .po file into place
44131         also when the target doesn't exist.
44132
44133 2008-03-01  Eric Blake  <ebb9@byu.net>
44134
44135         Fix bugs in last patch.
44136         * lib/memchr2.c (memchr2): Fix typo.
44137         * tests/test-memchr2.c: Test previous bug, and don't use GNU
44138         extension.
44139         Reported by Bruce Korb.
44140
44141         New module 'memchr2'.
44142         * modules/memchr2: New file.
44143         * modules/memchr2-tests: Likewise.
44144         * lib/memchr2.h: Likewise.
44145         * lib/memchr2.c: Likewise, based on memchr.c.
44146         * tests/test-memchr2.c: New test.
44147         * MODULES.html.sh (String handling): Add memchr2.
44148
44149 2008-02-29  Bruno Haible  <bruno@clisp.org>
44150
44151         * modules/freadseek-tests: New file.
44152         * tests/test-freadseek.sh: New file.
44153         * tests/test-freadseek.c: New file.
44154
44155         New module 'freadseek'.
44156         * modules/freadseek: New file.
44157         * lib/freadseek.h: New file.
44158         * lib/freadseek.c: New file.
44159         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
44160
44161 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
44162
44163         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
44164         wydawca.
44165
44166         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
44167         program_invocation_name and program_invocation_short_name are
44168         present.
44169
44170 2008-02-28  Bruno Haible  <bruno@clisp.org>
44171
44172         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
44173         * tests/test-freadptr.sh: Also test non-seekable stdin.
44174
44175 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
44176
44177         * build-aux/bootstrap (source_base, m4_base)
44178         (doc_base, tests_base): New variables.
44179         (gnulib_tool_options): Do not hardcode base directories, use
44180         the above variables instead.
44181
44182 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
44183
44184         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
44185
44186 2008-02-28  Bruno Haible  <bruno@clisp.org>
44187
44188         * modules/freadptr-tests: New file.
44189         * tests/test-freadptr.sh: New file.
44190         * tests/test-freadptr.c: New file.
44191
44192         New module 'freadptr'.
44193         * modules/freadptr: New file.
44194         * lib/freadptr.h: New file.
44195         * lib/freadptr.c: New file.
44196         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
44197
44198 2008-02-26  Karl Berry  <karl@freefriends.org>
44199
44200         Sync from Libtool:
44201         * libltdl/argz.c (argz_add, argz_count): New functions.
44202         * libltdl/argz.in.h: Declare them.
44203         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
44204
44205 2008-02-22  Bruno Haible  <bruno@clisp.org>
44206
44207         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
44208         is a pointer type.  Needed for HP-UX 10.
44209         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
44210         * doc/posix-functions/gmtime_r.texi: Likewise.
44211         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44212
44213 2008-02-24  Bruno Haible  <bruno@clisp.org>
44214
44215         * modules/environ-tests: New file.
44216         * tests/test-environ.c: New file.
44217
44218         New module 'environ'.
44219         * modules/environ: New file.
44220         * lib/unistd.in.h (environ): New declaration.
44221         * m4/environ.m4: New file.
44222         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
44223         after use.
44224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
44225         HAVE_DECL_ENVIRON.
44226         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
44227         HAVE_DECL_ENVIRON.
44228         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
44229         wrong claim that 'environ' is missing on some systems.
44230         * modules/execute (Depends-on): Add environ.
44231         * lib/execute.c (environ): Remove fallback declaration.
44232         * modules/pipe (Depends-on): Add environ.
44233         * lib/pipe.c (environ): Remove fallback declaration.
44234         * modules/setenv (Depends-on): Add environ.
44235         * lib/setenv.c (environ): Remove fallback declaration.
44236         * modules/unsetenv (Depends-on): Add environ.
44237         * lib/unsetenv.c (environ): Remove fallback declaration.
44238         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
44239         m4/environ.m4.
44240         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
44241         (gl_PREREQ_UNSETENV): Likewise.
44242
44243 2008-02-24  Bruno Haible  <bruno@clisp.org>
44244
44245         * doc/posix-functions/environ.texi: Document the MacOS X problem.
44246
44247 2008-02-20  Bob Proulx  <bob@proulx.com>
44248
44249         Enable use of older two part flavor 'git describe'.
44250         * build-aux/git-version-gen: If using the older two part flavor of
44251         git version then recreate the third part now present in the
44252         newer three part flavor of git describe.
44253
44254 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
44255
44256         * lib/fts.c (fts_build): Typo correction to comment.
44257
44258 2008-02-17  Bruno Haible  <bruno@clisp.org>
44259
44260         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
44261         generating no-op conflicts.
44262
44263 2008-02-17  Bruno Haible  <bruno@clisp.org>
44264
44265         Speed up by 10%.
44266         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
44267         result_entries, rather than an index-based loop.
44268
44269 2008-02-17  Bruno Haible  <bruno@clisp.org>
44270
44271         Speed up by 25%.
44272         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
44273         'hashcode_cached'.
44274         (entry_create): New function.
44275         (entry_hashcode): Use the cached hashcode if possible.
44276         (read_changelog_file, try_split_merged_entry): Use entry_create.
44277
44278 2008-02-17  Bruno Haible  <bruno@clisp.org>
44279
44280         Speed up from O(n^2) to O(n) for long ChangeLog files.
44281         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
44282         (read_changelog_file): Change implementation of entries_reversed list
44283         to rbtreehash.
44284         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
44285
44286 2008-02-17  Bruno Haible  <bruno@clisp.org>
44287
44288         New option --split-merged-entry.
44289         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
44290         (find_paragraph_end, try_split_merged_entry): New functions.
44291         (long_options): Add option --split-merged-entry.
44292         (usage): Document option --split-merged-entry.
44293         (main): Implement option --split-merged-entry.
44294         Reported by Eric Blake.
44295
44296 2008-02-17  Bruno Haible  <bruno@clisp.org>
44297
44298         * lib/git-merge-changelog.c: Include c-strstr.h.
44299         (main): Support the "git pull --rebase" situation.
44300         * modules/git-merge-changelog (Depends-on): Add c-strstr.
44301         Reported by Eric Blake.
44302
44303 2008-02-16  Eric Blake  <ebb9@byu.net>
44304
44305         Avoid doubling \ in common case of "c-maybe" quoting style.
44306         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
44307         eliding outer quotes.
44308         * lib/quotearg.h: Document this.
44309         * tests/test-quotearg.c (result_strings, inputs, results_g)
44310         (flag_results, locale_results): Test it by adding a new string to
44311         each test group.
44312         (compare_strings): Test new string.
44313
44314 2008-02-13  Eric Blake  <ebb9@byu.net>
44315
44316         Avoid trigraph quoting in default output.
44317         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
44318         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
44319         unless explicitly requested.
44320         * tests/test-quotearg.c (flag_results, main): Add additional tests.
44321
44322 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
44323
44324         Don't rely on signed integer overflowing to negative value.
44325         * lib/getugroups.c (getugroups): Include <limits.h>.
44326         Instead, compare against INT_MAX, and increment only if the test passes.
44327
44328 2008-02-13  Jim Meyering  <meyering@redhat.com>
44329         and Eric Blake  <ebb9@byu.net>
44330
44331         Avoid shadowing warning and compile errors on Linux.
44332         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
44333         forwarding macros on Linux.
44334         (dcgettext): Define a stub, for Linux.
44335         (results_g, main): Avoid warnings.
44336
44337 2008-02-12  Eric Blake  <ebb9@byu.net>
44338
44339         Silence warning in last patch.
44340         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
44341
44342         Quotearg part 4: add tests, fix c-maybe colon quoting.
44343         * lib/quotearg.h: Improve documentation.
44344         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
44345         escapes when adding outer quotes.  When quoting trigraphs, use
44346         valid C notation.  When quoting NUL, omit extra characters if next
44347         character is not digit.  Alter prototype.
44348         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
44349         callers.
44350         * modules/quotearg-tests: New module.
44351         * tests/test-quotearg.c: New test.
44352
44353 2008-02-07  Eric Blake  <ebb9@byu.net>
44354
44355         Quotearg part 3: add flag to control outer quote elision.
44356         * lib/quotearg.h (c_maybe_quoting_style): New style.
44357         (enum quoting_flags): Better documentation of flags.
44358         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
44359         c-maybe style.
44360         (quotearg_buffer_restyled): Handle new flag to elide outer
44361         quotes.
44362
44363         Quotearg part 2: add flag that can control NUL elision.
44364         * lib/quotearg.h (set_quoting_flags): New prototype.
44365         * lib/quotearg.c (struct quoting_options): Add flag field.
44366         (set_quoting_flags): New function.
44367         (quotearg_buffer_restyled): Add flags parameter.
44368         (quotearg_alloc_mem): Set the flag if length cannot be returned.
44369         (quotearg_n_options): Set the flag, since length cannot be
44370         returned.
44371         (quoting_options_from_style): Default flags correctly.
44372
44373         Quotearg part 1: more wrappers, restore quotearg_char state.
44374         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
44375         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
44376         (quotearg_colon_mem): New wrappers.
44377         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
44378         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
44379         functions.
44380         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
44381         (quotearg_colon_mem): New functions.
44382
44383 2008-02-11  Bruno Haible  <bruno@clisp.org>
44384
44385         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
44386         library in the current directory: it does not work with parallel make.
44387         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44388
44389 2008-02-11  Bruno Haible  <bruno@clisp.org>
44390
44391         * .gitattributes: New file.
44392
44393 2008-02-11  Jim Meyering  <meyering@redhat.com>
44394
44395         useless-if-before-free: Fix reversed exit values.
44396         * build-aux/useless-if-before-free: Use correct values
44397         for EXIT_MATCH and EXIT_NO_MATCH.
44398
44399         * build-aux/useless-if-before-free: Close stdout carefully.
44400
44401 2008-02-10  Bruno Haible  <bruno@clisp.org>
44402
44403         New module 'git-merge-changelog'.
44404         * modules/git-merge-changelog: New file.
44405         * lib/git-merge-changelog.c: New file.
44406
44407 2008-02-10  Jim Meyering  <meyering@redhat.com>
44408
44409         useless-if-before-free: New option: --list (-l).
44410
44411         useless-if-before-free: Don't exit immediately upon open failure.
44412         * build-aux/useless-if-before-free: Exit 2 for errors.
44413         Upon failure to open a file, don't exit immediately.
44414         Rather, just warn and continue with any remaining files.
44415
44416 2008-02-10  Bruno Haible  <bruno@clisp.org>
44417
44418         New abstract list operation 'node_set_value'.
44419         * lib/gl_list.h (gl_list_node_set_value): New function.
44420         (struct gl_list_implementation): New field node_set_value.
44421         * lib/gl_list.c (gl_list_node_set_value): New function.
44422         * lib/gl_array_list.c (gl_array_node_set_value): New function.
44423         (gl_array_list_implementation): Update.
44424         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
44425         (gl_carray_list_implementation): Update.
44426         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
44427         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
44428         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
44429         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
44430         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
44431         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
44432         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
44433         Update.
44434         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
44435         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
44436         (gl_sublist_list_implementation): Update.
44437
44438 2008-02-10  Bruno Haible  <bruno@clisp.org>
44439
44440         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
44441         Needed when ELEMENT is #defined to 'some_type *'.
44442
44443 2008-02-10  Jim Meyering  <meyering@redhat.com>
44444
44445         New script and module: useless-if-before-free
44446         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
44447         * build-aux/useless-if-before-free: New file.
44448         * modules/useless-if-before-free: New file.
44449
44450         * build-aux/gitlog-to-changelog: Use committer date, not author date.
44451
44452         xstrtol_error: Fix typo.
44453         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
44454         s/exit_failure/exit_status/.
44455
44456 2008-02-09  Jim Meyering  <meyering@redhat.com>
44457
44458         New script and module: gitlog-to-changelog
44459         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
44460         * modules/gitlog-to-changelog: New file.
44461         * build-aux/gitlog-to-changelog: New file.
44462
44463 2008-02-08  Jim Meyering  <meyering@redhat.com>
44464
44465         Avoid two "parameter unused" warnings.
44466         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
44467         Mark "st" as used.
44468
44469         Use "git COMMAND", not "git-COMMAND".
44470         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
44471         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
44472         * build-aux/git-version-gen: Use "git status", not "git-status".
44473
44474 2008-02-07  Bruno Haible  <bruno@clisp.org>
44475
44476         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
44477         Avoids a crash on Windows Vista.
44478         Reported by Adam Strzelecki <ono@java.pl> via
44479         Simon Josefsson <simon@josefsson.org>.
44480
44481 2008-02-06  Bruno Haible  <bruno@clisp.org>
44482
44483         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
44484         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
44485         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
44486         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
44487         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44488         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44489         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
44490         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
44491         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44492         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44493         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44494         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44495         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44496         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44497         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44498         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
44499         left-adjust flag.
44500         * tests/test-snprintf-posix.h (test_function): Likewise.
44501         * tests/test-sprintf-posix.h (test_function): Likewise.
44502         * tests/test-vasprintf-posix.c (test_function): Likewise.
44503         * doc/posix-functions/fprintf.texi: Update.
44504         * doc/posix-functions/printf.texi: Update.
44505         * doc/posix-functions/snprintf.texi: Update.
44506         * doc/posix-functions/sprintf.texi: Update.
44507         * doc/posix-functions/vfprintf.texi: Update.
44508         * doc/posix-functions/vprintf.texi: Update.
44509         * doc/posix-functions/vsnprintf.texi: Update.
44510         * doc/posix-functions/vsprintf.texi: Update.
44511         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44512
44513 2008-02-06  Bruno Haible  <bruno@clisp.org>
44514
44515         Fix bug introduced on 2008-01-26.
44516         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
44517
44518 2008-02-06  Bruno Haible  <bruno@clisp.org>
44519
44520         Fix bug introduced on 2007-06-10.
44521         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
44522         !NEED_PRINTF_FLAG_ZERO.
44523
44524 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
44525
44526         getloadavg: use libperfstat on AIX5
44527         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
44528
44529 2008-02-03  Bruno Haible  <bruno@clisp.org>
44530
44531         * lib/diffseq.h: Add comments about required #includes.
44532         Reported by Michael Biggs <gnulib@doubleplum.net>.
44533
44534 2008-02-01  Bruno Haible  <bruno@clisp.org>
44535
44536         * users.txt: Add gnuit.
44537
44538 2008-01-31  Bruno Haible  <bruno@clisp.org>
44539
44540         * lib/md4.c (set_uint32): Mark as inline.
44541         * lib/md5.c (set_uint32): Likewise.
44542         * lib/sha1.c (set_uint32): Likewise.
44543         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
44544         * m4/md5.m4 (gl_MD5): Likewise.
44545         * m4/sha1.m4 (gl_SHA1): Likewise.
44546
44547 2008-01-31  Jim Meyering  <meyering@redhat.com>
44548
44549         Use "sizeof VAR", rather than a literal "4".
44550         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
44551         * lib/md4.c (md4_read_ctx): Likewise.
44552         * lib/sha1.c (sha1_read_ctx): Likewise.
44553
44554 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44555
44556         * tests/test-sha1.c: New file, based on test-md5.c.
44557
44558         * modules/crypto/sha1-tests: New file.
44559
44560 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44561
44562         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
44563
44564 2008-01-31  Jim Meyering  <meyering@redhat.com>
44565
44566         Prefer "sizeof v" over the equivalent "4".
44567         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
44568         * lib/md5.c (set_uint32): Likewise.
44569         * lib/sha1.c (set_uint32): Likewise.
44570
44571 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44572
44573         * lib/sha1.c (set_uint32): Mark function as static.
44574
44575 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44576
44577         md2: clarify comments to say that alignment is not required.
44578         * lib/md2.h: Remove warning about alignment in comment.
44579         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
44580         never been required.
44581
44582 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44583
44584         md4: adapt alignment constraint fix from sha1.
44585         * lib/md4.c (set_uint32): New function, from sha1.c
44586         (md4_read_ctx): Use it.
44587         (md4_finish_ctx): Doc fix.
44588         * lib/md4.h: Doc fix.
44589
44590 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44591
44592         md5: adapt alignment constraint fix from sha1.
44593         * lib/md5.c (set_uint32): New function, from sha1.c
44594         (md5_read_ctx): Use it.
44595         (md5_finish_ctx): Doc fix.
44596         * lib/md5.h: Doc fix.
44597
44598 2008-01-30  Peter Palfrader  <weasel@debian.org>
44599
44600         sha1: remove the result buffer alignment constraint
44601         * lib/sha1.c (set_uint32): New function.
44602         (sha1_read_ctx): Rewrite to remove the result buffer alignment
44603         constraint.
44604         (sha1_finish_ctx): Remove comment warning about alignment constraint.
44605         * lib/sha1.h: Likewise.
44606
44607 2008-01-30  Andreas Schwab  <schwab@suse.de>
44608             Bruno Haible  <bruno@clisp.org>
44609
44610         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
44611         correct definition of LDBL_MIN_EXP.
44612
44613 2008-01-30  Karl Berry  <karl@gnu.org>
44614
44615         * config/srclist-update: try to preserve x bit on updates.
44616         * config/srclistvars.sh: update for karl.
44617
44618 2008-01-29  Jim Meyering  <meyering@redhat.com>
44619
44620         vasnprintf.c: Avoid warning about unused label
44621         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
44622         "overflow" label definition and associated code with the
44623         same cpp condition that guards the sole use of that label.
44624
44625 2008-01-26  Bruno Haible  <bruno@clisp.org>
44626
44627         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
44628         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
44629         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
44630         * lib/isnanl-nolibm.h (isnanl): Likewise.
44631         Reported by Paul Eggert <eggert@cs.ucla.edu>.
44632
44633 2008-01-26  Bruno Haible  <bruno@clisp.org>
44634
44635         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
44636         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
44637
44638 2008-01-26  Bruno Haible  <bruno@clisp.org>
44639
44640         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
44641         GCC >= 4.0 built-in.
44642         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
44643
44644 2008-01-26  Bruno Haible  <bruno@clisp.org>
44645
44646         Rename isnan, applicable to 'double' only, to isnand.
44647         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
44648         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
44649         (configure.ac): Update.
44650         (Include): Replace "isnan.h" with "isnand.h".
44651         * m4/isnand.m4: Renamed from m4/isnan.m4.
44652         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
44653         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
44654         instead of isnan.c.
44655         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
44656         instead of HAVE_ISNAN_IN_LIBC.
44657         (isnand): Renamed from isnan.
44658         * lib/isnand.c: New file.
44659         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
44660         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
44661         (Makefile.am): Update.
44662         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
44663         Include isnand.h instead of isnan.h.
44664         (main): Test isnand instead of isnan.
44665         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
44666         isnan-nolibm.
44667         * modules/frexp (Depends-on): Likewise.
44668         * modules/frexp-tests (Depends-on): Likewise.
44669         * modules/frexp-nolibm (Depends-on): Likewise.
44670         * modules/frexp-nolibm-tests (Depends-on): Likewise.
44671         * modules/isfinite (Depends-on): Likewise.
44672         * modules/round-tests (Depends-on): Likewise.
44673         * modules/signbit (Depends-on): Likewise.
44674         * modules/signbit-tests (Depends-on): Likewise.
44675         * modules/snprintf-posix (Depends-on): Likewise.
44676         * modules/sprintf-posix (Depends-on): Likewise.
44677         * modules/trunc-tests (Depends-on): Likewise.
44678         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44679         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44680         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44681         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44682         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44683         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44684         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44685         * modules/vasnprintf-posix (Depends-on): Likewise.
44686         * modules/vasprintf-posix (Depends-on): Likewise.
44687         * modules/vfprintf-posix (Depends-on): Likewise.
44688         * modules/vsnprintf-posix (Depends-on): Likewise.
44689         * modules/vsprintf-posix (Depends-on): Likewise.
44690         * lib/frexp.c: Include isnand.h instead of isnan.h.
44691         (ISNAN): Set to isnand instead of isnan.
44692         * lib/isfinite.c: Include isnand.h instead of isnan.h.
44693         (gl_isfinited): Use isnand instead of isnan.
44694         * lib/signbitd.c: Include isnand.h instead of isnan.h.
44695         (gl_signbitd): Use isnand instead of isnan.
44696         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
44697         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
44698         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
44699         (main): Use isnand instead of isnan.
44700         * tests/test-round1.c: Include isnand.h.
44701         (main): Use isnand instead of isnan.
44702         * tests/test-round2.c: Include isnand.h instead of isnan.h.
44703         (ISNAN): Set to isnand instead of isnan.
44704         * tests/test-trunc1.c: Include isnand.h.
44705         (main): Use isnand instead of isnan.
44706         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
44707         (equal): Use isnand instead of isnan.
44708         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
44709         isnand-nolibm.
44710         * NEWS: Mention the change.
44711
44712 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
44713             Bruno Haible  <bruno@clisp.org>
44714
44715         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
44716         the GCC builtins for signbits are present and set
44717         REPLACE_SIGNBIT_USING_GCC if so.
44718         * lib/math.in.h (signbit): Define using GCC builtins if
44719         REPLACE_SIGNBIT_USING_GCC is set.
44720         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
44721         REPLACE_SIGNBIT_USING_GCC.
44722         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
44723
44724 2008-01-25  Jim Meyering  <meyering@redhat.com>
44725
44726         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
44727         * lib/poll.c: Include <config.h>, not "config.h".
44728         * tests/test-getaddrinfo.c: Likewise.
44729
44730 2008-01-25  Simon Josefsson  <simon@josefsson.org>
44731
44732         * modules/sockets-tests: New file.
44733
44734 2008-01-24  Simon Josefsson  <simon@josefsson.org>
44735
44736         * modules/sockets: New module, can be used to call WSA_Startup and
44737         WSA_Cleanup when needed.
44738
44739         * lib/sockets.h, lib/sockets.c: New files.
44740
44741         * m4/sockets.m4: New file.
44742
44743         * tests/test-sockets.c: New file.
44744
44745 2008-01-19  Bruno Haible  <bruno@clisp.org>
44746
44747         * doc/posix-headers: Renamed from doc/headers.
44748         * doc/posix-functions: Renamed from doc/functions.
44749         * doc/gnulib.texi: Update.
44750
44751 2008-01-19  Bruno Haible  <bruno@clisp.org>
44752
44753         * doc/glibc-functions/strcasestr.texi: Include contents of
44754         doc/functions/strcasestr.texi, fixing the list of platforms.
44755         * doc/functions/strcasestr.texi: Remove file.
44756
44757 2008-01-19  Bruno Haible  <bruno@clisp.org>
44758
44759         * doc/glibc-functions/memmem.texi: Include contents of
44760         doc/functions/memmem.texi.
44761         * doc/functions/memmem.texi: Remove file.
44762
44763 2008-01-18  Bruno Haible  <bruno@clisp.org>
44764
44765         * doc/glibc-functions/*.texi: New files.
44766         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
44767         to use the new files.
44768
44769 2008-01-17  Bruno Haible  <bruno@clisp.org>
44770
44771         * tests/test-gethostname.c (main): Fix printf statement.
44772
44773 2008-01-17  Simon Josefsson  <simon@josefsson.org>
44774
44775         * modules/gethostname-tests: New file.
44776
44777         * tests/test-gethostname.c: New file.
44778
44779 2008-01-17  Simon Josefsson  <simon@josefsson.org>
44780
44781         * lib/gethostname.c: Include string.h unconditionally, strncpy is
44782         used by the UNAME case.  Reported by Bruno Haible
44783         <bruno@clisp.org>.
44784
44785 2008-01-17  Eric Blake  <ebb9@byu.net>
44786
44787         Convert c-strcasestr to be more efficient.
44788         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
44789         (Depends-on): Add c-strcase, remove malloca, strnlen.
44790         * tests/test-c-strcasestr.c (main): Enhance test.
44791         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
44792
44793 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44794
44795         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
44796         Use it in creating po/Makevars.
44797
44798 2008-01-15  Simon Josefsson  <simon@josefsson.org>
44799
44800         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
44801         Applications that requires it should initialize libgcrypt
44802         manually.
44803
44804 2008-01-16  Simon Josefsson  <simon@josefsson.org>
44805
44806         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
44807
44808 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
44809
44810         Fix problem with getdate on mingw32 reported by Simon Josefsson
44811         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
44812         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
44813         tzname", when deciding whether to declare tzname.
44814         * lib/strftime.c (tzname): Likewise.
44815
44816 2008-01-15  Bruno Haible  <bruno@clisp.org>
44817
44818         Work around a MacOS X 10.5 bug in frexpl().
44819         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
44820         * doc/functions/frexpl.texi: Document the bug.
44821         Reported by Elias Pipping <pipping@gentoo.org>.
44822
44823 2008-01-14  Eric Blake  <ebb9@byu.net>
44824
44825         Touch up previous patch.
44826         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
44827         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
44828
44829         Convert strcasestr module to use Two-Way algorithm.
44830         * modules/strcasestr-simple: New module, based on the old
44831         strcasestr, but with Two-Way rather than KMP.
44832         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
44833         * lib/string.in.h (rpl_strcasestr): Declare.
44834         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
44835         performance.
44836         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
44837         * modules/string (Makefile.am): Support strcasestr.
44838         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44839         * modules/strcasestr-tests (Depends-on): Check for alarm.
44840         * tests/test-strcasestr.c: Augment test.
44841         * lib/str-two-way.h: Clean up stray macro.
44842         * NEWS: Document new module.
44843         * MODULES.html.sh (string handling): Likewise.
44844         * doc/functions/strcasestr.texi: New file.
44845         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
44846         here, since it is not a POSIX function.
44847
44848 2008-01-14  Colin Watson  <cjwatson@debian.org>
44849             Bruno Haible  <bruno@clisp.org>
44850
44851         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
44852         works fine; if not, set REPLACE_STRSIGNAL.
44853         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
44854         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44855         REPLACE_STRSIGNAL.
44856         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
44857         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
44858         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
44859
44860 2008-01-14  Bruno Haible  <bruno@clisp.org>
44861
44862         * modules/strsignal (Include): Change to <string.h>.
44863
44864 2008-01-14  Colin Watson  <cjwatson@debian.org>
44865
44866         * modules/argp (Notice): Add a notice recommending to change
44867         XGETTEXT_OPTIONS.
44868         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
44869
44870 2008-01-13  Colin Watson  <cjwatson@debian.org>
44871
44872         * modules/strsignal-tests: New file.
44873         * tests/test-strsignal.c: New file.
44874
44875         * lib/strsignal.c: New file, from glibc with modifications.
44876         * lib/siglist.h: New file, from glibc with modifications.
44877         * lib/string.in.h (strsignal): New declaration.
44878         * m4/strsignal.m4: New file.
44879         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44880         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
44881         * modules/strsignal: New file.
44882         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
44883         HAVE_DECL_STRSIGNAL.
44884
44885 2008-01-13  Bruno Haible  <bruno@clisp.org>
44886
44887         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
44888         locale encoding is not ASCII. Needed for OpenBSD 4.0.
44889         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44890         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44891
44892 2008-01-13  Bruno Haible  <bruno@clisp.org>
44893
44894         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
44895         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
44896         * lib/argp.h (__attribute__): Likewise.
44897         * lib/c-stack.c (__attribute__): Likewise.
44898         * lib/error.h (__attribute__): Likewise.
44899         * lib/fts.c (__attribute__): Likewise.
44900         * lib/openat.h (__attribute__): Likewise.
44901         * lib/stdio.in.h (__attribute__): Likewise.
44902         * lib/string.in.h (__attribute__): Likewise.
44903         * lib/utimens.c (__attribute__): Likewise.
44904         * lib/vasnprintf.h (__attribute__): Likewise.
44905         * lib/xalloc.h (__attribute__): Likewise.
44906         * lib/xprintf.h (__attribute__): Likewise.
44907         * lib/xstrtol.h (__attribute__): Likewise.
44908         * lib/xvasprintf.h (__attribute__): Likewise.
44909
44910 2008-01-12  Bruno Haible  <bruno@clisp.org>
44911
44912         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
44913         * doc/glibc-headers/a.out.texi: New file.
44914         * doc/glibc-headers/aliases.texi: New file.
44915         * doc/glibc-headers/alloca.texi: New file.
44916         * doc/glibc-headers/ar.texi: New file.
44917         * doc/glibc-headers/argp.texi: New file.
44918         * doc/glibc-headers/argz.texi: New file.
44919         * doc/glibc-headers/byteswap.texi: New file.
44920         * doc/glibc-headers/crypt.texi: New file.
44921         * doc/glibc-headers/endian.texi: New file.
44922         * doc/glibc-headers/envz.texi: New file.
44923         * doc/glibc-headers/err.texi: New file.
44924         * doc/glibc-headers/error.texi: New file.
44925         * doc/glibc-headers/execinfo.texi: New file.
44926         * doc/glibc-headers/fpu_control.texi: New file.
44927         * doc/glibc-headers/fstab.texi: New file.
44928         * doc/glibc-headers/fts.texi: New file.
44929         * doc/glibc-headers/getopt.texi: New file.
44930         * doc/glibc-headers/ieee754.texi: New file.
44931         * doc/glibc-headers/ifaddrs.texi: New file.
44932         * doc/glibc-headers/libintl.texi: New file.
44933         * doc/glibc-headers/mcheck.texi: New file.
44934         * doc/glibc-headers/mntent.texi: New file.
44935         * doc/glibc-headers/obstack.texi: New file.
44936         * doc/glibc-headers/paths.texi: New file.
44937         * doc/glibc-headers/printf.texi: New file.
44938         * doc/glibc-headers/pty.texi: New file.
44939         * doc/glibc-headers/resolv.texi: New file.
44940         * doc/glibc-headers/shadow.texi: New file.
44941         * doc/glibc-headers/sysexits.texi: New file.
44942         * doc/glibc-headers/ttyent.texi: New file.
44943
44944 2008-01-12  Jim Meyering  <meyering@redhat.com>
44945
44946         announce-gen: emit Gnulib's git-based version string.
44947         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
44948         New option --gnulib-version=V, where V is expected to be
44949         the output of running git describe in the gnulib directory.
44950         (get_tool_versions): Request feedback on xdelta.  I suspect it's
44951         not useful, and plan to stop publishing an xdelta file with each
44952         coreutils release.
44953
44954         * build-aux/announce-gen: Also check for lzma-compressed files.
44955
44956 2008-01-11  Bruno Haible  <bruno@clisp.org>
44957
44958         * tests/test-memmem.c (main): Increase maximum allowed time.
44959         * tests/test-strstr.c (main): Likewise.
44960
44961 2008-01-11  Bruno Haible  <bruno@clisp.org>
44962
44963         * doc/functions/memmem.texi: Add more precisions about platforms.
44964         * doc/functions/strstr.texi: Likewise.
44965
44966 2008-01-10  Eric Blake  <ebb9@byu.net>
44967
44968         * m4/strstr.m4: Delete cruft from copy-n-paste.
44969         Reported by Bruno Haible.
44970
44971 2008-01-10  Bruno Haible  <bruno@clisp.org>
44972
44973         Make c-strstr rely on strstr.
44974         * lib/c-strstr.c: Don't include str-kmp.h.
44975         (c_strstr): Define in terms of strstr.
44976         * modules/c-strstr (Files): Remove lib/str-kmp.h.
44977         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
44978
44979 2008-01-10  Bruno Haible  <bruno@clisp.org>
44980
44981         * doc/gnulib.texi (String Functions in C Locale): New section.
44982         * doc/c-ctype.texi: New file.
44983         * doc/c-strcase.texi: New file.
44984         * doc/c-strcaseeq.texi: New file.
44985         * doc/c-strcasestr.texi: New file.
44986         * doc/c-strstr.texi: New file.
44987         * doc/c-strtod.texi: New file.
44988         * doc/c-strtold.texi: New file.
44989
44990 2008-01-10  Eric Blake  <ebb9@byu.net>
44991
44992         * lib/relocatable.h: Fix a comment.
44993
44994 2008-01-10  Eric Blake  <ebb9@byu.net>
44995
44996         Share two-way algorithm.
44997         * lib/str-two-way.h: New file, merged from...
44998         * lib/memmem.c: ...here...
44999         * lib/strstr.c: ...and here.
45000         * modules/memmem (Files): Use it.
45001         * modules/strstr (Files): Likewise.
45002
45003         Avoid quadratic strstr implementations.
45004         * lib/strstr.c: New file.
45005         * m4/strstr.m4: Likewise.
45006         * modules/strstr: Likewise.
45007         * modules/strstr-tests: Likewise.
45008         * tests/test-strstr.c: Likewise.
45009         * lib/string.in.h (rpl_strstr): Declare.
45010         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
45011         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
45012         * modules/string (Makefile.am): Likewise.
45013         * MODULES.html.sh (string handling): Mention new module.
45014         * doc/functions/strstr.texi (strstr): Document the bug.
45015
45016 2008-01-10  Bruno Haible  <bruno@clisp.org>
45017
45018         * lib/relocatable.h (relocate): State whether result is freshly
45019         allocated or not.
45020         * lib/relocatable.c (relocate): Return a freshly allocated string
45021         instead of a pointer to a privately held string.
45022         Reported by Sylvain Beucler <beuc@gnu.org>.
45023
45024 2008-01-10  Colin Watson  <cjwatson@debian.org>
45025
45026         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
45027         s/S_ISNLK/S_ISLNK/.
45028
45029 2008-01-09  Bruno Haible  <bruno@clisp.org>
45030
45031         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
45032         and other files.
45033         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
45034         if it's only a guess.
45035         * modules/memmem: Simplify by depending on memmem-simple.
45036
45037 2008-01-09  Bruno Haible  <bruno@clisp.org>
45038
45039         Work around OpenBSD 4.0 tdelete() bug.
45040         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
45041         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
45042         macros and don't redefine the enum values.
45043         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
45044         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
45045         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
45046
45047 2008-01-09  Bruno Haible  <bruno@clisp.org>
45048
45049         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
45050         (main): Don't perform the tests if setlocale did not install a UTF-8
45051         locale. Needed on OpenBSD 4.0.
45052         * modules/wcwidth-tests (Depends-on): Add localcharset.
45053
45054 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
45055
45056         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
45057         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
45058         * NEWS: announce this.
45059         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
45060
45061 2008-01-09  Simon Josefsson  <simon@josefsson.org>
45062         and Eric Blake  <ebb9@byu.net>
45063
45064         Add memmem-simple module.
45065         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
45066         (gl_FUNC_MEMMEM): Separate performance from presence checks.
45067         * modules/memmem-simple: New file.
45068         * modules/memmem (Description): Tweak.
45069         * MODULES.html.sh (string handling): Mention new module.
45070         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
45071         addressed by memmem-simple.
45072         * NEWS: Document the difference.
45073
45074 2008-01-09  Eric Blake  <ebb9@byu.net>
45075
45076         Give gcc some memmem optimization hints.
45077         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
45078         (strcasestr): Declare as pure.
45079         * modules/memmem (Maintainer): Claim my implementation.
45080
45081 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45082
45083         Support AIX 6.1 and higher.
45084         * build-aux/config.libpath: Likewise.
45085         * build-aux/config.rpath: Likewise.
45086
45087 2008-01-08  Jim Meyering  <meyering@redhat.com>
45088             Bruno Haible  <bruno@clisp.org>
45089
45090         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
45091         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
45092         Reported by Peter Fales in
45093         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
45094
45095 2008-01-08  Bruno Haible  <bruno@clisp.org>
45096
45097         * modules/unictype/category-of (Depends-on): Add
45098         unictype/category-none.
45099         * modules/unictype/category-and-tests (Depends-on): Add
45100         unictype/category-{L,N,Lu,Nd}.
45101         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
45102         * modules/unictype/category-or-tests (Depends-on): Add
45103         unictype/category-{L,N}.
45104         * modules/unictype/category-name-tests (Depends-on): Add
45105         unictype/category-{Z,Nl}.
45106         Reported by Simon Josefsson.
45107
45108 2008-01-08  Bruno Haible  <bruno@clisp.org>
45109
45110         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
45111         convention better.
45112         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
45113         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
45114         Reported by Peter Miller <millerp@canb.auug.org.au>.
45115
45116 2008-01-08  Eric Blake  <ebb9@byu.net>
45117
45118         Rewrite memmem to guarantee linear complexity without malloc.
45119         * lib/memmem.c (memmem): Use Two-Way rather than
45120         Knuth-Morris-Pratt, to allow O(1) space usage.
45121         (critical_factorization, two_way_short_needle)
45122         (two_way_long_needle): New functions.
45123         (knuth_morris_pratt): Delete.
45124         * modules/memmem (Depends-on): No longer need malloca or stdbool.
45125         Add stdint.
45126         * tests/test-memmem.c (main): Add tests for periodic needle and
45127         sublinear performance.
45128         * doc/functions/memmem.texi (memmem): Document other deficiencies
45129         in cygwin and older glibc.
45130
45131 2008-01-08  Bruno Haible  <bruno@clisp.org>
45132
45133         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
45134         augmentation.
45135
45136 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
45137
45138         Add a configure time option: --disable-acl.
45139         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
45140         AC_ARG_ENABLE(acl).
45141
45142 2008-01-06  Simon Josefsson  <simon@josefsson.org>
45143
45144         * tests/test-localename.c: Don't include obsolete "setenv.h".
45145
45146         * modules/localename-tests (Depends-on): Need unsetenv.
45147
45148 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45149
45150         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
45151
45152 2008-01-06  Colin Watson  <cjwatson@debian.org>
45153
45154         * users.txt: Add man-db.
45155
45156 2008-01-07  Bruno Haible  <bruno@clisp.org>
45157
45158         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
45159         previous section name.
45160
45161 2008-01-07  Bruno Haible  <bruno@clisp.org>
45162
45163         * lib/progname.c (set_program_name): Don't strip off a leading
45164         "lt-" prefix outside a .libs directory.
45165         Suggested by Paul Eggert.
45166
45167 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
45168             Bruno Haible  <bruno@clisp.org>
45169
45170         Improve memory cleanup in 'relocatable' module.
45171         * lib/relocatable.h (compute_curr_prefix): Change return type to
45172         'char *'.
45173         * lib/relocatable.c (compute_curr_prefix): Change return type to
45174         'char *'. Free curr_installdir after use.
45175         (relocate): Free curr_prefix_better after use.
45176         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
45177
45178 2008-01-01  Bruno Haible  <bruno@clisp.org>
45179
45180         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
45181         failure on older glibc systems.
45182         Reported by Peter Fales <psfales@alcatel-lucent.com>.
45183
45184 2008-01-05  Eric Blake  <ebb9@byu.net>
45185
45186         Avoid quadratic system memmem.
45187         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
45188         Reported by Ralf Wildenhues.
45189
45190         Fix memmem test for mingw.
45191         * modules/memmem-tests (configure.ac): Check for alarm.
45192         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
45193         it.
45194         * doc/functions/memmem.texi: New file.
45195         * doc/gnulib.texi (Function Substitutes): Add memmem.
45196         Reported by Bruno Haible.
45197
45198 2008-01-04  Bruno Haible  <bruno@clisp.org>
45199
45200         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
45201         Require gl_HEADER_STRINGS_H_DEFAULTS, not
45202         gl_HEADER_STRING_H_DEFAULTS.
45203
45204 2008-01-04  Eric Blake  <ebb9@byu.net>
45205
45206         Shorten duration of memmem test.
45207         * tests/test-memmem.c (main): Use alarm to declare failure if test
45208         is taking too long.
45209         Reported by Ralf Wildenhues.
45210
45211 2007-12-21  Simon Josefsson  <simon@josefsson.org>
45212
45213         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
45214         string, needed by strerror.
45215
45216 2008-01-03  Colin Watson  <cjwatson@debian.org>
45217             Bruno Haible  <bruno@clisp.org>
45218
45219         * doc/gnulib-tool.texi (Localization): New section.
45220
45221 2008-01-02  Bruno Haible  <bruno@clisp.org>
45222
45223         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
45224         variables to 'unsigned char *' type.
45225         Reported by Paul Eggert.
45226
45227 2008-01-02  Jim Meyering  <jim@meyering.net>
45228
45229         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
45230
45231 2007-12-31  Jim Meyering  <jim@meyering.net>
45232
45233         Avoid use of private FTS type name.
45234         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
45235
45236 2007-12-30  Karl Berry  <karl@gnu.org>
45237
45238         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
45239         work around defect in Texinfo and/or the standalone Info browser.
45240
45241 2007-12-30  Bruno Haible  <bruno@clisp.org>
45242
45243         Unify 5 copies of the KMP code.
45244         * lib/str-kmp.h: New file.
45245         * lib/c-strcasestr.c: Include str-kmp.h.
45246         (knuth_morris_pratt): Remove function.
45247         (c_strcasestr): Update.
45248         * lib/c-strstr.c: Include str-kmp.h.
45249         (knuth_morris_pratt): Remove function.
45250         (c_strcasestr): Update.
45251         * lib/mbscasestr.c: Include str-kmp.h.
45252         (knuth_morris_pratt_unibyte): Remove function.
45253         * lib/mbsstr.c: Include str-kmp.h.
45254         (knuth_morris_pratt_unibyte): Remove function.
45255         * lib/strcasestr.c: Include str-kmp.h.
45256         (knuth_morris_pratt): Remove function.
45257         (strcasestr): Update.
45258         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
45259         * modules/c-strstr (Files): Likewise.
45260         * modules/mbscasestr (Files): Likewise.
45261         * modules/mbsstr (Files): Likewise.
45262         * modules/strcasestr (Files): Likewise.
45263         Suggested by Paul Eggert.
45264
45265 2007-12-30  Bruno Haible  <bruno@clisp.org>
45266
45267         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
45268         defined.
45269
45270 2007-12-30  Bruno Haible  <bruno@clisp.org>
45271
45272         * lib/xmalloca.h: Include xalloc.h.
45273         (xnmalloca): New macro.
45274
45275 2007-12-30  Bruno Haible  <bruno@clisp.org>
45276
45277         * lib/malloca.h (nmalloca): New macro.
45278         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
45279         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
45280         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
45281         knuth_morris_pratt_multibyte): Likewise.
45282         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
45283         knuth_morris_pratt_multibyte): Likewise.
45284         * lib/memmem.c (knuth_morris_pratt): Likewise.
45285         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
45286
45287 2007-12-25  Bruno Haible  <bruno@clisp.org>
45288
45289         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
45290         * lib/glob.c: Don't include openat.h.
45291         (link_exists2_p): Add back the code that deals with the
45292         !GLOB_ALTDIRFUNC case.
45293         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
45294         let it do the filename concatenation.
45295         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
45296         * modules/glob (Depends-on): Remove openat.
45297
45298 2007-12-31  Bruno Haible  <bruno@clisp.org>
45299
45300         * modules/dirfd (License): Change to LGPLv2+.
45301         Approved by Jim Meyering.
45302
45303 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45304
45305         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
45306         when multiplying M by sizeof (size_t).
45307
45308 2007-12-10  Martin Lambers  <marlam@marlam.de>
45309
45310         Override getpagesize on mingw.
45311         * lib/getpagesize.c: New file.
45312         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
45313         * modules/getpagesize (Files): Add lib/getpagesize.c.
45314         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
45315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45316         REPLACE_GETPAGESIZE.
45317         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
45318
45319 2007-12-25  Bruno Haible  <bruno@clisp.org>
45320
45321         * modules/localcharset (Notice): New field.
45322         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
45323         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
45324
45325 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45326             Bruno Haible  <bruno@clisp.org>
45327
45328         Avoid using the syntax symbol() in formatted documentation.
45329         * MODULES.html.sh (func_module): When replacing symbol() with a
45330         hyperlink, remove the parentheses. Show an error if some remain.
45331         Recognize and render the '...' syntax.
45332         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
45333         Rework. Add paragraph about GCC's inlining.
45334         * doc/alloca.texi: Likewise.
45335         * doc/error.texi: Remove parentheses from symbol reference.
45336         * doc/gnulib-intro.texi: Likewise.
45337         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
45338         * modules/fnmatch (Description): Reword to say "the ... function".
45339         * modules/full-read (Description): Likewise.
45340         * modules/full-write (Description): Likewise.
45341         * modules/safe-read (Description): Likewise.
45342         * modules/safe-write (Description): Likewise.
45343         * modules/strchrnul (Description): Likewise.
45344         * modules/trim (Description): Likewise.
45345         * modules/error (Description): Remove parentheses from symbol
45346         references.
45347         * modules/verror (Description): Likewise.
45348         Reported by Karl Berry.
45349
45350 2007-12-25  Bruno Haible  <bruno@clisp.org>
45351
45352         Fixup after 2007-10-16 commit.
45353         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
45354
45355 2007-12-24  Bruno Haible  <bruno@clisp.org>
45356
45357         Make --enable-relocatable work with DESTDIR.
45358         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
45359         to compute installdir from destprog.
45360         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
45361         also set the RELOC_DESTDIR variable.
45362         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45363
45364 2007-12-24  Bruno Haible  <bruno@clisp.org>
45365
45366         Fix link error due to xalloc_die().
45367         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
45368         of xreadlink.
45369         * lib/relocwrapper.c: Update comments.
45370         * build-aux/install-reloc: Remove xreadlink.c from file list.
45371         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
45372         xreadlink.c.
45373         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45374
45375 2007-12-24  Bruno Haible  <bruno@clisp.org>
45376
45377         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
45378         * lib/setenv.h: Remove file.
45379         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
45380         lib/setenv.h.
45381         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
45382         (Depends-on): Add stdlib.
45383         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
45384         gl_FUNC_UNSETENV.
45385         (Include): Replace setenv.h with <stdlib.h>.
45386         * modules/unsetenv: New file.
45387         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
45388         * lib/unsetenv.c: Include <stdlib.h> first.
45389         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
45390         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
45391         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
45392         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
45393         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
45394         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45395         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
45396         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45397         * doc/functions/unsetenv.texi: Update.
45398         * modules/xsetenv (Depends-on): Add unsetenv.
45399         * modules/getdate (Depends-on): Likewise.
45400         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
45401         * lib/xsetenv.c: Don't include setenv.h.
45402         * lib/getdate.y: Likewise.
45403         * lib/relocwrapper.c: Likewise.
45404         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
45405         (Depends-on): Add stdlib.
45406         * NEWS: Mention the changes.
45407         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45408
45409 2007-12-23  Bruno Haible  <bruno@clisp.org>
45410
45411         * lib/memmem.c (memmem): Use lowercase variable names. Tab
45412         indentation.
45413
45414 2007-12-23  Bruno Haible  <bruno@clisp.org>
45415
45416         * lib/c-strcasestr.c: Add more comments.
45417         * lib/c-strstr.c: Likewise.
45418         * lib/mbscasestr.c: Likewise.
45419         * lib/mbsstr.c: Likewise.
45420         * lib/strcasestr.c: Likewise.
45421         * lib/memmem.c: Likewise.
45422
45423 2007-12-23  Bruno Haible  <bruno@clisp.org>
45424
45425         * tests/test-memmem.c: Include <string.h> first.
45426
45427 2007-12-22  Bruno Haible  <bruno@clisp.org>
45428
45429         * gnulib-tool (func_create_testdir): Change $auxdir while generating
45430         the contents of $testsbase.
45431         Reported by Ralf Wildenhues.
45432
45433 2007-12-22  Bruno Haible  <bruno@clisp.org>
45434
45435         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
45436         two variables local_ldadd_before, local_ldadd_last.
45437
45438 2007-12-20  Eric Blake  <ebb9@byu.net>
45439
45440         Work around circular library issue when cross-compiling.
45441         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
45442         that progname.o does not need to pull in rpl_memcmp.
45443
45444 2007-12-19  Eric Blake  <ebb9@byu.net>
45445
45446         Fix memmem to avoid O(n^2) worst-case complexity.
45447         * lib/memmem.c (knuth_morris_pratt): New function.
45448         (memmem): Use it if first few naive iterations fail.
45449         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
45450         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
45451         * modules/memchr (License): Likewise.
45452         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
45453         malloca.
45454         * tests/test-memmem.c: Rewrite, borrowing ideas from
45455         test-mbsstr1.c; the old version wouldn't even compile!
45456         * modules/memmem-tests: New file.
45457         * lib/string.in.h (rpl_memmem): Add declaration.
45458         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
45459         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
45460         REPLACE_MEMMEM.
45461
45462 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45463
45464         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
45465         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
45466         before any system include files, and undef after them all.  This
45467         should fix a problem on VMS reported by John E. Malmberg in
45468         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
45469
45470 2007-12-17  Eric Blake  <ebb9@byu.net>
45471
45472         Revert addition of verify, for BSD/OS.
45473         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
45474         can't handle large files, for the sake of obsolete platforms.
45475         * modules/fseeko (Depends-on): Remove verify.
45476         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
45477         * doc/functions/ftello.texi (ftello): Likewise.
45478         * doc/functions/fgetpos.texi (fgetpos): Likewise.
45479         Reported by Larry Jones.
45480
45481 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
45482
45483         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
45484         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
45485
45486 2007-12-17  Jim Meyering  <meyering@redhat.com>
45487
45488         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
45489         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
45490         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
45491         * modules/getcwd (Depends-on): Add openat.
45492         Reported by Petr Salinger.
45493
45494 2007-12-17  Bruno Haible  <bruno@clisp.org>
45495
45496         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
45497         avoid a segmentation fault of the configure test on x86_64 systems.
45498
45499 2007-12-15  Jim Meyering  <meyering@redhat.com>
45500
45501         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
45502
45503 2007-12-13  Eric Blake  <ebb9@byu.net>
45504
45505         Another fseek test.
45506         * tests/test-fseek.c (main): Also test ungetc handling.
45507         * tests/test-fseeko.c (main): Likewise.
45508         * modules/fseeko (Depends-on): Add verify.
45509         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
45510         large.
45511         Reported by Larry Jones.
45512
45513         Fix fseeko on mingw.
45514         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
45515         seek.
45516
45517         Beef up fseek tests.
45518         * tests/test-fseek.c (main): Also test eof handling.
45519         * tests/test-fseeko.c (main): Likewise.
45520         Reported by Larry Jones.
45521
45522 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
45523
45524         Fix fseeko on BSD-based platforms.
45525         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
45526         successful seek.
45527
45528 2007-12-12  Eric Blake  <ebb9@byu.net>
45529
45530         Allow circular dependency of separate libtests.a
45531         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
45532         when use_libtests.
45533
45534 2007-12-11  Eric Blake  <ebb9@byu.net>
45535
45536         Fix bug with -0.0L in previous patch.
45537         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
45538         * tests/test-isnan.c (main): Also test on zeroes.
45539         * tests/test-isnanf.c (main): Likewise.
45540         * tests/test-isnanl.h (main): Likewise.
45541
45542         Detect pseudo-denormals on x86 even when cross-compiling.
45543         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
45544         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
45545         invalid bit patterns that happen to satisfy ==.
45546
45547         Avoid link failures with separate libtests.a.
45548         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
45549         last, to satisfy circular dependencies.
45550
45551 2007-12-11  Eric Blake  <ebb9@byu.net>
45552         and Bruno Haible  <bruno@clisp.org>
45553
45554         Fix OpenBSD 4.0 <float.h> handling of long double.
45555         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
45556         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
45557         * doc/headers/float.texi (float.h): Document OpenBSD bug.
45558
45559 2007-12-11  Jim Meyering  <meyering@redhat.com>
45560
45561         * users.txt: Add libvirt.
45562
45563         Support versions of autoconf prior to 2.59c.
45564         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
45565         if it is not already defined.
45566
45567 2007-12-09  Bruno Haible  <bruno@clisp.org>
45568
45569         Let 'gnulib-tool --import' collect sources needed for the tests in
45570         tests/ rather than in lib/.
45571         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
45572         argument. If true, add rules to generate libtests.a, and put libtests.a
45573         into $(LDADD). Consider source files in subdirectories and set
45574         uses_subdirs.
45575         (func_emit_initmacro_start, func_emit_initmacro_end,
45576         func_emit_initmacro_done): Pass all arguments explicitly.
45577         (func_import): Determine two module lists main_modules,
45578         testsrelated_modules. Determine use_libtests. Determine two variables
45579         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
45580         instead of just sed_transform_lib_file. Determine two variables
45581         main_files and testsrelated_files. Compute 'files' as the union of
45582         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
45583         func_add_or_update. In the generated gnulib-comp.m4, collect the
45584         object files for tests/ in different variables than those for lib/.
45585         Substitute LIBTESTS_LIBDEPS.
45586         (func_create_testdir): Combine the uses_subdirs results from
45587         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
45588
45589 2007-12-09  Bruno Haible  <bruno@clisp.org>
45590
45591         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
45592         the build-aux directory.
45593
45594 2007-12-09  Bruno Haible  <bruno@clisp.org>
45595
45596         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
45597         introduced on 2006-09-09.
45598
45599 2007-12-07  Jim Meyering  <meyering@redhat.com>
45600
45601         Let these macros work also with autoconf-2.59.
45602         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
45603         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
45604         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45605
45606 2007-12-06  Jim Meyering  <meyering@redhat.com>
45607
45608         Avoid a configure-time syntax error in gl_FUNC_ACL.
45609         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
45610         function in each branch, before testing the cache variable.
45611
45612 2007-12-04  Eric Blake  <ebb9@byu.net>
45613
45614         Make scripts executable.
45615         * build-aux/config.guess: Add execute permissions.
45616         * build-aux/config.sub: Likewise.
45617         * build-aux/gendocs.sh: Likewise.
45618
45619         Fix frexp on mingw.
45620         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
45621         cross-compiling.
45622         * doc/functions/frexp.texi (frexp): Document the bug.
45623
45624         Make cygwin fseeko check more reliable.
45625         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
45626         version numbers, rather than unrelated feature check.
45627         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
45628         * doc/functions/ftello.texi (ftello): Likewise.
45629         Reported by Bruno Haible.
45630
45631         * m4/strerror.m4: Bump version number.
45632
45633 2007-12-03  Bruno Haible  <bruno@clisp.org>
45634
45635         * doc/functions/mprotect.texi: Mention the mingw problem.
45636
45637 2007-12-03  Eric Blake  <ebb9@byu.net>
45638
45639         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
45640         REPLACE_STRERROR is initialized before this macro.
45641
45642 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45643
45644         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
45645         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
45646         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
45647         put -lsec in even for programs other than 'ls'.  This fixes a problem
45648         for gettext reported by Bruno Haible in
45649         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
45650         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
45651         Add support for Solaris 10.  This isn't efficient, but should get the
45652         job done for now.
45653
45654 2007-12-03  James Youngman  <jay@gnu.org>
45655
45656         * doc/regexprops-generic.texi: change "an close-group" to "a
45657         close-group" and "illegal" to "not allowed".
45658
45659 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45660
45661         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
45662         pr_byname.h. Needed for the rare case when the maintainer has done
45663         "make maintainer-clean" in the source directory and then attempts a
45664         build outside the source directory.
45665         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
45666         scripts_byname.h.
45667
45668 2007-12-02  Martin Lambers <marlam@marlam.de>
45669             Bruno Haible  <bruno@clisp.org>
45670
45671         * lib/getpagesize.h: Remove file.
45672         * lib/unistd.in.h: Include declaration of getpagesize here.
45673         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
45674         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
45675         HAVE_SYS_PARAM_H.
45676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
45677         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
45678         * modules/getpagesize (Files): Remove lib/getpagesize.h.
45679         (Depends-on): Add unistd.
45680         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45681         (Include): Use <unistd.h> instead of getpagesize.h.
45682         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
45683         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
45684         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
45685         gl_GETPAGESIZE invocation, already handled by module dependency.
45686         * lib/pagealign_alloc.c: Don't include getpagesize.h.
45687
45688 2007-12-02  Bruno Haible  <bruno@clisp.org>
45689
45690         * modules/strings-tests: New file.
45691         * tests/test-strings.c: New file.
45692
45693         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
45694         * lib/strings.in.h: New file.
45695         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
45696         * m4/strings_h.m4: New file.
45697         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
45698         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
45699         * modules/strings: New file.
45700         * modules/string (Makefile.am): Update.
45701         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
45702         Reported by Karl Berry.
45703
45704 2007-12-01  Eric Blake  <ebb9@byu.net>
45705
45706         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
45707         accomodate fix in cygwin 1.5.25.
45708
45709 2007-12-01  Jim Meyering  <meyering@redhat.com>
45710
45711         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
45712         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
45713         that would inhibit utf8-optimization of a regexp containing line-
45714         or buffer-anchors, e.g., `^', `$'.
45715
45716 2007-11-30  Bruno Haible  <bruno@clisp.org>
45717
45718         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
45719         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
45720         glthread_recursive_lock_init.
45721         * lib/lock.c (glthread_recursive_lock_init)
45722         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
45723         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45724
45725 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
45726
45727         New function qset_acl, like set_acl but with syscall semantics.
45728         * lib/acl.h (qset_acl): New decl.
45729         * lib/acl.c (qset_acl): New function.
45730         (set_acl): Use new function.  Use more-consistent diagnostics.
45731
45732 2007-11-28  Jim Meyering  <meyering@redhat.com>
45733
45734         * modules/physmem (License): Change from GPL to LGPLv2+.
45735
45736 2007-11-26  Bruno Haible  <bruno@clisp.org>
45737
45738         * lib/vasnprintf.c (decode_long_double): Don't abort if the
45739         'long double' type has excess precision.
45740         Reported by Jim Meyering in
45741         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
45742
45743 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45744
45745         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
45746         Sync from <http://gnu.org/licenses>.
45747         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
45748         with license text from same location.
45749         * doc/maintain.texi, doc/standards.texi:  Sync from
45750         <http://savannah.gnu.org/projects/gnustandards>.
45751
45752 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
45753         and Jim Meyering  <meyering@redhat.com>
45754
45755         Adjust getdate' grammar to accept a slightly more regular language.
45756         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
45757         Before, the former was rejected.
45758         * lib/getdate.y (digits_to_date_time): New function, factored
45759         out of ...
45760         (number): ...here.  Just call digits_to_date_time.
45761         (hybrid): New non-terminal to handle an <unsigned number,
45762         signed relative offset> sequence consistently.
45763
45764 2007-11-18  Jim Meyering  <meyering@redhat.com>
45765
45766         Pull my changes from coreutils:
45767         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
45768         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
45769         use of $gnulib_tool_option_extras, so that it's separated from the
45770         preceding argument.
45771
45772         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
45773         * build-aux/bootstrap (cp_mark_as_generated): Create any required
45774         parent destination directories before copying a file into place.
45775
45776 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
45777
45778         bootstrap: work also with 4-argument variant of AC_INIT
45779         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
45780
45781 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45782
45783         Port test-getaddrinfo to Solaris.
45784         Problem reported by Bruno Haible in
45785         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
45786         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
45787         explanation of setting 'hints'.
45788         Don't reject an implementation merely because it returns EAI_SERVICE.
45789         (EAI_SERVICE): Define to 0 if not defined.
45790
45791 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
45792
45793         The license of gnu-make and posix-shell is now "GPLed build tool".
45794         * modules/gnu-make (License): Likewise.
45795         * modules/posix-shell (License): Likewise.
45796
45797         New module posix-shell, for determining a POSIX shell
45798         or perhaps something that is close enough to a POSIX shell.
45799         * m4/posix-shell.m4: New file.
45800         * modules/posix-shell: New file.
45801
45802         * MODULES.html.sh: Mention new module.
45803
45804         New module gnu-make, for determining whether we're using GNU Make.
45805         * m4/gnu-make.m4: New file.
45806         * modules/gnu-make: New file.
45807         * MODULES.html.sh: Mention new module.
45808
45809 2007-11-14  Jim Meyering  <meyering@redhat.com>
45810
45811         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
45812         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
45813         use this macro to create a function _definition_.
45814         Remove useless "#undef ARGMATCH_DIE".
45815
45816 2007-11-14  Bruno Haible  <bruno@clisp.org>
45817
45818         * lib/config.charset: Update for OpenBSD 4.1.
45819         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
45820
45821 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
45822
45823         Document 64-bit #if problems in stdint.texi.
45824         * doc/headers/stdint.texi (stdint.h): Mention problems with
45825         64-bit-#if, and how to work around them.
45826
45827         Don't insist on 'long long int' support in the preprocessor.  It
45828         breaks too many things.  For example, PRIdMAX still uses a 'long
45829         long int' format with the latest Sun compiler, even though
45830         HAVE_LONG_LONG_INT isn't defined due to that compiler's
45831         preprocessor problem.  This causes the latest coreutils to dump
45832         core on Solaris 10 sparc with the Sun C compiler.
45833         Instead, fix the 2007-10-16 problem in a different way, by evaluating
45834         the troublesome expressions at configure-time, not at #if-time.
45835         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
45836         preprocessor.
45837         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
45838         compile-time C checks, done at 'configure'-time.
45839         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
45840         * modules/inttypes (Makefile): Substitute the new symbols that
45841         gl_INTTYPES_H now generates.
45842         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
45843
45844 2007-11-12  Bruno Haible  <bruno@clisp.org>
45845
45846         Tests for Unicode character classification functions.
45847
45848         * modules/unictype/bidicategory-byname-tests: New file.
45849         * modules/unictype/bidicategory-name-tests: New file.
45850         * modules/unictype/bidicategory-of-tests: New file.
45851         * modules/unictype/bidicategory-test-tests: New file.
45852         * modules/unictype/block-list-tests: New file.
45853         * modules/unictype/block-of-tests: New file.
45854         * modules/unictype/block-test-tests: New file.
45855         * modules/unictype/category-C-tests: New file.
45856         * modules/unictype/category-Cc-tests: New file.
45857         * modules/unictype/category-Cf-tests: New file.
45858         * modules/unictype/category-Cn-tests: New file.
45859         * modules/unictype/category-Co-tests: New file.
45860         * modules/unictype/category-Cs-tests: New file.
45861         * modules/unictype/category-L-tests: New file.
45862         * modules/unictype/category-Ll-tests: New file.
45863         * modules/unictype/category-Lm-tests: New file.
45864         * modules/unictype/category-Lo-tests: New file.
45865         * modules/unictype/category-Lt-tests: New file.
45866         * modules/unictype/category-Lu-tests: New file.
45867         * modules/unictype/category-M-tests: New file.
45868         * modules/unictype/category-Mc-tests: New file.
45869         * modules/unictype/category-Me-tests: New file.
45870         * modules/unictype/category-Mn-tests: New file.
45871         * modules/unictype/category-N-tests: New file.
45872         * modules/unictype/category-Nd-tests: New file.
45873         * modules/unictype/category-Nl-tests: New file.
45874         * modules/unictype/category-No-tests: New file.
45875         * modules/unictype/category-P-tests: New file.
45876         * modules/unictype/category-Pc-tests: New file.
45877         * modules/unictype/category-Pd-tests: New file.
45878         * modules/unictype/category-Pe-tests: New file.
45879         * modules/unictype/category-Pf-tests: New file.
45880         * modules/unictype/category-Pi-tests: New file.
45881         * modules/unictype/category-Po-tests: New file.
45882         * modules/unictype/category-Ps-tests: New file.
45883         * modules/unictype/category-S-tests: New file.
45884         * modules/unictype/category-Sc-tests: New file.
45885         * modules/unictype/category-Sk-tests: New file.
45886         * modules/unictype/category-Sm-tests: New file.
45887         * modules/unictype/category-So-tests: New file.
45888         * modules/unictype/category-Z-tests: New file.
45889         * modules/unictype/category-Zl-tests: New file.
45890         * modules/unictype/category-Zp-tests: New file.
45891         * modules/unictype/category-Zs-tests: New file.
45892         * modules/unictype/category-and-not-tests: New file.
45893         * modules/unictype/category-and-tests: New file.
45894         * modules/unictype/category-byname-tests: New file.
45895         * modules/unictype/category-name-tests: New file.
45896         * modules/unictype/category-none-tests: New file.
45897         * modules/unictype/category-of-tests: New file.
45898         * modules/unictype/category-or-tests: New file.
45899         * modules/unictype/category-test-withtable-tests: New file.
45900         * modules/unictype/combining-class-tests: New file.
45901         * modules/unictype/ctype-alnum-tests: New file.
45902         * modules/unictype/ctype-alpha-tests: New file.
45903         * modules/unictype/ctype-blank-tests: New file.
45904         * modules/unictype/ctype-cntrl-tests: New file.
45905         * modules/unictype/ctype-digit-tests: New file.
45906         * modules/unictype/ctype-graph-tests: New file.
45907         * modules/unictype/ctype-lower-tests: New file.
45908         * modules/unictype/ctype-print-tests: New file.
45909         * modules/unictype/ctype-punct-tests: New file.
45910         * modules/unictype/ctype-space-tests: New file.
45911         * modules/unictype/ctype-upper-tests: New file.
45912         * modules/unictype/ctype-xdigit-tests: New file.
45913         * modules/unictype/decimal-digit-tests: New file.
45914         * modules/unictype/digit-tests: New file.
45915         * modules/unictype/mirror-tests: New file.
45916         * modules/unictype/numeric-tests: New file.
45917         * modules/unictype/property-alphabetic-tests: New file.
45918         * modules/unictype/property-ascii-hex-digit-tests: New file.
45919         * modules/unictype/property-bidi-arabic-digit-tests: New file.
45920         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
45921         * modules/unictype/property-bidi-block-separator-tests: New file.
45922         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
45923         * modules/unictype/property-bidi-common-separator-tests: New file.
45924         * modules/unictype/property-bidi-control-tests: New file.
45925         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
45926         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
45927         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
45928         * modules/unictype/property-bidi-european-digit-tests: New file.
45929         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
45930         * modules/unictype/property-bidi-left-to-right-tests: New file.
45931         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
45932         * modules/unictype/property-bidi-other-neutral-tests: New file.
45933         * modules/unictype/property-bidi-pdf-tests: New file.
45934         * modules/unictype/property-bidi-segment-separator-tests: New file.
45935         * modules/unictype/property-bidi-whitespace-tests: New file.
45936         * modules/unictype/property-byname-tests: New file.
45937         * modules/unictype/property-combining-tests: New file.
45938         * modules/unictype/property-composite-tests: New file.
45939         * modules/unictype/property-currency-symbol-tests: New file.
45940         * modules/unictype/property-dash-tests: New file.
45941         * modules/unictype/property-decimal-digit-tests: New file.
45942         * modules/unictype/property-default-ignorable-code-point-tests: New file.
45943         * modules/unictype/property-deprecated-tests: New file.
45944         * modules/unictype/property-diacritic-tests: New file.
45945         * modules/unictype/property-extender-tests: New file.
45946         * modules/unictype/property-format-control-tests: New file.
45947         * modules/unictype/property-grapheme-base-tests: New file.
45948         * modules/unictype/property-grapheme-extend-tests: New file.
45949         * modules/unictype/property-grapheme-link-tests: New file.
45950         * modules/unictype/property-hex-digit-tests: New file.
45951         * modules/unictype/property-hyphen-tests: New file.
45952         * modules/unictype/property-id-continue-tests: New file.
45953         * modules/unictype/property-id-start-tests: New file.
45954         * modules/unictype/property-ideographic-tests: New file.
45955         * modules/unictype/property-ids-binary-operator-tests: New file.
45956         * modules/unictype/property-ids-trinary-operator-tests: New file.
45957         * modules/unictype/property-ignorable-control-tests: New file.
45958         * modules/unictype/property-iso-control-tests: New file.
45959         * modules/unictype/property-join-control-tests: New file.
45960         * modules/unictype/property-left-of-pair-tests: New file.
45961         * modules/unictype/property-line-separator-tests: New file.
45962         * modules/unictype/property-logical-order-exception-tests: New file.
45963         * modules/unictype/property-lowercase-tests: New file.
45964         * modules/unictype/property-math-tests: New file.
45965         * modules/unictype/property-non-break-tests: New file.
45966         * modules/unictype/property-not-a-character-tests: New file.
45967         * modules/unictype/property-numeric-tests: New file.
45968         * modules/unictype/property-other-alphabetic-tests: New file.
45969         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
45970         * modules/unictype/property-other-grapheme-extend-tests: New file.
45971         * modules/unictype/property-other-id-continue-tests: New file.
45972         * modules/unictype/property-other-id-start-tests: New file.
45973         * modules/unictype/property-other-lowercase-tests: New file.
45974         * modules/unictype/property-other-math-tests: New file.
45975         * modules/unictype/property-other-uppercase-tests: New file.
45976         * modules/unictype/property-paired-punctuation-tests: New file.
45977         * modules/unictype/property-paragraph-separator-tests: New file.
45978         * modules/unictype/property-pattern-syntax-tests: New file.
45979         * modules/unictype/property-pattern-white-space-tests: New file.
45980         * modules/unictype/property-private-use-tests: New file.
45981         * modules/unictype/property-punctuation-tests: New file.
45982         * modules/unictype/property-quotation-mark-tests: New file.
45983         * modules/unictype/property-radical-tests: New file.
45984         * modules/unictype/property-sentence-terminal-tests: New file.
45985         * modules/unictype/property-soft-dotted-tests: New file.
45986         * modules/unictype/property-space-tests: New file.
45987         * modules/unictype/property-terminal-punctuation-tests: New file.
45988         * modules/unictype/property-test-tests: New file.
45989         * modules/unictype/property-titlecase-tests: New file.
45990         * modules/unictype/property-unassigned-code-value-tests: New file.
45991         * modules/unictype/property-unified-ideograph-tests: New file.
45992         * modules/unictype/property-uppercase-tests: New file.
45993         * modules/unictype/property-variation-selector-tests: New file.
45994         * modules/unictype/property-white-space-tests: New file.
45995         * modules/unictype/property-xid-continue-tests: New file.
45996         * modules/unictype/property-xid-start-tests: New file.
45997         * modules/unictype/property-zero-width-tests: New file.
45998         * modules/unictype/scripts-tests: New file.
45999         * modules/unictype/syntax-c-ident-tests: New file.
46000         * modules/unictype/syntax-c-whitespace-tests: New file.
46001         * modules/unictype/syntax-java-ident-tests: New file.
46002         * modules/unictype/syntax-java-whitespace-tests: New file.
46003         * tests/unictype/test-bidi_byname.c: New file.
46004         * tests/unictype/test-bidi_name.c: New file.
46005         * tests/unictype/test-bidi_of.c: New file.
46006         * tests/unictype/test-bidi_test.c: New file.
46007         * tests/unictype/test-block_list.c: New file.
46008         * tests/unictype/test-block_of.c: New file.
46009         * tests/unictype/test-block_test.c: New file.
46010         * tests/unictype/test-categ_and.c: New file.
46011         * tests/unictype/test-categ_and_not.c: New file.
46012         * tests/unictype/test-categ_byname.c: New file.
46013         * tests/unictype/test-categ_name.c: New file.
46014         * tests/unictype/test-categ_none.c: New file.
46015         * tests/unictype/test-categ_of.c: New file.
46016         * tests/unictype/test-categ_or.c: New file.
46017         * tests/unictype/test-categ_test_withtable.c: New file.
46018         * tests/unictype/test-combining.c: New file.
46019         * tests/unictype/test-decdigit.c: New file.
46020         * tests/unictype/test-digit.c: New file.
46021         * tests/unictype/test-mirror.c: New file.
46022         * tests/unictype/test-numeric.c: New file.
46023         * tests/unictype/test-pr_byname.c: New file.
46024         * tests/unictype/test-pr_test.c: New file.
46025         * tests/unictype/test-predicate-part1.h: New file.
46026         * tests/unictype/test-predicate-part2.h: New file.
46027         * tests/unictype/test-scripts.c: New file.
46028         * tests/unictype/test-sy_c_ident.c: New file.
46029         * tests/unictype/test-sy_java_ident.c: New file.
46030
46031         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
46032         for Unicode 5.0.0.
46033         * tests/unictype/test-categ_Cc.c: Likewise.
46034         * tests/unictype/test-categ_Cf.c: Likewise.
46035         * tests/unictype/test-categ_Cn.c: Likewise.
46036         * tests/unictype/test-categ_Co.c: Likewise.
46037         * tests/unictype/test-categ_Cs.c: Likewise.
46038         * tests/unictype/test-categ_L.c: Likewise.
46039         * tests/unictype/test-categ_Ll.c: Likewise.
46040         * tests/unictype/test-categ_Lm.c: Likewise.
46041         * tests/unictype/test-categ_Lo.c: Likewise.
46042         * tests/unictype/test-categ_Lt.c: Likewise.
46043         * tests/unictype/test-categ_Lu.c: Likewise.
46044         * tests/unictype/test-categ_M.c: Likewise.
46045         * tests/unictype/test-categ_Mc.c: Likewise.
46046         * tests/unictype/test-categ_Me.c: Likewise.
46047         * tests/unictype/test-categ_Mn.c: Likewise.
46048         * tests/unictype/test-categ_N.c: Likewise.
46049         * tests/unictype/test-categ_Nd.c: Likewise.
46050         * tests/unictype/test-categ_Nl.c: Likewise.
46051         * tests/unictype/test-categ_No.c: Likewise.
46052         * tests/unictype/test-categ_P.c: Likewise.
46053         * tests/unictype/test-categ_Pc.c: Likewise.
46054         * tests/unictype/test-categ_Pd.c: Likewise.
46055         * tests/unictype/test-categ_Pe.c: Likewise.
46056         * tests/unictype/test-categ_Pf.c: Likewise.
46057         * tests/unictype/test-categ_Pi.c: Likewise.
46058         * tests/unictype/test-categ_Po.c: Likewise.
46059         * tests/unictype/test-categ_Ps.c: Likewise.
46060         * tests/unictype/test-categ_S.c: Likewise.
46061         * tests/unictype/test-categ_Sc.c: Likewise.
46062         * tests/unictype/test-categ_Sk.c: Likewise.
46063         * tests/unictype/test-categ_Sm.c: Likewise.
46064         * tests/unictype/test-categ_So.c: Likewise.
46065         * tests/unictype/test-categ_Z.c: Likewise.
46066         * tests/unictype/test-categ_Zl.c: Likewise.
46067         * tests/unictype/test-categ_Zp.c: Likewise.
46068         * tests/unictype/test-categ_Zs.c: Likewise.
46069         * tests/unictype/test-ctype_alnum.c: Likewise.
46070         * tests/unictype/test-ctype_alpha.c: Likewise.
46071         * tests/unictype/test-ctype_blank.c: Likewise.
46072         * tests/unictype/test-ctype_cntrl.c: Likewise.
46073         * tests/unictype/test-ctype_digit.c: Likewise.
46074         * tests/unictype/test-ctype_graph.c: Likewise.
46075         * tests/unictype/test-ctype_lower.c: Likewise.
46076         * tests/unictype/test-ctype_print.c: Likewise.
46077         * tests/unictype/test-ctype_punct.c: Likewise.
46078         * tests/unictype/test-ctype_space.c: Likewise.
46079         * tests/unictype/test-ctype_upper.c: Likewise.
46080         * tests/unictype/test-ctype_xdigit.c: Likewise.
46081         * tests/unictype/test-decdigit.h: Likewise.
46082         * tests/unictype/test-digit.h: Likewise.
46083         * tests/unictype/test-numeric.h: Likewise.
46084         * tests/unictype/test-pr_alphabetic.c: Likewise.
46085         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
46086         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
46087         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
46088         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
46089         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
46090         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
46091         * tests/unictype/test-pr_bidi_control.c: Likewise.
46092         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
46093         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
46094         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
46095         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
46096         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
46097         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
46098         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
46099         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
46100         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
46101         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
46102         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
46103         * tests/unictype/test-pr_combining.c: Likewise.
46104         * tests/unictype/test-pr_composite.c: Likewise.
46105         * tests/unictype/test-pr_currency_symbol.c: Likewise.
46106         * tests/unictype/test-pr_dash.c: Likewise.
46107         * tests/unictype/test-pr_decimal_digit.c: Likewise.
46108         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
46109         * tests/unictype/test-pr_deprecated.c: Likewise.
46110         * tests/unictype/test-pr_diacritic.c: Likewise.
46111         * tests/unictype/test-pr_extender.c: Likewise.
46112         * tests/unictype/test-pr_format_control.c: Likewise.
46113         * tests/unictype/test-pr_grapheme_base.c: Likewise.
46114         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
46115         * tests/unictype/test-pr_grapheme_link.c: Likewise.
46116         * tests/unictype/test-pr_hex_digit.c: Likewise.
46117         * tests/unictype/test-pr_hyphen.c: Likewise.
46118         * tests/unictype/test-pr_id_continue.c: Likewise.
46119         * tests/unictype/test-pr_id_start.c: Likewise.
46120         * tests/unictype/test-pr_ideographic.c: Likewise.
46121         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
46122         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
46123         * tests/unictype/test-pr_ignorable_control.c: Likewise.
46124         * tests/unictype/test-pr_iso_control.c: Likewise.
46125         * tests/unictype/test-pr_join_control.c: Likewise.
46126         * tests/unictype/test-pr_left_of_pair.c: Likewise.
46127         * tests/unictype/test-pr_line_separator.c: Likewise.
46128         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
46129         * tests/unictype/test-pr_lowercase.c: Likewise.
46130         * tests/unictype/test-pr_math.c: Likewise.
46131         * tests/unictype/test-pr_non_break.c: Likewise.
46132         * tests/unictype/test-pr_not_a_character.c: Likewise.
46133         * tests/unictype/test-pr_numeric.c: Likewise.
46134         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
46135         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
46136         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
46137         * tests/unictype/test-pr_other_id_continue.c: Likewise.
46138         * tests/unictype/test-pr_other_id_start.c: Likewise.
46139         * tests/unictype/test-pr_other_lowercase.c: Likewise.
46140         * tests/unictype/test-pr_other_math.c: Likewise.
46141         * tests/unictype/test-pr_other_uppercase.c: Likewise.
46142         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
46143         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
46144         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
46145         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
46146         * tests/unictype/test-pr_private_use.c: Likewise.
46147         * tests/unictype/test-pr_punctuation.c: Likewise.
46148         * tests/unictype/test-pr_quotation_mark.c: Likewise.
46149         * tests/unictype/test-pr_radical.c: Likewise.
46150         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
46151         * tests/unictype/test-pr_soft_dotted.c: Likewise.
46152         * tests/unictype/test-pr_space.c: Likewise.
46153         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
46154         * tests/unictype/test-pr_titlecase.c: Likewise.
46155         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
46156         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
46157         * tests/unictype/test-pr_uppercase.c: Likewise.
46158         * tests/unictype/test-pr_variation_selector.c: Likewise.
46159         * tests/unictype/test-pr_white_space.c: Likewise.
46160         * tests/unictype/test-pr_xid_continue.c: Likewise.
46161         * tests/unictype/test-pr_xid_start.c: Likewise.
46162         * tests/unictype/test-pr_zero_width.c: Likewise.
46163         * tests/unictype/test-sy_c_whitespace.c: Likewise.
46164         * tests/unictype/test-sy_java_whitespace.c: Likewise.
46165
46166 2007-11-12  Bruno Haible  <bruno@clisp.org>
46167
46168         Unicode character classification functions.
46169         * lib/unictype.h: New file.
46170         * modules/unictype/base: New file.
46171         * modules/unictype/category-L: New file.
46172         * modules/unictype/category-Lu: New file.
46173         * modules/unictype/category-Ll: New file.
46174         * modules/unictype/category-Lt: New file.
46175         * modules/unictype/category-Lm: New file.
46176         * modules/unictype/category-Lo: New file.
46177         * modules/unictype/category-M: New file.
46178         * modules/unictype/category-Mn: New file.
46179         * modules/unictype/category-Mc: New file.
46180         * modules/unictype/category-Me: New file.
46181         * modules/unictype/category-N: New file.
46182         * modules/unictype/category-Nd: New file.
46183         * modules/unictype/category-Nl: New file.
46184         * modules/unictype/category-No: New file.
46185         * modules/unictype/category-P: New file.
46186         * modules/unictype/category-Pc: New file.
46187         * modules/unictype/category-Pd: New file.
46188         * modules/unictype/category-Ps: New file.
46189         * modules/unictype/category-Pe: New file.
46190         * modules/unictype/category-Pi: New file.
46191         * modules/unictype/category-Pf: New file.
46192         * modules/unictype/category-Po: New file.
46193         * modules/unictype/category-S: New file.
46194         * modules/unictype/category-Sm: New file.
46195         * modules/unictype/category-Sc: New file.
46196         * modules/unictype/category-Sk: New file.
46197         * modules/unictype/category-So: New file.
46198         * modules/unictype/category-Z: New file.
46199         * modules/unictype/category-Zs: New file.
46200         * modules/unictype/category-Zl: New file.
46201         * modules/unictype/category-Zp: New file.
46202         * modules/unictype/category-C: New file.
46203         * modules/unictype/category-Cc: New file.
46204         * modules/unictype/category-Cf: New file.
46205         * modules/unictype/category-Cs: New file.
46206         * modules/unictype/category-Co: New file.
46207         * modules/unictype/category-Cn: New file.
46208         * modules/unictype/category-or: New file.
46209         * modules/unictype/category-of: New file.
46210         * modules/unictype/category-test: New file.
46211         * modules/unictype/category-test-withtable: New file.
46212         * modules/unictype/category-byname: New file.
46213         * modules/unictype/category-none: New file.
46214         * modules/unictype/category-and: New file.
46215         * modules/unictype/category-and-not: New file.
46216         * modules/unictype/category-name: New file.
46217         * modules/unictype/combining-class: New file.
46218         * modules/unictype/category-all: New file.
46219         * modules/unictype/bidicategory-all: New file.
46220         * modules/unictype/bidicategory-byname: New file.
46221         * modules/unictype/bidicategory-name: New file.
46222         * modules/unictype/bidicategory-of: New file.
46223         * modules/unictype/bidicategory-test: New file.
46224         * modules/unictype/decimal-digit: New file.
46225         * modules/unictype/digit: New file.
46226         * modules/unictype/numeric: New file.
46227         * modules/unictype/mirror: New file.
46228         * modules/unictype/property-white-space: New file.
46229         * modules/unictype/property-alphabetic: New file.
46230         * modules/unictype/property-other-alphabetic: New file.
46231         * modules/unictype/property-not-a-character: New file.
46232         * modules/unictype/property-default-ignorable-code-point: New file.
46233         * modules/unictype/property-other-default-ignorable-code-point: New
46234         file.
46235         * modules/unictype/property-deprecated: New file.
46236         * modules/unictype/property-logical-order-exception: New file.
46237         * modules/unictype/property-variation-selector: New file.
46238         * modules/unictype/property-private-use: New file.
46239         * modules/unictype/property-unassigned-code-value: New file.
46240         * modules/unictype/property-uppercase: New file.
46241         * modules/unictype/property-other-uppercase: New file.
46242         * modules/unictype/property-lowercase: New file.
46243         * modules/unictype/property-other-lowercase: New file.
46244         * modules/unictype/property-titlecase: New file.
46245         * modules/unictype/property-soft-dotted: New file.
46246         * modules/unictype/property-id-start: New file.
46247         * modules/unictype/property-other-id-start: New file.
46248         * modules/unictype/property-id-continue: New file.
46249         * modules/unictype/property-other-id-continue: New file.
46250         * modules/unictype/property-xid-start: New file.
46251         * modules/unictype/property-xid-continue: New file.
46252         * modules/unictype/property-pattern-white-space: New file.
46253         * modules/unictype/property-pattern-syntax: New file.
46254         * modules/unictype/property-join-control: New file.
46255         * modules/unictype/property-grapheme-base: New file.
46256         * modules/unictype/property-grapheme-extend: New file.
46257         * modules/unictype/property-other-grapheme-extend: New file.
46258         * modules/unictype/property-grapheme-link: New file.
46259         * modules/unictype/property-bidi-control: New file.
46260         * modules/unictype/property-bidi-left-to-right: New file.
46261         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
46262         * modules/unictype/property-bidi-arabic-right-to-left: New file.
46263         * modules/unictype/property-bidi-european-digit: New file.
46264         * modules/unictype/property-bidi-eur-num-separator: New file.
46265         * modules/unictype/property-bidi-eur-num-terminator: New file.
46266         * modules/unictype/property-bidi-arabic-digit: New file.
46267         * modules/unictype/property-bidi-common-separator: New file.
46268         * modules/unictype/property-bidi-block-separator: New file.
46269         * modules/unictype/property-bidi-segment-separator: New file.
46270         * modules/unictype/property-bidi-whitespace: New file.
46271         * modules/unictype/property-bidi-non-spacing-mark: New file.
46272         * modules/unictype/property-bidi-boundary-neutral: New file.
46273         * modules/unictype/property-bidi-pdf: New file.
46274         * modules/unictype/property-bidi-embedding-or-override: New file.
46275         * modules/unictype/property-bidi-other-neutral: New file.
46276         * modules/unictype/property-hex-digit: New file.
46277         * modules/unictype/property-ascii-hex-digit: New file.
46278         * modules/unictype/property-ideographic: New file.
46279         * modules/unictype/property-unified-ideograph: New file.
46280         * modules/unictype/property-radical: New file.
46281         * modules/unictype/property-ids-binary-operator: New file.
46282         * modules/unictype/property-ids-trinary-operator: New file.
46283         * modules/unictype/property-zero-width: New file.
46284         * modules/unictype/property-space: New file.
46285         * modules/unictype/property-non-break: New file.
46286         * modules/unictype/property-iso-control: New file.
46287         * modules/unictype/property-format-control: New file.
46288         * modules/unictype/property-dash: New file.
46289         * modules/unictype/property-hyphen: New file.
46290         * modules/unictype/property-punctuation: New file.
46291         * modules/unictype/property-line-separator: New file.
46292         * modules/unictype/property-paragraph-separator: New file.
46293         * modules/unictype/property-quotation-mark: New file.
46294         * modules/unictype/property-sentence-terminal: New file.
46295         * modules/unictype/property-terminal-punctuation: New file.
46296         * modules/unictype/property-currency-symbol: New file.
46297         * modules/unictype/property-math: New file.
46298         * modules/unictype/property-other-math: New file.
46299         * modules/unictype/property-paired-punctuation: New file.
46300         * modules/unictype/property-left-of-pair: New file.
46301         * modules/unictype/property-combining: New file.
46302         * modules/unictype/property-composite: New file.
46303         * modules/unictype/property-decimal-digit: New file.
46304         * modules/unictype/property-numeric: New file.
46305         * modules/unictype/property-diacritic: New file.
46306         * modules/unictype/property-extender: New file.
46307         * modules/unictype/property-ignorable-control: New file.
46308         * modules/unictype/property-test: New file.
46309         * modules/unictype/property-byname: New file.
46310         * modules/unictype/property-all: New file.
46311         * modules/unictype/scripts: New file.
46312         * modules/unictype/scripts-all: New file.
46313         * modules/unictype/block-of: New file.
46314         * modules/unictype/block-test: New file.
46315         * modules/unictype/block-list: New file.
46316         * modules/unictype/block-all: New file.
46317         * modules/unictype/syntax-c-whitespace: New file.
46318         * modules/unictype/syntax-java-whitespace: New file.
46319         * modules/unictype/syntax-c-ident: New file.
46320         * modules/unictype/syntax-java-ident: New file.
46321         * modules/unictype/ctype-alnum: New file.
46322         * modules/unictype/ctype-alpha: New file.
46323         * modules/unictype/ctype-cntrl: New file.
46324         * modules/unictype/ctype-digit: New file.
46325         * modules/unictype/ctype-graph: New file.
46326         * modules/unictype/ctype-lower: New file.
46327         * modules/unictype/ctype-print: New file.
46328         * modules/unictype/ctype-punct: New file.
46329         * modules/unictype/ctype-space: New file.
46330         * modules/unictype/ctype-upper: New file.
46331         * modules/unictype/ctype-xdigit: New file.
46332         * modules/unictype/ctype-blank: New file.
46333         * lib/unictype/bidi_byname.c: New file.
46334         * lib/unictype/bidi_name.c: New file.
46335         * lib/unictype/bidi_of.c: New file.
46336         * lib/unictype/bidi_test.c: New file.
46337         * lib/unictype/bitmap.h: New file.
46338         * lib/unictype/block_test.c: New file.
46339         * lib/unictype/blocks.c: New file.
46340         * lib/unictype/categ_C.c: New file.
46341         * lib/unictype/categ_Cc.c: New file.
46342         * lib/unictype/categ_Cf.c: New file.
46343         * lib/unictype/categ_Cn.c: New file.
46344         * lib/unictype/categ_Co.c: New file.
46345         * lib/unictype/categ_Cs.c: New file.
46346         * lib/unictype/categ_L.c: New file.
46347         * lib/unictype/categ_Ll.c: New file.
46348         * lib/unictype/categ_Lm.c: New file.
46349         * lib/unictype/categ_Lo.c: New file.
46350         * lib/unictype/categ_Lt.c: New file.
46351         * lib/unictype/categ_Lu.c: New file.
46352         * lib/unictype/categ_M.c: New file.
46353         * lib/unictype/categ_Mc.c: New file.
46354         * lib/unictype/categ_Me.c: New file.
46355         * lib/unictype/categ_Mn.c: New file.
46356         * lib/unictype/categ_N.c: New file.
46357         * lib/unictype/categ_Nd.c: New file.
46358         * lib/unictype/categ_Nl.c: New file.
46359         * lib/unictype/categ_No.c: New file.
46360         * lib/unictype/categ_P.c: New file.
46361         * lib/unictype/categ_Pc.c: New file.
46362         * lib/unictype/categ_Pd.c: New file.
46363         * lib/unictype/categ_Pe.c: New file.
46364         * lib/unictype/categ_Pf.c: New file.
46365         * lib/unictype/categ_Pi.c: New file.
46366         * lib/unictype/categ_Po.c: New file.
46367         * lib/unictype/categ_Ps.c: New file.
46368         * lib/unictype/categ_S.c: New file.
46369         * lib/unictype/categ_Sc.c: New file.
46370         * lib/unictype/categ_Sk.c: New file.
46371         * lib/unictype/categ_Sm.c: New file.
46372         * lib/unictype/categ_So.c: New file.
46373         * lib/unictype/categ_Z.c: New file.
46374         * lib/unictype/categ_Zl.c: New file.
46375         * lib/unictype/categ_Zp.c: New file.
46376         * lib/unictype/categ_Zs.c: New file.
46377         * lib/unictype/categ_and.c: New file.
46378         * lib/unictype/categ_and_not.c: New file.
46379         * lib/unictype/categ_byname.c: New file.
46380         * lib/unictype/categ_name.c: New file.
46381         * lib/unictype/categ_none.c: New file.
46382         * lib/unictype/categ_of.c: New file.
46383         * lib/unictype/categ_or.c: New file.
46384         * lib/unictype/categ_test.c: New file.
46385         * lib/unictype/combining.c: New file.
46386         * lib/unictype/ctype_alnum.c: New file.
46387         * lib/unictype/ctype_alpha.c: New file.
46388         * lib/unictype/ctype_blank.c: New file.
46389         * lib/unictype/ctype_cntrl.c: New file.
46390         * lib/unictype/ctype_digit.c: New file.
46391         * lib/unictype/ctype_graph.c: New file.
46392         * lib/unictype/ctype_lower.c: New file.
46393         * lib/unictype/ctype_print.c: New file.
46394         * lib/unictype/ctype_punct.c: New file.
46395         * lib/unictype/ctype_space.c: New file.
46396         * lib/unictype/ctype_upper.c: New file.
46397         * lib/unictype/ctype_xdigit.c: New file.
46398         * lib/unictype/decdigit.c: New file.
46399         * lib/unictype/digit.c: New file.
46400         * lib/unictype/identsyntaxmap.h: New file.
46401         * lib/unictype/mirror.c: New file.
46402         * lib/unictype/numeric.c: New file.
46403         * lib/unictype/pr_alphabetic.c: New file.
46404         * lib/unictype/pr_ascii_hex_digit.c: New file.
46405         * lib/unictype/pr_bidi_arabic_digit.c: New file.
46406         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
46407         * lib/unictype/pr_bidi_block_separator.c: New file.
46408         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
46409         * lib/unictype/pr_bidi_common_separator.c: New file.
46410         * lib/unictype/pr_bidi_control.c: New file.
46411         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
46412         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
46413         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
46414         * lib/unictype/pr_bidi_european_digit.c: New file.
46415         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
46416         * lib/unictype/pr_bidi_left_to_right.c: New file.
46417         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
46418         * lib/unictype/pr_bidi_other_neutral.c: New file.
46419         * lib/unictype/pr_bidi_pdf.c: New file.
46420         * lib/unictype/pr_bidi_segment_separator.c: New file.
46421         * lib/unictype/pr_bidi_whitespace.c: New file.
46422         * lib/unictype/pr_byname.c: New file.
46423         * lib/unictype/pr_byname.gperf: New file.
46424         * lib/unictype/pr_combining.c: New file.
46425         * lib/unictype/pr_composite.c: New file.
46426         * lib/unictype/pr_currency_symbol.c: New file.
46427         * lib/unictype/pr_dash.c: New file.
46428         * lib/unictype/pr_decimal_digit.c: New file.
46429         * lib/unictype/pr_default_ignorable_code_point.c: New file.
46430         * lib/unictype/pr_deprecated.c: New file.
46431         * lib/unictype/pr_diacritic.c: New file.
46432         * lib/unictype/pr_extender.c: New file.
46433         * lib/unictype/pr_format_control.c: New file.
46434         * lib/unictype/pr_grapheme_base.c: New file.
46435         * lib/unictype/pr_grapheme_extend.c: New file.
46436         * lib/unictype/pr_grapheme_link.c: New file.
46437         * lib/unictype/pr_hex_digit.c: New file.
46438         * lib/unictype/pr_hyphen.c: New file.
46439         * lib/unictype/pr_id_continue.c: New file.
46440         * lib/unictype/pr_id_start.c: New file.
46441         * lib/unictype/pr_ideographic.c: New file.
46442         * lib/unictype/pr_ids_binary_operator.c: New file.
46443         * lib/unictype/pr_ids_trinary_operator.c: New file.
46444         * lib/unictype/pr_ignorable_control.c: New file.
46445         * lib/unictype/pr_iso_control.c: New file.
46446         * lib/unictype/pr_join_control.c: New file.
46447         * lib/unictype/pr_left_of_pair.c: New file.
46448         * lib/unictype/pr_line_separator.c: New file.
46449         * lib/unictype/pr_logical_order_exception.c: New file.
46450         * lib/unictype/pr_lowercase.c: New file.
46451         * lib/unictype/pr_math.c: New file.
46452         * lib/unictype/pr_non_break.c: New file.
46453         * lib/unictype/pr_not_a_character.c: New file.
46454         * lib/unictype/pr_numeric.c: New file.
46455         * lib/unictype/pr_other_alphabetic.c: New file.
46456         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
46457         * lib/unictype/pr_other_grapheme_extend.c: New file.
46458         * lib/unictype/pr_other_id_continue.c: New file.
46459         * lib/unictype/pr_other_id_start.c: New file.
46460         * lib/unictype/pr_other_lowercase.c: New file.
46461         * lib/unictype/pr_other_math.c: New file.
46462         * lib/unictype/pr_other_uppercase.c: New file.
46463         * lib/unictype/pr_paired_punctuation.c: New file.
46464         * lib/unictype/pr_paragraph_separator.c: New file.
46465         * lib/unictype/pr_pattern_syntax.c: New file.
46466         * lib/unictype/pr_pattern_white_space.c: New file.
46467         * lib/unictype/pr_private_use.c: New file.
46468         * lib/unictype/pr_punctuation.c: New file.
46469         * lib/unictype/pr_quotation_mark.c: New file.
46470         * lib/unictype/pr_radical.c: New file.
46471         * lib/unictype/pr_sentence_terminal.c: New file.
46472         * lib/unictype/pr_soft_dotted.c: New file.
46473         * lib/unictype/pr_space.c: New file.
46474         * lib/unictype/pr_terminal_punctuation.c: New file.
46475         * lib/unictype/pr_test.c: New file.
46476         * lib/unictype/pr_titlecase.c: New file.
46477         * lib/unictype/pr_unassigned_code_value.c: New file.
46478         * lib/unictype/pr_unified_ideograph.c: New file.
46479         * lib/unictype/pr_uppercase.c: New file.
46480         * lib/unictype/pr_variation_selector.c: New file.
46481         * lib/unictype/pr_white_space.c: New file.
46482         * lib/unictype/pr_xid_continue.c: New file.
46483         * lib/unictype/pr_xid_start.c: New file.
46484         * lib/unictype/pr_zero_width.c: New file.
46485         * lib/unictype/scripts.c: New file.
46486         * lib/unictype/sy_c_ident.c: New file.
46487         * lib/unictype/sy_c_whitespace.c: New file.
46488         * lib/unictype/sy_java_ident.c: New file.
46489         * lib/unictype/sy_java_whitespace.c: New file.
46490
46491         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
46492         Unicode 5.0.0.
46493         * lib/unictype/blocks.h: Likewise.
46494         * lib/unictype/categ_C.h: Likewise.
46495         * lib/unictype/categ_Cc.h: Likewise.
46496         * lib/unictype/categ_Cf.h: Likewise.
46497         * lib/unictype/categ_Cn.h: Likewise.
46498         * lib/unictype/categ_Co.h: Likewise.
46499         * lib/unictype/categ_Cs.h: Likewise.
46500         * lib/unictype/categ_L.h: Likewise.
46501         * lib/unictype/categ_Ll.h: Likewise.
46502         * lib/unictype/categ_Lm.h: Likewise.
46503         * lib/unictype/categ_Lo.h: Likewise.
46504         * lib/unictype/categ_Lt.h: Likewise.
46505         * lib/unictype/categ_Lu.h: Likewise.
46506         * lib/unictype/categ_M.h: Likewise.
46507         * lib/unictype/categ_Mc.h: Likewise.
46508         * lib/unictype/categ_Me.h: Likewise.
46509         * lib/unictype/categ_Mn.h: Likewise.
46510         * lib/unictype/categ_N.h: Likewise.
46511         * lib/unictype/categ_Nd.h: Likewise.
46512         * lib/unictype/categ_Nl.h: Likewise.
46513         * lib/unictype/categ_No.h: Likewise.
46514         * lib/unictype/categ_P.h: Likewise.
46515         * lib/unictype/categ_Pc.h: Likewise.
46516         * lib/unictype/categ_Pd.h: Likewise.
46517         * lib/unictype/categ_Pe.h: Likewise.
46518         * lib/unictype/categ_Pf.h: Likewise.
46519         * lib/unictype/categ_Pi.h: Likewise.
46520         * lib/unictype/categ_Po.h: Likewise.
46521         * lib/unictype/categ_Ps.h: Likewise.
46522         * lib/unictype/categ_S.h: Likewise.
46523         * lib/unictype/categ_Sc.h: Likewise.
46524         * lib/unictype/categ_Sk.h: Likewise.
46525         * lib/unictype/categ_Sm.h: Likewise.
46526         * lib/unictype/categ_So.h: Likewise.
46527         * lib/unictype/categ_Z.h: Likewise.
46528         * lib/unictype/categ_Zl.h: Likewise.
46529         * lib/unictype/categ_Zp.h: Likewise.
46530         * lib/unictype/categ_Zs.h: Likewise.
46531         * lib/unictype/categ_of.h: Likewise.
46532         * lib/unictype/combining.h: Likewise.
46533         * lib/unictype/ctype_alnum.h: Likewise.
46534         * lib/unictype/ctype_alpha.h: Likewise.
46535         * lib/unictype/ctype_blank.h: Likewise.
46536         * lib/unictype/ctype_cntrl.h: Likewise.
46537         * lib/unictype/ctype_digit.h: Likewise.
46538         * lib/unictype/ctype_graph.h: Likewise.
46539         * lib/unictype/ctype_lower.h: Likewise.
46540         * lib/unictype/ctype_print.h: Likewise.
46541         * lib/unictype/ctype_punct.h: Likewise.
46542         * lib/unictype/ctype_space.h: Likewise.
46543         * lib/unictype/ctype_upper.h: Likewise.
46544         * lib/unictype/ctype_xdigit.h: Likewise.
46545         * lib/unictype/decdigit.h: Likewise.
46546         * lib/unictype/digit.h: Likewise.
46547         * lib/unictype/mirror.h: Likewise.
46548         * lib/unictype/numeric.h: Likewise.
46549         * lib/unictype/pr_alphabetic.h: Likewise.
46550         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
46551         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
46552         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
46553         * lib/unictype/pr_bidi_block_separator.h: Likewise.
46554         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
46555         * lib/unictype/pr_bidi_common_separator.h: Likewise.
46556         * lib/unictype/pr_bidi_control.h: Likewise.
46557         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
46558         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
46559         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
46560         * lib/unictype/pr_bidi_european_digit.h: Likewise.
46561         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
46562         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
46563         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
46564         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
46565         * lib/unictype/pr_bidi_pdf.h: Likewise.
46566         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
46567         * lib/unictype/pr_bidi_whitespace.h: Likewise.
46568         * lib/unictype/pr_combining.h: Likewise.
46569         * lib/unictype/pr_composite.h: Likewise.
46570         * lib/unictype/pr_currency_symbol.h: Likewise.
46571         * lib/unictype/pr_dash.h: Likewise.
46572         * lib/unictype/pr_decimal_digit.h: Likewise.
46573         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
46574         * lib/unictype/pr_deprecated.h: Likewise.
46575         * lib/unictype/pr_diacritic.h: Likewise.
46576         * lib/unictype/pr_extender.h: Likewise.
46577         * lib/unictype/pr_format_control.h: Likewise.
46578         * lib/unictype/pr_grapheme_base.h: Likewise.
46579         * lib/unictype/pr_grapheme_extend.h: Likewise.
46580         * lib/unictype/pr_grapheme_link.h: Likewise.
46581         * lib/unictype/pr_hex_digit.h: Likewise.
46582         * lib/unictype/pr_hyphen.h: Likewise.
46583         * lib/unictype/pr_id_continue.h: Likewise.
46584         * lib/unictype/pr_id_start.h: Likewise.
46585         * lib/unictype/pr_ideographic.h: Likewise.
46586         * lib/unictype/pr_ids_binary_operator.h: Likewise.
46587         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
46588         * lib/unictype/pr_ignorable_control.h: Likewise.
46589         * lib/unictype/pr_iso_control.h: Likewise.
46590         * lib/unictype/pr_join_control.h: Likewise.
46591         * lib/unictype/pr_left_of_pair.h: Likewise.
46592         * lib/unictype/pr_line_separator.h: Likewise.
46593         * lib/unictype/pr_logical_order_exception.h: Likewise.
46594         * lib/unictype/pr_lowercase.h: Likewise.
46595         * lib/unictype/pr_math.h: Likewise.
46596         * lib/unictype/pr_non_break.h: Likewise.
46597         * lib/unictype/pr_not_a_character.h: Likewise.
46598         * lib/unictype/pr_numeric.h: Likewise.
46599         * lib/unictype/pr_other_alphabetic.h: Likewise.
46600         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
46601         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
46602         * lib/unictype/pr_other_id_continue.h: Likewise.
46603         * lib/unictype/pr_other_id_start.h: Likewise.
46604         * lib/unictype/pr_other_lowercase.h: Likewise.
46605         * lib/unictype/pr_other_math.h: Likewise.
46606         * lib/unictype/pr_other_uppercase.h: Likewise.
46607         * lib/unictype/pr_paired_punctuation.h: Likewise.
46608         * lib/unictype/pr_paragraph_separator.h: Likewise.
46609         * lib/unictype/pr_pattern_syntax.h: Likewise.
46610         * lib/unictype/pr_pattern_white_space.h: Likewise.
46611         * lib/unictype/pr_private_use.h: Likewise.
46612         * lib/unictype/pr_punctuation.h: Likewise.
46613         * lib/unictype/pr_quotation_mark.h: Likewise.
46614         * lib/unictype/pr_radical.h: Likewise.
46615         * lib/unictype/pr_sentence_terminal.h: Likewise.
46616         * lib/unictype/pr_soft_dotted.h: Likewise.
46617         * lib/unictype/pr_space.h: Likewise.
46618         * lib/unictype/pr_terminal_punctuation.h: Likewise.
46619         * lib/unictype/pr_titlecase.h: Likewise.
46620         * lib/unictype/pr_unassigned_code_value.h: Likewise.
46621         * lib/unictype/pr_unified_ideograph.h: Likewise.
46622         * lib/unictype/pr_uppercase.h: Likewise.
46623         * lib/unictype/pr_variation_selector.h: Likewise.
46624         * lib/unictype/pr_white_space.h: Likewise.
46625         * lib/unictype/pr_xid_continue.h: Likewise.
46626         * lib/unictype/pr_xid_start.h: Likewise.
46627         * lib/unictype/pr_zero_width.h: Likewise.
46628         * lib/unictype/scripts.h: Likewise.
46629         * lib/unictype/scripts_byname.gperf: Likewise.
46630         * lib/unictype/sy_c_ident.h: Likewise.
46631         * lib/unictype/sy_c_whitespace.h: Likewise.
46632         * lib/unictype/sy_java_ident.h: Likewise.
46633         * lib/unictype/sy_java_whitespace.h: Likewise.
46634
46635         * lib/unictype/Makefile: New file.
46636         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
46637         glibc.
46638         * lib/unictype/3level.h: New file, copied from glibc.
46639         * lib/unictype/3levelbit.h: New file.
46640
46641 2007-11-11  Bruno Haible  <bruno@clisp.org>
46642
46643         * modules/gperf: New file.
46644         * modules/iconv_open (Depends-on): Add it.
46645         (Makefile.am): Remove the GPERF definition.
46646
46647 2007-11-11  Bruno Haible  <bruno@clisp.org>
46648
46649         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
46650         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
46651
46652 2007-11-11  Bruno Haible  <bruno@clisp.org>
46653
46654         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
46655         (usage): Remove function.
46656
46657 2007-11-11  Bruno Haible  <bruno@clisp.org>
46658
46659         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
46660         gl_FUNC_CEILF_LIBS.
46661         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
46662         gl_FUNC_CEIL_LIBS.
46663         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
46664         gl_FUNC_CEILL_LIBS.
46665         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
46666         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
46667         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
46668
46669 2007-11-11  Bruno Haible  <bruno@clisp.org>
46670
46671         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
46672         roundf were declared but do not exist on functions.
46673         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
46674         roundl were declared but do not exist on functions.
46675         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
46676         HAVE_FLOORL_AND_CEILL, respectively.
46677         Needed for Sun C on Solaris 10.
46678
46679 2007-11-11  Bruno Haible  <bruno@clisp.org>
46680
46681         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
46682         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
46683         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
46684         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
46685         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
46686         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
46687         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
46688         HAVE_DECL_ROUNDF.
46689         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
46690         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
46691         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
46692         of HAVE_DECL_ROUND*.
46693         * modules/math (Makefile.am): Update.
46694
46695 2007-11-10  Bruno Haible  <bruno@clisp.org>
46696
46697         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
46698         ptrdiff_t as m4/intl.m4.
46699
46700 2007-11-10  Jim Meyering  <meyering@redhat.com>
46701
46702         Avoid link failure for the argmatch test.
46703         * tests/test-argmatch.c (usage): Define function to avoid a link
46704         failure: argmatch_die requires a usage function.
46705
46706 2007-11-09  Bruno Haible  <bruno@clisp.org>
46707
46708         * doc/functions/snprintf.texi: Mention BeOS deficiency.
46709         * doc/functions/vsnprintf.texi: Likewise.
46710         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
46711         with a size argument < 2.
46712
46713 2007-11-09  Bruno Haible  <bruno@clisp.org>
46714
46715         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
46716         buffer. Fixes an inefficiency introduced on 2007-11-03.
46717
46718 2007-11-09  Bruno Haible  <bruno@clisp.org>
46719
46720         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
46721         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
46722
46723 2007-11-08  Jim Meyering  <meyering@redhat.com>
46724
46725         Change cache variable name prefix "jm_" to "gl_" everywhere.
46726         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
46727         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
46728         * m4/uptime.m4: s/gl_/jm_/
46729
46730 2007-11-07  Bruno Haible  <bruno@clisp.org>
46731
46732         Update to GNU gettext 0.17.
46733         * m4/intl.m4: Update to GNU gettext 0.17.
46734         * m4/po.m4: Likewise.
46735         * modules/gettext (Files): Remove m4/ulonglong.m4.
46736         (configure.ac): Require gettext infrastructure from version 0.17.
46737
46738 2007-11-06  Bruno Haible  <bruno@clisp.org>
46739
46740         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
46741         symbolic values are not defined in a public header.
46742         * lib/freadable.c (freadable) [QNX]: Likewise.
46743         * lib/freadahead.c (freadahead) [QNX]: Likewise.
46744         * lib/freading.c (freading) [QNX]: Likewise.
46745         * lib/fseterr.c (fseterr) [QNX]: Likewise.
46746         * lib/fwritable.c (fwritable) [QNX]: Likewise.
46747         * lib/fwriting.c (fwriting) [QNX]: Likewise.
46748         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
46749         Reported by Alain Magloire.
46750
46751         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
46752
46753 2007-11-05  Bruno Haible  <bruno@clisp.org>
46754
46755         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
46756         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
46757         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
46758         Reported by Eric Blake.
46759
46760 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46761             Bruno Haible  <bruno@clisp.org>
46762
46763         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
46764         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
46765         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
46766         (malloc): Undefine also before including <stdlib.h>.
46767         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
46768         Needed on OSF/1 4.0.
46769
46770 2007-11-05  Jim Meyering  <meyering@redhat.com>
46771
46772         git-version-gen: sync from coreutils.
46773         * build-aux/git-version-gen: Add comments.
46774         Change the first '-' to '.' in the snapshot version string,
46775         e.g., 6.9-377-08144 -> 6.9.377-08144
46776         Remove first parameter.
46777         Don't declare a version "-dirty" merely because a time
46778         stamp has changed.
46779
46780 2007-11-04  Bruno Haible  <bruno@clisp.org>
46781
46782         * lib/lock.h: Protect all macro definitions containing an 'if'
46783         statement through a "do { ... } while (0)".
46784         * lib/tls.h: Likewise.
46785
46786 2007-11-04  Bruno Haible  <bruno@clisp.org>
46787
46788         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
46789
46790 2007-11-04  Bruno Haible  <bruno@clisp.org>
46791
46792         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
46793         * modules/fprintf-posix (Depends-on): Add nocrash.
46794         * modules/snprintf-posix (Depends-on): Likewise.
46795         * modules/sprintf-posix (Depends-on): Likewise.
46796         * modules/vasnprintf-posix (Depends-on): Likewise.
46797         * modules/vasprintf-posix (Depends-on): Likewise.
46798         * modules/vfprintf-posix (Depends-on): Likewise.
46799         * modules/vsnprintf-posix (Depends-on): Likewise.
46800         * modules/vsprintf-posix (Depends-on): Likewise.
46801         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46802         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46803         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46804         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46805         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46806         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46807         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46808
46809 2007-11-04  Bruno Haible  <bruno@clisp.org>
46810
46811         * modules/nocrash: New file.
46812         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
46813         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
46814
46815 2007-11-04  Bruno Haible  <bruno@clisp.org>
46816
46817         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
46818         precision handling.
46819         * tests/test-vasprintf-posix.c (test_function): Likewise.
46820         * tests/test-snprintf-posix.h (test_function): Likewise.
46821         * tests/test-sprintf-posix.h (test_function): Likewise.
46822
46823         Fix *printf behaviour for large precisions on mingw and BeOS.
46824         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
46825         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
46826         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
46827         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46828         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46829         gl_PRINTF_PRECISION and test its result. Invoke
46830         gl_PREREQ_VASNPRINTF_PRECISION.
46831         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46832         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46833         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46834         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46835         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46836         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46837         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46838         * doc/functions/fprintf.texi: Update.
46839         * doc/functions/printf.texi: Update.
46840         * doc/functions/snprintf.texi: Update.
46841         * doc/functions/sprintf.texi: Update.
46842         * doc/functions/vfprintf.texi: Update.
46843         * doc/functions/vprintf.texi: Update.
46844         * doc/functions/vsnprintf.texi: Update.
46845         * doc/functions/vsprintf.texi: Update.
46846
46847 2007-11-04  Bruno Haible  <bruno@clisp.org>
46848
46849         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
46850
46851 2007-11-04  Bruno Haible  <bruno@clisp.org>
46852
46853         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
46854         Reported by Sylvain Beucler <beuc@gnu.org>.
46855
46856 2007-11-03  Bruno Haible  <bruno@clisp.org>
46857
46858         * tests/test-fprintf-posix2.sh: New file.
46859         * tests/test-fprintf-posix2.c: New file.
46860         * modules/fprintf-posix-tests (Files): Add them.
46861         (TESTS): Add test-fprintf-posix2.sh.
46862         (configure.ac): Check for getrlimit and setrlimit.
46863         (check_PROGRAMS): Add test-fprintf-posix2.
46864
46865         * tests/test-printf-posix2.sh: New file.
46866         * tests/test-printf-posix2.c: New file.
46867         * modules/printf-posix-tests (Files): Add them.
46868         (TESTS): Add test-printf-posix2.sh.
46869         (configure.ac): Check for getrlimit and setrlimit.
46870         (check_PROGRAMS): Add test-printf-posix2.
46871
46872         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
46873         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
46874         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
46875         (decode_double): New function, copied from decode_long_double.
46876         (scale10_round_decimal_decoded): New function, extracted from
46877         scale10_round_decimal_long_double.
46878         (scale10_round_decimal_long_double): Use it.
46879         (scale10_round_decimal_double): New function.
46880         (floorlog10): New function.
46881         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
46882         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
46883         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46884         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46885         gl_PRINTF_ENOMEM and test its result. Invoke
46886         gl_PREREQ_VASNPRINTF_ENOMEM.
46887         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46888         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46889         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46890         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46891         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46892         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46893         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46894         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
46895         * modules/snprintf-posix (Depends-on): Likewise.
46896         * modules/sprintf-posix (Depends-on): Likewise.
46897         * modules/vasnprintf-posix (Depends-on): Likewise.
46898         * modules/vasprintf-posix (Depends-on): Likewise.
46899         * modules/vfprintf-posix (Depends-on): Likewise.
46900         * modules/vsnprintf-posix (Depends-on): Likewise.
46901         * modules/vsprintf-posix (Depends-on): Likewise.
46902         * doc/functions/fprintf.texi: Update.
46903         * doc/functions/printf.texi: Update.
46904         * doc/functions/snprintf.texi: Update.
46905         * doc/functions/sprintf.texi: Update.
46906         * doc/functions/vfprintf.texi: Update.
46907         * doc/functions/vprintf.texi: Update.
46908         * doc/functions/vsnprintf.texi: Update.
46909         * doc/functions/vsprintf.texi: Update.
46910
46911 2007-11-03  Bruno Haible  <bruno@clisp.org>
46912
46913         * modules/frexp-nolibm-tests: New file.
46914
46915         * modules/frexp-nolibm: New file.
46916         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
46917
46918 2007-11-03  Bruno Haible  <bruno@clisp.org>
46919
46920         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
46921         value is C99 compliant.
46922         Needed for OSF/1 5.1.
46923
46924 2007-11-03  Bruno Haible  <bruno@clisp.org>
46925
46926         Fix out-of-memory handling of vasnprintf.
46927         * lib/printf-parse.c: Include <errno.h>.
46928         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
46929         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
46930         is already set.
46931
46932 2007-11-02  Eric Blake  <ebb9@byu.net>
46933
46934         Fix tests on cygwin.
46935         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
46936
46937 2007-11-01  Bruno Haible  <bruno@clisp.org>
46938
46939         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
46940         warning.
46941         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
46942         needed for POSIX compatibility.
46943
46944 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
46945
46946         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
46947         for compatibility with GNU.
46948
46949 2007-11-01  Bruno Haible  <bruno@clisp.org>
46950
46951         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
46952         (putenv): Renamed from rpl_putenv. Change argument type from
46953         'const char *' to 'char *'.
46954         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
46955         of defining putenv in config.h, just set REPLACE_PUTENV.
46956         * modules/putenv (Depends-on): Add stdlib.
46957         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46958         (Include): Use <stdlib.h>.
46959         * lib/stdlib.in.h (putenv): New declaration.
46960         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
46961         REPLACE_PUTENV.
46962         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
46963         REPLACE_PUTENV.
46964         Needed for MacOS X 10.5.0.
46965         Reported by Peter O'Gorman <peter@pogma.com>.
46966
46967 2007-11-01  Jim Meyering  <meyering@redhat.com>
46968
46969         Treat an empty date string exactly like "0".
46970         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
46971         if the remaining date string (to be parsed) is empty, use "0".
46972         Reported by Mischa Molhoek and discussed in this thread:
46973         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
46974
46975 2007-10-31  Bruno Haible  <bruno@clisp.org>
46976
46977         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
46978         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
46979         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
46980         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
46981         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
46982         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
46983
46984 2007-10-31  Bruno Haible  <bruno@clisp.org>
46985
46986         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
46987         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
46988         (AC_TYPE_LONG_LONG_INT): Use it.
46989         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
46990         it as well.
46991         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
46992         to m4/longlong.m4.
46993         * modules/stdint (Files): Remove m4/ulonglong.m4.
46994         * modules/strtoull (Files): Use m4/longlong.m4 instead of
46995         m4/ulonglong.m4.
46996         * modules/strtoumax (Files): Likewise.
46997
46998 2007-10-30  Bruno Haible  <bruno@clisp.org>
46999
47000         * modules/xvasprintf-posix: New file.
47001         Suggested by Eric Blake.
47002
47003 2007-10-30  Bruno Haible  <bruno@clisp.org>
47004
47005         * modules/xprintf-posix-tests: New file.
47006         * tests/test-xprintf-posix.sh: New file.
47007         * tests/test-xprintf-posix.c: New file.
47008         * tests/test-xfprintf-posix.c: New file.
47009
47010         * modules/xprintf-posix: New file.
47011
47012 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47013
47014         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
47015         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
47016         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
47017
47018 2007-10-29  Bruno Haible  <bruno@clisp.org>
47019
47020         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
47021         contain the special marker '_cv_'.
47022         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47023         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47024         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47025         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
47026         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47027         Reported by Ralf Wildenhues.
47028
47029 2007-10-29  Bruno Haible  <bruno@clisp.org>
47030
47031         * gnulib-tool (func_import): When --lgpl is not specified, set
47032         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
47033         GPLv3.
47034         Reported by Simon Josefsson.
47035
47036 2007-10-28  Bruno Haible  <bruno@clisp.org>
47037
47038         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
47039         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
47040         HAVE_DECL_ISFINITE.
47041         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47042         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
47043         HAVE_DECL_ISFINITE.
47044
47045 2007-10-28  Bruno Haible  <bruno@clisp.org>
47046
47047         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
47048         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
47049
47050 2007-10-28  Bruno Haible  <bruno@clisp.org>
47051
47052         Fix link errors with Sun C 5.0 on Solaris 10.
47053         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
47054         function is declared but not present in the compiler's libm.
47055         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
47056         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
47057         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
47058         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
47059         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
47060         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
47061         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
47062         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47063         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
47064         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
47065         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
47066         HAVE_DECL_FLOORL.
47067
47068 2007-10-28  Bruno Haible  <bruno@clisp.org>
47069
47070         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
47071         gl_FUNC_FLOORL. Cache the result.
47072         (gl_FUNC_FLOORL): Use it.
47073         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
47074         gl_FUNC_CEILL. Cache the result.
47075         (gl_FUNC_CEILL): Use it.
47076
47077         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
47078         gl_FUNC_FLOOR. Cache the result.
47079         (gl_FUNC_FLOOR): Use it.
47080         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
47081         gl_FUNC_CEIL. Cache the result.
47082         (gl_FUNC_CEIL): Use it.
47083
47084         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
47085         gl_FUNC_FLOORF. Cache the result.
47086         (gl_FUNC_FLOORF): Use it.
47087         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
47088         gl_FUNC_CEILF. Cache the result.
47089         (gl_FUNC_CEILF): Use it.
47090
47091 2007-10-28  Bruno Haible  <bruno@clisp.org>
47092
47093         * gnulib-tool: Allow specifying the LGPL version number through
47094         --lgpl=2 or --lgpl=3.
47095         (func_usage): Document --lgpl with argument.
47096         Handle --lgpl=... arguments.
47097         (func_import): Recognize also gl_LGPL calls with an argument. When
47098         --lgpl=2 is used and the module's license is just LGPL, report an
47099         error. Set sed_transform_lib_file according to the lgpl variable. In
47100         the generated files, use --lgpl or gl_LGPL invocations with argument,
47101         if necessary.
47102         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
47103         an LGPv2+ license.
47104         * doc/gnulib-tool.texi (Modified imports): Update explanation of
47105         gl_LGPL macro.
47106
47107 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47108             Bruno Haible  <bruno@clisp.org>
47109
47110         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
47111         (u16_uctomb_aux): Likewise.
47112         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
47113         !HAVE_INLINE.
47114         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
47115
47116 2007-10-28  Bruno Haible  <bruno@clisp.org>
47117
47118         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
47119         Invoke AM_GETTEXT_OPTION if it exists.
47120         * modules/vasprintf: Likewise.
47121         * modules/verror: Likewise.
47122         * modules/xprintf: Likewise.
47123         * modules/xvasprintf: Likewise.
47124
47125 2007-10-27  Ben Pfaff  <blp@gnu.org>
47126
47127         * lib/math.in.h: Define isfinite macro and prototypes for
47128         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
47129         implementations.
47130         * m4/math_h.m4: New substitutions for isfinite module.
47131         * lib/isfinite.c: New file.
47132         * m4/isfinite.m4: New file.
47133         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
47134         * modules/isfinite: New file.
47135         * modules/isfinite-tests: New file.
47136         * tests/tests-isfinite.c: New file.
47137         * doc/functions/isfinite.texi: Mention isfinite module.
47138         * MODULES.html.sh: Mention new module.
47139
47140 2007-10-27  Ben Pfaff  <blp@gnu.org>
47141
47142         Ralf Wildenhues reported that Tru64 4.0D declares the round
47143         functions but does not have definitions.
47144         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
47145         cannot be found in any library, set the output variable to
47146         "missing" instead of "".
47147         * m4/round.m4: Also use our substitute if we cannot find round in
47148         any library, even if it is declared.
47149         * m4/roundf.m4: Likewise for roundf.
47150         * m4/roundl.m4: Likewise for roundl.
47151         * lib/math.in.h: Undefine roundf, round, roundl before defining
47152         their replacements, to allow for hypothetical systems where these
47153         may be defined as macros but not available in libraries.
47154
47155 2007-10-27  Bruno Haible  <bruno@clisp.org>
47156
47157         * doc/gnulib.texi: Invoke @firstparagraphindent.
47158         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
47159         changes in gnulib.
47160         (Source changes): New section.
47161
47162 2007-10-26  Bruno Haible  <bruno@clisp.org>
47163
47164         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
47165         borrowed from autoconf.
47166
47167 2007-10-26  Bruno Haible  <bruno@clisp.org>
47168
47169         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
47170         strerror returned the empty string. Needed on HP-UX 11.00.
47171
47172 2007-10-24  Micah Cowan  <micah@cowan.name>
47173
47174         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
47175         * build-aux/bootstrap: Remove support for now-unnecessary option,
47176         --cvs-user, and envvars CVS_USER, CVS_RSH.
47177
47178 2007-10-24  Jim Meyering  <meyering@redhat.com>
47179
47180         Avoid diagnostics from sha1sum when there is no cached checksum.
47181         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
47182         if the po.s1 file hasn't been created yet.
47183
47184         * build-aux/bootstrap: Sync from coreutils:
47185         2007-10-24  Jim Meyering  <meyering@redhat.com>
47186         Get gnulib from the git repository, not from an obsolete cvs one.
47187         * build-aux/bootstrap: Suggestion from Micah Cowan.
47188         2007-10-04  Jim Meyering  <jim@meyering.net>
47189         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
47190         (update_po_files): Work also when there are no .po files in po/.
47191
47192 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47193
47194         * README: Append ".git" to git and cg examples.
47195         Problem reported by Benoit Sigoure.
47196
47197 2007-10-23  Micah Cowan  <micah@cowan.name>
47198
47199         * users.txt: Add wget.
47200
47201 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47202
47203         Fix linking of some unistdio tests on FreeBSD.
47204         * modules/unistdio/u16-vsnprintf-tests
47205         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
47206         * modules/unistdio/u16-vsprintf-tests
47207         (test_u16_vsnprintf1_LDADD): Likewise.
47208         * modules/unistdio/u32-vsnprintf-tests
47209         (test_u32_vsnprintf1_LDADD): Likewise.
47210         * modules/unistdio/u32-vsprintf-tests
47211         (test_u32_vsprintf1_LDADD): Likewise.
47212         * modules/unistdio/u8-vsnprintf-tests
47213         (test_u8_vsnprintf1_LDADD): Likewise.
47214         * modules/unistdio/u8-vsprintf-tests
47215         (test_u8_vsprintf1_LDADD): Likewise.
47216         * modules/unistdio/ulc-vsnprintf-tests
47217         (test_ulc_vsnprintf1_LDADD): Likewise.
47218         * modules/unistdio/ulc-vsprintf-tests
47219         (test_ulc_vsprintf1_LDADD): Likewise.
47220
47221         Fix linking of some uniconv tests on FreeBSD.
47222         * modules/uniconv/u16-conv-from-enc-tests
47223         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
47224         * modules/uniconv/u16-conv-to-enc-tests
47225         (test_u16_conv_to_enc_LDADD): Likewise.
47226         * modules/uniconv/u16-strconv-from-enc-tests
47227         (test_u16_strconv_from_enc_LDADD): Likewise.
47228         * modules/uniconv/u16-strconv-to-enc-tests
47229         (test_u16_strconv_to_enc_LDADD): Likewise.
47230         * modules/uniconv/u32-conv-from-enc-tests
47231         (test_u32_conv_from_enc_LDADD): Likewise.
47232         * modules/uniconv/u32-conv-to-enc-tests
47233         (test_u32_conv_to_enc_LDADD): Likewise.
47234         * modules/uniconv/u32-strconv-from-enc-tests
47235         (test_u32_strconv_from_enc_LDADD): Likewise.
47236         * modules/uniconv/u32-strconv-to-enc-tests
47237         (test_u32_strconv_to_enc_LDADD): Likewise.
47238         * modules/uniconv/u8-conv-from-enc-tests
47239         (test_u8_conv_from_enc_LDADD): Likewise.
47240         * modules/uniconv/u8-conv-to-enc-tests
47241         (test_u8_conv_to_enc_LDADD): Likewise.
47242         * modules/uniconv/u8-strconv-from-enc-tests
47243         (test_u8_strconv_from_enc_LDADD): Likewise.
47244         * modules/uniconv/u8-strconv-to-enc-tests
47245         (test_u8_strconv_to_enc_LDADD): Likewise.
47246
47247 2007-10-22  Bruno Haible  <bruno@clisp.org>
47248
47249         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
47250         size.
47251
47252 2007-10-22  Eric Blake  <ebb9@byu.net>
47253
47254         Tweak x*printf documentation.
47255         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
47256         variable name and comments.
47257         Suggested by Bruno Haible.
47258
47259 2007-10-22  Bruno Haible  <bruno@clisp.org>
47260
47261         * lib/acl.c (copy_acl): Fix file name in comment.
47262
47263 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47264
47265         Fix Tru64 problem with stdbool.h.
47266         * lib/stdbool.in.h (false, true):
47267         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
47268         Don't declare as an enum in this situation; it runs afoul of Tru64.
47269         Problem reported by Steven M. Schweda in
47270         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
47271
47272 2007-10-22  Eric Blake  <ebb9@byu.net>
47273
47274         Also wrap vf?printf.
47275         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
47276         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
47277         (xvprintf, xvfprintf): New functions.
47278
47279 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47280
47281         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
47282         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
47283
47284         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
47285         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
47286
47287 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47288
47289         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
47290         by Bruno Haible.
47291
47292 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47293
47294         * lib/getloadavg.c
47295         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
47296         Undef `sys' after including sys/table.h, for Tru64 4.0D.
47297
47298         * tests/test-i-ring.c: Work for C89.
47299
47300 2007-10-22  Bruno Haible  <bruno@clisp.org>
47301
47302         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
47303         -1u, in preprocessor expression, so that we don't test for the bug
47304         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
47305         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
47306
47307 2007-10-22  Eric Blake  <ebb9@byu.net>
47308
47309         * tests/test-yesno.sh: Silence stderr during test.
47310
47311 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47312
47313         * modules/crypto/gc-camellia: New file.
47314
47315         * m4/gc-camellia.m4: New file.
47316
47317         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
47318
47319         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
47320
47321 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47322
47323         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
47324         --help to stdout.  Reported by sms@antinode.org (Steven
47325         M. Schweda).
47326
47327 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47328
47329         * users.txt: Fix link to libksba.
47330
47331 2007-10-21  Ben Pfaff  <blp@gnu.org>
47332
47333         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
47334         round.c roundf implementation that depends on floorf and ceilf to
47335         be tested unconditionally.
47336
47337 2007-10-21  Ben Pfaff  <blp@gnu.org>
47338
47339         * m4/check-libm-func.m4: Removed.
47340         * m4/check-math-lib.m4: New file.
47341         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
47342         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
47343         definition and lack of AC_LIBOBJ([roundf]).
47344         * m4/roundl.m4: Ditto, and similarly for roundl.
47345         * modules/round: Reference new m4 file.
47346         * modules/roundf: Ditto.
47347         * modules/roundl: Ditto.
47348         * tests/test-round2.c (main): Use ROUND instead of round.
47349         Bug report from Bruno Haible.
47350
47351 2007-10-21  Bruno Haible  <bruno@clisp.org>
47352
47353         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
47354         context.
47355
47356 2007-10-21  Bruno Haible  <bruno@clisp.org>
47357
47358         * tests/test-wcwidth.c (main): Allow negative result for some control
47359         characters.
47360
47361         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
47362         Needed on OSF/1 5.1.
47363
47364 2007-10-21  Bruno Haible  <bruno@clisp.org>
47365
47366         * tests/test-floorf1.c: Include isnanf.h.
47367         (main): Use isnanf() instead of isnan().
47368         * tests/test-ceilf1.c: Include isnanf.h.
47369         (main): Use isnanf() instead of isnan().
47370         * tests/test-truncf1.c: Include isnanf.h.
47371         (main): Use isnanf() instead of isnan().
47372         * tests/test-roundf1.c: Include isnanf.h.
47373         (main): Use isnanf() instead of isnan().
47374
47375 2007-10-21  Eric Blake  <ebb9@byu.net>
47376
47377         * users.txt: Update URL for m4.
47378
47379 2007-10-21  Bruno Haible  <bruno@clisp.org>
47380
47381         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
47382
47383 2007-10-21  Bruno Haible  <bruno@clisp.org>
47384
47385         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
47386         Git's management files if the CVS files are not present.
47387
47388 2007-10-20  Bruno Haible  <bruno@clisp.org>
47389
47390         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
47391         gcc-3.4.x.
47392
47393 2007-10-20  Ben Pfaff  <blp@gnu.org>
47394
47395         * lib/math.in.h: Declare round, roundf, roundl if we are providing
47396         implementations.
47397         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
47398         * lib/round.c: New file.
47399         * lib/roundf.c: New file.
47400         * lib/roundl.c: New file.
47401         * m4/round.m4: New file.
47402         * m4/roundf.m4: New file.
47403         * m4/roundl.m4: New file.
47404         * m4/check-libm-func-m4: New file.
47405         * modules/math: Replace round, roundf, roundl related @VARS@ in
47406         math.in.h.
47407         * modules/round: New file.
47408         * modules/round-tests: New file.
47409         * modules/roundf: New file.
47410         * modules/roundf-tests: New file.
47411         * modules/roundl: New file.
47412         * modules/roundl-tests: New file.
47413         * tests/test-round1.c: New file.
47414         * tests/test-round2.c: New file.
47415         * tests/test-roundf1.c: New file.
47416         * tests/test-roundf2.c: New file.
47417         * tests/test-roundl.c: New file.
47418         * doc/functions/round.texi: Mention round module.
47419         * doc/functions/roundf.texi: Mention roundf module.
47420         * doc/functions/roundl.texi: Mention roundl module.
47421         * MODULES.html.sh: Mention new modules.
47422         Thanks to Bruno Haible for suggestions.
47423
47424 2007-10-20  Jim Meyering  <meyering@redhat.com>
47425
47426         * lib/xprintf.c: Include <config.h> unconditionally.
47427
47428         Change xprintf's license to GPL.
47429         * modules/xprintf (License): s/LGPL/GPL/, since this module
47430         depends on modules (exit and exitfail) which are GPL.
47431         Suggestion from Bruno Haible.
47432
47433         xprintf fixes.
47434         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
47435         Use a clearer diagnostic.
47436         Patch from Bruno Haible.
47437
47438 2007-10-20  Bruno Haible  <bruno@clisp.org>
47439
47440         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
47441         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
47442         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47443
47444 2007-10-20  Bruno Haible  <bruno@clisp.org>
47445
47446         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
47447         precision in the comparison result > x - 1 or similar.
47448         * tests/test-ceilf2.c (correct_result_p): Likewise.
47449         * tests/test-truncf2.c (correct_result_p): Likewise.
47450         * tests/test-trunc2.c (correct_result_p): Likewise.
47451         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47452
47453 2007-10-20  Bruno Haible  <bruno@clisp.org>
47454
47455         * modules/ceil: New file.
47456         * m4/ceil.m4: New file.
47457         * doc/functions/ceil.texi: Mention the 'ceil' module.
47458
47459 2007-10-20  Bruno Haible  <bruno@clisp.org>
47460
47461         * modules/floor: New file.
47462         * m4/floor.m4: New file.
47463         * doc/functions/floor.texi: Mention the 'floor' module.
47464
47465 2007-10-20  Bruno Haible  <bruno@clisp.org>
47466
47467         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
47468         of %a.
47469         * modules/floorf-tests (Depends-on): Likewise.
47470         * modules/truncf-tests (Depends-on): Likewise.
47471         * modules/trunc-tests (Depends-on): Likewise.
47472         Reported by Ben Pfaff.
47473
47474 2007-10-19  Jim Meyering  <meyering@redhat.com>
47475
47476         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
47477         Don't bother testing specific errno values.  Just test ferror.
47478
47479         New module: xprintf
47480         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
47481
47482 2007-10-19  Bruno Haible  <bruno@clisp.org>
47483
47484         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
47485         syntax.
47486         * modules/javaexec (Makefile.am): Likewise.
47487         * modules/relocatable-prog (Makefile.am): Likewise.
47488         Suggested by Jim Meyering.
47489
47490 2007-10-18  Bruno Haible  <bruno@clisp.org>
47491
47492         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
47493         Reported by Jim Meyering.
47494
47495 2007-10-18  Eric Blake  <ebb9@byu.net>
47496
47497         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
47498
47499 2007-10-18  Bruno Haible  <bruno@clisp.org>
47500
47501         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
47502         the format string into writable memory. Needed in Fortify conditions.
47503
47504 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
47505             Bruno Haible  <bruno@clisp.org>
47506
47507         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
47508         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
47509         * modules/trim (Depends-on): Add mbchar.
47510         (configure.ac): Add gl_FUNC_MBRTOWC.
47511         (Makefile.am): Augment lib_SOURCES.
47512
47513 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
47514
47515         Modify glob.c to use fstatat and dirfd, to simplify it.
47516         Suggested by Eric Blake.
47517         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
47518         Don't include <stdbool.h>; not used.
47519         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
47520         (link_exists_p): Simplify implementation, since we can now assume
47521         dirfd and fstatat.
47522         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
47523
47524 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47525
47526         * gnulib-tool (func_get_dependencies): Fix sed script to
47527         match only tests.
47528
47529 2007-10-17  Bruno Haible  <bruno@clisp.org>
47530
47531         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
47532         allow locale names without encoding suffix.
47533         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
47534         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47535
47536 2007-10-16  Bruno Haible  <bruno@clisp.org>
47537
47538         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
47539         * lib/getgroups.c (getgroups): Likewise.
47540         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
47541
47542 2007-10-16  Bruno Haible  <bruno@clisp.org>
47543
47544         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
47545         * modules/malloc-posix (License): Likewise.
47546         * modules/realloc-posix (License): Likewise.
47547         * modules/calloc-posix (License): Likewise.
47548         * modules/intprops (License): Change from GPL to LGPL, with
47549         Paul Eggert's approval.
47550
47551 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47552
47553         Merge glibc changes into lib/glob.c.
47554
47555         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
47556         2007-10-15 04:59:03 UTC.  Here are the changes:
47557
47558         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
47559
47560         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
47561
47562         * lib/glob.c: Add some branch prediction throughout.
47563
47564         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
47565
47566         [BZ #5103]
47567         * lib/glob.c (glob): Recognize patterns starting \/.
47568
47569         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
47570
47571         [BZ #3996]
47572         * lib/glob.c (attribute_hidden): Define if not defined.
47573         (glob): Unescape dirname, filename or username when needed and not
47574         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
47575         is NULL.  Handle unescaped [ in pattern without closing ].
47576         Don't pass GLOB_CHECK down to recursive glob for directories.
47577         (__glob_pattern_type): New function.
47578         (__glob_pattern_p): Implement using __glob_pattern_type.
47579         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
47580         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
47581         Remove unreachable code.
47582
47583         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
47584
47585         * lib/glob.c (glob_in_dir): Add some comments and asserts to
47586         explain why there are no leaks.
47587
47588         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
47589
47590         [BZ #3253]
47591         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
47592         time, rather allocate increasingly bigger arrays of pointers, if
47593         possible with alloca, if too large with malloc.
47594
47595 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47596
47597         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
47598         Problem reported by H.Merijn Brand in
47599         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
47600         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
47601         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
47602
47603 2007-10-15  Bruno Haible  <bruno@clisp.org>
47604
47605         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
47606         with explicit rpl_ prefix.
47607         * lib/fopen.c (fopen): Likewise.
47608         * lib/freopen.c (freopen): Likewise.
47609         * lib/iconv.c (iconv): Likewise.
47610         * lib/iconv_close.c (iconv_close): Likewise.
47611
47612 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47613
47614         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
47615
47616 2007-10-15  Bruno Haible  <bruno@clisp.org>
47617
47618         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
47619         <stddef.h> instead of <stdlib.h> since we only need NULL.
47620         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47621
47622 2007-10-15  Bruno Haible  <bruno@clisp.org>
47623
47624         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
47625         Replace paragraph talking about LIBOBJS.
47626         Reported by Colin Watson <cjwatson@debian.org>.
47627
47628 2007-10-15  Bruno Haible  <bruno@clisp.org>
47629
47630         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
47631         <stdlib.h> before using NULL.
47632
47633 2007-10-15  Simon Josefsson  <simon@josefsson.org>
47634
47635         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
47636         Reported by Albert Chin <china@thewrittenword.com>.
47637
47638 2007-10-14  Bruno Haible  <bruno@clisp.org>
47639
47640         * modules/iconv_open-utf-tests: New file.
47641         * tests/test-iconv-utf.c: New file.
47642
47643         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
47644         * modules/iconv_open-utf: New file.
47645         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
47646         (iconv, iconv_close): New declarations.
47647         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
47648         be defined.
47649         (iconv_open): Add special handling of conversion between UTF-8 and
47650         UTF-{16,32}{BE,LE}.
47651         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
47652         * lib/iconv_close.c: New file.
47653         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
47654         gl_FUNC_ICONV_OPEN.
47655         (gl_FUNC_ICONV_OPEN): Use it.
47656         (gl_FUNC_ICONV_OPEN_UTF): New macro.
47657         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
47658         and REPLACE_ICONV_UTF.
47659         * modules/iconv_open (Depends-on): Add c-strcase.
47660         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
47661         ICONV_CONST.
47662         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
47663
47664 2007-10-13  Albert Chin  <china@thewrittenword.com>
47665             Bruno Haible  <bruno@clisp.org>
47666
47667         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
47668         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
47669
47670 2007-10-13  Bruno Haible  <bruno@clisp.org>
47671
47672         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
47673         defined, use the ISO C99 inline semantics.
47674         * lib/argp.h (ARGP_EI): Likewise.
47675
47676 2007-10-13  Bruno Haible  <bruno@clisp.org>
47677
47678         Handle 'inline' change in gcc 4.3.0.
47679         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
47680         argp_fmtstream_write, argp_fmtstream_set_lmargin,
47681         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
47682         argp_fmtstream_point): Disable 'extern' declaration if the function
47683         definition is going to be provided inline.
47684         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
47685         semantics, not the ISO C99 inline semantics.
47686         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
47687         'extern' declaration if the function definition is going to be provided
47688         inline.
47689         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
47690         the GNU C inline semantics, not the ISO C99 inline semantics. With
47691         GCC 4.2, avoid a warning.
47692
47693 2007-10-13  Bruno Haible  <bruno@clisp.org>
47694
47695         * lib/freading.h (freading): Enable the use of __freading for
47696         glibc >= 2.7.
47697         * lib/freading.c (freading): Likewise.
47698
47699 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47700
47701         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
47702         "warning: C99 inline functions are not supported; using GNU89".
47703
47704 2007-10-12  Bruno Haible  <bruno@clisp.org>
47705
47706         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
47707         of 2.
47708         * tests/test-ceilf2.c: New file.
47709         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
47710
47711         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
47712         * modules/ceilf-tests: Update.
47713
47714 2007-10-12  Bruno Haible  <bruno@clisp.org>
47715
47716         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
47717         of 2.
47718         * tests/test-floorf2.c: New file.
47719         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
47720
47721         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
47722         * modules/floorf-tests: Update.
47723
47724 2007-10-12  Bruno Haible  <bruno@clisp.org>
47725
47726         * tests/test-trunc2.c: New file.
47727         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
47728
47729         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
47730         * modules/trunc-tests: Update.
47731
47732 2007-10-12  Bruno Haible  <bruno@clisp.org>
47733
47734         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
47735         of 2.
47736         * tests/test-truncf2.c: New file.
47737         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
47738
47739         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
47740         * modules/truncf-tests: Update.
47741
47742 2007-10-11  Eric Blake  <ebb9@byu.net>
47743
47744         Don't claim strerror is broken on Interix.
47745         * doc/functions/strerror.texi (strerror): Known broken systems are
47746         now Solaris 8, and not Interix.
47747         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
47748         Interix on cross-compile.
47749         Reported by Martin Koeppe in
47750         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
47751
47752 2007-10-11  Bruno Haible  <bruno@clisp.org>
47753
47754         * modules/i-ring-tests: New file.
47755         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
47756         instead of assert.
47757
47758 2007-10-11  Bruno Haible  <bruno@clisp.org>
47759
47760         * modules/filenamecat-tests: New file.
47761         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
47762         * lib/filenamecat.c: Remove test code.
47763
47764 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47765
47766         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
47767
47768         * lib/strerror.c: Include <string.h> always, to test interface,
47769         and to remove the need for the dummy.
47770         Include intprops.h to compute width instead of doing it ourselves
47771         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
47772         (strerror): Define it to return NULL if there's no system strerror.
47773         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
47774         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
47775         ancient pre-strerror Unix systems well any more.  Saying "unknown
47776         system error" is enough.
47777         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
47778         simpler strerror.c implementation.
47779         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
47780         Simplify the tests to reflect the simpler strerror implementation.
47781         * modules/strerror (Depends-on): Add intprops.
47782
47783 2007-10-09  Eric Blake  <ebb9@byu.net>
47784
47785         Silence test-fpending.
47786         * modules/fpending-tests (Files): Add wrapper script.
47787         * tests/test-fpending.sh: New file.
47788
47789 2007-10-09  Bruno Haible  <bruno@clisp.org>
47790
47791         * MODULES.html.sh (func_module): Don't create a hyperlink for
47792         function names like 'printf_frexp'.
47793         (Misc): Add crc, memxor.
47794         (Characteristics of floating types): New section.
47795         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
47796         isnanf-nolibm, signbit, trunc, truncf, truncl.
47797         (Enhancements for ISO C 99 functions): New subsection Input/output.
47798         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
47799         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
47800         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
47801         (Compatibility checks for POSIX:2001 functions): Add clock-time.
47802         (Enhancements for POSIX:2001 functions): Add chdir-long.
47803         (File system functions): Add areadlink, chdir-safer, read-file.
47804         Remove cycle-check.
47805         (File system as inode set): New section.
47806         (Date and time): Add gethrxtime.
47807         (Multithreading): Add openmp.
47808         (Internationalization functions): Add localename.
47809         (Unicode string functions): Add unistr/u*-mbsnlen.
47810         (Support for maintaining and releasing projects): Add git-version-gen.
47811         (Lone files): Remove directories.
47812
47813 2007-10-08  Ben Pfaff  <blp@gnu.org>
47814
47815         * lib/xmalloca.h: Fix typo in comment.
47816
47817 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47818
47819         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
47820         when avoiding problems with integer overflow.  Use a portable test
47821         instead.
47822
47823 2007-10-08  Simon Josefsson  <simon@josefsson.org>
47824
47825         * modules/dummy (License): Change to LGPLv2+.
47826         * modules/float (License): Likewise
47827         * modules/realloc (License): Likewise
47828         * modules/stdlib (License): Likewise
47829
47830 2007-10-07  Bruno Haible  <bruno@clisp.org>
47831
47832         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
47833         * floor.c (TWO_MANT_DIG): Likewise.
47834         * ceil.c (TWO_MANT_DIG): Likewise.
47835         Reported by Ben Pfaff.
47836
47837 2007-10-07  Bruno Haible  <bruno@clisp.org>
47838
47839         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
47840         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
47841         * lib/frexp.c (FUNC): Likewise.
47842         * lib/printf-frexp.h (printf_frexp): Likewise.
47843         * lib/printf-frexpl.h (printf_frexpl): Likewise.
47844         * lib/printf-frexp.c (FUNC): Likewise.
47845         Suggested by Jim Meyering.
47846
47847 2007-10-07  Jim Meyering  <meyering@redhat.com>
47848
47849         Make xnanosleep's integer overflow test more robust.
47850         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
47851         so that gcc-4.3.0 doesn't optimize away this test for overflow.
47852
47853 2007-10-07  Bruno Haible  <bruno@clisp.org>
47854
47855         * NEWS: Mention the license change.
47856
47857         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
47858         abbreviations in the modules files.
47859
47860         Change copyright notice from GPLv2+ to GPLv3+.
47861         * README: Change copyright notice.
47862         * MODULES.html.sh: Likewise.
47863         * build-aux/bootstrap.conf: Likewise.
47864         * build-aux/config.libpath: Likewise.
47865         * build-aux/csharpcomp.sh.in: Likewise.
47866         * build-aux/csharpexec.sh.in: Likewise.
47867         * build-aux/install-reloc: Likewise.
47868         * build-aux/javacomp.sh.in: Likewise.
47869         * build-aux/javaexec.sh.in: Likewise.
47870         * build-aux/ldd.sh.in: Likewise.
47871         * build-aux/reloc-ldflags: Likewise.
47872         * build-aux/relocatable.sh.in: Likewise.
47873         * build-aux/x-to-1.in: Likewise.
47874         * check-module: Likewise.
47875         * config/srclistvars.sh: Likewise.
47876         * gnulib-tool: Likewise.
47877         * lib/acl-internal.h: Likewise.
47878         * lib/acl.c: Likewise.
47879         * lib/acl.h: Likewise.
47880         * lib/acl_entries.c: Likewise.
47881         * lib/areadlink-with-size.c: Likewise.
47882         * lib/areadlink.c: Likewise.
47883         * lib/areadlink.h: Likewise.
47884         * lib/argmatch.c: Likewise.
47885         * lib/argmatch.h: Likewise.
47886         * lib/argp-ba.c: Likewise.
47887         * lib/argp-eexst.c: Likewise.
47888         * lib/argp-fmtstream.c: Likewise.
47889         * lib/argp-fmtstream.h: Likewise.
47890         * lib/argp-fs-xinl.c: Likewise.
47891         * lib/argp-help.c: Likewise.
47892         * lib/argp-namefrob.h: Likewise.
47893         * lib/argp-parse.c: Likewise.
47894         * lib/argp-pin.c: Likewise.
47895         * lib/argp-pv.c: Likewise.
47896         * lib/argp-pvh.c: Likewise.
47897         * lib/argp-xinl.c: Likewise.
47898         * lib/argp.h: Likewise.
47899         * lib/at-func.c: Likewise.
47900         * lib/atanl.c: Likewise.
47901         * lib/backupfile.c: Likewise.
47902         * lib/backupfile.h: Likewise.
47903         * lib/basename.c: Likewise.
47904         * lib/binary-io.h: Likewise.
47905         * lib/byteswap.in.h: Likewise.
47906         * lib/c-stack.c: Likewise.
47907         * lib/c-stack.h: Likewise.
47908         * lib/c-strcasestr.c: Likewise.
47909         * lib/c-strcasestr.h: Likewise.
47910         * lib/c-strstr.c: Likewise.
47911         * lib/c-strstr.h: Likewise.
47912         * lib/c-strtod.c: Likewise.
47913         * lib/calloc.c: Likewise.
47914         * lib/canon-host.c: Likewise.
47915         * lib/canon-host.h: Likewise.
47916         * lib/canonicalize-lgpl.c: Likewise.
47917         * lib/canonicalize.c: Likewise.
47918         * lib/canonicalize.h: Likewise.
47919         * lib/ceil.c: Likewise.
47920         * lib/ceilf.c: Likewise.
47921         * lib/ceill.c: Likewise.
47922         * lib/chdir-long.c: Likewise.
47923         * lib/chdir-long.h: Likewise.
47924         * lib/chdir-safer.c: Likewise.
47925         * lib/chdir-safer.h: Likewise.
47926         * lib/chown.c: Likewise.
47927         * lib/classpath.c: Likewise.
47928         * lib/classpath.h: Likewise.
47929         * lib/clean-temp.c: Likewise.
47930         * lib/clean-temp.h: Likewise.
47931         * lib/cloexec.c: Likewise.
47932         * lib/close-stream.c: Likewise.
47933         * lib/closein.c: Likewise.
47934         * lib/closein.h: Likewise.
47935         * lib/closeout.c: Likewise.
47936         * lib/closeout.h: Likewise.
47937         * lib/concat-filename.c: Likewise.
47938         * lib/copy-file.c: Likewise.
47939         * lib/copy-file.h: Likewise.
47940         * lib/count-one-bits.h: Likewise.
47941         * lib/crc.c: Likewise.
47942         * lib/crc.h: Likewise.
47943         * lib/creat-safer.c: Likewise.
47944         * lib/csharpcomp.c: Likewise.
47945         * lib/csharpcomp.h: Likewise.
47946         * lib/csharpexec.c: Likewise.
47947         * lib/csharpexec.h: Likewise.
47948         * lib/cycle-check.c: Likewise.
47949         * lib/cycle-check.h: Likewise.
47950         * lib/diacrit.c: Likewise.
47951         * lib/diacrit.h: Likewise.
47952         * lib/diffseq.h: Likewise.
47953         * lib/dirchownmod.c: Likewise.
47954         * lib/dirent.in.h: Likewise.
47955         * lib/dirfd.c: Likewise.
47956         * lib/dirfd.h: Likewise.
47957         * lib/dirname.c: Likewise.
47958         * lib/dirname.h: Likewise.
47959         * lib/dummy.c: Likewise.
47960         * lib/dup-safer.c: Likewise.
47961         * lib/dup2.c: Likewise.
47962         * lib/eealloc.h: Likewise.
47963         * lib/error.c: Likewise.
47964         * lib/error.h: Likewise.
47965         * lib/euidaccess.c: Likewise.
47966         * lib/exclude.c: Likewise.
47967         * lib/exclude.h: Likewise.
47968         * lib/execute.c: Likewise.
47969         * lib/execute.h: Likewise.
47970         * lib/exitfail.c: Likewise.
47971         * lib/exitfail.h: Likewise.
47972         * lib/expl.c: Likewise.
47973         * lib/fatal-signal.c: Likewise.
47974         * lib/fatal-signal.h: Likewise.
47975         * lib/fbufmode.c: Likewise.
47976         * lib/fbufmode.h: Likewise.
47977         * lib/fchdir.c: Likewise.
47978         * lib/fchmodat.c: Likewise.
47979         * lib/fchownat.c: Likewise.
47980         * lib/fcntl--.h: Likewise.
47981         * lib/fcntl-safer.h: Likewise.
47982         * lib/fcntl.in.h: Likewise.
47983         * lib/fd-safer.c: Likewise.
47984         * lib/fflush.c: Likewise.
47985         * lib/file-has-acl.c: Likewise.
47986         * lib/file-set.c: Likewise.
47987         * lib/file-type.c: Likewise.
47988         * lib/file-type.h: Likewise.
47989         * lib/fileblocks.c: Likewise.
47990         * lib/filemode.c: Likewise.
47991         * lib/filemode.h: Likewise.
47992         * lib/filename.h: Likewise.
47993         * lib/filenamecat.c: Likewise.
47994         * lib/filenamecat.h: Likewise.
47995         * lib/findprog.c: Likewise.
47996         * lib/findprog.h: Likewise.
47997         * lib/float.in.h: Likewise.
47998         * lib/floor.c: Likewise.
47999         * lib/floorf.c: Likewise.
48000         * lib/floorl.c: Likewise.
48001         * lib/fopen-safer.c: Likewise.
48002         * lib/fopen.c: Likewise.
48003         * lib/fpending.c: Likewise.
48004         * lib/fpending.h: Likewise.
48005         * lib/fprintf.c: Likewise.
48006         * lib/fprintftime.h: Likewise.
48007         * lib/fpucw.h: Likewise.
48008         * lib/fpurge.c: Likewise.
48009         * lib/fpurge.h: Likewise.
48010         * lib/freadable.c: Likewise.
48011         * lib/freadable.h: Likewise.
48012         * lib/freadahead.c: Likewise.
48013         * lib/freadahead.h: Likewise.
48014         * lib/freading.c: Likewise.
48015         * lib/freading.h: Likewise.
48016         * lib/free.c: Likewise.
48017         * lib/freopen.c: Likewise.
48018         * lib/frexp.c: Likewise.
48019         * lib/frexpl.c: Likewise.
48020         * lib/fseek.c: Likewise.
48021         * lib/fseterr.c: Likewise.
48022         * lib/fseterr.h: Likewise.
48023         * lib/fstatat.c: Likewise.
48024         * lib/fstrcmp.c: Likewise.
48025         * lib/fstrcmp.h: Likewise.
48026         * lib/fsusage.c: Likewise.
48027         * lib/fsusage.h: Likewise.
48028         * lib/ftell.c: Likewise.
48029         * lib/ftello.c: Likewise.
48030         * lib/fts-cycle.c: Likewise.
48031         * lib/fts.c: Likewise.
48032         * lib/fts_.h: Likewise.
48033         * lib/full-read.c: Likewise.
48034         * lib/full-read.h: Likewise.
48035         * lib/full-write.c: Likewise.
48036         * lib/full-write.h: Likewise.
48037         * lib/fwritable.c: Likewise.
48038         * lib/fwritable.h: Likewise.
48039         * lib/fwriteerror.c: Likewise.
48040         * lib/fwriteerror.h: Likewise.
48041         * lib/fwriting.c: Likewise.
48042         * lib/fwriting.h: Likewise.
48043         * lib/gcd.c: Likewise.
48044         * lib/gcd.h: Likewise.
48045         * lib/getcwd.c: Likewise.
48046         * lib/getdate.h: Likewise.
48047         * lib/getdate.y: Likewise.
48048         * lib/getdomainname.c: Likewise.
48049         * lib/getdomainname.h: Likewise.
48050         * lib/getgroups.c: Likewise.
48051         * lib/gethostname.c: Likewise.
48052         * lib/gethrxtime.c: Likewise.
48053         * lib/gethrxtime.h: Likewise.
48054         * lib/getloadavg.c: Likewise.
48055         * lib/getndelim2.c: Likewise.
48056         * lib/getndelim2.h: Likewise.
48057         * lib/getnline.c: Likewise.
48058         * lib/getnline.h: Likewise.
48059         * lib/getopt.c: Likewise.
48060         * lib/getopt.in.h: Likewise.
48061         * lib/getopt1.c: Likewise.
48062         * lib/getopt_int.h: Likewise.
48063         * lib/getpagesize.h: Likewise.
48064         * lib/getsubopt.c: Likewise.
48065         * lib/gettime.c: Likewise.
48066         * lib/getugroups.c: Likewise.
48067         * lib/getugroups.h: Likewise.
48068         * lib/getusershell.c: Likewise.
48069         * lib/gl_anyavltree_list1.h: Likewise.
48070         * lib/gl_anyavltree_list2.h: Likewise.
48071         * lib/gl_anyhash_list1.h: Likewise.
48072         * lib/gl_anyhash_list2.h: Likewise.
48073         * lib/gl_anylinked_list1.h: Likewise.
48074         * lib/gl_anylinked_list2.h: Likewise.
48075         * lib/gl_anyrbtree_list1.h: Likewise.
48076         * lib/gl_anyrbtree_list2.h: Likewise.
48077         * lib/gl_anytree_list1.h: Likewise.
48078         * lib/gl_anytree_list2.h: Likewise.
48079         * lib/gl_anytree_oset.h: Likewise.
48080         * lib/gl_anytreehash_list1.h: Likewise.
48081         * lib/gl_anytreehash_list2.h: Likewise.
48082         * lib/gl_array_list.c: Likewise.
48083         * lib/gl_array_list.h: Likewise.
48084         * lib/gl_array_oset.c: Likewise.
48085         * lib/gl_array_oset.h: Likewise.
48086         * lib/gl_avltree_list.c: Likewise.
48087         * lib/gl_avltree_list.h: Likewise.
48088         * lib/gl_avltree_oset.c: Likewise.
48089         * lib/gl_avltree_oset.h: Likewise.
48090         * lib/gl_avltreehash_list.c: Likewise.
48091         * lib/gl_avltreehash_list.h: Likewise.
48092         * lib/gl_carray_list.c: Likewise.
48093         * lib/gl_carray_list.h: Likewise.
48094         * lib/gl_linked_list.c: Likewise.
48095         * lib/gl_linked_list.h: Likewise.
48096         * lib/gl_linkedhash_list.c: Likewise.
48097         * lib/gl_linkedhash_list.h: Likewise.
48098         * lib/gl_list.c: Likewise.
48099         * lib/gl_list.h: Likewise.
48100         * lib/gl_oset.c: Likewise.
48101         * lib/gl_oset.h: Likewise.
48102         * lib/gl_rbtree_list.c: Likewise.
48103         * lib/gl_rbtree_list.h: Likewise.
48104         * lib/gl_rbtree_oset.c: Likewise.
48105         * lib/gl_rbtree_oset.h: Likewise.
48106         * lib/gl_rbtreehash_list.c: Likewise.
48107         * lib/gl_rbtreehash_list.h: Likewise.
48108         * lib/gl_sublist.c: Likewise.
48109         * lib/gl_sublist.h: Likewise.
48110         * lib/group-member.c: Likewise.
48111         * lib/group-member.h: Likewise.
48112         * lib/hard-locale.c: Likewise.
48113         * lib/hard-locale.h: Likewise.
48114         * lib/hash-pjw.c: Likewise.
48115         * lib/hash-pjw.h: Likewise.
48116         * lib/hash-triple.c: Likewise.
48117         * lib/hash.c: Likewise.
48118         * lib/hash.h: Likewise.
48119         * lib/human.c: Likewise.
48120         * lib/human.h: Likewise.
48121         * lib/i-ring.c: Likewise.
48122         * lib/i-ring.h: Likewise.
48123         * lib/idcache.c: Likewise.
48124         * lib/imaxabs.c: Likewise.
48125         * lib/imaxdiv.c: Likewise.
48126         * lib/inet_pton.c: Likewise.
48127         * lib/inet_pton.h: Likewise.
48128         * lib/intprops.h: Likewise.
48129         * lib/inttostr.c: Likewise.
48130         * lib/inttostr.h: Likewise.
48131         * lib/inttypes.in.h: Likewise.
48132         * lib/isapipe.c: Likewise.
48133         * lib/isdir.c: Likewise.
48134         * lib/isnan.c: Likewise.
48135         * lib/isnan.h: Likewise.
48136         * lib/isnanf.c: Likewise.
48137         * lib/isnanf.h: Likewise.
48138         * lib/isnanl-nolibm.h: Likewise.
48139         * lib/isnanl.c: Likewise.
48140         * lib/isnanl.h: Likewise.
48141         * lib/javacomp.c: Likewise.
48142         * lib/javacomp.h: Likewise.
48143         * lib/javaexec.c: Likewise.
48144         * lib/javaexec.h: Likewise.
48145         * lib/javaversion.c: Likewise.
48146         * lib/javaversion.h: Likewise.
48147         * lib/javaversion.java: Likewise.
48148         * lib/lbrkprop.h: Likewise.
48149         * lib/lchmod.h: Likewise.
48150         * lib/lchown.c: Likewise.
48151         * lib/ldexpl.c: Likewise.
48152         * lib/linebreak.c: Likewise.
48153         * lib/linebreak.h: Likewise.
48154         * lib/linebuffer.c: Likewise.
48155         * lib/linebuffer.h: Likewise.
48156         * lib/locale.in.h: Likewise.
48157         * lib/logl.c: Likewise.
48158         * lib/long-options.c: Likewise.
48159         * lib/long-options.h: Likewise.
48160         * lib/lstat.c: Likewise.
48161         * lib/lstat.h: Likewise.
48162         * lib/math.in.h: Likewise.
48163         * lib/mbchar.c: Likewise.
48164         * lib/mbchar.h: Likewise.
48165         * lib/mbfile.h: Likewise.
48166         * lib/mbiter.h: Likewise.
48167         * lib/mbscasecmp.c: Likewise.
48168         * lib/mbscasestr.c: Likewise.
48169         * lib/mbschr.c: Likewise.
48170         * lib/mbscspn.c: Likewise.
48171         * lib/mbslen.c: Likewise.
48172         * lib/mbsncasecmp.c: Likewise.
48173         * lib/mbsnlen.c: Likewise.
48174         * lib/mbspbrk.c: Likewise.
48175         * lib/mbspcasecmp.c: Likewise.
48176         * lib/mbsrchr.c: Likewise.
48177         * lib/mbssep.c: Likewise.
48178         * lib/mbsspn.c: Likewise.
48179         * lib/mbsstr.c: Likewise.
48180         * lib/mbstok_r.c: Likewise.
48181         * lib/mbswidth.c: Likewise.
48182         * lib/mbswidth.h: Likewise.
48183         * lib/mbuiter.h: Likewise.
48184         * lib/memcasecmp.c: Likewise.
48185         * lib/memcasecmp.h: Likewise.
48186         * lib/memchr.c: Likewise.
48187         * lib/memcmp.c: Likewise.
48188         * lib/memcoll.c: Likewise.
48189         * lib/memcoll.h: Likewise.
48190         * lib/memcpy.c: Likewise.
48191         * lib/memrchr.c: Likewise.
48192         * lib/mkancesdirs.c: Likewise.
48193         * lib/mkdir-p.c: Likewise.
48194         * lib/mkdir-p.h: Likewise.
48195         * lib/mkdir.c: Likewise.
48196         * lib/mkdirat.c: Likewise.
48197         * lib/mkdtemp.c: Likewise.
48198         * lib/mkstemp-safer.c: Likewise.
48199         * lib/mkstemp.c: Likewise.
48200         * lib/modechange.c: Likewise.
48201         * lib/modechange.h: Likewise.
48202         * lib/mountlist.c: Likewise.
48203         * lib/mountlist.h: Likewise.
48204         * lib/mpsort.c: Likewise.
48205         * lib/nanosleep.c: Likewise.
48206         * lib/obstack.c: Likewise.
48207         * lib/obstack.h: Likewise.
48208         * lib/open-safer.c: Likewise.
48209         * lib/open.c: Likewise.
48210         * lib/openat-die.c: Likewise.
48211         * lib/openat-priv.h: Likewise.
48212         * lib/openat-proc.c: Likewise.
48213         * lib/openat.c: Likewise.
48214         * lib/openat.h: Likewise.
48215         * lib/pagealign_alloc.c: Likewise.
48216         * lib/pagealign_alloc.h: Likewise.
48217         * lib/physmem.c: Likewise.
48218         * lib/physmem.h: Likewise.
48219         * lib/pipe-safer.c: Likewise.
48220         * lib/pipe.c: Likewise.
48221         * lib/pipe.h: Likewise.
48222         * lib/posixtm.c: Likewise.
48223         * lib/posixtm.h: Likewise.
48224         * lib/posixver.c: Likewise.
48225         * lib/printf-frexp.c: Likewise.
48226         * lib/printf-frexp.h: Likewise.
48227         * lib/printf-frexpl.c: Likewise.
48228         * lib/printf-frexpl.h: Likewise.
48229         * lib/printf.c: Likewise.
48230         * lib/progname.c: Likewise.
48231         * lib/progname.h: Likewise.
48232         * lib/progreloc.c: Likewise.
48233         * lib/putenv.c: Likewise.
48234         * lib/quote.c: Likewise.
48235         * lib/quote.h: Likewise.
48236         * lib/quotearg.c: Likewise.
48237         * lib/quotearg.h: Likewise.
48238         * lib/raise.c: Likewise.
48239         * lib/readline.c: Likewise.
48240         * lib/readline.h: Likewise.
48241         * lib/readlink.c: Likewise.
48242         * lib/readtokens.c: Likewise.
48243         * lib/readtokens.h: Likewise.
48244         * lib/readtokens0.c: Likewise.
48245         * lib/readtokens0.h: Likewise.
48246         * lib/readutmp.c: Likewise.
48247         * lib/readutmp.h: Likewise.
48248         * lib/realloc.c: Likewise.
48249         * lib/relocwrapper.c: Likewise.
48250         * lib/rename-dest-slash.c: Likewise.
48251         * lib/rename.c: Likewise.
48252         * lib/rmdir.c: Likewise.
48253         * lib/rpmatch.c: Likewise.
48254         * lib/safe-read.c: Likewise.
48255         * lib/safe-read.h: Likewise.
48256         * lib/safe-write.c: Likewise.
48257         * lib/safe-write.h: Likewise.
48258         * lib/same-inode.h: Likewise.
48259         * lib/same.c: Likewise.
48260         * lib/same.h: Likewise.
48261         * lib/save-cwd.c: Likewise.
48262         * lib/save-cwd.h: Likewise.
48263         * lib/savedir.c: Likewise.
48264         * lib/savedir.h: Likewise.
48265         * lib/savewd.c: Likewise.
48266         * lib/savewd.h: Likewise.
48267         * lib/search.in.h: Likewise.
48268         * lib/setenv.c: Likewise.
48269         * lib/setenv.h: Likewise.
48270         * lib/settime.c: Likewise.
48271         * lib/sh-quote.c: Likewise.
48272         * lib/sh-quote.h: Likewise.
48273         * lib/sig2str.c: Likewise.
48274         * lib/sig2str.h: Likewise.
48275         * lib/signal.in.h: Likewise.
48276         * lib/signbitd.c: Likewise.
48277         * lib/signbitf.c: Likewise.
48278         * lib/signbitl.c: Likewise.
48279         * lib/sigprocmask.c: Likewise.
48280         * lib/sincosl.c: Likewise.
48281         * lib/sleep.c: Likewise.
48282         * lib/sprintf.c: Likewise.
48283         * lib/sqrtl.c: Likewise.
48284         * lib/stat-time.h: Likewise.
48285         * lib/stdio--.h: Likewise.
48286         * lib/stdio-safer.h: Likewise.
48287         * lib/stdlib--.h: Likewise.
48288         * lib/stdlib-safer.h: Likewise.
48289         * lib/stdlib.in.h: Likewise.
48290         * lib/stpcpy.c: Likewise.
48291         * lib/stpncpy.c: Likewise.
48292         * lib/strchrnul.c: Likewise.
48293         * lib/strcspn.c: Likewise.
48294         * lib/strerror.c: Likewise.
48295         * lib/strftime.c: Likewise.
48296         * lib/strftime.h: Likewise.
48297         * lib/striconveh.c: Likewise.
48298         * lib/striconveh.h: Likewise.
48299         * lib/striconveha.c: Likewise.
48300         * lib/striconveha.h: Likewise.
48301         * lib/stripslash.c: Likewise.
48302         * lib/strnlen1.c: Likewise.
48303         * lib/strnlen1.h: Likewise.
48304         * lib/strtod.c: Likewise.
48305         * lib/strtoimax.c: Likewise.
48306         * lib/strtok_r.c: Likewise.
48307         * lib/strtol.c: Likewise.
48308         * lib/strtoll.c: Likewise.
48309         * lib/strtoul.c: Likewise.
48310         * lib/strtoull.c: Likewise.
48311         * lib/sysexits.in.h: Likewise.
48312         * lib/tempname.c: Likewise.
48313         * lib/tempname.h: Likewise.
48314         * lib/timespec.h: Likewise.
48315         * lib/tls.c: Likewise.
48316         * lib/tls.h: Likewise.
48317         * lib/tmpdir.c: Likewise.
48318         * lib/tmpdir.h: Likewise.
48319         * lib/tmpfile-safer.c: Likewise.
48320         * lib/tmpfile.c: Likewise.
48321         * lib/trigl.c: Likewise.
48322         * lib/trigl.h: Likewise.
48323         * lib/trim.c: Likewise.
48324         * lib/trim.h: Likewise.
48325         * lib/trunc.c: Likewise.
48326         * lib/truncf.c: Likewise.
48327         * lib/truncl.c: Likewise.
48328         * lib/tsearch.c: Likewise.
48329         * lib/unicodeio.c: Likewise.
48330         * lib/unicodeio.h: Likewise.
48331         * lib/unistd--.h: Likewise.
48332         * lib/unistd-safer.h: Likewise.
48333         * lib/unistdio/ulc-fprintf.c: Likewise.
48334         * lib/unistdio/ulc-vfprintf.c: Likewise.
48335         * lib/unlinkdir.c: Likewise.
48336         * lib/unlinkdir.h: Likewise.
48337         * lib/unlocked-io.h: Likewise.
48338         * lib/unsetenv.c: Likewise.
48339         * lib/userspec.c: Likewise.
48340         * lib/utime.c: Likewise.
48341         * lib/utimecmp.c: Likewise.
48342         * lib/utimecmp.h: Likewise.
48343         * lib/utimens.c: Likewise.
48344         * lib/verify.h: Likewise.
48345         * lib/verror.c: Likewise.
48346         * lib/verror.h: Likewise.
48347         * lib/version-etc-fsf.c: Likewise.
48348         * lib/version-etc.c: Likewise.
48349         * lib/version-etc.h: Likewise.
48350         * lib/vfprintf.c: Likewise.
48351         * lib/vprintf.c: Likewise.
48352         * lib/vsprintf.c: Likewise.
48353         * lib/w32spawn.h: Likewise.
48354         * lib/wait-process.c: Likewise.
48355         * lib/wait-process.h: Likewise.
48356         * lib/wcwidth.c: Likewise.
48357         * lib/write-any-file.c: Likewise.
48358         * lib/xalloc-die.c: Likewise.
48359         * lib/xalloc.h: Likewise.
48360         * lib/xasprintf.c: Likewise.
48361         * lib/xgetcwd.c: Likewise.
48362         * lib/xgetcwd.h: Likewise.
48363         * lib/xgetdomainname.c: Likewise.
48364         * lib/xgetdomainname.h: Likewise.
48365         * lib/xgethostname.c: Likewise.
48366         * lib/xmalloc.c: Likewise.
48367         * lib/xmalloca.c: Likewise.
48368         * lib/xmalloca.h: Likewise.
48369         * lib/xmemcoll.c: Likewise.
48370         * lib/xnanosleep.c: Likewise.
48371         * lib/xreadlink.c: Likewise.
48372         * lib/xreadlink.h: Likewise.
48373         * lib/xsetenv.c: Likewise.
48374         * lib/xsetenv.h: Likewise.
48375         * lib/xstriconv.c: Likewise.
48376         * lib/xstriconv.h: Likewise.
48377         * lib/xstrndup.c: Likewise.
48378         * lib/xstrndup.h: Likewise.
48379         * lib/xstrtod.c: Likewise.
48380         * lib/xstrtod.h: Likewise.
48381         * lib/xstrtol-error.c: Likewise.
48382         * lib/xstrtol.c: Likewise.
48383         * lib/xstrtol.h: Likewise.
48384         * lib/xtime.h: Likewise.
48385         * lib/xvasprintf.c: Likewise.
48386         * lib/xvasprintf.h: Likewise.
48387         * lib/yesno.c: Likewise.
48388         * lib/yesno.h: Likewise.
48389         * posix-modules: Likewise.
48390         * tests/test-alloca-opt.c: Likewise.
48391         * tests/test-arcfour.c: Likewise.
48392         * tests/test-arctwo.c: Likewise.
48393         * tests/test-argmatch.c: Likewise.
48394         * tests/test-argp-2.sh: Likewise.
48395         * tests/test-argp.c: Likewise.
48396         * tests/test-arpa_inet.c: Likewise.
48397         * tests/test-array_list.c: Likewise.
48398         * tests/test-array_oset.c: Likewise.
48399         * tests/test-atexit.c: Likewise.
48400         * tests/test-avltree_list.c: Likewise.
48401         * tests/test-avltree_oset.c: Likewise.
48402         * tests/test-avltreehash_list.c: Likewise.
48403         * tests/test-base64.c: Likewise.
48404         * tests/test-binary-io.c: Likewise.
48405         * tests/test-byteswap.c: Likewise.
48406         * tests/test-c-ctype.c: Likewise.
48407         * tests/test-c-strcasecmp.c: Likewise.
48408         * tests/test-c-strcasestr.c: Likewise.
48409         * tests/test-c-strncasecmp.c: Likewise.
48410         * tests/test-c-strstr.c: Likewise.
48411         * tests/test-canonicalize-lgpl.c: Likewise.
48412         * tests/test-canonicalize.c: Likewise.
48413         * tests/test-carray_list.c: Likewise.
48414         * tests/test-ceilf.c: Likewise.
48415         * tests/test-ceill.c: Likewise.
48416         * tests/test-count-one-bits.c: Likewise.
48417         * tests/test-crc.c: Likewise.
48418         * tests/test-dirname.c: Likewise.
48419         * tests/test-fbufmode.c: Likewise.
48420         * tests/test-fcntl.c: Likewise.
48421         * tests/test-fflush.c: Likewise.
48422         * tests/test-floorf.c: Likewise.
48423         * tests/test-floorl.c: Likewise.
48424         * tests/test-fopen.c: Likewise.
48425         * tests/test-fprintf-posix.c: Likewise.
48426         * tests/test-fprintf-posix.h: Likewise.
48427         * tests/test-fpurge.c: Likewise.
48428         * tests/test-freadable.c: Likewise.
48429         * tests/test-freadahead.c: Likewise.
48430         * tests/test-freading.c: Likewise.
48431         * tests/test-freopen.c: Likewise.
48432         * tests/test-frexp.c: Likewise.
48433         * tests/test-frexpl.c: Likewise.
48434         * tests/test-fseek.c: Likewise.
48435         * tests/test-fseeko.c: Likewise.
48436         * tests/test-fseterr.c: Likewise.
48437         * tests/test-fstrcmp.c: Likewise.
48438         * tests/test-ftell.c: Likewise.
48439         * tests/test-ftello.c: Likewise.
48440         * tests/test-fwritable.c: Likewise.
48441         * tests/test-fwriting.c: Likewise.
48442         * tests/test-getaddrinfo.c: Likewise.
48443         * tests/test-getpass.c: Likewise.
48444         * tests/test-gettimeofday.c: Likewise.
48445         * tests/test-hmac-md5.c: Likewise.
48446         * tests/test-hmac-sha1.c: Likewise.
48447         * tests/test-iconv.c: Likewise.
48448         * tests/test-iconvme.c: Likewise.
48449         * tests/test-inttypes.c: Likewise.
48450         * tests/test-isnan.c: Likewise.
48451         * tests/test-isnanf.c: Likewise.
48452         * tests/test-isnanl-nolibm.c: Likewise.
48453         * tests/test-isnanl.c: Likewise.
48454         * tests/test-isnanl.h: Likewise.
48455         * tests/test-ldexpl.c: Likewise.
48456         * tests/test-linked_list.c: Likewise.
48457         * tests/test-linkedhash_list.c: Likewise.
48458         * tests/test-locale.c: Likewise.
48459         * tests/test-localename.c: Likewise.
48460         * tests/test-lock.c: Likewise.
48461         * tests/test-lseek.c: Likewise.
48462         * tests/test-malloca.c: Likewise.
48463         * tests/test-math.c: Likewise.
48464         * tests/test-mbscasecmp.c: Likewise.
48465         * tests/test-mbscasestr1.c: Likewise.
48466         * tests/test-mbscasestr2.c: Likewise.
48467         * tests/test-mbscasestr3.c: Likewise.
48468         * tests/test-mbscasestr4.c: Likewise.
48469         * tests/test-mbschr.c: Likewise.
48470         * tests/test-mbscspn.c: Likewise.
48471         * tests/test-mbsncasecmp.c: Likewise.
48472         * tests/test-mbspbrk.c: Likewise.
48473         * tests/test-mbspcasecmp.c: Likewise.
48474         * tests/test-mbsrchr.c: Likewise.
48475         * tests/test-mbsspn.c: Likewise.
48476         * tests/test-mbsstr1.c: Likewise.
48477         * tests/test-mbsstr2.c: Likewise.
48478         * tests/test-mbsstr3.c: Likewise.
48479         * tests/test-md5.c: Likewise.
48480         * tests/test-memmem.c: Likewise.
48481         * tests/test-netinet_in.c: Likewise.
48482         * tests/test-open.c: Likewise.
48483         * tests/test-printf-frexp.c: Likewise.
48484         * tests/test-printf-frexpl.c: Likewise.
48485         * tests/test-printf-posix.c: Likewise.
48486         * tests/test-printf-posix.h: Likewise.
48487         * tests/test-rbtree_list.c: Likewise.
48488         * tests/test-rbtree_oset.c: Likewise.
48489         * tests/test-rbtreehash_list.c: Likewise.
48490         * tests/test-read-file.c: Likewise.
48491         * tests/test-rijndael.c: Likewise.
48492         * tests/test-search.c: Likewise.
48493         * tests/test-signbit.c: Likewise.
48494         * tests/test-sleep.c: Likewise.
48495         * tests/test-snprintf-posix.c: Likewise.
48496         * tests/test-snprintf-posix.h: Likewise.
48497         * tests/test-snprintf.c: Likewise.
48498         * tests/test-sprintf-posix.c: Likewise.
48499         * tests/test-sprintf-posix.h: Likewise.
48500         * tests/test-stat-time.c: Likewise.
48501         * tests/test-stdbool.c: Likewise.
48502         * tests/test-stdint.c: Likewise.
48503         * tests/test-stdio.c: Likewise.
48504         * tests/test-stdlib.c: Likewise.
48505         * tests/test-stpncpy.c: Likewise.
48506         * tests/test-strcasestr.c: Likewise.
48507         * tests/test-striconv.c: Likewise.
48508         * tests/test-striconveh.c: Likewise.
48509         * tests/test-striconveha.c: Likewise.
48510         * tests/test-string.c: Likewise.
48511         * tests/test-sys_select.c: Likewise.
48512         * tests/test-sys_socket.c: Likewise.
48513         * tests/test-sys_stat.c: Likewise.
48514         * tests/test-sys_time.c: Likewise.
48515         * tests/test-sysexits.c: Likewise.
48516         * tests/test-time.c: Likewise.
48517         * tests/test-tls.c: Likewise.
48518         * tests/test-trunc.c: Likewise.
48519         * tests/test-truncf.c: Likewise.
48520         * tests/test-truncl.c: Likewise.
48521         * tests/test-unistd.c: Likewise.
48522         * tests/test-vasnprintf-posix.c: Likewise.
48523         * tests/test-vasnprintf-posix2.c: Likewise.
48524         * tests/test-vasnprintf.c: Likewise.
48525         * tests/test-vasprintf-posix.c: Likewise.
48526         * tests/test-vasprintf.c: Likewise.
48527         * tests/test-verify.c: Likewise.
48528         * tests/test-vfprintf-posix.c: Likewise.
48529         * tests/test-vprintf-posix.c: Likewise.
48530         * tests/test-vsnprintf-posix.c: Likewise.
48531         * tests/test-vsnprintf.c: Likewise.
48532         * tests/test-vsprintf-posix.c: Likewise.
48533         * tests/test-wchar.c: Likewise.
48534         * tests/test-wctype.c: Likewise.
48535         * tests/test-wcwidth.c: Likewise.
48536         * tests/test-xstrtol.c: Likewise.
48537         * tests/test-xvasprintf.c: Likewise.
48538         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
48539         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
48540         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48541         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48542         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48543         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
48544         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48545         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48546         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48547         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
48548         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48549         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48550         * tests/uniname/test-uninames.c: Likewise.
48551         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
48552         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
48553         * tests/unistdio/test-u16-printf1.h: Likewise.
48554         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
48555         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
48556         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
48557         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
48558         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
48559         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
48560         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
48561         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
48562         * tests/unistdio/test-u32-printf1.h: Likewise.
48563         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
48564         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
48565         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
48566         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
48567         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
48568         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
48569         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
48570         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
48571         * tests/unistdio/test-u8-printf1.h: Likewise.
48572         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
48573         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
48574         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
48575         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
48576         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
48577         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
48578         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
48579         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
48580         * tests/unistdio/test-ulc-printf1.h: Likewise.
48581         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
48582         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
48583         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
48584         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
48585         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
48586         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
48587         * tests/uniwidth/test-u16-strwidth.c: Likewise.
48588         * tests/uniwidth/test-u16-width.c: Likewise.
48589         * tests/uniwidth/test-u32-strwidth.c: Likewise.
48590         * tests/uniwidth/test-u32-width.c: Likewise.
48591         * tests/uniwidth/test-u8-strwidth.c: Likewise.
48592         * tests/uniwidth/test-u8-width.c: Likewise.
48593         * tests/uniwidth/test-uc_width.c: Likewise.
48594         * config/srclist-update: Likewise.
48595         (fixlicense): Update to GPLv3+.
48596
48597         Change copyright notice from LGPLv2.1+ to LGPLv3+.
48598         * tests/test-tsearch.c: Change copyright notice.
48599
48600         Change copyright notice from LGPLv2.0+ to LGPLv3+.
48601         * lib/c-strcaseeq.h: Change copyright notice.
48602         * lib/streq.h: Likewise.
48603         * lib/uniconv.h: Likewise.
48604         * lib/uniconv/u-conv-from-enc.h: Likewise.
48605         * lib/uniconv/u-conv-to-enc.h: Likewise.
48606         * lib/uniconv/u-strconv-from-enc.h: Likewise.
48607         * lib/uniconv/u-strconv-to-enc.h: Likewise.
48608         * lib/uniconv/u16-conv-from-enc.c: Likewise.
48609         * lib/uniconv/u16-conv-to-enc.c: Likewise.
48610         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
48611         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
48612         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
48613         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
48614         * lib/uniconv/u32-conv-from-enc.c: Likewise.
48615         * lib/uniconv/u32-conv-to-enc.c: Likewise.
48616         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
48617         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
48618         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
48619         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
48620         * lib/uniconv/u8-conv-from-enc.c: Likewise.
48621         * lib/uniconv/u8-conv-to-enc.c: Likewise.
48622         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
48623         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
48624         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
48625         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
48626         * lib/uniname.h: Likewise.
48627         * lib/uniname/uniname.c: Likewise.
48628         * lib/unistdio.h: Likewise.
48629         * lib/unistdio/u-asnprintf.h: Likewise.
48630         * lib/unistdio/u-asprintf.h: Likewise.
48631         * lib/unistdio/u-printf-args.c: Likewise.
48632         * lib/unistdio/u-printf-args.h: Likewise.
48633         * lib/unistdio/u-printf-parse.h: Likewise.
48634         * lib/unistdio/u-snprintf.h: Likewise.
48635         * lib/unistdio/u-sprintf.h: Likewise.
48636         * lib/unistdio/u-vasprintf.h: Likewise.
48637         * lib/unistdio/u-vsnprintf.h: Likewise.
48638         * lib/unistdio/u-vsprintf.h: Likewise.
48639         * lib/unistdio/u16-asnprintf.c: Likewise.
48640         * lib/unistdio/u16-asprintf.c: Likewise.
48641         * lib/unistdio/u16-printf-parse.c: Likewise.
48642         * lib/unistdio/u16-snprintf.c: Likewise.
48643         * lib/unistdio/u16-sprintf.c: Likewise.
48644         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
48645         * lib/unistdio/u16-u16-asprintf.c: Likewise.
48646         * lib/unistdio/u16-u16-snprintf.c: Likewise.
48647         * lib/unistdio/u16-u16-sprintf.c: Likewise.
48648         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
48649         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
48650         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
48651         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
48652         * lib/unistdio/u16-vasnprintf.c: Likewise.
48653         * lib/unistdio/u16-vasprintf.c: Likewise.
48654         * lib/unistdio/u16-vsnprintf.c: Likewise.
48655         * lib/unistdio/u16-vsprintf.c: Likewise.
48656         * lib/unistdio/u32-asnprintf.c: Likewise.
48657         * lib/unistdio/u32-asprintf.c: Likewise.
48658         * lib/unistdio/u32-printf-parse.c: Likewise.
48659         * lib/unistdio/u32-snprintf.c: Likewise.
48660         * lib/unistdio/u32-sprintf.c: Likewise.
48661         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
48662         * lib/unistdio/u32-u32-asprintf.c: Likewise.
48663         * lib/unistdio/u32-u32-snprintf.c: Likewise.
48664         * lib/unistdio/u32-u32-sprintf.c: Likewise.
48665         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
48666         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
48667         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
48668         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
48669         * lib/unistdio/u32-vasnprintf.c: Likewise.
48670         * lib/unistdio/u32-vasprintf.c: Likewise.
48671         * lib/unistdio/u32-vsnprintf.c: Likewise.
48672         * lib/unistdio/u32-vsprintf.c: Likewise.
48673         * lib/unistdio/u8-asnprintf.c: Likewise.
48674         * lib/unistdio/u8-asprintf.c: Likewise.
48675         * lib/unistdio/u8-printf-parse.c: Likewise.
48676         * lib/unistdio/u8-snprintf.c: Likewise.
48677         * lib/unistdio/u8-sprintf.c: Likewise.
48678         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
48679         * lib/unistdio/u8-u8-asprintf.c: Likewise.
48680         * lib/unistdio/u8-u8-snprintf.c: Likewise.
48681         * lib/unistdio/u8-u8-sprintf.c: Likewise.
48682         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
48683         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
48684         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
48685         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
48686         * lib/unistdio/u8-vasnprintf.c: Likewise.
48687         * lib/unistdio/u8-vasprintf.c: Likewise.
48688         * lib/unistdio/u8-vsnprintf.c: Likewise.
48689         * lib/unistdio/u8-vsprintf.c: Likewise.
48690         * lib/unistdio/ulc-asnprintf.c: Likewise.
48691         * lib/unistdio/ulc-asprintf.c: Likewise.
48692         * lib/unistdio/ulc-printf-parse.c: Likewise.
48693         * lib/unistdio/ulc-snprintf.c: Likewise.
48694         * lib/unistdio/ulc-sprintf.c: Likewise.
48695         * lib/unistdio/ulc-vasnprintf.c: Likewise.
48696         * lib/unistdio/ulc-vasprintf.c: Likewise.
48697         * lib/unistdio/ulc-vsnprintf.c: Likewise.
48698         * lib/unistdio/ulc-vsprintf.c: Likewise.
48699         * lib/unistr.h: Likewise.
48700         * lib/unistr/u-cpy-alloc.h: Likewise.
48701         * lib/unistr/u-cpy.h: Likewise.
48702         * lib/unistr/u-endswith.h: Likewise.
48703         * lib/unistr/u-move.h: Likewise.
48704         * lib/unistr/u-set.h: Likewise.
48705         * lib/unistr/u-startswith.h: Likewise.
48706         * lib/unistr/u-stpcpy.h: Likewise.
48707         * lib/unistr/u-stpncpy.h: Likewise.
48708         * lib/unistr/u-strcat.h: Likewise.
48709         * lib/unistr/u-strcpy.h: Likewise.
48710         * lib/unistr/u-strcspn.h: Likewise.
48711         * lib/unistr/u-strdup.h: Likewise.
48712         * lib/unistr/u-strlen.h: Likewise.
48713         * lib/unistr/u-strncat.h: Likewise.
48714         * lib/unistr/u-strncpy.h: Likewise.
48715         * lib/unistr/u-strnlen.h: Likewise.
48716         * lib/unistr/u-strpbrk.h: Likewise.
48717         * lib/unistr/u-strspn.h: Likewise.
48718         * lib/unistr/u-strstr.h: Likewise.
48719         * lib/unistr/u-strtok.h: Likewise.
48720         * lib/unistr/u16-check.c: Likewise.
48721         * lib/unistr/u16-chr.c: Likewise.
48722         * lib/unistr/u16-cmp.c: Likewise.
48723         * lib/unistr/u16-cpy-alloc.c: Likewise.
48724         * lib/unistr/u16-cpy.c: Likewise.
48725         * lib/unistr/u16-endswith.c: Likewise.
48726         * lib/unistr/u16-mblen.c: Likewise.
48727         * lib/unistr/u16-mbsnlen.c: Likewise.
48728         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48729         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48730         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48731         * lib/unistr/u16-mbtouc.c: Likewise.
48732         * lib/unistr/u16-mbtoucr.c: Likewise.
48733         * lib/unistr/u16-move.c: Likewise.
48734         * lib/unistr/u16-next.c: Likewise.
48735         * lib/unistr/u16-prev.c: Likewise.
48736         * lib/unistr/u16-set.c: Likewise.
48737         * lib/unistr/u16-startswith.c: Likewise.
48738         * lib/unistr/u16-stpcpy.c: Likewise.
48739         * lib/unistr/u16-stpncpy.c: Likewise.
48740         * lib/unistr/u16-strcat.c: Likewise.
48741         * lib/unistr/u16-strchr.c: Likewise.
48742         * lib/unistr/u16-strcmp.c: Likewise.
48743         * lib/unistr/u16-strcpy.c: Likewise.
48744         * lib/unistr/u16-strcspn.c: Likewise.
48745         * lib/unistr/u16-strdup.c: Likewise.
48746         * lib/unistr/u16-strlen.c: Likewise.
48747         * lib/unistr/u16-strmblen.c: Likewise.
48748         * lib/unistr/u16-strmbtouc.c: Likewise.
48749         * lib/unistr/u16-strncat.c: Likewise.
48750         * lib/unistr/u16-strncmp.c: Likewise.
48751         * lib/unistr/u16-strncpy.c: Likewise.
48752         * lib/unistr/u16-strnlen.c: Likewise.
48753         * lib/unistr/u16-strpbrk.c: Likewise.
48754         * lib/unistr/u16-strrchr.c: Likewise.
48755         * lib/unistr/u16-strspn.c: Likewise.
48756         * lib/unistr/u16-strstr.c: Likewise.
48757         * lib/unistr/u16-strtok.c: Likewise.
48758         * lib/unistr/u16-to-u32.c: Likewise.
48759         * lib/unistr/u16-to-u8.c: Likewise.
48760         * lib/unistr/u16-uctomb-aux.c: Likewise.
48761         * lib/unistr/u16-uctomb.c: Likewise.
48762         * lib/unistr/u32-check.c: Likewise.
48763         * lib/unistr/u32-chr.c: Likewise.
48764         * lib/unistr/u32-cmp.c: Likewise.
48765         * lib/unistr/u32-cpy-alloc.c: Likewise.
48766         * lib/unistr/u32-cpy.c: Likewise.
48767         * lib/unistr/u32-endswith.c: Likewise.
48768         * lib/unistr/u32-mblen.c: Likewise.
48769         * lib/unistr/u32-mbsnlen.c: Likewise.
48770         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48771         * lib/unistr/u32-mbtouc.c: Likewise.
48772         * lib/unistr/u32-mbtoucr.c: Likewise.
48773         * lib/unistr/u32-move.c: Likewise.
48774         * lib/unistr/u32-next.c: Likewise.
48775         * lib/unistr/u32-prev.c: Likewise.
48776         * lib/unistr/u32-set.c: Likewise.
48777         * lib/unistr/u32-startswith.c: Likewise.
48778         * lib/unistr/u32-stpcpy.c: Likewise.
48779         * lib/unistr/u32-stpncpy.c: Likewise.
48780         * lib/unistr/u32-strcat.c: Likewise.
48781         * lib/unistr/u32-strchr.c: Likewise.
48782         * lib/unistr/u32-strcmp.c: Likewise.
48783         * lib/unistr/u32-strcpy.c: Likewise.
48784         * lib/unistr/u32-strcspn.c: Likewise.
48785         * lib/unistr/u32-strdup.c: Likewise.
48786         * lib/unistr/u32-strlen.c: Likewise.
48787         * lib/unistr/u32-strmblen.c: Likewise.
48788         * lib/unistr/u32-strmbtouc.c: Likewise.
48789         * lib/unistr/u32-strncat.c: Likewise.
48790         * lib/unistr/u32-strncmp.c: Likewise.
48791         * lib/unistr/u32-strncpy.c: Likewise.
48792         * lib/unistr/u32-strnlen.c: Likewise.
48793         * lib/unistr/u32-strpbrk.c: Likewise.
48794         * lib/unistr/u32-strrchr.c: Likewise.
48795         * lib/unistr/u32-strspn.c: Likewise.
48796         * lib/unistr/u32-strstr.c: Likewise.
48797         * lib/unistr/u32-strtok.c: Likewise.
48798         * lib/unistr/u32-to-u16.c: Likewise.
48799         * lib/unistr/u32-to-u8.c: Likewise.
48800         * lib/unistr/u32-uctomb.c: Likewise.
48801         * lib/unistr/u8-check.c: Likewise.
48802         * lib/unistr/u8-chr.c: Likewise.
48803         * lib/unistr/u8-cmp.c: Likewise.
48804         * lib/unistr/u8-cpy-alloc.c: Likewise.
48805         * lib/unistr/u8-cpy.c: Likewise.
48806         * lib/unistr/u8-endswith.c: Likewise.
48807         * lib/unistr/u8-mblen.c: Likewise.
48808         * lib/unistr/u8-mbsnlen.c: Likewise.
48809         * lib/unistr/u8-mbtouc-aux.c: Likewise.
48810         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48811         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48812         * lib/unistr/u8-mbtouc.c: Likewise.
48813         * lib/unistr/u8-mbtoucr.c: Likewise.
48814         * lib/unistr/u8-move.c: Likewise.
48815         * lib/unistr/u8-next.c: Likewise.
48816         * lib/unistr/u8-prev.c: Likewise.
48817         * lib/unistr/u8-set.c: Likewise.
48818         * lib/unistr/u8-startswith.c: Likewise.
48819         * lib/unistr/u8-stpcpy.c: Likewise.
48820         * lib/unistr/u8-stpncpy.c: Likewise.
48821         * lib/unistr/u8-strcat.c: Likewise.
48822         * lib/unistr/u8-strchr.c: Likewise.
48823         * lib/unistr/u8-strcmp.c: Likewise.
48824         * lib/unistr/u8-strcpy.c: Likewise.
48825         * lib/unistr/u8-strcspn.c: Likewise.
48826         * lib/unistr/u8-strdup.c: Likewise.
48827         * lib/unistr/u8-strlen.c: Likewise.
48828         * lib/unistr/u8-strmblen.c: Likewise.
48829         * lib/unistr/u8-strmbtouc.c: Likewise.
48830         * lib/unistr/u8-strncat.c: Likewise.
48831         * lib/unistr/u8-strncmp.c: Likewise.
48832         * lib/unistr/u8-strncpy.c: Likewise.
48833         * lib/unistr/u8-strnlen.c: Likewise.
48834         * lib/unistr/u8-strpbrk.c: Likewise.
48835         * lib/unistr/u8-strrchr.c: Likewise.
48836         * lib/unistr/u8-strspn.c: Likewise.
48837         * lib/unistr/u8-strstr.c: Likewise.
48838         * lib/unistr/u8-strtok.c: Likewise.
48839         * lib/unistr/u8-to-u16.c: Likewise.
48840         * lib/unistr/u8-to-u32.c: Likewise.
48841         * lib/unistr/u8-uctomb-aux.c: Likewise.
48842         * lib/unistr/u8-uctomb.c: Likewise.
48843         * lib/unitypes.h: Likewise.
48844         * lib/uniwidth.h: Likewise.
48845         * lib/uniwidth/cjk.h: Likewise.
48846         * lib/uniwidth/u16-strwidth.c: Likewise.
48847         * lib/uniwidth/u16-width.c: Likewise.
48848         * lib/uniwidth/u32-strwidth.c: Likewise.
48849         * lib/uniwidth/u32-width.c: Likewise.
48850         * lib/uniwidth/u8-strwidth.c: Likewise.
48851         * lib/uniwidth/u8-width.c: Likewise.
48852         * lib/uniwidth/width.c: Likewise.
48853
48854 2007-10-07  Bruno Haible  <bruno@clisp.org>
48855
48856         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
48857         The file is still under LGPL (see modules/inttypes).
48858
48859 2007-10-06  Bruno Haible  <bruno@clisp.org>
48860
48861         * modules/trunc (Dependencies): Add 'extensions'.
48862         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
48863         Reported by Ben Pfaff <blp@gnu.org>.
48864
48865 2007-10-06  Bruno Haible  <bruno@clisp.org>
48866
48867         * modules/freopen-tests: New file.
48868         * tests/test-freopen.c: New file.
48869
48870         * modules/fopen-tests: New file.
48871         * tests/test-fopen.c: New file.
48872
48873         * modules/fopen: New file.
48874         * lib/fopen.c: New file.
48875         * m4/fopen.m4: New file.
48876         * modules/freopen: New file.
48877         * lib/freopen.c: New file.
48878         * m4/freopen.m4: New file.
48879         * lib/stdio.in.h (fopen, freopen): New declarations.
48880         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
48881         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
48882         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
48883         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
48884         * doc/functions/fopen.texi: Mention the 'fopen' module.
48885         * doc/functions/freopen.texi: Mention the 'freopen' module.
48886
48887 2007-10-06  Bruno Haible  <bruno@clisp.org>
48888
48889         * modules/open-tests: New file.
48890         * tests/test-open.c: New file.
48891
48892         * modules/open: New file.
48893         * lib/open.c: New file.
48894         * m4/open.m4: New file.
48895         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
48896         lib/open.c does.
48897         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
48898         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
48899         macros.
48900         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
48901         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
48902         REPLACE_OPEN.
48903         * doc/functions/open.texi: Mention the 'open' module.
48904
48905 2007-10-04  Bruno Haible  <bruno@clisp.org>
48906
48907         * modules/ceill-tests: New file.
48908         * tests/test-ceill.c: New file.
48909
48910         * modules/ceill: New file.
48911         * lib/ceill.c: Replace entire file.
48912         * m4/ceill.m4: New file.
48913         * lib/math.in.h (ceill): Replace declaration.
48914         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
48915         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
48916         * doc/functions/ceill.texi: Mention the 'ceill' module.
48917         * modules/mathl (Files): Remove lib/ceill.c.
48918         (Depends-on): Add ceill.
48919
48920 2007-10-04  Bruno Haible  <bruno@clisp.org>
48921
48922         * modules/ceilf-tests: New file.
48923         * tests/test-ceilf.c: New file.
48924
48925         * modules/ceilf: New file.
48926         * lib/ceil.c: New file.
48927         * lib/ceilf.c: New file.
48928         * m4/ceilf.m4: New file.
48929         * lib/math.in.h (ceilf): New declaration.
48930         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
48931         HAVE_DECL_CEILF.
48932         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
48933         HAVE_DECL_CEILF.
48934         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
48935
48936 2007-10-04  Bruno Haible  <bruno@clisp.org>
48937
48938         * modules/floorl-tests: New file.
48939         * tests/test-floorl.c: New file.
48940
48941         * modules/floorl: New file.
48942         * lib/floorl.c: Replace entire file.
48943         * m4/floorl.m4: New file.
48944         * lib/math.in.h (floorl): Replace declaration.
48945         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
48946         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
48947         * doc/functions/floorl.texi: Mention the 'floorl' module.
48948         * modules/mathl (Files): Remove lib/floorl.c.
48949         (Depends-on): Add floorl.
48950
48951 2007-10-04  Bruno Haible  <bruno@clisp.org>
48952
48953         * modules/floorf-tests: New file.
48954         * tests/test-floorf.c: New file.
48955
48956         * modules/floorf: New file.
48957         * lib/floor.c: New file.
48958         * lib/floorf.c: New file.
48959         * m4/floorf.m4: New file.
48960         * lib/math.in.h (floorf): New declaration.
48961         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
48962         HAVE_DECL_FLOORF.
48963         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
48964         HAVE_DECL_FLOORF.
48965         * doc/functions/floorf.texi: Mention the 'floorf' module.
48966
48967 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
48968             Bruno Haible  <bruno@clisp.org>
48969
48970         Advertise for the Git server instead of the CVS server.
48971         * doc/gnulib-intro.texi (Steady Development): Mention the Git
48972         repository instead of the CVS one.
48973         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
48974         about all VCS systems generically.
48975         * doc/gnulib.texi (Introduction): Capitalize `Git'.
48976
48977 2007-10-04  Bruno Haible  <bruno@clisp.org>
48978
48979         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
48980         means.
48981         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
48982
48983 2007-10-04  Bruno Haible  <bruno@clisp.org>
48984
48985         * modules/truncl-tests: New file.
48986         * tests/test-truncl.c: New file.
48987
48988         * modules/truncl: New file.
48989         * lib/truncl.c: New file.
48990         * m4/truncl.m4: New file.
48991         * lib/math.in.h (truncl): New declaration.
48992         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
48993         HAVE_DECL_TRUNCL.
48994         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
48995         HAVE_DECL_TRUNCL.
48996         * doc/functions/truncl.texi: Mention the 'truncl' module.
48997
48998 2007-10-04  Bruno Haible  <bruno@clisp.org>
48999
49000         * modules/truncf-tests: New file.
49001         * tests/test-truncf.c: New file.
49002
49003         * modules/truncf: New file.
49004         * lib/trunc.c: Make paramerizable through USE_* macros.
49005         * lib/truncf.c: New file.
49006         * m4/truncf.m4: New file.
49007         * lib/math.in.h (truncf): New declaration.
49008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
49009         HAVE_DECL_TRUNCF.
49010         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
49011         HAVE_DECL_TRUNCF.
49012         * doc/functions/truncf.texi: Mention the 'truncf' module.
49013
49014 2007-10-03  Bruno Haible  <bruno@clisp.org>
49015
49016         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
49017         augmentation also for tests modules.
49018         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
49019         * modules/atexit-tests (Makefile.am): Likewise.
49020         * modules/binary-io-tests (Makefile.am): Likewise.
49021         * modules/c-strcase-tests (Makefile.am): Likewise.
49022         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
49023         * modules/canonicalize-tests (Makefile.am): Likewise.
49024         * modules/closein-tests (Makefile.am): Likewise.
49025         * modules/fprintf-posix-tests (Makefile.am): Likewise.
49026         * modules/freadahead-tests (Makefile.am): Likewise.
49027         * modules/fseek-tests (Makefile.am): Likewise.
49028         * modules/fseeko-tests (Makefile.am): Likewise.
49029         * modules/ftell-tests (Makefile.am): Likewise.
49030         * modules/ftello-tests (Makefile.am): Likewise.
49031         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
49032         * modules/isnanl-tests (Makefile.am): Likewise.
49033         * modules/lseek-tests (Makefile.am): Likewise.
49034         * modules/mbscasecmp-tests (Makefile.am): Likewise.
49035         * modules/mbscasestr-tests (Makefile.am): Likewise.
49036         * modules/mbschr-tests (Makefile.am): Likewise.
49037         * modules/mbscspn-tests (Makefile.am): Likewise.
49038         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
49039         * modules/mbspbrk-tests (Makefile.am): Likewise.
49040         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
49041         * modules/mbsrchr-tests (Makefile.am): Likewise.
49042         * modules/mbsspn-tests (Makefile.am): Likewise.
49043         * modules/mbsstr-tests (Makefile.am): Likewise.
49044         * modules/printf-posix-tests (Makefile.am): Likewise.
49045         * modules/snprintf-posix-tests (Makefile.am): Likewise.
49046         * modules/sprintf-posix-tests (Makefile.am): Likewise.
49047         * modules/tsearch-tests (Makefile.am): Likewise.
49048         * modules/uniname/uniname-tests (Makefile.am): Likewise.
49049         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
49050         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
49051         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
49052         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
49053         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
49054         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
49055         * modules/vprintf-posix-tests (Makefile.am): Likewise.
49056         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
49057         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
49058         * modules/xstrtoimax-tests (Makefile.am): Likewise.
49059         * modules/xstrtol-tests (Makefile.am): Likewise.
49060         * modules/xstrtoumax-tests (Makefile.am): Likewise.
49061         * modules/yesno-tests (Makefile.am): Likewise.
49062
49063 2007-10-03  Bruno Haible  <bruno@clisp.org>
49064
49065         * modules/trunc-tests: New file.
49066         * tests/test-trunc.c: New file.
49067
49068         * modules/trunc: New file.
49069         * lib/trunc.c: New file.
49070         * m4/trunc.m4: New file.
49071         * lib/math.in.h (trunc): New declaration.
49072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
49073         HAVE_DECL_TRUNC.
49074         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
49075         HAVE_DECL_TRUNC.
49076         * doc/functions/trunc.texi: Mention the 'trunc' module.
49077
49078 2007-10-03  Bruno Haible  <bruno@clisp.org>
49079
49080         * tests/test-fpending.c: New file, mostly copied
49081         from coreutils/lib/t-fpending.c.
49082         * modules/fpending-tests: New file.
49083
49084 2007-10-03  Bruno Haible  <bruno@clisp.org>
49085
49086         Port the stdio extensions to QNX (untested).
49087         * lib/fseterr.c (fseterr): Add support for QNX.
49088         * lib/fbufmode.c (fbufmode): Likewise.
49089         * lib/freadable.c (freadable): Likewise.
49090         * lib/fwritable.c (fwritable): Likewise.
49091         * lib/freading.c (freading): Likewise.
49092         * lib/fwriting.c (fwriting): Likewise.
49093         * lib/freadahead.c (freadahed): Likewise.
49094         * lib/fpurge.c (fpurge): Likewise.
49095         * lib/fseeko.c (rpl_fseeko): Likewise.
49096
49097 2007-10-03  Bruno Haible  <bruno@clisp.org>
49098             Jim Meyering  <jim@meyering.net>
49099             Eric Blake  <ebb9@byu.net>
49100
49101         * doc/relocatable.texi: Use @command instead of @program.
49102
49103 2007-10-02  Jim Meyering  <jim@meyering.net>
49104
49105         Perform one more "_.h" -> ".in.h" substitution.
49106         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
49107         instead of unistd_.h here, too.
49108
49109 2007-10-01  Bruno Haible  <bruno@clisp.org>
49110
49111         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
49112         Needed for the alloca-opt module.
49113
49114 2007-09-30  Bruno Haible  <bruno@clisp.org>
49115
49116         * lib/alloca.in.h: Renamed from lib/alloca_.h.
49117         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
49118         alloca_.h.
49119         * lib/argz.in.h: Renamed from lib/argz_.h.
49120         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
49121         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
49122         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
49123         byteswap_.h.
49124         * lib/dirent.in.h: Renamed from lib/dirent_.h.
49125         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
49126         dirent_.h.
49127         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
49128         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
49129         fcntl_.h.
49130         * lib/float.in.h: Renamed from lib/float_.h.
49131         * modules/float (Files, Makefile.am): Use float.in.h instead of
49132         float_.h.
49133         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
49134         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
49135         fnmatch_.h.
49136         * lib/getopt.in.h: Renamed from lib/getopt_.h.
49137         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
49138         getopt_.h.
49139         * lib/glob.in.h: Renamed from lib/glob_.h.
49140         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
49141         * lib/iconv.in.h: Renamed from lib/iconv_.h.
49142         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
49143         iconv_.h.
49144         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
49145         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
49146         inttypes_.h.
49147         * lib/locale.in.h: Renamed from lib/locale_.h.
49148         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
49149         locale_.h.
49150         * lib/math.in.h: Renamed from lib/math_.h.
49151         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
49152         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
49153         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
49154         of netinet_in_.h. Add dependency.
49155         * lib/poll.in.h: Renamed from lib/poll_.h.
49156         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
49157         * lib/search.in.h: Renamed from lib/search_.h.
49158         * modules/search (Files, Makefile.am): Use search.in.h instead of
49159         search_.h.
49160         * lib/signal.in.h: Renamed from lib/signal_.h.
49161         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
49162         _signal.h.
49163         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
49164         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
49165         stdbool_.h.
49166         * lib/stdint.in.h: Renamed from lib/stdint_.h.
49167         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
49168         stdint_.h.
49169         * lib/stdio.in.h: Renamed from lib/stdio_.h.
49170         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
49171         stdio_.h.
49172         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
49173         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
49174         stdlib_.h.
49175         * lib/string.in.h: Renamed from lib/string_.h.
49176         * modules/string (Files, Makefile.am): Use string.in.h instead of
49177         string_.h.
49178         * doc/gnulib-tool.texi (Initial import): Update.
49179         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
49180         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
49181         of sys_select_.h. Add dependency.
49182         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
49183         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
49184         of sys_socket_.h.
49185         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
49186         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
49187         sys_stat_.h.
49188         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
49189         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
49190         sys_time_.h.
49191         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
49192         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
49193         sysexits_.h.
49194         * lib/time.in.h: Renamed from lib/time_.h.
49195         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
49196         * lib/unistd.in.h: Renamed from lib/unistd_.h.
49197         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
49198         unistd_.h.
49199         * lib/wchar.in.h: Renamed from lib/wchar_.h.
49200         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
49201         wchar_.h.
49202         * lib/wctype.in.h: Renamed from lib/wctype_.h.
49203         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
49204         wctype_.h.
49205         * build-aux/bootstrap (slurp): Update.
49206         * lib/.cppi-disable: Update.
49207
49208 2007-09-30  Bruno Haible  <bruno@clisp.org>
49209
49210         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
49211         Needed on BeOS.
49212
49213 2007-09-30  Bruno Haible  <bruno@clisp.org>
49214
49215         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
49216
49217 2007-09-29  Bruno Haible  <bruno@clisp.org>
49218
49219         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
49220
49221 2007-09-29  Bruno Haible  <bruno@clisp.org>
49222
49223         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
49224         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
49225         * build-aux/install-reloc: Compile also areadlink.c.
49226         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
49227
49228 2007-09-29  Bruno Haible  <bruno@clisp.org>
49229
49230         * gnulib-tool (func_emit_initmacro_done): Indentation.
49231
49232 2007-09-29  Bruno Haible  <bruno@clisp.org>
49233
49234         * README: Add CVS checkout update instructions.
49235         Info from Bob Proulx <bob@proulx.com>.
49236
49237 2007-09-28  Eric Blake  <ebb9@byu.net>
49238
49239         Provide move-if-change.
49240         * build-aux/move-if-change: New file, based on best practice
49241         rather than any canonical upstream location.
49242
49243 2007-09-28  Jim Meyering  <jim@meyering.net>
49244
49245         Fix canonicalize loop-detection corner case.
49246         Do not attempt to stat the symlink values stored via seen_triple.
49247         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
49248         on linux-2.6.18, (but not 2.6.22).
49249         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
49250         triple_compare.  The former compares dev,ino,filename, while the latter
49251         would actually stat dirname(filename) when dev and ino were equal.
49252         * lib/hash-triple.c: Install <string.h>.
49253         (STREQ): Define.
49254         (triple_compare_ino_str): New function.
49255         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
49256
49257 2007-09-28  Eric Blake  <ebb9@byu.net>
49258
49259         Enforce that AC_REPLACE_FUNCS files exist.
49260         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
49261         override check for typos.
49262
49263         Fix test-closein on Solaris 10.
49264         * tests/test-closein.c (main): Don't assume stdin can be inherited
49265         closed on all systems.
49266         * tests/test-closein.sh: Likewise.
49267         Reported by Piotr Tarnowski.
49268
49269 2007-09-28  Jim Meyering  <jim@meyering.net>
49270
49271         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
49272
49273 2007-09-27  Jim Meyering  <jim@meyering.net>
49274
49275         canonicalize: Avoid a false-positive cycle failure.
49276         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
49277         Sort.  Remove cycle-check.
49278         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
49279         not cycle-check.h.
49280         (seen_triple): New function.
49281         (canonicalize_filename_mode): Use it instead of cycle-check.
49282         * tests/test-canonicalize.c: Add a test for this bug.
49283         * tests/test-canonicalize.sh: Set up and run the test.
49284
49285         New module, file-set, from coreutils.
49286         * modules/file-set: Define it.
49287         * lib/file-set.c, lib/file-set.h: Implement.
49288
49289         New module, hash-triple, from coreutils.
49290         * modules/hash-triple: Define it.
49291         * lib/hash-triple.c, lib/hash-triple.h: Implement.
49292
49293 2007-09-25  Eric Blake  <ebb9@byu.net>
49294
49295         Fix strerror on Interix.
49296         * lib/string_.h (strerror): Declare replacement.
49297         * doc/functions/strerror.texi (strerror): Document the Interix
49298         shortcoming.
49299         * modules/string (Makefile.am): Support new hooks.
49300         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
49301         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
49302         gl_FUNC_STRERROR_SEPARATE.
49303         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
49304         * lib/strerror.c (rpl_strerror): Provide replacement.
49305         * modules/strerror (Depends-on): Add string.
49306         (configure.ac): Detect use of module.
49307         * tests/test-strerror.c: New file.
49308         * modules/strerror-tests: New test module.
49309         * modules/argp (Depends-on): Add strerror.
49310         * modules/error (Depends-on): Likewise.
49311         Reported by Martin Koeppe.
49312
49313 2007-09-24  Bruno Haible  <bruno@clisp.org>
49314
49315         * README: Update git instructions.
49316
49317 2007-09-24  Eric Blake  <ebb9@byu.net>
49318
49319         Revert fpending breakage from 2007-09-08.
49320         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
49321         __fpending.c.
49322
49323 2007-09-24  Jim Meyering  <jim@meyering.net>
49324
49325         filenamecat.c: Add a test.
49326         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
49327         showing how the function works when DIR is the empty string.
49328
49329 2007-09-21  Simon Josefsson  <simon@josefsson.org>
49330
49331         * tests/test-canonicalize.sh: Turn on executable bit.
49332
49333 2007-09-19  Eric Blake  <ebb9@byu.net>
49334
49335         * README: Update CVS instructions.
49336
49337 2007-09-18  Bruno Haible  <bruno@clisp.org>
49338
49339         * modules/areadlink: New file.
49340         * lib/areadlink.h (areadlink): New declaration.
49341         * lib/areadlink.c: New file, based on lib/xreadlink.c.
49342
49343 2007-09-17  Jim Meyering  <jim@meyering.net>
49344
49345         * lib/savewd.c (ESTALE) [!defined]: Define.
49346         Reported to be required on Interix by Martin Koeppe.
49347
49348 2007-09-17  Bruno Haible  <bruno@clisp.org>
49349
49350         * gnulib-tool (func_version): Use $version.
49351
49352 2007-09-16  Bruno Haible  <bruno@clisp.org>
49353
49354         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
49355         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
49356         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
49357         Reported by Greg Schafer <gschafer@zip.com.au>.
49358
49359 2007-09-15  Bruno Haible  <bruno@clisp.org>
49360
49361         * gnulib-tool (sed): Try a little harder to make bash understand the
49362         alias.
49363         Reported by Bruce Korb <bruce.korb@gmail.com>.
49364
49365 2007-09-13  Eric Blake  <ebb9@byu.net>
49366
49367         * ChangeLog: Remove conflict markers.
49368
49369 2007-09-13  Simon Josefsson  <simon@josefsson.org>
49370
49371         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
49372         Reported by Bruno Haible <bruno@clisp.org>.
49373
49374 2007-09-12  Bruno Haible  <bruno@clisp.org>
49375
49376         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
49377         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
49378         is not defined.
49379
49380 2007-09-12  Eric Blake  <ebb9@byu.net>
49381
49382         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
49383         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
49384         Autoconf definition.
49385         * modules/euidaccess (Depends-on): Add extensions, for
49386         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
49387         * modules/fnmatch (Depends-on): Likewise.
49388         * modules/getaddrinfo (Depends-on): Likewise.
49389         * modules/getdelim (Depends-on): Likewise.
49390         * modules/getline (Depends-on): Likewise.
49391         * modules/getsubopt (Depends-on): Likewise.
49392         * modules/gettext (Depends-on): Likewise.
49393         * modules/group-member (Depends-on): Likewise.
49394         * modules/mbchar (Depends-on): Likewise.
49395         * modules/memmem (Depends-on): Likewise.
49396         * modules/mempcpy (Depends-on): Likewise.
49397         * modules/memrchr (Depends-on): Likewise.
49398         * modules/pagealign_alloc (Depends-on): Likewise.
49399         * modules/readutmp (Depends-on): Likewise.
49400         * modules/stpcpy (Depends-on): Likewise.
49401         * modules/stpncpy (Depends-on): Likewise.
49402         * modules/strchrnul (Depends-on): Likewise.
49403         * modules/strndup (Depends-on): Likewise.
49404         * modules/strsep (Depends-on): Likewise.
49405         * modules/strverscmp (Depends-on): Likewise.
49406         * modules/vasprintf (Depends-on): Likewise.
49407         * modules/wcwidth (Depends-on): Likewise.
49408         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
49409         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
49410         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
49411         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
49412         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49413         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49414         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
49415         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49416         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
49417         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
49418         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49419         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
49420         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
49421         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
49422         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
49423         * m4/readutmp.m4 (gl_READUTMP): Likewise.
49424         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49425         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
49426         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49427         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
49428         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49429         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
49430         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
49431         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
49432         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
49433         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49434         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
49435         so that lock.m4 can be used in gettext without extensions module.
49436
49437 2007-09-11  Bruno Haible  <bruno@clisp.org>
49438
49439         * m4/isc-posix.m4: Remove file.
49440         Suggested by Eric Blake.
49441
49442 2007-09-11  Eric Blake  <ebb9@byu.net>
49443
49444         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
49445
49446 2007-09-10  Bruno Haible  <bruno@clisp.org>
49447
49448         * posix-modules: Fix typo in error message.
49449         Reported by Matt <mkraai@beckman.com>.
49450
49451 2007-09-09  Bruno Haible  <bruno@clisp.org>
49452
49453         * doc/functions/getdelim.texi: Update list of platforms lacking the
49454         function.
49455         * doc/functions/getline.texi: Likewise.
49456
49457 2007-09-09  Jim Meyering  <jim@meyering.net>
49458
49459         * lib/hash.c (hash_initialize): Detect calloc failure.
49460         Reported by Bruno Haible.
49461
49462 2007-09-09  Bruno Haible  <bruno@clisp.org>
49463
49464         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
49465         malloc or realloc fails.
49466
49467 2007-09-09  Bruno Haible  <bruno@clisp.org>
49468
49469         * modules/getcwd (Depends-on): Add malloc-posix.
49470         * modules/glob (Depends-on): Likewise.
49471         * modules/putenv (Depends-on): Likewise.
49472         * modules/strdup (Depends-on): Likewise.
49473         * modules/getdelim (Depends-on): Add realloc-posix.
49474         * modules/read-file (Depends-on): Likewise.
49475
49476 2007-09-09  Bruno Haible  <bruno@clisp.org>
49477
49478         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
49479         (gl_FUNC_MALLOC_POSIX): Require it.
49480         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
49481         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
49482         * modules/realloc (Files): Add m4/malloc.m4.
49483         * modules/calloc (Files): Likewise.
49484
49485 2007-09-09  Bruno Haible  <bruno@clisp.org>
49486
49487         * modules/malloc-posix: New file.
49488         * modules/malloc (Depends-on): Add malloc-posix.
49489         * lib/malloc.c: Include errno.h.
49490         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
49491         and a POSIX-compatible malloc into a single function. Set ENOMEM
49492         when returning NULL.
49493         * m4/malloc.m4: New file.
49494         * doc/functions/malloc.texi: Mention the malloc-posix module.
49495         * lib/stdlib_.h (malloc): New declaration.
49496         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49497         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
49498         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
49499         and HAVE_MALLOC_POSIX.
49500
49501 2007-09-09  Bruno Haible  <bruno@clisp.org>
49502
49503         * modules/realloc-posix: New file.
49504         * modules/realloc (Depends-on): Add realloc-posix.
49505         * lib/realloc.c: Include errno.h.
49506         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
49507         and a POSIX-compatible realloc into a single function. Set ENOMEM
49508         when returning NULL.
49509         * m4/realloc.m4: New file.
49510         * doc/functions/realloc.texi: Mention the realloc-posix module.
49511         * lib/stdlib_.h (realloc): New declaration.
49512         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49513         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
49514         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
49515         and HAVE_REALLOC_POSIX.
49516
49517 2007-09-09  Bruno Haible  <bruno@clisp.org>
49518
49519         * modules/calloc-posix: New file.
49520         * modules/calloc (Depends-on): Add calloc-posix.
49521         * lib/calloc.c: Include errno.h.
49522         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
49523         and a POSIX-compatible calloc into a single function. Set ENOMEM
49524         when returning NULL.
49525         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
49526         * doc/functions/calloc.texi: Mention the calloc-posix module.
49527         * lib/stdlib_.h (calloc): New declaration.
49528         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49529         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
49530         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
49531         and HAVE_CALLOC_POSIX.
49532
49533 2007-09-09  Bruno Haible  <bruno@clisp.org>
49534
49535         Allow for modules to show an arbitrary notice.
49536         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
49537         * gnulib-tool: New option --extract-notice.
49538         (func_usage): Document it.
49539         (sed_extract_prog): Update.
49540         (func_get_notice): New function.
49541         (func_modules_notice): New function.
49542         (func_import, func_create_testdir): Invoke it.
49543         Suggested by Jim Meyering.
49544
49545 2007-09-09  Bruno Haible  <bruno@clisp.org>
49546
49547         * gnulib-tool: New options --verbose, --quiet.
49548         (func_usage): Document them.
49549         (verbose): New variable.
49550         (func_execute_command): New function.
49551         (func_import): Don't show the module list and the file list if
49552         $verbose < 0.
49553         (func_create_testdir): Likewise. Use func_execute_command.
49554         (func_create_megatestdir): Use func_execute_command.
49555
49556 2007-09-08  Bruno Haible  <bruno@clisp.org>
49557
49558         * gnulib-tool (func_import): Prefer rsync over wget when available,
49559         for fetching the PO files.
49560
49561 2007-09-08  Bruno Haible  <bruno@clisp.org>
49562
49563         * posix-modules: New file. Portions copied from gnulib-tool.
49564         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
49565
49566 2007-09-08  Jim Meyering  <jim@meyering.net>
49567
49568         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
49569         * lib/fpending.h: Rename from __fpending.h.
49570         * lib/fpending.c: Rename from __fpending.c.
49571         Include "fpending.h", not "__fpending.h".
49572         * lib/__fpending.h, lib/__fpending.c: Remove files.
49573         * modules/fpending (Files): Reflect new file names.
49574         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
49575
49576 2007-09-08  Bruno Haible  <bruno@clisp.org>
49577
49578         * m4/inttypes-h.m4: Remove stub file.
49579
49580 2007-09-07  Simon Josefsson  <simon@josefsson.org>
49581
49582         * doc/headers/stdint.texi: Discuss #include_next issue.
49583
49584 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49585
49586         * build-aux/bootstrap: Remove obsolete comment about wget --help.
49587
49588 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49589
49590         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
49591         in variable name.
49592
49593 2007-09-03  Jim Meyering  <jim@meyering.net>
49594
49595         New module: git-version-gen.
49596         * modules/git-version-gen: New file.
49597
49598         Import changes from coreutils for bootstrap script.
49599
49600         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
49601
49602         bootstrap: uses rsync to download the .po files
49603         * build-aux/bootstrap (po_download_command_format): New global.
49604         (download_po_files): Use rsync.
49605         (update_po_files): Don't remove .po files after download,
49606         so future rsync runs can take advantage of the copies.
49607
49608         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
49609
49610         Solve the unnecessary-.po-file-regeneration problem once and for all.
49611         * build-aux/bootstrap (download_po_files): New function, renamed from
49612         get_translations.  Now, downloads, but doesn't update LINGUAS.
49613         (update_po_files): New function.
49614
49615         bootstrap: Ignore more.
49616         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
49617         uniwidth to e.g., lib/.gitignore.
49618         (slurp): Handle the sys_stat_.h -> sys mapping, too.
49619
49620         * build-aux/bootstrap: New setting: vc_ignore.
49621         (insert_sorted_if_absent): Create $file if absent.
49622         Adapt to new, possibly empty, list: $vc_ignore.
49623
49624         bootstrap: generate more ignorable names
49625         * build-aux/bootstrap (slurp): When generating ignorable names,
49626         also map .sin to .sed, .gperf to .c, and .y to .c.
49627
49628 2007-09-03  Jim Meyering  <jim@meyering.net>
49629
49630         * build-aux/git-version-gen: New file, from coreutils.  For details, see
49631         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
49632
49633 2007-09-02  Bruno Haible  <bruno@clisp.org>
49634
49635         Fix mis-recognition of 'mcs' on QNX 6.
49636         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
49637         output contains the string "Mono".
49638         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
49639         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
49640
49641 2007-09-01  Bruno Haible  <bruno@clisp.org>
49642
49643         Fix collision between uniwidth/* and linebreak modules.
49644         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
49645         u32_width): Remove declarations.
49646         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
49647         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
49648         streq3, streq2, streq1, streq0): Remove functions.
49649         (STREQ): Remove macro.
49650         (is_cjk_encoding): Remove function.
49651         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
49652         (uc_width, u8_width, u16_width, u32_width): Remove functions.
49653         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
49654         * NEWS: Document the change.
49655
49656 2007-09-01  Bruno Haible  <bruno@clisp.org>
49657
49658         * lib/streq.h: Add double-inclusion guard.
49659
49660 2007-09-01  Karl Berry  <karl@gnu.org>
49661
49662         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
49663
49664 2007-08-28  Jim Meyering  <jim@meyering.net>
49665
49666         Rename mreadlink_with_size to areadlink_with_size.
49667         * NEWS: Document the change.
49668         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
49669         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
49670         * lib/mreadlink.h: Rename this to...
49671         * lib/areadlink.h: ...this.
49672         * modules/mreadlink-with-size: Rename this to...
49673         * modules/areadlink-with-size: ...this.
49674         * lib/canonicalize.c: Reflect the renaming.
49675         * modules/canonicalize: Likewise.
49676
49677 2007-08-26  Bruno Haible  <bruno@clisp.org>
49678
49679         * gnulib-tool (func_import): When deciding which files to remove,
49680         consider also dangling symbolic links.
49681         Reported by Eric Blake.
49682
49683 2007-08-26  Bruno Haible  <bruno@clisp.org>
49684
49685         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
49686
49687 2007-08-23  Simon Josefsson  <simon@josefsson.org>
49688
49689         * lib/readline.c: Don't include getline.h, the prototype is now
49690         found in stdio.h.
49691
49692 2007-08-23  Jim Meyering  <jim@meyering.net>
49693
49694         Getdelim touchup.
49695         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
49696         around the funlockfile call, since funlockfile never sets errno.
49697         Don't set errno upon failed realloc.
49698
49699 2007-08-22  Eric Blake  <ebb9@byu.net>
49700
49701         Getline touchups.
49702         * lib/getdelim.c (getdelim): Revert regression that required *n to
49703         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
49704         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
49705         getdelim, rather than whether implementation is missing.
49706         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
49707         * lib/stdio_.h (getline): Also declare if replacement is
49708         required.
49709         * doc/functions/getdelim.texi: New file.
49710         * doc/functions/getline.texi: Likewise.
49711         * doc/gnulib.texi (Function Substitutes): Add new files.
49712         Reported by Bruno Haible.
49713
49714 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
49715
49716         * users.txt: Add Guile.
49717
49718 2007-08-22  Eric Blake  <ebb9@byu.net>
49719
49720         * tests/test-getdelim.c (main): Use remove, not unlink.
49721         * tests/test-getline.c (main): Likewise.
49722
49723         Move getline and getdelim into stdio.h, per POSIX 200x.
49724         * modules/getline (Files): Remove getline.h.
49725         (Depends-on): Add stdio.
49726         (configure.ac): Add module indicator.
49727         * modules/getdelim (Files): Remove getdelim.h.
49728         (Depends-on): Add stdio.
49729         (configure.ac): Add module indicator.
49730         * modules/stdio (Makefile.am): Work with new indicators.
49731         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
49732         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
49733         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49734         * lib/getdelim.h: Delete.
49735         * lib/getline.h: Delete.
49736         * lib/stdio_.h (getdelim, getline): Declare.
49737         * modules/getdelim-tests: New module.
49738         * modules/getline-tests: Likewise.
49739         * tests/test-getdelim.c: New file.
49740         * tests/test-getline.c: Likewise.
49741         * NEWS: Document the change.
49742         * lib/getline.c: Update choice of header.
49743         * lib/csharpcomp.c: Likewise.
49744         * lib/getpass.c: Likewise.
49745         * lib/javacomp.c: Likewise.
49746         * lib/javaversion.c: Likewise.
49747         * lib/yesno.c: Likewise.
49748         * lib/getdelim.c: Likewise.
49749         (getdelim): Set errno on failure, and avoid memory leak.
49750
49751 2007-08-19  Bruno Haible  <bruno@clisp.org>
49752
49753         * modules/closein (Depends-on): Add freadahead.
49754         * lib/closein.c: Include freadahead.h.
49755         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
49756         is zero.
49757
49758 2007-08-19  Bruno Haible  <bruno@clisp.org>
49759
49760         * modules/freadahead-tests: New file.
49761         * tests/test-freadahead.sh: New file.
49762         * tests/test-freadahead.c: New file.
49763
49764         * modules/freadahead: New file.
49765         * lib/freadahead.h: New file.
49766         * lib/freadahead.c: New file.
49767         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
49768         fbufmode, fpurge, freadable, fwritable.
49769
49770 2007-08-19  Eric Blake  <ebb9@byu.net>
49771
49772         Test yesno in combination with closein.
49773         * lib/yesno.c (yesno): Document use of stdin.
49774         * modules/yesno-tests (Files): New module.
49775         * tests/test-yesno.c (main): New file.
49776         * tests/test-yesno.sh: Likewise.
49777
49778 2007-08-19  Bruno Haible  <bruno@clisp.org>
49779
49780         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
49781         * lib/fseeko.c (rpl_fseeko): Likewise.
49782         * lib/fseterr.c (fseterr): Likewise.
49783
49784 2007-08-19  Bruno Haible  <bruno@clisp.org>
49785
49786         * tests/test-lseek.c (main): Disable a test for BeOS.
49787         * doc/functions/lseek.texi: Document the BeOS bug.
49788
49789 2007-08-19  Bruno Haible  <bruno@clisp.org>
49790             Eric Blake  <ebb9@byu.net>
49791
49792         * lib/lseek.c: Include <sys/stat.h>.
49793         (rpl_lseek): Add workaround code also for Unix platforms.
49794         Needed for BeOS.
49795         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
49796         * doc/functions/lseek.texi: Document BeOS definiency.
49797
49798 2007-08-18  Bruno Haible  <bruno@clisp.org>
49799
49800         * modules/fstrcmp-tests: New file.
49801         * tests/test-fstrcmp.c: New file.
49802
49803 2007-08-18  Bruno Haible  <bruno@clisp.org>
49804
49805         * modules/fstrcmp: New file, from GNU gettext with modifications.
49806         * lib/fstrcmp.h: New file, from GNU gettext.
49807         * lib/fstrcmp.c: New file, from GNU gettext.
49808         * MODULES.html.sh (String handling): Add fstrcmp.
49809
49810 2007-08-18  Bruno Haible  <bruno@clisp.org>
49811
49812         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
49813         'bool'.
49814         (diag, compareseq): Remove const from the ctxt argument.
49815         (USE_HEURISTIC): Undefine at the end.
49816
49817 2007-08-18  Jim Meyering  <jim@meyering.net>
49818
49819         New file: lib/idcache.h
49820         * NEWS: Mention the addition.
49821         * modules/idcache (Files): Add lib/idcache.h
49822         * lib/idcache.c: Include "idcache.h".
49823         Don't include <sys/types.h>.
49824         Add a FIXME comment.
49825         Move file-scoped "static" declarations to the top.
49826         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
49827
49828 2007-08-17  Bruno Haible  <bruno@clisp.org>
49829         and Paul Eggert  <eggert@cs.ucla.edu>
49830
49831         * MODULES.html.sh: Add diffseq.
49832         * modules/diffseq: New file.
49833         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
49834         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
49835
49836 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49837
49838         Import changes from coreutils for bootstrap script.
49839
49840         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
49841
49842         * build-aux/bootstrap (slurp): Work even in environments where
49843         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
49844         current code does not slurp files whose names start with ".", and
49845         this looks like it might be a troublesome area.
49846
49847         2007-07-11  Jim Meyering  <jim@meyering.net>
49848
49849         If there's a GPL vN copyright comment, require that N == 3.
49850
49851         2007-07-08  Jim Meyering  <jim@meyering.net>
49852
49853         Run the coreutils-specific code only if tests/Makefile.am.in exists.
49854         * build-aux/bootstrap (mam_template): Move definition out of loop.
49855
49856         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
49857
49858         * build-aux/bootstrap (symlink_to_dir): Rename function from
49859         symlink_to_gnulib.  Add a directory parameter.  Update all
49860         callers.
49861         (cp_mark_as_generated): Also check for -- and link to -- files in
49862         gl/.
49863
49864         2007-07-08  Jim Meyering  <jim@meyering.net>
49865
49866         Adapt to deeper hierarchy in gnulib.
49867         * build-aux/bootstrap (symlink_to_dir): If the destination
49868         directory doesn't exist, create it. This is required at least for
49869         "lib/uniwidth/cjk.h".
49870
49871         2007-05-15  Jim Meyering  <jim@meyering.net>
49872
49873         * build-aux/bootstrap: Now that generated Makefile.am files
49874         are no longer under version control, they must be created at
49875         bootstrap time.
49876
49877 2007-08-14  Ben Pfaff  <blp@gnu.org>
49878
49879         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
49880
49881 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49882
49883         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
49884         given the changes below.
49885         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
49886         even on hosts that have padding bits beyond the supported 64.
49887
49888 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49889
49890         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
49891         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
49892         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
49893         depends on it.
49894         (xstrtol_error): Remove.
49895         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
49896         but with a different signature.
49897         (ATTRIBUTE_NORETURN, __attribute__): New macros.
49898         * lib/xstrtol-error.c: Include exitfail.h.
49899         (xstrtol_fatal): New function, with a different signature from the
49900         old xstrtol_error, so that the caller need not worry about passing
49901         in an exit status, or about storage management of the option argument.
49902         (xstrtol_error): Now a static function.  Redo signature to
49903         implement xstrtol_fatal.  Output the correct number of hyphens in
49904         front of the option so that the caller need not worry about
49905         storage management.
49906         (N_): New macro.
49907         (_): Remove; not used now.
49908         * modules/xstrtol: Depend on getopt.
49909         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
49910         of old STRTOL_FATAL_ERROR macro.
49911         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
49912         of test program.
49913         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
49914         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
49915
49916 2007-08-08  Eric Blake  <ebb9@byu.net>
49917
49918         * lib/xstrtol-error.c: Add missing include.
49919
49920         Move xstrtol messages into gnulib domain, when --pobase is used.
49921         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
49922         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
49923         * modules/xstrtol (Files): Distribute new file.
49924         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
49925         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
49926         * tests/test-xstrtol.c: ...into new file.
49927         * tests/test-xstrtoul.c: Also test xstrtoul.
49928         * tests/test-xstrtoimax.c: Also test xstrtoimax.
49929         * tests/test-xstrtoumax.c: Also test xstrtoumax.
49930         * tests/test-xstrtol.sh: Drive the tests.
49931         * tests/test-xstrtoimax.sh: Likewise.
49932         * tests/test-xstrtoumax.sh: Likewise.
49933         * modules/xstrtol-tests: New module.
49934         * modules/xstrtoimax-tests: Likewise.
49935         * modules/xstrtoumax-tests: Likewise.
49936
49937 2007-08-08  Jim Meyering  <jim@meyering.net>
49938
49939         New function: mfile_name_concat.
49940         * lib/filenamecat.c (mfile_name_concat): New function, just like
49941         file_name_concat, but return NULL upon failure rather than exiting
49942         with a diagnostic.
49943         * lib/filenamecat.h: Declare it.
49944
49945 2007-08-07  Bruno Haible  <bruno@clisp.org>
49946
49947         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
49948         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
49949         warning from gcc.
49950         Reported by Eric Blake.
49951
49952 2007-08-07  Simon Josefsson  <simon@josefsson.org>
49953
49954         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
49955         * modules/crypto/arcfour (License): Likewise.
49956         * modules/crypto/des-tests (License): Likewise.
49957         * modules/crypto/gc-arctwo-tests (License): Likewise.
49958         * modules/crypto/gc-des-tests (License): Likewise.
49959         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
49960         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
49961         * modules/crypto/gc-md2-tests (License): Likewise.
49962         * modules/crypto/gc-md4-tests (License): Likewise.
49963         * modules/crypto/gc-md5-tests (License): Likewise.
49964         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
49965         * modules/crypto/gc-rijndael-tests (License): Likewise.
49966         * modules/crypto/gc-sha1-tests (License): Likewise.
49967         * modules/crypto/gc-tests (License): Likewise.
49968         * modules/crypto/hmac-md5 (License): Likewise.
49969         * modules/crypto/hmac-sha1 (License): Likewise.
49970         * modules/crypto/md2-tests (License): Likewise.
49971         * modules/crypto/md4-tests (License): Likewise.
49972         * modules/crypto/md5 (License): Likewise.
49973         * modules/crypto/rijndael (License): Likewise.
49974         * modules/crypto/sha1 (License): Likewise.
49975         * modules/memxor (License): Likewise.
49976
49977 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
49978         and Bruno Haible  <bruno@clisp.org>
49979
49980         * NEWS: Describe interface changes to human, xstrtol.
49981         * lib/human.h: Include <xstrtol.h>.
49982         (human_options): Return enum strtol_error, not int.  Remove
49983         bool arg; take int * instead.
49984         * lib/human.c: Don't include "gettext.h".
49985         (_): Remove; no longer used.
49986         Don't include <xstrtol.h>, since human.h does it.
49987         (human_options): Adjust to abovementioned interface changes.
49988         Do not report error to stderr; that's now the caller's
49989         responsibility.
49990         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
49991         interface change.
49992         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
49993         Str, Argument_type_string.  All uses changed.  Put " argument"
49994         in diagnostics to make them clearer.  Change wording of suffix
49995         message for clarity.
49996         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
49997         Argument_type_string.
49998         (STRTOL_FATAL_WARN): Remove; no longer used.
49999         * modules/human (Depends-on): Remove gettext-h.
50000
50001 2007-08-06  Simon Josefsson  <simon@josefsson.org>
50002
50003         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
50004
50005 2007-07-31  Bruno Haible  <bruno@clisp.org>
50006
50007         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
50008         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
50009         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
50010
50011 2007-07-31  Bruno Haible  <bruno@clisp.org>
50012
50013         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
50014         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
50015
50016 2007-07-30  Bruno Haible  <bruno@clisp.org>
50017
50018         * modules/base64 (License): Use the synonymous term "LGPLv2+".
50019         * modules/c-ctype (License): Likewise.
50020         * modules/c-strcase (License): Likewise.
50021         * modules/check-version (License): Likewise.
50022         * modules/iconv (License): Likewise.
50023         * modules/iconv_open (License): Likewise.
50024         * modules/read-file (License): Likewise.
50025         * modules/striconv (License): Likewise.
50026         * modules/strverscmp (License): Likewise.
50027         * modules/vasprintf (License): Likewise.
50028         * modules/crypto/des (License): Likewise.
50029         * modules/crypto/gc (License): Likewise.
50030         * modules/crypto/gc-arcfour (License): Likewise.
50031         * modules/crypto/gc-arctwo (License): Likewise.
50032         * modules/crypto/gc-des (License): Likewise.
50033         * modules/crypto/gc-hmac-md5 (License): Likewise.
50034         * modules/crypto/gc-hmac-sha1 (License): Likewise.
50035         * modules/crypto/gc-md2 (License): Likewise.
50036         * modules/crypto/gc-md4 (License): Likewise.
50037         * modules/crypto/gc-md5 (License): Likewise.
50038         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
50039         * modules/crypto/gc-random (License): Likewise.
50040         * modules/crypto/gc-rijndael (License): Likewise.
50041         * modules/crypto/gc-sha1 (License): Likewise.
50042         * modules/crypto/md2 (License): Likewise.
50043         * modules/crypto/md4 (License): Likewise.
50044
50045 2007-07-30  Jim Meyering  <jim@meyering.net>
50046
50047         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
50048         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
50049         it has valid stat data.  This bug would cause du not to count the
50050         sizes of inaccessible directories.
50051         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
50052         in <http://bugzilla.redhat.com/250077>.
50053
50054 2007-07-25  Peter O'Gorman  <peter@pogma.com>
50055             Bruno Haible  <bruno@clisp.org>
50056
50057         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
50058         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
50059         #include_next, gives a diagnostic about it, but reports no error in
50060         the exit code.
50061         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50062
50063 2007-07-24  Ben Pfaff  <blp@gnu.org>
50064
50065         Improve name: "count-one-bits" is better than "popcount".
50066         * MODULES.html.sh: Update name.
50067         * lib/popcount.h: Renamed lib/count-one-bits.h.
50068         (popcount): Renamed count_one_bits.
50069         (popcountl): Renamed count_one_bits_l.
50070         (popcountll): Renamed count_one_bits_ll.
50071         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
50072         * modules/popcount: Renamed module/count-one-bits.
50073         * modules/popcount-tests: Renamed module/count-one-bits-tests.
50074         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
50075
50076 2007-07-23  Ben Pfaff  <blp@gnu.org>
50077
50078         * lib/popcount.h (popcount32): Reduce size of constants, to allow
50079         better code generation, and add U to large constants to avoid
50080         warnings, in non-GCC case.
50081         Suggested by Bruno Haible.
50082
50083 2007-07-23  Ben Pfaff  <blp@gnu.org>
50084
50085         * lib/popcount.h: Use verify_true instead of if...abort.
50086         * modules/popcount: Depend on verify module.
50087         Suggested by Jim Meyering.
50088
50089 2007-07-23  Bruno Haible  <bruno@clisp.org>
50090
50091         * gnulib-tool (func_import): Create a .cvsignore file also when the
50092         directory is not yet in CVS but the toplevel directory is. When
50093         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
50094         Reported by Karl Berry.
50095
50096 2007-07-22  Ben Pfaff  <blp@gnu.org>
50097
50098         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
50099         case.
50100         Suggested by Eric Blake.
50101
50102 2007-07-22  Ben Pfaff  <blp@gnu.org>
50103
50104         New module: popcount.
50105         * MODULES.html.sh: Add popcount.
50106         * modules/popcount: New file.
50107         * modules/popcount-tests: New file.
50108         * tests/test-popcount.c: New file.
50109         * lib/popcount.h: New file.
50110         * m4/popcount.m4: New file.
50111
50112 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50113
50114         * build-aux/announce-gen: Update to GPLv3.
50115
50116         * build-aux/config.guess: Update from config.
50117
50118 2007-07-21  Bruno Haible  <bruno@clisp.org>
50119
50120         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
50121         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
50122
50123 2007-07-20  Jim Meyering  <jim@meyering.net>
50124
50125         * check-module: Diagnose a self-dependency.
50126
50127 2007-07-19  Bruno Haible  <bruno@clisp.org>
50128
50129         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
50130         empty.
50131         Reported by Eric Blake.
50132
50133 2007-07-18  Bruno Haible  <bruno@clisp.org>
50134
50135         * gnulib-tool: New options --po-base, --po-domain.
50136         (func_usage): Document them.
50137         (pobase, po_domain): New variables.
50138         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
50139         DEFAULT_TEXT_DOMAIN.
50140         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
50141         (func_import): Consider pobase and po_domain. Create a po/ directory.
50142         (func_create_testdir): Set pobase and po_domain to empty.
50143         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
50144         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
50145
50146 2007-07-18  Bruno Haible  <bruno@clisp.org>
50147
50148         * gnulib-tool (func_get_automake_snippet): Synthesize also an
50149         EXTRA_DIST augmentation for files in build-aux/.
50150
50151 2007-07-16  Bruno Haible  <bruno@clisp.org>
50152
50153         * modules/lseek (License): Use the synonymous term "LGPLv2+".
50154         * modules/getdelim (License): Likewise.
50155
50156 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50157
50158         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
50159         * modules/d-type (License): Likewise.
50160         * modules/extensions (License): Likewise.
50161         * modules/fnmatch (License): Likewise.
50162         * modules/fseeko (License): Likewise.
50163         * modules/getaddrinfo (License): Likewise.
50164         * modules/getline (License): Likewise.
50165         * modules/getlogin_r (License): Likewise.
50166         * modules/getpass (License): Likewise.
50167         * modules/gettimeofday (License): Likewise.
50168         * modules/glob (License): Likewise.
50169         * modules/inet_ntop (License): Likewise.
50170         * modules/malloc (License): Likewise.
50171         * modules/malloca (License): Likewise.
50172         * modules/memmem (License): Likewise.
50173         * modules/mempcpy (License): Likewise.
50174         * modules/memset (License): Likewise.
50175         * modules/minmax (License): Likewise.
50176         * modules/mktime (License): Likewise.
50177         * modules/netinet_in (License): Likewise.
50178         * modules/pathmax (License): Likewise.
50179         * modules/poll (License): Likewise.
50180         * modules/regex (License): Likewise.
50181         * modules/snprintf (License): Likewise.
50182         * modules/stdbool (License): Likewise.
50183         * modules/stdint (License): Likewise.
50184         * modules/stdio (License): Likewise.
50185         * modules/strcase (License): Likewise.
50186         * modules/strcasestr (License): Likewise.
50187         * modules/strdup (License): Likewise.
50188         * modules/string (License): Likewise.
50189         * modules/strndup (License): Likewise.
50190         * modules/strnlen (License): Likewise.
50191         * modules/strpbrk (License): Likewise.
50192         * modules/strptime (License): Likewise.
50193         * modules/strsep (License): Likewise.
50194         * modules/sys_select (License): Likewise.
50195         * modules/sys_socket (License): Likewise.
50196         * modules/sys_stat (License): Likewise.
50197         * modules/sys_time (License): Likewise.
50198         * modules/time (License): Likewise.
50199         * modules/time_r (License): Likewise.
50200         * modules/timegm (License): Likewise.
50201         * modules/unistd (License): Likewise.
50202         * modules/vsnprintf (License): Likewise.
50203         * modules/wctype (License): Likewise.
50204
50205 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50206
50207         * modules/argz (License): LGPLv2+.
50208
50209 2007-07-15  Karl Berry  <karl@gnu.org>
50210
50211         * doc/gnulib.texi: revise node structure per new fdl.texi.
50212
50213 2007-07-14  Bruno Haible  <bruno@clisp.org>
50214
50215         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
50216         the output file.
50217         * lib/uniname/uninames.h: Regenerated.
50218
50219 2007-07-14  Karl Berry  <karl@gnu.org>
50220
50221         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
50222         omitting sectioning and index commands.
50223
50224 2007-07-13  Bruno Haible  <bruno@clisp.org>
50225
50226         New gnulib-tool option --more-symlinks.
50227         * gnulib-tool (func_usage): Document --more-symlinks.
50228         (do_copyrights): New variable.
50229         Recognize option --more-symlinks.
50230         (func_import): Don't add a copyright notice transform to
50231         sed_transform_lib_file if do_copyrights is empty.
50232
50233 2007-07-13  Bruno Haible  <bruno@clisp.org>
50234
50235         * lib/vasnprintf.c (decimal_point_char): Define also if
50236         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
50237         && !NEED_PRINTF_DIRECTIVE_A.
50238         Reported by Clemens Koller <clemens.koller@anagramm.de> via
50239         Gary V. Vaughan <gary@gnu.org>.
50240
50241 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
50242
50243         * lib/inttypes_.h: Undo previous change, since it was fixed
50244         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
50245
50246 2007-07-13  Bruno Haible  <bruno@clisp.org>
50247
50248         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
50249         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
50250
50251 2007-07-13  Jim Meyering  <jim@meyering.net>
50252
50253         df: Don't fail for Tru64's "file-on-file mount".
50254         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
50255         so we fall through and use statfs instead.  Details here:
50256         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
50257         Reported by Albert Chin.
50258
50259 2007-07-13  Bruno Haible  <bruno@clisp.org>
50260
50261         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
50262         * modules/configmake (License): Likewise.
50263         * modules/gettext (License): Likewise.
50264         * modules/gettext-h (License): Likewise.
50265         * modules/include_next (License): Likewise.
50266         * modules/link-warning (License): Likewise.
50267         * modules/localcharset (License): Likewise.
50268         * modules/localename (License): Likewise.
50269         * modules/lock (License): Likewise.
50270         * modules/relocatable-lib-lgpl (License): Likewise.
50271         * modules/size_max (License): Likewise.
50272         * modules/vasnprintf (License): Likewise.
50273         * modules/wchar (License): Likewise.
50274         * modules/xsize (License): Likewise.
50275
50276 2007-07-13  Bruno Haible  <bruno@clisp.org>
50277
50278         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
50279         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
50280
50281 2007-07-12  Bruno Haible  <bruno@clisp.org>
50282
50283         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
50284         in the modules files.
50285
50286 2007-07-11  Karl Berry  <karl@gnu.org>
50287
50288         * MODULES.html.sh (func_module): use
50289          sed -e '\|^'"${includefile}"'$|d'
50290          instead of /.../d, to avoid errors on $includefile's containing /.
50291
50292 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
50293
50294         * gnulib-tool (func_import): Avoid duplication of --avoid
50295         statements
50296         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
50297         names to `_' in variable names.
50298
50299 2007-07-10  Eric Blake  <ebb9@byu.net>
50300
50301         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
50302         * NEWS: Document this change.
50303
50304 2007-07-08  Bruno Haible  <bruno@clisp.org>
50305
50306         Update to Unicode 5.0.
50307         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
50308         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
50309         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
50310         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
50311         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
50312         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
50313         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
50314         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
50315         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
50316         U+10A3F, U+1D242..U+1D244.
50317         (nonspacing_table_ind): Update.
50318         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
50319         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
50320
50321 2007-07-08  Bruno Haible  <bruno@clisp.org>
50322
50323         Update to Unicode 5.0.
50324         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
50325         code transform. Extend the name index field of unicode_name_to_code and
50326         unicode_code_to_name from 16 to 24 bits.
50327         * lib/uniname/uniname.c (unicode_character_name,
50328         unicode_name_character): Add the range 0x12xxx to the code transform.
50329         * lib/uniname/uninames.h: Regenerated.
50330         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
50331
50332 2007-07-07  Bruno Haible  <bruno@clisp.org>
50333
50334         * modules/wcwidth-tests: New file.
50335         * tests/test-wcwidth.c: New file.
50336
50337         Work around MacOS X wcwidth() bug.
50338         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
50339         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
50340         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
50341         original wcwidth in non-UTF-8 locales.
50342         * modules/wcwidth (Depends-on): Add localcharset, streq,
50343         uniwidth/width.
50344         * doc/functions/wcwidth.texi: Update.
50345
50346 2007-07-07  Bruno Haible  <bruno@clisp.org>
50347
50348         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
50349         (wcwidth): New declaration.
50350         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
50351         macros.
50352         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
50353         here. Prepare for creating <wchar.h> unconditionally.
50354         * modules/wchar (Depends-on): Add link-warning.
50355         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
50356         REPLACE_WCWIDTH, and GL_LINK_WARNING.
50357         * lib/wcwidth.h: Remove file.
50358         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
50359         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
50360         * modules/wcwidth (Files): Remove lib/wcwidth.h.
50361         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
50362         (Include): Replace wcwidth.h with <wchar.h>.
50363         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
50364         * lib/mbchar.h: Don't include wcwidth.h.
50365         * lib/mbswidth.c: Likewise.
50366         * NEWS: Mention the change.
50367
50368 2007-07-07  Bruno Haible  <bruno@clisp.org>
50369
50370         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
50371         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
50372         definition with an external declaration.
50373         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
50374         defined as a function. Remove AC_C_INLINE requirement.
50375         * modules/wcwidth (Files): Add lib/wcwidth.c.
50376         (Makefile.am): Remove redundant statement.
50377
50378 2007-07-07  Bruno Haible  <bruno@clisp.org>
50379
50380         * MODULES.html.sh (Unicode string functions): Add the new modules.
50381
50382         * tests/uniwidth/test-u32-strwidth.c: New file.
50383         * modules/uniwidth/u32-strwidth-tests: New file.
50384
50385         * lib/uniwidth/u32-strwidth.c: New file.
50386         * modules/uniwidth/u32-strwidth: New file.
50387
50388         * tests/uniwidth/test-u16-strwidth.c: New file.
50389         * modules/uniwidth/u16-strwidth-tests: New file.
50390
50391         * lib/uniwidth/u16-strwidth.c: New file.
50392         * modules/uniwidth/u16-strwidth: New file.
50393
50394         * tests/uniwidth/test-u8-strwidth.c: New file.
50395         * modules/uniwidth/u8-strwidth-tests: New file.
50396
50397         * lib/uniwidth/u8-strwidth.c: New file.
50398         * modules/uniwidth/u8-strwidth: New file.
50399
50400         * tests/uniwidth/test-u32-width.c: New file.
50401         * modules/uniwidth/u32-width-tests: New file.
50402
50403         * lib/uniwidth/u32-width.c: New file.
50404         * modules/uniwidth/u32-width: New file.
50405
50406         * tests/uniwidth/test-u16-width.c: New file.
50407         * modules/uniwidth/u16-width-tests: New file.
50408
50409         * lib/uniwidth/u16-width.c: New file.
50410         * modules/uniwidth/u16-width: New file.
50411
50412         * tests/uniwidth/test-u8-width.c: New file.
50413         * modules/uniwidth/u8-width-tests: New file.
50414
50415         * lib/uniwidth/u8-width.c: New file.
50416         * modules/uniwidth/u8-width: New file.
50417
50418         * tests/uniwidth/test-uc_width.c: New file.
50419         * modules/uniwidth/width-tests: New file.
50420
50421         * lib/uniwidth/width.c: New file, from GNU libiconv.
50422         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
50423         * modules/uniwidth/width: New file.
50424
50425         * lib/uniwidth.h: New file, from GNU libiconv.
50426         * modules/uniwidth/base: New file.
50427
50428 2007-07-07  Bruno Haible  <bruno@clisp.org>
50429
50430         * lib/uniname.h: New file, from GNU gettext.
50431         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
50432         * lib/uniname/uninames.h: New file, from GNU gettext.
50433         * lib/uniname/uniname.c: New file, from GNU gettext.
50434         * tests/uniname/test-uninames.sh: New file.
50435         * tests/uniname/test-uninames.c: New file, from GNU gettext.
50436         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
50437         * modules/uniname/base: New file.
50438         * modules/uniname/uniname: New file.
50439         * modules/uniname/uniname-tests: New file.
50440         * MODULES.html.sh (Unicode string functions): Add the new modules.
50441
50442 2007-07-06  Bruno Haible  <bruno@clisp.org>
50443
50444         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
50445
50446 2007-07-06  Bruno Haible  <bruno@clisp.org>
50447
50448         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
50449         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
50450         includes <cygwin/sys_time.h> which includes <sys/select.h> which
50451         include <sys/time.h>.
50452         Reported by Eric Blake.
50453
50454 2007-07-06  Eric Blake  <ebb9@byu.net>
50455
50456         Fix testing canonicalize on cygwin.
50457         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
50458         Revert patch from 2007-06-19.
50459         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
50460         canonicalize module is also in use.
50461         * tests/test-canonicalize.c: New file.
50462         * tests/test-canonicalize.sh: Likewise.
50463         * modules/canonicalize-tests: Likewise.
50464
50465 2007-07-06  Jim Meyering  <jim@meyering.net>
50466
50467         * lib/getugroups.c (getugroups): Detect getgrent failure.
50468         Adjust comment to reflect reality: this function may return -1.
50469
50470 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
50471
50472         * build-aux/bootstrap (TP_URL,get_translations): Update to use
50473         the new TP address.
50474         (usage): Fix typo
50475         (gnulib_mk): New variable.
50476
50477 2007-07-05  Jim Meyering  <jim@meyering.net>
50478
50479         Don't let endgrent clobber errno, no matter how improbable.
50480         * lib/getugroups.c (getugroups): Save and restore errno around
50481         endgrent call.
50482
50483         Close the group DB even when failing with 2^31 or more members.
50484         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
50485
50486 2007-07-04  Jim Meyering  <jim@meyering.net>
50487
50488         * lib/getugroups.h: New file.
50489         * lib/getugroups.c: Include "getugroups.h".
50490         Remove uses of "register" keyword.
50491         Move local variable, "cp", down into scope where used.
50492         Give "username" parameter the "const" attribute.
50493         * modules/getugroups (Files): Add lib/getugroups.h
50494
50495 2007-07-04  Karl Berry  <karl@gnu.org>
50496
50497         * MODULES.html.sh (func_all_modules): Complete rename of
50498         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
50499
50500 2007-07-02  Bruno Haible  <bruno@clisp.org>
50501
50502         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
50503         mode, when inttypes.h comes from gnulib.
50504         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50505
50506 2007-07-02  Simon Josefsson  <simon@josefsson.org>
50507
50508         * NEWS: Mention lgpl module name change.
50509
50510         * modules/lgpl-2.1: Renamed from lgpl.
50511
50512         * NEWS: Mention gpl module name change.
50513
50514         * modules/gpl-3.0: New file, based on gpl-2.0.
50515
50516         * modules/gpl-2.0: Renamed from gpl.
50517
50518         * modules/gpl: Fix filename, doc/gpl.texi is now found at
50519         doc/gpl-2.0.texi.
50520
50521 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
50522
50523         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
50524         #define __STDC_LIMIT_MACROS temporarily while including
50525         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
50526         Problem reported by Joel E. Denny in
50527         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
50528
50529 2007-07-01  Bruno Haible  <bruno@clisp.org>
50530
50531         * lib/unistdio.h: New file.
50532         * lib/unistdio/u-asnprintf.h: New file.
50533         * lib/unistdio/u-asprintf.h: New file.
50534         * lib/unistdio/u-printf-args.c: New file.
50535         * lib/unistdio/u-printf-args.h: New file.
50536         * lib/unistdio/u-printf-parse.h: New file.
50537         * lib/unistdio/u-snprintf.h: New file.
50538         * lib/unistdio/u-sprintf.h: New file.
50539         * lib/unistdio/u-vasprintf.h: New file.
50540         * lib/unistdio/u-vsnprintf.h: New file.
50541         * lib/unistdio/u-vsprintf.h: New file.
50542         * lib/unistdio/ulc-asnprintf.c: New file.
50543         * lib/unistdio/ulc-asprintf.c: New file.
50544         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
50545         * lib/unistdio/ulc-printf-parse.c: New file.
50546         * lib/unistdio/ulc-snprintf.c: New file.
50547         * lib/unistdio/ulc-sprintf.c: New file.
50548         * lib/unistdio/ulc-vasnprintf.c: New file.
50549         * lib/unistdio/ulc-vasprintf.c: New file.
50550         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
50551         * lib/unistdio/ulc-vsnprintf.c: New file.
50552         * lib/unistdio/ulc-vsprintf.c: New file.
50553         * lib/unistdio/u8-asnprintf.c: New file.
50554         * lib/unistdio/u8-asprintf.c: New file.
50555         * lib/unistdio/u8-printf-parse.c: New file.
50556         * lib/unistdio/u8-snprintf.c: New file.
50557         * lib/unistdio/u8-sprintf.c: New file.
50558         * lib/unistdio/u8-vasnprintf.c: New file.
50559         * lib/unistdio/u8-vasprintf.c: New file.
50560         * lib/unistdio/u8-vsnprintf.c: New file.
50561         * lib/unistdio/u8-vsprintf.c: New file.
50562         * lib/unistdio/u8-u8-asnprintf.c: New file.
50563         * lib/unistdio/u8-u8-asprintf.c: New file.
50564         * lib/unistdio/u8-u8-snprintf.c: New file.
50565         * lib/unistdio/u8-u8-sprintf.c: New file.
50566         * lib/unistdio/u8-u8-vasnprintf.c: New file.
50567         * lib/unistdio/u8-u8-vasprintf.c: New file.
50568         * lib/unistdio/u8-u8-vsnprintf.c: New file.
50569         * lib/unistdio/u8-u8-vsprintf.c: New file.
50570         * lib/unistdio/u16-asnprintf.c: New file.
50571         * lib/unistdio/u16-asprintf.c: New file.
50572         * lib/unistdio/u16-printf-parse.c: New file.
50573         * lib/unistdio/u16-snprintf.c: New file.
50574         * lib/unistdio/u16-sprintf.c: New file.
50575         * lib/unistdio/u16-vasnprintf.c: New file.
50576         * lib/unistdio/u16-vasprintf.c: New file.
50577         * lib/unistdio/u16-vsnprintf.c: New file.
50578         * lib/unistdio/u16-vsprintf.c: New file.
50579         * lib/unistdio/u16-u16-asnprintf.c: New file.
50580         * lib/unistdio/u16-u16-asprintf.c: New file.
50581         * lib/unistdio/u16-u16-snprintf.c: New file.
50582         * lib/unistdio/u16-u16-sprintf.c: New file.
50583         * lib/unistdio/u16-u16-vasnprintf.c: New file.
50584         * lib/unistdio/u16-u16-vasprintf.c: New file.
50585         * lib/unistdio/u16-u16-vsnprintf.c: New file.
50586         * lib/unistdio/u16-u16-vsprintf.c: New file.
50587         * lib/unistdio/u32-asnprintf.c: New file.
50588         * lib/unistdio/u32-asprintf.c: New file.
50589         * lib/unistdio/u32-printf-parse.c: New file.
50590         * lib/unistdio/u32-snprintf.c: New file.
50591         * lib/unistdio/u32-sprintf.c: New file.
50592         * lib/unistdio/u32-vasnprintf.c: New file.
50593         * lib/unistdio/u32-vasprintf.c: New file.
50594         * lib/unistdio/u32-vsnprintf.c: New file.
50595         * lib/unistdio/u32-vsprintf.c: New file.
50596         * lib/unistdio/u32-u32-asnprintf.c: New file.
50597         * lib/unistdio/u32-u32-asprintf.c: New file.
50598         * lib/unistdio/u32-u32-snprintf.c: New file.
50599         * lib/unistdio/u32-u32-sprintf.c: New file.
50600         * lib/unistdio/u32-u32-vasnprintf.c: New file.
50601         * lib/unistdio/u32-u32-vasprintf.c: New file.
50602         * lib/unistdio/u32-u32-vsnprintf.c: New file.
50603         * lib/unistdio/u32-u32-vsprintf.c: New file.
50604         * tests/unistdio/test-ulc-asnprintf1.c: New file.
50605         * tests/unistdio/test-ulc-asnprintf1.h: New file.
50606         * tests/unistdio/test-ulc-printf1.h: New file.
50607         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
50608         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
50609         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
50610         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
50611         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
50612         * tests/unistdio/test-ulc-vasprintf1.c: New file.
50613         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
50614         * tests/unistdio/test-ulc-vsprintf1.c: New file.
50615         * tests/unistdio/test-u8-asnprintf1.c: New file.
50616         * tests/unistdio/test-u8-asnprintf1.h: New file.
50617         * tests/unistdio/test-u8-printf1.h: New file.
50618         * tests/unistdio/test-u8-vasnprintf1.c: New file.
50619         * tests/unistdio/test-u8-vasnprintf2.c: New file.
50620         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
50621         * tests/unistdio/test-u8-vasnprintf3.c: New file.
50622         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
50623         * tests/unistdio/test-u8-vasprintf1.c: New file.
50624         * tests/unistdio/test-u8-vsnprintf1.c: New file.
50625         * tests/unistdio/test-u8-vsprintf1.c: New file.
50626         * tests/unistdio/test-u16-asnprintf1.c: New file.
50627         * tests/unistdio/test-u16-asnprintf1.h: New file.
50628         * tests/unistdio/test-u16-printf1.h: New file.
50629         * tests/unistdio/test-u16-vasnprintf1.c: New file.
50630         * tests/unistdio/test-u16-vasnprintf2.c: New file.
50631         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
50632         * tests/unistdio/test-u16-vasnprintf3.c: New file.
50633         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
50634         * tests/unistdio/test-u16-vasprintf1.c: New file.
50635         * tests/unistdio/test-u16-vsnprintf1.c: New file.
50636         * tests/unistdio/test-u16-vsprintf1.c: New file.
50637         * tests/unistdio/test-u32-asnprintf1.c: New file.
50638         * tests/unistdio/test-u32-asnprintf1.h: New file.
50639         * tests/unistdio/test-u32-printf1.h: New file.
50640         * tests/unistdio/test-u32-vasnprintf1.c: New file.
50641         * tests/unistdio/test-u32-vasnprintf2.c: New file.
50642         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
50643         * tests/unistdio/test-u32-vasnprintf3.c: New file.
50644         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
50645         * tests/unistdio/test-u32-vasprintf1.c: New file.
50646         * tests/unistdio/test-u32-vsnprintf1.c: New file.
50647         * tests/unistdio/test-u32-vsprintf1.c: New file.
50648         * modules/unistdio/base: New file.
50649         * modules/unistdio/u-printf-args: New file.
50650         * modules/unistdio/ulc-asnprintf: New file.
50651         * modules/unistdio/ulc-asprintf: New file.
50652         * modules/unistdio/ulc-fprintf: New file.
50653         * modules/unistdio/ulc-printf-parse: New file.
50654         * modules/unistdio/ulc-snprintf: New file.
50655         * modules/unistdio/ulc-sprintf: New file.
50656         * modules/unistdio/ulc-vasnprintf: New file.
50657         * modules/unistdio/ulc-vasprintf: New file.
50658         * modules/unistdio/ulc-vfprintf: New file.
50659         * modules/unistdio/ulc-vsnprintf: New file.
50660         * modules/unistdio/ulc-vsprintf: New file.
50661         * modules/unistdio/u8-asnprintf: New file.
50662         * modules/unistdio/u8-asprintf: New file.
50663         * modules/unistdio/u8-printf-parse: New file.
50664         * modules/unistdio/u8-snprintf: New file.
50665         * modules/unistdio/u8-sprintf: New file.
50666         * modules/unistdio/u8-vasnprintf: New file.
50667         * modules/unistdio/u8-vasprintf: New file.
50668         * modules/unistdio/u8-vsnprintf: New file.
50669         * modules/unistdio/u8-vsprintf: New file.
50670         * modules/unistdio/u8-u8-asnprintf: New file.
50671         * modules/unistdio/u8-u8-asprintf: New file.
50672         * modules/unistdio/u8-u8-snprintf: New file.
50673         * modules/unistdio/u8-u8-sprintf: New file.
50674         * modules/unistdio/u8-u8-vasnprintf: New file.
50675         * modules/unistdio/u8-u8-vasprintf: New file.
50676         * modules/unistdio/u8-u8-vsnprintf: New file.
50677         * modules/unistdio/u8-u8-vsprintf: New file.
50678         * modules/unistdio/u16-asnprintf: New file.
50679         * modules/unistdio/u16-asprintf: New file.
50680         * modules/unistdio/u16-printf-parse: New file.
50681         * modules/unistdio/u16-snprintf: New file.
50682         * modules/unistdio/u16-sprintf: New file.
50683         * modules/unistdio/u16-vasnprintf: New file.
50684         * modules/unistdio/u16-vasprintf: New file.
50685         * modules/unistdio/u16-vsnprintf: New file.
50686         * modules/unistdio/u16-vsprintf: New file.
50687         * modules/unistdio/u16-u16-asnprintf: New file.
50688         * modules/unistdio/u16-u16-asprintf: New file.
50689         * modules/unistdio/u16-u16-snprintf: New file.
50690         * modules/unistdio/u16-u16-sprintf: New file.
50691         * modules/unistdio/u16-u16-vasnprintf: New file.
50692         * modules/unistdio/u16-u16-vasprintf: New file.
50693         * modules/unistdio/u16-u16-vsnprintf: New file.
50694         * modules/unistdio/u16-u16-vsprintf: New file.
50695         * modules/unistdio/u32-asnprintf: New file.
50696         * modules/unistdio/u32-asprintf: New file.
50697         * modules/unistdio/u32-printf-parse: New file.
50698         * modules/unistdio/u32-snprintf: New file.
50699         * modules/unistdio/u32-sprintf: New file.
50700         * modules/unistdio/u32-vasnprintf: New file.
50701         * modules/unistdio/u32-vasprintf: New file.
50702         * modules/unistdio/u32-vsnprintf: New file.
50703         * modules/unistdio/u32-vsprintf: New file.
50704         * modules/unistdio/u32-u32-asnprintf: New file.
50705         * modules/unistdio/u32-u32-asprintf: New file.
50706         * modules/unistdio/u32-u32-snprintf: New file.
50707         * modules/unistdio/u32-u32-sprintf: New file.
50708         * modules/unistdio/u32-u32-vasnprintf: New file.
50709         * modules/unistdio/u32-u32-vasprintf: New file.
50710         * modules/unistdio/u32-u32-vsnprintf: New file.
50711         * modules/unistdio/u32-u32-vsprintf: New file.
50712         * modules/unistdio/ulc-asnprintf-tests: New file.
50713         * modules/unistdio/ulc-vasnprintf-tests: New file.
50714         * modules/unistdio/ulc-vasprintf-tests: New file.
50715         * modules/unistdio/ulc-vsnprintf-tests: New file.
50716         * modules/unistdio/ulc-vsprintf-tests: New file.
50717         * modules/unistdio/u8-asnprintf-tests: New file.
50718         * modules/unistdio/u8-vasnprintf-tests: New file.
50719         * modules/unistdio/u8-vasprintf-tests: New file.
50720         * modules/unistdio/u8-vsnprintf-tests: New file.
50721         * modules/unistdio/u8-vsprintf-tests: New file.
50722         * modules/unistdio/u16-asnprintf-tests: New file.
50723         * modules/unistdio/u16-vasnprintf-tests: New file.
50724         * modules/unistdio/u16-vasprintf-tests: New file.
50725         * modules/unistdio/u16-vsnprintf-tests: New file.
50726         * modules/unistdio/u16-vsprintf-tests: New file.
50727         * modules/unistdio/u32-asnprintf-tests: New file.
50728         * modules/unistdio/u32-vasnprintf-tests: New file.
50729         * modules/unistdio/u32-vasprintf-tests: New file.
50730         * modules/unistdio/u32-vsnprintf-tests: New file.
50731         * modules/unistdio/u32-vsprintf-tests: New file.
50732         * MODULES.html.sh (Unicode string functions): Add the new modules.
50733
50734 2007-07-01  Bruno Haible  <bruno@clisp.org>
50735
50736         * lib/sprintf.c (sprintf): Limit the available length estimation,
50737         to avoid address wraparound.
50738         * lib/vsprintf.c (vsprintf): Likewise.
50739         * modules/sprintf-posix (Dependencies): Add stdint.
50740         * modules/vsprintf-posix (Dependencies): Likewise.
50741
50742 2007-07-01  Bruno Haible  <bruno@clisp.org>
50743
50744         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
50745         Windows PATH as well. Conservative double-quoting. Comments.
50746
50747 2007-07-01  Bruno Haible  <bruno@clisp.org>
50748             Eric Blake  <ebb9@byu.net>
50749             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50750
50751         * gnulib-tool (self_abspathname): Fix algorithm to cope with
50752         empty components in $PATH, denoting '.'.
50753
50754 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50755
50756         * gnulib-tool: Fix indentation.
50757         (func_create_megatestdir): Likewise.
50758         Report by Bruno Haible.
50759
50760 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50761
50762         Sync from Automake.
50763         * build-aux/gnupload: Fix shell portability issues with for loops.
50764         Report by Karl Berry.
50765
50766 2007-06-29  Simon Josefsson  <simon@josefsson.org>
50767
50768         * build-aux/maint.mk (POURL): Use translationproject.org.
50769
50770 2007-06-27  Simon Josefsson  <simon@josefsson.org>
50771             Bruno Haible  <bruno@clisp.org>
50772
50773         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
50774         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
50775         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
50776         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
50777         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
50778
50779 2007-06-27  Bruno Haible  <bruno@clisp.org>
50780
50781         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
50782         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
50783
50784 2007-06-26  Karl Berry  <karl@gnu.org>
50785
50786         * MODULES.html.sh: remove xreadlink-with-size.
50787
50788 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50789
50790         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
50791         method that I hope also handles the double-include problem noted
50792         by Bruno Haible in
50793         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
50794
50795 2007-06-23  Bruno Haible  <bruno@clisp.org>
50796
50797         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50798         Don't let the 'mostlyclean' target fail if the last subdirectory could
50799         not be removed.
50800         Reported by Karl Berry.
50801
50802 2007-06-23  Bruno Haible  <bruno@clisp.org>
50803
50804         * gnulib-tool (echo): Add a speedier workaround for ksh.
50805         * tests/test-echo.sh: Likewise.
50806
50807 2007-06-23  Bruno Haible  <bruno@clisp.org>
50808
50809         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
50810         * tests/test-echo.sh: Likewise.
50811
50812 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50813
50814         * gnulib-tool (IFS): Initialize early, so we don't set it to
50815         empty later.
50816         (self_abspathname): Rewrite algorithm to set it, reindent.
50817         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
50818         (func_create_megatestdir): Merge some sed scripts.
50819
50820 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50821
50822         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
50823         exposed by Sun Studio 11 cc on Solaris 8.
50824
50825 2007-06-22  Bruno Haible  <bruno@clisp.org>
50826
50827         * gnulib-tool (echo): Ensure the echo primitive does not interpret
50828         backslashes.
50829         * tests/test-echo.sh: New file.
50830
50831 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50832
50833         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
50834         simplify `sed_replace_build_aux' scripts, they are portable but
50835         echoing them with `echo' is not.
50836         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
50837
50838 2007-06-21  Karl Berry  <karl@gnu.org>
50839
50840         * config/srclist.txt: guess we can't handle the licenses via
50841         srclist at the moment.
50842
50843 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
50844
50845         * MODULES.html.sh: Add include_next.
50846         * modules/include_next: New file.
50847
50848 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50849
50850         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
50851         INCLUDE_NEXT.
50852         (gl_CHECK_NEXT_HEADERS): New macro.
50853         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
50854         the obsolescent gl_ABSOLUTE_HEADER.
50855         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
50856         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
50857         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
50858         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50859         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
50860         * m4/math_h.m4 (gl_MATH_H): Likewise.
50861         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50862         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
50863         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
50864         * m4/stdint.m4 (gl_STDINT_H): Likewise.
50865         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
50866         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
50867         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
50868         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50869         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50870         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
50871         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
50872         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
50873         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
50874         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
50875         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
50876         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
50877         * m4/inttypes.m4 (gl_INTTYPES_H): Define
50878         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
50879         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
50880         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
50881         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
50882         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
50883         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
50884         * lib/float_.h: Likewise.
50885         * lib/inttypes_.h: Likewise.
50886         * lib/math_.h: Likewise.
50887         * lib/search_.h: Likewise.
50888         * lib/signal_.h: Likewise.
50889         * lib/stdint_.h: Likewise.
50890         * lib/stdio_.h: Likewise.
50891         * lib/stdlib_.h: Likewise.
50892         * lib/string_.h: Likewise.
50893         * lib/sys_stat_.h: Likewise.
50894         * lib/sys_time_.h: Likewise.
50895         * lib/time_.h: Likewise.
50896         * lib/unistd_.h: Likewise.
50897         * lib/wchar_.h: Likewise.
50898         * lib/wctype_.h: Likewise.
50899         * lib/dirent_.h: Likewise.
50900         * lib/iconv_.h: Likewise.
50901         * lib/locale_.h: Likewise.
50902         * lib/netinet_in_.h: Likewise.
50903         * lib/sys_select_.h: Likewise.
50904         * lib/sys_socket_.h: Likewise.
50905         * lib/sysexits_.h: Likewise.
50906         * modules/fcntl (Depends-on): Depend on include_next, not
50907         absolute_header.
50908         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
50909         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
50910         * modules/fchdir: Likewise.
50911         * modules/float: Likewise.
50912         * modules/iconv_open: Likewise.
50913         * modules/inttypes: Likewise.
50914         * modules/locale: Likewise.
50915         * modules/math: Likewise.
50916         * modules/netinet_in: Likewise.
50917         * modules/search: Likewise.
50918         * modules/signal: Likewise.
50919         * modules/stdint: Likewise.
50920         * modules/stdio: Likewise.
50921         * modules/stdlib: Likewise.
50922         * modules/string: Likewise.
50923         * modules/sys_select: Likewise.
50924         * modules/sys_socket: Likewise.
50925         * modules/sys_stat: Likewise.
50926         * modules/sys_time: Likewise.
50927         * modules/sysexits: Likewise.
50928         * modules/time: Likewise.
50929         * modules/unistd: Likewise.
50930         * modules/wchar: Likewise.
50931         * modules/wctype: Likewise.
50932         * modules/sys_stat: Change maintainer to "all".
50933         * modules/unistd: Likewise.
50934
50935 2007-06-20  Karl Berry  <karl@gnu.org>
50936
50937         * config/srclist.txt: track www changes in license files.
50938
50939 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
50940
50941         * build-aux/bootstrap: Remove stray dot.
50942         Make sure build_aux settings are honored when linking
50943         gnulib_extra_files.
50944
50945 2007-06-19  Eric Blake  <ebb9@byu.net>
50946
50947         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
50948         Allow compilation on cygwin.
50949
50950 2007-06-19  Jim Meyering  <jim@meyering.net>
50951
50952         xreadlink-with-size: Remove module.  No longer used.
50953         Ex-callers now use xreadlink or mreadlink-with-size.
50954         * modules/xreadlink-with-size: Remove module.
50955         * lib/xreadlink-with-size.c: Remove file.
50956         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
50957         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
50958         just before the function definition *is* accurate.
50959
50960         Eliminate one way canonicalize_filename_mode could exit.
50961         * lib/canonicalize.c (canonicalize_filename_mode):
50962         Use mreadlink_with_size, not xreadlink_with_size.
50963
50964 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
50965
50966         Detect porting problems to FreeBSD/arm, which has time_t wider than
50967         long int.  Original problem reported for GNU diff by Xin Li in
50968         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
50969         * modules/getdate (Depends-on): Add intprops, verify.
50970         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
50971         is an integer type no wider than long int.
50972
50973 2007-06-18  Jim Meyering  <jim@meyering.net>
50974
50975         New module: mreadlink-with-size.
50976         * MODULES.html.sh: Add mreadlink-with-size.
50977         * modules/mreadlink-with-size: New module
50978         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
50979         not xreadlink-with-size.
50980         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
50981
50982 2007-06-16  Bruno Haible  <bruno@clisp.org>
50983
50984         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
50985         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
50986         Reported by Gary V. Vaughan <gary@gnu.org>.
50987
50988 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
50989
50990         Revamp lchown so that it lives in unistd.h where it belongs.
50991         * lib/lchown.h: Remove.
50992         * lib/dirchownmod.c: Don't include lib/lchown.h.
50993         * lib/fchownat.c: Likewise.
50994         * lib/openat.c: Likewise.
50995         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
50996         does not follow symlinks.
50997         (EOPNOTSUPP): Define if not defined.
50998         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
50999         is defined to 0.
51000         (lchown): New decl.
51001         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
51002         Do not check for lchown decl.
51003         Set REPLACE_LCHOWN.
51004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
51005         REPLACE_LCHOWN.
51006         * modules/chown: Make it clear it follows symlinks.
51007         * modules/lchown: Make it clear it doesn't follow symlinks.
51008         (Files): Remove lib/lchown.h
51009         (Depends-on): Add unistd.
51010         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
51011         (Include): Include <unistd.h>, not "lchown.h".
51012         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
51013         REPLACE_LCHOWN.
51014
51015 2007-06-15  Jim Meyering  <jim@meyering.net>
51016
51017         Change license (GPL to LGPL) of fsusage and dependents.
51018         * modules/fsusage (License): Change to LGPL.
51019         * modules/full-read (License): Likewise.
51020         * modules/full-write (License): Likewise.
51021         * modules/safe-read (License): Likewise.
51022         * modules/safe-write (License): Likewise.
51023
51024 2007-06-14  Ben Pfaff  <blp@gnu.org>
51025
51026         Missing part of allocsa -> malloca transition.
51027         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
51028         gl_MALLOCA.
51029
51030 2007-06-12  Bruno Haible  <bruno@clisp.org>
51031
51032         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
51033         to ia64, x86_64, i386.
51034         Reported by Eric Blake.
51035
51036 2007-06-12  Bruno Haible  <bruno@clisp.org>
51037
51038         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
51039         cross-compiling to x86_64.
51040
51041 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
51042
51043         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
51044         glitch reported by Ralf Wildenhues in
51045         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
51046
51047         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
51048         Vin Shelton.
51049
51050 2007-06-11  Bruno Haible  <bruno@clisp.org>
51051
51052         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
51053         replacement string.
51054         Reported by Eric Blake.
51055
51056 2007-06-10  Bruno Haible  <bruno@clisp.org>
51057
51058         Prepare vasnprintf code for use with Unicode strings.
51059         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
51060         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
51061         TYPE_U32_STRING.
51062         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
51063         a_u32_string variants.
51064         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51065         * lib/printf-args.c: Don't include config.h and the specification
51066         header if PRINTF_FETCHARGS is already defined.
51067         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51068         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
51069         TYPE_U16_STRING, TYPE_U32_STRING.
51070         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
51071         u16_directive, u16_directives, u32_directive, u32_directives): New
51072         types.
51073         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
51074         New declarations.
51075         * lib/printf-parse.c: Don't include config.h and the specification
51076         header if PRINTF_PARSE is already defined. Eliminate the set of
51077         parameters for WIDE_CHAR_VERSION; the user of this file must provide
51078         them now. Include c-ctype.h.
51079         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
51080         directive and CHAR_T_ONLY_ASCII.
51081         * lib/vasnprintf.c: Don't include config.h and the specification header
51082         if VASNPRINTF is already defined.
51083         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
51084         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
51085         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
51086         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
51087         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
51088         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
51089         code accordingly.
51090         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
51091         pad_ourselves also in this case, with the 'c' and 's' directives, and
51092         with a different notion of "width".
51093         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
51094
51095 2007-06-10  Bruno Haible  <bruno@clisp.org>
51096
51097         * modules/unistr/u32-mbsnlen: New file.
51098         * lib/unistr/u32-mbsnlen.c: New file.
51099
51100         * modules/unistr/u16-mbsnlen: New file.
51101         * lib/unistr/u16-mbsnlen.c: New file.
51102
51103         * modules/unistr/u8-mbsnlen: New file.
51104         * lib/unistr/u8-mbsnlen.c: New file.
51105
51106         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
51107         declarations.
51108
51109 2007-06-10  Bruno Haible  <bruno@clisp.org>
51110
51111         * lib/string_.h (mbsnlen): New declaration.
51112         * lib/mbsnlen.c: New file.
51113         * m4/mbsnlen.m4: New file.
51114         * modules/mbsnlen: New file.
51115         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
51116         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
51117         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
51118
51119 2007-06-10  Bruno Haible  <bruno@clisp.org>
51120
51121         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
51122
51123 2007-06-10  Bruno Haible  <bruno@clisp.org>
51124
51125         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
51126         * lib/mbuiter.h: Likewise.
51127
51128 2007-06-10  Bruno Haible  <bruno@clisp.org>
51129
51130         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
51131         declaration.
51132
51133 2007-06-10  Karl Berry  <karl@gnu.org>
51134
51135         * config/srclist.txt: remove gettext entries, Bruno prefers
51136         to update individually.
51137
51138 2007-06-10  Bruno Haible  <bruno@clisp.org>
51139
51140         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
51141         'maxlen'. Ensure only length + width bytes are allocated, not
51142         length + 1 + width.
51143
51144 2007-06-09  Bruno Haible  <bruno@clisp.org>
51145
51146         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
51147         (CHAR_T): Remove macro.
51148         (VASNPRINTF): Update.
51149
51150 2007-06-09  Bruno Haible  <bruno@clisp.org>
51151
51152         * MODULES.html.sh (Unicode string functions): Add the new modules.
51153
51154         * modules/uniconv/u32-conv-to-enc: New file.
51155         * lib/uniconv/u32-conv-to-enc.c: New file.
51156         * modules/uniconv/u32-conv-to-enc-tests: New file.
51157         * tests/uniconv/test-u32-conv-to-enc.c: New file.
51158
51159         * modules/uniconv/u16-conv-to-enc: New file.
51160         * lib/uniconv/u16-conv-to-enc.c: New file.
51161         * lib/uniconv/u-conv-to-enc.h: New file.
51162         * modules/uniconv/u16-conv-to-enc-tests: New file.
51163         * tests/uniconv/test-u16-conv-to-enc.c: New file.
51164
51165         * modules/uniconv/u8-conv-to-enc: New file.
51166         * lib/uniconv/u8-conv-to-enc.c: New file.
51167         * modules/uniconv/u8-conv-to-enc-tests: New file.
51168         * tests/uniconv/test-u8-conv-to-enc.c: New file.
51169
51170         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
51171         u32_conv_to_encoding): New declarations.
51172
51173 2007-06-09  Bruno Haible  <bruno@clisp.org>
51174
51175         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
51176
51177 2007-06-09  Bruno Haible  <bruno@clisp.org>
51178
51179         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
51180         * modules/malloca: Renamed from modules/allocsa, updated.
51181         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
51182         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
51183         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
51184         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
51185         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
51186         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
51187         * modules/xmalloca: Renamed from modules/xallocsa, updated.
51188         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
51189         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
51190         * modules/c-strcasestr (Depends-on): Update.
51191         * lib/c-strcasestr.c: Update.
51192         * modules/c-strstr (Depends-on): Update.
51193         * lib/c-strstr.c: Update.
51194         * modules/canonicalize-lgpl (Depends-on): Update.
51195         * lib/canonicalize-lgpl.c: Update.
51196         * modules/clean-temp (Depends-on): Update.
51197         * lib/clean-temp.c: Update.
51198         * modules/csharpcomp (Depends-on): Update.
51199         * lib/csharpcomp.c: Update.
51200         * modules/csharpexec (Depends-on): Update.
51201         * lib/csharpexec.c: Update.
51202         * modules/javacomp (Depends-on): Update.
51203         * lib/javacomp.c: Update.
51204         * modules/javaexec (Depends-on): Update.
51205         * lib/javaexec.c: Update.
51206         * modules/mbscasestr (Depends-on): Update.
51207         * lib/mbscasestr.c: Update.
51208         * modules/mbsstr (Depends-on): Update.
51209         * lib/mbsstr.c: Update.
51210         * modules/setenv (Depends-on): Update.
51211         * lib/setenv.c: Update.
51212         * modules/strcasestr (Depends-on): Update.
51213         * lib/strcasestr.c: Update.
51214         * modules/striconveha (Depends-on): Update.
51215         * lib/striconveha.c: Update.
51216         * modules/relocatable-prog-wrapper (Files): Update.
51217         * lib/relocwrapper.c: Update.
51218         * build-aux/install-reloc: Update.
51219         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
51220
51221 2007-06-08  Bruno Haible  <bruno@clisp.org>
51222
51223         Port to uClibc.
51224         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
51225         * lib/fpurge.c (fpurge): Likewise.
51226         * lib/freading.c (freading): Likewise.
51227         * lib/fseeko.c (rpl_fseeko): Likewise.
51228         * lib/fseterr.c (fseterr): Likewise.
51229         * lib/fwriting.c (fwriting): Likewise.
51230         * tests/test-fflush.c (main): Avoid a failure on uClibc.
51231
51232 2007-06-08  Bruno Haible  <bruno@clisp.org>
51233
51234         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
51235         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
51236         * modules/gettext (Files): Add m4/intlmacosx.m4.
51237
51238 2007-06-07  Bruno Haible  <bruno@clisp.org>
51239
51240         * modules/localename-tests: New file.
51241         * tests/test-localename.c: New file.
51242
51243         New module 'localename'.
51244         * lib/localename.h: New file.
51245         * lib/localename.c: New file, from GNU gettext.
51246         * m4/localename.m4: New file.
51247         * modules/localename: New file.
51248
51249 2007-06-07  Bruno Haible  <bruno@clisp.org>
51250
51251         Work around the lack of <wchar.h> on some builds of uClibc.
51252         * doc/headers/wchar.texi: Update.
51253         * lib/wchar_.h: Include <wchar.h> only if it exists.
51254         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
51255         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
51256         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
51257         doesn't exist.
51258         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
51259         * modules/mbfile (Depends-on): Add wchar.
51260         * modules/mbiter (Depends-on): Likewise.
51261         * modules/mbuiter (Depends-on): Likewise.
51262         Reported by Simon Josefsson.
51263
51264 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
51265
51266         Work around problem reported by Steven M. Schweda in
51267         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
51268         Tru64 5.1B with the Compaq compiler environment installed declares
51269         an 'isblank' function but does not define it in the C library.
51270         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
51271         * lib/regex_internal.h (isblank): Likewise.
51272         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
51273         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51274
51275 2007-06-05  Bruno Haible  <bruno@clisp.org>
51276
51277         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
51278         ia64.
51279         * modules/printf-safe: New file.
51280         * modules/fprintf-posix (Depends-on): Add printf-safe.
51281         * modules/printf-posix (Depends-on): Likewise.
51282         * modules/snprintf-posix (Depends-on): Likewise.
51283         * modules/sprintf-posix (Depends-on): Likewise.
51284         * modules/vasnprintf-posix (Depends-on): Likewise.
51285         * modules/vasprintf-posix (Depends-on): Likewise.
51286         * modules/vfprintf-posix (Depends-on): Likewise.
51287         * modules/vprintf-posix (Depends-on): Likewise.
51288         * modules/vsnprintf-posix (Depends-on): Likewise.
51289         * modules/vsprintf-posix (Depends-on): Likewise.
51290         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
51291         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
51292         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
51293         "no" on i386, x86_64, ia64.
51294         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
51295         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51296         on i386, x86_64, ia64.
51297         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
51298         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51299         on i386, x86_64, ia64.
51300         * tests/test-vasnprintf-posix.c: Include float.h.
51301         (LDBL80_WORDS): New macro.
51302         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51303         on i386, x86_64, ia64.
51304         * tests/test-vasprintf-posix.c: Include float.h.
51305         (LDBL80_WORDS): New macro.
51306         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51307         on i386, x86_64, ia64.
51308         * tests/test-snprintf-posix.c: Include float.h.
51309         * tests/test-sprintf-posix.c: Likewise.
51310         * tests/test-vsnprintf-posix.c: Likewise.
51311         * tests/test-vsprintf-posix.c: Likewise.
51312
51313 2007-06-05  Bruno Haible  <bruno@clisp.org>
51314
51315         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
51316         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
51317         non-IEEE numbers on i386, x86_64, ia64.
51318         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
51319         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
51320         * tests/test-isnanl.h: Include float.h.
51321         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
51322
51323 2007-06-05  Bruno Haible  <bruno@clisp.org>
51324
51325         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
51326         also the %a / %A. Handle the %a / %A code before this extra handling.
51327
51328 2007-06-05  Bruno Haible  <bruno@clisp.org>
51329
51330         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
51331         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
51332
51333 2007-06-05  Bruno Haible  <bruno@clisp.org>
51334
51335         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
51336         typo in variable name.
51337
51338 2007-06-05  Eric Blake  <ebb9@byu.net>
51339
51340         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
51341         Reported by Simon Josefsson.
51342
51343 2007-06-04  Bruno Haible  <bruno@clisp.org>
51344
51345         Avoid test failures on some PowerPC platforms.
51346         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
51347         Define differently for PowerPC.
51348         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
51349         Reported by Gary V. Vaughan <gary@gnu.org>.
51350
51351 2007-06-02  Bruno Haible  <bruno@clisp.org>
51352
51353         Fix test-stdint failure on FreeBSD/ia64.
51354         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
51355         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
51356         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
51357         * doc/headers/stdint.texi: Update.
51358
51359 2007-06-01  Bruno Haible  <bruno@clisp.org>
51360
51361         * tests/test-binary-io.c (main): Pass a third argument to open().
51362         Reported by Gary V. Vaughan <gary@gnu.org>.
51363
51364 2007-06-01  Bruno Haible  <bruno@clisp.org>
51365
51366         * doc/functions/frexpl.texi: Update for mingw.
51367
51368 2007-06-01  Bruno Haible  <bruno@clisp.org>
51369
51370         * tests/test-lseek.c (main): Disable test of errno for invalid third
51371         argument.
51372         * doc/functions/lseek.texi: Update.
51373         Reported by Gary V. Vaughan <gary@gnu.org>.
51374
51375 2007-05-28  Bruno Haible  <bruno@clisp.org>
51376
51377         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
51378
51379 2007-05-31  Eric Blake  <ebb9@byu.net>
51380
51381         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
51382         cross compiling.
51383
51384 2007-05-30  Eric Blake  <ebb9@byu.net>
51385         and Bruno Haible  <bruno@clisp.org>
51386
51387         Work around mingw test failures exposed by m4-1.4.9b.
51388         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
51389         * tests/test-unistd.c: Disable uid_t and git_t tests for the
51390         moment.
51391
51392 2007-05-30  Bruno Haible  <bruno@clisp.org>
51393
51394         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
51395         assuming that they are closed. Needed on HP-UX 11.
51396
51397 2007-05-29  Bruno Haible  <bruno@clisp.org>
51398
51399         Fix a problem with #include_next.
51400         * lib/dirent_.h: Split the double-inclusion guard.
51401         * lib/fcntl_.h: Likewise.
51402         * lib/float_.h: Likewise.
51403         * lib/iconv_.h: Likewise.
51404         * lib/inttypes_.h: Likewise.
51405         * lib/locale_.h: Likewise.
51406         * lib/math_.h: Likewise.
51407         * lib/netinet_in_.h: Likewise.
51408         * lib/search_.h: Likewise.
51409         * lib/signal_.h: Likewise.
51410         * lib/stdint_.h: Likewise.
51411         * lib/stdio_.h: Likewise.
51412         * lib/stdlib_.h: Likewise.
51413         * lib/string_.h: Likewise.
51414         * lib/sys_select_.h: Likewise.
51415         * lib/sys_socket_.h: Likewise.
51416         * lib/sys_stat_.h: Likewise.
51417         * lib/sys_time_.h: Likewise.
51418         * lib/sysexits_.h: Likewise.
51419         * lib/time_.h: Likewise.
51420         * lib/unistd_.h: Likewise.
51421         * lib/wchar_.h: Likewise.
51422         * lib/wctype_.h: Likewise.
51423
51424 2007-05-29  Bruno Haible  <bruno@clisp.org>
51425
51426         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
51427         for the moment.
51428
51429 2007-05-29  Bruno Haible  <bruno@clisp.org>
51430
51431         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
51432         invocation.
51433         Reported by Eric Blake.
51434
51435 2007-05-29  Bruno Haible  <bruno@clisp.org>
51436
51437         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
51438         compiling case.
51439
51440 2007-05-29  Eric Blake  <ebb9@byu.net>
51441             Bruno Haible  <bruno@clisp.org>
51442
51443         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
51444         cross compiles.
51445
51446 2007-05-28  Eric Blake  <ebb9@byu.net>
51447
51448         * modules/closein-tests (test_closein_LDADD): Support test on
51449         cygwin with libtool.
51450
51451 2007-05-28  Bruno Haible  <bruno@clisp.org>
51452
51453         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
51454         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51455         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51456         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51457         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51458         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51459         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51460         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51461         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51462
51463 2007-05-28  Eric Blake  <ebb9@byu.net>
51464
51465         Unconditionally include <config.h> in unit tests.
51466         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
51467         * tests/test-allocsa.c, tests/test-arcfour.c,
51468         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
51469         tests/test-array_list.c, tests/test-array_oset.c,
51470         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
51471         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
51472         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
51473         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
51474         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
51475         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
51476         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
51477         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
51478         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
51479         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
51480         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
51481         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
51482         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
51483         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
51484         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
51485         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
51486         test-md5.c, test-memmem.c, test-printf-posix.c,
51487         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
51488         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
51489         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
51490         test-strcasestr.c, test-striconv.c, test-striconveh.c,
51491         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
51492         test-vasnprintf-posix2.c, test-vasnprintf.c,
51493         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
51494         test-vfprintf-posix.c, test-vprintf-posix.c,
51495         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
51496         test-xvasprintf.c: Likewise.
51497
51498 2007-05-28  Bruno Haible  <bruno@clisp.org>
51499
51500         * gnulib-tool (func_import): Remember the --with-tests command-line
51501         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
51502         Reported by Eric Blake.
51503
51504 2007-05-28  Bruno Haible  <bruno@clisp.org>
51505
51506         * modules/ftell-tests: New file.
51507         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
51508         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
51509
51510         * lib/ftell.c: New file.
51511         * modules/ftell: New file.
51512         * m4/ftell.m4: New file.
51513         * doc/functions/ftell.texi: Update.
51514         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
51515         REPLACE_FTELL.
51516         * lib/stdio_.h (rpl_ftell): New declaration.
51517         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
51518         REPLACE_FTELL.
51519
51520 2007-05-28  Eric Blake  <ebb9@byu.net>
51521
51522         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
51523
51524 2007-05-28  Bruno Haible  <bruno@clisp.org>
51525
51526         * modules/fseek-tests: New file.
51527         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
51528         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
51529
51530         * lib/fseek.c: New file.
51531         * modules/fseek: New file.
51532         * m4/fseek.m4: New file.
51533         * doc/functions/fseek.texi: Update.
51534         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
51535         REPLACE_FSEEK.
51536         * lib/stdio_.h (rpl_fseek): New declaration.
51537         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
51538         REPLACE_FSEEK.
51539
51540 2007-05-28  Bruno Haible  <bruno@clisp.org>
51541
51542         * lib/stdio_.h (fflush): More comments.
51543
51544 2007-05-28  Bruno Haible  <bruno@clisp.org>
51545
51546         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
51547         runtime test.
51548
51549 2007-05-28  Eric Blake  <ebb9@byu.net>
51550
51551         Improve lseek module.
51552         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
51553         * lib/unistd_.h (lseek): Scale back link warning message.
51554         * tests/test-lseek.c: Beef up test.
51555         * tests/test-lseek.sh: Exercise more facets of lseek.
51556         Reported by Bruno Haible.
51557
51558 2007-05-28  Bruno Haible  <bruno@clisp.org>
51559
51560         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
51561         to define.
51562
51563 2007-05-27  Bruno Haible  <bruno@clisp.org>
51564
51565         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
51566
51567 2007-05-27  Bruno Haible  <bruno@clisp.org>
51568
51569         * modules/openmp: New file.
51570         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
51571         Noah Misch.
51572
51573 2007-05-26  Bruno Haible  <bruno@clisp.org>
51574
51575         * modules/chdir-long (Depends-on): Add fchdir.
51576         * modules/chdir-safer (Depends-on): Likewise.
51577         * modules/fts (Depends-on): Likewise.
51578         * modules/fts-lgpl (Depends-on): Likewise.
51579         * modules/openat (Depends-on): Likewise.
51580         * modules/savewd (Depends-on): Likewise.
51581
51582 2007-05-24  Eric Blake  <ebb9@byu.net>
51583
51584         Fix lseek on mingw.
51585         * modules/lseek: New module.
51586         * m4/lseek.m4: New file.
51587         * lib/lseek.c: New file.
51588         * modules/lseek-tests: New file.
51589         * tests/test-lseek.c: New file.
51590         * tests/test-lseek.sh: New file.
51591         * MODULES.html.sh: Document lseek module.
51592         * modules/fflush (Depends-on): Add lseek, fseeko.
51593         * modules/fseeko (Depends-on): Likewise.
51594         * modules/ftello (Depends-on): Likewise.
51595         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
51596         broken.
51597         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
51598         broken.
51599         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
51600         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
51601         * lib/ftello.c (rpl_ftello): Likewise.
51602         * tests/test-fseeko.c (main): Test this.
51603         * tests/test-fseeko.sh: Likewise.
51604         * tests/test-ftello.c (main): Likewise.
51605         * tests/test-ftello.sh: Likewise.
51606         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
51607         implies replacing fseek.
51608         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
51609         HAVE_FTELLO.
51610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
51611         * modules/unistd (Makefile.am): Likewise.
51612         * lib/unistd_.h (lseek): Declare a replacement.
51613         * doc/functions/lseek.texi (lseek): Document this fix.
51614         * doc/functions/fseek.texi (fseek): Likewise.
51615         * doc/functions/ftell.texi (ftell): Likewise.
51616
51617 2007-05-24  Bruno Haible  <bruno@clisp.org>
51618
51619         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
51620         in the printed representation of a NaN.
51621         * tests/test-vasprintf-posix.c (test_function): Likewise.
51622         * tests/test-snprintf-posix.h (test_function): Likewise.
51623         * tests/test-sprintf-posix.h (test_function): Likewise.
51624         Reported by Eric Blake.
51625
51626 2007-05-23  Eric Blake  <ebb9@byu.net>
51627
51628         Fix fseeko/ftello on cygwin 1.5.24.
51629         * doc/functions/fseeko.texi (fseeko): Document the fix.
51630         * doc/functions/ftello.texi (ftello): Document the fix.
51631         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
51632         * doc/functions/stdout.text (stdout): New file.
51633         * doc/functions/stderr.text (stderr): New file.
51634         * doc/gnulib.texi (Function Substitutes): Use new files.
51635         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
51636         prior to 1.7.0.
51637         * tests/test-ftello.c (main): Likewise for ftello.
51638         * tests/test-fseeko.sh: New file.
51639         * tests/test-ftello.sh: New file.
51640         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
51641         with seekable stdin.
51642         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
51643         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
51644         (gl_REPLACE_FSEEKO): New macro.
51645         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
51646         * modules/fseeko (Files): Distribute fseeko.c.
51647         * modules/ftello (Files): Distribute ftello.c.
51648         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
51649         mode.
51650         * lib/ftello.c (rpl_ftello): New file.
51651         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
51652         fseeko, ftello.
51653         (gl_STDIN_LARGE_OFFSET): New macro.
51654         * modules/stdio (Makefile.am): Perform the replacement.
51655         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
51656
51657 2007-05-23  Bruno Haible  <bruno@clisp.org>
51658
51659         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
51660         GNULIB_POSIXCHECK is defined.
51661
51662 2007-05-21  Bruno Haible  <bruno@clisp.org>
51663
51664         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
51665         Check also the output for NaN arguments. When cross-compiling, guess
51666         no on IRIX.
51667         * lib/vasnprintf.c: Update comments.
51668         * tests/test-vasnprintf-posix.c (strisnan): New function.
51669         (test_function): Use it.
51670         * tests/test-vasprintf-posix.c (strisnan): New function.
51671         (test_function): Use it.
51672         * tests/test-snprintf-posix.h (strisnan): New function.
51673         (test_function): Use it.
51674         * tests/test-sprintf-posix.h (strisnan): New function.
51675         (test_function): Use it.
51676         Reported by Eric Blake.
51677
51678 2007-05-20  Bruno Haible  <bruno@clisp.org>
51679
51680         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
51681         numbers that fails on BeOS.
51682         * doc/functions/frexpl.texi: Update.
51683
51684 2007-05-20  Jim Meyering  <jim@meyering.net>
51685
51686         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
51687         forced upon us by glibc-2.6.
51688
51689 2007-05-20  Bruno Haible  <bruno@clisp.org>
51690
51691         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
51692         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
51693         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
51694         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
51695         NEED_PRINTF_INFINITE.
51696         (is_infinitel): New function.
51697         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
51698         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
51699         gl_PREREQ_VASNPRINTF_INFINITE.
51700         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
51701         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51702         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
51703         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
51704         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
51705         gl_PREREQ_VASNPRINTF_INFINITE.
51706         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51707         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51708         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51709         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51710         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51711         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51712         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51713         * doc/functions/fprintf.texi: Update.
51714         * doc/functions/printf.texi: Update.
51715         * doc/functions/snprintf.texi: Update.
51716         * doc/functions/sprintf.texi: Update.
51717         * doc/functions/vfprintf.texi: Update.
51718         * doc/functions/vprintf.texi: Update.
51719         * doc/functions/vsnprintf.texi: Update.
51720         * doc/functions/vsprintf.texi: Update.
51721
51722 2007-05-20  Bruno Haible  <bruno@clisp.org>
51723
51724         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
51725         was not found in libc.
51726         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
51727
51728 2007-05-20  Bruno Haible  <bruno@clisp.org>
51729
51730         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
51731         printed as "-nan" instead of "nan".
51732         * tests/test-vasprintf-posix.c (test_function): Likewise.
51733         * tests/test-snprintf-posix.h (test_function): Likewise.
51734         * tests/test-sprintf-posix.h (test_function): Likewise.
51735         Needed for HP-UX 11.
51736
51737 2007-05-20  Jim Meyering  <jim@meyering.net>
51738
51739         Fix buggy test for the fchownat-deref bug.
51740         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
51741         symlink required for the run-test.  Without it, this test would
51742         always declare that fchownat doesn't work, and client code would
51743         unnecessarily use the replacement function with fixed libc.
51744         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
51745         Reported by Greg Schafer.
51746
51747 2007-05-19  Bruno Haible  <bruno@clisp.org>
51748
51749         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
51750         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
51751         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
51752         Needed for IRIX 6.5 and Solaris 2.5.1.
51753
51754 2007-05-19  Bruno Haible  <bruno@clisp.org>
51755
51756         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
51757         (test_function): Skip tests involving -0.0 on platforms where
51758         -0.0 = 0.0.
51759         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
51760         (test_function): Skip tests involving -0.0 on platforms where
51761         -0.0 = 0.0.
51762         * tests/test-snprintf-posix.h (have_minus_zero): New function.
51763         (test_function): Skip tests involving -0.0 on platforms where
51764         -0.0 = 0.0.
51765         * tests/test-sprintf-posix.h (have_minus_zero): New function.
51766         (test_function): Skip tests involving -0.0 on platforms where
51767         -0.0 = 0.0.
51768         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
51769         tests.
51770         * tests/test-printf-posix.h (test_function): Likewise.
51771         * tests/test-printf-posix.output: Remove all -0.0 related results.
51772         Needed for IRIX 6.5.
51773
51774 2007-05-19  Bruno Haible  <bruno@clisp.org>
51775
51776         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
51777         printed as "nan0x7fffffff" instead of "nan".
51778         * tests/test-vasprintf-posix.c (test_function): Likewise.
51779         * tests/test-snprintf-posix.h (test_function): Likewise.
51780         * tests/test-sprintf-posix.h (test_function): Likewise.
51781         * tests/test-fprintf-posix.h (NaN): Remove macro.
51782         (test_function): Remove all NaN related tests.
51783         * tests/test-printf-posix.h (NaN): Remove macro.
51784         (test_function): Remove all NaN related tests.
51785         * tests/test-printf-posix.output: Remove all NaN related results.
51786         Needed for IRIX 6.5.
51787
51788 2007-05-19  Bruno Haible  <bruno@clisp.org>
51789
51790         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
51791         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
51792
51793 2007-05-19  Bruno Haible  <bruno@clisp.org>
51794
51795         * lib/float_.h: New file.
51796         * m4/float_h.m4: New file.
51797         * modules/float: New file.
51798         * modules/isnanl (Dependencies): Add float.
51799         * modules/isnanl-nolibm (Dependencies): Likewise.
51800         * modules/mathl (Dependencies): Likewise.
51801         * modules/printf-frexpl (Dependencies): Likewise.
51802         * modules/signbit (Dependencies): Likewise.
51803         * modules/vasnprintf (Dependencies): Likewise.
51804         * doc/headers/float.texi: Update.
51805
51806 2007-05-19  Jim Meyering  <jim@meyering.net>
51807
51808         * lib/utimens.c (gl_futimens): Rename from futimens,
51809         now that glibc-2.6 declares futimens.
51810         * lib/utimens.h: Likewise.
51811
51812 2007-05-19  Bruno Haible  <bruno@clisp.org>
51813
51814         Avoid test failures on mingw.
51815         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
51816         * tests/test-printf-posix.sh: Likewise.
51817         * tests/test-vfprintf-posix.sh: Likewise.
51818         * tests/test-vprintf-posix.sh: Likewise.
51819
51820 2007-05-19  Bruno Haible  <bruno@clisp.org>
51821
51822         Fix *printf result for NaN, Inf, -0.0 on mingw.
51823         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
51824         * lib/vasnprintf.c: Include math.h and isnan.h.
51825         (is_infinite_or_zero): New function.
51826         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
51827         values in the %f, %F, %e, %E, %g, %G directives.
51828         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
51829         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51830         gl_PRINTF_INFINITE and test its result. Invoke
51831         gl_PREREQ_VASNPRINTF_INFINITE.
51832         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51833         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51834         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51835         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51836         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51837         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51838         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51839         * doc/functions/fprintf.texi: Update.
51840         * doc/functions/printf.texi: Update.
51841         * doc/functions/snprintf.texi: Update.
51842         * doc/functions/sprintf.texi: Update.
51843         * doc/functions/vfprintf.texi: Update.
51844         * doc/functions/vprintf.texi: Update.
51845         * doc/functions/vsnprintf.texi: Update.
51846         * doc/functions/vsprintf.texi: Update.
51847
51848 2007-05-19  Bruno Haible  <bruno@clisp.org>
51849
51850         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
51851         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
51852         Instead of multiplying with 10^k, set extra_zeroes to k.
51853         (scale10_round_long_double): Remove function.
51854
51855 2007-05-18  Bruno Haible  <bruno@clisp.org>
51856
51857         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
51858         introduced on 2007-05-06.
51859
51860 2007-05-18  Bruno Haible  <bruno@clisp.org>
51861
51862         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
51863         %g directives.
51864         * tests/test-vasprintf-posix.c (test_function): Likewise.
51865         * tests/test-snprintf-posix.h (test_function): Likewise.
51866         * tests/test-sprintf-posix.h (test_function): Likewise.
51867
51868 2007-05-18  Bruno Haible  <bruno@clisp.org>
51869
51870         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
51871         (strmatch): New function.
51872         (test_function): Test the %f directive on numbers of various exponents.
51873         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
51874         (strmatch): New function.
51875         (test_function): Test the %f directive on numbers of various exponents.
51876         * tests/test-snprintf-posix.h (strmatch): New function.
51877         (test_function): Test the %f directive on numbers of various exponents.
51878         * tests/test-sprintf-posix.h (strmatch): New function.
51879         (test_function): Test the %f directive on numbers of various exponents.
51880         * tests/test-snprintf-posix.c (SIZEOF): New macro.
51881         * tests/test-sprintf-posix.c (SIZEOF): New macro.
51882         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
51883         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
51884
51885 2007-05-18  Bruno Haible  <bruno@clisp.org>
51886
51887         Add support for 'long double' number output.
51888         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
51889         * lib/vasnprintf.c: Include math.h and float+.h.
51890         (mp_limb_t): New type.
51891         (GMP_LIMB_BITS): New macro.
51892         (mp_twolimb_t): New type.
51893         (GMP_TWOLIMB_BITS): New macro.
51894         (mpn_t): New type.
51895         (multiply, divide, convert_to_decimal, decode_long_double,
51896         scale10_round_long_double, scale10_round_decimal_long_double,
51897         floorlog10l): New functions.
51898         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
51899         for the %f, %F, %e, %E, %g, %G directives.
51900         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
51901         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51902         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
51903         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
51904         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51905         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51906         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51907         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51908         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51909         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51910         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51911         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
51912         * modules/snprintf-posix (Depends-on): Likewise.
51913         * modules/sprintf-posix (Depends-on): Likewise.
51914         * modules/vasnprintf-posix (Depends-on): Likewise.
51915         * modules/vasprintf-posix (Depends-on): Likewise.
51916         * modules/vfprintf-posix (Depends-on): Likewise.
51917         * modules/vsnprintf-posix (Depends-on): Likewise.
51918         * modules/vsprintf-posix (Depends-on): Likewise.
51919         * modules/vasnprintf (Files): Add lib/float+.h.
51920         * doc/functions/fprintf.texi: Update.
51921         * doc/functions/printf.texi: Update.
51922         * doc/functions/snprintf.texi: Update.
51923         * doc/functions/sprintf.texi: Update.
51924         * doc/functions/vfprintf.texi: Update.
51925         * doc/functions/vprintf.texi: Update.
51926         * doc/functions/vsnprintf.texi: Update.
51927         * doc/functions/vsprintf.texi: Update.
51928
51929 2007-05-18  Bruno Haible  <bruno@clisp.org>
51930
51931         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
51932
51933 2007-05-18  Bruno Haible  <bruno@clisp.org>
51934
51935         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
51936         for printing 64-bit integers. Needed for mingw.
51937
51938 2007-05-18  Bruno Haible  <bruno@clisp.org>
51939
51940         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
51941         gl_FUNC_FREXPL_WORKS.
51942         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
51943
51944 2007-05-18  Bruno Haible  <bruno@clisp.org>
51945
51946         * modules/frexpl-nolibm-tests: New file.
51947
51948         * modules/frexpl-nolibm: New file.
51949         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
51950
51951 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51952
51953         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
51954         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
51955         GCC 4.2, which otherwise issues a lot of warnings.
51956         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
51957         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
51958         Likewise.
51959         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
51960         * modules/iconv_open (iconv.h): Likewise.
51961         * modules/locale (locale.h): Likewise.
51962         * modules/netinet_in (netinet/in.h): Likewise.
51963         * modules/sys_select (sys_select.h): Likewise.
51964         * modules/sys_socket (sys/socket.h): Likewise.
51965         * modules/sys_stat (sys/stat.h): Likewise.
51966         * modules/sysexits (sysexits.h): Likewise.
51967         * modules/unistd (unistd.h): Likewise.
51968
51969 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51970
51971         * modules/closein-tests (Makefile.am): Distribute
51972         `test-closein.sh'.
51973
51974 2007-05-17  Bruno Haible  <bruno@clisp.org>
51975
51976         * tests/test-printf-posix.output: Renamed from
51977         tests/test-fprintf-posix.out.
51978         * modules/fprintf-posix-tests: Update.
51979         * modules/printf-posix-tests: Update.
51980         * modules/vfprintf-posix-tests: Update.
51981         * modules/vprintf-posix-tests: Update.
51982         * tests/test-fprintf-posix.sh: Update.
51983         * tests/test-printf-posix.sh: Update.
51984         * tests/test-vfprintf-posix.sh: Update.
51985         * tests/test-vprintf-posix.sh: Update.
51986         Reported by Ralf Wildenhues.
51987
51988 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51989
51990         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
51991         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
51992         GCC 4.2, which otherwise issues a lot of warnings.
51993         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
51994         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
51995         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
51996         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
51997         it should no longer be needed.
51998         * lib/string_.h: Likewise.
51999         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
52000         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
52001         * modules/inttypes (inttypes.h): Likewise.
52002         * modules/math (math.h): Likewise.
52003         * modules/search (search.h): Likewise.
52004         * modules/signal (signal.h): Likewise.
52005         * modules/stdint (stdint.h): Likewise.
52006         * modules/stdio (stdio.h): Likewise.
52007         * modules/stdlib (stdlib.h): Likewise.
52008         * modules/string (string.h): Likewise.
52009         * modules/sys_time (sys/time.h): Likewise.
52010         * modules/time (time.h): Likewise.
52011         * modules/wchar (wchar.h): Likewise.
52012         * modules/wctype (wtype.h): Likewise.
52013
52014 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52015
52016         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
52017
52018 2007-05-13  Bruno Haible  <bruno@clisp.org>
52019
52020         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
52021         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52022         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
52023         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52024         (gl_PREREQ_STRTOK_R): Don't require it here.
52025
52026 2007-05-13  Bruno Haible  <bruno@clisp.org>
52027
52028         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
52029         when used in C++ mode.
52030
52031 2007-05-12  Bruno Haible  <bruno@clisp.org>
52032
52033         * lib/linebuffer.h: Tweak doc.
52034         * lib/linebuffer.c: Likewise.
52035
52036 2007-05-12  James Youngman  <jay@gnu.org>
52037
52038         * lib/linebuffer.c (readlinebuffer_delim): New function,
52039         like readlinebuffer, but use a caller-specified delimiter.
52040         (readlinebuffer): Just call readlinebuffer_delim with '\n'
52041         as the delimiter.
52042         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
52043
52044 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52045
52046         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
52047         * modules/openat (Files): Remove openat-die.c.
52048         (Depends-on): Add openat-die.
52049         * modules/openat-die: New module.
52050
52051 2007-05-06  Bruno Haible  <bruno@clisp.org>
52052
52053         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
52054         Update with info about Cygwin.
52055         * doc/functions/fprintf.texi: Update.
52056         * doc/functions/printf.texi: Update.
52057         * doc/functions/snprintf.texi: Update.
52058         * doc/functions/sprintf.texi: Update.
52059         * doc/functions/vfprintf.texi: Update.
52060         * doc/functions/vprintf.texi: Update.
52061         * doc/functions/vsnprintf.texi: Update.
52062         * doc/functions/vsprintf.texi: Update.
52063         Reported by Eric Blake.
52064
52065 2007-05-06  Bruno Haible  <bruno@clisp.org>
52066
52067         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
52068         padding ourselves for the floating-point directives.
52069         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
52070         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
52071         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52072         gl_PRINTF_FLAG_ZERO and test its result. Invoke
52073         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
52074         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52075         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52076         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52077         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52078         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52079         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52080         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52081         * tests/test-snprintf-posix.h (test_function): Also check the width
52082         and some flags in the %f directive.
52083         * tests/test-sprintf-posix.h (test_function): Likewise.
52084         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52085         * tests/test-vasprintf-posix.c (test_function): Likewise.
52086         * doc/functions/fprintf.texi: Update.
52087         * doc/functions/printf.texi: Update.
52088         * doc/functions/snprintf.texi: Update.
52089         * doc/functions/sprintf.texi: Update.
52090         * doc/functions/vfprintf.texi: Update.
52091         * doc/functions/vprintf.texi: Update.
52092         * doc/functions/vsnprintf.texi: Update.
52093         * doc/functions/vsprintf.texi: Update.
52094
52095 2007-05-06  Bruno Haible  <bruno@clisp.org>
52096
52097         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
52098         pass the ' flag character to sprintf or snprintf.
52099         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
52100         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
52101         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52102         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
52103         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
52104         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52105         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52106         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52107         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52108         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52109         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52110         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52111         * tests/test-snprintf-posix.h (test_function): Also check the grouping
52112         flag.
52113         * tests/test-sprintf-posix.h (test_function): Likewise.
52114         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52115         * tests/test-vasprintf-posix.c (test_function): Likewise.
52116         * doc/functions/fprintf.texi: Update.
52117         * doc/functions/printf.texi: Update.
52118         * doc/functions/snprintf.texi: Update.
52119         * doc/functions/sprintf.texi: Update.
52120         * doc/functions/vfprintf.texi: Update.
52121         * doc/functions/vprintf.texi: Update.
52122         * doc/functions/vsnprintf.texi: Update.
52123         * doc/functions/vsprintf.texi: Update.
52124
52125 2007-05-01  Bruno Haible  <bruno@clisp.org>
52126
52127         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
52128
52129 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
52130
52131         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
52132         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
52133
52134 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52135
52136         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
52137         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
52138         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
52139
52140 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
52141
52142         * lib/argp-help.c (struct hol_entry): New member `ord'.
52143         (HOL_ENTRY_PTRCMP): Use ord for comparison
52144         (hol_sort): Initialize ord.
52145
52146 2007-05-01  Bruno Haible  <bruno@clisp.org>
52147
52148         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
52149         Reported by Eric Blake.
52150         * doc/gnulib.texi (Function Substitutes): Update.
52151
52152 2007-05-01  Bruno Haible  <bruno@clisp.org>
52153
52154         * doc/functions.texi: Remove file, now redundant through
52155         doc/functions/*.texi.
52156
52157 2007-05-01  Bruno Haible  <bruno@clisp.org>
52158
52159         * modules/argp (Depends-on): Add sleep.
52160
52161 2007-05-01  Bruno Haible  <bruno@clisp.org>
52162
52163         * modules/sleep-tests: New file.
52164         * tests/test-sleep.c: New file.
52165
52166         * modules/sleep: New file.
52167         * lib/sleep.c: New file.
52168         * m4/sleep.m4: New file.
52169         * lib/unistd_.h (sleep): New declaration.
52170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
52171         HAVE_SLEEP.
52172         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
52173         * doc/functions/sleep.texi: Document the sleep module.
52174
52175 2007-05-01  Bruno Haible  <bruno@clisp.org>
52176
52177         * lib/sigprocmask.h: Remove file.
52178         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
52179         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
52180         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
52181         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
52182         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
52183         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
52184         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
52185         HAVE_SIGSET_T as a shell variable.
52186         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
52187         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
52188         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
52189         (Depends-on): Add signal. Remove verify.
52190         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
52191         (Include): Mention <signal.h> instead of sigprocmask.h.
52192         * NEWS: Mention the change.
52193         * lib/fatal-signal.c: Don't include sigprocmask.h.
52194
52195 2007-05-01  Bruno Haible  <bruno@clisp.org>
52196
52197         * modules/signal: New file.
52198         * lib/signal_.h: New file.
52199         * m4/signal_h.m4: New file.
52200
52201 2007-05-01  Bruno Haible  <bruno@clisp.org>
52202
52203         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
52204         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
52205         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
52206         HAVE_WCTYPE_CTMP_BUG into wctype.h.
52207
52208 2007-05-01  Bruno Haible  <bruno@clisp.org>
52209
52210         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
52211         configure time.
52212         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
52213         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
52214         * modules/sys_stat (Makefile.am): Substitute their values into
52215         sys/stat.h.
52216
52217 2007-05-01  Bruno Haible  <bruno@clisp.org>
52218
52219         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
52220         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
52221         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
52222
52223 2007-05-01  Bruno Haible  <bruno@clisp.org>
52224
52225         * doc/header/assert.texi: Undo last change: don't mention the gnulib
52226         'assert' module here.
52227
52228 2007-05-01  Bruno Haible  <bruno@clisp.org>
52229
52230         * doc/functions/*.texi: New files.
52231         * doc/functions/google-ranking.txt: New file.
52232         * doc/gnulib.texi (Function Substitutes): New chapter.
52233         (ctime, inet_ntoa): Remove sections.
52234         * doc/ctime.texi: Remove file.
52235         * doc/inet_ntoa.texi: Remove file.
52236         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
52237         dependencies.
52238         (%.info): New rule, specifying a --reference-limit.
52239
52240 2007-05-01  Bruno Haible  <bruno@clisp.org>
52241
52242         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
52243
52244 2007-05-01  Bruno Haible  <bruno@clisp.org>
52245
52246         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
52247         the portability of 'mkdir' to mingw systems.
52248
52249 2007-05-01  Bruno Haible  <bruno@clisp.org>
52250
52251         * doc/headers/google-ranking.txt: New file.
52252
52253 2007-04-30  Eric Blake  <ebb9@byu.net>
52254
52255         Prefer fseeko to fseek.
52256         * modules/getpass (Depends-on): Add fseeko.
52257         * lib/getpass.c (getpass): Use fseeko, not fseek.
52258
52259 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
52260
52261         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
52262         assumes the sorting is stable, while most qsort implementations
52263         are not.  Use argument addresses to ensure they never compare as
52264         equal.
52265
52266         * tests/test-argp-2.sh (usage-indent test): Fix output
52267         (func_compare): Restore diff options
52268         * tests/test-argp.c: Restore #include "progname.h"
52269
52270 2007-04-29  Bruno Haible  <bruno@clisp.org>
52271
52272         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
52273         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52274         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
52275         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52276         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
52277         (configure.ac): Define CHECK_SNPRINTF_POSIX.
52278         (TESTS, check_PROGRAMS): Add test-snprintf.
52279         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
52280         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
52281         (TESTS, check_PROGRAMS): Add test-vsnprintf.
52282         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
52283         assertions that fail on HP-UX, OSF/1, or IRIX.
52284         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
52285
52286 2007-04-29  Bruno Haible  <bruno@clisp.org>
52287
52288         * MODULES.html.sh (posix_functions): Remove 'contents'.
52289
52290 2007-04-29  Karl Berry  <karl@gnu.org>
52291
52292         * config/srclist.txt (gendocs_template_min): new entry.
52293
52294 2007-04-29  Bruno Haible  <bruno@clisp.org>
52295
52296         Work around fpurge bug on BSD systems.
52297         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
52298         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
52299         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
52300         fpurge to rpl_fpurge if the system already has this function.
52301         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
52302         the case where the system already has this function. Correct invariants
52303         on BSD systems.
52304         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
52305         BSD systems.
52306
52307 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52308
52309         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
52310         proposed by Sven Verdoolaege.
52311
52312         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
52313         options.
52314         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
52315         (usage and help tests): Update
52316
52317 2007-04-29  Bruno Haible  <bruno@clisp.org>
52318
52319         * tests/test-fflush.c (main): Use a file of size 17, not 10.
52320         Print more information in case of failure. Disable a test on BeOS.
52321
52322 2007-04-29  Bruno Haible  <bruno@clisp.org>
52323
52324         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
52325         This helps debugging on systems on which no gdb is available.
52326
52327 2007-04-29  Bruno Haible  <bruno@clisp.org>
52328
52329         * lib/freading.h: Improve comments.
52330         * lib/fwriting.h: Likewise.
52331         * tests/test-freading.c (main): Don't check freading immediately after
52332         repositioning. Needed for glibc.
52333
52334 2007-04-29  Bruno Haible  <bruno@clisp.org>
52335
52336         * lib/freading.c (freading): Trivial simplification.
52337
52338 2007-04-28  Bruno Haible  <bruno@clisp.org>
52339
52340         * tests/test-fwriting.c (main): Also test the interaction between
52341         fflush and fwriting.
52342         * modules/fwriting-tests (Depends-on): Add fflush.
52343
52344         * tests/test-freading.c (main): Also test the interaction between
52345         fflush and freading.
52346         * modules/freading-tests (Depends-on): Add fflush.
52347
52348 2007-04-28  Bruno Haible  <bruno@clisp.org>
52349
52350         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
52351         fseeko and ftello.
52352         Suggested by Eric Blake.
52353
52354 2007-04-28  Jim Meyering  <jim@meyering.net>
52355
52356         Avoid false-negative in gl_STDINT_H's C99 conformance test.
52357         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
52358         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
52359
52360 2007-04-27  Eric Blake  <ebb9@byu.net>
52361
52362         * doc/headers/assert.texi (assert.h): Document assert module use.
52363
52364 2007-04-27  Bruno Haible  <bruno@clisp.org>
52365
52366         * doc/headers/*.texi: New files.
52367         * doc/gnulib.texi (Header File Substitutes): New chapter.
52368         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
52369         dependencies.
52370         (standards.info ,standards.html, standards.dvi): Update dependencies.
52371         (mostlyclean, clean): New targets.
52372
52373 2007-04-27  Bruno Haible  <bruno@clisp.org>
52374
52375         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
52376         * modules/sysexits (Files, Makefile.am): Update.
52377
52378         * lib/sys_socket_.h: Renamed from lib/socket_.h.
52379         * modules/sys_socket (Files, Makefile.am): Update.
52380
52381         * lib/sys_stat_.h: Renamed from lib/stat_.h.
52382         * modules/sys_stat (Files, Makefile.am): Update.
52383
52384 2007-04-27  Eric Blake  <ebb9@byu.net>
52385
52386         * lib/freading.h: Improve comments.
52387         * lib/fwriting.h: Likewise.
52388         * lib/fflush.c: Likewise.
52389
52390         Fix closein for mingw.
52391         * modules/closein-tests: Add tests for closein.
52392         * tests/test-closein.c: New file.
52393         * tests/test-closein.sh: Likewise.
52394         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
52395         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
52396
52397 2007-04-27  Bruno Haible  <bruno@clisp.org>
52398
52399         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
52400         version is < 6.
52401         * lib/math_.h [__DECC]: Likewise.
52402         * lib/stdio_.h [__DECC]: Likewise.
52403         * lib/stdlib_.h [__DECC]: Likewise.
52404         * lib/string_.h [__DECC]: Likewise.
52405         * lib/time_.h [__DECC]: Likewise.
52406         * lib/wchar_.h [__DECC]: Likewise.
52407         * lib/wctype_.h [__DECC]: Likewise.
52408
52409 2007-04-27  Bruno Haible  <bruno@clisp.org>
52410
52411         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
52412
52413 2007-04-27  Bruno Haible  <bruno@clisp.org>
52414
52415         * lib/fflush.c: Add comments.
52416         * modules/fpurge-tests (Depends-on): Add fflush.
52417         * modules/freadable-tests (Depends-on): Likewise.
52418         * modules/fwritable-tests (Depends-on): Likewise.
52419
52420 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
52421
52422         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
52423         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
52424         Report by Bruno Haible <bruno@clisp.org>.
52425
52426 2007-04-26  Eric Blake  <ebb9@byu.net>
52427
52428         Fix fflush on mingw.
52429         * modules/fflush (Depends-on): Add freading.
52430         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
52431         but unread data.
52432
52433 2007-04-26  Eric Blake  <ebb9@byu.net>
52434         and Bruno Haible  <bruno@clisp.org>
52435
52436         Implement freading and fwriting.
52437         * lib/freading.c: New file.
52438         * lib/freading.h: Likewise.
52439         * m4/freading.m4: Likewise.
52440         * modules/freading: Likewise.
52441         * modules/freading-tests: Likewise.
52442         * tests/test-freading.c: Likewise.
52443         * lib/fwriting.c: New file.
52444         * lib/fwriting.h: Likewise.
52445         * m4/fwriting.m4: Likewise.
52446         * modules/fwriting: Likewise.
52447         * modules/fwriting-tests: Likewise.
52448         * tests/test-fwriting.c: Likewise.
52449         * MODULES.html.sh (File stream based Input/Output): Mention them.
52450
52451 2007-04-26  Bruno Haible  <bruno@clisp.org>
52452
52453         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
52454         'long' when we assume it.
52455         Suggested by Eric Blake.
52456
52457 2007-04-26  Bruno Haible  <bruno@clisp.org>
52458
52459         Ensure fseeko, ftello are declared on glibc systems.
52460         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
52461         * modules/fseeko (configure.ac-early): Likewise.
52462         * modules/ftello (configure.ac-early): Likewise.
52463         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
52464         AC_FUNC_FSEEKO for this.
52465         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
52466         (gl_CHECK_FSEEKO): Remove macro.
52467
52468 2007-04-26  Bruno Haible  <bruno@clisp.org>
52469
52470         * tests/test-fflush.c (main): Also check the ftell result after
52471         fflush and fseek/fseeko.
52472         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
52473         file descriptor position cache in the stream.
52474         * lib/fseeko.c (rpl_fseeko): Likewise.
52475
52476 2007-04-26  Bruno Haible  <bruno@clisp.org>
52477
52478         * modules/fflush-tests (Depends-on): Add fseeko.
52479
52480 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
52481             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52482
52483         * lib/argz_.h: ensure error_t definition is obtained in same
52484         mechanism system argz.h would have.
52485         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
52486         argz facilities are known bad.  Err on the side of caution if
52487         cross-compiling.
52488
52489 2007-04-25  Eric Blake  <ebb9@byu.net>
52490
52491         * lib/fpurge.c (includes): Use stdlib.h for free.
52492         * tests/test-fflush.c (main): Also test fflush-fseeko.
52493
52494 2007-04-25  Bruno Haible  <bruno@clisp.org>
52495
52496         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
52497         * lib/fseeko.c: New file.
52498         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
52499         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
52500         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
52501         gl_FUNC_FSEEKO.
52502         (gl_FUNC_FSEEKO): Invoke it.
52503         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
52504         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
52505         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
52506
52507 2007-04-25  Bruno Haible  <bruno@clisp.org>
52508
52509         * modules/fflush (Depends-on): Add ftello.
52510
52511 2007-04-25  Bruno Haible  <bruno@clisp.org>
52512
52513         * modules/ftello-tests: New file.
52514         * tests/test-ftello.c: New file.
52515
52516         * modules/ftello: New file.
52517         * m4/ftello.m4: New file.
52518         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
52519         HAVE_FTELLO.
52520         * lib/stdio_.h (ftello): New declaration.
52521         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
52522         HAVE_FTELLO.
52523
52524 2007-04-25  Bruno Haible  <bruno@clisp.org>
52525
52526         * modules/fseeko-tests: New file.
52527         * tests/test-fseeko.c: New file.
52528
52529         * modules/fseeko: New file.
52530         * m4/fseeko.m4: New file.
52531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
52532         HAVE_FSEEKO.
52533         * lib/stdio_.h (fseeko): New declaration.
52534         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
52535         HAVE_FSEEKO.
52536
52537 2007-04-25  Bruno Haible  <bruno@clisp.org>
52538
52539         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
52540
52541 2007-04-25  Bruno Haible  <bruno@clisp.org>
52542
52543         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
52544         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
52545         * tests/test-unistd.c: Likewise.
52546         * tests/test-fcntl.c: Likewise.
52547
52548 2007-04-23  Eric Blake  <ebb9@byu.net>
52549
52550         * lib/fflush.c: Fix missing include.
52551         Reported by Bruno Haible.
52552
52553 2007-04-23  Bruno Haible  <bruno@clisp.org>
52554
52555         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
52556         Reported by Eric Blake.
52557
52558 2007-04-23  Bruno Haible  <bruno@clisp.org>
52559
52560         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
52561
52562 2007-04-23  Bruno Haible  <bruno@clisp.org>
52563
52564         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
52565
52566 2007-04-23  Bruno Haible  <bruno@clisp.org>
52567
52568         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
52569         Needed on HP-UX 11.
52570
52571 2007-04-16  Eric Blake  <ebb9@byu.net>
52572
52573         Make fflush rely on fpurge.
52574         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
52575         open coding all variants.
52576         * modules/fflush (Depends-on): Add fpurge and unistd.
52577         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
52578         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
52579
52580         Fix --with-tests compilation on cygwin.
52581         * modules/argmatch-tests (Makefile.am): List gnulib library first
52582         in LDADD.
52583         * modules/argp-tests (Makefile.am): Likewise.
52584         * modules/array-list-tests (Makefile.am): Likewise.
52585         * modules/array-oset-tests (Makefile.am): Likewise.
52586         * modules/avltree-list-tests (Makefile.am): Likewise.
52587         * modules/avltree-oset-tests (Makefile.am): Likewise.
52588         * modules/avltreehash-list-tests (Makefile.am): Likewise.
52589         * modules/carray-list-tests (Makefile.am): Likewise.
52590         * modules/dirname-tests (Makefile.am): Likewise.
52591         * modules/frexp-tests (Makefile.am): Likewise.
52592         * modules/isnanl-tests (Makefile.am): Likewise.
52593         * modules/linked-list-tests (Makefile.am): Likewise.
52594         * modules/linkedhash-list-tests (Makefile.am): Likewise.
52595         * modules/lock-tests (Makefile.am): Likewise.
52596         * modules/rbtree-list-tests (Makefile.am): Likewise.
52597         * modules/rbtree-oset-tests (Makefile.am): Likewise.
52598         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
52599         * modules/tls-tests (Makefile.am): Likewise.
52600         * modules/tsearch-tests (Makefile.am): Likewise.
52601         * modules/xvasprintf-tests (Makefile.am): Likewise.
52602
52603         Fix fpurge for cygwin.
52604         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
52605         value.
52606         * modules/fpurge-tests (Depends-on): Clean up trash.
52607
52608 2007-04-16  Simon Josefsson  <simon@josefsson.org>
52609
52610         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
52611
52612         * m4/autobuild.m4: Re-indent.
52613
52614 2007-04-13  Bruno Haible  <bruno@clisp.org>
52615
52616         * modules/fpurge-tests: New file.
52617         * tests/test-fpurge.c: New file.
52618
52619         * modules/fpurge: New file.
52620         * lib/fpurge.h: New file.
52621         * lib/fpurge.c: New file.
52622         * m4/fpurge.m4: New file.
52623
52624 2007-04-13  Bruno Haible  <bruno@clisp.org>
52625
52626         * modules/fbufmode-tests: New file.
52627         * tests/test-fbufmode.c: New file.
52628
52629         * modules/fbufmode: New file.
52630         * lib/fbufmode.h: New file.
52631         * lib/fbufmode.c: New file.
52632         * m4/fbufmode.m4: New file.
52633
52634 2007-04-13  Bruno Haible  <bruno@clisp.org>
52635
52636         * modules/fwritable-tests: New file.
52637         * tests/test-fwritable.c: New file.
52638
52639         * modules/fwritable: New file.
52640         * lib/fwritable.h: New file.
52641         * lib/fwritable.c: New file.
52642         * m4/fwritable.m4: New file.
52643
52644 2007-04-13  Bruno Haible  <bruno@clisp.org>
52645
52646         * modules/freadable-tests: New file.
52647         * tests/test-freadable.c: New file.
52648
52649         * modules/freadable: New file.
52650         * lib/freadable.h: New file.
52651         * lib/freadable.c: New file.
52652         * m4/freadable.m4: New file.
52653
52654 2007-04-13  Bruno Haible  <bruno@clisp.org>
52655
52656         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
52657         MOSTLYCLEANFILES.
52658
52659 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52660
52661         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
52662         gzip bootstrap.conf to avoid dragging in i18n machinery.
52663         (gnulib_tool_option): Use it.
52664
52665 2007-04-13  Bruno Haible  <bruno@clisp.org>
52666
52667         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
52668         %F directives.
52669         * tests/test-vasprintf-posix.c (test_function): Likewise.
52670         * tests/test-snprintf-posix.h (test_function): Likewise.
52671         * tests/test-sprintf-posix.h (test_function): Likewise.
52672         * tests/test-fprintf-posix.h (test_function): Likewise.
52673         * tests/test-printf-posix.h (test_function): Likewise.
52674         * tests/test-fprintf-posix.out: Likewise.
52675
52676 2007-04-13  Bruno Haible  <bruno@clisp.org>
52677
52678         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
52679         * modules/tls-tests (configure.ac): Likewise.
52680         Reported by Arto C. Nirkko <anirkko@insel.ch>.
52681
52682 2007-04-13  Bruno Haible  <bruno@clisp.org>
52683
52684         * lib/tls.c (glthread_tls_get): Fix return type.
52685         Patch by Arto C. Nirkko <anirkko@insel.ch>.
52686
52687 2007-04-12  Eric Blake  <ebb9@byu.net>
52688
52689         * modules/gettime (Depends-on): Remove gettime.
52690         Reported by Dmitry V. Levin.
52691
52692 2007-04-12  Bruno Haible  <bruno@clisp.org>
52693
52694         * modules/fflush (Include): Mention <stdio.h>.
52695         * modules/strtoimax (Include): Mention <inttypes.h>.
52696         * modules/strtoumax (Include): Likewise.
52697
52698 2007-04-12  Eric Blake  <ebb9@byu.net>
52699
52700         * .cvsignore: New file.
52701         * .gitignore: Likewise.
52702
52703 2007-04-12  Bruno Haible  <bruno@clisp.org>
52704
52705         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
52706         not before, since $(LDADD) often contains libgnu.a.
52707         * modules/striconv-tests (test_striconv_LDADD): Likewise.
52708         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
52709         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
52710         Needed on Cygwin.
52711
52712 2007-04-12  Eric Blake  <ebb9@byu.net>
52713
52714         Work around glibc's failure to flush stdin on fclose.
52715         * lib/closein.c (close_stdin): Flush stdin before closing.
52716
52717         Work around glibc's failure to reset seekable stdin on exit.
52718         * modules/closein: New module.
52719         * lib/closein.c: New file.
52720         * lib/closein.h: Likewise.
52721         * m4/closein.m4: Likewise.
52722         * MODULES.html.sh (File stream based Input/Output): Document it.
52723
52724 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52725
52726         * gnulib-tool: Rename generated 'autobuild' script to
52727         'do-autobuild' in --create-megatestdir output.
52728
52729         * doc/gnulib.texi (Build robot for gnulib): Fix.
52730
52731 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52732
52733         * modules/sysexits (Depends-on): Add absolute-header.
52734
52735 2007-04-12  Eric Blake  <ebb9@byu.net>
52736
52737         No need to preserve errno on success.
52738         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
52739         Reported by Bruno Haible.
52740
52741 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52742
52743         * MODULES.html.sh (Support for maintaining and releasing
52744         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
52745
52746 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52747
52748         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
52749
52750 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52751
52752         * modules/autobuild: New module.
52753
52754         * m4/autobuild.m4: New file.
52755
52756 2007-04-11  Bruno Haible  <bruno@clisp.org>
52757
52758         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
52759         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
52760         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
52761         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
52762         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52763         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52764         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52765         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52766         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52767         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52768         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
52769         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52770         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52771         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
52772         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52773         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52774         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
52775         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52776         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52777         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
52778         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52779         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52780         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
52781         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52782         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52783         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
52784         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52785         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52786         Reported by Eric Blake.
52787
52788 2007-04-11  Bruno Haible  <bruno@clisp.org>
52789
52790         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
52791
52792 2007-04-10  Bruno Haible  <bruno@clisp.org>
52793
52794         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
52795         for NaN and Infinity. Needed on FreeBSD 6.1.
52796         * tests/test-vasnprintf-posix.c (test_function): Undo last change
52797         regarding results for "%010a" of Infinity and NaN.
52798         * tests/test-vasprintf-posix.c (test_function): Likewise.
52799         * tests/test-snprintf-posix.h (test_function): Likewise.
52800         * tests/test-sprintf-posix.h (test_function): Likewise.
52801         * tests/test-fprintf-posix.h (test_function): Likewise.
52802         * tests/test-printf-posix.h (test_function): Likewise.
52803         * tests/test-fprintf-posix.out: Likewise.
52804
52805 2007-04-10  Bruno Haible  <bruno@clisp.org>
52806
52807         * modules/locale-tests: New file.
52808         * tests/test-locale.c: New file.
52809
52810         * modules/locale: New file.
52811         * lib/locale_.h: New file.
52812         * m4/locale_h.m4: New file.
52813
52814 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
52815             Bruno Haible  <bruno@clisp.org>
52816
52817         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
52818         be determined, test for availability of the copysignf, copysign,
52819         copysignl functions.
52820         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
52821         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
52822         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
52823
52824 2007-04-09  Eric Blake  <ebb9@byu.net>
52825
52826         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
52827         * modules/stdio (Makefile.am): Support fflush.
52828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52829         * modules/fflush: New file.
52830         * lib/fflush.c: Likewise.
52831         * m4/fflush.m4: Likewise.
52832         * modules/fflush-tests: New test.
52833         * tests/test-fflush.c: Likewise.
52834         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
52835
52836 2007-04-06  Bruno Haible  <bruno@clisp.org>
52837
52838         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
52839         (VASNPRINTF): Use signbit for faster determination whether to print a
52840         minus sign.
52841         * modules/vasnprintf (Files): Remove lib/float+.h.
52842         * modules/fprintf-posix (Depends-on): Add signbit.
52843         * modules/snprintf-posix (Depends-on): Likewise.
52844         * modules/sprintf-posix (Depends-on): Likewise.
52845         * modules/vasnprintf-posix (Depends-on): Likewise.
52846         * modules/vasprintf-posix (Depends-on): Likewise.
52847         * modules/vfprintf-posix (Depends-on): Likewise.
52848         * modules/vsnprintf-posix (Depends-on): Likewise.
52849         * modules/vsprintf-posix (Depends-on): Likewise.
52850
52851 2007-04-06  Bruno Haible  <bruno@clisp.org>
52852
52853         * tests/test-frexp.c (main): Test also the sign bit of zero results.
52854         * tests/test-frexpl.c (main): Likewise.
52855         * tests/test-ldexpl.c (main): Likewise.
52856         * modules/frexp-tests (Depends-on): Add signbit.
52857         * modules/frexpl-tests (Depdends-on): Likewise.
52858         * modules/ldexpl-tests (Depdends-on): Likewise.
52859
52860 2007-04-06  Bruno Haible  <bruno@clisp.org>
52861
52862         * modules/signbit-tests: New file.
52863         * tests/test-signbit.c: New file.
52864
52865         * modules/signbit: New file.
52866         * lib/signbitf.c: New file.
52867         * lib/signbitd.c: New file.
52868         * lib/signbitl.c: New file.
52869         * m4/signbit.m4: New file.
52870         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
52871         (signbit): New macro.
52872         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
52873         REPLACE_SIGNBIT.
52874         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
52875         REPLACE_FREXPL into math.h.
52876
52877 2007-04-06  Bruno Haible  <bruno@clisp.org>
52878
52879         * modules/isnanf-nolibm-tests: New file.
52880         * tests/test-isnanf.c: New file.
52881
52882         * modules/isnanf-nolibm: New file.
52883         * lib/isnanf.h: New file.
52884         * lib/isnanf.c: New file.
52885         * lib/isnan.c: Consider the USE_FLOAT macro.
52886         * m4/isnanf.m4: New file.
52887
52888 2007-04-06  Bruno Haible  <bruno@clisp.org>
52889
52890         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
52891         (Link): New section.
52892
52893         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
52894
52895 2007-04-06  Bruno Haible  <bruno@clisp.org>
52896
52897         Assume the 'long double' type.
52898         * m4/longdouble.m4: Remove file.
52899         * config/srclist.txt: Don't mention longdouble.m4.
52900         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
52901         * lib/float+.h: Likewise.
52902         * lib/frexp.c: Likewise.
52903         * lib/printf-args.h: Likewise.
52904         * lib/printf-args.c: Likewise.
52905         * lib/printf-frexp.c: Likewise.
52906         * lib/printf-parse.c: Likewise.
52907         * lib/vasnprintf.c: Likewise.
52908         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
52909         * m4/intl.m4: Likewise.
52910         * m4/isnanl.m4: Likewise.
52911         * m4/printf.m4: Likewise.
52912         * m4/printf-frexpl.m4: Likewise.
52913         * m4/vasnprintf.m4: Likewise.
52914         * modules/allocsa (Files): Remove m4/longdouble.m4.
52915         * modules/gettext (Files): Likewise.
52916         * modules/relocatable-prog-wrapper (Files): Likewise.
52917         * modules/vasnprintf (Files): Likewise.
52918         * modules/isnanl (Files): Likewise.
52919         (Include): Simplify.
52920         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
52921         (Include): Simplify.
52922         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
52923         (Include): Simplify.
52924         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
52925         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52926         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
52927         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52928         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
52929         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52930         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
52931         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52932         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
52933         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52934         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
52935         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52936         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
52937         * tests/test-isnanl.c: Likewise.
52938         * tests/test-snprintf-posix.h: Likewise.
52939         * tests/test-sprintf-posix.h: Likewise.
52940         * tests/test-vasnprintf-posix.c: Likewise.
52941         * tests/test-vasnprintf-posix2.c: Likewise.
52942         * tests/test-vasprintf-posix.c: Likewise.
52943
52944 2007-04-06  Bruno Haible  <bruno@clisp.org>
52945
52946         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
52947         * lib/math_.h [__DECC]: Include the overridden include file through
52948         #include_next, outside the double-inclusion guard.
52949         * lib/stdio_.h [__DECC]: Likewise.
52950         * lib/stdlib_.h [__DECC]: Likewise.
52951         * lib/string_.h [__DECC]: Likewise.
52952         * lib/time_.h [__DECC]: Likewise.
52953         * lib/wchar_.h [__DECC]: Likewise.
52954         * lib/wctype_.h [__DECC]: Likewise.
52955         * lib/inttypes_.h [__DECC]: Likewise.
52956         Reported by Albert Chin <china@thewrittenword.com> in
52957         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
52958
52959 2007-04-04  Eric Blake  <ebb9@byu.net>
52960
52961         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
52962         1.5.x.
52963
52964 2007-04-04  Bruno Haible  <bruno@clisp.org>
52965
52966         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
52967         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
52968
52969 2007-04-04  Bruno Haible  <bruno@clisp.org>
52970
52971         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
52972         results for "%010a" of Infinity and NaN.
52973         * tests/test-vasprintf-posix.c (test_function): Likewise.
52974         * tests/test-snprintf-posix.h (test_function): Likewise.
52975         * tests/test-sprintf-posix.h (test_function): Likewise.
52976         * tests/test-fprintf-posix.h (test_function): Remove these tests.
52977         * tests/test-printf-posix.h (test_function): Likewise.
52978         * tests/test-fprintf-posix.out: Update.
52979         Needed for FreeBSD 6.1.
52980
52981 2007-04-04  Bruno Haible  <bruno@clisp.org>
52982
52983         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
52984         directly used by the gnulib modules nor by gnulib-tool.
52985
52986 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
52987
52988         * DEPENDENCIES: Give overall description of version dependency
52989         desirability.  Use more-typical names for apps.
52990         Add shell, coreutils, diffutils, grep, tar, gzip.
52991
52992 2007-04-04  Simon Josefsson  <simon@josefsson.org>
52993
52994         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
52995
52996 2007-04-04  Karl Berry  <karl@gnu.org>
52997
52998         * MODULES.html.sh (func_module): missing '.
52999
53000 2007-04-03  Bruno Haible  <bruno@clisp.org>
53001
53002         * modules/argmatch-tests (Makefile.am): New variable
53003         test_argmatch_LDADD.
53004         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
53005         * modules/array-list-tests (Makefile.am): New variable
53006         test_array_list_LDADD.
53007         * modules/array-oset-tests (Makefile.am): New variable
53008         test_array_oset_LDADD.
53009         * modules/avltree-list-tests (Makefile.am): New variable
53010         test_avltree_list_LDADD.
53011         * modules/avltree-oset-tests (Makefile.am): New variable
53012         test_avltree_oset_LDADD.
53013         * modules/avltreehash-list-tests (Makefile.am): New variable
53014         test_avltreehash_list_LDADD.
53015         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
53016         test_canonicalize_lgpl_LDADD.
53017         * modules/carray-list-tests (Makefile.am): New variable
53018         test_carray_list_LDADD.
53019         * modules/dirname-tests (Makefile.am): New variable
53020         test_dirname_LDADD.
53021         * modules/linked-list-tests (Makefile.am): New variable
53022         test_linked_list_LDADD.
53023         * modules/linkedhash-list-tests (Makefile.am): New variable
53024         test_linkedhash_list_LDADD.
53025         * modules/rbtree-list-tests (Makefile.am): New variable
53026         test_rbtree_list_LDADD.
53027         * modules/rbtree-oset-tests (Makefile.am): New variable
53028         test_rbtree_oset_LDADD.
53029         * modules/rbtreehash-list-tests (Makefile.am): New variable
53030         test_rbtreehash_list_LDADD.
53031         * modules/xvasprintf-tests (Makefile.am): New variable
53032         test_xvasprintf_LDADD.
53033         Reported by Eric Blake.
53034
53035 2007-04-03  Eric Blake  <ebb9@byu.net>
53036
53037         * DEPENDENCIES: Weaken m4 requirements.
53038
53039 2007-04-03  Bruno Haible  <bruno@clisp.org>
53040
53041         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
53042         * modules/isnanl-tests (configure.ac): Likewise.
53043
53044 2007-04-03  Ben Pfaff  <blp@gnu.org>
53045
53046         * modules/iconv_open: Add $(srcdir)/ to source directory
53047         references in Makefile fragments that call gperf, to fix VPATH
53048         builds.
53049
53050 2007-04-03  Bruno Haible  <bruno@clisp.org>
53051
53052         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
53053         * lib/ldexpl.c: Undo last change.
53054
53055 2007-04-03  Bruno Haible  <bruno@clisp.org>
53056
53057         * modules/printf-frexpl (Depends-on): Undo last change.
53058         (Files): Add m4/ldexpl.m4.
53059
53060 2007-04-03  Bruno Haible  <bruno@clisp.org>
53061
53062         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
53063         * modules/isnanl (Link): New section.
53064
53065         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
53066         * modules/frexp (Link): New section.
53067
53068         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
53069         * modules/frexpl (Link): New section.
53070
53071         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
53072         * modules/ldexpl (Link): New section.
53073
53074 2007-04-03  Bruno Haible  <bruno@clisp.org>
53075
53076         * modules/TEMPLATE-EXTENDED: New file.
53077         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
53078
53079 2007-04-03  Bruno Haible  <bruno@clisp.org>
53080
53081         * DEPENDENCIES: New file.
53082         Suggested by Simon Josefsson.
53083
53084 2007-04-03  Bruno Haible  <bruno@clisp.org>
53085
53086         * doc/gnulib.texi: Escape @.
53087
53088 2007-04-03  James Youngman  <jay@gnu.org>
53089         and Paul Eggert  <eggert@cs.ucla.edu>
53090
53091         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
53092         birthtime on all systems that have birthtime, not just those which
53093         use st_birthtimensec rather than st_birthtim.  Putting zero in
53094         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
53095         that the birth time is not available for files on an NFS mount.
53096
53097 2007-04-03  Simon Josefsson  <simon@josefsson.org>
53098
53099         * modules/memxor: Move back from crypto/, suggested by Bruno.
53100         * modules/crypto/hmac-sha1: Fix memxor dependency.
53101
53102         * modules/crypto/gc: Moved from ../.
53103
53104 2007-04-02  Eric Blake  <ebb9@byu.net>
53105
53106         * lib/ldexpl.c (includes): Avoid libm.
53107
53108         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
53109
53110 2007-04-02  Bruno Haible  <bruno@clisp.org>
53111
53112         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
53113         on IRIX.
53114
53115 2007-04-02  Bruno Haible  <bruno@clisp.org>
53116
53117         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
53118         x86 or x86_64 platforms running MacOS X.
53119         Reported by Ryan Schmidt <@ryandesign.com>.
53120
53121 2007-04-02  Bruno Haible  <bruno@clisp.org>
53122
53123         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
53124         i386.
53125
53126 2007-04-01  Simon Josefsson  <simon@josefsson.org>
53127
53128         * modules/crypto/arcfour: Moved from ../.
53129         * modules/crypto/arcfour-tests: Moved from ../.
53130         * modules/crypto/arctwo: Moved from ../.
53131         * modules/crypto/arctwo-tests: Moved from ../.
53132         * modules/crypto/des: Moved from ../.
53133         * modules/crypto/des-tests: Moved from ../.
53134         * modules/crypto/gc-arcfour: Moved from ../.
53135         * modules/crypto/gc-arcfour-tests: Moved from ../.
53136         * modules/crypto/gc-arctwo: Moved from ../.
53137         * modules/crypto/gc-arctwo-tests: Moved from ../.
53138         * modules/crypto/gc-des: Moved from ../.
53139         * modules/crypto/gc-des-tests: Moved from ../.
53140         * modules/crypto/gc-hmac-md5: Moved from ../.
53141         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
53142         * modules/crypto/gc-hmac-sha1: Moved from ../.
53143         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
53144         * modules/crypto/gc-md2: Moved from ../.
53145         * modules/crypto/gc-md2-tests: Moved from ../.
53146         * modules/crypto/gc-md4: Moved from ../.
53147         * modules/crypto/gc-md4-tests: Moved from ../.
53148         * modules/crypto/gc-md5: Moved from ../.
53149         * modules/crypto/gc-md5-tests: Moved from ../.
53150         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
53151         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
53152         * modules/crypto/gc-random: Moved from ../.
53153         * modules/crypto/gc-rijndael: Moved from ../.
53154         * modules/crypto/gc-rijndael-tests: Moved from ../.
53155         * modules/crypto/gc-sha1: Moved from ../.
53156         * modules/crypto/gc-sha1-tests: Moved from ../.
53157         * modules/crypto/gc-tests: Moved from ../.
53158         * modules/crypto/hmac-md5: Moved from ../.
53159         * modules/crypto/hmac-md5-tests: Moved from ../.
53160         * modules/crypto/hmac-sha1: Moved from ../.
53161         * modules/crypto/hmac-sha1-tests: Moved from ../.
53162         * modules/crypto/md2: Moved from ../.
53163         * modules/crypto/md2-tests: Moved from ../.
53164         * modules/crypto/md4: Moved from ../.
53165         * modules/crypto/md4-tests: Moved from ../.
53166         * modules/crypto/md5: Moved from ../.
53167         * modules/crypto/md5-tests: Moved from ../.
53168         * modules/crypto/memxor: Moved from ../.
53169         * modules/crypto/rijndael: Moved from ../.
53170         * modules/crypto/rijndael-tests: Moved from ../.
53171         * modules/crypto/sha1: Moved from ../.
53172
53173 2007-03-30  James Youngman  <jay@gnu.org>
53174
53175         * tests/test-stat-time.c (prepare_test): use chmod() rather than
53176         rename() to change the ctime of a file (because ctime is unaffected
53177         by rename on jfs2 on AIX 5.1).
53178         (main): Start by doing cleanup, in case a previous run failed leaving
53179         test files behind.
53180
53181 2007-03-31  Bruno Haible  <bruno@clisp.org>
53182
53183         Support old proprietary implementations of iconv.
53184         * modules/iconv_open: New file.
53185         * lib/iconv_.h: New file.
53186         * m4/iconv_h.m4: New file.
53187         * lib/iconv_open.c: New file.
53188         * lib/iconv_open-aix.gperf: New file.
53189         * lib/iconv_open-hpux.gperf: New file.
53190         * lib/iconv_open-irix.gperf: New file.
53191         * lib/iconv_open-osf.gperf: New file.
53192         * m4/iconv_open.m4: New file.
53193         * modules/linebreak (Depends-on): Add iconv_open.
53194         * modules/striconv (Depends-on): Likewise.
53195         * modules/striconveh (Depends-on): Likewise.
53196         * modules/unicodeio (Depends-on): Likewise.
53197         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
53198         (iconv_t)(-1).
53199         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
53200         conversion if cd is (iconv_t)(-1).
53201         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
53202         is not possible.
53203
53204 2007-03-31  Bruno Haible  <bruno@clisp.org>
53205
53206         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53207         work on Solaris either. Protect also second use of "autodetect_jp".
53208
53209 2007-03-31  Bruno Haible  <bruno@clisp.org>
53210
53211         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
53212         the function is not present.
53213
53214 2007-03-31  Bruno Haible  <bruno@clisp.org>
53215
53216         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
53217         the function is not present.
53218
53219 2007-03-31  Bruno Haible  <bruno@clisp.org>
53220
53221         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
53222         a bug in HP-UX iconv_open().
53223
53224 2007-03-31  Bruno Haible  <bruno@clisp.org>
53225
53226         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
53227         (Mathematics <math.h>): New section, add fpieee.
53228         (Input/output <stdio.h>): Add fseterr.
53229         (Mathematics <math.h>): New section, add printf-frexp.
53230         (Container data structures): Add sublist.
53231         (Core language properties): Add fpucw, inline.
53232         (Functions for greatest-width integer types <inttypes.h>): Add
53233         imaxabs, imaxdiv, inttypes.
53234         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
53235         isnanl-nolibm, ldexp.
53236         (Mathematics <math.h>): New section, add printf-frexpl.
53237         (Support for systems lacking POSIX:2001): Add fprintf-posix,
53238         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
53239         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
53240         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
53241         (Unicode string functions): Add unistr/u*-mbtoucr.
53242         (Java): Add javacomp-script, javaexec-script.
53243         (C#): Add csharpcomp-script, csharpexec-script.
53244         (Support for building libraries and executables): Add havelib,
53245         relocatable-*.
53246         (Support for maintaining and releasing projects): Renamed from
53247         'Support for maintaining and release projects'. Add announce-gen.
53248
53249 2007-03-31  Bruno Haible  <bruno@clisp.org>
53250
53251         * README: Talk primarily about git.
53252         (git and CVS): Renamed from CVS.
53253         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
53254         gnulib is available through git.
53255         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
53256
53257 2007-03-30  Bruno Haible  <bruno@clisp.org>
53258
53259         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
53260         * lib/poll_.h: Likewise.
53261         * lib/stat_.h: Likewise.
53262         * lib/sys_time_.h: Likewise.
53263         * lib/sysexit_.h: Likewise.
53264         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
53265         * lib/stdbool_.h: Likewise.
53266         * lib/byteswap_.h: Add double-inclusion guard.
53267
53268 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
53269
53270         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
53271
53272 2007-03-30  Karl Berry  <karl@gnu.org>
53273
53274         * config/srclist-update: double space after USA in the license
53275         substitution, since that's how it's usually (?) written.
53276
53277 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53278
53279         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
53280         reported by Bruno Haible.
53281
53282 2007-03-29  Bruno Haible  <bruno@clisp.org>
53283
53284         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
53285         a bug in AIX iconv().
53286
53287 2007-03-29  Bruno Haible  <bruno@clisp.org>
53288
53289         * modules/ldexpl-tests: New file.
53290         * tests/test-ldexpl.c: New file.
53291
53292 2007-03-29  Bruno Haible  <bruno@clisp.org>
53293
53294         * lib/ldexpl.c: Include fpucw.h.
53295         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
53296         multiplication.
53297         * modules/ldexpl (Depends-on): Add fpucw.
53298
53299 2007-03-29  Bruno Haible  <bruno@clisp.org>
53300
53301         * modules/ldexpl: New file.
53302         * m4/ldexpl.m4: New file.
53303         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
53304         set.
53305         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
53306         REPLACE_LDEXPL.
53307         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
53308         REPLACE_LDEXPL.
53309         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53310         gl_FUNC_LDEXPL_WORKS.
53311         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
53312         * modules/mathl (Files): Remove lib/ldexpl.c.
53313         (Depends-on): Add ldexpl.
53314
53315 2007-03-29  Bruno Haible  <bruno@clisp.org>
53316
53317         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
53318
53319 2007-03-29  Bruno Haible  <bruno@clisp.org>
53320
53321         * tests/test-striconveh.c (main): Don't assume that a direct conversion
53322         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
53323         and possibly also HP-UX.
53324         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53325         work on AIX, IRIX, HP-UX, OSF/1.
53326         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
53327         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
53328         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
53329         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
53330         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
53331         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
53332
53333 2007-03-29  Bruno Haible  <bruno@clisp.org>
53334
53335         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
53336
53337 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53338
53339         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
53340         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
53341
53342 2007-03-29  Eric Blake  <ebb9@byu.net>
53343
53344         * lib/acl-internal.h: Remove redundant include.
53345         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
53346         Cygwin when a file is locked.
53347
53348 2007-03-29  Bruno Haible  <bruno@clisp.org>
53349
53350         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
53351         file.
53352         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
53353
53354 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53355
53356         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
53357         try to remove a parent directory if the child couldn't be removed
53358         (except for the first rmdir, which could fail because the child
53359         doesn't exist).  Problem reported by Jeff Blaine in
53360         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
53361
53362 2007-03-28  Bruno Haible  <bruno@clisp.org>
53363
53364         * lib/striconveh.c (utf8conv_carefully): New function.
53365         (mem_cd_iconveh_internal): Invoke it.
53366
53367 2007-03-28  Bruno Haible  <bruno@clisp.org>
53368
53369         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
53370         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
53371         input.
53372         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
53373         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
53374         unistr/u8-uctomb.
53375
53376 2007-03-28  Bruno Haible  <bruno@clisp.org>
53377
53378         * modules/unistr/u8-mbtoucr: New file.
53379         * lib/unistr/u8-mbtoucr.c: New file.
53380         * modules/unistr/u16-mbtoucr: New file.
53381         * lib/unistr/u16-mbtoucr.c: New file.
53382         * modules/unistr/u16-mbtoucr: New file.
53383         * lib/unistr/u16-mbtoucr.c: New file.
53384         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
53385
53386 2007-03-27  Simon Josefsson  <simon@josefsson.org>
53387             Bruno Haible  <bruno@clisp.org>
53388
53389         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
53390         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
53391         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
53392
53393         * m4/stdio_h.m4: Add stubs for vasprintf too.
53394
53395         * modules/stdio: Support vasprintf in sed command.
53396
53397         * modules/vasprintf: Depend on stdio for prototypes.  Remove
53398         vasprintf.h.  Add stdio module indicator.
53399
53400         * lib/stdio_.h: Declare asprintf and vasprintf, based on
53401         vasprintf.h.
53402
53403         * lib/vasprintf.h: File removed.
53404
53405         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
53406         * lib/vasprintf.c: Ditto.
53407         * lib/xvasprintf.c: Ditto.
53408         * tests/test-vasprintf-posix.c: Ditto.
53409         * tests/test-vasprintf.c: Ditto.
53410
53411 2007-03-27  Bruno Haible  <bruno@clisp.org>
53412
53413         Make vasnprintf multithread-safe.
53414         * lib/vasnprintf.c (decimal_point_char): New function.
53415         (VASNPRINTF): Use it.
53416         Suggested by Simon Josefsson.
53417
53418 2007-03-27  Eric Blake  <ebb9@byu.net>
53419
53420         Support sub-second birthtime on cygwin.
53421         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
53422         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
53423         (get_stat_birthtime): Also work with st_birthtim.
53424
53425 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
53426
53427         * lib/stat-time.h (USE_BIRTHTIME): Remove.
53428         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
53429         (get_stat_birthtime_ns): Do not try to use "spare" fields.
53430         (get_stat_birthtime_ns): Simplify compile-time tests.
53431         (get_stat_birthtime): Change the API to look like
53432         get_stat_mtime etc., except return a negative tv_nsec on error.
53433         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
53434         Don't check for "spare" fields.
53435         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
53436         or for struct stat.st_birthtime, as these tests aren't used.
53437         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
53438
53439 2007-03-27  Bruno Haible  <bruno@clisp.org>
53440
53441         * lib/stat-time.h: Include <sys/stat.h>.
53442
53443 2007-03-27  James Youngman  <jay@gnu.org>
53444
53445         * lib/stat-time.h (get_stat_birthtime): New function for
53446           retrieving st_birthtime as provided by UFS2 (hence *BSD).
53447         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
53448           and its variants.
53449         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
53450         * modules/stat-time-test: New file.
53451         * tests/test-stat-time.c: New test, devised by Bruno Haible.
53452
53453 2007-03-26  Bruno Haible  <bruno@clisp.org>
53454
53455         Better support of signalling NaNs.
53456         * lib/atanl.c: Include isnanl.h.
53457         (atanl): Perform test for NaN at the beginning of the function and
53458         through a call to isnanl.
53459         * lib/cosl.c: Include isnanl.h.
53460         (cosl): Perform test for NaN at the beginning of the function and
53461         through a call to isnanl.
53462         * lib/ldexpl.c: Include isnanl.h.
53463         (ldexpl): Perform test for NaN through a call to isnanl.
53464         * lib/logl.c: Include isnanl.h.
53465         (logl): Perform test for NaN at the beginning of the function and
53466         through a call to isnanl.
53467         * lib/sinl.c: Include isnanl.h.
53468         (sinl): Perform test for NaN at the beginning of the function and
53469         through a call to isnanl.
53470         * lib/sqrtl.c: Include isnanl.h.
53471         (sqrtl): Perform test for NaN at the beginning of the function and
53472         through a call to isnanl.
53473         * lib/tanl.c: Include isnanl.h.
53474         (tanl): Perform test for NaN at the beginning of the function and
53475         through a call to isnanl.
53476         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
53477         * modules/mathl (Depends-on): Add isnanl.
53478
53479 2007-03-26  Eric Blake  <ebb9@byu.net>
53480
53481         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
53482         regression in logic sense of previous patch.
53483
53484 2007-03-26  Bruno Haible  <bruno@clisp.org>
53485
53486         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
53487         unportable shell command "if ! ...".
53488         Reported by Ralf Wildenhues.
53489
53490 2007-03-25  Bruno Haible  <bruno@clisp.org>
53491
53492         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
53493         <sysexits.h> file, and only add EX_CONFIG.
53494         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
53495         absolute file name and whether it is sufficient. Substitute also
53496         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
53497         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
53498         ABSOLUTE_SYSEXITS_H into sysexits.h.
53499
53500 2007-03-25  Bruno Haible  <bruno@clisp.org>
53501
53502         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
53503         hints is NULL.
53504
53505 2007-03-25  Bruno Haible  <bruno@clisp.org>
53506
53507         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
53508         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
53509
53510 2007-03-25  Bruno Haible  <bruno@clisp.org>
53511
53512         * lib/vasnprintf.c: Include langinfo.h.
53513         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
53514         multithread-safe.
53515         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
53516         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
53517         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53518         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53519         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53520         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53521         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53522         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
53523         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53524         Reported by Simon Josefsson.
53525
53526 2007-03-25  Bruno Haible  <bruno@clisp.org>
53527
53528         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
53529         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
53530         * modules/vasnprintf (Depends-on): Add stdint.
53531
53532 2007-03-25  Bruno Haible  <bruno@clisp.org>
53533
53534         * modules/fpieee: New file.
53535         * m4/fpieee.m4: New file.
53536         * modules/isnan-nolibm (Depends-on): Add fpieee.
53537         * modules/isnanl-nolibm (Depends-on): Add fpieee.
53538         * modules/isnanl (Depends-on): Add fpieee.
53539
53540 2007-03-25  Bruno Haible  <bruno@clisp.org>
53541
53542         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
53543
53544 2007-03-25  Bruno Haible  <bruno@clisp.org>
53545
53546         Avoid test failures on IRIX 6.5.
53547         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
53548         (main): Use it.
53549         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
53550         macros.
53551         (main): Use them.
53552
53553 2007-03-25  Bruno Haible  <bruno@clisp.org>
53554
53555         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
53556         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
53557         exists but doesn't work.
53558         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
53559         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
53560         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
53561         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
53562         math.h.
53563
53564 2007-03-25  Bruno Haible  <bruno@clisp.org>
53565
53566         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
53567         returns inf. Needed on IRIX 6.5.
53568
53569 2007-03-25  Bruno Haible  <bruno@clisp.org>
53570
53571         * tests/test-frexpl.c: Include isnanl-nolibm.h.
53572         (main): Use isnanl instead of x != x idiom.
53573         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
53574
53575         * tests/test-frexp.c: Include isnan.h.
53576         (main): Use isnan instead of x != x idiom.
53577         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
53578
53579 2007-03-25  Bruno Haible  <bruno@clisp.org>
53580
53581         * tests/test-frexp.c (NaN): New function/macro.
53582         (main): Use it instead of 0.0 / 0.0.
53583         * tests/test-isnan.c (NaN): New function/macro.
53584         (main): Use it instead of 0.0 / 0.0.
53585         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
53586         (test_function): Use it instead of 0.0 / 0.0.
53587         * tests/test-vasprintf-posix.c (NaN): New function/macro.
53588         (test_function): Use it instead of 0.0 / 0.0.
53589         * tests/test-snprintf-posix.h (NaN): New function/macro.
53590         (test_function): Use it instead of 0.0 / 0.0.
53591         * tests/test-sprintf-posix.h (NaN): New function/macro.
53592         (test_function): Use it instead of 0.0 / 0.0.
53593         * tests/test-fprintf-posix.h (NaN): New function/macro.
53594         (test_function): Use it instead of 0.0 / 0.0.
53595         * tests/test-printf-posix.h (NaN): New function/macro.
53596         (test_function): Use it instead of 0.0 / 0.0.
53597
53598         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
53599
53600 2007-03-25  Bruno Haible  <bruno@clisp.org>
53601
53602         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
53603
53604 2007-03-25  Bruno Haible  <bruno@clisp.org>
53605
53606         * lib/regexec.c (merge_state_with_log): Make static.
53607
53608 2007-03-25  Bruno Haible  <bruno@clisp.org>
53609
53610         * lib/trigl.c (kernel_rem_pio2): Make static.
53611
53612 2007-03-25  Bruno Haible  <bruno@clisp.org>
53613
53614         * lib/sincosl.c (sincosl_table): Make static.
53615
53616 2007-03-25  Bruno Haible  <bruno@clisp.org>
53617
53618         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
53619         if the compiler does not support C99.
53620
53621 2007-03-25  Bruno Haible  <bruno@clisp.org>
53622
53623         * modules/time (Makefile.am): Ensure all rule action lines start with a
53624         tab.
53625
53626 2007-03-24  Bruno Haible  <bruno@clisp.org>
53627
53628         * modules/tsearch-tests: New file.
53629         * tests/test-tsearch.sh: New file.
53630         * tests/test-tsearch.c: New file, mostly copied from glibc.
53631
53632         * modules/search-tests: New file.
53633         * tests/test-search.c: New file.
53634
53635         * modules/search: New file.
53636         * lib/search_.h: New file, incorporating lib/tsearch.h.
53637         * m4/search_h.m4: New file.
53638         * lib/tsearch.h: Remove file.
53639         * lib/tsearch.c: Include search.h instead of tsearch.h.
53640         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
53641         HAVE_TSEARCH.
53642         * modules/tsearch (Files): Remove lib/tsearch.h.
53643         (Depends-on): Add search.
53644         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
53645         (Include): Change tsearch.h into search.h.
53646
53647 2007-03-24  Bruno Haible  <bruno@clisp.org>
53648
53649         * modules/fpucw: New file.
53650         * lib/fpucw.h: New file.
53651         * lib/frexp.c: Include fpucw.h.
53652         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
53653         (FUNC): Use them.
53654         * lib/printf-frexp.c: Include fpucw.h.
53655         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
53656         (FUNC): Use them.
53657         * lib/vasnprintf.c: Include fpucw.h.
53658         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
53659         'long double' calculations.
53660         * tests/test-frexpl.c: Include fpucw.h.
53661         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
53662         * tests/test-printf-frexpl.c: Include fpucw.h.
53663         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
53664         * modules/frexpl (Depends-on): Add fpucw.
53665         * modules/printf-frexpl (Depends-on): Likewise.
53666         * modules/fprintf-posix (Depends-on): Likewise.
53667         * modules/snprintf-posix (Depends-on): Likewise.
53668         * modules/sprintf-posix (Depends-on): Likewise.
53669         * modules/vasnprintf-posix (Depends-on): Likewise.
53670         * modules/vasprintf-posix (Depends-on): Likewise.
53671         * modules/vfprintf-posix (Depends-on): Likewise.
53672         * modules/vsnprintf-posix (Depends-on): Likewise.
53673         * modules/vsprintf-posix (Depends-on): Likewise.
53674         * modules/frexpl-tests (Depends-on): Likewise.
53675         * modules/printf-frexpl-tests (Depends-on): Likewise.
53676
53677 2007-03-24  Bruno Haible  <bruno@clisp.org>
53678
53679         * lib/float+.h: New file.
53680         * lib/isnan.c: Include float+.h.
53681         (SIZE): New macro.
53682         (FUNC): Compare only SIZE bytes of the value.
53683         * lib/vasnprintf.c: Include float+.h.
53684         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
53685         SIZEOF_LDBL or SIZEOF_DBL bytes.
53686         * modules/isnan-nolibm (Files): Add lib/float+.h.
53687         * modules/isnanl-nolibm (Files): Add lib/float+.h.
53688         * modules/isnanl (Files): Add lib/float+.h.
53689         * modules/vasnprintf (Files): Add lib/float+.h.
53690
53691 2007-03-24  Bruno Haible  <bruno@clisp.org>
53692
53693         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
53694         include isnanl-nolibm.h.
53695
53696 2007-03-24  Bruno Haible  <bruno@clisp.org>
53697
53698         * tests/test-read-file.c (main): Don't produce spurious output for
53699         expected situations. Make the test fail if it encountered unexpected
53700         results.
53701
53702 2007-03-24  Bruno Haible  <bruno@clisp.org>
53703
53704         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
53705         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
53706
53707 2007-03-24  Bruno Haible  <bruno@clisp.org>
53708
53709         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
53710
53711 2007-03-24  Bruno Haible  <bruno@clisp.org>
53712
53713         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
53714         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
53715
53716         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
53717         * modules/utf8-ucs4: Turn into a symbolic link to module
53718         unistr/u8-mbtouc.
53719
53720         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
53721         utf8-ucs4-unsafe.
53722         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
53723         unistr/u8-mbtouc-unsafe.
53724
53725         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
53726         * modules/utf16-ucs4: Turn into a symbolic link to module
53727         unistr/u16-mbtouc.
53728
53729         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
53730         utf16-ucs4-unsafe.
53731         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
53732         unistr/u16-mbtouc-unsafe.
53733
53734         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
53735         * modules/ucs4-utf8: Turn into a symbolic link to module
53736         unistr/u8-ubtomb.
53737
53738         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
53739         * modules/ucs4-utf16: Turn into a symbolic link to module
53740         unistr/u16-ubtomb.
53741
53742 2007-03-24  Bruno Haible  <bruno@clisp.org>
53743
53744         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
53745         Enable the function only if HAVE_INLINE.
53746         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
53747         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
53748         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
53749         Enable the function only if HAVE_INLINE.
53750         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
53751         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
53752         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
53753         Enable the function only if HAVE_INLINE.
53754         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
53755         Enable the function only if HAVE_INLINE.
53756         * modules/utf8-ucs4: Update.
53757         * modules/utf8-ucs4-unsafe: Update.
53758         * modules/utf16-ucs4: Update.
53759         * modules/utf16-ucs4-unsafe: Update.
53760         * modules/ucs4-utf8: Update.
53761         * modules/ucs4-utf16: Update.
53762
53763 2007-03-24  Bruno Haible  <bruno@clisp.org>
53764
53765         * lib/utf8-ucs4.h: Remove file.
53766         * lib/utf8-ucs4-unsafe.h: Remove file.
53767         * lib/utf16-ucs4.h: Remove file.
53768         * lib/utf16-ucs4-unsafe.h: Remove file.
53769         * lib/ucs4-utf8.h: Remove file.
53770         * lib/ucs4-utf16.h: Remove file.
53771         * lib/unistr.h: Include their previous contents.
53772         * m4/utf-ucs4.m4: Remove file.
53773         * m4/ucs4-utf.m4: Remove file.
53774         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
53775         (Depends-on): Add unistr/base.
53776         (configure.ac): Remove gl_UTF_UCS4.
53777         (Makefile.am): Update.
53778         (Include): Change to unistr.h.
53779         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
53780         (Depends-on): Add unistr/base.
53781         (configure.ac): Remove gl_UTF_UCS4.
53782         (Makefile.am): Update.
53783         (Include): Change to unistr.h.
53784         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
53785         (Depends-on): Add unistr/base.
53786         (configure.ac): Remove gl_UTF_UCS4.
53787         (Makefile.am): Update.
53788         (Include): Change to unistr.h.
53789         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
53790         (Depends-on): Add unistr/base.
53791         (configure.ac): Remove gl_UTF_UCS4.
53792         (Makefile.am): Update.
53793         (Include): Change to unistr.h.
53794         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
53795         (Depends-on): Add unistr/base.
53796         (configure.ac): Remove gl_UCS4_UTF.
53797         (Makefile.am): Update.
53798         (Include): Change to unistr.h.
53799         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
53800         (Depends-on): Add unistr/base.
53801         (configure.ac): Remove gl_UCS4_UTF.
53802         (Makefile.am): Update.
53803         (Include): Change to unistr.h.
53804         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
53805         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
53806         utf8-ucs4-unsafe.h.
53807         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
53808         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
53809         utf16-ucs4-unsafe.h.
53810         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
53811         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
53812         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
53813         * lib/unistr/u8-strchr.c: Likewise.
53814         * lib/unistr/u8-strrchr.c: Likewise.
53815         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
53816         * lib/unistr/u16-strchr.c: Likewise.
53817         * lib/unistr/u16-strrchr.c: Likewise.
53818         * lib/striconveh.c: Update.
53819         * lib/linebreak.c: Update.
53820
53821 2007-03-24  Bruno Haible  <bruno@clisp.org>
53822
53823         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
53824         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
53825
53826 2007-03-22  Bruno Haible  <bruno@clisp.org>
53827
53828         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
53829
53830 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53831
53832         * MODULES.html.sh (File system functions): New module write-any-file.
53833         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
53834         * m4/write-any-file.m4: New files.
53835
53836 2007-03-23  Eric Blake  <ebb9@byu.net>
53837
53838         * gnulib-tool: Rearrange space-tab sequences, since some editors
53839         like to eat them.
53840
53841 2007-03-23  Eric Blake  <ebb9@byu.net>
53842
53843         * lib/version-etc.c (version_etc_va): Update license wording to
53844         be more concise.  Recommended by Richard Stallman.
53845
53846 2007-03-22  Bruno Haible  <bruno@clisp.org>
53847
53848         * lib/poll.c (MSG_PEEK): New fallback definition.
53849
53850 2007-03-22  Bruno Haible  <bruno@clisp.org>
53851
53852         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
53853         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
53854         (main): Update.
53855         Fixes a compilation error on BeOS.
53856
53857 2007-03-22  Bruno Haible  <bruno@clisp.org>
53858
53859         * modules/frexpl-tests: New file.
53860         * tests/test-frexpl.c: New file.
53861
53862         * modules/frexpl: New file.
53863         * m4/frexpl.m4: New file.
53864         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
53865         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
53866         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
53867         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
53868         (Depends-on): Add frexpl. Remove isnanl-nolibm.
53869         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
53870
53871 2007-03-22  Bruno Haible  <bruno@clisp.org>
53872
53873         * lib/frexpl.c: Share code with lib/frexp.c.
53874         * modules/mathl (Files): Add lib/frexp.c.
53875         (Depends-on): Add isnanl-nolibm.
53876
53877 2007-03-22  Bruno Haible  <bruno@clisp.org>
53878
53879         * modules/printf-frexp (Files): Add m4/frexp.m4.
53880         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
53881         only if the found frexp function actually works.
53882
53883 2007-03-22  Bruno Haible  <bruno@clisp.org>
53884
53885         * lib/frexp.c: Remove older implementation that uses divisions.
53886
53887 2007-03-21  Bruno Haible  <bruno@clisp.org>
53888
53889         * modules/frexp-tests: New file.
53890         * tests/test-frexp.c: New file.
53891
53892         * modules/frexp: New file.
53893         * lib/frexp.c: New file.
53894         * m4/frexp.m4: New file.
53895         * lib/math_.h (frexp): New declaration.
53896         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
53897         REPLACE_FREXP.
53898         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
53899
53900 2007-03-21  Bruno Haible  <bruno@clisp.org>
53901
53902         * modules/isnanl-tests: New file.
53903         * tests/test-isnanl.c: New file.
53904
53905         * modules/isnanl: New file.
53906         * lib/isnanl.h: New file.
53907         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
53908         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
53909         gl_FUNC_ISNANL_WORKS.
53910         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
53911         New macros.
53912
53913 2007-03-21  Bruno Haible  <bruno@clisp.org>
53914
53915         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
53916         lib/isnanl.h.
53917         (Include): Update.
53918         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
53919         * lib/vasnprintf.c: Update.
53920         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
53921         tests/test-isnanl.h, remove tests/test-isnanl.c.
53922         (Makefile.am): Update.
53923         * tests/test-isnanl-nolibm.c: New file.
53924         * tests/test-isnanl.h: New file.
53925         * tests/test-isnanl.c: Remove file.
53926
53927 2007-03-21  Jim Meyering  <jim@meyering.net>
53928
53929         When trying to open ".", treat ESTALE like EACCES.
53930         * lib/savewd.c (savewd_save): Resort to forking not just upon
53931         failure with EACCES, but also when errno is ESTALE.
53932
53933 2007-03-20  Bruno Haible  <bruno@clisp.org>
53934
53935         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
53936         Needed on AIX 5.1. Reported by Matthew Woehlke.
53937
53938 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53939
53940         Suggestions by Bruno Haible:
53941         * lib/acl-internal.h: Include "gettext.h" rather than rolling
53942         our own.
53943         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
53944         * modules/acl (Depends-on): Add gettext.
53945
53946 2007-03-19  Bruno Haible  <bruno@clisp.org>
53947
53948         * modules/iconvme: Remove file.
53949         * lib/iconvme.h: Remove file.
53950         * lib/iconvme.c: Remove file.
53951         * m4/iconvme.m4: Remove file.
53952
53953 2007-03-19  Bruno Haible  <bruno@clisp.org>
53954
53955         * doc/relocatable-maint.texi: Break long shell script line.
53956         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
53957
53958 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53959
53960         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
53961         handle file_has_acl.
53962         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
53963         * lib/acl.c: Move header inclusions and related macro defns into
53964         lib/acl-internal.h.
53965         (S_ISLNK): Remove defn, since that's now done for us.
53966         (file_has_acl): Move to lib/file-has-acl.c.
53967         Call acl_trivial if available.  This is the crucial part of the fix.
53968         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
53969         shared within the library.  Rewrite a bit, partly to make it compatible
53970         with the GNU coding style.
53971         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
53972         Remove unnecessary double-quotes.
53973         Don't test for acl_to_text; the build will catch that.
53974         Replace acl_entries if it doesn't exist and it is needed.
53975         Check for -lsec and acl_trivial (as used on Solaris 10).
53976         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
53977         lib/file-has-acl.c.
53978         (Depends-on): Add sys_stat, for S_ISLNK.
53979
53980 2007-03-19  Ben Pfaff  <blp@gnu.org>
53981
53982         * doc/gnulib.texi: Fix typos.
53983         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
53984
53985 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53986
53987         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
53988         If size is zero here, buf must be zero.
53989
53990 2007-03-19  Simon Josefsson  <simon@josefsson.org>
53991
53992         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
53993         <bruno@clisp.org>.
53994
53995 2007-03-18  Bruno Haible  <bruno@clisp.org>
53996
53997         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
53998         Suggested by Eric Blake.
53999
54000 2007-03-18  Ben Pfaff  <blp@gnu.org>
54001
54002         * doc/relocatable.texi: Recommend using as prefix a directory
54003         that does not exist and will never be created.  Based on
54004         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
54005         and others.
54006
54007 2007-03-17  Bruno Haible  <bruno@clisp.org>
54008
54009         * lib/fchownat.c: Include lchown.h.
54010
54011 2007-03-17  Bruno Haible  <bruno@clisp.org>
54012
54013         Fix endless loop when the given allocated size was > INT_MAX.
54014         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
54015         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
54016         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
54017         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
54018         * lib/sprintf.c (sprintf): Likewise.
54019
54020 2007-03-17  Bruno Haible  <bruno@clisp.org>
54021
54022         * tests/test-argp-2.sh (func_compare): Output a context diff.
54023
54024 2007-03-17  Bruno Haible  <bruno@clisp.org>
54025
54026         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
54027         locale's decimal-point character.
54028
54029 2007-03-17  Bruno Haible  <bruno@clisp.org>
54030
54031         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
54032         before comparing it. Needed because on some platforms (e.g. x86) a
54033         'long double' occupies less bytes than sizeof (long double).
54034
54035 2007-03-17  Bruno Haible  <bruno@clisp.org>
54036
54037         * tests/test-crc.c (main): Make printf statements 64-bit clean.
54038         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
54039         * tests/test-getaddrinfo.c (simple): Likewise.
54040         * tests/test-read-file.c (main): Likewise.
54041
54042 2007-03-17  Bruno Haible  <bruno@clisp.org>
54043
54044         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
54045
54046 2007-03-17  Bruno Haible  <bruno@clisp.org>
54047
54048         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
54049         unused variable.
54050
54051 2007-03-17  Bruno Haible  <bruno@clisp.org>
54052
54053         * tests/test-c-strcasecmp.c: Include c-strcase.h.
54054         * tests/test-c-strncasecmp.c: Likewise.
54055
54056 2007-03-17  Bruno Haible  <bruno@clisp.org>
54057
54058         * modules/stdlib (Depends-on): Add unistd.
54059         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
54060         Needed for MacOS X 10.3.
54061
54062 2007-03-17  Bruno Haible  <bruno@clisp.org>
54063
54064         * lib/unistr/u-strdup.h: Include <stdlib.h>.
54065
54066 2007-03-17  Bruno Haible  <bruno@clisp.org>
54067
54068         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
54069
54070 2007-03-17  Bruno Haible  <bruno@clisp.org>
54071
54072         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
54073         to reflect files copied from gnulib (with or without modifications).
54074         Suggested by Jim Meyering.
54075
54076 2007-03-17  Eric Blake  <ebb9@byu.net>
54077
54078         * NEWS: Document stdlib change from 2007-02-18.
54079
54080 2007-03-17  Jim Meyering  <jim@meyering.net>
54081
54082         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
54083         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
54084         someone uses a name containing shell meta-characters.
54085         Reported by Alfred M. Szmidt.
54086
54087         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
54088
54089 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54090
54091         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
54092         and copy gettext configuration files only if configure.ac contains
54093         a use of AM_GNU_GETTEXT_VERSION.
54094
54095 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54096
54097         * build-aux/bootstrap (gnulib_name): New variable.
54098         (gnulib_tool_options): Use it.
54099
54100 2007-03-13  Simon Josefsson  <simon@josefsson.org>
54101
54102         * tests/test-des.c: Use new namespace.
54103
54104 2007-03-15  Bruno Haible  <bruno@clisp.org>
54105
54106         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
54107         Reported by James Youngman <jay@gnu.org>.
54108
54109 2007-03-15  Bruno Haible  <bruno@clisp.org>
54110
54111         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
54112         declared prototype. Needed with cc on OSF/1 5.1.
54113
54114 2007-03-15  Bruno Haible  <bruno@clisp.org>
54115
54116         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
54117         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
54118         (struct gl_list_implementation): Add dispose_fn argument to the
54119         'create_empty', 'create' methods.
54120         (struct gl_list_impl_base): Add field 'dispose_fn'.
54121         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
54122         argument.
54123         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
54124         dispose_fn argument.
54125         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
54126         dispose_fn on the dropped values.
54127         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
54128         dispose_fn argument.
54129         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
54130         dropped values.
54131         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
54132         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54133         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
54134         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54135         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
54136         argument.
54137         (gl_tree_list_free): Call dispose_fn on the dropped values.
54138         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
54139         the dropped values.
54140         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
54141         Add dispose_fn argument.
54142         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
54143         Call dispose_fn on the dropped values.
54144         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
54145         Add dispose_fn argument.
54146         (gl_sublist_create): Initialize the 'dispose_fn' field.
54147         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
54148         * tests/test-array_list.c (main): Update.
54149         * tests/test-carray_list.c (main): Update.
54150         * tests/test-avltree_list.c (main): Update.
54151         * tests/test-rbtree_list.c (main): Update.
54152         * tests/test-avltreehash_list.c (main): Update.
54153         * tests/test-rbtreehash_list.c (main): Update.
54154         * tests/test-linked_list.c (main): Update.
54155         * tests/test-linkedhash_list.c (main): Update.
54156         * tests/test-array_oset.c (main): Update.
54157
54158 2007-03-15  Bruno Haible  <bruno@clisp.org>
54159
54160         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
54161         (gl_oset_create_empty): Add dispose_fn argument.
54162         (struct gl_oset_implementation): Add dispose_fn argument to
54163         'create_empty' method.
54164         (struct gl_oset_impl_base): Add dispose_fn field.
54165         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
54166         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
54167         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
54168         values.
54169         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
54170         (gl_tree_oset_free): Call dispose_fn on the dropped values.
54171         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54172         dropped value.
54173         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54174         dropped value.
54175         * tests/test-array_oset.c (main): Update.
54176         * tests/test-avltree_oset.c (main): Update.
54177         * tests/test-rbtree_oset.c (main): Update.
54178         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
54179
54180 2007-03-13  Bruno Haible  <bruno@clisp.org>
54181
54182         * tests/test-stdbool.c (i): Update after last patch.
54183
54184 2007-03-12  Bruno Haible  <bruno@clisp.org>
54185
54186         * lib/quotearg.c: Include <wctype.h> early, before the definition of
54187         the iswprint macro. Needed on Solaris 2.5.1.
54188
54189 2007-03-12  Bruno Haible  <bruno@clisp.org>
54190
54191         * tests/test-printf-frexp.c (main): Declare x as volatile.
54192
54193 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54194
54195         * doc/gnulib.texi (Build robot for gnulib): New section.
54196
54197 2007-03-12  Jim Meyering  <jim@meyering.net>
54198
54199         * build-aux/bootstrap: New file.
54200         * build-aux/bootstrap.conf: New file, from coreutils.
54201
54202 2007-03-11  Bruno Haible  <bruno@clisp.org>
54203
54204         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
54205
54206 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54207
54208         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
54209         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
54210         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
54211
54212 2007-03-11  Bruno Haible  <bruno@clisp.org>
54213
54214         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
54215         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
54216
54217 2007-03-11  Bruno Haible  <bruno@clisp.org>
54218
54219         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
54220         formula. Needed for SunPRO C 5.0.
54221
54222 2007-03-11  Bruno Haible  <bruno@clisp.org>
54223
54224         * modules/long-options (Depends-on): Add getopt.
54225
54226 2007-03-11  Bruno Haible  <bruno@clisp.org>
54227
54228         * modules/modechange (Depends-on): Add stdbool.
54229
54230 2007-03-11  Bruno Haible  <bruno@clisp.org>
54231
54232         * modules/i-ring (Depends-on): Add stdbool.
54233
54234 2007-03-11  Bruno Haible  <bruno@clisp.org>
54235
54236         * modules/gc-des (Depends-on): Add stdbool.
54237
54238 2007-03-11  Bruno Haible  <bruno@clisp.org>
54239
54240         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
54241
54242 2007-03-11  Bruno Haible  <bruno@clisp.org>
54243
54244         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
54245
54246 2007-03-11  Bruno Haible  <bruno@clisp.org>
54247
54248         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
54249
54250 2007-03-11  Bruno Haible  <bruno@clisp.org>
54251
54252         * lib/vasnprintf.c (sprintf): Undefine.
54253
54254 2007-03-11  Bruno Haible  <bruno@clisp.org>
54255
54256         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
54257         initializers in SunPRO C and Compaq C compilers.
54258
54259 2007-03-11  Bruno Haible  <bruno@clisp.org>
54260
54261         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
54262         decrementing code ANSI C compliant.
54263
54264 2007-03-11  Bruno Haible  <bruno@clisp.org>
54265
54266         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
54267         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
54268
54269 2007-03-11  Bruno Haible  <bruno@clisp.org>
54270
54271         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
54272         <stdbool.h> substitute doesn't pass.
54273
54274 2007-03-11  Bruno Haible  <bruno@clisp.org>
54275
54276         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
54277
54278 2007-03-11  Bruno Haible  <bruno@clisp.org>
54279
54280         * gnulib-tool (func_create_megatestdir): Create also an autobuild
54281         script, for submission to autobuild.josefsson.org.
54282
54283 2007-03-10  Bruno Haible  <bruno@clisp.org>
54284
54285         * modules/canonicalize-lgpl-tests: New file.
54286         * tests/test-canonicalize-lgpl.sh: New file.
54287         * tests/test-canonicalize-lgpl.c: New file.
54288
54289         * modules/c-strcase-tests: New file.
54290         * tests/test-c-strcase.sh: New file.
54291         * tests/test-c-strcasecmp.c: New file.
54292         * tests/test-c-strncasecmp.c: New file.
54293
54294         * modules/atexit-tests: New file.
54295         * tests/test-atexit.sh: New file.
54296         * tests/test-atexit.c: New file.
54297
54298 2007-03-10  Bruno Haible  <bruno@clisp.org>
54299
54300         * tests/test-binary-io.sh: Use temporary filenames that are not so
54301         likely to clash with those of other tests (in a parallel make).
54302         * tests/test-binary-io.c: Likewise.
54303
54304 2007-03-10  Bruno Haible  <bruno@clisp.org>
54305
54306         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
54307         fallback; use #error instead.
54308         Suggested by Simon Josefsson.
54309
54310 2007-03-10  Bruno Haible  <bruno@clisp.org>
54311
54312         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
54313         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
54314         first and the last.
54315
54316 2007-03-10  Bruno Haible  <bruno@clisp.org>
54317
54318         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
54319
54320 2007-03-10  Bruno Haible  <bruno@clisp.org>
54321
54322         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
54323         "make distcheck".
54324         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
54325         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
54326         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
54327
54328 2007-03-10  Bruno Haible  <bruno@clisp.org>
54329
54330         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
54331         variable.
54332         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
54333         variable.
54334
54335 2007-03-09  Eric Blake  <ebb9@byu.net>
54336         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
54337
54338         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
54339         types are not being provided by gnulib.
54340         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
54341         types are supported.
54342
54343 2007-03-10  Bruno Haible  <bruno@clisp.org>
54344
54345         * lib/stdio_.h (__attribute__): New macro.
54346         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
54347         vsprintf): Specify __attribute__ __format__ for GCC.
54348         Suggested by Eric Blake.
54349
54350 2007-03-09  Bruno Haible  <bruno@clisp.org>
54351
54352         * modules/printf-posix-tests: New file.
54353         * tests/test-printf-posix.sh: New file.
54354         * tests/test-printf-posix.c: New file.
54355
54356         * modules/printf-posix: New file.
54357         * lib/printf.c: New file.
54358         * m4/printf-posix-rpl.m4: New file.
54359         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
54360         REPLACE_PRINTF.
54361         * lib/stdio_.h (printf): New declaration.
54362         (format, __format__, ____printf____, ____scanf____, ____strftime____,
54363         ____strfmon____): New macros.
54364         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
54365         REPLACE_PRINTF.
54366
54367 2007-03-09  Bruno Haible  <bruno@clisp.org>
54368
54369         * tests/test-vasnprintf-posix2.sh: New file.
54370         * tests/test-vasnprintf-posix2.c: New file.
54371         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
54372         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
54373         (Makefile.am): Activate test-vasnprintf-posix2.sh.
54374
54375         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
54376         a locale dependent decimal point, rather than always '.'.
54377
54378 2007-03-09  Eric Blake  <ebb9@byu.net>
54379
54380         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
54381         spite of platforms like Tandem/NSK that define it to -1.
54382
54383 2007-03-08  Bruno Haible  <bruno@clisp.org>
54384
54385         * modules/vprintf-posix-tests: New file.
54386         * tests/test-vprintf-posix.sh: New file.
54387         * tests/test-vprintf-posix.c: New file.
54388         * tests/test-printf-posix.h: New file.
54389
54390         * modules/vprintf-posix: New file.
54391         * lib/vprintf.c: New file.
54392         * m4/vprintf-posix.m4: New file.
54393         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
54394         REPLACE_VPRINTF.
54395         * lib/stdio_.h (vprintf): New declaration.
54396         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
54397         REPLACE_VPRINTF.
54398
54399 2007-03-08  Bruno Haible  <bruno@clisp.org>
54400
54401         * modules/fprintf-posix-tests: New file.
54402         * tests/test-fprintf-posix.sh: New file.
54403         * tests/test-fprintf-posix.c: New file.
54404
54405         * modules/fprintf-posix: New file.
54406         * lib/fprintf.c: New file.
54407         * m4/fprintf-posix.m4: New file.
54408         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
54409         REPLACE_FPRINTF.
54410         * lib/stdio_.h (fprintf): New declaration.
54411         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
54412         REPLACE_FPRINTF.
54413
54414 2007-03-08  Bruno Haible  <bruno@clisp.org>
54415
54416         * modules/vfprintf-posix-tests: New file.
54417         * tests/test-vfprintf-posix.sh: New file.
54418         * tests/test-vfprintf-posix.c: New file.
54419         * tests/test-fprintf-posix.h: New file.
54420         * tests/test-fprintf-posix.out: New file.
54421
54422         * modules/vfprintf-posix: New file.
54423         * lib/vfprintf.c: New file.
54424         * m4/vfprintf-posix.m4: New file.
54425         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
54426         REPLACE_VFPRINTF.
54427         * lib/stdio_.h (vfprintf): New declaration.
54428         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
54429         REPLACE_VFPRINTF.
54430
54431 2007-03-08  Bruno Haible  <bruno@clisp.org>
54432
54433         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
54434
54435 2007-03-08  Bruno Haible  <bruno@clisp.org>
54436
54437         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
54438         instead of 'expr' invocations.
54439         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54440         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54441         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54442         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54443         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54444         Suggested by Paul Eggert.
54445
54446 2007-03-08  Bruno Haible  <bruno@clisp.org>
54447
54448         * modules/fseterr-tests: New file.
54449         * tests/test-fseterr.c: New file.
54450
54451         * modules/fseterr: New file.
54452         * lib/fseterr.h: New file.
54453         * lib/fseterr.c: New file.
54454
54455 2007-03-08  Bruno Haible  <bruno@clisp.org>
54456
54457         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
54458         * lib/getopt_.h: Likewise.
54459         * lib/mbswidth.h: Likewise.
54460         * lib/setenv.h: Likewise.
54461         * lib/vasnprintf.h: Likewise.
54462         * lib/vasprintf.h: Likewise.
54463         * lib/verror.h: Likewise.
54464         * lib/xsetenv.h: Likewise.
54465         * lib/xvasprintf.h: Likewise.
54466
54467 2007-03-08  Jim Meyering  <jim@meyering.net>
54468
54469         * users.txt: Add parted.
54470
54471         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
54472
54473 2007-03-07  Bruno Haible  <bruno@clisp.org>
54474
54475         * m4/printf.m4: Make the shell script snippets copy&pastable.
54476
54477 2007-03-02  Bruno Haible  <bruno@clisp.org>
54478
54479         * lib/netinet_in_.h: New file.
54480         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
54481         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
54482         * modules/netinet_in (Files): Add lib/netinet_in_.h.
54483         (Depends-on): Add absolute-header.
54484         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
54485         into netinet/in.h.
54486
54487 2007-03-03  Bruno Haible  <bruno@clisp.org>
54488
54489         * lib/sys_select_.h: New file.
54490         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
54491         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
54492         * modules/sys_select (Files): Add lib/sys_select_.h.
54493         (Depends-on): Add absolute-header.
54494         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
54495         into sys/select.h.
54496
54497 2007-03-02  Bruno Haible  <bruno@clisp.org>
54498
54499         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
54500         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
54501         values.
54502         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
54503         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
54504         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
54505         * modules/sys_socket (Depends-on): Add absolute-header.
54506         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
54507         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
54508         (Include): Remove requirement of inclusion of <sys/types.h>.
54509
54510 2007-03-02  Bruno Haible  <bruno@clisp.org>
54511
54512         * lib/byteswap_.h (bswap_32): Fix formula.
54513
54514 2007-03-06  Bruno Haible  <bruno@clisp.org>
54515
54516         * modules/sprintf-posix-tests: New file.
54517         * tests/test-sprintf-posix.c: New file.
54518
54519         * modules/sprintf-posix: New file.
54520         * lib/sprintf.c: New file.
54521         * m4/sprintf-posix.m4: New file.
54522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
54523         REPLACE_SPRINTF.
54524         * lib/stdio_.h (sprintf): New declaration.
54525         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
54526         REPLACE_SPRINTF.
54527
54528 2007-03-06  Bruno Haible  <bruno@clisp.org>
54529
54530         * modules/vsprintf-posix-tests: New file.
54531         * tests/test-vsprintf-posix.c: New file.
54532         * tests/test-sprintf-posix.h: New file.
54533
54534         * modules/vsprintf-posix: New file.
54535         * lib/vsprintf.c: New file.
54536         * m4/vsprintf-posix.m4: New file.
54537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
54538         REPLACE_VSPRINTF.
54539         * lib/stdio_.h (vsprintf): New declaration.
54540         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
54541         REPLACE_VSPRINTF.
54542
54543 2007-03-06  Bruno Haible  <bruno@clisp.org>
54544
54545         * modules/vsnprintf (Depend-on): Remove minmax.
54546
54547 2007-03-06  Bruno Haible  <bruno@clisp.org>
54548
54549         * modules/snprintf-posix-tests: New file.
54550         * tests/test-snprintf-posix.c: New file.
54551
54552         * modules/snprintf-posix: New file.
54553         * m4/snprintf-posix.m4: New file.
54554         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
54555         gl_FUNC_SNPRINTF.
54556         (gl_FUNC_SNPRINTF): Invoke it.
54557         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
54558         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
54559         is set.
54560         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
54561
54562 2007-03-06  Bruno Haible  <bruno@clisp.org>
54563
54564         * modules/vsnprintf-posix-tests: New file.
54565         * tests/test-vsnprintf-posix.c: New file.
54566         * tests/test-snprintf-posix.h: New file.
54567
54568         * modules/vsnprintf-posix: New file.
54569         * m4/vsnprintf-posix.m4: New file.
54570         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
54571         gl_FUNC_VSNPRINTF.
54572         (gl_FUNC_VSNPRINTF): Invoke it.
54573         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
54574         * lib/stdio_.h (vsnprintf): Define as a replacement if
54575         REPLACE_VSNPRINTF is set.
54576         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
54577
54578 2007-03-06  Bruno Haible  <bruno@clisp.org>
54579
54580         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
54581         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
54582
54583 2007-03-06  Bruno Haible  <bruno@clisp.org>
54584
54585         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
54586         (asinl): Declare also if HAVE_DECL_ASINL is set.
54587         (atanl): Declare also if HAVE_DECL_ATANL is set.
54588         (ceill): Declare also if HAVE_DECL_CEILL is set.
54589         (cosl): Declare also if HAVE_DECL_COSL is set.
54590         (expl): Declare also if HAVE_DECL_EXPL is set.
54591         (floorl): Declare also if HAVE_DECL_FLOORL is set.
54592         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
54593         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
54594         (logl): Declare also if HAVE_DECL_LOGL is set.
54595         (sinl): Declare also if HAVE_DECL_SINL is set.
54596         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
54597         (tanl): Declare also if HAVE_DECL_TANL is set.
54598         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
54599         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
54600         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
54601         declaration of frexpl, ldexpl.
54602         * modules/printf-frexpl (Depends-on): Add math.
54603         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
54604
54605 2007-03-05  Bruno Haible  <bruno@clisp.org>
54606
54607         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
54608         frexpl and ldexpl are declared.
54609         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
54610
54611 2007-03-05  Bruno Haible  <bruno@clisp.org>
54612
54613         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
54614         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
54615
54616 2007-03-05  Bruno Haible  <bruno@clisp.org>
54617
54618         * lib/stdio_.h: Include <stddef.h>.
54619
54620 2007-03-05  Bruno Haible  <bruno@clisp.org>
54621
54622         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
54623
54624 2007-03-05  Bruno Haible  <bruno@clisp.org>
54625
54626         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
54627         NetBSD 4, from Ralf Wildenhues.
54628
54629 2007-03-04  Bruno Haible  <bruno@clisp.org>
54630
54631         * lib/vasprintf.h: Update #if logic for the case when the functions
54632         exist but are overridden.
54633
54634 2007-03-04  Bruno Haible  <bruno@clisp.org>
54635
54636         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
54637         implementations: glibc-2.4 and MacOS X 10.3.
54638         * tests/test-vasnprintf-posix.c (test_function): Test also the case
54639         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
54640         * tests/test-vasprintf-posix.c (test_function): Likewise.
54641
54642 2007-03-04  Bruno Haible  <bruno@clisp.org>
54643
54644         * modules/vasprintf-posix-tests: New file.
54645         * tests/test-vasprintf-posix.c: New file.
54646
54647         * modules/vasprintf-posix: New file.
54648         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
54649         defined.
54650         * m4/vasprintf-posix.m4: New file.
54651         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
54652         gl_FUNC_VASPRINTF.
54653         (gl_FUNC_VASPRINTF): Invoke it.
54654         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
54655         here.
54656         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
54657
54658 2007-03-04  Bruno Haible  <bruno@clisp.org>
54659
54660         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
54661         REPLACE_GETTIMEOFDAY.
54662         * modules/sys_time (Makefile.am): Likewise.
54663         * m4/sys_time_h.m4: Likewise.
54664         * m4/gettimeofday.m4: Likewise.
54665
54666 2007-03-04  Bruno Haible  <bruno@clisp.org>
54667
54668         * modules/vasnprintf-posix-tests: New file.
54669         * tests/test-vasnprintf-posix.c: New file.
54670
54671         * modules/vasnprintf-posix: New file.
54672         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
54673         printf-frexpl.h.
54674         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
54675         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
54676         REPLACE_VASNPRINTF is defined.
54677         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
54678         gl_FUNC_VASNPRINTF.
54679         (gl_FUNC_VASNPRINTF): Invoke it.
54680         * m4/vasnprintf-posix.m4: New file.
54681         * m4/printf.m4: New file.
54682
54683 2007-03-04  Bruno Haible  <bruno@clisp.org>
54684
54685         Compile progreloc.c only if --enable-relocatable is specified.
54686         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
54687         if --enable-relocatable was specified.
54688         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
54689         lib_SOURCES.
54690
54691 2007-03-04  Jim Meyering  <jim@meyering.net>
54692
54693         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
54694         Use it consistently, rather than enumerating errno constants.
54695
54696 2007-03-04  Bruno Haible  <bruno@clisp.org>
54697
54698         * modules/xvasprintf-tests: New file.
54699         * tests/test-xvasprintf.c: New file.
54700
54701         * modules/vasprintf-tests: New file.
54702         * tests/test-vasprintf.c: New file.
54703
54704         * modules/vasnprintf-tests: New file.
54705         * tests/test-vasnprintf.c: New file.
54706
54707         * modules/vsnprintf-tests: New file.
54708         * tests/test-vsnprintf.c: New file.
54709
54710         * modules/snprintf-tests: New file.
54711         * tests/test-snprintf.c: New file.
54712
54713 2007-03-04  Bruno Haible  <bruno@clisp.org>
54714
54715         Compile relocatable.c only if --enable-relocatable is specified.
54716         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
54717         gl_RELOCATABLE_LIBRARY.
54718         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
54719         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
54720         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
54721         gl_RELOCATABLE_LIBRARY.
54722         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
54723         (Makefile.am): Remove lib_SOURCES.
54724         * modules/relocatable-lib-lgpl (configure.ac): Invoke
54725         gl_RELOCATABLE_LIBRARY.
54726         (Makefile.am): Remove lib_SOURCES.
54727         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
54728         always.
54729         * modules/relocatable-prog-wrapper (configure.ac): Invoke
54730         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
54731
54732 2007-03-04  Bruno Haible  <bruno@clisp.org>
54733
54734         * modules/argmatch-tests: New file.
54735         * tests/test-argmatch.c: New file.
54736
54737         * tests/test-allocsa.c (main): Halve the number of loop runs.
54738
54739         * modules/alloca-opt-tests: New file.
54740         * tests/test-alloca-opt.c: New file.
54741
54742 2007-03-04  Jim Meyering  <jim@meyering.net>
54743
54744         Work around difference between Linux ACLs and Solaris 10 ZFS.
54745         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
54746         for EINVAL.
54747
54748 2007-03-03  Bruno Haible  <bruno@clisp.org>
54749
54750         * modules/relocatable-prog (Depends-on): Add back progreloc's
54751         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
54752
54753 2007-03-03  Bruno Haible  <bruno@clisp.org>
54754
54755         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
54756         * modules/relocatable-lib: New file.
54757
54758 2007-03-03  Bruno Haible  <bruno@clisp.org>
54759
54760         * modules/relocatable-prog: Renamed from modules/relocatable.
54761         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
54762
54763 2007-03-03  Bruno Haible  <bruno@clisp.org>
54764
54765         * modules/relocatable-script (Files): Add doc/relocatable.texi,
54766         m4/relocatable-lib.m4.
54767         (Depends-on): Remove 'relocatable'.
54768         (configure.ac): Add gl_RELOCATABLE_NOP.
54769
54770 2007-03-03  Bruno Haible  <bruno@clisp.org>
54771
54772         * modules/relocatable-prog-wrapper: New file.
54773         * modules/relocatable (Depends-on): Add it. Remove all other
54774         dependencies except progname.
54775         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
54776
54777         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
54778         (gl_FUNC_STRERROR): Nop.
54779         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
54780
54781         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
54782         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
54783
54784         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
54785         (gl_FUNC_READLINK): Update.
54786
54787         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
54788
54789 2007-03-03  Bruno Haible  <bruno@clisp.org>
54790
54791         * lib/xreadlink.c: Include <unistd.h> unconditionally.
54792         * modules/xreadlink (Depends-on): Add unistd.
54793         * modules/xreadlink-with-size (Depends-on): Likewise.
54794
54795 2007-03-03  Bruno Haible  <bruno@clisp.org>
54796
54797         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
54798         extracted from gt_FUNC_SETENV.
54799         (gt_FUNC_SETENV): Remove macro.
54800         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
54801         remove gt_FUNC_SETENV.
54802
54803 2007-03-03  Bruno Haible  <bruno@clisp.org>
54804
54805         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
54806         ENABLE_RELOCATABLE here.
54807         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
54808
54809 2007-03-03  Bruno Haible  <bruno@clisp.org>
54810
54811         * modules/rbtreehash-list-tests (Depends-on): Add progname.
54812         * tests/test-rbtreehash_list.c: Include progname.h.
54813         (main): Call set_program_name.
54814
54815         * modules/rbtree-oset-tests (Depends-on): Add progname.
54816         * tests/test-rbtree_oset.c: Include progname.h.
54817         (main): Call set_program_name.
54818
54819         * modules/rbtree-list-tests (Depends-on): Add progname.
54820         * tests/test-rbtree_list.c: Include progname.h.
54821         (main): Call set_program_name.
54822
54823         * modules/linked-list-tests (Depends-on): Add progname.
54824         * tests/test-linked_list.c: Include progname.h.
54825         (main): Call set_program_name.
54826
54827 2007-03-03  Bruno Haible  <bruno@clisp.org>
54828
54829         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
54830         All uses of __restrict changed to _Restrict_.
54831         * lib/glob_.h (__restrict): Remove macro.
54832
54833 2007-03-02  Bruno Haible  <bruno@clisp.org>
54834
54835         * modules/gettext (configure.ac): Require gettext infrastructure
54836         from version 0.16.1.
54837
54838 2007-03-02  Bruno Haible  <bruno@clisp.org>
54839
54840         * modules/linkedhash-list-tests (Depends-on): Add progname.
54841         * tests/test-linkedhash_list.c: Include progname.h.
54842         (main): Call set_program_name.
54843
54844         * modules/carray-list-tests (Depends-on): Add progname.
54845         * tests/test-carray_list.c: Include progname.h.
54846         (main): Call set_program_name.
54847
54848         * modules/avltreehash-list-tests (Depends-on): Add progname.
54849         * tests/test-avltreehash_list.c: Include progname.h.
54850         (main): Call set_program_name.
54851
54852         * modules/avltree-oset-tests (Depends-on): Add progname.
54853         * tests/test-avltree_oset.c: Include progname.h.
54854         (main): Call set_program_name.
54855
54856         * modules/avltree-list-tests (Depends-on): Add progname.
54857         * tests/test-avltree_list.c: Include progname.h.
54858         (main): Call set_program_name.
54859
54860         * modules/array-oset-tests (Depends-on): Add progname.
54861         * tests/test-array_oset.c: Include progname.h.
54862         (main): Call set_program_name.
54863
54864         * modules/array-list-tests (Depends-on): Add progname.
54865         * tests/test-array_list.c: Include progname.h.
54866         (main): Call set_program_name.
54867
54868         * modules/argp-tests (Depends-on): Add progname.
54869         * tests/test-argp.c: Include argp.h first. Include progname.h.
54870         (main): Call set_program_name.
54871
54872 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
54873
54874         * doc/gnulib-tool.texi (Initial import): Reword description of
54875         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
54876         limited effect even if defined after the first system include.
54877
54878 2007-03-01  Bruno Haible  <bruno@clisp.org>
54879
54880         * build-aux/config.libpath: Update to libtool-1.5.22.
54881         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54882
54883 2007-03-01  Bruno Haible  <bruno@clisp.org>
54884
54885         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
54886         foo_CFLAGS.
54887         Reported by Ralf Wildenhues.
54888
54889 2007-03-01  Bruno Haible  <bruno@clisp.org>
54890
54891         * build-aux/install-reloc: Remove object files left over by some
54892         compilers.
54893         Reported by Ralf Wildenhues.
54894
54895 2007-03-01  Bruno Haible  <bruno@clisp.org>
54896
54897         * build-aux/install-reloc: Break long lines.
54898
54899 2007-03-01  Bruno Haible  <bruno@clisp.org>
54900
54901         * doc/relocatable.texi: Document that it may not work on OpenBSD.
54902         Reported by Ralf Wildenhues.
54903
54904 2007-03-01  Bruno Haible  <bruno@clisp.org>
54905
54906         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
54907         include ordering constraints.
54908
54909 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54910
54911         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
54912         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
54913         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
54914         as another example.
54915         * lib/time_.h: Fix misspelling.
54916         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54917         Require gl_HEADER_TIME_H_DEFAULTS.
54918         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
54919         * m4/time_r.m4 (gl_TIME_R): Likewise.
54920         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
54921
54922 2007-03-01  Bruno Haible  <bruno@clisp.org>
54923
54924         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
54925         * m4/utimens.m4 (gl_UTIMENS): Likewise.
54926
54927 2007-03-01  Jim Meyering  <jim@meyering.net>
54928
54929         * modules/xreadlink (Maintainer): Add my name.
54930         * modules/xreadlink-with-size (Depends-on): Alphabetize.
54931
54932 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
54933             Bruno Haible  <bruno@clisp.org>
54934
54935         * build-aux/install-reloc: Compile also c-ctype.c.
54936         * build-aux/relocatable.sh.in: New file.
54937         * doc/relocatable.texi: New file.
54938         * doc/relocatable-maint.texi: New file.
54939         * doc/gnulib.texi: Include relocatable-maint.texi.
54940         * lib/progreloc.c: Include unistd.h unconditionally.
54941         * lib/relocwrapper.c: Include unistd.h unconditionally.
54942         Include c-ctype.h.
54943         (add_dotbin): Use c_tolower.
54944         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
54945         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
54946         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
54947         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
54948         to m4/relocatable-lib.m4.
54949         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
54950         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
54951         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
54952         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
54953         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
54954         * modules/relocatable: New file.
54955         * modules/relocatable-lib: New file.
54956         * modules/relocatable-script: New file.
54957
54958 2007-02-28  Bruno Haible  <bruno@clisp.org>
54959
54960         Import --enable-relocatable infrastructure.
54961         * build-aux/config.libpath: New file, from GNU gettext.
54962         * build-aux/install-reloc: New file, from GNU gettext.
54963         * build-aux/reloc-ldflags: New file, from GNU gettext.
54964         * lib/relocatable.h: New file, from GNU gettext.
54965         * lib/relocatable.c: New file, from GNU gettext.
54966         * lib/relocwrapper.c: New file, from GNU gettext.
54967         * m4/relocatable.m4: New file, from GNU gettext.
54968
54969 2007-02-28  Bruno Haible  <bruno@clisp.org>
54970
54971         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
54972
54973         * modules/xreadlink: New file, from GNU gettext with modifications.
54974         * lib/xreadlink.c: New file, from GNU gettext.
54975         * lib/xreadlink.h: Add comments.
54976         (xreadlink): New declaration.
54977
54978         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
54979         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
54980         lib/xreadlink-with-size.c.
54981         (configure.ac): Remove gl_XREADLINK invocation.
54982         (Makefile.am): Augment lib_SOURCES.
54983         * m4/xreadlink.m4: Remove file.
54984         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
54985         (xreadlink_with_size): Renamed from xreadink.
54986         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
54987         * modules/canonicalize (Depends-on): Replace xreadlink with
54988         xreadlink-with-size.
54989         * lib/canonicalize.c (canonicalize_filename_mode): Update.
54990
54991 2007-02-25  Jim Meyering  <jim@meyering.net>
54992
54993         * build-aux/announce-gen: When complaining about excess arguments,
54994         list them.
54995
54996 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
54997
54998         * README: Document signed integer overflow situation more
54999         accurately.
55000
55001 2007-02-25  Bruno Haible  <bruno@clisp.org>
55002
55003         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
55004         'a' or 'A' conversion.
55005
55006 2007-02-25  Bruno Haible  <bruno@clisp.org>
55007
55008         * modules/filename: Renamed from modules/pathname.
55009         (Files): Replace lib/pathname.h with lib/filename.h. Replace
55010         lib/concatpath.c with lib/concat-filename.c.
55011         (Makefile.am): Update.
55012         (Include): Replace pathname.h with filename.h.
55013         * lib/filename.h: Renamed from lib/pathname.h.
55014         (concatenated_filename): Renamed from concatenated_pathname.
55015         * lib/concat-filename.c: Renamed from lib/concatpath.c.
55016         (concatenated_filename): Renamed from concatenated_pathname.
55017         * lib/findprog.c: Include filename.h instead of pathname.h.
55018         (find_in_path): Update.
55019         * lib/javacomp.c: Include filename.h instead of pathname.h.
55020         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
55021         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
55022         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
55023         is_oldgcj_14_13_usable, is_javac_usable): Update.
55024         * lib/javaexec.c: Include filename.h instead of pathname.h.
55025         (execute_java_class): Update.
55026         * modules/findprog: Update.
55027         * modules/javacomp: Update.
55028         * modules/javaexec: Update.
55029         * MODULES.html.sh (File system functions): Add 'filename', remove
55030         'pathname'.
55031
55032 2007-02-25  Bruno Haible  <bruno@clisp.org>
55033
55034         * modules/printf-frexpl-tests: New file.
55035         * tests/test-printf-frexpl.c: New file.
55036
55037         * modules/printf-frexpl: New file.
55038         * lib/printf-frexpl.h: New file.
55039         * lib/printf-frexpl.c: New file.
55040         * m4/printf-frexpl.m4: New file.
55041
55042 2007-02-25  Bruno Haible  <bruno@clisp.org>
55043
55044         * modules/printf-frexp-tests: New file.
55045         * tests/test-printf-frexp.c: New file.
55046
55047         * modules/printf-frexp: New file.
55048         * lib/printf-frexp.h: New file.
55049         * lib/printf-frexp.c: New file.
55050         * m4/printf-frexp.m4: New file.
55051
55052 2007-02-25  Bruno Haible  <bruno@clisp.org>
55053
55054         Assume automake >= 1.10 for the tests.
55055         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
55056         * modules/arctwo-tests: Likewise.
55057         * modules/argp-tests: Likewise.
55058         * modules/avltree-list-tests: Likewise.
55059         * modules/avltree-oset-tests: Likewise.
55060         * modules/avltreehash-list-tests: Likewise.
55061         * modules/carray-list-tests: Likewise.
55062         * modules/crc-tests: Likewise.
55063         * modules/des-tests: Likewise.
55064         * modules/gc-arcfour-tests: Likewise.
55065         * modules/gc-arctwo-tests: Likewise.
55066         * modules/gc-des-tests: Likewise.
55067         * modules/gc-hmac-md5-tests: Likewise.
55068         * modules/gc-hmac-sha1-tests: Likewise.
55069         * modules/gc-md2-tests: Likewise.
55070         * modules/gc-md4-tests: Likewise.
55071         * modules/gc-md5-tests: Likewise.
55072         * modules/gc-pbkdf2-sha1-tests: Likewise.
55073         * modules/gc-rijndael-tests: Likewise.
55074         * modules/gc-sha1-tests: Likewise.
55075         * modules/gc-tests: Likewise.
55076         * modules/getaddrinfo-tests: Likewise.
55077         * modules/hmac-md5-tests: Likewise.
55078         * modules/hmac-sha1-tests: Likewise.
55079         * modules/linked-list-tests: Likewise.
55080         * modules/linkedhash-list-tests: Likewise.
55081         * modules/lock-tests: Likewise.
55082         * modules/md2-tests: Likewise.
55083         * modules/md4-tests: Likewise.
55084         * modules/md5-tests: Likewise.
55085         * modules/rbtree-list-tests: Likewise.
55086         * modules/rbtree-oset-tests: Likewise.
55087         * modules/rbtreehash-list-tests: Likewise.
55088         * modules/read-file-tests: Likewise.
55089         * modules/rijndael-tests: Likewise.
55090         * modules/stdint-tests: Likewise.
55091         * modules/tls-tests: Likewise.
55092
55093 2007-02-24  Bruno Haible  <bruno@clisp.org>
55094
55095         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
55096         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
55097         function; instead check whether isnan with a double argument links.
55098         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
55099         function; instead check whether isnan with a 'long double' argument
55100         links.
55101         Reported by Eric Blake <ebb9@byu.net>.
55102
55103 2007-02-24  Bruno Haible  <bruno@clisp.org>
55104
55105         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
55106         defined.
55107         * lib/isnanl.c: Remove all code. Just include isnan.c.
55108         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
55109
55110 2007-02-25  Jim Meyering  <jim@meyering.net>
55111
55112         Avoid conflicting types for 'unsetenv' on FreeBSD.
55113         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
55114         conflicting with FreeBSD's (5.0 and 6.1) function declaration
55115         in stdlib.h.
55116
55117 2007-02-24  Bruno Haible  <bruno@clisp.org>
55118
55119         * modules/isnanl-nolibm-tests: New file.
55120         * tests/test-isnanl.c: New file.
55121
55122         * modules/isnanl-nolibm: New file.
55123         * lib/isnanl.h: New file.
55124         * lib/isnanl.c: New file.
55125         * m4/isnanl.m4: New file.
55126
55127 2007-02-24  Bruno Haible  <bruno@clisp.org>
55128
55129         * modules/isnan-nolibm-tests: New file.
55130         * tests/test-isnan.c: New file.
55131
55132         * modules/isnan-nolibm: New file.
55133         * lib/isnan.h: New file.
55134         * lib/isnan.c: New file.
55135         * m4/isnan.m4: New file.
55136
55137 2007-02-24  Bruno Haible  <bruno@clisp.org>
55138
55139         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
55140         assume that an exponent fits in 20 bits.
55141
55142 2007-02-24  Jim Meyering  <jim@meyering.net>
55143
55144         * m4/regex.m4: Update the description of the configure-time option,
55145         --without-included-regex, to state accurately what the defaults are,
55146         and perhaps to give people an idea why using this option is risky.
55147
55148 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55149
55150         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
55151         loops on small arguments.  This attempts to avoid the problem
55152         Bruno Haible reported for AIX 4.3.2 in
55153         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
55154
55155 2007-02-23  Bruno Haible  <bruno@clisp.org>
55156
55157         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
55158         Needed for help2man.
55159
55160 2007-02-23  Karl Berry  <karl@gnu.org>
55161
55162         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
55163         exists, foo.h should be cvs-ignored, not committed.
55164
55165 2007-02-23  Eric Blake  <ebb9@byu.net>
55166
55167         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
55168         * lib/stat-time.h (includes): Likewise.
55169         * lib/utimecmp.c (includes): Likewise.
55170         * lib/utimens.h (includes): Likewise.
55171         * lib/getdate.y (includes): Also include "timespec.h" for use
55172         internal to the module.
55173         * modules/utimens (Depends-on): Revert yesterday's patch.
55174         * modules/nanosleep (Depends-on): Add missing dependency.
55175
55176 2007-02-22  Bruno Haible  <bruno@clisp.org>
55177
55178         * lib/glob.c: Don't include getlogin_r.h.
55179
55180 2007-02-22  Jim Meyering  <jim@meyering.net>
55181
55182         * modules/utimens (Depends-on): Add timespec, required for
55183         utimens.h's inclusion of timespec.h.
55184
55185 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
55186
55187         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
55188         long unreadable paths in GNU/Linux.  Problem reported by Andreas
55189         Schwab in
55190         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
55191         I'll try to think of a better way to fix the Solaris problem.
55192
55193         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
55194         like glibc; on Solaris 10, it fails with errno == EINVAL.
55195         POSIX says the behavior is unspecified if the first argument is NULL,
55196         so play it safe and never pass NULL to the system getcwd.
55197
55198 2007-02-21  Jim Meyering  <jim@meyering.net>
55199
55200         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
55201         of gettimeofday.  It would conflict with the one now always
55202         provided via sys_time_.h.  Reported by Matthew Woehlke, as
55203         an IRIX 6.5 build failure.
55204
55205 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
55206
55207         Minor fixups to port to Solaris 10 with Sun C 5.8.
55208         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
55209         * modules/getcwd (Depends-on): Add dirfd.
55210         * lib/putenv.c (putenv): #undef it.
55211         (rpl_putenv): New decl.
55212         (malloc, free): Include <stdlib.h> rather than prototyping separately.
55213
55214 2007-02-20  Bruno Haible  <bruno@clisp.org>
55215
55216         * modules/stdio-tests: New file.
55217         * tests/test-stdio.c: New file.
55218
55219         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
55220         (Depends-on): Add stdio.
55221         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55222         (Include): Use <stdio.h> instead of vsnprintf.h.
55223         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55224         HAVE_DECL_VSNPRINTF.
55225         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
55226
55227         * modules/snprintf (Files): Remove lib/snprintf.h.
55228         (Depends-on): Add stdio.
55229         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55230         (Include): Use <stdio.h> instead of snprintf.h.
55231         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55232         HAVE_DECL_SNPRINTF.
55233         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
55234         * lib/getaddrinfo.c: Likewise.
55235
55236         * modules/stdio: New file.
55237         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
55238         * lib/snprintf.h: Remove file.
55239         * lib/vsnprintf.h: Remove file.
55240         * lib/.cppi-disable: Remove snprintf.h.
55241         * m4/stdio_h.m4: New file.
55242         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
55243
55244 2007-02-20  Jim Meyering  <jim@meyering.net>
55245
55246         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
55247         used by e.g., mingw.  From Bruno Haible.
55248
55249 2007-02-19  Bruno Haible  <bruno@clisp.org>
55250
55251         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
55252         warnings.
55253         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55254
55255 2007-02-19  Bruno Haible  <bruno@clisp.org>
55256
55257         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
55258         from mingw users.
55259
55260 2007-02-19  Bruno Haible  <bruno@clisp.org>
55261
55262         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
55263         warnings.
55264         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
55265
55266 2007-02-19  Jim Meyering  <jim@meyering.net>
55267
55268         Don't use FD after a successful "fdopendir (fd)".
55269         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
55270         Reset it by calling dirfd on the just-obtained DIR*.
55271
55272         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
55273         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
55274
55275 2007-02-18  Bruno Haible  <bruno@clisp.org>
55276
55277         * lib/readlink.c: Include <unistd.h>.
55278         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
55279         HAVE_READLINK.
55280         * modules/readlink (Depends-on): Add unistd.
55281         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55282         (Include): Add <unistd.h>.
55283
55284         * lib/getlogin_r.h: Remove file.
55285         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
55286         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
55287         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
55288         HAVE_DECL_GETLOGIN_R.
55289         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
55290         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55291         (Include): Use <unistd.h> instead of getlogin_r.h.
55292
55293         * lib/getcwd.h: Remove file.
55294         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
55295         * lib/xgetcwd.c: Likewise.
55296         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
55297         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
55298         * modules/getcwd (Files): Remove lib/getcwd.h.
55299         (Depends-on): Add unistd.
55300         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55301         (Include): Use <unistd.h> instad of getcwd.h.
55302
55303         * lib/ftruncate.c: Include <unistd.h> first.
55304         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
55305         Set HAVE_FTRUNCATE.
55306         * modules/ftruncate (Depends-on): Add unistd.
55307         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55308
55309         * lib/fchdir.c: Include <unistd.h> first.
55310         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
55311         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
55312         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
55313         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55314         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
55315
55316         * lib/dup2.c: Include <unistd.h> first.
55317         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
55318         HAVE_DUP2.
55319         * modules/dup2 (Depends-on): Add unistd.
55320         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55321
55322         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
55323         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
55324         REPLACE_CHOWN. Don't define chown as a macro here.
55325         * modules/chown (Depends-on): Add unistd.
55326         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55327
55328         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
55329         Add definition for GL_LINK_WARNING.
55330         (chown, dup2): New declarations.
55331         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
55332         link warning.
55333         (ftruncate): New declaration.
55334         (getcwd): New declaration, taken from old getcwd.h.
55335         (getlogin_r): New declaration, taken from old getlogin_r.h.
55336         (readlink): New declaration.
55337         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
55338         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
55339         (gl_PREREQ_UNISTD): Remove macro.
55340         (gl_UNISTD_MODULE_INDICATOR): New macro.
55341         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
55342         many new variables. Don't set UNISTD_H.
55343         * modules/unistd (Description): Change.
55344         (Depends-on): Add link-warning.
55345         (configure.ac): Update.
55346         (Makefile.am): Create unistd.h always. Substitute many new variables
55347         into it.
55348
55349 2007-02-18  Bruno Haible  <bruno@clisp.org>
55350
55351         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
55352         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
55353         HAVE_GETSUBOPT.
55354         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
55355         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
55356         * lib/getsubopt.h: Remove file.
55357         * modules/getsubopt (Files): Remove lib/getsubopt.h.
55358         (Depends-on): Add stdlib.
55359         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55360         (Includes): Use <stdlib.h> instead of getsubopt.h.
55361         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
55362         Set HAVE_GETSUBOPT.
55363         * lib/getsubopt.c: Don't include getsubopt.h.
55364
55365 2007-02-18  Bruno Haible  <bruno@clisp.org>
55366
55367         * modules/fchdir (Depends-on): Add dup2.
55368
55369 2007-02-18  Bruno Haible  <bruno@clisp.org>
55370
55371         * lib/stdlib_.h: Handle glibc's special invocation convention
55372         specially.
55373
55374 2007-02-18  Bruno Haible  <bruno@clisp.org>
55375
55376         * modules/stdlib-tests: New file.
55377         * tests/test-stdlib.c: New file.
55378
55379         * modules/mkstemp (Files): Remove lib/mkstemp.h.
55380         (Depends-on): Add stdlib.
55381         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55382         (Includes): Use <stdlib.h> instead of mkstemp.h.
55383         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55384         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
55385         * lib/mkstemp.c: Don't include mkstemp.h.
55386         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
55387         * lib/stdlib--.h: Don't include mkstemp.h.
55388
55389         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
55390         (Depends-on): Add stdlib.
55391         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55392         (Includes): Use <stdlib.h> instead of mkdtemp.h.
55393         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55394         HAVE_MKDTEMP.
55395         * lib/mkdtemp.c: Don't include mkdtemp.h.
55396         * lib/clean-temp.c: Don't include mkdtemp.h.
55397
55398         * modules/exit (Files): Remove lib/exit.h.
55399         (Depends-on): Add stdlib.
55400         (Makefile.am): Remove lib_SOURCES.
55401         (Include): Use <stdlib.h> instead of exit.h.
55402         * lib/argmatch.c: Don't include exit.h.
55403         * lib/execute.c: Likewise.
55404         * lib/pagealign_alloc.c: Likewise.
55405         * lib/pipe.c: Likewise.
55406         * lib/wait-process.c: Likewise.
55407         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
55408         * lib/exitfail.c: Likewise.
55409         * lib/savewd.c: Likewise.
55410         * lib/xsetenv.c: Likewise.
55411
55412         * modules/stdlib: New file.
55413         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
55414         and extra comments about mkstemp().
55415         * lib/exit.h: Remove file.
55416         * lib/mkdtemp.h: Remove file.
55417         * lib/mkstemp.h: Remove file.
55418         * m4/stdlib_h.m4: New file.
55419         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
55420
55421 2007-02-18  Bruno Haible  <bruno@clisp.org>
55422
55423         * modules/math-tests: New file.
55424         * tests/test-math.c: New file.
55425
55426         * modules/math: New file.
55427         * modules/mathl (Files): Remove lib/mathl.h.
55428         (Depends-on): Add math.
55429         (Makefile.am): Don't mention mathl.h.
55430         (Include): Use <math.h> instead of mathl.h.
55431         * lib/math_.h: New file.
55432         * lib/mathl.h: Remove file.
55433         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
55434         mathl.h.
55435         * lib/asinl.c: Likewise.
55436         * lib/atanl.c: Likewise.
55437         * lib/ceill.c: Likewise.
55438         * lib/cosl.c: Likewise.
55439         * lib/expl.c: Likewise.
55440         * lib/floorl.c: Likewise.
55441         * lib/frexpl.c: Likewise.
55442         * lib/ldexpl.c: Likewise.
55443         * lib/logl.c: Likewise.
55444         * lib/sincosl.c: Likewise.
55445         * lib/sinl.c: Likewise.
55446         * lib/sqrtl.c: Likewise.
55447         * lib/tanl.c: Likewise.
55448         * lib/trigl.c: Likewise.
55449         * m4/math_h.m4: New file.
55450         * MODULES.html.sh (Mathematics): Add math.
55451
55452 2007-02-17  Bruno Haible  <bruno@clisp.org>
55453
55454         * modules/wctype-tests: New file.
55455         * tests/test-wctype.c: New file.
55456
55457         * modules/wchar-tests: New file.
55458         * tests/test-wchar.c: New file.
55459
55460         * modules/unistd-tests: New file.
55461         * tests/test-unistd.c: New file.
55462
55463         * modules/time-tests: New file.
55464         * tests/test-time.c: New file.
55465
55466         * modules/sysexits-tests: New file.
55467         * tests/test-sysexits.c: New file.
55468
55469         * modules/sys_time-tests: New file.
55470         * tests/test-sys_time.c: New file.
55471
55472         * modules/sys_stat-tests: New file.
55473         * tests/test-sys_stat.c: New file.
55474
55475         * modules/sys_socket-tests: New file.
55476         * tests/test-sys_socket.c: New file.
55477
55478         * modules/sys_select-tests: New file.
55479         * tests/test-sys_select.c: New file.
55480
55481         * modules/string-tests: New file.
55482         * tests/test-string.c: New file.
55483
55484         * modules/stdbool-tests: New file.
55485         * tests/test-stdbool.c: New file.
55486
55487         * modules/netinet_in-tests: New file.
55488         * tests/test-netinet_in.c: New file.
55489
55490         * modules/inttypes-tests: New file.
55491         * tests/test-inttypes.c: New file.
55492
55493         * modules/fcntl-tests: New file.
55494         * tests/test-fcntl.c: New file.
55495
55496         * modules/byteswap-tests: New file.
55497         * tests/test-byteswap.c: New file.
55498
55499         * modules/arpa_inet-tests: New file.
55500         * tests/test-arpa_inet.c: New file.
55501
55502 2007-02-17  Bruno Haible  <bruno@clisp.org>
55503
55504         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
55505         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
55506         if the corresponding module is not enabled. Emit link warnings if
55507         the function is used nevertheless.
55508         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
55509         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
55510         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
55511         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
55512         * modules/inttypes (Depends-on): Add link-warning.
55513         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55514         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
55515         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
55516         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
55517         * modules/imaxdiv (configure.ac): Likewise.
55518         * modules/strtoimax (configure.ac): Likewise.
55519         * modules/strtoumax (configure.ac): Likewise.
55520
55521 2007-02-17  Bruno Haible  <bruno@clisp.org>
55522
55523         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
55524         gl_STRING_MODULE_INDICATOR_DEFAULTS.
55525         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
55526         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
55527
55528 2007-02-17  Bruno Haible  <bruno@clisp.org>
55529
55530         * modules/link-warning: New file.
55531         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
55532         * lib/string_.h (GL_LINK_WARNING): Remove definition.
55533         * modules/string (Depends-on): Add link-warning.
55534         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55535         string.h.
55536         * MODULES.html.sh (Support for building libraries and executables): Add
55537         link-warning.
55538
55539 2007-02-17  Bruno Haible  <bruno@clisp.org>
55540
55541         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
55542         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
55543         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
55544         long lines.
55545
55546 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
55547             Bruno Haible  <bruno@clisp.org>
55548
55549         * modules/tmpfile: New file.
55550         * lib/tmpfile.c: New file.
55551         * m4/tmpfile.m4: New file.
55552         * MODULES.html.sh (func_all_modules): New section "Input/output".
55553
55554 2007-02-15  Bruno Haible  <bruno@clisp.org>
55555
55556         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
55557         (supports_delete_on_close): New function.
55558         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
55559
55560 2007-02-14  Bruno Haible  <bruno@clisp.org>
55561
55562         * modules/mbspcasecmp-tests: New file.
55563         * tests/test-mbspcasecmp.sh: New file.
55564         * tests/test-mbspcasecmp.c: New file.
55565
55566         New module mbspcasecmp.
55567         * modules/mbspcasecmp: New file.
55568         * lib/mbspcasecmp.c: New file.
55569         * lib/string_.h (strncasecmp): Change warning message.
55570         (mbspcasecmp): New declaration.
55571         * m4/mbspcasecmp.m4: New file.
55572         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55573         GNULIB_MBSPCASECMP.
55574         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
55575         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
55576
55577 2007-02-14  Bruno Haible  <bruno@clisp.org>
55578
55579         * modules/mbsncasecmp-tests: New file.
55580         * tests/test-mbsncasecmp.sh: New file.
55581         * tests/test-mbsncasecmp.c: New file.
55582
55583         New module mbsncasecmp.
55584         * modules/mbsncasecmp: New file.
55585         * lib/mbsncasecmp.c: New file.
55586         * lib/string_.h (mbsncasecmp): New declaration.
55587         * m4/mbsncasecmp.m4: New file.
55588         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55589         GNULIB_MBSNCASECMP.
55590         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
55591         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
55592
55593 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
55594
55595         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
55596         Verify that it doesn't overlap with our flags.
55597         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
55598         do not have the desired effect in multibyte locales; instead, use
55599         mbscasecmp.
55600         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
55601         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
55602         we don't require GNU fnmatch ourselves (if our users require it, they
55603         should do so explicitly).
55604
55605         Fix regex code so it doesn't rely on strcasecmp.
55606         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
55607         Otherwise, include gnulib's langinfo.h.
55608         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
55609         undesirable behavior in non-C locales.  Instead, rely on localecharset.
55610         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
55611         * modules/regex (FILES): Remove m4/codeset.m4.
55612         (Depends-on): Add localcharset.  Remove strcase.
55613
55614 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55615
55616         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
55617         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
55618
55619 2007-02-13  Bruno Haible  <bruno@clisp.org>
55620
55621         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
55622         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55623
55624 2007-02-12  Bruno Haible  <bruno@clisp.org>
55625
55626         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
55627         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
55628         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
55629         time warning rather than a link error.
55630
55631 2007-02-12  Bruno Haible  <bruno@clisp.org>
55632
55633         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
55634         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55635         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55636
55637 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55638
55639         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
55640         args, not 2.
55641
55642 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55643
55644         New module 'time', so that apps can include <time.h> as per
55645         POSIX and GNU instead of separate include files like time_r.h
55646         and timegm.h.  This implementation tries out a simpler approach
55647         for replacing decls in standard include files (as compared to
55648         the string module), somewhat as an experiment.
55649
55650         * config/srclist.txt: Comment out mktime.c for now.
55651         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
55652         since it doesn't apply any more.  Use generic wording instead.
55653         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
55654         'time'.
55655         * lib/time_.h, m4/time_h.m4, modules/time: New files.
55656         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
55657         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
55658         Don't include <sys/types.h>; no longer needed since we assume C89.
55659         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
55660         * lib/strftime.c: Likewise.
55661         * lib/time_r.c: Likewise.
55662         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
55663         * lib/nanosleep.c: Include <time.h> first, to check interface.
55664         * lib/strptime.c: Likewise.
55665         * lib/time_r.c: Likewise.
55666         * lib/timegm.c: Likewise.
55667         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
55668         needed.
55669         * lib/timegm.c: Don't include timegm.h; no longer needed.
55670         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
55671         time.h now handles any problems in that area.
55672         (struct timespec, nanosleep): Remove; time.h now arranges for these.
55673         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
55674         that time.h defines struct timespec.
55675         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
55676         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
55677         handles that.
55678         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
55679         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
55680         needed.  Set REPLACE_LOCALTIME.
55681         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
55682         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
55683         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
55684         nanosleep; time_h.m4 now does that.  Don't require
55685         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
55686         module handles this now.
55687         * modules/getdate (Depends-on): Remove timespec.  Add time.
55688         * modules/nanosleep (Depends-on): Likewise.
55689         * modules/stat-time (Depends-on): Likewise.
55690         * modules/nanosleep (Include): Include time.h, not timespec.h.
55691         * modules/strptime (Files): Remove lib/strptime.h.
55692         (Depends-on): Add extensions, time.
55693         (Include): Include time.h, not strptime.h.
55694         * modules/time_r (Files): Remove lib/time_r.h.
55695         (Depends-on): Add time.
55696         (Include): Include time.h, not time_r.h.
55697         * modules/timegm: Likewise.
55698         * modules/timespec (Description): Now does timespec-related decls
55699         of our own, instead of struct timespec itself.
55700         (Depends-on): Add time; remove extensions.
55701         (Maintainer): Add self.
55702         * modules/utimecmp (Depends-on): Add time; remove timespec.
55703         * modules/utimens (Depends-on): Likewise.
55704         * modules/xnanosleep (Depends-on): Likewise.
55705
55706 2007-02-11  Bruno Haible  <bruno@clisp.org>
55707
55708         * lib/c-strstr.c: Include allocsa.h.
55709         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55710         * lib/c-strcasestr.c: Include allocsa.h.
55711         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55712         * lib/strcasestr.c: Include allocsa.h.
55713         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55714         * lib/mbsstr.c: Include allocsa.h.
55715         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
55716         allocsa/freesa instead of malloc/free.
55717         * lib/mbscasestr.c: Include allocsa.h.
55718         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
55719         allocsa/freesa instead of malloc/free.
55720         * modules/c-strstr (Depends-on): Add allocsa.
55721         * modules/c-strcasestr (Depends-on): Likewise.
55722         * modules/strcasestr (Depends-on): Likewise.
55723         * modules/mbsstr (Depends-on): Likewise.
55724         * modules/mbscasestr (Depends-on): Likewise.
55725
55726 2007-02-11  Bruno Haible  <bruno@clisp.org>
55727
55728         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
55729
55730         * modules/mbsspn-tests: New file.
55731         * tests/test-mbsspn.sh: New file.
55732         * tests/test-mbsspn.c: New file.
55733
55734 2007-02-11  Bruno Haible  <bruno@clisp.org>
55735
55736         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
55737
55738         * modules/mbspbrk-tests: New file.
55739         * tests/test-mbspbrk.sh: New file.
55740         * tests/test-mbspbrk.c: New file.
55741
55742 2007-02-11  Bruno Haible  <bruno@clisp.org>
55743
55744         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
55745         unneeded cast.
55746
55747         * modules/mbscspn-tests: New file.
55748         * tests/test-mbscspn.sh: New file.
55749         * tests/test-mbscspn.c: New file.
55750
55751 2007-02-11  Bruno Haible  <bruno@clisp.org>
55752
55753         * modules/mbscasecmp-tests: New file.
55754         * tests/test-mbscasecmp.sh: New file.
55755         * tests/test-mbscasecmp.c: New file.
55756
55757 2007-02-11  Bruno Haible  <bruno@clisp.org>
55758
55759         Ensure O(n) worst-case complexity of mbscasestr.
55760         * lib/mbscasestr.c: Include stdbool.h.
55761         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
55762         functions.
55763         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
55764         the bookkeeping indicates that it's worth it.
55765         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
55766
55767         * modules/mbscasestr-tests: New file.
55768         * tests/test-mbscasestr1.c: New file.
55769         * tests/test-mbscasestr2.sh: New file.
55770         * tests/test-mbscasestr2.c: New file.
55771         * tests/test-mbscasestr3.sh: New file.
55772         * tests/test-mbscasestr3.c: New file.
55773         * tests/test-mbscasestr4.sh: New file.
55774         * tests/test-mbscasestr4.c: New file.
55775         * m4/locale-tr.m4: New file.
55776
55777 2007-02-11  Bruno Haible  <bruno@clisp.org>
55778
55779         Ensure O(n) worst-case complexity of mbsstr.
55780         * lib/mbsstr.c: Include stdbool.h.
55781         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
55782         functions.
55783         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
55784         bookkeeping indicates that it's worth it.
55785         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
55786
55787         * modules/mbsstr-tests: New file.
55788         * tests/test-mbsstr1.c: New file.
55789         * tests/test-mbsstr2.sh: New file.
55790         * tests/test-mbsstr2.c: New file.
55791         * tests/test-mbsstr3.sh: New file.
55792         * tests/test-mbsstr3.c: New file.
55793         * m4/locale-fr.m4: New file.
55794
55795 2007-02-11  Bruno Haible  <bruno@clisp.org>
55796
55797         * lib/mbsrchr.c (mbsrchr): Fix bug.
55798
55799         * modules/mbsrchr-tests: New file.
55800         * tests/test-mbsrchr.sh: New file.
55801         * tests/test-mbsrchr.c: New file.
55802
55803 2007-02-11  Bruno Haible  <bruno@clisp.org>
55804
55805         * lib/mbschr.c (mbschr): Fix bug.
55806
55807         * modules/mbschr-tests: New file.
55808         * tests/test-mbschr.sh: New file.
55809         * tests/test-mbschr.c: New file.
55810         * m4/locale-zh.m4: New file.
55811
55812 2007-02-11  Bruno Haible  <bruno@clisp.org>
55813
55814         Support for copying multibyte string iterators.
55815         * lib/mbiter.h: Include <string.h>.
55816         (mbiter_multi_copy): New function.
55817         (mbi_copy): New macro.
55818         * lib/mbuiter.h: Include <string.h>.
55819         (mbuiter_multi_copy): New function.
55820         (mbui_copy): New macro.
55821
55822 2007-02-11  Bruno Haible  <bruno@clisp.org>
55823
55824         New module mbslen.
55825         * modules/mbslen: New file.
55826         * lib/mbslen.c: New file.
55827         * lib/string_.h (mbslen): New declaration.
55828         * m4/mbslen.m4: New file.
55829         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55830         GNULIB_MBSLEN.
55831         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
55832         * MODULES.html.sh (Internationalization functions): Add mbslen.
55833
55834 2007-02-11  Bruno Haible  <bruno@clisp.org>
55835
55836         Ensure O(n) worst-case complexity of strcasestr substitute.
55837         * lib/strcasestr.c: Include stdbool.h.
55838         (knuth_morris_pratt): New function.
55839         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
55840         bookkeeping indicates that it's worth it.
55841         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
55842
55843         * modules/strcasestr-tests: New file.
55844         * tests/test-strcasestr.c: New file.
55845
55846 2007-02-11  Bruno Haible  <bruno@clisp.org>
55847
55848         Ensure O(n) worst-case complexity of c_strcasestr.
55849         * lib/c-strcasestr.c: Include stdbool.h, string.h.
55850         (knuth_morris_pratt): New function.
55851         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
55852         the bookkeeping indicates that it's worth it.
55853         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
55854
55855         * modules/c-strcasestr-tests: New file.
55856         * tests/test-c-strcasestr.c: New file.
55857
55858 2007-02-11  Bruno Haible  <bruno@clisp.org>
55859
55860         Ensure O(n) worst-case complexity of c_strstr.
55861         * lib/c-strstr.c: Include stdbool.h, string.h.
55862         (knuth_morris_pratt): New function.
55863         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
55864         bookkeeping indicates that it's worth it.
55865         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
55866
55867         * lib/c-strstr.c: Complete rewrite for maintainability.
55868
55869         * modules/c-strstr-tests: New file.
55870         * tests/test-c-strstr.c: New file.
55871
55872 2007-02-11  Bruno Haible  <bruno@clisp.org>
55873
55874         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
55875         5.2.1 and earlier, whereby \055 was treated just like the range
55876         delimiter '-'.
55877         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55878
55879 2007-02-08  Bruno Haible  <bruno@clisp.org>
55880
55881         * modules/regex (Depends-on): Add stdbool.
55882         Reported by Dalibor Topic <robilad@kaffe.org>.
55883
55884 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
55885
55886         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
55887         Prefer returning from main to exiting from it.
55888         Remove unnecessary parens after sizeof.
55889
55890 2007-02-05  Bruno Haible  <bruno@clisp.org>
55891
55892         New module mbssep.
55893         * modules/mbssep: New file.
55894         * lib/mbssep.c: New file.
55895         * lib/string_.h (strsep): Add a conditional link warning.
55896         (mbssep): New declaration.
55897         * m4/mbssep.m4: New file.
55898         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55899         GNULIB_MBSSEP.
55900         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
55901         * MODULES.html.sh (Internationalization functions): Add mbssep.
55902
55903 2007-02-05  Bruno Haible  <bruno@clisp.org>
55904
55905         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
55906         Optimize search in case of 1 delimiter.
55907
55908 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
55909
55910         * lib/acl.h: Include sys/types.h before sys/acl.h.
55911
55912 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
55913
55914         Merge upstream fix for glibc bugzilla #3957:
55915
55916         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
55917
55918         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
55919         bit for RE_HAT_LISTS_NOT_NEWLINE.
55920         (build_charclass_op): Remove bogus comment.
55921
55922 2007-02-05  Simon Josefsson  <simon@josefsson.org>
55923
55924         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
55925
55926 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55927
55928         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
55929         * lib/memmem.c [!defined _LIBC]: Include config.h.
55930
55931 2007-02-04  Bruno Haible  <bruno@clisp.org>
55932
55933         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
55934         warning message.
55935
55936 2007-02-04  Bruno Haible  <bruno@clisp.org>
55937
55938         New module mbstok_r.
55939         * modules/mbstok_r: New file.
55940         * lib/mbstok_r.c: New file.
55941         * lib/string_.h (strtok_r): Change argument names to match the
55942         comments. Add a conditional link warning.
55943         (mbstok_r): New declaration.
55944         * m4/mbstok_r.m4: New file.
55945         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55946         GNULIB_MBSTOK_R.
55947         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
55948         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
55949
55950 2007-02-04  Bruno Haible  <bruno@clisp.org>
55951
55952         New module mbsspn.
55953         * modules/mbsspn: New file.
55954         * lib/mbsspn.c: New file.
55955         * lib/string_.h (strspn): Add a conditional link warning.
55956         (mbsspn): New declaration.
55957         * m4/mbsspn.m4: New file.
55958         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55959         GNULIB_MBSSPN.
55960         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
55961         * MODULES.html.sh (Internationalization functions): Add mbsspn.
55962
55963 2007-02-04  Bruno Haible  <bruno@clisp.org>
55964
55965         New module mbspbrk.
55966         * modules/mbspbrk: New file.
55967         * lib/mbspbrk.c: New file.
55968         * lib/string_.h (strpbrk): Add a conditional link warning.
55969         (mbspbrk): New declaration.
55970         * m4/mbspbrk.m4: New file.
55971         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55972         GNULIB_MBSPBRK.
55973         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
55974         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
55975
55976 2007-02-04  Bruno Haible  <bruno@clisp.org>
55977
55978         New module mbscspn.
55979         * modules/mbscspn: New file.
55980         * lib/mbscspn.c: New file.
55981         * lib/string_.h (strcspn): Add a conditional link warning.
55982         (mbscspn): New declaration.
55983         * m4/mbscspn.m4: New file.
55984         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55985         GNULIB_MBSCSPN.
55986         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
55987         * MODULES.html.sh (Internationalization functions): Add mbscspn.
55988
55989 2007-02-04  Bruno Haible  <bruno@clisp.org>
55990
55991         New module mbscasestr, reduced goal of strcasestr.
55992         * modules/mbscasestr: New file.
55993         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
55994         (mbscasestr): Renamed from strcasestr.
55995         * lib/strcasestr.c: Don't include mbuiter.h.
55996         (strcasestr): Remove support for multibyte locales.
55997         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
55998         Change the conditional link warning.
55999         (mbscasestr): New declaration.
56000         * m4/mbscasestr.m4: New file.
56001         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
56002         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
56003         REPLACE_STRCASESTR.
56004         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
56005         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56006         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56007         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
56008         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
56009         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56010         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
56011         (Depends-on): Remove mbuiter.
56012         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
56013
56014 2007-02-04  Bruno Haible  <bruno@clisp.org>
56015
56016         Simplify handling of strncasecmp.
56017         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
56018         the conditional link warning.
56019         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56020         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
56021         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
56022         * modules/strcase (configure.ac): Don't invoke
56023         gl_STRING_MODULE_INDICATOR.
56024         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
56025
56026 2007-02-04  Bruno Haible  <bruno@clisp.org>
56027
56028         New module mbscasecmp, reduced goal of strcasecmp.
56029         * modules/mbscasecmp: New file.
56030         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
56031         (mbscasecmp): Renamed from strcasecmp.
56032         * lib/strcasecmp.c: Don't include mbuiter.h.
56033         (strcasecmp): Remove support for multibyte locales.
56034         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
56035         Change the conditional link warning.
56036         (mbscasecmp): New declaration.
56037         * m4/mbscasecmp.m4: New file.
56038         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
56039         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
56040         REPLACE_STRCASECMP.
56041         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
56042         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56043         GNULIB_MBSCASECMP.
56044         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
56045         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
56046         * modules/strcase (Files): Remove m4/mbrtowc.m4.
56047         (Depends-on): Remove mbuiter.
56048         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
56049
56050 2007-02-04  Bruno Haible  <bruno@clisp.org>
56051
56052         New module mbsstr. Remove module strstr.
56053         * modules/mbsstr: New file.
56054         * modules/strstr: Remove file.
56055         * lib/mbsstr.c: Renamed from lib/strstr.c.
56056         (mbsstr): Renamed from strstr.
56057         * lib/string_.h (strstr): Remove declaration. Change the conditional
56058         link warning.
56059         (mbsstr): New declaration.
56060         * m4/mbsstr.m4: New file.
56061         * m4/strstr.m4: Remove file.
56062         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
56063         REPLACE_STRSTR.
56064         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
56065         Don't initialize GNULIB_STRSTR.
56066         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
56067         substitute GNULIB_STRSTR and REPLACE_STRSTR.
56068         * MODULES.html.sh (Internationalization functions): Add mbsstr.
56069         (Support for systems lacking ANSI C 89): Remove strstr.
56070
56071 2007-02-04  Bruno Haible  <bruno@clisp.org>
56072
56073         New module mbsrchr.
56074         * modules/mbsrchr: New file.
56075         * lib/mbsrchr.c: New file.
56076         * lib/string_.h (strrchr): Add a conditional link warning.
56077         (mbsrchr): New declaration.
56078         * m4/mbsrchr.m4: New file.
56079         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56080         GNULIB_MBSRCHR.
56081         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
56082         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
56083
56084 2007-02-04  Bruno Haible  <bruno@clisp.org>
56085
56086         New module mbschr.
56087         * modules/mbschr: New file.
56088         * lib/mbschr.c: New file.
56089         * lib/string_.h (strchr): Add a conditional link warning.
56090         (mbschr): New declaration.
56091         * m4/mbschr.m4: New file.
56092         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56093         GNULIB_MBSCHR.
56094         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
56095         * MODULES.html.sh (Internationalization functions): Add mbschr.
56096
56097 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56098
56099         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
56100
56101         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
56102
56103 2007-02-04  Bruno Haible  <bruno@clisp.org>
56104
56105         New module description section 'configure.ac-early'.
56106         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
56107         (func_get_autoconf_early_snippet): New function.
56108         (func_import, func_create_testdir): Use it. Remove special cases for
56109         modules 'extensions' and 'lock'.
56110         * modules/extensions (configure.ac-early): Require
56111         gl_USE_SYSTEM_EXTENSIONS.
56112         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
56113
56114 2007-02-04  Bruno Haible  <bruno@clisp.org>
56115
56116         Make use of gcj-4.3's -fsource and -ftarget option.
56117         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
56118         and if so try the options -fsource and -ftarget.
56119         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
56120         source_version, ftarget_option, target_version arguments.
56121         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
56122         (is_envjavac_oldgcj_14_14_usable): Renamed from
56123         is_envjavac_gcj_14_14_usable.
56124         (is_envjavac_oldgcj_14_13_usable): Renamed from
56125         is_envjavac_gcj_14_13_usable.
56126         (is_gcj_present): Update.
56127         (is_gcj_43, is_gcj43_usable): New functions.
56128         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
56129         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
56130         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
56131         try the options -fsource and -ftarget.
56132
56133 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56134
56135         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
56136         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
56137         larger value.
56138
56139 2007-02-03  Jim Meyering  <jim@meyering.net>
56140
56141         Give tools a better chance to allocate space for very large buffers.
56142         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
56143
56144         Make pwd and readlink work also when run with an unreadable parent dir
56145         on systems with openat support.
56146         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
56147         provided getcwd function, even when we have openat support.
56148         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
56149
56150 2007-02-02  Bruno Haible  <bruno@clisp.org>
56151
56152         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
56153         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
56154         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
56155         portability problems if one of these functions is only used on specific
56156         platforms.
56157         Reported by Paul Eggert.
56158
56159 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
56160
56161         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
56162         is causing more trouble than it's curing.
56163         * lib/regex_internal.h (__mempcpy): Remove.
56164         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
56165         (and make the code a tad smaller to boot).
56166         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
56167
56168 2007-02-02  Jim Meyering  <jim@meyering.net>
56169
56170         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
56171         section, not in the Makefile.am: one.
56172
56173 2007-02-02  Eric Blake  <ebb9@byu.net>
56174
56175         * lib/strchrnul.c: Always include config.h first.
56176
56177         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
56178         gnulib strstr is not necessary here.
56179
56180 2007-02-02  Simon Josefsson  <simon@josefsson.org>
56181
56182         * m4/socklen.m4: Fix typo.
56183
56184 2007-02-02  Eric Blake  <ebb9@byu.net>
56185
56186         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
56187         * modules/netinet_in (Makefile.am): Likewise.
56188
56189 2007-02-01  Bruno Haible  <bruno@clisp.org>
56190
56191         * lib/string_.h (GL_LINK_WARNING): New macro.
56192         (strcasecmp, strstr, strcasestr): If provided by the system,
56193         conditionally define as a macro that leads to a warning instead of to
56194         an error.
56195         (strncasecmp): Conditionally define as a macro that leads to a warning.
56196
56197 2007-02-01  Karl Berry  <karl@gnu.org>
56198
56199         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
56200
56201 2007-02-01  Bruno Haible  <bruno@clisp.org>
56202
56203         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
56204         renamings.
56205
56206 2007-02-01  Eric Blake  <ebb9@byu.net>
56207
56208         * modules/regex (Depends-on): Revert dependence on mempcpy.
56209         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
56210         module's definition of mempcpy.
56211         Reported by Paul Eggert.
56212
56213 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
56214
56215         * lib/string_.h: If the gnulib module XYZ is not present, undefine
56216         the symbol XYZ before redefining it.  This fixes a problem with
56217         programs that don't use XYZ, when compiled on systems that define
56218         XYZ to something else.
56219
56220 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
56221
56222         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
56223         occurs when "mkdir -m foo" creates a setgid directory that is (1)
56224         writeable to group or other and (2) is intended to have a special
56225         mode bit that is set or cleared.  In such a case, the directory
56226         should be neither group- nor other-writeable until the special
56227         mode bits are right.
56228
56229 2007-01-31  Eric Blake  <ebb9@byu.net>
56230
56231         * modules/mountlist (Depends-on): Add strstr.
56232
56233         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
56234         bug.
56235         * modules/string (Makefile.am): Remove redundant replacement.
56236         * modules/regex (Depends-on): Add mempcpy.
56237
56238 2007-01-31  Bruno Haible  <bruno@clisp.org>
56239
56240         New module description field 'Link'.
56241         * gnulib-tool (func_usage): Document --extract-link-directive.
56242         (sed_extract_prog): Recognize 'Link' directive.
56243         (func_get_link_directive): New function.
56244         (func_import): Show summary of link directives.
56245         Handle --extract-link-directive option.
56246         * modules/acl (Link): New section.
56247         * modules/clock-time (Link): New section.
56248         * modules/euidaccess (Link): New section.
56249         * modules/gettext (Link): New section.
56250         * modules/iconv (Link): New section.
56251         * modules/lock (Link): New section.
56252         * modules/nanosleep (Link): New section.
56253         * modules/readline (Link): New section.
56254
56255 2007-01-27  Bruno Haible  <bruno@clisp.org>
56256
56257         Enforce the use of gnulib modules for unportable <string.h> functions.
56258         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
56259         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
56260         (gl_HEADER_STRING_H_BODY): Require it.
56261         * lib/string_.h: If the gnulib module XYZ is not present, redefine
56262         the symbol XYZ to one that gives a link error.
56263         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
56264         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
56265         * modules/mempcpy (configure.ac): Likewise.
56266         * modules/memrchr (configure.ac): Likewise.
56267         * modules/stpcpy (configure.ac): Likewise.
56268         * modules/stpncpy (configure.ac): Likewise.
56269         * modules/strcase (configure.ac): Likewise.
56270         * modules/strcasestr (configure.ac): Likewise.
56271         * modules/strchrnul (configure.ac): Likewise.
56272         * modules/strdup (configure.ac): Likewise.
56273         * modules/strndup (configure.ac): Likewise.
56274         * modules/strnlen (configure.ac): Likewise.
56275         * modules/strpbrk (configure.ac): Likewise.
56276         * modules/strsep (configure.ac): Likewise.
56277         * modules/strstr (configure.ac): Likewise.
56278         * modules/strtok_r (configure.ac): Likewise.
56279
56280 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
56281
56282         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
56283
56284 2007-01-30  Jim Meyering  <jim@meyering.net>
56285
56286         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
56287
56288 2007-01-29  Bruno Haible  <bruno@clisp.org>
56289
56290         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
56291         * lib/execute.c: Likewise.
56292         * lib/pipe.c: Likewise.
56293         * lib/printf-args.h: Likewise.
56294         * lib/printf-args.c: Likewise.
56295         * lib/printf-parse.c: Likewise.
56296         * lib/vasnprintf.c: Likewise.
56297
56298 2007-01-29  Eric Blake  <ebb9@byu.net>
56299
56300         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
56301         declaration.
56302
56303 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
56304
56305         * lib/strptime.h (strptime): Use 'restrict' for args where
56306         POSIX requires this.
56307         * lib/strptime.c (strptime): Likewise.
56308         Change license notice from LGPL to GPL, since gnulib-tool will
56309         change this as needed.
56310         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
56311         defined.
56312         Include "strptime.h" first, to check interface.
56313         Do not #undef _LIBC and _NL_CURRENT.
56314         Do not include <stdlib.h>; no longer needed.
56315         Include "time_r.h" and declare ptime_locale_status
56316         only if _LIBC is not defined.
56317         (__P): Remove unused macro.
56318         (match_string): Bring back glibc version, but use it only if _LIBC
56319         is defined.
56320         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
56321         Remove unnecessary assertion and abort() call.
56322         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
56323         * m4/strptime.m4: Fix serial number comment.
56324         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
56325         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
56326         (Depends-on): Add time_r.
56327
56328 2007-01-29  Bruno Haible  <bruno@clisp.org>
56329
56330         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56331         strptime.
56332         * modules/strptime (Depends-on): Add stdbool.
56333         * lib/strptime.h: Include <time.h> always. Add comments.
56334
56335 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56336
56337         * modules/strptime: New file.
56338         * lib/strptime.h: New file.
56339         * lib/strptime.c: New file.
56340         * m4/strptime.m4: New file.
56341
56342 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56343
56344         * MODULES.html.sh: New module mpsort.
56345         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
56346
56347         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
56348         a circularity problem with HP-UX ia64 reported by Bob Proulx in
56349         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
56350         All uses changed.
56351         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
56352         All uses changed.
56353         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
56354         to _Restrict_.
56355         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
56356         the parameter matches the prototype.
56357
56358 2007-01-28  Jim Meyering  <jim@meyering.net>
56359
56360         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
56361         sys/time.h here, reverting that part of the previous patch:
56362         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
56363
56364 2007-01-28  Bruno Haible  <bruno@clisp.org>
56365
56366         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
56367         value of $(SYS_TIME_H).
56368         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
56369         remove it conditionally, too. [added by Jim Meyering]
56370         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
56371         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
56372         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
56373         GETTIMEOFDAY_REPLACEMENT to 1.
56374
56375 2007-01-28  Bruno Haible  <bruno@clisp.org>
56376
56377         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
56378         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
56379         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
56380         Set UNISTD_H instead of UNISTD_H2.
56381         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
56382
56383 2007-01-28  Bruno Haible  <bruno@clisp.org>
56384
56385         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
56386         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
56387
56388 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56389
56390         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
56391         (func_create_testdir): Ensure C locale for `grep' and `tr'
56392         character ranges.
56393         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
56394         ACLOCAL_AMFLAGS parsing state machine.
56395
56396 2007-01-27  Bruno Haible  <bruno@clisp.org>
56397
56398         * modules/unistr/base: Update.
56399
56400 2007-01-27  Bruno Haible  <bruno@clisp.org>
56401
56402         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
56403         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
56404         * modules/unistr/u32-mbtouc-unsafe: Renamed from
56405         modules/unistr/u32-mbtouc.
56406         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
56407         * lib/unistr.h: Update.
56408         * lib/linebreak.c: Update.
56409         * modules/unistr/u32-mbtouc: Renamed from
56410         modules/unistr/u32-mbtouc-safe.
56411         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
56412         * lib/unistr.h: Update.
56413         * lib/unistr/u32-to-u8.c: Update.
56414         * lib/unistr/u32-to-u16.c: Update.
56415
56416 2007-01-27  Bruno Haible  <bruno@clisp.org>
56417
56418         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
56419         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
56420         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
56421         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
56422         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
56423         * modules/unistr/u16-mbtouc-unsafe: Renamed from
56424         modules/unistr/u16-mbtouc.
56425         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
56426         * lib/unistr.h: Update.
56427         * lib/linebreak.c: Update.
56428         * modules/linebreak: Update.
56429         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
56430         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
56431         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
56432         * modules/unistr/u16-mbtouc: Renamed from
56433         modules/unistr/u16-mbtouc-safe.
56434         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
56435         * lib/unistr.h: Update.
56436         * lib/unistr/u16-to-u8.c: Update.
56437         * modules/unistr/u16-to-u8: Update.
56438         * lib/unistr/u16-to-u32.c: Update.
56439         * modules/unistr/u16-to-u32: Update.
56440
56441 2007-01-27  Bruno Haible  <bruno@clisp.org>
56442
56443         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
56444         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
56445         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
56446         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
56447         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
56448         * modules/unistr/u8-mbtouc-unsafe: Renamed from
56449         modules/unistr/u8-mbtouc.
56450         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
56451         * lib/unistr.h: Update.
56452         * lib/striconveh.c: Update.
56453         * modules/striconveh: Update.
56454         * lib/linebreak.c: Update.
56455         * modules/linebreak: Update.
56456         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
56457         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
56458         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
56459         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
56460         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
56461         * lib/unistr.h: Update.
56462         * lib/striconveh.c: Update.
56463         * modules/striconveh: Update.
56464         * lib/unistr/u8-to-u16.c: Update.
56465         * modules/unistr/u8-to-u16: Update.
56466         * lib/unistr/u8-to-u32.c: Update.
56467         * modules/unistr/u8-to-u32: Update.
56468
56469 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56470
56471         Sync from Libtool.
56472         * lib/argz.c: Do not include strings.h nor memory.h, include
56473         string.h unconditionally.  Patch by Simon Josefsson.
56474
56475 2007-01-27  Bruno Haible  <bruno@clisp.org>
56476
56477         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
56478         from gl_HEADER_STRING_H_BODY.
56479         (gl_HEADER_STRING_H_BODY): Require it.
56480         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
56481         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56482         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56483         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56484         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56485         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
56486         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56487         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56488         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
56489         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56490         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56491         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
56492         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56493         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56494         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56495
56496 2007-01-27  Bruno Haible  <bruno@clisp.org>
56497
56498         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
56499         check_PROGRAMS into noinst_PROGRAMS.
56500         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
56501         check_PROGRAMS in this case.
56502         (func_import): Set for_test to false.
56503         (func_create_testdir): Set for_test to true.
56504
56505 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56506             Bruno Haible  <bruno@clisp.org>
56507
56508         * modules/strcasestr (Files): Remove lib/strcasestr.h.
56509         (Depends-on): Add string.
56510         (Includes): Use <string.h> instead of strcasestr.h.
56511         * modules/string (Makefile.am): Also substitute the value of
56512         REPLACE_STRCASESTR.
56513         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
56514         assume strcasestr is declared in <string.h> not <strings.h>. Also
56515         set REPLACE_STRCASESTR.
56516         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
56517         REPLACE_STRCASESTR.
56518         * lib/strcasestr.h: Remove file.
56519         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
56520         * lib/string_.h (strcasestr): New declaration.
56521
56522 2007-01-27  Bruno Haible  <bruno@clisp.org>
56523
56524         * lib/string_.h: Use 'extern'.
56525
56526 2007-01-27  Jim Meyering  <jim@meyering.net>
56527
56528         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
56529         of set-but-not-used local, "q".
56530
56531         * lib/mempcpy.c: Include <config.h> before <string.h>.
56532         This fixes a compilation error on HP-UX, due to the system's
56533         "restrict"-using mempcpy prototype.
56534
56535 2007-01-26  Bruno Haible  <bruno@clisp.org>
56536
56537         Small optimization.
56538         * lib/javacomp.c: Include c-strstr.h.
56539          (is_envjavac_gcj): Use c_strstr instead of strstr.
56540         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
56541
56542 2007-01-26  Bruno Haible  <bruno@clisp.org>
56543
56544         * MODULES.html.sh (Unicode string functions): Add the new modules.
56545
56546         * modules/uniconv/u32-strconv-to-locale: New file.
56547         * lib/uniconv/u32-strconv-to-locale.c: New file.
56548
56549         * modules/uniconv/u16-strconv-to-locale: New file.
56550         * lib/uniconv/u16-strconv-to-locale.c: New file.
56551
56552         * modules/uniconv/u8-strconv-to-locale: New file.
56553         * lib/uniconv/u8-strconv-to-locale.c: New file.
56554
56555         * modules/uniconv/u32-strconv-from-locale: New file.
56556         * lib/uniconv/u32-strconv-from-locale.c: New file.
56557
56558         * modules/uniconv/u16-strconv-from-locale: New file.
56559         * lib/uniconv/u16-strconv-from-locale.c: New file.
56560
56561         * modules/uniconv/u8-strconv-from-locale: New file.
56562         * lib/uniconv/u8-strconv-from-locale.c: New file.
56563
56564         * modules/uniconv/u32-strconv-to-enc: New file.
56565         * lib/uniconv/u32-strconv-to-enc.c: New file.
56566         * modules/uniconv/u32-strconv-to-enc-tests: New file.
56567         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
56568
56569         * modules/uniconv/u16-strconv-to-enc: New file.
56570         * lib/uniconv/u16-strconv-to-enc.c: New file.
56571         * lib/uniconv/u-strconv-to-enc.h: New file.
56572         * modules/uniconv/u16-strconv-to-enc-tests: New file.
56573         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
56574
56575         * modules/uniconv/u8-strconv-to-enc: New file.
56576         * lib/uniconv/u8-strconv-to-enc.c: New file.
56577         * modules/uniconv/u8-strconv-to-enc-tests: New file.
56578         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
56579
56580         * modules/uniconv/u32-strconv-from-enc: New file.
56581         * lib/uniconv/u32-strconv-from-enc.c: New file.
56582         * modules/uniconv/u32-strconv-from-enc-tests: New file.
56583         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
56584
56585         * modules/uniconv/u16-strconv-from-enc: New file.
56586         * lib/uniconv/u16-strconv-from-enc.c: New file.
56587         * modules/uniconv/u16-strconv-from-enc-tests: New file.
56588         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
56589
56590         * modules/uniconv/u8-strconv-from-enc: New file.
56591         * lib/uniconv/u8-strconv-from-enc.c: New file.
56592         * lib/uniconv/u-strconv-from-enc.h: New file.
56593         * modules/uniconv/u8-strconv-from-enc-tests: New file.
56594         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
56595
56596         * modules/uniconv/u32-conv-from-enc: New file.
56597         * lib/uniconv/u32-conv-from-enc.c: New file.
56598         * modules/uniconv/u32-conv-from-enc-tests: New file.
56599         * tests/uniconv/test-u32-conv-from-enc.c: New file.
56600
56601         * modules/uniconv/u16-conv-from-enc: New file.
56602         * lib/uniconv/u16-conv-from-enc.c: New file.
56603         * lib/uniconv/u-conv-from-enc.h: New file.
56604         * modules/uniconv/u16-conv-from-enc-tests: New file.
56605         * tests/uniconv/test-u16-conv-from-enc.c: New file.
56606
56607         * modules/uniconv/u8-conv-from-enc: New file.
56608         * lib/uniconv/u8-conv-from-enc.c: New file.
56609         * modules/uniconv/u8-conv-from-enc-tests: New file.
56610         * tests/uniconv/test-u8-conv-from-enc.c: New file.
56611
56612         * modules/uniconv/base: New file.
56613         * lib/uniconv.h: New file.
56614
56615 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
56616
56617         * doc/gnulib-tool.texi (Initial import): Update to match current
56618         behavior with strdup module.
56619         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
56620         * lib/memmem.h: Remove; all uses removed.  This is now done
56621         by <string.h>.
56622         * lib/mempcpy.h: Likewise.
56623         * lib/memrchr.h: Likewise.
56624         * lib/stpcpy.h: Likewise.
56625         * lib/stpncpy.h: Likewise.
56626         * lib/strcase.h: Likewise.
56627         * lib/strchrnul.h: Likewise.
56628         * lib/strdup.h: Likewise.
56629         * lib/strndup.h: Likewise.
56630         * lib/strnlen.h: Likewise.
56631         * lib/strpbrk.h: Likewise.
56632         * lib/strsep.h: Likewise.
56633         * lib/strstr.h: Likewise.
56634         * lib/strtok_r.h: Likewise.
56635         * lib/string_.h: New file.
56636         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
56637         Rely on <string.h> instead.
56638         * lib/canon-host.c: Likewise.
56639         * lib/chdir-long.c: Likewise.
56640         * lib/concatpath.c: Likewise.
56641         * lib/exclude.c: Likewise.
56642         * lib/fchdir.c: Likewise.
56643         * lib/getaddrinfo.c: Likewise.
56644         * lib/getcwd.c: Likewise.
56645         * lib/getsubopt.c: Likewise.
56646         * lib/glob.c: Likewise.
56647         * lib/hard-locale.c: Likewise.
56648         * lib/iconvme.c: Likewise.
56649         * lib/javacomp.c: Likewise.
56650         * lib/mempcpy.c: Likewise.
56651         * lib/memrchr.c: Likewise.
56652         * lib/regex_internal.h: Likewise.
56653         * lib/stpncpy.c: Likewise.
56654         * lib/strcasecmp.c: Likewise.
56655         * lib/strchrnul.c: Likewise.
56656         * lib/strdup.c: Likewise.
56657         * lib/striconv.c: Likewise.
56658         * lib/striconveh.c: Likewise.
56659         * lib/striconveha.c: Likewise.
56660         * lib/strncasecmp.c: Likewise.
56661         * lib/strndup.c: Likewise.
56662         * lib/strnlen.c: Likewise.
56663         * lib/strsep.c: Likewise.
56664         * lib/strstr.c: Likewise.
56665         * lib/strtok_r.c: Likewise.
56666         * lib/userspec.c: Likewise.
56667         * lib/w32spawn.h: Likewise.
56668         * lib/xstrndup.c: Likewise.
56669         * lib/mountlist.c (strstr): Remove decl.
56670         * m4/string_h.m4: New file.
56671         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
56672         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
56673         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
56674         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
56675         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
56676         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
56677         Set REPLACE_STRCASECMP if necessary.
56678         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
56679         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
56680         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
56681         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
56682         HAVE_DECL_STRDUP if necessary.
56683         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
56684         since gl_FUNC_STRNDUP does that now.
56685         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
56686         Check for decl here...
56687         (gl_PREREQ_STRNLEN): ... not here.
56688         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
56689         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
56690         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
56691         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
56692         necessary.
56693         * modules/string: New file.
56694         * modules/memmem (Files): Remove special-purpose include file.
56695         (Depends-on): Add string.
56696         (Include): Include <string.h>, not the removed file.
56697         * modules/mempcpy: Likewise.
56698         * modules/memrchr: Likewise.
56699         * modules/stpcpy: Likewise.
56700         * modules/stpncpy: Likewise.
56701         * modules/strcase: Likewise.
56702         * modules/strchrnul: Likewise.
56703         * modules/strdup: Likewise.
56704         * modules/strndup: Likewise.
56705         * modules/strnlen: Likewise.
56706         * modules/strpbrk: Likewise.
56707         * modules/strsep: Likewise.
56708         * modules/strstr: Likewise.
56709         * modules/strtok_r: Likewise.
56710         * tests/test-dirname.c: Don't include "strdup.h", since
56711         <string.h> now suffices.
56712         * tests/test-memmem.c: Don't include "memmem.h", since
56713         <string.h> now suffices.
56714
56715 2007-01-25  Bruno Haible  <bruno@clisp.org>
56716
56717         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
56718         *resultp is 0.
56719
56720         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
56721         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
56722         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
56723         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
56724
56725         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
56726         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
56727         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
56728         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
56729         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
56730         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
56731
56732 2007-01-24  Bruno Haible  <bruno@clisp.org>
56733
56734         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
56735         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
56736         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
56737         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
56738         gl_FUNC_FTS_CORE.
56739         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
56740         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
56741         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56742         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
56743         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
56744         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
56745         gl_FUNC_FCHOWNAT.
56746         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
56747         gl_FUNC_STRFTIME.
56748         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
56749         Reported by Ralf Wildenhues.
56750
56751 2007-01-24  Bruno Haible  <bruno@clisp.org>
56752
56753         Drop AC_REQUIRE calls that are redundant with the module dependencies.
56754         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
56755         gl_GETADDRINFO.
56756         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
56757         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
56758         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
56759
56760 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
56761
56762         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
56763         Don't use 'exit'; just return from 'main'.
56764         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
56765
56766         * lib/fnmatch_.h: Readjust white space and comments to match
56767         glibc, to avoid spurious diffs.
56768
56769 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56770
56771         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
56772         2004-12-01 change by Jakub Jelinek, since this code won't compile
56773         if !LIBC.  Problem reported by Bob Proulx.
56774
56775 2007-01-23  Bruno Haible  <bruno@clisp.org>
56776
56777         * lib/striconveh.c: Include c-strcaseeq.h.
56778         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
56779         * modules/striconveh (Depends-on): Add c-strcaseeq.
56780
56781 2007-01-23  Bruno Haible  <bruno@clisp.org>
56782
56783         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
56784
56785         * modules/c-strcaseeq: New file.
56786         * lib/c-strcaseeq.h: New file.
56787
56788         * modules/streq: New file.
56789         * lib/streq.h: New file.
56790
56791 2007-01-23  Bruno Haible  <bruno@clisp.org>
56792
56793         * modules/striconveha-tests: New file.
56794         * tests/test-striconveha.c: New file.
56795
56796         * lib/striconveha.h: Include <stdbool.h>.
56797         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
56798         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
56799         (mem_iconveha_notranslit): Renamed from mem_iconveha.
56800         (mem_iconveha): New function.
56801         (str_iconveha_notranslit): Renamed from str_iconveha.
56802         (str_iconveha): New function.
56803         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
56804         c-strcase.
56805
56806 2007-01-23  Bruno Haible  <bruno@clisp.org>
56807
56808         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
56809         encodings without forgiving before trying any encoding with handler.
56810         (str_iconveha): Try all encodings without forgiving before trying any
56811         encoding with handler.
56812
56813 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56814
56815         Import the following changes from libc.
56816
56817         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
56818
56819         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
56820
56821         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
56822
56823         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
56824         normal_bracket label.
56825
56826         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
56827
56828         [BZ #361]
56829         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
56830         to normal_bracket after fetching the next character.
56831
56832 2007-01-22  Bruno Haible  <bruno@clisp.org>
56833
56834         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
56835         argument.
56836         * lib/striconveh.c (iconv_carefully_1): New function.
56837         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
56838         argument.
56839         (str_cd_iconveh): Update.
56840         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
56841         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
56842         * tests/test-striconveh.c (MAGIC): New macro.
56843         (new_offsets): New function.
56844         (main): Test call with and without offsets.
56845
56846 2007-01-22  Bruno Haible  <bruno@clisp.org>
56847
56848         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
56849         * modules/sys_select (Makefile.am): Likewise.
56850         * modules/sys_socket (Makefile.am): Likewise.
56851         * modules/sys_time (Makefile.am): Likewise.
56852
56853 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
56854
56855         * modules/gettimeofday (License): Change from GPL to LGPL, since
56856         gettimeofday is a library function.
56857
56858 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56859
56860         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
56861
56862 2007-01-21  Bruno Haible  <bruno@clisp.org>
56863
56864         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
56865
56866 2007-01-21  Bruno Haible  <bruno@clisp.org>
56867
56868         * modules/striconveha: New file.
56869         * lib/striconveha.h: New file.
56870         * lib/striconveha.c: New file.
56871         * MODULES.html.sh (Internationalization functions): Add striconveha.
56872         * lib/striconv.c (str_iconv): Optimize the case of an empty input
56873         string.
56874         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
56875
56876 2007-01-21  Bruno Haible  <bruno@clisp.org>
56877
56878         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
56879         * lib/striconveh.c (str_iconveh): Likewise.
56880
56881 2007-01-21  Bruno Haible  <bruno@clisp.org>
56882
56883         * lib/striconveh.h (mem_iconveh): New declaration.
56884         * lib/striconveh.c (mem_iconveh): New function.
56885         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
56886
56887 2007-01-21  Bruno Haible  <bruno@clisp.org>
56888
56889         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
56890
56891         * lib/striconveh.h (mem_cd_iconveh): Change specification.
56892         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
56893         original result buffer.
56894         (str_cd_iconveh): Update.
56895         * tests/test-striconveh.c (main): Update.
56896
56897         * lib/striconv.h (mem_cd_iconv): Change specification.
56898         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
56899         result buffer.
56900         (str_cd_iconv): Update.
56901         * tests/test-striconv.c (main): Update.
56902
56903 2007-01-21  Bruno Haible  <bruno@clisp.org>
56904
56905         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
56906
56907 2007-01-20  Jim Meyering  <jim@meyering.net>
56908
56909         * lib/userspec.c (parse_with_separator): If a user or group string
56910         starts with "+", skip the corresponding name-to-ID look-up, since
56911         such a look-up must fail: user and group names may not include "+".
56912
56913 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
56914
56915         * lib/poll.c: Include sys/time.h and time.h unconditionally,
56916         since we now assume the sys_time module.
56917         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
56918         check for sys/time.h; no longer needed.
56919         * modules/poll (Depends-on): Depend on sys_time.
56920
56921 2007-01-18  Bruno Haible  <bruno@clisp.org>
56922
56923         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
56924         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
56925
56926         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
56927         gettimeofday.
56928
56929         * tests/test-gettimeofday.c: Include <time.h>.
56930         (dummy): Remove variable.
56931
56932         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
56933         gl_HEADER_SYS_TIME_H.
56934         (gl_HEADER_SYS_TIME_H): New macro.
56935
56936         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
56937         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56938         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
56939         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
56940         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56941         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
56942         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
56943         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56944         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
56945         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
56946         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56947
56948         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
56949         last change; it caused a compilation error when cross-compiling to
56950         Cygwin.
56951
56952 2007-01-18  Jim Meyering  <jim@meyering.net>
56953
56954         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
56955         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
56956         than the race-prone "test -d sys || mkdir sys".
56957         (configure.ac): Use AC_PROG_MKDIR_P.
56958         * modules/sys_select: Likewise.
56959         * modules/sys_socket: Likewise.
56960         * modules/sys_time: Likewise.
56961
56962 2007-01-18  Eric Blake  <ebb9@byu.net>
56963
56964         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
56965         replace gettimeofday.
56966         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
56967         name, to avoid infinite recursion.
56968
56969 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
56970
56971         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
56972         module sys_time.
56973         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
56974         assume timespec.h defines struct timeval.
56975         * lib/settime.c: Likewise.
56976         * lib/utimens.c: Likewise.
56977         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
56978         since we now assume the gettimeofday module.
56979         * lib/tempname.c (__gen_tempname): Likewise.
56980         * lib/gettimeofday.h: Remove.
56981         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
56982         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
56983         Include <time.h>, for 'time()'.
56984         (localtime_buffer_addr): Also use this workaround if
56985         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
56986         to simplify the uses.  All uses changed.
56987         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
56988         that #undef is inside {}, and 'const' follows type name consistently.
56989         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
56990         (gettimeofday): Do not use the maximum possible value for
56991         tv->tv_usec, since that might break usages other than ls.c.
56992         Instead, we'll leave ls.c alone.  This undoes today's patch
56993         by Bruno.  Add a compile-time warning for 1s-clock resolution;
56994         we've never observed the problem but might as well keep the
56995         canary.
56996         * lib/nanosleep.c: Include timespec.h first, for interface check.
56997         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
56998         now assume the sys_time module.
56999         * lib/tempname.c: Likewise.
57000         * lib/timespec.h: Likewise.
57001         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
57002         needed.
57003         * lib/strftime.c: Likewise.
57004         * lib/timespec.h: Likewise.
57005         * lib/posixtm.c: Include posixtm.h first, for interface check.
57006         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
57007         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
57008         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
57009         * lib/sys_time_.h: New file.
57010         * lib/timespec.h (struct timespec): Use long int, not long.
57011         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
57012         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
57013         Remove obsolescent call to AC_HEADER_TIME.
57014         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
57015         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57016         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
57017         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
57018         Likewise.
57019         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
57020         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
57021         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
57022         into the sys_time module.  Check for gettimeofday just once.
57023         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
57024         for gettimeofday signature to just check the signature.  Merely
57025         compile it, since linking doesn't test signature.  Improve test for
57026         whether gettimeofday.o is actually needed.
57027         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
57028         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
57029         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
57030         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57031         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
57032         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
57033         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
57034         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
57035         than worrying about sys/time.h.
57036         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57037         Don't bother worrying about TIME_WITH_SYS_TIME.
57038         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
57039         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
57040         * m4/sys_time_h.m4: New file.
57041         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
57042         Don't include sys/time.h.  Return from main rather than exiting.
57043         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
57044         all uses changed.
57045         * modules/gethrxtime (Depends-on): Add sys_time.
57046         * modules/gettime (Depends-on): Likewise.
57047         * modules/gettimeofday (Depends-on): Likewise.
57048         * modules/nanosleep (Depends-on): Likewise.
57049         * modules/settime (Depends-on): Likewise.
57050         * modules/tempname (Depends-on): Likewise.
57051         * modules/utimens (Depends-on): Likewise.
57052         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
57053         (Include): Change back to <sys/time.h>.
57054         (Maintainer): Add self.
57055         * modules/sys_time: New file.
57056         * modules/tempname (Depends-on): Add gettimeofday.
57057         * tests/test-gettimeofday.c: Include <sys/time.h>
57058         rather than gettimeofday.h.
57059
57060 2007-01-17  Bruno Haible  <bruno@clisp.org>
57061
57062         * gnulib-tool (func_get_license): Revert last patch. Instead, let
57063         the license default to GPL.
57064         (func_create_testdir): Don't complain if a module is LGPL and its
57065         tests module depends on GPLed modules.
57066
57067 2007-01-17  Bruno Haible  <bruno@clisp.org>
57068
57069         * lib/gettimeofday.c (gettimeofday): Add code for the case
57070         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
57071         maximum possible value for tv->tv_usec, rather than the minimum one.
57072
57073 2005-10-08  Martin Lambers  <marlam@marlam.de>
57074 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57075 2007-01-16  Bruno Haible  <bruno@clisp.org>
57076
57077         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
57078         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
57079         gl_FUNC_GETTIMEOFDAY.
57080         (Include): Add gettimeofday.h.
57081         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
57082         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
57083         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
57084         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
57085         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
57086         * lib/gettimeofday.h: New file.
57087         * lib/gettimeofday.c: Include <sys/timeb.h>.
57088         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
57089         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57090         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
57091         fall back on time().
57092
57093         * tests/test-gettimeofday.c: New file.
57094         * modules/gettimeofday-tests: New file.
57095
57096 2007-01-16  Eric Blake  <ebb9@byu.net>
57097
57098         * modules/fnmatch (Depends-on): Depend on wchar.
57099         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
57100         * m4/fnmatch.m4: Likewise.
57101         * modules/mbchar (Makefile.am): Assume <wchar.h>.
57102         * m4/mbchar.m4: Likewise.
57103         * modules/mbswidth (Depends-on): Depend on wchar.
57104         * lib/mbswidth.c: Assume <wchar.h>.
57105         * m4/mbswidth.m4: Likewise.
57106         * modules/quotearg (Depends-on): Depend on wchar.
57107         * lib/quotearg.c: Assume <wchar.h>.
57108         * m4/quotearg.m4: Likewise.
57109         * modules/regex (Depends-on): Depend on wchar.
57110         * lib/regex_internal.h: Assume <wchar.h>.
57111         * m4/regex.m4: Likewise.
57112         * modules/stdint (Depends-on): Depend on wchar.
57113         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
57114         * m4/stdint.m4: Likewise.
57115         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
57116         * modules/strftime (Depends-on): Depend on wchar.
57117         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
57118         * modules/strtol (Depends-on): Depend on wchar.
57119         * lib/strtol.c: Assume <wchar.h>.
57120         * modules/wcwidth (Depends-on): Depend on wchar.
57121         * lib/wcwidth.h: Assume <wchar.h>.
57122         * m4/wcwidth.m4: Likewise.
57123
57124 2007-01-16  Bruno Haible  <bruno@clisp.org>
57125
57126         * modules/csharpexec-script: New, created from...
57127         * modules/csharpexec: ... this.
57128
57129 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57130
57131         * modules/javaexec-script: New, created from...
57132         * modules/javaexec: ... this.
57133
57134 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57135
57136         * modules/poll (Dependencies): Add sys_select.
57137
57138 2007-01-15  Jim Meyering  <jim@meyering.net>
57139
57140         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
57141         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
57142         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
57143         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
57144
57145 2007-01-15  Bruno Haible  <bruno@clisp.org>
57146
57147         * modules/striconveh: New file.
57148         * lib/striconveh.h: New file.
57149         * lib/striconveh.c: New file.
57150         * MODULES.html.sh (Internationalization functions): Add striconveh.
57151
57152         * modules/striconveh-tests: New file.
57153         * tests/test-striconveh.c: New file.
57154
57155 2007-01-15  Bruno Haible  <bruno@clisp.org>
57156
57157         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
57158         not from GNU libiconv or GNU libc.
57159
57160 2007-01-15  Bruno Haible  <bruno@clisp.org>
57161
57162         * doc/gnulib-intro.texi (Copyright): Explain the different license
57163         terms for module descriptions, autoconf macros, tests, documentation.
57164
57165 2007-01-14  Bruno Haible  <bruno@clisp.org>
57166
57167         * modules/striconv-tests: New file.
57168         * tests/test-striconv.c: New file.
57169
57170 2007-01-14  Bruno Haible  <bruno@clisp.org>
57171
57172         * modules/iconv-tests: New file.
57173         * tests/test-iconv.c: New file.
57174
57175 2007-01-14  Bruno Haible  <bruno@clisp.org>
57176
57177         * gnulib-tool (func_get_license): For test modules, use the license of
57178         the main module.
57179
57180 2007-01-14  Bruno Haible  <bruno@clisp.org>
57181
57182         * modules/iconv (Include): Clarify that <iconv.h> can only be included
57183         if iconv is found to exist.
57184
57185 2007-01-14  Bruno Haible  <bruno@clisp.org>
57186
57187         * modules/c-ctype-tests: New file.
57188         * tests/test-c-ctype.c: New file.
57189
57190 2007-01-14  Bruno Haible  <bruno@clisp.org>
57191
57192         * modules/binary-io-tests: New file.
57193         * tests/test-binary-io.sh: New file.
57194         * tests/test-binary-io.c: New file.
57195
57196 2007-01-14  Bruno Haible  <bruno@clisp.org>
57197
57198         * modules/array-oset-tests: New file.
57199         * tests/test-array_oset.c: New file.
57200
57201 2007-01-14  Bruno Haible  <bruno@clisp.org>
57202
57203         * modules/array-list-tests: New file.
57204         * tests/test-array_list.c: New file.
57205
57206 2007-01-14  Bruno Haible  <bruno@clisp.org>
57207
57208         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
57209         and make.
57210         Reported by Simon Josefsson in
57211         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
57212
57213 2007-01-14  Bruno Haible  <bruno@clisp.org>
57214
57215         * modules/allocsa-tests: New file.
57216         * tests/test-allocsa.c: New file.
57217
57218 2007-01-14  Bruno Haible  <bruno@clisp.org>
57219
57220         * modules/fchdir (Depends-on): Add absolute-header.
57221         * modules/unistd (Depends-on): Likewise.
57222
57223 2006-12-30  Bruno Haible  <bruno@clisp.org>
57224
57225         * modules/fchdir: New file.
57226         * modules/unistd (Files): Add lib/unistd_.h.
57227         (Makefile.am): Generate unistd.h from unistd_.h.
57228         * lib/fchdir.c: New file.
57229         * lib/dirent_.h: New file.
57230         * lib/unistd_.h: New file.
57231         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
57232         * m4/fchdir.m4: New file.
57233         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
57234         (gl_HEADER_UNISTD): Invoke it.
57235         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
57236         function.
57237         * lib/backupfile.c (opendir, closedir): Undefine.
57238         * lib/chown.c (open, close): Undefine.
57239         * lib/clean-temp.c (open, close): Undefine.
57240         * lib/copy-file.c (open, close): Undefine.
57241         * lib/execute.c (open, close): Undefine.
57242         * lib/fsusage.c (open, close): Undefine.
57243         * lib/gc-gnulib.c (open, close): Undefine.
57244         * lib/getcwd.c (opendir, closedir): Undefine.
57245         * lib/glob.c (opendir, closedir): Undefine.
57246         * lib/javacomp.c (open, close): Undefine.
57247         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
57248         * lib/openat-proc.c (open, close): Undefine.
57249         * lib/pagealign_alloc.c (open, close): Undefine.
57250         * lib/pipe.c (open, close): Undefine.
57251         * lib/progreloc.c (open, close): Undefine.
57252         * lib/savedir.c (opendir, closedir): Undefine.
57253         * lib/utime.c (open, close): Undefine.
57254         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
57255
57256 2007-01-10  Bruno Haible  <bruno@clisp.org>
57257
57258         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
57259
57260 2007-01-12  Eric Blake  <ebb9@byu.net>
57261
57262         Provide a robust <wchar.h>.  Further simplifications are now
57263         possible in other modules, but not included here.
57264         * modules/wchar: New module.
57265         * m4/wchar.m4: New file.
57266         * lib/wchar_.h: Likewise.
57267         * modules/mbchar (Depends-on): Depend on wchar, as the first use
57268         of the new module.
57269         * MODULES.html.sh (Extended multibyte and wide character utilities):
57270         New section.
57271
57272 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
57273
57274         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
57275         to a reasonable default for memory allocation.
57276         (xreadlink): Don't allocate a huge buffer, to work around a buggy
57277         file system that reports garbage st_size values for symlinks.
57278         Problem reported by Liyang Hu.
57279
57280 2007-01-11  Simon Josefsson  <simon@josefsson.org>
57281
57282         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
57283         Emacs .#* auto-save files).
57284
57285 2007-01-11  Bruno Haible  <bruno@clisp.org>
57286
57287         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
57288         directory.
57289
57290 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57291
57292         Use @...@ consistently in lib/wctype_.h.
57293         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
57294         on it being set to 1 or 0.
57295         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
57296         go back to AC_SUBSTing it.
57297         * modules/wctype (Makefile.am): Undo previous change.
57298
57299 2007-01-10  Eric Blake  <ebb9@byu.net>
57300
57301         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
57302         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
57303         * modules/wctype (Makefile.am): Likewise.
57304         Reported by Chris McGuire.
57305
57306 2007-01-10  Jim Meyering  <jim@meyering.net>
57307
57308         fts.c: a small readability/maintainability improvement
57309         * lib/fts.c (fts_read): Make this code slightly more readable and
57310         maintainable by hoisting the "sp->fts_cur = p" assignments to
57311         immediately follow the statements that set P.  Derived from
57312         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
57313
57314 2007-01-10  Eric Blake  <ebb9@byu.net>
57315
57316         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
57317         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
57318         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57319         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
57320         Reported by Chris McGuire.
57321
57322 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57323
57324         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
57325         in sed script.
57326
57327 2007-01-09  Bruno Haible  <bruno@clisp.org>
57328
57329         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
57330         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
57331         variables.
57332         (func_module): Use them.
57333
57334 2007-01-09  Bruno Haible  <bruno@clisp.org>
57335
57336         * modules/unistr/base: New file.
57337         * lib/unistr.h: New file.
57338
57339         * modules/unistr/u8-to-u16: New file.
57340         * lib/unistr/u8-to-u16.c: New file.
57341
57342         * modules/unistr/u8-to-u32: New file.
57343         * lib/unistr/u8-to-u32.c: New file.
57344
57345         * modules/unistr/u16-to-u8: New file.
57346         * lib/unistr/u16-to-u8.c: New file.
57347
57348         * modules/unistr/u16-to-u32: New file.
57349         * lib/unistr/u16-to-u32.c: New file.
57350
57351         * modules/unistr/u32-to-u8: New file.
57352         * lib/unistr/u32-to-u8.c: New file.
57353
57354         * modules/unistr/u32-to-u16: New file.
57355         * lib/unistr/u32-to-u16.c: New file.
57356
57357         * modules/unistr/u8-check: New file.
57358         * modules/unistr/u16-check: New file.
57359         * modules/unistr/u32-check: New file.
57360         * lib/unistr/u8-check.c: New file.
57361         * lib/unistr/u16-check.c: New file.
57362         * lib/unistr/u32-check.c: New file.
57363
57364         * modules/unistr/u8-chr: New file.
57365         * modules/unistr/u16-chr: New file.
57366         * modules/unistr/u32-chr: New file.
57367         * lib/unistr/u8-chr.c: New file.
57368         * lib/unistr/u16-chr.c: New file.
57369         * lib/unistr/u32-chr.c: New file.
57370
57371         * modules/unistr/u8-cmp: New file.
57372         * modules/unistr/u16-cmp: New file.
57373         * modules/unistr/u32-cmp: New file.
57374         * lib/unistr/u8-cmp.c: New file.
57375         * lib/unistr/u16-cmp.c: New file.
57376         * lib/unistr/u32-cmp.c: New file.
57377
57378         * modules/unistr/u8-cpy: New file.
57379         * modules/unistr/u16-cpy: New file.
57380         * modules/unistr/u32-cpy: New file.
57381         * lib/unistr/u8-cpy.c: New file.
57382         * lib/unistr/u16-cpy.c: New file.
57383         * lib/unistr/u32-cpy.c: New file.
57384         * lib/unistr/u-cpy.h: New file.
57385
57386         * modules/unistr/u8-cpy-alloc: New file.
57387         * modules/unistr/u16-cpy-alloc: New file.
57388         * modules/unistr/u32-cpy-alloc: New file.
57389         * lib/unistr/u8-cpy-alloc.c: New file.
57390         * lib/unistr/u16-cpy-alloc.c: New file.
57391         * lib/unistr/u32-cpy-alloc.c: New file.
57392         * lib/unistr/u-cpy-alloc.h: New file.
57393
57394         * modules/unistr/u8-endswith: New file.
57395         * modules/unistr/u16-endswith: New file.
57396         * modules/unistr/u32-endswith: New file.
57397         * lib/unistr/u8-endswith.c: New file.
57398         * lib/unistr/u16-endswith.c: New file.
57399         * lib/unistr/u32-endswith.c: New file.
57400         * lib/unistr/u-endswith.h: New file.
57401
57402         * modules/unistr/u8-mblen: New file.
57403         * modules/unistr/u16-mblen: New file.
57404         * modules/unistr/u32-mblen: New file.
57405         * lib/unistr/u8-mblen.c: New file.
57406         * lib/unistr/u16-mblen.c: New file.
57407         * lib/unistr/u32-mblen.c: New file.
57408
57409         * modules/unistr/u8-mbtouc: New file.
57410         * modules/unistr/u16-mbtouc: New file.
57411         * modules/unistr/u32-mbtouc: New file.
57412         * lib/unistr/u8-mbtouc.c: New file.
57413         * lib/unistr/u16-mbtouc.c: New file.
57414         * lib/unistr/u32-mbtouc.c: New file.
57415
57416         * modules/unistr/u8-mbtouc-safe: New file.
57417         * modules/unistr/u16-mbtouc-safe: New file.
57418         * modules/unistr/u32-mbtouc-safe: New file.
57419         * lib/unistr/u8-mbtouc-safe.c: New file.
57420         * lib/unistr/u16-mbtouc-safe.c: New file.
57421         * lib/unistr/u32-mbtouc-safe.c: New file.
57422
57423         * modules/unistr/u8-move: New file.
57424         * modules/unistr/u16-move: New file.
57425         * modules/unistr/u32-move: New file.
57426         * lib/unistr/u8-move.c: New file.
57427         * lib/unistr/u16-move.c: New file.
57428         * lib/unistr/u32-move.c: New file.
57429         * lib/unistr/u-move.h: New file.
57430
57431         * modules/unistr/u8-next: New file.
57432         * modules/unistr/u16-next: New file.
57433         * modules/unistr/u32-next: New file.
57434         * lib/unistr/u8-next.c: New file.
57435         * lib/unistr/u16-next.c: New file.
57436         * lib/unistr/u32-next.c: New file.
57437
57438         * modules/unistr/u8-prev: New file.
57439         * modules/unistr/u16-prev: New file.
57440         * modules/unistr/u32-prev: New file.
57441         * lib/unistr/u8-prev.c: New file.
57442         * lib/unistr/u16-prev.c: New file.
57443         * lib/unistr/u32-prev.c: New file.
57444
57445         * modules/unistr/u8-set: New file.
57446         * modules/unistr/u16-set: New file.
57447         * modules/unistr/u32-set: New file.
57448         * lib/unistr/u8-set.c: New file.
57449         * lib/unistr/u16-set.c: New file.
57450         * lib/unistr/u32-set.c: New file.
57451         * lib/unistr/u-set.h: New file.
57452
57453         * modules/unistr/u8-startswith: New file.
57454         * modules/unistr/u16-startswith: New file.
57455         * modules/unistr/u32-startswith: New file.
57456         * lib/unistr/u8-startswith.c: New file.
57457         * lib/unistr/u16-startswith.c: New file.
57458         * lib/unistr/u32-startswith.c: New file.
57459         * lib/unistr/u-startswith.h: New file.
57460
57461         * modules/unistr/u8-stpcpy: New file.
57462         * modules/unistr/u16-stpcpy: New file.
57463         * modules/unistr/u32-stpcpy: New file.
57464         * lib/unistr/u8-stpcpy.c: New file.
57465         * lib/unistr/u16-stpcpy.c: New file.
57466         * lib/unistr/u32-stpcpy.c: New file.
57467         * lib/unistr/u-stpcpy.h: New file.
57468
57469         * modules/unistr/u8-stpncpy: New file.
57470         * modules/unistr/u16-stpncpy: New file.
57471         * modules/unistr/u32-stpncpy: New file.
57472         * lib/unistr/u8-stpncpy.c: New file.
57473         * lib/unistr/u16-stpncpy.c: New file.
57474         * lib/unistr/u32-stpncpy.c: New file.
57475         * lib/unistr/u-stpncpy.h: New file.
57476
57477         * modules/unistr/u8-strcat: New file.
57478         * modules/unistr/u16-strcat: New file.
57479         * modules/unistr/u32-strcat: New file.
57480         * lib/unistr/u8-strcat.c: New file.
57481         * lib/unistr/u16-strcat.c: New file.
57482         * lib/unistr/u32-strcat.c: New file.
57483         * lib/unistr/u-strcat.h: New file.
57484
57485         * modules/unistr/u8-strchr: New file.
57486         * modules/unistr/u16-strchr: New file.
57487         * modules/unistr/u32-strchr: New file.
57488         * lib/unistr/u8-strchr.c: New file.
57489         * lib/unistr/u16-strchr.c: New file.
57490         * lib/unistr/u32-strchr.c: New file.
57491
57492         * modules/unistr/u8-strcmp: New file.
57493         * modules/unistr/u16-strcmp: New file.
57494         * modules/unistr/u32-strcmp: New file.
57495         * lib/unistr/u8-strcmp.c: New file.
57496         * lib/unistr/u16-strcmp.c: New file.
57497         * lib/unistr/u32-strcmp.c: New file.
57498
57499         * modules/unistr/u8-strcpy: New file.
57500         * modules/unistr/u16-strcpy: New file.
57501         * modules/unistr/u32-strcpy: New file.
57502         * lib/unistr/u8-strcpy.c: New file.
57503         * lib/unistr/u16-strcpy.c: New file.
57504         * lib/unistr/u32-strcpy.c: New file.
57505         * lib/unistr/u-strcpy.h: New file.
57506
57507         * modules/unistr/u8-strcspn: New file.
57508         * modules/unistr/u16-strcspn: New file.
57509         * modules/unistr/u32-strcspn: New file.
57510         * lib/unistr/u8-strcspn.c: New file.
57511         * lib/unistr/u16-strcspn.c: New file.
57512         * lib/unistr/u32-strcspn.c: New file.
57513         * lib/unistr/u-strcspn.h: New file.
57514
57515         * modules/unistr/u8-strdup: New file.
57516         * modules/unistr/u16-strdup: New file.
57517         * modules/unistr/u32-strdup: New file.
57518         * lib/unistr/u8-strdup.c: New file.
57519         * lib/unistr/u16-strdup.c: New file.
57520         * lib/unistr/u32-strdup.c: New file.
57521         * lib/unistr/u-strdup.h: New file.
57522
57523         * modules/unistr/u8-strlen: New file.
57524         * modules/unistr/u16-strlen: New file.
57525         * modules/unistr/u32-strlen: New file.
57526         * lib/unistr/u8-strlen.c: New file.
57527         * lib/unistr/u16-strlen.c: New file.
57528         * lib/unistr/u32-strlen.c: New file.
57529         * lib/unistr/u-strlen.h: New file.
57530
57531         * modules/unistr/u8-strmblen: New file.
57532         * modules/unistr/u16-strmblen: New file.
57533         * modules/unistr/u32-strmblen: New file.
57534         * lib/unistr/u8-strmblen.c: New file.
57535         * lib/unistr/u16-strmblen.c: New file.
57536         * lib/unistr/u32-strmblen.c: New file.
57537
57538         * modules/unistr/u8-strmbtouc: New file.
57539         * modules/unistr/u16-strmbtouc: New file.
57540         * modules/unistr/u32-strmbtouc: New file.
57541         * lib/unistr/u8-strmbtouc.c: New file.
57542         * lib/unistr/u16-strmbtouc.c: New file.
57543         * lib/unistr/u32-strmbtouc.c: New file.
57544
57545         * modules/unistr/u8-strncat: New file.
57546         * modules/unistr/u16-strncat: New file.
57547         * modules/unistr/u32-strncat: New file.
57548         * lib/unistr/u8-strncat.c: New file.
57549         * lib/unistr/u16-strncat.c: New file.
57550         * lib/unistr/u32-strncat.c: New file.
57551         * lib/unistr/u-strncat.h: New file.
57552
57553         * modules/unistr/u8-strncmp: New file.
57554         * modules/unistr/u16-strncmp: New file.
57555         * modules/unistr/u32-strncmp: New file.
57556         * lib/unistr/u8-strncmp.c: New file.
57557         * lib/unistr/u16-strncmp.c: New file.
57558         * lib/unistr/u32-strncmp.c: New file.
57559
57560         * modules/unistr/u8-strncpy: New file.
57561         * modules/unistr/u16-strncpy: New file.
57562         * modules/unistr/u32-strncpy: New file.
57563         * lib/unistr/u8-strncpy.c: New file.
57564         * lib/unistr/u16-strncpy.c: New file.
57565         * lib/unistr/u32-strncpy.c: New file.
57566         * lib/unistr/u-strncpy.h: New file.
57567
57568         * modules/unistr/u8-strnlen: New file.
57569         * modules/unistr/u16-strnlen: New file.
57570         * modules/unistr/u32-strnlen: New file.
57571         * lib/unistr/u8-strnlen.c: New file.
57572         * lib/unistr/u16-strnlen.c: New file.
57573         * lib/unistr/u32-strnlen.c: New file.
57574         * lib/unistr/u-strnlen.h: New file.
57575
57576         * modules/unistr/u8-strpbrk: New file.
57577         * modules/unistr/u16-strpbrk: New file.
57578         * modules/unistr/u32-strpbrk: New file.
57579         * lib/unistr/u8-strpbrk.c: New file.
57580         * lib/unistr/u16-strpbrk.c: New file.
57581         * lib/unistr/u32-strpbrk.c: New file.
57582         * lib/unistr/u-strpbrk.h: New file.
57583
57584         * modules/unistr/u8-strrchr: New file.
57585         * modules/unistr/u16-strrchr: New file.
57586         * modules/unistr/u32-strrchr: New file.
57587         * lib/unistr/u8-strrchr.c: New file.
57588         * lib/unistr/u16-strrchr.c: New file.
57589         * lib/unistr/u32-strrchr.c: New file.
57590
57591         * modules/unistr/u8-strspn: New file.
57592         * modules/unistr/u16-strspn: New file.
57593         * modules/unistr/u32-strspn: New file.
57594         * lib/unistr/u8-strspn.c: New file.
57595         * lib/unistr/u16-strspn.c: New file.
57596         * lib/unistr/u32-strspn.c: New file.
57597         * lib/unistr/u-strspn.h: New file.
57598
57599         * modules/unistr/u8-strstr: New file.
57600         * modules/unistr/u16-strstr: New file.
57601         * modules/unistr/u32-strstr: New file.
57602         * lib/unistr/u8-strstr.c: New file.
57603         * lib/unistr/u16-strstr.c: New file.
57604         * lib/unistr/u32-strstr.c: New file.
57605         * lib/unistr/u-strstr.h: New file.
57606
57607         * modules/unistr/u8-strtok: New file.
57608         * modules/unistr/u16-strtok: New file.
57609         * modules/unistr/u32-strtok: New file.
57610         * lib/unistr/u8-strtok.c: New file.
57611         * lib/unistr/u16-strtok.c: New file.
57612         * lib/unistr/u32-strtok.c: New file.
57613         * lib/unistr/u-strtok.h: New file.
57614
57615         * modules/unistr/u8-uctomb: New file.
57616         * modules/unistr/u16-uctomb: New file.
57617         * modules/unistr/u32-uctomb: New file.
57618         * lib/unistr/u8-uctomb.c: New file.
57619         * lib/unistr/u16-uctomb.c: New file.
57620         * lib/unistr/u32-uctomb.c: New file.
57621
57622         * MODULES.html.sh (Unicode string functions): Add the new modules.
57623
57624 2007-01-08  Bruno Haible  <bruno@clisp.org>
57625
57626         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
57627         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
57628         subdirectories.
57629
57630 2007-01-08  Karl Berry  <karl@gnu.org>
57631
57632         * doc/error.texi: mention that main() fns must set program_name
57633         when progname is used.
57634
57635 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
57636
57637         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
57638         WCTYPE_H is empty, for the benefit of builds from non-distclean
57639         directories.  Problem reported by Eric Blake in
57640         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
57641
57642 2007-01-08  Bruno Haible  <bruno@clisp.org>
57643
57644         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
57645         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
57646         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
57647         PROVIDE_CANONICALIZE_FILENAME_MODE.
57648         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
57649
57650 2007-01-08  Bruno Haible  <bruno@clisp.org>
57651
57652         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
57653         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
57654         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
57655         * lib/fts.c: Likewise.
57656         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
57657
57658 2006-12-25  Bruno Haible  <bruno@clisp.org>
57659
57660         * modules/utf8-ucs4-safe: New file.
57661         * lib/utf8-ucs4-safe.h: New file.
57662         * lib/unistr/utf8-ucs4-safe.c: New file.
57663
57664         * modules/utf16-ucs4-safe: New file.
57665         * lib/utf16-ucs4-safe.h: New file.
57666         * lib/unistr/utf16-ucs4-safe.c: New file.
57667
57668         * MODULES.html.sh (Unicode string functions): Add the new modules.
57669
57670 2007-01-08  Bruno Haible  <bruno@clisp.org>
57671
57672         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
57673         (Depends-on): Add unitypes.
57674         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
57675         (u8_mbtouc_aux): Move out to separate file.
57676         (u8_mbtouc): Use ucs4_t, uint8_t types.
57677         * lib/unistr/utf8-ucs4.c: New file.
57678
57679         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
57680         (Depends-on): Add unitypes.
57681         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
57682         (u16_mbtouc_aux): Move out to separate file.
57683         (u16_mbtouc): Use ucs4_t, uint16_t types.
57684         * lib/unistr/utf16-ucs4.c: New file.
57685
57686         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
57687         (Depends-on): Add unitypes.
57688         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
57689         (u8_uctomb_aux): Move out to separate file.
57690         (u8_uctomb): Use ucs4_t, uint8_t types.
57691         * lib/unistr/ucs4-utf8.c: New file.
57692
57693         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
57694         (Depends-on): Add unitypes.
57695         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
57696         (u16_uctomb_aux): Move out to separate file.
57697         (u16_uctomb): Use ucs4_t, uint16_t types.
57698         * lib/unistr/ucs4-utf16.c: New file.
57699
57700 2006-12-25  Bruno Haible  <bruno@clisp.org>
57701
57702         * modules/unitypes: New file.
57703         * lib/unitypes.h: New file.
57704         * MODULES.html.sh (func_all_modules): New section "Unicode string
57705         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
57706         this section. Add unitypes.
57707
57708 2007-01-08  Bruno Haible  <bruno@clisp.org>
57709
57710         Avoid variable names that conflict with those from libtool.
57711         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
57712         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
57713         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
57714         library_names_spec to acl_library_names_spec, hardcode_* to
57715         acl_hardcode_*.
57716         Reported by Ralf Wildenhues.
57717
57718 2007-01-08  Bruno Haible  <bruno@clisp.org>
57719
57720         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
57721         definition.
57722         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
57723         definition.
57724         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
57725         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
57726         definition.
57727         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
57728         definition.
57729         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
57730         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
57731         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
57732         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
57733         definition.
57734         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
57735         definition.
57736         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
57737         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
57738         GC_USE_<algorithm>.
57739         * lib/gc-libgcrypt.c: Likewise.
57740         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
57741         * modules/gc-arctwo (configure.ac): Likewise.
57742         * modules/gc-des (configure.ac): Likewise.
57743         * modules/gc-hmac-md5 (configure.ac): Likewise.
57744         * modules/gc-hmac-sha1 (configure.ac): Likewise.
57745         * modules/gc-md2 (configure.ac): Likewise.
57746         * modules/gc-md4 (configure.ac): Likewise.
57747         * modules/gc-md5 (configure.ac): Likewise.
57748         * modules/gc-random (configure.ac): Likewise.
57749         * modules/gc-rijndael (configure.ac): Likewise.
57750         * modules/gc-sha1 (configure.ac): Likewise.
57751
57752 2007-01-08  Bruno Haible  <bruno@clisp.org>
57753
57754         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
57755         macro definition.
57756         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
57757         definition.
57758         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
57759         definition.
57760         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
57761         * modules/fcntl-safer (configure.ac): Likewise.
57762         * modules/fopen-safer (configure.ac): Likewise.
57763         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
57764         GNULIB_FWRITEERROR macro definition.
57765
57766 2007-01-08  Bruno Haible  <bruno@clisp.org>
57767
57768         * m4/gnulib-common.m4: New file.
57769         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
57770         (func_get_filelist): Add m4/gnulib-common.m4.
57771
57772 2007-01-08  Bruno Haible  <bruno@clisp.org>
57773
57774         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
57775         command.
57776
57777 2007-01-08  Jim Meyering  <jim@meyering.net>
57778
57779         Use a more robust test for a "can't happen" condition.
57780         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
57781         narrowed the st_size value.  Presuming the "can't happen" condition
57782         is true, that narrowing could conceivably convert an invalid st_size
57783         value into a valid one.  Instead, use a change based on Matthew
57784         Woehlke's original patch.
57785
57786         Slight readability improvement: use an assert-like macro
57787         in place of literal "abort ()" uses.
57788         * lib/fts.c (fts_assert): Define.
57789         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
57790         Use this macro instead of a bare 'abort'.
57791
57792 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
57793
57794         Don't worry about using IRIX 5.3's wctype.h broken definitions;
57795         simply work around them.
57796         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
57797         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
57798         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
57799         declaring.
57800         Don't bother to define as macros, since the standard doesn't require it.
57801         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
57802         longer worry about IRIX 5.3.
57803         (HAVE_WCTYPE_CTMP_BUG): Remove.
57804
57805 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57806
57807         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
57808         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
57809         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57810         Problems reported by Georg Schwarz for IRIX 5.3.
57811
57812         * gnulib-tool (autoconf_minversion): Take the maximum version number
57813         found, not the minimum.  Problem reported by James Youngman.
57814
57815 2007-01-03  Karl Berry  <karl@gnu.org>
57816
57817         * doc/error.texi: new file, explaining interaction with progname.
57818         * doc/gnulib.texi: include it.  Update copyright.
57819
57820 2007-01-03  Simon Josefsson  <simon@josefsson.org>
57821
57822         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
57823         AC_CANONICAL_HOST, to improve autobuild outputs.
57824
57825 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
57826             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
57827
57828         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
57829         sockets, server sockets, and other file descriptors.  Count errors
57830         to compute the return value.  Reorder the code a bit to be easier
57831         to follow.  Don't set event bits that were not requested (except
57832         POLLERR and POLLHUP).
57833
57834 2007-01-01  Bruno Haible  <bruno@clisp.org>
57835
57836         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
57837
57838 2007-01-03  Jim Meyering  <jim@meyering.net>
57839
57840         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
57841
57842 2007-01-02  Bruno Haible  <bruno@clisp.org>
57843
57844         * modules/settime (Include): Require timespec.h.
57845         * modules/nanosleep (Include): Likewise.
57846
57847 2007-01-01  Bruno Haible  <bruno@clisp.org>
57848
57849         * gnulib-tool (func_emit_copyright_notice): Bump year.
57850         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
57851
57852 2007-01-01  Bruno Haible  <bruno@clisp.org>
57853
57854         Improve support for OpenBSD.
57855         * build-aux/config.rpath (libname_spec): Export.
57856         (library_names_spec): New variable. Export.
57857         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
57858         library_names_spec from the config.rpath output. Locate shared library
57859         through the name pattern in library_names_spec.
57860
57861 2007-01-01  Eric Blake  <ebb9@byu.net>
57862
57863         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
57864
57865 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
57866
57867         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
57868         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
57869         assume the C locale, and avoid an "eval" that could cause trouble.
57870         Problem with SORT reported by Bob Proulx.
57871
57872         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
57873         Define.  Trivial patch from Henning Nielsen Lund, originally
57874         sent to bug-grep@gnu.org today.
57875
57876 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57877
57878         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
57879         struct stat.  Problem reported by Henning Nielsen Lund.
57880         * lib/acl.c: Include acl.h first, to check interface.  Don't
57881         bother to include sys/types.h and sys/stat.h again.
57882
57883 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57884
57885         Import the following change from libc; problem reported by
57886         Sven Verdoolaege.
57887
57888         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
57889
57890         [BZ #1373]
57891         * lib/argp.h: Remove __NTH for __argp_usage inline function.
57892
57893 2006-12-28  Jim Meyering  <jim@meyering.net>
57894
57895         * build-aux/announce-gen: Do not assume that the package
57896         builds any of tar.gz, tar.bz2, and .xdelta files.
57897         Suggestion from Simon Josefsson.
57898
57899 2006-12-28  Simon Josefsson  <simon@josefsson.org>
57900
57901         * modules/announce-gen: New file.
57902
57903 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
57904
57905         * lib/mbchar.h: Just include <wctype.h>; the wctype module
57906         handles its gotchas now.
57907         * lib/mbswidth.c: Likewise.
57908         * lib/wcwidth.h: Likewise.
57909         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
57910         and iswcntrl; the wctype module does this stuff now.
57911         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57912         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57913         * modules/mbchar (Depends-on): Add wctype.
57914         * modules/mbswidth (Depends-on): Likewise.
57915         * modules/wcwidth (Depends-on): Likewise.
57916
57917 2006-12-27  Eric Blake  <ebb9@byu.net>
57918
57919         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
57920         module uses more than what <wctype.h> is required to provide.
57921
57922 2006-12-26  Eric Blake  <ebb9@byu.net>
57923
57924         * gnulib-tool (sed_extract_prog): Avoid space-tab.
57925
57926 2006-12-26  Eric Blake  <ebb9@byu.net>
57927
57928         * modules/absolute-header: New module.
57929         * modules/fcntl (Depends-on): Depend on it.
57930         * modules/inttypes (Depends-on): Likewise.
57931         * modules/stdint (Depends-on): Likewise.
57932         * modules/sys_stat (Depends-on): Likewise.
57933         * modules/wctype (Depends-on): Likewise.
57934         * MODULES.html.sh (Support for building libraries and
57935         executables): Document it.
57936
57937 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57938
57939         * gnulib-tool (SED): Remove, undoing previous change.
57940         The problem was that it broke coreutils on Solaris, because
57941         "sed --posix" leaked into a makefile.
57942         (sed): New alias, if 'alias' and GNU sed.
57943
57944 2006-12-24  Jim Meyering  <jim@meyering.net>
57945
57946         Work around an fchownat bug in glibc-2.4:
57947         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
57948         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
57949         in spite of the -P option.
57950         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
57951         New macros.
57952         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
57953         * modules/openat (Files): Add lib/fchownat.c.
57954         * lib/openat.c (fchownat): Don't define here.  Move to...
57955         * lib/fchownat.c: ...this new file.
57956
57957 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57958
57959         Fix bug reported by Bruno Haible in
57960         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
57961         where quotearg.c didn't compile on Mac OS X 10.2 because it
57962         lacks <wchar.h> and wint_t.
57963         * lib/wctype_.h (__wctype_wint_t): New type.
57964         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
57965         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
57966         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
57967         Arg is now of type __wctype_wint_t, not wint_t.
57968         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
57969         substitute HAVE_WINT_T.
57970         * modules/wctype (Files): Add m4/wint_t.m4.
57971         (wctype.h): Substitute HAVE_WINT_T.
57972
57973 2006-12-23  Bruno Haible  <bruno@clisp.org>
57974
57975         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
57976
57977 2006-12-23  Bruno Haible  <bruno@clisp.org>
57978
57979         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
57980         S_ISLNK.
57981         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
57982         mingw.
57983
57984 2006-12-22  Bruno Haible  <bruno@clisp.org>
57985
57986         * lib/copy-file.c: Include acl.h.
57987         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
57988         Close the file descriptors only after being done with copy_acl.
57989         * modules/copy-file (Depends-on): Add acl.
57990
57991 2006-12-22  Bruno Haible  <bruno@clisp.org>
57992
57993         * gnulib-tool (SED): New variable.
57994         Use $SED instead of sed everywhere.
57995
57996 2006-12-22  Bruno Haible  <bruno@clisp.org>
57997
57998         * modules/no-c++: New file.
57999         * m4/no-c++.m4: New file.
58000         * MODULES.html.sh (Support for building libraries and executables):
58001         Add no-c++.
58002
58003 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58004
58005         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58006         Include <limits.h>, and use its INT_MAX to rewrite the
58007         j loop so that it does not overflow 'int'.  Problem reported by
58008         Ralf Wildenhues in
58009         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
58010         Play it safe by shifting left by 1 rather than multiplying by 2,
58011         as GCC is less likely to optimize this away when the value
58012         is signed (when it assumes overflow leads to undefined behavior).
58013         Also, don't assume time_t uses two's complement.
58014
58015 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
58016
58017         * MODULES.html.sh: New module wctype.
58018         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
58019         * lib/fnmatch.c: Don't bother to include <wchar.h> before
58020         <wctype.h>, since the new wctype module should fix this.
58021         * lib/quotearg.c: Include <wctype.h> unconditionally, since
58022         the wctype module should arrange for it.
58023         * lib/regex_internal.h: Likewise.
58024         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
58025         since the wctype module should handle this now.
58026         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
58027         * modules/fnmatch (Depends-on): Add wctype.
58028         * modules/quotearg (Depends-on): Likewise.
58029         * modules/regex (Depends-on): Likewise.
58030
58031 2006-12-19  Bruno Haible  <bruno@clisp.org>
58032
58033         * lib/strdup.h [C++]: Wrap definitions in extern "C".
58034         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
58035
58036 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58037
58038         * modules/savewd (Depends-on): Fix dependency on fcntl.
58039
58040 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58041
58042         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
58043         conforms to C99, rather than relying on the user's environment
58044         setting of STDINT_H.
58045
58046 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58047         and Eric Blake  <ebb9@byu.net>
58048
58049         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
58050         This is more consistent with the other defines here.
58051         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
58052         Port to z/OS.  Problem reported by Paul Gilmartin.
58053         Change local vars to use gl_ prefix rather than ac_.
58054         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
58055         with other defines.
58056         * modules/double-slash-root: New module.
58057         * modules/dirname (Files): Remove m4/double-slash-root.m4.
58058         (Depends-on): Add double-slash-root.
58059         * MODULES.html.sh (File system functions): Mention new module.
58060
58061 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
58062
58063         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
58064         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
58065         This is for the benefit of gzip, which doesn't do i18n.
58066
58067 2006-12-12  Jim Meyering  <jim@meyering.net>
58068
58069         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
58070         Reported by Andreas Schwab <schwab@suse.de>.
58071
58072 2006-12-12  Bruno Haible  <bruno@clisp.org>
58073
58074         Merge these changes.
58075         2006-09-05  Bruno Haible  <bruno@clisp.org>
58076         * lib/iconvme.c (iconv_string): No need to save and restore errno when
58077         iconv_alloc succeeded.
58078         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
58079         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
58080         test for " && dest " at the end - dest is always != NULL there. Call
58081         iconv with 4xNULL arguments initially, to reset the state. Call iconv
58082         with 2xNULL arguments, also to flush the state storage. Handle the
58083         IRIX iconv behaviour. Realloc the final result, to throw away unused
58084         memory.
58085
58086 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
58087
58088         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
58089         and fchmodat unconditionally, since glibc 2.4 has them.
58090         Problem reported by Arkadiusz Miskiewicz.
58091
58092 2006-12-10  Bruno Haible  <bruno@clisp.org>
58093
58094         * gnulib-tool (func_import): Show the include files only for those
58095         modules that are copied and specified.
58096         Reported by Karl Berry.
58097
58098 2006-12-08  Jim Meyering  <jim@meyering.net>
58099
58100         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
58101         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
58102
58103         * build-aux/announce-gen: Add two new options, both optional:
58104         --bootstrap-tools=TOOL_LIST
58105               a comma-separated list of tools, e.g.,
58106               autoconf,automake,bison,gnulib
58107         --gnulib-snapshot-date=DATE
58108               if gnulib is in the bootstrap tool list,
58109               then report this as the snapshot date.
58110               If not specified, use the current date/time.
58111               If you specify a date here, be sure it's UTC.
58112
58113 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58114
58115         * tests/test-argp-2.sh: Fix test to match actual output.
58116         (func_compare): Fix sed script to be portable.
58117
58118 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
58119
58120         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
58121         workaround for this case.  It is not autoconfigured now; offhand
58122         it's hard to see how to autoconfigure it.
58123
58124 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58125
58126         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
58127         a directory that is about to be chowned.  Such a directory's
58128         initial file permissions should permit the owner only and this
58129         should not be changed until after the chown, since the group and
58130         other bits would be incorrect if they granted permission before
58131         the chown.
58132
58133         Fix porting problem for iswctype reported by Georg Schwarz in:
58134         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
58135         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
58136         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
58137         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
58138         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58139
58140 2006-12-03  Jim Meyering  <jim@meyering.net>
58141
58142         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
58143         p->fts_statp may not yet be defined.
58144         (fts_read): Instead, set it in the caller, once p->fts_statp is
58145         sure to be defined, and corresponds to a top-level directory.
58146         This bug made du -x fail.  Here's the coreutils test case:
58147         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
58148         Reported by Mike Frysinger.
58149
58150 2006-12-01  Jim Meyering  <jim@meyering.net>
58151
58152         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
58153         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
58154         Reported by Simon Josefsson.
58155
58156 2006-11-30  Jim Meyering  <jim@meyering.net>
58157
58158         * m4/warning.m4: Use the all-permissive copyright notice
58159         recommended by RMS (rather than LGPL).
58160         * m4/vararrays.m4: Likewise.
58161         * m4/flexmember.m4: Likewise.
58162
58163 2006-11-29  Bruno Haible  <bruno@clisp.org>
58164
58165         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58166         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
58167         using +=.
58168         Reported by Simon Josefsson <simon@josefsson.org>.
58169
58170 2006-11-28  James Youngman <jay@gnu.org>
58171
58172         * README: Advise users that they might find the bug-gnulib@gnu.org
58173         and autotools-announce@gnu.org mailing lists useful.
58174
58175 2006-11-28  Bruno Haible  <bruno@clisp.org>
58176
58177         * m4/ptrdiff_max.m4: Remove file.
58178
58179 2006-11-21  Bruno Haible  <bruno@clisp.org>
58180
58181         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
58182         _AC_COMPUTE_INT.
58183         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58184         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
58185         _AC_COMPUTE_INT.
58186         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58187         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
58188         _AC_COMPUTE_INT.
58189         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58190
58191 2006-11-28  Jim Meyering  <jim@meyering.net>
58192
58193         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
58194         warning from "gcc -Wshadow" about shadowing the builtin.
58195
58196 2006-11-27  Bruno Haible  <bruno@clisp.org>
58197
58198         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
58199         _AC_COMPUTE_INT.
58200         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58201
58202 2006-11-27  Bruno Haible  <bruno@clisp.org>
58203             Paul Eggert  <eggert@cs.ucla.edu>
58204
58205         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
58206
58207 2006-11-26  Bruno Haible  <bruno@clisp.org>
58208
58209         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58210         noinst_LTLIBRARIES.
58211
58212 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58213             Bruno Haible  <bruno@clisp.org>
58214
58215         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
58216         if compiling with "gcc -ansi".
58217
58218 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58219
58220         Fix some incompatibilities with gcc -ansi -pedantic.
58221         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
58222         if compiling pedantically with GCC, unless it's C99 or later.
58223         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
58224         it mishandles gcc -ansi -pedantic as well.
58225         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
58226         if gcc -pedantic.
58227         * lib/regexec.c (check_node_accept_bytes): Don't use auto
58228         initializers for struct if -pedantic, unless it's C99 or later.
58229
58230 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
58231
58232         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
58233         Don't close an fd more than once. Identical atimes indicate
58234         success, not failure.
58235
58236 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
58237
58238         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
58239
58240 2006-11-23  Jim Meyering  <jim@meyering.net>
58241
58242         * build-aux/announce-gen: New file.  From coreutils.
58243
58244 2006-11-22  Jim Meyering  <jim@meyering.net>
58245
58246         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
58247         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
58248         (fts_read): Use a temporary to narrow the overused st_size member
58249         before using it in a switch statement.  Reported by Matthew Woehlke.
58250
58251         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
58252         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
58253
58254 2006-11-20  Bruno Haible  <bruno@clisp.org>
58255
58256         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
58257         changequote instead of pairs of brackets.
58258         Reported by Andreas Schwab <schwab@suse.de>.
58259
58260 2006-11-21  Jim Meyering  <jim@meyering.net>
58261
58262         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
58263         so as to remain compatible with older compilers.
58264         Patch from Michael Deutschmann.
58265
58266 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58267
58268         * MODULES.html.sh (File system functions): Add openat.
58269
58270         * lib/openat.h (rpl_fstatat): New macro, if
58271         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
58272         (fstatat): Define to rpl_fstatat under the same conditions,
58273         unless COMPILING_FSTATAT.
58274         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
58275         seems to have the bug.
58276         * lib/fstatat.c: New file.
58277         * modules/openat (Files): Add it.
58278
58279 2006-11-20  Bruno Haible  <bruno@clisp.org>
58280
58281         * Makefile: New file.
58282
58283 2006-11-20  Jim Meyering  <jim@meyering.net>
58284
58285         The beginnings of syntax-related checks for gnulib.
58286         * lib/Makefile: New file.
58287         * lib/t-idcache: New script.  Ensure that the two halves of
58288         idcache.c stay in sync.
58289
58290         * lib/idcache.c: Adjust comments in user- and group- portions to
58291         be more accurate, and to be consistent with one another.
58292
58293 2006-11-20  Jim Meyering  <jim@meyering.net>
58294
58295         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
58296         continue using the flexible array member (thus, this module performs
58297         half as many malloc calls), with the addition that...
58298         (getgroup, getuser): Consistently record a non-match via an empty
58299         "name" string, and map an empty string match to a NULL return value.
58300         * modules/idcache (Depends-on): Re-add flexmember.
58301
58302         * lib/idcache.c (getuser): Remove all uses of the register keyword.
58303         (getuidbyname, getgroup, getgidbyname): Likewise.
58304
58305         Use cleaner syntax: NULL rather than 0.
58306         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
58307
58308 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58309
58310         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
58311         It mishandled the case where the group was missing.
58312         Problem reported by Greg Schafer.
58313         * modules/idcache: Likewise.
58314
58315 2006-11-18  Jim Meyering  <jim@meyering.net>
58316
58317         * check-module (%exempt_header): Add exception for some
58318         conditionally-included headers.
58319
58320         * modules/i-ring (Depends-on): Add verify.
58321         (License): Change to LGPL.
58322
58323 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58324
58325         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
58326         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
58327         and inttostr.h.  Use snprintf rather than uinttostr, so that
58328         LGPLed code doesn't depend on GPLed.
58329
58330 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58331
58332         * modules/inline (License): Change from GPL to LGPL.
58333
58334 2006-11-17  Jim Meyering  <jim@meyering.net>
58335
58336         * modules/d-type (License): Switch to LGPL.
58337
58338 2006-11-15  Bruno Haible  <bruno@clisp.org>
58339
58340         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
58341
58342 2006-11-15  Eric Blake  <ebb9@byu.net>
58343
58344         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
58345         the module dependency.
58346
58347 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58348             Bruno Haible  <bruno@clisp.org>
58349
58350         * gnulib-tool (func_create_testdir): Add license consistency check.
58351
58352 2006-11-15  Eric Blake  <ebb9@byu.net>
58353
58354         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
58355         random "(cached)" in configure output.
58356
58357 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58358
58359         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
58360         test for conforming inttypes.h is both announced and cached.
58361
58362         * MODULES.html.sh (seen_modules, seen_files): New variables.
58363         (func_module): Rewrite to use a few less gnulib-tool and sed
58364         invocations.  Avoid a couple of quadratic algorithms for ...
58365         (missed_modules, missed_files): ... these, with ...
58366         (func_append, func_tmpdir): ... these new functions, from
58367         gnulib-tool.  Analogously, install traps for cleanup.
58368
58369         * tests/test-gc.c (main): Remove unused variables.
58370         * tests/test-read-file.c: Include stdlib.h, for 'free'.
58371
58372 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
58373
58374         * modules/inttostr (License): Change to LGPL.
58375
58376 2006-11-14  Eric Blake  <ebb9@byu.net>
58377
58378         * modules/tempname (License): Change to LGPL.
58379
58380 2006-11-14  Eric Blake  <ebb9@byu.net>
58381
58382         * doc/functions.texi (Function Portability): *printf functions on
58383         Cygwin now understand all POSIX size specifiers.
58384
58385 2006-11-14  Bruno Haible  <bruno@clisp.org>
58386
58387         * modules/c-ctype (License): Change to LGPL.
58388
58389 2006-11-12  Bruno Haible  <bruno@clisp.org>
58390
58391         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58392         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
58393         for GNOME libraries, for which the include files are installed in
58394         subdirectories of $prefix/include.
58395
58396 2006-11-12  Bruno Haible  <bruno@clisp.org>
58397
58398         * m4/lib-link.m4: Require at least autoconf-2.54.
58399         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
58400         name to underscores for the --with option.
58401
58402 2006-11-13  Bruno Haible  <bruno@clisp.org>
58403
58404         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
58405         the tests directory.
58406         Reported by Ralf Wildenhues.
58407
58408 2006-11-13  Bruno Haible  <bruno@clisp.org>
58409
58410         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
58411         (func_emit_initmacro_end): Undo the override here.
58412         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
58413         Works around the famous automake error in coreutils.
58414
58415 2006-11-13  Eric Blake  <ebb9@byu.net>
58416
58417         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
58418         element, not its node.
58419
58420 2006-11-12  Bruno Haible  <bruno@clisp.org>
58421
58422         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
58423         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
58424
58425 2006-11-12  Bruno Haible  <bruno@clisp.org>
58426
58427         * gnulib-tool: New option --local-symlink.
58428         (func_usage): Document it.
58429         (lsymbolic): New variable.
58430         (func_import, func_create_testdir): If --symlink was not specified,
58431         test whether --local-symlink was specified and the file comes from
58432         the local_gnulib_dir.
58433
58434 2006-11-12  Bruno Haible  <bruno@clisp.org>
58435
58436         * gnulib-tool (func_ln): New function.
58437         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
58438
58439 2006-11-12  Bruno Haible  <bruno@clisp.org>
58440
58441         Finish support for source files in subdirectories.
58442         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
58443         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
58444         AUTOMAKE_OPTIONS.
58445         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
58446
58447 2006-11-12  Bruno Haible  <bruno@clisp.org>
58448
58449         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58450         EXTRA_lib_SOURCES augmentation.
58451         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
58452
58453 2006-11-12  Jim Meyering  <jim@meyering.net>
58454
58455         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
58456         file descriptors.  This also averts a failure on systems with
58457         native openat support when a traversed directory lacks "x" access.
58458         * lib/fts_.h: Include "i-ring.h"
58459         (struct FTS) [fts_fd_ring]: New member.
58460         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
58461         (FCHDIR): Add parentheses.
58462         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
58463         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
58464         When descending, rather than simply closing the previous
58465         fts_cwd_fd value, push that file descriptor onto the ring.
58466         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
58467         (fts_open): Initialize the new fd_ring member.
58468         (fts_close): Clear the ring.
58469         (fts_safe_changedir): When possible, use our new fd_ring to skip
58470         the diropen and fstat and dev/ino comparison that would normally
58471         accompany a virtual `chdir ("..")'.
58472
58473         * modules/fts (Depends-on): Add i-ring.
58474         * modules/i-ring: New module.
58475         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
58476         * m4/i-ring.m4: New file.
58477
58478 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58479
58480         * gnulib-tool (func_create_testdir): Fix replacement of
58481         `build-aux' in configure.ac.  Run autotools in gltests
58482         subdirectory.
58483         (func_create_testdir, func_create_megatestdir, test): There is
58484         no need for '--force' in most autotool invocations in a new
58485         tree.  Actually fail the whole test if any of the tools, or the
58486         configure or make stages fail.
58487
58488         Sync from Automake.
58489         * build-aux/gnupload: Revert last change.  Add pointer to upload
58490         instructions of the GNU Maintenance Instructions.
58491         Suggestion by Karl Berry.
58492
58493 2006-11-10  Jim Meyering  <jim@meyering.net>
58494
58495         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
58496
58497 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58498
58499         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
58500         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
58501         (bind_textdomain_codeset) [! ENABLE_NLS]:
58502         Evaluate all the arguments.  That way, callers get compatible behavior
58503         if the arguments have side effects.  Also, it avoids some GCC
58504         diagnostics in some cases; Joel E. Denny reported problems when Bison
58505         was configured with --enable-gcc-warnigs.
58506
58507 2006-11-10  Jim Meyering  <jim@meyering.net>
58508
58509         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
58510         relevant options in CFLAGS (like -O, -fno-inline) are taken into
58511         account.
58512
58513 2006-11-10  Jim Meyering  <jim@meyering.net>
58514
58515         * modules/inline: New file/module.
58516         * modules/xalloc (Files): Remove m4/inline.m4.
58517         (Depends-on): Add inline, instead.
58518         * modules/oset: Likewise.
58519         * modules/list: Likewise.
58520
58521 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58522
58523         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
58524         Problem reported by Matthew Woehlke.
58525
58526 2006-11-09  Bruno Haible  <bruno@clisp.org>
58527
58528         * lib/tempname.c (gen_tempname): Remove variant that invokes
58529         __gen_tempname.
58530         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
58531         __gen_tempname.
58532
58533 2006-11-08  Bruno Haible  <bruno@clisp.org>
58534
58535         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
58536         to 'yes' instead of 'cross-compiling'.
58537
58538 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
58539
58540         * lib/quotearg.h (quotearg_free): New decl.
58541         * lib/quotearg.c (quotearg_free): New function.
58542         (slot0, nslots, slotvec0, slotvec):
58543         Now file-scope so that quotearg_free can get at them.
58544
58545 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58546
58547         Sync from Automake.
58548         * build-aux/gnupload: Add missing 'gnu' to example URL.
58549         Report by Karl Berry.
58550
58551 2006-11-08  Bruno Haible  <bruno@clisp.org>
58552
58553         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
58554         Suggested by Paul Eggert.
58555
58556 2006-11-08  Jim Meyering  <jim@meyering.net>
58557
58558         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
58559         It's already included if !_LIBC.
58560         (fts_safe_changedir): Add a comment.
58561
58562 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
58563
58564         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
58565         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
58566         Matthew Woehlke.
58567
58568         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
58569         definitions up, to avoid colliding with change below.
58570         (static_inline) [HAVE_INLINE]: New macro.
58571         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
58572         Provide extern decls when !HAVE_INLINE.  Do not define unless
58573         static_inline is defined, either by us or by xmalloc.c.  Use
58574         static_inline rather than static inline.
58575         (XCALLOC): Optimize sizeof(T) = 1 case.
58576         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
58577
58578 2006-11-07  Bruno Haible  <bruno@clisp.org>
58579
58580         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
58581         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
58582         AC_C_INLINE.
58583         * modules/xalloc (Files): Add m4/inline.m4.
58584
58585 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58586
58587         * README: Fix typo.
58588         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
58589         (Miscellanous Notes): ...from this.
58590
58591 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
58592
58593         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
58594         Mention that offsetof should be used instead of sizeof.
58595         From Bruno Haible.
58596
58597 2006-11-07  Bruno Haible  <bruno@clisp.org>
58598
58599         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
58600
58601 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
58602
58603         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
58604         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
58605         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
58606         (gl_tree_add_before, gl_tree_add_after):
58607         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
58608         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
58609         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58610         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
58611         (gl_linked_add_after, gl_linked_add_at): Likewise.
58612         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
58613         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
58614         (gl_tree_add_before, gl_tree_add_after): Likewise.
58615         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
58616         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
58617         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
58618
58619 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58620
58621         * lib/gl_oset.h: Use C comment style, not C++ comment style.
58622
58623 2006-11-06  Bruno Haible  <bruno@clisp.org>
58624
58625         * m4/inline.m4: New file.
58626         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
58627         * modules/list (Files): Add m4/inline.m4.
58628         * modules/oset (Files): Likewise.
58629
58630 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
58631
58632         * lib/idcache.c: Include <stddef.h>, for offsetof.
58633         (struct userid.name): Change from char * to a flexible array member.
58634         All uses changed.
58635         * modules/idcache (Depends-on): Add flexmember.
58636
58637         * MODULES.html.sh (Core language properties): New module flexmember.
58638         * modules/flexmember, m4/flexmember.m4: New files.
58639
58640         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
58641         inline functions that are identical with the old xnmalloc_inline,
58642         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
58643         that we can avoid some unnecessary integer multiplications and
58644         divisions in the common case where the element size is known at
58645         compile time.
58646         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
58647         needed.
58648         (xnboundedmalloc): Remove.
58649         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
58650         arguments, for consistency with rest of this header.
58651         (xcharalloc): Rewrite using XNMALLOC.
58652         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
58653         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
58654         versions have been moved to lib/xalloc.h and renamed to be the
58655         non-*_inline versions.
58656         (xmalloc, xrealloc): Implement without reference to the xnmalloc
58657         and xnrealloc functions, since those functions are now inline and
58658         now call us.
58659         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
58660         renaming described above.
58661         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
58662         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
58663         captures the dependency in AC_C_INLINE.
58664
58665         New module canonicalize-lgpl, proposed by Charles Wilson in
58666         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
58667         with a few small changes afterwards.
58668         * MODULES.html.sh (File system functions): New module
58669         canonicalize-lgpl.
58670         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
58671         and canonicalize_file_name.
58672         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
58673         * modules/canonicalize-lgpl: New files.
58674
58675 2006-11-05  Bruno Haible  <bruno@clisp.org>
58676
58677         * gnulib-tool (func_import, func_create_testdir): Create directories
58678         also for files in subdirectories of lib/.
58679
58680 2006-11-05  Bruno Haible  <bruno@clisp.org>
58681
58682         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
58683         ANSI C compliant.
58684
58685 2006-11-03  Bruno Haible  <bruno@clisp.org>
58686
58687         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
58688         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
58689         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
58690         (xnboundedmalloc): New inline function.
58691         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
58692         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
58693         xmalloc.
58694         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
58695         xmalloc.
58696         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
58697         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
58698         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
58699         xmalloc.
58700         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
58701         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
58702         xmalloc.
58703         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
58704         gl_tree_add_after): Use XMALLOC instead of xmalloc.
58705         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
58706         xmalloc.
58707         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
58708         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
58709         gl_tree_add_after): Use XMALLOC instead of xmalloc.
58710         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
58711         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
58712         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
58713         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
58714
58715 2006-11-03  Bruno Haible  <bruno@clisp.org>
58716
58717         * lib/c-ctype.h [C++]: Define functions without name mangling.
58718         * lib/fwriteerror.h [C++]: Likewise.
58719         * lib/gcd.h [C++]: Likewise.
58720         * lib/linebreak.h [C++]: Likewise.
58721
58722 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
58723
58724         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
58725         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
58726         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
58727         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
58728         Check for functions and headers just once.
58729         Check for declaration of canonicalize_file_name.
58730         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
58731
58732 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58733
58734         * gnulib-tool (func_import): Fix typo in actioncmd.
58735
58736 2006-11-02  Bruno Haible  <bruno@clisp.org>
58737
58738         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
58739         newline sequence in the Makefile.am snippet as a space, like "make"
58740         does.
58741         Reported by Roger Persson <perrog@gmail.com>.
58742
58743 2006-11-01  Bruno Haible  <bruno@clisp.org>
58744
58745         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
58746         already declared in <string.h>.
58747         * lib/strcase.h (strncasecmp): Don't declare it if yes.
58748
58749 2006-11-01  Bruno Haible  <bruno@clisp.org>
58750
58751         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
58752         * lib/strcase.h: Include <string.h>.
58753         (strcasecmp): Define to rpl_strcasecmp here.
58754
58755 2006-11-01  Bruno Haible  <bruno@clisp.org>
58756
58757         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
58758
58759 2006-11-01  Eric Blake  <ebb9@byu.net>
58760
58761         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
58762
58763         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
58764
58765 2006-10-29  Bruno Haible  <bruno@clisp.org>
58766
58767         Make it compile in C++ mode.
58768         * lib/full-write.c (full_rw): Add a cast.
58769
58770 2006-11-01  Bruno Haible  <bruno@clisp.org>
58771
58772         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
58773         be POSIX compliant.
58774         Reported by Roger Persson <perrog@gmail.com>.
58775
58776 2006-11-01  Eric Blake  <ebb9@byu.net>
58777
58778         * lib/getopt_.h: Fix comments.
58779
58780 2006-10-31  Eric Blake  <ebb9@byu.net>
58781
58782         * modules/tmpdir (Depends-on): Add sys_stat.
58783         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
58784         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
58785         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
58786         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
58787         tempname.
58788
58789 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
58790
58791         Avoid some C++ diagnostics reported by Bruno Haible.
58792         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
58793         xmalloc.
58794         (quotearg_alloc): Use xcharalloc rather than xmalloc.
58795         (struct slotvec): Move to top level.
58796         (quotearg_n_options): Rewrite to avoid xmalloc.
58797         * lib/xalloc.h (xcharalloc): New function.
58798         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
58799         [defined __cplusplus]: Add function template that provides result
58800         type propagation.  This part of the change is from Bruno Haible.
58801
58802 2006-10-29  Bruno Haible  <bruno@clisp.org>
58803
58804         Make it compile in C++ mode.
58805         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
58806         * lib/strnlen1.c (strnlen1): Cast memchr result.
58807         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
58808         * lib/clean-temp.c (string_equals, string_hash): Add casts.
58809         (create_temp_dir): Rename local variable 'template'.
58810         (compile_csharp_using_sscli): Add cast.
58811         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
58812         * lib/findprog.c (find_in_path): Likewise.
58813         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
58814         * lib/wait-process.c (register_slave_subprocess): Likewise.
58815
58816 2006-10-22  Bruno Haible  <bruno@clisp.org>
58817
58818         * modules/tsearch: New file.
58819         * lib/tsearch.h: New file.
58820         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
58821         * m4/tsearch.m4: New file.
58822         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
58823
58824 2006-10-29  Eric Blake  <ebb9@byu.net>
58825
58826         * lib/arcfour.c: Assume config.h.
58827         * lib/arctwo.c: Likewise.
58828         * lib/base64.c: Likewise.
58829         * lib/check-version.c: Likewise.
58830         * lib/crc.c: Likewise.
58831         * lib/des.c: Likewise.
58832         * lib/gc-gnulib.c: Likewise.
58833         * lib/gc-libgcrypt.c: Likewise.
58834         * lib/gc-pbkdf2-sha1.c: Likewise.
58835         * lib/getaddrinfo.c: Likewise.
58836         * lib/getdelim.c: Likewise.
58837         * lib/getline.c: Likewise.
58838         * lib/hmac-md5.c: Likewise.
58839         * lib/hmac-sha1.c: Likewise.
58840         * lib/iconvme.c: Likewise.
58841         * lib/md2.c: Likewise.
58842         * lib/md4.c: Likewise.
58843         * lib/memxor.c: Likewise.
58844         * lib/read-file.c: Likewise.
58845         * lib/readline.c: Likewise.
58846         * lib/rijndael-alg-fst.c: Likewise.
58847         * lib/rijndael-api-fst.c: Likewise.
58848         * lib/xgetdomainname.c: Likewise.
58849
58850 2006-10-28  Eric Blake  <ebb9@byu.net>
58851
58852         * lib/xstrndup.c: Assume config.h.
58853
58854 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
58855
58856         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
58857         stat-macros.h is now for our own macros, whereas stat_h is for
58858         macros in the <sys/stat.h> name space.
58859         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
58860         (STAT_MACROS_H): Remove.
58861         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
58862         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
58863         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
58864         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
58865         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
58866         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
58867         Move these macros to ...
58868         * lib/stat_.h: here.  Don't include stat-macros.h.
58869         * lib/canonicalize.c: Don't include stat-macros.h.
58870         * lib/chown.c: Likewise.
58871         * lib/euidaccess.c: Likewise.
58872         * lib/file-type.c: Likewise.
58873         * lib/filemode.c: Likewise.
58874         * lib/glob.c: Likewise.
58875         * lib/isapipe.c: Likewise.
58876         * lib/lchown.c: Likewise.
58877         * lib/lstat.c: Likewise.
58878         * lib/mkdir-p.c: Likewise.
58879         * lib/rmdir.c: Likewise.
58880         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
58881         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
58882         unless mkdir isn't declared, to speed up 'configure'.
58883         Always create sys/stat.h, since it's unlikely any real sys/stat.h
58884         would define all the S_* symbols.
58885         * modules/canonicalize (Depends-on):
58886         Depend on sys_stat, not stat-macros.
58887         * modules/chown: Likewise.
58888         * modules/euidaccess: Likewise.
58889         * modules/filemode: Likewise.
58890         * modules/file-type: Likewise.
58891         * modules/glob: Likewise.
58892         * modules/isapipe: Likewise.
58893         * modules/lchown: Likewise.
58894         * modules/lstat: Likewise.
58895         * modules/mkancesdirs: Likewise.
58896         * modules/rmdir: Likewise.
58897         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
58898         * modules/modechange: Likewise.
58899         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
58900         (configure.ac): Remove gl_STAT_MACROS.
58901         * modules/sys_stat (Depends-on): Remove stat-macros.
58902
58903 2006-10-27  Bruno Haible  <bruno@clisp.org>
58904
58905         * m4/signed.m4: Remove file.
58906         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
58907         invocation.
58908         * modules/vasnprintf (Files): Remove m4/signed.m4.
58909
58910 2006-10-27  Bruno Haible  <bruno@clisp.org>
58911
58912         Update to GNU gettext 0.16.
58913         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
58914         m4/inttypes-h.m4, m4/signed.m4.
58915         * m4/gettext.m4: Update to GNU gettext 0.16.
58916         * m4/intl.m4: New file, from GNU gettext.
58917         * m4/intldir.m4: New file, from GNU gettext.
58918         * config/srclist.txt: Update
58919
58920 2006-10-27  Eric Blake  <ebb9@byu.net>
58921
58922         * MODULES.html.sh: Document tempname.
58923         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
58924         dependencies.
58925         (Files): Move lib/tempname.c...
58926         * modules/tempname: ...to this new module.
58927         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
58928         (gl_PREREQ_TEMPNAME): Move...
58929         * m4/tempname.m4: ...to this new file.
58930         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
58931         * modules/sys_stat (Depends-on): Add stat-macros.
58932         * lib/stat_.h (includes): Pick up stat macros.
58933         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
58934         if stat macros are broken.
58935         * lib/tempname.c (includes): No need to include "stat-macros.h".
58936         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
58937         (direxists, __path_search) [!_LIBC]: Don't compile these in
58938         gnulib; the tmpdir module covers that.
58939         * lib/tempname.h: New file.
58940
58941 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
58942
58943         * COPYING: Explain how gnulib-tool converts licence headers.
58944         Almost all wording by Eric Blake.
58945
58946 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
58947
58948         * lib/mbchar.h (is_basic_table): Make read-only.
58949         * lib/mbchar.c (is_basic_table): Likewise.
58950         Reported by John Darrington.
58951
58952 2006-10-25  Bruno Haible  <bruno@clisp.org>
58953
58954         * lib/progname.h (set_program_name): Undefine before defining.
58955
58956 2006-10-25  Bruno Haible  <bruno@clisp.org>
58957
58958         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
58959         false for non-gcc C++ compilers.
58960         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58961
58962 2006-10-24  Bruno Haible  <bruno@clisp.org>
58963
58964         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
58965         iconv implementations like Irix iconv.
58966
58967 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58968
58969         * modules/vararrays: New file.
58970         * m4/vararrays.m4: New file, taken from diffutils.
58971         * MODULES.html.sh: New module vararrays.
58972
58973 2006-10-24  Karl Berry  <karl@gnu.org>
58974
58975         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
58976         Don't call GNU Unix.
58977
58978 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58979
58980         * users.txt: Add Libtool.
58981
58982         Sync from Libtool:
58983
58984         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58985
58986         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
58987         to gnulib's policy of including config.h unconditionally.
58988
58989 2006-10-24  Bruno Haible  <bruno@clisp.org>
58990
58991         * modules/wcwidth (Files): Add m4/wint_t.m4.
58992         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
58993         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
58994
58995 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58996
58997         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
58998         to pacify GCC with some -W flags enabled.  Problem reported by
58999         Bruno Haible.
59000
59001 2006-10-24  Jim Meyering  <jim@meyering.net>
59002
59003         * MODULES.html.sh: Remove uinttostr.  It's not a module.
59004         Reported by Karl Berry.
59005
59006 2006-10-23  Bruno Haible  <bruno@clisp.org>
59007
59008         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
59009
59010 2006-10-24  Bruno Haible  <bruno@clisp.org>
59011
59012         * lib/gl_list.h: Use C comment style, not C++ comment style.
59013
59014 2006-10-23  Eric Blake  <ebb9@byu.net>
59015
59016         * lib/getaddrinfo.c (includes): Add missing include.
59017
59018 2006-10-23  Bruno Haible  <bruno@clisp.org>
59019             Paul Eggert  <eggert@cs.ucla.edu>
59020
59021         Ability to rename obstack_free.
59022         * lib/obstack.h (__obstack_free): New macro. Declare instead of
59023         obstack_free.
59024         (obstack_free): Invoke the __obstack_free macro.
59025         * lib/obstack.c (obstack_free): Use __obstack_free macro.
59026
59027 2006-10-23  Bruno Haible  <bruno@clisp.org>
59028             Paul Eggert  <eggert@cs.ucla.edu>
59029
59030         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
59031         __argc, __argv from the declaration. (They are defined as macros on
59032         mingw.)
59033
59034 2006-10-22  Bruno Haible  <bruno@clisp.org>
59035
59036         * doc/gnulib-intro.texi: New file.
59037         * doc/gnulib.texi: Include it.
59038
59039 2006-10-21  Bruno Haible  <bruno@clisp.org>
59040
59041         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
59042         "Introduction", "Miscellanous Notes", "Particular Modules".
59043
59044 2006-10-21  Bruno Haible  <bruno@clisp.org>
59045
59046         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59047         Change mostlyclean-local rule to avoid sh syntax error from bash
59048         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
59049
59050 2006-10-23  Jim Meyering  <jim@meyering.net>
59051
59052         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
59053         in place of snprintf.
59054
59055         * modules/inttostr (Files): Add lib/uinttostr.c.
59056         * lib/uinttostr.c (inttostr): New file/function.
59057         * lib/inttostr.h (uinttostr): Declare.
59058         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
59059         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
59060         Add uinttostr.
59061         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
59062
59063 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59064
59065         * lib/canonicalize.c (ELOOP): Define if not already defined.
59066         Problem reported by Bruno Haible in
59067         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
59068
59069 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59070
59071         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
59072         Problem reported by Perry Smith and Ville Laurikari.
59073
59074         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
59075         uses.
59076
59077 2006-10-19  Bruno Haible  <bruno@clisp.org>
59078
59079         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
59080         for mingw.
59081
59082 2006-10-19  Bruno Haible  <bruno@clisp.org>
59083
59084         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
59085         Needed for mingw.
59086
59087 2006-10-19  Bruno Haible  <bruno@clisp.org>
59088
59089         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
59090
59091 2006-10-19  Bruno Haible  <bruno@clisp.org>
59092
59093         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
59094         it.
59095
59096 2006-10-19  Bruno Haible  <bruno@clisp.org>
59097
59098         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
59099         invocation.
59100
59101 2006-10-19  Bruno Haible  <bruno@clisp.org>
59102
59103         * gnulib-tool (func_create_testdir): Don't include ftruncate and
59104         mountlist by default.
59105
59106 2006-10-16  Bruno Haible  <bruno@clisp.org>
59107
59108         * lib/c-strstr.c: Include c-strstr.h.
59109
59110 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59111
59112         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
59113         in a slash.
59114
59115 2006-10-18  Bruno Haible  <bruno@clisp.org>
59116
59117         * lib/lock.h [C++]: Wrap definitions in extern "C".
59118
59119 2006-10-18  Bruno Haible  <bruno@clisp.org>
59120
59121         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
59122         gl_LIBOBJS list.
59123
59124 2006-10-18  Bruno Haible  <bruno@clisp.org>
59125
59126         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
59127
59128 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
59129
59130         * lib/xstrtol.h: Include gettext.h.
59131         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
59132         Problem reported by Eric Blake.
59133         * modules/xstrtol (Depends-on): Add gettext-h.
59134
59135 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
59136
59137         * lib/strftime.c (advance): New macro.
59138         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
59139         incomplete type, so you can't add 0 to it.  Problem and patch
59140         reported by Eelco Dolstra for dietlibc.
59141
59142 2006-10-18  Jim Meyering  <jim@meyering.net>
59143
59144         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
59145         type for a local, and rename it: s/up/user_proc/.
59146
59147 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59148
59149         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
59150         READ_UTMP_USER_PROCESS.
59151         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
59152
59153 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59154
59155         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
59156         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
59157
59158 2006-10-17  Eric Blake  <ebb9@byu.net>
59159
59160         * lib/sigprocmask.c (sigprocmask): Fix typo.
59161
59162         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
59163
59164         * modules/clean-temp (Makefile.am): Don't add to make output...
59165         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
59166         config.h.
59167
59168 2006-10-17  Bruno Haible  <bruno@clisp.org>
59169
59170         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
59171         differently if DEFAULT_TEXT_DOMAIN is set.
59172
59173 2006-10-16  Bruno Haible  <bruno@clisp.org>
59174
59175         * lib/clean-temp.c: Include fwriteerror.h.
59176
59177 2006-10-16  Bruno Haible  <bruno@clisp.org>
59178
59179         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
59180
59181 2006-10-16  Bruno Haible  <bruno@clisp.org>
59182
59183         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
59184         * lib/sigprocmask.h: Include <sys/types.h>.
59185         (sigset_t): Use the system's definition if present.
59186
59187 2006-10-17  Eric Blake  <ebb9@byu.net>
59188
59189         * lib/xvasprintf.c (includes): Assume config.h.
59190         * lib/xasprintf.c (includes): Likewise.
59191
59192 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59193
59194         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
59195         at least as wide as intmax_t.
59196
59197 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
59198
59199         (Imported from Automake.)
59200         * build-aux/gnupload: Update to version 1.1 of directive file.
59201
59202 2006-10-16  Eric Blake  <ebb9@byu.net>
59203
59204         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
59205         match Automake 1.10a.
59206
59207 2006-10-14  Bruno Haible  <bruno@clisp.org>
59208
59209         * modules/sigprocmask: New file.
59210         * lib/sigprocmask.h: New file.
59211         * lib/sigprocmask.c: New file.
59212         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
59213         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
59214         request sigprocmask.o.
59215         (gl_PREREQ_SIGPROCMASK): New macro.
59216         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
59217         (Depends-on): Add sigprocmask.
59218         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
59219         gt_SIGNALBLOCKING. Test for 'raise' only once.
59220         * lib/fatal-signal.c: Include sigprocmask.h.
59221         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
59222         unblock_fatal_signals): Define always.
59223         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59224         sigprocmask.
59225
59226 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59227
59228         Sync from Automake.
59229         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
59230         which incorrectly sets the mode of an existing destination
59231         directory.  In some cases the unpatched install-sh could do the
59232         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
59233         system.  We hope this is rare in practice, but it's clearly worth
59234         fixing.  Problem reported by Alex Unleashed in
59235         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
59236         Also, don't bother to check for -m bugs unless we're using -m;
59237         suggested by Stepan Kasal.
59238
59239 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59240
59241         Sync from Automake.
59242         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
59243         `-c' flag, so they appear at the same position as in %FASTDEP%
59244         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
59245         which ignores unknown options only after the first non-option.
59246         Bug report against M4 by Nelson H. F. Beebe.
59247
59248 2006-10-13  Jim Meyering  <jim@meyering.net>
59249
59250         Fix a bug in yesterday's change.
59251         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
59252         p->fts_statp->st_dev would be used uninitialized.
59253         Ensures that we always call fts_stat on the very first entry.
59254         Miklos Szeredi reported that find -xdev stopped working.
59255
59256 2006-10-12  Bruno Haible  <bruno@clisp.org>
59257
59258         * gnulib-tool (func_get_automake_snippet): Append an automatically
59259         computed EXTRA_DIST augmentation.
59260         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
59261         * modules/alloca-opt (Makefile.am): Likewise.
59262         * modules/allocsa (Makefile.am): Likewise.
59263         * modules/arcfour (Makefile.am): Likewise.
59264         * modules/arctwo (Makefile.am): Likewise.
59265         * modules/argmatch (Makefile.am): Likewise.
59266         * modules/argz (Makefile.am): Likewise.
59267         * modules/atexit (Makefile.am): Likewise.
59268         * modules/backupfile (Makefile.am): Likewise.
59269         * modules/byteswap (Makefile.am): Likewise.
59270         * modules/c-strtod (Makefile.am): Likewise.
59271         * modules/c-strtold (Makefile.am): Likewise.
59272         * modules/calloc (Makefile.am): Likewise.
59273         * modules/canon-host (Makefile.am): Likewise.
59274         * modules/canonicalize (Makefile.am): Likewise.
59275         * modules/chdir-long (Makefile.am): Likewise.
59276         * modules/chdir-safer (Makefile.am): Likewise.
59277         * modules/check-version (Makefile.am): Likewise.
59278         * modules/chown (Makefile.am): Likewise.
59279         * modules/cloexec (Makefile.am): Likewise.
59280         * modules/close-stream (Makefile.am): Likewise.
59281         * modules/closeout (Makefile.am): Likewise.
59282         * modules/crc (Makefile.am): Likewise.
59283         * modules/csharpexec (Makefile.am): Likewise.
59284         * modules/cycle-check (Makefile.am): Likewise.
59285         * modules/des (Makefile.am): Likewise.
59286         * modules/dev-ino (Makefile.am): Likewise.
59287         * modules/dirfd (Makefile.am): Likewise.
59288         * modules/dirname (Makefile.am): Likewise.
59289         * modules/dup2 (Makefile.am): Likewise.
59290         * modules/eealloc (Makefile.am): Likewise.
59291         * modules/error (Makefile.am): Likewise.
59292         * modules/euidaccess (Makefile.am): Likewise.
59293         * modules/exclude (Makefile.am): Likewise.
59294         * modules/exitfail (Makefile.am): Likewise.
59295         * modules/fcntl-safer (Makefile.am): Likewise.
59296         * modules/fcntl (Makefile.am): Likewise.
59297         * modules/file-type (Makefile.am): Likewise.
59298         * modules/fileblocks (Makefile.am): Likewise.
59299         * modules/filemode (Makefile.am): Likewise.
59300         * modules/filenamecat (Makefile.am): Likewise.
59301         * modules/fnmatch (Makefile.am): Likewise.
59302         * modules/fopen-safer (Makefile.am): Likewise.
59303         * modules/fpending (Makefile.am): Likewise.
59304         * modules/fprintftime (Makefile.am): Likewise.
59305         * modules/free (Makefile.am): Likewise.
59306         * modules/fsusage (Makefile.am): Likewise.
59307         * modules/ftruncate (Makefile.am): Likewise.
59308         * modules/fts (Makefile.am): Likewise.
59309         * modules/gc-arcfour (Makefile.am): Likewise.
59310         * modules/gc-des (Makefile.am): Likewise.
59311         * modules/gc-hmac-md5 (Makefile.am): Likewise.
59312         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
59313         * modules/gc-md4 (Makefile.am): Likewise.
59314         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59315         * modules/gc-sha1 (Makefile.am): Likewise.
59316         * modules/gc (Makefile.am): Likewise.
59317         * modules/getaddrinfo (Makefile.am): Likewise.
59318         * modules/getcwd (Makefile.am): Likewise.
59319         * modules/getdelim (Makefile.am): Likewise.
59320         * modules/getdomainname (Makefile.am): Likewise.
59321         * modules/getgroups (Makefile.am): Likewise.
59322         * modules/gethostname (Makefile.am): Likewise.
59323         * modules/gethrxtime (Makefile.am): Likewise.
59324         * modules/getline (Makefile.am): Likewise.
59325         * modules/getloadavg (Makefile.am): Likewise.
59326         * modules/getlogin_r (Makefile.am): Likewise.
59327         * modules/getndelim2 (Makefile.am): Likewise.
59328         * modules/getopt (Makefile.am): Likewise.
59329         * modules/getpagesize (Makefile.am): Likewise.
59330         * modules/getpass-gnu (Makefile.am): Likewise.
59331         * modules/getpass (Makefile.am): Likewise.
59332         * modules/getsubopt (Makefile.am): Likewise.
59333         * modules/gettime (Makefile.am): Likewise.
59334         * modules/gettimeofday (Makefile.am): Likewise.
59335         * modules/getugroups (Makefile.am): Likewise.
59336         * modules/getusershell (Makefile.am): Likewise.
59337         * modules/glob (Makefile.am): Likewise.
59338         * modules/group-member (Makefile.am): Likewise.
59339         * modules/hard-locale (Makefile.am): Likewise.
59340         * modules/hash (Makefile.am): Likewise.
59341         * modules/hmac-md5 (Makefile.am): Likewise.
59342         * modules/hmac-sha1 (Makefile.am): Likewise.
59343         * modules/human (Makefile.am): Likewise.
59344         * modules/idcache (Makefile.am): Likewise.
59345         * modules/imaxabs (Makefile.am): Likewise.
59346         * modules/imaxdiv (Makefile.am): Likewise.
59347         * modules/inet_ntop (Makefile.am): Likewise.
59348         * modules/inet_pton (Makefile.am): Likewise.
59349         * modules/intprops (Makefile.am): Likewise.
59350         * modules/inttostr (Makefile.am): Likewise.
59351         * modules/inttypes (Makefile.am): Likewise.
59352         * modules/isapipe (Makefile.am): Likewise.
59353         * modules/javaversion (Makefile.am): Likewise.
59354         * modules/lchmod (Makefile.am): Likewise.
59355         * modules/lchown (Makefile.am): Likewise.
59356         * modules/localcharset (Makefile.am): Likewise.
59357         * modules/long-options (Makefile.am): Likewise.
59358         * modules/lstat (Makefile.am): Likewise.
59359         * modules/malloc (Makefile.am): Likewise.
59360         * modules/mathl (Makefile.am): Likewise.
59361         * modules/mbchar (Makefile.am): Likewise.
59362         * modules/md2 (Makefile.am): Likewise.
59363         * modules/md4 (Makefile.am): Likewise.
59364         * modules/md5 (Makefile.am): Likewise.
59365         * modules/memcasecmp (Makefile.am): Likewise.
59366         * modules/memchr (Makefile.am): Likewise.
59367         * modules/memcmp (Makefile.am): Likewise.
59368         * modules/memcoll (Makefile.am): Likewise.
59369         * modules/memcpy (Makefile.am): Likewise.
59370         * modules/memmem (Makefile.am): Likewise.
59371         * modules/memmove (Makefile.am): Likewise.
59372         * modules/mempcpy (Makefile.am): Likewise.
59373         * modules/memrchr (Makefile.am): Likewise.
59374         * modules/memset (Makefile.am): Likewise.
59375         * modules/memxor (Makefile.am): Likewise.
59376         * modules/mkancesdirs (Makefile.am): Likewise.
59377         * modules/mkdir-p (Makefile.am): Likewise.
59378         * modules/mkdir (Makefile.am): Likewise.
59379         * modules/mkdtemp (Makefile.am): Likewise.
59380         * modules/mkstemp (Makefile.am): Likewise.
59381         * modules/mktime (Makefile.am): Likewise.
59382         * modules/modechange (Makefile.am): Likewise.
59383         * modules/mountlist (Makefile.am): Likewise.
59384         * modules/nanosleep (Makefile.am): Likewise.
59385         * modules/obstack (Makefile.am): Likewise.
59386         * modules/openat (Makefile.am): Likewise.
59387         * modules/pagealign_alloc (Makefile.am): Likewise.
59388         * modules/pathmax (Makefile.am): Likewise.
59389         * modules/physmem (Makefile.am): Likewise.
59390         * modules/poll (Makefile.am): Likewise.
59391         * modules/posixtm (Makefile.am): Likewise.
59392         * modules/posixver (Makefile.am): Likewise.
59393         * modules/putenv (Makefile.am): Likewise.
59394         * modules/quote (Makefile.am): Likewise.
59395         * modules/quotearg (Makefile.am): Likewise.
59396         * modules/raise (Makefile.am): Likewise.
59397         * modules/read-file (Makefile.am): Likewise.
59398         * modules/readline (Makefile.am): Likewise.
59399         * modules/readlink (Makefile.am): Likewise.
59400         * modules/readtokens (Makefile.am): Likewise.
59401         * modules/readutmp (Makefile.am): Likewise.
59402         * modules/realloc (Makefile.am): Likewise.
59403         * modules/regex (Makefile.am): Likewise.
59404         * modules/rename-dest-slash (Makefile.am): Likewise.
59405         * modules/rename (Makefile.am): Likewise.
59406         * modules/rijndael (Makefile.am): Likewise.
59407         * modules/rmdir (Makefile.am): Likewise.
59408         * modules/rpmatch (Makefile.am): Likewise.
59409         * modules/safe-read (Makefile.am): Likewise.
59410         * modules/safe-write (Makefile.am): Likewise.
59411         * modules/same-inode (Makefile.am): Likewise.
59412         * modules/same (Makefile.am): Likewise.
59413         * modules/save-cwd (Makefile.am): Likewise.
59414         * modules/savedir (Makefile.am): Likewise.
59415         * modules/setenv (Makefile.am): Likewise.
59416         * modules/settime (Makefile.am): Likewise.
59417         * modules/sha1 (Makefile.am): Likewise.
59418         * modules/sig2str (Makefile.am): Likewise.
59419         * modules/snprintf (Makefile.am): Likewise.
59420         * modules/stat-macros (Makefile.am): Likewise.
59421         * modules/stat-time (Makefile.am): Likewise.
59422         * modules/stdbool (Makefile.am): Likewise.
59423         * modules/stdint (Makefile.am): Likewise.
59424         * modules/stdlib-safer (Makefile.am): Likewise.
59425         * modules/stpcpy (Makefile.am): Likewise.
59426         * modules/stpncpy (Makefile.am): Likewise.
59427         * modules/strcase (Makefile.am): Likewise.
59428         * modules/strcasestr (Makefile.am): Likewise.
59429         * modules/strchrnul (Makefile.am): Likewise.
59430         * modules/strcspn (Makefile.am): Likewise.
59431         * modules/strdup (Makefile.am): Likewise.
59432         * modules/strerror (Makefile.am): Likewise.
59433         * modules/strftime (Makefile.am): Likewise.
59434         * modules/strndup (Makefile.am): Likewise.
59435         * modules/strnlen (Makefile.am): Likewise.
59436         * modules/strpbrk (Makefile.am): Likewise.
59437         * modules/strsep (Makefile.am): Likewise.
59438         * modules/strstr (Makefile.am): Likewise.
59439         * modules/strtod (Makefile.am): Likewise.
59440         * modules/strtoimax (Makefile.am): Likewise.
59441         * modules/strtok_r (Makefile.am): Likewise.
59442         * modules/strtol (Makefile.am): Likewise.
59443         * modules/strtoll (Makefile.am): Likewise.
59444         * modules/strtoul (Makefile.am): Likewise.
59445         * modules/strtoull (Makefile.am): Likewise.
59446         * modules/strtoumax (Makefile.am): Likewise.
59447         * modules/strverscmp (Makefile.am): Likewise.
59448         * modules/sys_socket (Makefile.am): Likewise.
59449         * modules/sys_stat (Makefile.am): Likewise.
59450         * modules/sysexits (Makefile.am): Likewise.
59451         * modules/time_r (Makefile.am): Likewise.
59452         * modules/timegm (Makefile.am): Likewise.
59453         * modules/timespec (Makefile.am): Likewise.
59454         * modules/tmpfile-safer (Makefile.am): Likewise.
59455         * modules/trim (Makefile.am): Likewise.
59456         * modules/unistd-safer (Makefile.am): Likewise.
59457         * modules/unlinkdir (Makefile.am): Likewise.
59458         * modules/unlocked-io (Makefile.am): Likewise.
59459         * modules/userspec (Makefile.am): Likewise.
59460         * modules/utime (Makefile.am): Likewise.
59461         * modules/utimecmp (Makefile.am): Likewise.
59462         * modules/utimens (Makefile.am): Likewise.
59463         * modules/vasnprintf (Makefile.am): Likewise.
59464         * modules/vasprintf (Makefile.am): Likewise.
59465         * modules/vsnprintf (Makefile.am): Likewise.
59466         * modules/xalloc (Makefile.am): Likewise.
59467         * modules/xgetcwd (Makefile.am): Likewise.
59468         * modules/xnanosleep (Makefile.am): Likewise.
59469         * modules/xreadlink (Makefile.am): Likewise.
59470         * modules/xstrtod (Makefile.am): Likewise.
59471         * modules/xstrtol (Makefile.am): Likewise.
59472         * modules/xstrtold (Makefile.am): Likewise.
59473         * modules/yesno (Makefile.am): Likewise.
59474         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
59475
59476 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59477
59478         * modules/error (Makefile.am): Distribute files through
59479         EXTRA_DIST, not lib_SOURCES.
59480
59481 2006-10-12  Eric Blake  <ebb9@byu.net>
59482
59483         * modules/error (Makefile.am): Distribute files in /lib.
59484         * modules/obstack (Makefile.am): Likewise.
59485
59486 2006-10-12  Bruno Haible  <bruno@clisp.org>
59487
59488         * modules/acl (Makefile.am): Distribute all files in lib/ through
59489         EXTRA_DIST.
59490         * modules/arcfour (Makefile.am): Likewise.
59491         * modules/arctwo (Makefile.am): Likewise.
59492         * modules/argmatch (Makefile.am): Likewise.
59493         * modules/argz (Makefile.am): Likewise.
59494         * modules/atexit (Makefile.am): Likewise.
59495         * modules/backupfile (Makefile.am): Likewise.
59496         * modules/c-strtod (Makefile.am): Likewise.
59497         * modules/c-strtold (Makefile.am): Likewise.
59498         * modules/calloc (Makefile.am): Likewise.
59499         * modules/canon-host (Makefile.am): Likewise.
59500         * modules/canonicalize (Makefile.am): Likewise.
59501         * modules/chdir-long (Makefile.am): Likewise.
59502         * modules/chdir-safer (Makefile.am): Likewise.
59503         * modules/check-version (Makefile.am): Likewise.
59504         * modules/chown (Makefile.am): Likewise.
59505         * modules/cloexec (Makefile.am): Likewise.
59506         * modules/close-stream (Makefile.am): Likewise.
59507         * modules/closeout (Makefile.am): Likewise.
59508         * modules/crc (Makefile.am): Likewise.
59509         * modules/cycle-check (Makefile.am): Likewise.
59510         * modules/des (Makefile.am): Likewise.
59511         * modules/dirfd (Makefile.am): Likewise.
59512         * modules/dirname (Makefile.am): Likewise.
59513         * modules/dup2 (Makefile.am): Likewise.
59514         * modules/euidaccess (Makefile.am): Likewise.
59515         * modules/exclude (Makefile.am): Likewise.
59516         * modules/exitfail (Makefile.am): Likewise.
59517         * modules/fcntl-safer (Makefile.am): Likewise.
59518         * modules/file-type (Makefile.am): Likewise.
59519         * modules/fileblocks (Makefile.am): Likewise.
59520         * modules/filemode (Makefile.am): Likewise.
59521         * modules/filenamecat (Makefile.am): Likewise.
59522         * modules/fnmatch (Makefile.am): Likewise.
59523         * modules/fopen-safer (Makefile.am): Likewise.
59524         * modules/fpending (Makefile.am): Likewise.
59525         * modules/fprintftime (Makefile.am): Likewise.
59526         * modules/free (Makefile.am): Likewise.
59527         * modules/fsusage (Makefile.am): Likewise.
59528         * modules/ftruncate (Makefile.am): Likewise.
59529         * modules/fts (Makefile.am): Likewise.
59530         * modules/gc (Makefile.am): Likewise.
59531         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59532         * modules/getaddrinfo (Makefile.am): Likewise.
59533         * modules/getcwd (Makefile.am): Likewise.
59534         * modules/getdelim (Makefile.am): Likewise.
59535         * modules/getdomainname (Makefile.am): Likewise.
59536         * modules/getgroups (Makefile.am): Likewise.
59537         * modules/gethostname (Makefile.am): Likewise.
59538         * modules/gethrxtime (Makefile.am): Likewise.
59539         * modules/getline (Makefile.am): Likewise.
59540         * modules/getloadavg (Makefile.am): Likewise.
59541         * modules/getlogin_r (Makefile.am): Likewise.
59542         * modules/getopt (Makefile.am): Likewise.
59543         * modules/getpass (Makefile.am): Likewise.
59544         * modules/getpass-gnu (Makefile.am): Likewise.
59545         * modules/getsubopt (Makefile.am): Likewise.
59546         * modules/gettime (Makefile.am): Likewise.
59547         * modules/gettimeofday (Makefile.am): Likewise.
59548         * modules/getugroups (Makefile.am): Likewise.
59549         * modules/getusershell (Makefile.am): Likewise.
59550         * modules/glob (Makefile.am): Likewise.
59551         * modules/group-member (Makefile.am): Likewise.
59552         * modules/hard-locale (Makefile.am): Likewise.
59553         * modules/hash (Makefile.am): Likewise.
59554         * modules/hmac-md5 (Makefile.am): Likewise.
59555         * modules/hmac-sha1 (Makefile.am): Likewise.
59556         * modules/human (Makefile.am): Likewise.
59557         * modules/idcache (Makefile.am): Likewise.
59558         * modules/imaxabs (Makefile.am): Likewise.
59559         * modules/imaxdiv (Makefile.am): Likewise.
59560         * modules/inet_ntop (Makefile.am): Likewise.
59561         * modules/inet_pton (Makefile.am): Likewise.
59562         * modules/inttostr (Makefile.am): Likewise.
59563         * modules/isapipe (Makefile.am): Likewise.
59564         * modules/lchown (Makefile.am): Likewise.
59565         * modules/long-options (Makefile.am): Likewise.
59566         * modules/lstat (Makefile.am): Likewise.
59567         * modules/malloc (Makefile.am): Likewise.
59568         * modules/mathl (Makefile.am): Likewise.
59569         * modules/mbchar (Makefile.am): Likewise.
59570         * modules/md2 (Makefile.am): Likewise.
59571         * modules/md4 (Makefile.am): Likewise.
59572         * modules/md5 (Makefile.am): Likewise.
59573         * modules/memcasecmp (Makefile.am): Likewise.
59574         * modules/memchr (Makefile.am): Likewise.
59575         * modules/memcmp (Makefile.am): Likewise.
59576         * modules/memcoll (Makefile.am): Likewise.
59577         * modules/memcpy (Makefile.am): Likewise.
59578         * modules/memmem (Makefile.am): Likewise.
59579         * modules/memmove (Makefile.am): Likewise.
59580         * modules/mempcpy (Makefile.am): Likewise.
59581         * modules/memrchr (Makefile.am): Likewise.
59582         * modules/memset (Makefile.am): Likewise.
59583         * modules/memxor (Makefile.am): Likewise.
59584         * modules/mkancesdirs (Makefile.am): Likewise.
59585         * modules/mkdir (Makefile.am): Likewise.
59586         * modules/mkdir-p (Makefile.am): Likewise.
59587         * modules/mkdtemp (Makefile.am): Likewise.
59588         * modules/mkstemp (Makefile.am): Likewise.
59589         * modules/mktime (Makefile.am): Likewise.
59590         * modules/modechange (Makefile.am): Likewise.
59591         * modules/mountlist (Makefile.am): Likewise.
59592         * modules/nanosleep (Makefile.am): Likewise.
59593         * modules/openat (Makefile.am): Likewise.
59594         * modules/pagealign_alloc (Makefile.am): Likewise.
59595         * modules/physmem (Makefile.am): Likewise.
59596         * modules/poll (Makefile.am): Likewise.
59597         * modules/posixtm (Makefile.am): Likewise.
59598         * modules/posixver (Makefile.am): Likewise.
59599         * modules/putenv (Makefile.am): Likewise.
59600         * modules/quote (Makefile.am): Likewise.
59601         * modules/quotearg (Makefile.am): Likewise.
59602         * modules/raise (Makefile.am): Likewise.
59603         * modules/read-file (Makefile.am): Likewise.
59604         * modules/readline (Makefile.am): Likewise.
59605         * modules/readlink (Makefile.am): Likewise.
59606         * modules/readtokens (Makefile.am): Likewise.
59607         * modules/readutmp (Makefile.am): Likewise.
59608         * modules/realloc (Makefile.am): Likewise.
59609         * modules/regex (Makefile.am): Likewise.
59610         * modules/rename (Makefile.am): Likewise.
59611         * modules/rename-dest-slash (Makefile.am): Likewise.
59612         * modules/rijndael (Makefile.am): Likewise.
59613         * modules/rmdir (Makefile.am): Likewise.
59614         * modules/rpmatch (Makefile.am): Likewise.
59615         * modules/safe-read (Makefile.am): Likewise.
59616         * modules/safe-write (Makefile.am): Likewise.
59617         * modules/same (Makefile.am): Likewise.
59618         * modules/save-cwd (Makefile.am): Likewise.
59619         * modules/savedir (Makefile.am): Likewise.
59620         * modules/setenv (Makefile.am): Likewise.
59621         * modules/settime (Makefile.am): Likewise.
59622         * modules/sha1 (Makefile.am): Likewise.
59623         * modules/sig2str (Makefile.am): Likewise.
59624         * modules/snprintf (Makefile.am): Likewise.
59625         * modules/stdlib-safer (Makefile.am): Likewise.
59626         * modules/stpcpy (Makefile.am): Likewise.
59627         * modules/stpncpy (Makefile.am): Likewise.
59628         * modules/strcase (Makefile.am): Likewise.
59629         * modules/strcasestr (Makefile.am): Likewise.
59630         * modules/strchrnul (Makefile.am): Likewise.
59631         * modules/strcspn (Makefile.am): Likewise.
59632         * modules/strdup (Makefile.am): Likewise.
59633         * modules/strerror (Makefile.am): Likewise.
59634         * modules/strftime (Makefile.am): Likewise.
59635         * modules/strndup (Makefile.am): Likewise.
59636         * modules/strnlen (Makefile.am): Likewise.
59637         * modules/strpbrk (Makefile.am): Likewise.
59638         * modules/strsep (Makefile.am): Likewise.
59639         * modules/strstr (Makefile.am): Likewise.
59640         * modules/strtod (Makefile.am): Likewise.
59641         * modules/strtoimax (Makefile.am): Likewise.
59642         * modules/strtok_r (Makefile.am): Likewise.
59643         * modules/strtol (Makefile.am): Likewise.
59644         * modules/strtoll (Makefile.am): Likewise.
59645         * modules/strtoul (Makefile.am): Likewise.
59646         * modules/strtoull (Makefile.am): Likewise.
59647         * modules/strtoumax (Makefile.am): Likewise.
59648         * modules/strverscmp (Makefile.am): Likewise.
59649         * modules/time_r (Makefile.am): Likewise.
59650         * modules/timegm (Makefile.am): Likewise.
59651         * modules/tmpfile-safer (Makefile.am): Likewise.
59652         * modules/unistd-safer (Makefile.am): Likewise.
59653         * modules/unlinkdir (Makefile.am): Likewise.
59654         * modules/userspec (Makefile.am): Likewise.
59655         * modules/utime (Makefile.am): Likewise.
59656         * modules/utimecmp (Makefile.am): Likewise.
59657         * modules/utimens (Makefile.am): Likewise.
59658         * modules/vasnprintf (Makefile.am): Likewise.
59659         * modules/vasprintf (Makefile.am): Likewise.
59660         * modules/vsnprintf (Makefile.am): Likewise.
59661         * modules/xalloc (Makefile.am): Likewise.
59662         * modules/xgetcwd (Makefile.am): Likewise.
59663         * modules/xnanosleep (Makefile.am): Likewise.
59664         * modules/xreadlink (Makefile.am): Likewise.
59665         * modules/xstrtod (Makefile.am): Likewise.
59666         * modules/xstrtol (Makefile.am): Likewise.
59667         * modules/xstrtold (Makefile.am): Likewise.
59668         * modules/yesno (Makefile.am): Likewise.
59669
59670 2006-10-12  Jim Meyering  <jim@meyering.net>
59671
59672         * m4/getloadavg.m4: Revert the change below.
59673
59674         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
59675         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
59676         fail with a symlink, which is what coreutils' ./bootstrap now
59677         creates by default.
59678
59679 2006-10-12  Bruno Haible  <bruno@clisp.org>
59680
59681         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
59682         mingw.
59683         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
59684         MSVC and mingw explicitly.
59685
59686 2006-10-11  Simon Josefsson  <jas@extundo.com>
59687             Bruno Haible  <bruno@clisp.org>
59688
59689         Add support for multiple gnulib-tool invocations in the scope of a
59690         single configure.ac file.
59691         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
59692         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
59693         with the same contents as the _LIBADD variable.
59694         (func_emit_initmacro_start, func_emit_initmacro_end,
59695         func_emit_initmacro_done): New functions.
59696         (func_import, func_create_testdir): Invoke them. Allow the identifiers
59697         gl_LIBOBJS and gl_LTLIBOBJS.
59698
59699 2006-10-11  Bruno Haible  <bruno@clisp.org>
59700
59701         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
59702         (func_create_testdir): Don't create po/Makefile.am, don't invoke
59703         autoreconf. Instead, invoke autopoint explicitly but move back the
59704         *.m4 files from gnulib.
59705
59706 2006-10-11  Bruno Haible  <bruno@clisp.org>
59707
59708         * gnulib-tool (func_usage): Make module names after --create-testdir
59709         optional.
59710         (func_create_testdir): If no module was specified, use nearly all
59711         modules.
59712
59713 2006-10-12  Jim Meyering  <jim@meyering.net>
59714
59715         Big performance improvement for fts-based tools that use FTS_NOSTAT.
59716         Avoid spurious inode-mismatch problems on non-POSIX file systems.
59717         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
59718         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
59719         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
59720         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
59721         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
59722         (fts_set_stat_required): New function.
59723         (fts_open): Defer the calls to fts_stat, if possible or requested.
59724         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
59725         into fts_stat itself.
59726         (fts_read): Perform any required (deferred) fts_stat call.
59727         (fts_build): Likewise, for the directory we're about to open and read.
59728         In the readdir loop, carefully decide whether each entry will require
59729         an eventual call to fts_stat, using dirent.d_type info if available.
59730         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
59731         a command line argument into this function.  Update all callers.
59732         Map a return value of FTS_DOT to FTS_D for a command line argument.
59733         * modules/fts (Depends-on): Add d-type.  Alphabetize.
59734         Thanks to Miklos Szeredi for his tenacity and for the initial
59735         bug report about "find" failing on a FUSE-based file system.
59736
59737         * lib/fts.c (fts_open): Use consistent indentation.
59738
59739 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59740
59741         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
59742         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
59743         reported by Jim Meyering.  All uses of cache variables renamed
59744         to match Autoconf's.
59745         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
59746         the other one.
59747
59748         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
59749         Fix misspelling in diagnostic.
59750
59751 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59752
59753         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
59754         defined.  Problem reported by Matthew Woehlke.
59755
59756         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
59757         Add support for Tandem NonStop R series.
59758         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
59759         Use new macro.
59760
59761         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
59762         (has_trailing_slash): Omit size arg; all callers changed.
59763         Omit 'inline', since it doesn't help performance and we'd
59764         need to configure it.
59765         Don't count //, ///, etc. as having a trailing slash.
59766         As a side effect, this removes a C99ism reported by Matthew Woehlke.
59767         (rpl_rename_dest_slash): On failure, use rename's errno rather
59768         than (in some cases) an incorrect or junk errno.
59769         Simplify code by removing need to compute length; this does
59770         cause it to make two passes instead of one over the file name,
59771         but it's worth it.
59772
59773         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
59774         change, since Autoconf's version may no longer be appropriate now
59775         that we are using CVS Autoconf's version.  Add support for Tandem.
59776
59777 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59778             Bruno Haible  <bruno@clisp.org>
59779
59780         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
59781         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
59782         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
59783         gl_AC_TYPE_LONG_LONG.
59784
59785         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
59786         instead of HAVE_LONG_LONG.
59787         * lib/printf-args.c (printf_fetchargs): Likewise.
59788         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
59789         * lib/vasnprintf.c (VASNPRINTF): Likewise.
59790         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
59791         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
59792         gl_AC_TYPE_LONG_LONG.
59793
59794 2006-10-11  Bruno Haible  <bruno@clisp.org>
59795
59796         * m4/longlong.m4: Add comments.
59797         * m4/ulonglong.m4: Likewise.
59798
59799 2006-10-10  Bruno Haible  <bruno@clisp.org>
59800
59801         Make it possible to #define stpcpy, strdup to aliases.
59802         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
59803         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
59804
59805 2006-10-10  Bruno Haible  <bruno@clisp.org>
59806
59807         Make it possible to #define gcd to an alias.
59808         * lib/gcd.c: Include config.h.
59809
59810 2006-10-10  Bruno Haible  <bruno@clisp.org>
59811
59812         Make it possible to #define c_isascii to an alias.
59813         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
59814         defined. Undefine the macros before defining them, to avoid gcc
59815         warnings.
59816         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
59817         define NO_C_CTYPE_MACROS early.
59818
59819 2006-10-10  Bruno Haible  <bruno@clisp.org>
59820
59821         Make it possible to #define set_program_name to an alias.
59822         * lib/progname.c: Don't undefine set_program_name; instead, undefine
59823         ENABLE_RELOCATABLE early.
59824
59825 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59826
59827         Port to Tandem NSK OSS, which has 64-bit signed int but at most
59828         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
59829         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
59830         More generally, don't assume that 64-bit signed int is available
59831         if unsigned int is, and vice versa.
59832         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
59833         unsigned symbols, not on their signed counterparts.
59834         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
59835         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
59836         (UINT64_C, UINTMAX_C):
59837         Likewise.
59838         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
59839         unsigned counterparts.
59840         (Have_long_long, Unsigned): New macros.
59841         (Int): Renamed from INT.
59842         (strtoimax): Use the new macros.
59843         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
59844         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
59845         * modules/inttypes (inttypes.h): Substitute
59846         HAVE_UNSIGNED_LONG_LONG_INT.
59847         * modules/stdint (stdint.h): Likewise.
59848         (Files): Add m4/ulonglong.m4.
59849
59850 2006-10-10  Bruno Haible  <bruno@clisp.org>
59851
59852         Fix a gcc -Wshadow warning.
59853         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
59854         to 'bucket'.
59855         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
59856         gl_linked_indexof_from_to): Likewise.
59857         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
59858         Likewise.
59859         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
59860         Likewise.
59861         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
59862         Reported by Eric Blake.
59863
59864 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
59865
59866         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
59867         for NetBSD.  Problem reported by Bruno Haible.
59868
59869 2006-10-09  Jim Meyering  <jim@meyering.net>
59870
59871         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
59872         Patch from Bruno Haible.
59873
59874 2006-10-09  Jim Meyering  <jim@meyering.net>
59875
59876         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
59877         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
59878         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
59879
59880 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59881
59882         Don't include <config.h> twice; this doesn't work in some cases,
59883         e.g., when config.h has "#define intmax_t long long int" and
59884         we include <config.h>, <inttypes.h>, <config.h> in that order.
59885         Problem reported by Matthew Woehlke in:
59886         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
59887         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
59888         * lib/fts-cycle.c: Don't include config.h.
59889         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
59890         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
59891         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
59892         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
59893         inttypes.h.
59894         * lib/xstrtoumax.c: Likewise.
59895         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
59896         __strtol and the like, so that this module is more like its siblings.
59897         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
59898         Remove; no longer needed now that we assume gnulib inttypes.h.
59899
59900 2006-10-08  Bruno Haible  <bruno@clisp.org>
59901
59902         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
59903         option.
59904
59905 2006-10-07  Jim Meyering  <jim@meyering.net>
59906
59907         * modules/inttypes (inttypes.h): Revert what seems to have been
59908         an inadvertent part of today's change: use "|", not "/" in the
59909         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
59910
59911 2006-10-07  Bruno Haible  <bruno@clisp.org>
59912
59913         * modules/sublist: New file.
59914
59915 2006-10-07  Bruno Haible  <bruno@clisp.org>
59916
59917         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
59918         * modules/argz (argz.h): Likewise.
59919         * modules/arpa_inet (arpa/inet.h): Likewise.
59920         * modules/byteswap (byteswap.h): Likewise.
59921         * modules/configmake (configmake.h): Likewise.
59922         * modules/fcntl (fcntl.h): Likewise.
59923         * modules/fnmatch (fnmatch.h): Likewise.
59924         * modules/getopt (getopt.h): Likewise.
59925         * modules/glob (glob.h): Likewise.
59926         * modules/inttypes (inttypes.h): Likewise.
59927         * modules/netinet_in (netinet/in.h): Likewise.
59928         * modules/poll (poll.h): Likewise.
59929         * modules/stdbool (stdbool.h): Likewise.
59930         * modules/stdint (stdint.h): Likewise.
59931         * modules/sys_select (sys/select.h): Likewise.
59932         * modules/sys_socket (sys/socket.h): Likewise.
59933         * modules/sys_stat (sys/stat.h): Likewise.
59934         * modules/sysexits (sysexits.h): Likewise.
59935         * modules/unistd (unistd.h): Likewise.
59936         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59937         Add a "DO NOT EDIT" comment to the generated file.
59938         (func_import): Likewise for gnulib-comp.m4.
59939
59940 2006-10-07  Bruno Haible  <bruno@clisp.org>
59941
59942         * lib/gl_sublist.h: New file.
59943         * lib/gl_sublist.c: New file.
59944
59945 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59946
59947         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
59948         name (relative to the original working directory) and the file
59949         name component (relative to the temporary working directory).  All
59950         callers changed.
59951         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
59952         * lib/mkdir-p.c (make_dir_parents): Likewise.
59953         * lib/mkdir-p.h (make_dir_parents): Likewise.
59954
59955 2006-10-06  Eric Blake  <ebb9@byu.net>
59956
59957         Define several macros for use by the clean-temp module.
59958         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
59959         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
59960         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
59961
59962         * lib/clean-temp.h (close_stream_temp): New declaration.
59963         * lib/clean-temp.c (includes): Pull in headers according to what
59964         other modules are in use.
59965         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
59966
59967 2006-10-06  Bruno Haible  <bruno@clisp.org>
59968
59969         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
59970         instead of fopen, fwriteerror.
59971
59972 2006-10-06  Bruno Haible  <bruno@clisp.org>
59973
59974         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
59975         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
59976         int.
59977         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
59978         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
59979         Return an error indicator.
59980         Suggested by Eric Blake.
59981
59982 2006-10-06  Bruno Haible  <bruno@clisp.org>
59983
59984         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
59985         Reported by Eric Blake.
59986
59987 2006-10-06  Bruno Haible  <bruno@clisp.org>
59988
59989         * modules/closeout (Description): Mention stderr too.
59990
59991 2006-10-06  Bruno Haible  <bruno@clisp.org>
59992         and Paul Eggert  <eggert@cs.ucla.edu>
59993
59994         * lib/closeout.c (close_stdout): Also close stderr.
59995         * lib/closeout.h: Update comment.
59996
59997 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
59998
59999         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
60000         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
60001         * lib/dirchownmod.c: Include lchown.h.
60002         * lib/lchown.c: Don't include files that lchown.h now includes.
60003         Don't declare chown, since lchown.h now does that.
60004         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
60005         (lchown): Define to rpl_chown if lchown is declared but
60006         does not exist.  Declare using a prototype if lchown is not
60007         declared.  Add a copyright notice.
60008         * lib/mkstemp.h: Include <unistd.h>.
60009         * lib/openat.c: Include lchown.h.
60010
60011         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
60012         we now test for that separately.
60013         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
60014         rather than O_NOFOLLOW, when testing whether it's possible to
60015         avoid a race condition reliably.
60016         * lib/savewd.c (savewd_chdir): Likewise.
60017
60018         Remove macros that are no longer needed now that stdint.h is
60019         reliable.
60020         * lib/fsusage.c (UINTMAX_MAX): Remove.
60021         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
60022         * lib/utimecmp.c (SIZE_MAX): Remove.
60023
60024         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
60025
60026         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
60027         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
60028         O_NOATIME works.
60029
60030 2006-10-05  Bruno Haible  <bruno@clisp.org>
60031
60032         * lib/gl_list.h (gl_sortedlist_search_from_to,
60033         gl_sortedlist_indexof_from_to): New declarations.
60034         (gl_list_implementation): New fields sortedlist_search_from_to,
60035         sortedlist_indexof_from_to.
60036         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
60037         inline functions.
60038         * lib/gl_list.c (gl_sortedlist_search_from_to,
60039         gl_sortedlist_indexof_from_to): New functions.
60040         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
60041         function.
60042         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
60043         (gl_array_sortedlist_search_from_to): New function.
60044         (gl_array_list_implementation): Update.
60045         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
60046         function.
60047         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
60048         (gl_carray_sortedlist_search_from_to): New function.
60049         (gl_carray_list_implementation): Update.
60050         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
60051         gl_linked_sortedlist_indexof_from_to): New functions.
60052         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60053         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60054         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
60055         gl_tree_sortedlist_indexof_from_to): New functions.
60056         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60057         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60058         Update.
60059         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60060         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
60061         Update.
60062
60063 2006-10-05  Bruno Haible  <bruno@clisp.org>
60064
60065         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
60066         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
60067         (struct gl_list_implementation): Add fields search_from_to,
60068         indexof_from_to. Remove fields search, indexof.
60069         (gl_list_search): Use the search_from_to method.
60070         (gl_list_search_from, gl_list_search_from_to): New functions.
60071         (gl_list_indexof): Use the indexof_from_to method.
60072         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60073         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
60074         (gl_list_search_from, gl_list_search_from_to): New functions.
60075         (gl_list_indexof): Use the indexof_from_to method.
60076         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60077         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
60078         gl_array_indexof. Add start_index, end_index arguments.
60079         (gl_array_search_from_to): Renamed from gl_array_search. Add
60080         start_index, end_index arguments.
60081         (gl_array_remove, gl_array_list_implementation): Update.
60082         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
60083         gl_carray_indexof. Add start_index, end_index arguments.
60084         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
60085         start_index, end_index arguments.
60086         (gl_carray_remove, gl_carray_list_implementation): Update.
60087         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
60088         gl_linked_search. Add start_index, end_index arguments.
60089         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
60090         start_index, end_index arguments.
60091         (gl_linked_remove): Update.
60092         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60093         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60094         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
60095         field to 'size_t'.
60096         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
60097         gl_tree_search. Add start_index, end_index arguments.
60098         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60099         start_index, end_index arguments.
60100         (gl_tree_remove): Update.
60101         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60102         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60103         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
60104         function.
60105         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
60106         gl_tree_search. Add start_index, end_index arguments.
60107         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60108         start_index, end_index arguments.
60109         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60110         Update.
60111         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60112
60113 2006-10-05  Bruno Haible  <bruno@clisp.org>
60114
60115         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
60116
60117         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
60118         fwriteerror_temp): New declarations.
60119         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
60120         (descriptors): New variable.
60121         (cleanup): First, close the descriptors.
60122         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
60123         fclose_temp, fwriteerror_temp): New functions.
60124
60125 2006-10-04  Jim Meyering  <jim@meyering.net>
60126
60127         * lib/fts.c (fts_open): Tiny comment change.
60128
60129 2006-10-04  Bruno Haible  <bruno@clisp.org>
60130
60131         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
60132         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
60133         gl_LOCK_BODY.
60134         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
60135         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
60136         gl_LOCK_EARLY_BODY.
60137         (gl_LOCK): Require gl_LOCK_BODY.
60138
60139 2006-10-04  Bruno Haible  <bruno@clisp.org>
60140
60141         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
60142         (gl_oset_search_atleast): New declaration.
60143         (struct gl_oset_implementation): Add field 'search_atleast'.
60144         (gl_oset_search_atleast): New inline function.
60145         * lib/gl_oset.c (gl_oset_search_atleast): New function.
60146         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
60147         (gl_array_oset_implementation): Update.
60148         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
60149         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
60150         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
60151
60152 2006-10-04  Bruno Haible  <bruno@clisp.org>
60153
60154         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
60155
60156 2006-10-03  Bruno Haible  <bruno@clisp.org>
60157
60158         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
60159         from gl_avltreehash_list_implementation.
60160
60161 2006-10-03  Bruno Haible  <bruno@clisp.org>
60162
60163         * lib/gl_oset.c (gl_oset_add): Fix return type.
60164
60165 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
60166
60167         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
60168
60169 2006-10-02  Eric Blake  <ebb9@byu.net>
60170
60171         * modules/strnlen (Depends-on): Add extensions.
60172
60173 2006-10-02  Eric Blake  <ebb9@byu.net>
60174
60175         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
60176         definition in 2.60+.
60177
60178 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
60179
60180         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
60181         checks.
60182
60183 2006-10-02  Bruno Haible  <bruno@clisp.org>
60184
60185         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
60186         to the AUTOMAKE_OPTIONS.
60187         Reported by Jim Meyering.
60188
60189 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
60190
60191         Work around bug in Solaris 10 /proc file system:
60192         /proc/self/fd/NNN/.. isn't the parent directory of
60193         the directory whose file descriptor is NNN.  This needs to
60194         be worked around at run time, not compile time, since a
60195         program might be built on Solaris 8, where things work, and
60196         run on Solaris 10.
60197         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
60198         to use the following interface instead:
60199         (OPENAT_BUFFER_SIZE): New macro.
60200         (openat_proc_name): New function.
60201         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
60202         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
60203         Likewise.
60204         * lib/openat-proc.c: New file.
60205         * modules/openat (Files): Add lib/openat-proc.c.
60206         (Depends-on): Add same-inode, stdbool.
60207         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
60208
60209 2006-09-29  Bruno Haible  <bruno@clisp.org>
60210
60211         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
60212         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
60213         argument. Set stdout_closed before testing for ferror, not after.
60214         (fwriteerror, fwriteerror_no_ebadf): New functions.
60215
60216 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60217
60218         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
60219
60220 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
60221
60222         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
60223         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
60224
60225 2006-09-28  Jim Meyering  <jim@meyering.net>
60226
60227         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
60228         Include <unistd.h>.
60229
60230 2006-09-28  Bruno Haible  <bruno@clisp.org>
60231
60232         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
60233         * modules/linkedhash-list (Depends-on): Likewise.
60234         * modules/rbtreehash-list (Depends-on): Likewise.
60235
60236 2006-09-28  Bruno Haible  <bruno@clisp.org>
60237
60238         * lib/strndup.h: Simplify the redefinition of strndup.
60239         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
60240         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
60241
60242 2006-09-28  Bruno Haible  <bruno@clisp.org>
60243
60244         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
60245         * lib/gl_linkedhash_list.c: Likewise.
60246         * lib/gl_rbtreehash_list.c: Likewise.
60247
60248 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
60249
60250         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
60251         getaddrinfo.
60252
60253         * lib/__fpending.h: Don't include <stdio_ext.h> unless
60254         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
60255         it causes <stdio_ext.h> to cause a compile-time error.
60256         Problem reported by Nelson H. F. Beebe.
60257         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
60258         of HAVE_DECL___PENDING.
60259
60260         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
60261         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
60262         declaration.
60263
60264 2006-09-27  Jim Meyering  <jim@meyering.net>
60265
60266         This file could end up with a definition for a function
60267         named __strndup, rather than rpl_strndup on a system with
60268         incomplete weak_alias support.
60269         * lib/strndup.c (strndup): Rename from __strndup.
60270         Remove #defines that used to map __strndup to strndup.
60271         Don't use K&R prototypes.
60272         Remove LIBC-related code, since this file is not sync'd with glibc.
60273         * lib/strndup.h: Revamp, accordingly.
60274         * m4/strndup.m4: Modernize.
60275
60276 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
60277
60278         * modules/savewd (Depends-on): Add 'raise'.
60279         * lib/savewd.c: Include <signal.h>, for 'raise'.
60280
60281 2006-09-26  Jim Meyering  <jim@meyering.net>
60282
60283         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
60284         when we detect Darwin 8.7.0's acl_get_file bug.
60285         Rearrange to perform the new (below) run-test while $LIBS
60286         contains any acl-related library.  Set USE_ACL at the end.
60287         (gl_ACL_GET_FILE): New function.
60288
60289 2006-09-26  Eric Blake  <ebb9@byu.net>
60290
60291         * lib/verror.c: Include <config.h> unconditionally.
60292
60293 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
60294
60295         * modules/clock-time (Maintainer): Add self.
60296         * modules/getlogin_r (Depends-on): Add extensions.
60297
60298 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60299
60300         * modules/clock-time: New module.
60301         * modules/nanosleep (Depends-on): Add clock-time.
60302         * modules/gethrxtime (Depends-on): Likewise.
60303         * modules/gettime (Depends-on): Likewise.
60304         * modules/settime (Depends-on): Likewise.
60305
60306         * modules/fts-lgpl: Depend on openat.
60307         * modules/mkancesdirs: Depend on savewd.
60308         * modules/mkdir-p: Likewise.
60309
60310 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60311
60312         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
60313
60314         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
60315         `gl_have_arbitrary_file_name_length_limit' to
60316         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
60317         actually works between configure runs.
60318
60319 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60320             Bruno Haible  <bruno@clisp.org>
60321
60322         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
60323
60324 2006-09-25  Jim Meyering  <jim@meyering.net>
60325
60326         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
60327         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
60328
60329 2006-09-25  Eric Blake  <ebb9@byu.net>
60330
60331         * gnulib-tool (func_import, func_create_testdir): Fix typos in
60332         exec's in 2006-09-18 patch when shuffling fds.
60333
60334 2006-09-25  Bruno Haible  <bruno@clisp.org>
60335
60336         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
60337         Reported by Jim Meyering.
60338
60339 2006-09-24  Jim Meyering  <jim@meyering.net>
60340
60341         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
60342         compare a pointer against a literal "0".  That caused failures with
60343         at least HP-UX's hpcc.
60344
60345 2006-09-22  Simon Josefsson  <jas@extundo.com>
60346
60347         * modules/gc-sha1:
60348         * modules/gc-md4:
60349         * modules/gc-hmac-sha1:
60350         * modules/gc-hmac-md5:
60351         * modules/gc-des:
60352         * modules/gc-arcfour: Distribute more files.
60353
60354 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60355
60356         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
60357         (gl_linked_iterator_from_to): Initialize struct completely.
60358         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
60359         (gl_tree_iterator_from_to): Likewise
60360         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
60361         * lib/gl_array_list.c [lint] (gl_array_iterator)
60362         (gl_array_iterator_from_to): Likewise.
60363         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
60364         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
60365         (gl_carray_iterator_from_to): Likewise.
60366
60367         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
60368         * lib/md4.c (md4_process_block): Remove unused variable.
60369         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
60370         parentheses for clarity.
60371
60372 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60373
60374         * modules/bison-i18n (Depends-on): Add gettext.
60375
60376 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60377
60378         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
60379         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
60380         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
60381         also add missing comma that caused broken test.
60382         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
60383         stdlib.h, for `abort'.
60384         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
60385         variables.
60386         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
60387         include unistd.h if present, for `rmdir'.
60388         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
60389         variables.
60390         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
60391         in the process include standard headers for prototypes.
60392         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
60393         gets declared on GNU/Linux.
60394         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
60395         unistd.h, for `rmdir'.
60396         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
60397
60398         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
60399         always true.
60400         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
60401
60402         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
60403
60404 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60405
60406         * gnulib-tool (func_version): Create output all at once.  This
60407         may help avoid triggering unnecessary SIGPIPEs, and at any
60408         rate it doesn't hurt.
60409
60410 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60411             Bruno Haible  <bruno@clisp.org>
60412
60413         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
60414         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
60415         * m4/signed.m4 (bh_C_SIGNED): Likewise.
60416
60417         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
60418         (gl_FUNC_VASPRINTF): Invoke it.
60419
60420 2006-09-22  Bruno Haible  <bruno@clisp.org>
60421
60422         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
60423         getloadavg.c as first argument.
60424
60425 2006-09-22  Bruno Haible  <bruno@clisp.org>
60426
60427         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
60428         at the beginning of the gl_INIT macro.
60429         * modules/getloadavg (configure.ac): Pass $gl_source_base to
60430         gl_GETLOADAVG.
60431
60432 2006-09-22  Bruno Haible  <bruno@clisp.org>
60433
60434         * gnulib-tool (func_create_megatestdir): Don't include the config-h
60435         module.
60436         Suggested by Ralf Wildenhues.
60437
60438 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60439
60440         Import this patch from libc:
60441
60442         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
60443
60444         * lib/regex_internal.c (re_string_reconstruct): Handle
60445         offset < pstr->valid_raw_len && pstr->offsets_needed case.
60446         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
60447         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
60448         re_string_context_at.
60449
60450         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
60451         now requires it.
60452         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
60453         gl_REGEX now does it for us.
60454         (gl_REGEX): Add test taken from
60455         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
60456
60457         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
60458         Check that large offsets work.  Modernize Autoconf usages.
60459         Prefer "yes" to mean a good thing rather than a bad.
60460         Don't put "#define mkstemp" in config.h, as this might interfere
60461         with standard system headers that "#define mkstemp mkstemp64".
60462
60463         * modules/mkstemp (Depends-on): Add extensions, so that
60464         mkstemp is visible on some platforms.
60465         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
60466         (Include): Change to "mkstemp.h" from <stdlib.h>.
60467         (Files): Add mkstemp.h.
60468
60469         * lib/mkstemp.h: New file, since some standard headers
60470         #define mkstemp.
60471         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
60472         Include "mkstemp.h".
60473         Make the _LIBC code resemble glibc original more,
60474         e.g., use K&R style.
60475         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
60476         (mkstemp): Remove, since mkstemp.h does this for us.
60477         * lib/stdlib--.h: Include mkstemp.h.
60478
60479         Import this patch from libc:
60480
60481         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60482
60483         * lib/tempname.c (__gen_tempname): Change attempts_min
60484         into a macro.  Use preprocessor to decide how to initialize
60485         attempts [Coverity CID 67].
60486
60487 2006-09-20  Bruno Haible  <bruno@clisp.org>
60488
60489         * lib/mkdtemp.c: Import from libc.
60490         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60491                 * sysdeps/posix/tempname.c (__gen_tempname): Change
60492                 attempts_min into a macro.  Use preprocessor to decide how to
60493                 initialize attempts [Coverity CID 67].
60494         2001-11-27  Paul Eggert  <eggert@twinsun.com>
60495                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
60496                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
60497
60498 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60499
60500         * gnulib-tool (func_exit): New function, to allow to pass the
60501         exit status portably through the trap.  Use everywhere.
60502         (--help, --version): Signal a write error.
60503         (trap): catch SIGPIPE, for write errors.
60504         Exit at the end of the trap, with the correct exit status.
60505
60506 2006-09-19  Karl Berry  <karl@gnu.org>
60507
60508         * doc/gnulib.texi: note about the license texinfo files.
60509
60510 2006-09-19  Eric Blake  <ebb9@byu.net>
60511
60512         * gnulib-tool: Avoid space-tab.
60513
60514 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60515
60516         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
60517         that prevented coreutils 6.1 from building.  Problem reported
60518         by Petter Reinholdtsen.
60519
60520 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60521
60522         * gnulib-tool (avoidlist): Fix typo that broke options like
60523         --avoid=lock that are used by coreutils bootstrap.
60524
60525 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
60526
60527         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
60528         more systematically.
60529
60530 2006-09-18  Jim Meyering  <jim@meyering.net>
60531
60532         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
60533
60534 2006-09-18  Bruno Haible  <bruno@clisp.org>
60535
60536         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
60537
60538 2006-09-18  Bruno Haible  <bruno@clisp.org>
60539
60540         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
60541         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
60542         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
60543         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
60544         * m4/gettext.m4: Require autoconf >= 2.52.
60545         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
60546         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
60547         of gl_cv_header_inttypes_h.
60548
60549 2006-09-18  Bruno Haible  <bruno@clisp.org>
60550
60551         * lib/javaversion.c: Include configmake.h.
60552
60553 2006-09-18  Bruno Haible  <bruno@clisp.org>
60554
60555         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
60556         avoid that the while loops be executed in a subshell.
60557
60558 2006-09-18  Bruno Haible  <bruno@clisp.org>
60559
60560         * MODULES.html.sh (func_module): Break long lines.
60561         Suggested by Bruce Korb <bkorb@gnu.org>.
60562
60563 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60564
60565         Speed up by a factor of 1.12.
60566         * gnulib-tool (nl): New variable.
60567         (func_import): Rewrite include directive extraction to only read each
60568         directive once.
60569
60570 2006-09-17  Bruno Haible  <bruno@clisp.org>
60571
60572         * modules/javaversion (Makefile.am): Remove DEFS setting.
60573         (Depends-on): Add configmake, for PKGDATADIR definition.
60574
60575 2006-09-17  Bruno Haible  <bruno@clisp.org>
60576
60577         * gnulib-tool (func_create_testdir): Rewrite all files at once.
60578
60579 2006-09-17  Bruno Haible  <bruno@clisp.org>
60580
60581         * gnulib-tool (func_append): New function, stolen from libtool.m4.
60582         (func_modules_transitive_closure, func_modules_add_dummy,
60583         func_modules_to_filelist, func_import, func_create_testdir,
60584         func_create_megatestdir, ...): Use it wherever possible.
60585         Suggested by Ralf Wildenhues.
60586
60587 2006-09-16  Karl Berry  <karl@gnu.org>
60588
60589         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
60590         to avoid sectioning errors.
60591         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
60592         [ifinfo]: blank line after @center-ed titles.
60593         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
60594         Spell FSF address consistently with others.
60595         (These changes approved by rms.)
60596
60597 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60598
60599         Speed up by a factor of 1.61.
60600         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
60601         already checked module names again.
60602
60603 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60604
60605         Speed up by a factor of 1.13.
60606         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
60607         for new_files, and the input to func_add_or_update.
60608
60609 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60610
60611         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
60612         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
60613
60614 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60615
60616         * modules/mkancesdirs (Depends-on): Add fcntl.
60617         * modules/savewd: New file.
60618         * MODULES.html.sh (File system functions): Add savewd.
60619
60620         * modules/configmake (Makefile.am): Add support for the
60621         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
60622
60623 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60624
60625         * m4/savewd.m4: New file.
60626
60627 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60628
60629         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
60630         (dirchownmod): New arg FD.  All callers changed.
60631         Use FD rather than opening the directory ourself, as opening is
60632         now the caller's responsibility.
60633         * lib/dirchownmod.h: Likewise.
60634         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
60635         hosts that require <sys/types.h> before <sys/stat.h>.  Include
60636         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
60637         (test_dir): Remove.
60638         (mkancesdirs): Return length of prefix of FILE that has already
60639         been made, or -2 if there is a child doing the work.  Redo
60640         algorithm so that it is O(N) rather than O(N**2).  Optimize away
60641         ".", and treat ".." specially since it might stray back into
60642         already-created areas.  Use a subprocess if necessary.  New arg
60643         WD; all users changed.  MAKE_DIR function should now return 1
60644         if it creates a directory that is not readable.  Return -2 if
60645         a child process is spun off.
60646         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
60647         Adjust signature to match code.
60648         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
60649         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
60650         all users changed.
60651         * lib/savewd.c, lib/savewd.h: New files.
60652
60653 2006-09-15  Jim Meyering  <jim@meyering.net>
60654
60655         * modules/rename-dest-slash: New module.
60656         * MODULES.html.sh (posix_compat): Add it here.
60657
60658         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
60659
60660 2006-09-15  Jim Meyering  <jim@meyering.net>
60661
60662         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
60663         file.
60664
60665         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
60666
60667 2006-09-15  Jim Meyering  <jim@meyering.net>
60668
60669         * lib/rename-dest-slash.c (has_trailing_slash): Use
60670         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
60671         (rpl_rename_dest_slash): Perform the cheaper trailing slash
60672         test before testing whether SRC is a directory.
60673         Suggestions from Bruno Haible.
60674
60675         Avoid a warning about an unused variable.
60676         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
60677         into the #ifdef block where it's used.
60678
60679         * lib/rename-dest-slash.c: New file.
60680
60681 2006-09-14  Bruno Haible  <bruno@clisp.org>
60682
60683         * lib/allocsa.c: Include <config.h> unconditionally.
60684         * lib/asnprintf.c: Likewise.
60685         * lib/asprintf.c: Likewise.
60686         * lib/c-strcasecmp.c: Likewise.
60687         * lib/c-strcasestr.c: Likewise.
60688         * lib/c-strncasecmp.c: Likewise.
60689         * lib/c-strstr.c: Likewise.
60690         * lib/classpath.c: Likewise.
60691         * lib/clean-temp.c: Likewise.
60692         * lib/concatpath.c: Likewise.
60693         * lib/copy-file.c: Likewise.
60694         * lib/csharpcomp.c: Likewise.
60695         * lib/csharpexec.c: Likewise.
60696         * lib/execute.c: Likewise.
60697         * lib/fatal-signal.c: Likewise.
60698         * lib/findprog.c: Likewise.
60699         * lib/fwriteerror.c: Likewise.
60700         * lib/gl_array_list.c: Likewise.
60701         * lib/gl_array_oset.c: Likewise.
60702         * lib/gl_avltree_list.c: Likewise.
60703         * lib/gl_avltree_oset.c: Likewise.
60704         * lib/gl_avltreehash_list.c: Likewise.
60705         * lib/gl_carray_list.c: Likewise.
60706         * lib/gl_linked_list.c: Likewise.
60707         * lib/gl_linkedhash_list.c: Likewise.
60708         * lib/gl_list.c: Likewise.
60709         * lib/gl_oset.c: Likewise.
60710         * lib/gl_rbtree_list.c: Likewise.
60711         * lib/gl_rbtree_oset.c: Likewise.
60712         * lib/gl_rbtreehash_list.c: Likewise.
60713         * lib/imaxabs.c: Likewise.
60714         * lib/imaxdiv.c: Likewise.
60715         * lib/javacomp.c: Likewise.
60716         * lib/javaexec.c: Likewise.
60717         * lib/javaversion.c: Likewise.
60718         * lib/linebreak.c: Likewise.
60719         * lib/localcharset.c: Likewise.
60720         * lib/lock.c: Likewise.
60721         * lib/mbchar.c: Likewise.
60722         * lib/mbswidth.c: Likewise.
60723         * lib/mkdtemp.c: Likewise.
60724         * lib/pipe.c: Likewise.
60725         * lib/printf-args.c: Likewise.
60726         * lib/printf-parse.c: Likewise.
60727         * lib/progname.c: Likewise.
60728         * lib/progreloc.c: Likewise.
60729         * lib/readlink.c: Likewise.
60730         * lib/sh-quote.c: Likewise.
60731         * lib/stpcpy.c: Likewise.
60732         * lib/stpncpy.c: Likewise.
60733         * lib/strcasecmp.c: Likewise.
60734         * lib/strcasestr.c: Likewise.
60735         * lib/strcspn.c: Likewise.
60736         * lib/striconv.c: Likewise.
60737         * lib/strncasecmp.c: Likewise.
60738         * lib/strnlen1.c: Likewise.
60739         * lib/strstr.c: Likewise.
60740         * lib/strtok_r.c: Likewise.
60741         * lib/tls.c: Likewise.
60742         * lib/tmpdir.c: Likewise.
60743         * lib/unicodeio.c: Likewise.
60744         * lib/unsetenv.c: Likewise.
60745         * lib/vasnprintf.c: Likewise.
60746         * lib/vasprintf.c: Likewise.
60747         * lib/wait-process.c: Likewise.
60748         * lib/xallocsa.c: Likewise.
60749         * lib/xsetenv.c: Likewise.
60750         * lib/xstriconv.c: Likewise.
60751
60752 2006-09-13  Simon Josefsson  <jas@extundo.com>
60753
60754         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
60755         that internally, suggested by Ralf Wildenhues
60756         <Ralf.Wildenhues@gmx.de>.
60757
60758 2006-09-13  Simon Josefsson  <jas@extundo.com>
60759
60760         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
60761         @LIBOBJS@.
60762         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60763
60764 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60765
60766         * lib/_fpending.c: Include <config.h> unconditionally, since we no
60767         longer worry about uses that don't define HAVE_CONFIG_H.
60768         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
60769         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
60770         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
60771         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
60772         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
60773         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
60774         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
60775         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
60776         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
60777         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
60778         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
60779         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
60780         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
60781         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
60782         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
60783         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
60784         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
60785         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
60786         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
60787         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
60788         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
60789         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
60790         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
60791         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
60792         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
60793         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
60794         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
60795         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
60796         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
60797         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
60798         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
60799         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
60800         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
60801         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
60802         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
60803         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
60804         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
60805         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
60806         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
60807         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
60808         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
60809         Likewise.
60810
60811 2006-09-13  Eric Blake  <ebb9@byu.net>
60812
60813         * lib/getopt.c: Fix typo in last commit.
60814
60815 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60816
60817         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
60818         dgettext.
60819
60820 2006-09-12  Jim Meyering  <jim@meyering.net>
60821
60822         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
60823         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
60824         Reported by Nelson H. F. Beebe.
60825
60826 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60827
60828         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
60829         program_invocation_name and program_invocation_short_name are
60830         initialized.
60831         * lib/argp-namefrob.h: Move declarations of program_invocation_name
60832         and program_invocation_short_name to argp.h, so they are visible
60833         to user programs.
60834         * lib/argp.h: Likewise
60835
60836 2006-09-10  Bruno Haible  <bruno@clisp.org>
60837
60838         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60839         m4/inttypes_h.m4, m4/uintmax_t.m4.
60840
60841 2006-09-10  Bruno Haible  <bruno@clisp.org>
60842
60843         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
60844         gl_AC_TYPE_UINTMAX_T.
60845
60846 2006-09-10  Bruno Haible  <bruno@clisp.org>
60847
60848         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
60849
60850 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60851
60852         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
60853         convention.  Text proposed by Bruno Haible.
60854         (struct argp_option): Document the use of N_() wrappers.
60855
60856         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
60857         '\v', and translate the two parts separately, instead of feeding
60858         the whole string to gettext.  This allows to exclude
60859         '\v' from the strings visible to the translator by writing doc
60860         strings as N_("..") "\v" N_("..").
60861
60862 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
60863
60864         * config/srclist.txt: Undo latest change; the bug was fixed.
60865
60866 2006-09-09  Bruno Haible  <bruno@clisp.org>
60867
60868         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
60869         assignments if building a library without libtool.
60870         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
60871         in func_emit_lib_Makefile_am.
60872         (func_import): When building a static library libfoo.a, arrange to
60873         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
60874         (func_create_testdir): Likewise.
60875         * modules/gc (configure.ac, Makefile.am): If building statically,
60876         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
60877         * modules/iconvme (configure.ac, Makefile.am): Likewise.
60878         * modules/striconv (configure.ac, Makefile.am): Likewise.
60879         Based on a suggestion by Ralf Wildenhues.
60880
60881 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60882
60883         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
60884         Check for unistd.h too, since Autoconf doesn't assume POSIX.
60885         Also:
60886
60887         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60888         Add year_2050_test to catch glibc bug 2821
60889         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
60890
60891         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60892         Prefer #ifdef to #if.
60893
60894         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
60895         Return from 'main' instead of calling 'exit'.
60896
60897 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60898
60899         * lib/mktime.c (guess_time_tm): Fix bug where mktime
60900         returned the maximum time_t value rather than (time_t) -1.
60901         Problem originally reported by William Bardwell
60902         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
60903
60904         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
60905         Moved to here ...
60906         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
60907         ... from here.
60908
60909 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60910
60911         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
60912         2821 is fixed.
60913
60914 2006-09-08  Jim Meyering  <jim@meyering.net>
60915
60916         Don't make generated files read-only.  That would bother too many
60917         people.  However, do retain the ability to work when targets are
60918         read-only: remove the destination and temporary files before writing
60919         them (when generated via sed or echo), or by using the -f option for
60920         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
60921         * modules/alloca-opt, modules/argz, modules/arpa_inet:
60922         * modules/byteswap, modules/configmake, modules/fcntl:
60923         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
60924         * modules/localcharset, modules/netinet_in, modules/poll:
60925         * modules/stdbool, modules/stdint, modules/sys_select:
60926         * modules/sys_socket, modules/sys_stat, modules/sysexits:
60927
60928 2006-09-08  Jim Meyering  <jim@meyering.net>
60929
60930         Avoid new build failure on FreeBSD 6.0.
60931         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
60932         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
60933         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
60934
60935 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60936
60937         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
60938
60939 2006-09-07  Jim Meyering  <jim@meyering.net>
60940
60941         Fix global typo in last change: use chmod u-w, not chmod u-x.
60942         Spotted by Paul Eggert and Bruce Korb.
60943         * modules/alloca-opt, modules/argz, modules/arpa_inet:
60944         * modules/byteswap, modules/configmake, modules/fcntl:
60945         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
60946         * modules/localcharset, modules/netinet_in, modules/poll:
60947         * modules/stdbool, modules/stdint, modules/sys_select:
60948         * modules/sys_socket, modules/sys_stat, modules/sysexits:
60949
60950 2006-09-06  Jim Meyering  <jim@meyering.net>
60951
60952         Make generated files be read-only.
60953         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
60954         Ensure that each generated file is now read-only.
60955         * modules/argz: Likewise.
60956         * modules/arpa_inet: Likewise.
60957         * modules/byteswap: Likewise.
60958         * modules/configmake: Likewise.
60959         * modules/fcntl: Likewise.
60960         * modules/fnmatch: Likewise.
60961         * modules/getopt: Likewise.
60962         * modules/glob: Likewise.
60963         * modules/inttypes: Likewise.
60964         * modules/netinet_in: Likewise.
60965         * modules/poll: Likewise.
60966         * modules/stdbool: Likewise.
60967         * modules/stdint: Likewise.
60968         * modules/sys_select: Likewise.
60969         * modules/sys_socket: Likewise.
60970         * modules/sys_stat: Likewise.
60971         * modules/sysexits: Likewise.
60972         * modules/localcharset: Same as above, but continue using temporary
60973         file named "t-$@" (why different?) rather than the "$@-t" used
60974         everywhere else.
60975
60976         * modules/sysexits (Makefile.am): Replace literal occurrences
60977         of "sysexit.h" more readable, and more consistent, "$@".
60978
60979 2006-09-06  Bruno Haible  <bruno@clisp.org>
60980
60981         * modules/striconv: New file.
60982         * modules/xstriconv: New file.
60983         * MODULES.html.sh (Internationalization functions): Add striconv,
60984         xstriconv.
60985
60986 2006-09-06  Bruno Haible  <bruno@clisp.org>
60987
60988         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
60989         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
60990         not using libtool correctly.
60991
60992 2006-09-06  Bruno Haible  <bruno@clisp.org>
60993
60994         * lib/striconv.h: New file.
60995         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
60996         iconvstring.c.
60997         * lib/xstriconv.h: New file.
60998         * lib/xstriconv.c: New file.
60999
61000 2006-09-06  Bruno Haible  <bruno@clisp.org>
61001
61002         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61003         lib_..._LDFLAGS.
61004
61005 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61006
61007         * lib/argz_.h: Sync from Libtool.
61008
61009         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
61010                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61011
61012         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
61013
61014 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61015
61016         * modules/trim: New file.
61017
61018 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61019
61020         * lib/trim.h: New file.
61021         * lib/trim.c: New file.
61022
61023 2006-09-05  Bruno Haible  <bruno@clisp.org>
61024
61025         * MODULES.html.sh (String handling): Add trim.
61026
61027 2006-09-04  Karl Berry  <karl@gnu.org>
61028
61029         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
61030         until next release.
61031
61032 2006-09-03  Bruno Haible  <bruno@clisp.org>
61033
61034         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
61035         correctly.
61036
61037 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61038
61039         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
61040         not gl_GETLOADAVG.  Omit unneeded semicolons.
61041         Problems reported by Ralf Wildenhues in
61042         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61043         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
61044         at the end, which is the usual gnulib style.
61045
61046         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
61047         of doing all the work ourselves.
61048         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
61049         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
61050
61051 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61052
61053         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
61054         Problem reported by Ralf Wildenhues in
61055         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61056
61057         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
61058         HAVE_STRUCT_STATFS_F_FSTYPENAME.
61059
61060 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61061
61062         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
61063         yesterday's patch by changing test -n to test -z.
61064
61065 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61066
61067         * modules/getloadavg (Files): Add m4/getloadavg.m4.
61068         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
61069         the former is now obsolescent.
61070
61071         * modules/chdir-long (Depends-on): Add fcntl.
61072
61073 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61074
61075         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
61076         obsolescent, and programs should use gnulib instead.
61077         * m4/getloadavg.m4: New file, with contents taken from Autoconf
61078         but with prefixes changed.
61079
61080 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61081
61082         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
61083         or stdbool.h, because they might not exist while configuring.
61084
61085         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
61086         Don't include unistd.h or limits.h; not needed, since chdir-long.h
61087         does that for us.
61088         (O_DIRECTORY): Remove.
61089
61090 2006-08-31  Eric Blake  <ebb9@byu.net>
61091
61092         * gnulib-tool: Don't let emacs change spaces to TAB.
61093
61094 2006-08-31  Bruno Haible  <bruno@clisp.org>
61095
61096         * gnulib-tool: When calling func_import more than once, do it in a
61097         subshell.
61098         Reported by Eric Blake <ebb9@byu.net>.
61099
61100 2006-08-31  Bruno Haible  <bruno@clisp.org>
61101
61102         * gnulib-tool (nl): Remove variable.
61103         (sed_transform_lib_file): Use more robust test for config-h module.
61104         (func_import): Fix typo in 2006-08-25 patch.
61105
61106 2006-08-31  Bruno Haible  <bruno@clisp.org>
61107
61108         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
61109         specified, augment Makefile.am variables instead of assigning them.
61110
61111 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61112
61113         Work around a bug in both the Linux and SunOS 64-bit kernels:
61114         nanosleep mishandles sleeps for longer than 2**31 seconds.
61115         Problem reported by Frank v Waveren in
61116         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61117         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
61118         Check for nanosleep bug.
61119         (LIB_NANOSLEEP): Append clock_gettime library if needed.
61120
61121 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61122
61123         Work around a bug in both the Linux and SunOS 64-bit kernels:
61124         nanosleep mishandles sleeps for longer than 2**31 seconds.
61125         Problem reported by Frank v Waveren in
61126         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61127         * lib/nanosleep.c (BILLION): New constant.
61128         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
61129         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
61130         implementation.
61131
61132 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61133
61134         * modules/nanosleep (Depends-on): Add gettime.
61135
61136 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61137         and Simon Josefsson  <jas@extundo.com>
61138         and Oskar Liljeblad  <oskar@osk.mine.nu>
61139
61140         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
61141         * gnulib-tool (func_import): New license type 'unmodifiable license
61142         text'.
61143         * modules/fdl: Use it.  Longer description.
61144         * module/gpl, module/lgpl: New files.
61145
61146 2006-08-30  Jim Meyering  <jim@meyering.net>
61147
61148         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
61149         shadowing the parameter.
61150
61151 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61152
61153         Sync from Libtool:
61154
61155         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61156
61157         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
61158         sharing with gnulib.  Report by Eric Blake.
61159
61160 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61161
61162         * modules/isapipe: New file.
61163         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
61164
61165 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61166
61167         * modules/configmake (Makefile.am): Add a comment, and omit
61168         the CONFIGMAKE_ prefix from generated macro names.  Suggested
61169         by Bruno Haible.
61170
61171 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61172
61173         * m4/isapipe.m4: New file.
61174
61175 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61176
61177         * lib/isapipe.c, lib/isapipe.h: New files.
61178
61179 2006-08-29  Jim Meyering  <jim@meyering.net>
61180
61181         * modules/configmake (Makefile.am): Make configmake.h depend on
61182         Makefile.  Otherwise, a stale configmake.h could hang around.
61183
61184 2006-08-29  Eric Blake  <ebb9@byu.net>
61185
61186         * lib/error.c (error_at_line, print_errno_message): Match libc, after
61187         resolution of upstream bug 3044.
61188
61189 2006-08-29  Bruno Haible  <bruno@clisp.org>
61190
61191         * modules/localcharset (Depends-on): Add configmake.
61192         (Makefile.am): Remove setting of LIBDIR through DEFS.
61193
61194 2006-08-29  Bruno Haible  <bruno@clisp.org>
61195
61196         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
61197         defined.
61198
61199 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61200
61201         * modules/fcntl: New file.
61202         * modules/chdir-safer (Depends-on): Add fcntl.
61203         * modules/fts: Likewise.
61204         * modules/mkdir-p: Likewise.
61205
61206         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
61207         This undoes the most recent change, since we're now addressing the
61208         problem in a different way.
61209
61210         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
61211         into output, since the output might be called Makefile.am even
61212         if $makefile_name is something different.
61213         (func_import): Use $makefile_am rather than
61214         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
61215         empty.
61216
61217         * modules/inttypes (Files): Add m4/inttypes-h.m4.
61218
61219 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61220
61221         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
61222         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
61223         recent change to stdint.m4, since we're now addressing the problem in a
61224         different way.
61225
61226 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61227
61228         * m4/fcntl_h.m4: New file.
61229
61230 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61231
61232         * lib/fcntl_.h: New file.
61233         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
61234         the fcntl module.
61235         * lib/dirchownmod.c: Likewise.
61236         * lib/fts.c: Likewise.
61237
61238         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
61239         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
61240         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
61241         just before including <inttypes.h>, to avoid circular inclusion.
61242
61243 2006-08-28  Jim Meyering  <jim@meyering.net>
61244
61245         * doc/visibility.texi: Actually read and correct the grammar of the
61246         sentence affected by yesterday's change.
61247
61248 2006-08-28  Eric Blake  <ebb9@byu.net>
61249
61250         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
61251         needs wrapper.
61252
61253 2006-08-28  Eric Blake  <ebb9@byu.net>
61254
61255         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
61256
61257 2006-08-28  Eric Blake  <ebb9@byu.net>
61258
61259         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
61260
61261 2006-08-28  Bruno Haible  <bruno@clisp.org>
61262
61263         * modules/c-strstr: New file, from GNU gettext.
61264         * MODULES.html.sh (String handling): Add c-strstr.
61265
61266 2006-08-28  Bruno Haible  <bruno@clisp.org>
61267
61268         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
61269         macros.
61270         Reported by Eric Blake.
61271
61272 2006-08-28  Bruno Haible  <bruno@clisp.org>
61273
61274         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
61275         (VASNPRINTF): Return a string of length > INT_MAX without failing.
61276         * lib/vasprintf.c: Include errno.h, limits.h.
61277         (EOVERFLOW): New fallback definition.
61278         (vasprintf): Test here whether the string length is > INT_MAX.
61279         * lib/vsnprintf.c: Include errno.h, limits.h.
61280         (EOVERFLOW): New fallback definition.
61281         (vsnprintf): Fix bug when generated string was too long for the buffer.
61282         Test here whether the string length is > INT_MAX.
61283
61284 2006-08-28  Bruno Haible  <bruno@clisp.org>
61285
61286         * lib/inttypes_.h (SCNX*): Remove definitions.
61287         Reported by Eric Blake.
61288
61289 2006-08-28  Bruno Haible  <bruno@clisp.org>
61290
61291         * lib/c-strstr.h: New file, from GNU gettext.
61292         * lib/c-strstr.c: New file, from GNU gettext.
61293
61294 2006-08-28  Bruno Haible  <bruno@clisp.org>
61295
61296         * gnulib-tool: Reorder some statements.
61297
61298 2006-08-28  Bruno Haible  <bruno@clisp.org>
61299
61300         * gnulib-tool: New option --makefile-name.
61301         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
61302         $makefile_name.
61303         (func_import): Write $makefile_name to the cache file, and read it from
61304         there unless explicitly specified. Use $makefile_name as file name
61305         instead of Makefile.am. Adjust the recommendations accordingly.
61306
61307 2006-08-28  Bruno Haible  <bruno@clisp.org>
61308
61309         * gnulib-tool (func_verify_module): Check against misapplying patch.
61310
61311 2006-08-28  Bruno Haible  <bruno@clisp.org>
61312
61313         * gnulib-tool (func_relativize, func_relconcat): New functions.
61314         Give an error if --local-dir is given with --update.
61315         Remove trailing slashes from $local_gnulib_dir.
61316         (func_import): Store the relativized $local_gnulib_dir in
61317         gnulib-cache.m4, and read it from there if not specified explicitly.
61318
61319 2006-08-28  Bruno Haible  <bruno@clisp.org>
61320
61321         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
61322         is the current directory. Respect also $local_gnulib_dir.
61323
61324 2006-08-28  Bruno Haible  <bruno@clisp.org>
61325             Simon Josefsson  <jas@extundo.com>
61326
61327         BeOS portability.
61328         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
61329
61330 2006-08-27  Jim Meyering  <jim@meyering.net>
61331
61332         * doc/visibility.texi: Remove duplicate word: "pointer".
61333
61334 2006-08-26  Bruno Haible  <bruno@clisp.org>
61335
61336         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
61337         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
61338         (Makefile.am): Create inttypes.h from inttypes_.h.
61339         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
61340
61341         * modules/imaxabs: New file.
61342
61343         * modules/imaxdiv: New file.
61344
61345 2006-08-26  Bruno Haible  <bruno@clisp.org>
61346
61347         * m4/inttypes.m4: New file.
61348         * m4/_inttypes_h.m4: Remove file.
61349         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
61350         PRI_MACROS_BROKEN.
61351         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
61352
61353         * m4/imaxabs.m4: New file.
61354
61355         * m4/imaxdiv.m4: New file.
61356
61357 2006-08-26  Bruno Haible  <bruno@clisp.org>
61358
61359         * lib/inttypes_.h: New file.
61360         * lib/inttypes.h: Remove file.
61361         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
61362
61363         * lib/imaxabs.c: New file.
61364
61365         * lib/imaxdiv.c: New file.
61366
61367 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61368
61369         New config-h module, so that "make" output needn't be cluttered
61370         by -DHAVE_CONFIG_H.
61371         * MODULES.html.sh (Support for building libraries and executables):
61372         Add config-h.
61373         * modules/config-h: New file.
61374         * gnulib-tool (nl, sed_transform_lib_file): New vars.
61375         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
61376         the config-h module is used.
61377
61378         New configmake module, so that "make" output needn't be cluttered
61379         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
61380         * MODULES.html.sh (Support for building libraries and executables):
61381         Add configmake.
61382         * modules/configmake: New file.
61383
61384 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61385
61386         * m4/config-h.m4: New file.
61387
61388 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61389
61390         * config/srclist.txt: Add elisp-comp.
61391
61392 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61393
61394         * MODULES.html.sh (Support for building libraries and executables):
61395         Add elisp-comp.
61396         * build-aux/elisp-comp: New file.
61397         * modules/elisp-comp: New file.
61398
61399 2006-08-24  Bruno Haible  <bruno@clisp.org>
61400
61401         * gnulib-tool (func_create_testdir): Use non-default values of
61402         sourcebase and m4base.
61403
61404 2006-08-24  Bruno Haible  <bruno@clisp.org>
61405
61406         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
61407         HTML structure.
61408
61409 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61410
61411         * modules/openat (Depends-on): Add lchown.
61412
61413 2006-08-23  Bruno Haible  <bruno@clisp.org>
61414
61415         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
61416         of gl_LOCK_EARLY instead of gl_LOCK.
61417
61418 2006-08-23  Bruno Haible  <bruno@clisp.org>
61419
61420         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
61421         on OSF/1 to no.
61422         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
61423
61424 2006-08-23  Bruno Haible  <bruno@clisp.org>
61425
61426         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
61427         as unusable.
61428
61429         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
61430         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
61431         (gl_LOCK): New macro.
61432
61433 2006-08-22  Simon Josefsson  <jas@extundo.com>
61434
61435         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
61436         to md5 module.
61437
61438 2006-08-22  Simon Josefsson  <jas@extundo.com>
61439
61440         * MODULES.html.sh: Add "Support for maintaining and release
61441         projects".
61442
61443         * build-aux/gnupload: New file, from coreutils.
61444
61445 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61446
61447         Avoid the need for AC_LIBSOURCES in m4 macros.
61448         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
61449         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
61450         * modules/check-version (EXTRA_DIST): Add check-version.h.
61451         * modules/crc (EXTRA_DIST): Add crc.h.
61452         * modules/des (EXTRA_DIST): Add des.h.
61453         * modules/gc (EXTRA_DIST): Add gc.h.
61454         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
61455         * modules/getline (EXTRA_DIST): Add getline.h.
61456         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
61457         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
61458         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
61459         * modules/md2 (EXTRA_DIST): Add md2.h.
61460         * modules/md4 (EXTRA_DIST): Add md4.h.
61461         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
61462         * modules/read-file (EXTRA_DIST): Add read-file.h.
61463         * modules/readline (EXTRA_DIST): Add readline.h.
61464         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
61465         rijndael-api-fst.h.
61466
61467 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61468
61469         * m4/rijndael.m4 (gl_ARCFOUR):
61470         * m4/arctwo.m4 (gl_ARCTWO):
61471         * m4/check-version.m4 (gl_CHECK_VERSION):
61472         * m4/crc.m4 (gl_CRC):
61473         * m4/des.m4 (gl_DES):
61474         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
61475         * m4/gc.m4 (gl_GC):
61476         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
61477         * m4/getline.m4 (gl_FUNC_GETLINE):
61478         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
61479         * m4/hmac-md5.m4 (gl_HMAC_MD5):
61480         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
61481         * m4/md2.m4 (gl_MD2):
61482         * m4/md4.m4 (gl_MD4):
61483         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
61484         * m4/read-file.m4 (gl_FUNC_READ_FILE):
61485         * m4/readline.m4 (gl_FUNC_READLINE):
61486         * m4/rijndael.m4 (gl_RIJNDAEL):
61487         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61488         to get the necessary .h files and whatnot.
61489
61490 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61491
61492         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
61493         gnulib rather than the other way around.
61494         * config/srclistvars.sh (COREUTILS): Remove.
61495
61496 2006-08-22  Jim Meyering  <jim@meyering.net>
61497
61498         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
61499
61500         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
61501
61502 2006-08-22  Eric Blake  <ebb9@byu.net>
61503
61504         * modules/regexprops-generic: New file.
61505         * MODULES.html.sh (Support for building documentation): List it.
61506
61507 2006-08-22  Eric Blake  <ebb9@byu.net>
61508
61509         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
61510         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
61511         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
61512         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
61513
61514 2006-08-22  Bruno Haible  <bruno@clisp.org>
61515
61516         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
61517         and lib_LTLIBRARIES like the other lib_* variables.
61518
61519 2006-08-22  Bruno Haible  <bruno@clisp.org>
61520
61521         * build-aux/x-to-1.in: New file, from GNU gettext.
61522
61523 2006-08-22  Bruno Haible  <bruno@clisp.org>
61524
61525         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
61526         <utmpx.h> exists.
61527
61528 2006-08-22  Bruno Haible  <bruno@clisp.org>
61529
61530         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
61531         <utmpx.h> exists.
61532
61533 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61534
61535         BeOS portability.
61536         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
61537         exist.
61538         Problem reported by Bruno Haible.
61539
61540 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61541
61542         Avoid the need for AC_LIBSOURCES in m4 macros.
61543         * modules/acl (EXTRA_DIST): Add acl.h.
61544         * modules/argmatch (Files): Add m4/argmatch.m4.
61545         (configure.ac): Add gl_ARGMATCH.
61546         (EXTRA_DIST): Renamed from lib_SOURCES, for
61547         consistency with the other modules.  Remove argmatch.c.
61548         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
61549         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
61550         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
61551         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
61552         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
61553         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
61554         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
61555         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
61556         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
61557         * modules/closeout (EXTRA_DIST): Add closeout.h.
61558         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
61559         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
61560         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
61561         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
61562         dirname.h; remove basename.c and stripslash.c.
61563         * modules/exclude (EXTRA_DIST): Add exclude.h.
61564         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
61565         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
61566         * modules/file-type (EXTRA_DIST): Add file-type.h.
61567         * modules/filemode (EXTRA_DIST): Add filemode.h.
61568         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
61569         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
61570         * modules/fpending (EXTRA_DIST): Add __fpending.h.
61571         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
61572         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
61573         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
61574         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
61575         * modules/getdate (EXTRA_DIST): Add getdate.c.
61576         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
61577         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
61578         * modules/getpass (EXTRA_DIST): Add getpass.h.
61579         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
61580         * modules/group-member (EXTRA_DIST): Add group-member.h.
61581         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
61582         * modules/hash (EXTRA_DIST): Add hash.h.
61583         * modules/human (EXTRA_DIST): Add human.h.
61584         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
61585         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
61586         * modules/lchown (EXTRA_DIST): Add lchown.h.
61587         * modules/long-options (EXTRA_DIST): Add long-options.h.
61588         * modules/lstat (EXTRA_DIST): Add lstat.h.
61589         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
61590         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
61591         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
61592         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
61593         * modules/memxor (EXTRA_DIST): Add memxor.h.
61594         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
61595         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
61596         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
61597         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
61598         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
61599         * modules/physmem (EXTRA_DIST): Add physmem.h.
61600         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
61601         * modules/posixver (EXTRA_DIST): Add posixver.h.
61602         * modules/quote (EXTRA_DIST): Add quote.h.
61603         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
61604         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
61605         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
61606         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
61607         regex_internal.h regexec.c.
61608         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
61609         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
61610         * modules/same (EXTRA_DIST): Add same.h.
61611         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
61612         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
61613         * modules/savedir (EXTRA_DIST): Add savedir.h.
61614         * modules/sha1 (EXTRA_DIST): Add sha1.h.
61615         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
61616         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
61617         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
61618         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
61619         * modules/strdup (EXTRA_DIST): Add strdup.h.
61620         * modules/strftime (EXTRA_DIST): Add strftime.h.
61621         * modules/strndup (EXTRA_DIST): Add strndup.h.
61622         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
61623         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
61624         * modules/time_r (EXTRA_DIST): Add time_r.h.
61625         * modules/timespec (EXTRA_DIST): Add timespec.h.
61626         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
61627         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
61628         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
61629         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
61630         * modules/userspec (EXTRA_DIST): Add userspec.h.
61631         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
61632         * modules/utimens (EXTRA_DIST): Add utimens.h.
61633         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
61634         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
61635         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
61636         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
61637         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
61638         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
61639         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
61640         * modules/yesno (EXTRA_DIST): Add yesno.h.
61641
61642 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61643
61644         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
61645
61646         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
61647         * m4/dev-ino.m4, same-inode.m4: Remove.
61648
61649         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
61650         * m4/acl.m4 (AC_FUNC_ACL):
61651         * m4/backupfile.m4 (gl_BACKUPFILE):
61652         * m4/c-strtod.m4 (gl_C99_STRTOLD):
61653         * m4/canon-host.m4 (gl_CANON_HOST):
61654         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
61655         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
61656         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
61657         * m4/cloexec.m4 (gl_CLOEXEC):
61658         * m4/close-stream.m4 (gl_CLOSE_STREAM):
61659         * m4/closeout.m4 (gl_CLOSEOUT):
61660         * m4/dirfd.m4 (gl_FUNC_DIRFD):
61661         * m4/dirname.m4 (gl_DIRNAME):
61662         * m4/exclude.m4 (gl_EXCLUDE):
61663         * m4/exitfail.m4 (gl_EXITFAIL):
61664         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
61665         * m4/file-type.m4 (gl_FILE_TYPE):
61666         * m4/filemode.m4 (gl_FILEMODE):
61667         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
61668         * m4/fpending.m4 (gl_FUNC_FPENDING):
61669         * m4/fprintftime.m4 (gl_FPRINTFTIME):
61670         * m4/fts.m4 (gl_FUNC_FTS):
61671         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
61672         * m4/getdate.m4 (gl_GETDATE):
61673         * m4/gethrxtime.m4 (gl_GETHRXTIME):
61674         * m4/getpagesize.m4 (gl_GETPAGESIZE):
61675         * m4/getpass.m4 (gl_FUNC_GETPASS):
61676         * m4/gettime.m4 (gl_GETTIME):
61677         * m4/getugroups.m4 (gl_GETUGROUPS):
61678         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
61679         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
61680         * m4/hard-locale.m4 (gl_HARD_LOCALE):
61681         * m4/hash.m4 (gl_HASH):
61682         * m4/idcache.m4 (gl_IDCACHE):
61683         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
61684         * m4/lchown.m4 (gl_FUNC_LCHOWN):
61685         * m4/long-options.m4 (gl_LONG_OPTIONS):
61686         * m4/lstat.m4 (gl_FUNC_LSTAT):
61687         * m4/md5.m4 (gl_MD5):
61688         * m4/memcasecmp.m4 (gl_MEMCASECMP):
61689         * m4/memcoll.m4 (gl_MEMCOLL):
61690         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
61691         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
61692         * m4/memxor.m4 (gl_MEMXOR):
61693         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
61694         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
61695         * m4/modechange.m4 (gl_MODECHANGE):
61696         * m4/mountlist.m4 (gl_MOUNTLIST):
61697         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61698         * m4/openat.m4 (gl_FUNC_OPENAT):
61699         * m4/pathmax.m4 (gl_PATHMAX):
61700         * m4/physmem.m4 (gl_PHYSMEM):
61701         * m4/posixtm.m4 (gl_POSIXTM):
61702         * m4/posixver.m4 (gl_POSIXVER):
61703         * m4/quote.m4 (gl_QUOTE):
61704         * m4/quotearg.m4 (gl_QUOTEARG):
61705         * m4/readtokens.m4 (gl_READTOKENS):
61706         * m4/readutmp.m4 (gl_READUTMP):
61707         * m4/regex.m4 (gl_REGEX):
61708         * m4/safe-read.m4 (gl_SAFE_READ):
61709         * m4/safe-write.m4 (gl_SAFE_WRITE):
61710         * m4/same.m4 (gl_SAME):
61711         * m4/save-cwd.m4 (gl_SAVE_CWD):
61712         * m4/savedir.m4 (gl_SAVEDIR):
61713         * m4/settime.m4 (gl_SETTIME):
61714         * m4/sha1.m4 (gl_SHA1):
61715         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
61716         * m4/stat-macros.m4 (gl_STAT_MACROS):
61717         * m4/stat-time.m4 (gl_STAT_TIME):
61718         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
61719         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
61720         * m4/strdup.m4 (gl_FUNC_STRDUP):
61721         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
61722         * m4/strndup.m4 (gl_FUNC_STRNDUP):
61723         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
61724         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
61725         * m4/time_r.m4 (gl_TIME_R):
61726         * m4/timespec.m4 (gl_TIMESPEC):
61727         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
61728         * m4/unlinkdir.m4 (gl_UNLINKDIR):
61729         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
61730         * m4/userspec.m4 (gl_USERSPEC):
61731         * m4/utimecmp.m4 (gl_UTIMECMP):
61732         * m4/utimens.m4 (gl_UTIMENS):
61733         * m4/xalloc.m4 (gl_XALLOC):
61734         * m4/xgetcwd.m4 (gl_XGETCWD):
61735         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
61736         * m4/xreadlink.m4 (gl_XREADLINK):
61737         * m4/xstrtod.m4 (gl_XSTRTOD):
61738         * m4/yesno.m4 (gl_YESNO):
61739         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61740         to get the necessary .h files and whatnot.
61741
61742 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
61743             Bruno Haible  <bruno@clisp.org>
61744
61745         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
61746         /bin/sh understanding of '!' conditional negation.
61747
61748 2006-08-21  Jim Meyering  <jim@meyering.net>
61749
61750         * modules/openat (Depends-on): Really alphabetize.
61751
61752         * modules/acl (Depends-on): Add error and quote.
61753
61754         * check-module (find_included_lib_files): Add at-func.c to the
61755         ok-to-include-more-than-once white list.
61756
61757         * modules/openat (Depends-on): Add lstat.  Alphabetize.
61758
61759 2006-08-21  Bruno Haible  <bruno@clisp.org>
61760
61761         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61762         Emit a pkgdata_DATA variable only if some snippets add contents to it.
61763         Reported by Martin Lambers <marlam@marlam.de>.
61764
61765 2006-08-21  Bruno Haible  <bruno@clisp.org>
61766
61767         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
61768         specify an installation location, don't emit a noinst_LIBRARIES or
61769         noinst_LTLIBRARIES assignment.
61770
61771 2006-08-21  Bruno Haible  <bruno@clisp.org>
61772
61773         BeOS portability.
61774         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
61775         BeOS has mbrtowc() but no <wctype.h>.
61776
61777 2006-08-21  Bruno Haible  <bruno@clisp.org>
61778
61779         BeOS portability.
61780         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
61781         exist.
61782
61783 2006-08-21  Bruno Haible  <bruno@clisp.org>
61784
61785         BeOS portability.
61786         * lib/mbchar.h: Include <wctype.h> only if it exists.
61787
61788 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61789
61790         Remove files that are no longer needed by their respective modules.
61791         * m4/obstack.m4: Remove.
61792         * m4/strerror_r.m4: Remove.
61793         * m4/uint32_t.m4: Remove.
61794         * m4/uintptr_t.m4: Remove.
61795         * m4/ullong_max.m4: Remove.
61796         * m4/xstrtoimax.m4: Remove.
61797         * m4/xstrtoumax.m4: Remove.
61798
61799         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
61800         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
61801         dependencies now capture this.
61802
61803         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
61804         Do not use AC_LIBSOURCES, since gnulib modules now do this.
61805         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
61806         * m4/human.m4 (gl_HUMAN): Likewise.
61807         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
61808         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
61809
61810         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
61811
61812         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
61813         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
61814         stdint.
61815         * m4/human.m4 (gl_HUMAN): Likewise.
61816         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
61817         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
61818         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
61819         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
61820         * m4/xstrtol (gl_XSTRTOL): Likewise.
61821
61822         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
61823         AC_TYPE_LONG_LONG_INT.
61824         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
61825         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
61826         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
61827         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
61828
61829         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
61830         on stdbool.
61831
61832         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
61833         (gl_PREREQ_XSTRTOUL): Remove.
61834
61835         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
61836
61837         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
61838         mode.
61839
61840 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61841
61842         Add and change modules to make it easier for coreutils to use
61843         gnulib-tool.
61844         * modules/backupfile (Files): Remove m4/d-ino.m4.
61845         (Depends-on): Add d-ino.
61846         * modules/cycle-check (Depends-on): Add stdint.
61847         (lib_SOURCES): Add cycle-check.h.
61848         * modules/d-ino: New module.
61849         * modules/d-type: New module.
61850         * modules/error (Files): Remove m4/strerror_r.m4.
61851         * modules/filemode (Files): Add m4/st_dm_mode.m4.
61852         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
61853         m4/inttypes_h.m4, m4/uintmax_t.m4.
61854         (Depends-on): Add stdint.
61855         (lib_SOURCES): Add fsusage.h.
61856         * modules/getcwd (Files): Remove d-ino.m4.
61857         (Depends-on): Add d-ino.
61858         * modules/getndelim2 (Depends-on): Add stdint.
61859         * modules/glob (Files): Remove m4/d-type.m4.
61860         (Depends-on): Add d-type.
61861         * modules/host-os: New module.
61862         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
61863         m4/inttypes_h.m4, m4/uintmax_t.m4.
61864         * Depends-on: Add stdint.
61865         (lib_SOURCES): Add human.h.
61866         * modules/inttostr (Files): Remove m4/intmax_t.m4,
61867         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
61868         m4/uintmax_t.m4, m4/ulonglong.m4.
61869         (Depends-on): Add stdint.
61870         (EXTRA_DIST): Add inttostr.h.
61871         * modules/lchmod: New module.
61872         * modules/link-follow: New module.
61873         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
61874         (Depends-on): Add lchmod.
61875         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
61876         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
61877         (Depends-on): Add stdint.
61878         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
61879         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
61880         (Depends-on): Add stdint.
61881         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
61882         * modules/perl: New module.
61883         * modules/regex (Depends-on): Add stdint.
61884         * modules/rmdir-errno: New module.
61885         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
61886         m4/intmax_t.m4.
61887         (Depends-on): Add stdint.
61888         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
61889         m4/uintmax_t.m4.
61890         (Depends-on): Add stdint.
61891         * modules/unlink-busy: New module.
61892         * modules/utimecmp (Depends-on): Add stdint.
61893         * modules/uptime: New module.
61894         * modules/winsz-ioctl: New module.
61895         * modules/winsz-termios: New module.
61896         * modules/xnanosleep (Depends-on): Add nanosleep.
61897         * modules/ullong_max: Remove.
61898         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
61899         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
61900         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
61901         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
61902         (Depends-on): Add inttypes.
61903         (lib_SOURCES): Add xstrtol.h.
61904         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
61905         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
61906         * MODULES.html.sh: Move 'assert' into the assert section.
61907         Move 'dummy' into the linking section.
61908         Remove ullong_max.
61909         Add section for compatibility checks for POSIX:2001 functions,
61910         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
61911         winsz-ioctl, and winsz-termios into it.
61912         Add lchmod.
61913         Add top-level Misc section and put host-os, perl, and uptime
61914         into it.
61915
61916 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61917
61918         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
61919         now assume the stdint module.  Do not include inttypes.h.
61920         * lib/fsusage.h: Likewise.
61921         * lib/getndelim2.c: Likewise.
61922         * lib/human.h: Likewise.
61923         * lib/inttostr.h: Likewise.
61924         * lib/obstack.c: Likewise.
61925         * lib/regex_internal.h: Likewise.
61926         * lib/tempname.c: Likewise.
61927         * lib/utimecmp.c: Likewise.
61928         * lib/xstrtol.h: Likewise.
61929
61930         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
61931
61932         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
61933         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
61934         * lib/xtime.h: Likewise.
61935
61936 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61937
61938         * modules/openat (Files): Add lib/fchmodat.c.
61939         Fixes problem reported by Jay Youngman.
61940
61941 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61942
61943         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
61944         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
61945
61946 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
61947             Bruno Haible  <bruno@clisp.org>
61948
61949         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
61950         and is a script that invokes bison. Tighten the code. Add comments.
61951
61952 2006-08-18  Jim Meyering  <jim@meyering.net>
61953
61954         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
61955         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
61956         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
61957         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
61958
61959 2006-08-18  Bruno Haible  <bruno@clisp.org>
61960
61961         * modules/bison-i18n: New file.
61962         * MODULES.html.sh (Internationalization functions): Add it.
61963
61964 2006-08-18  Bruno Haible  <bruno@clisp.org>
61965
61966         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
61967         sys/statvfs.h. When getmntinfo was found, check its declaration and
61968         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
61969
61970 2006-08-18  Bruno Haible  <bruno@clisp.org>
61971
61972         * m4/bison-i18n.m4: New file, from bison.
61973
61974 2006-08-18  Bruno Haible  <bruno@clisp.org>
61975
61976         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
61977         (ME_DUMMY): Treat "kernfs" as a dummy.
61978         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
61979
61980 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61981
61982         Update from coreutils.
61983
61984         2006-08-15  Jim Meyering  <jim@meyering.net>
61985
61986         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
61987
61988         2006-01-17  Jim Meyering  <jim@meyering.net>
61989
61990         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
61991
61992         2006-01-11  Jim Meyering  <jim@meyering.net>
61993
61994         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
61995         Check for the lchmod function.
61996
61997 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61998
61999         Update from coreutils.
62000
62001         * lib/__fpending.h: Add copyright notice.
62002         * lib/fprintftime.h: Likewise.
62003         * lib/savedir.c: Use (C) in copyright notice.
62004         * lib/savedir.h: Likewise.
62005
62006         2006-08-15  Jim Meyering  <jim@meyering.net>
62007
62008         * lib/at-func.c: New file, with the logic of all emulated at-functions.
62009         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
62010         in support of the EXPECTED_ERRNO macro.
62011         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
62012         definitions.  Instead, define the appropriate symbols and include
62013         "at-func.c".
62014         * lib/mkdirat.c (mkdirat): Likewise.
62015         * lib/fchmodat.c (fchmodat): Likewise.
62016         (ENOSYS): Remove definition.
62017         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
62018         it.  Don't include "unistd--.h" -- it wasn't ever used.
62019
62020         2006-01-17  Jim Meyering  <jim@meyering.net>
62021
62022         Rewrite fts.c not to change the current working directory,
62023         by using openat, fstatat, fdopendir, etc..
62024
62025         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
62026         (HAVE_OPENAT_SUPPORT): Define.
62027         [_LIBC] (fchdir): Don't undef or define; no longer used.
62028         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
62029         Now, this `function' always succeeds, and consumes its file descriptor
62030         parameter -- so callers must not close such FDs.  Update callers.
62031         (diropen_fd, opendirat, cwd_advance_fd): New functions.
62032         (diropen): Add parameter, SP.  Adjust all callers.
62033         Implement using diropen_fd, rather than open.
62034         (fts_open): Initialize new member, fts_cwd_fd.
62035         Remove fts_rft-setting code.
62036         (fts_close): Close fts_cwd_fd, if necessary.
62037         (__opendir2): Define in terms of opendir or opendirat,
62038         depending on whether the FST_NOCHDIR flag is set.
62039         (fts_build): Since fts_safe_changedir consumes its FD, and since
62040         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
62041         and close the dup'd file descriptor upon failure.
62042         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
62043         (fts_safe_changedir): Tweak semantics to reflect that this function
62044         now calls cwd_advance_fd and hence consumes its FD argument.
62045         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
62046         [struct FTS] (fts_rft): Remove now-unused member.
62047         [struct FTS] (fts_cycle.state): Improve comment.
62048
62049         * lib/openat.c (openat_needs_fchdir): New function.
62050         * lib/openat.h (openat_needs_fchdir): Declare it.
62051
62052 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
62053
62054         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
62055         Problem and fix reported by Pádraig Brady in
62056         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
62057
62058 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62059
62060         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
62061
62062 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62063
62064         * lib/memcoll.c (memcoll): Optimize for the common case where the
62065         arguments are bytewise equal.
62066
62067 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62068
62069         * doc/regexprops-generic.texi: Add a copyright notice.
62070
62071 2006-08-15  Bruno Haible  <bruno@clisp.org>
62072
62073         * modules/tmpdir (License): Change to LGPL.
62074
62075 2006-08-15  Bruno Haible  <bruno@clisp.org>
62076
62077         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
62078         module.
62079
62080 2006-08-14  Simon Josefsson  <jas@extundo.com>
62081
62082         * config/srclist.txt: Add gnupload.
62083
62084 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62085
62086         Change copyright notice from LGPL 2 to GPL 2, since that's the
62087         standard form used in the gnulib repository.
62088         * tests/test-lock.c: Likewise.
62089         * tests/test-stdint.c: Likewise.
62090         * tests/test-tls.c: Likewise.
62091
62092         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
62093         prelude-manager.  User shorter URLs for GNU projects, without '?'.
62094         Add copyright notice.
62095
62096         * check-module: Add copyright notice.  Output a copyright
62097         notice if "--version" is specified.
62098         * modules/COPYING: New file.
62099         * tests/test-getaddrinfo.c: Add copyright notice.
62100         * tests/test-verify.c: Likewise.
62101
62102 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62103
62104         Change copyright notice from LGPL 2 to GPL 2, since that's the
62105         standard form used in the gnulib repository.
62106         * lib/lock.c: LGPL -> GPL.
62107         * lib/lock.h: Likewise.
62108         * lib/strnlen1.c: Likewise.
62109         * lib/strnlen1.h: Likewise.
62110         * lib/tls.c: Likewise.
62111         * lib/tls.h: Likewise.
62112         * lib/tmpdir.c: Likewise.
62113
62114         * lib/TODO: Remove; this belongs only in coreutils.
62115
62116 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62117
62118         Add copyright notices to long-enough files that lack them, since
62119         otherwise the files aren't clearly free.  Use the same notice that
62120         getdate.texi already uses.
62121         * doc/alloca-opt.texi: Add copyright notice.
62122         * doc/alloca.texi: Likewise.
62123         * doc/ctime.texi: Likewise.
62124         * doc/functions.texi: Likewise.
62125         * doc/gcd.texi: Likewise.
62126         * doc/gnulib-tool.texi: Likewise.
62127         * doc/inet_ntoa.texi: Likewise.
62128         * doc/visibility.texi: Likewise.
62129
62130         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
62131         * doc/quote.texi: Add copyright notice.
62132
62133         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
62134         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
62135         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
62136         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
62137         is now obsolete, and give a pointer to the Sun list.
62138         Add copyright notice.
62139
62140 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62141
62142         * config/srclistvars.sh: Add copyright notice.
62143
62144 2006-08-14  Eric Blake  <ebb9@byu.net>
62145
62146         Import the following change from libc:
62147
62148         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
62149
62150         Upstream bug 2997.
62151         * lib/misc/error.c: Add space between program name and message if file
62152         name is missing.
62153
62154 2006-08-12  Karl Berry  <karl@gnu.org>
62155
62156         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
62157         remove, these originate in gnulib now.
62158
62159 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62160
62161         * doc/Makefile (standards.info standards.html standards.dvi):
62162         Also depend on make-stds.texi.
62163
62164 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62165
62166         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
62167         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
62168
62169         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
62170         in wchar_t.  Problem reported by Eric Blake.
62171
62172         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
62173         LEN is smaller than SIZE.  Suggested by Bruno Haible.
62174         Also, help the compiler to keep LEN in a register.
62175
62176 2006-08-11  Eric Blake  <ebb9@byu.net>
62177
62178         * users.txt: Sort.  Add tar.
62179
62180 2006-08-11  Bruno Haible  <bruno@clisp.org>
62181
62182         * users.txt: New file.
62183
62184 2006-08-11  Bruno Haible  <bruno@clisp.org>
62185
62186         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
62187         before <wchar.h>. Needed for OSF/1 and BSD/OS.
62188
62189 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62190
62191         * modules/snprintf (Depends-on): Remove minmax.
62192         (Maintainer): Add self and Bruno.
62193
62194 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62195
62196         * lib/.cppi-disable: Add snprintf.h, socket_.h.
62197         * lib/snprintf.c: Include <errno.h> and <limits.h>.
62198         (EOVERFLOW): Define if the system does not.
62199         Do not include "minmax.h"; it wasn't used.
62200         (snprintf): Don't assume size_t promotes to an unsigned type.
62201         Fix bug when generated string was too long for the buffer: the
62202         buffer's contents are supposed to be the initial prefix of the
62203         output.  Don't assume vasnprintf returns EOVERFLOW if the size
62204         exceeds INT_MAX; do the check ourselves.
62205
62206         Import the following changes from libc:
62207
62208         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
62209
62210         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
62211         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
62212         set wc to the byte which couldn't be converted.
62213         (re_string_reconstruct): Don't clear valid_raw_len before calling
62214         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
62215         tip_context using re_string_context_at.
62216
62217         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
62218
62219         * lib/posix/regex.h: g++ still cannot handled [restrict].
62220
62221         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
62222
62223         * lib/posix/regex.h: Remove special handling for VMS.
62224
62225 2006-08-10  Jim Meyering  <jim@meyering.net>
62226
62227         * modules/same-inode: New module.
62228         * modules/dev-ino: New module.
62229         * modules/cycle-check: Depend on these modules, rather than simply
62230         including their .h files.
62231         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
62232         required via m4/cycle-check.m4.
62233         * modules/same: Depend on new same-inode module, rather than
62234         including same-inode.h.
62235         * modules/chdir-safer: New file.
62236
62237         * modules/chown (Depends-on): Add stat-macros.
62238
62239 2006-08-10  Jim Meyering  <jim@meyering.net>
62240
62241         * m4/cycle-check.m4: New file.
62242         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
62243         * m4/dev-ino.m4, m4/same-inode.m4: New files.
62244
62245 2006-08-10  Eric Blake  <ebb9@byu.net>
62246
62247         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
62248         in from original proposal.
62249
62250 2006-08-10  Eric Blake  <ebb9@byu.net>
62251         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62252
62253         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
62254         namespace.
62255
62256 2006-08-10  Bruno Haible  <bruno@clisp.org>
62257
62258         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
62259         as well.
62260
62261 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62262
62263         Sync from coreutils.
62264
62265         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
62266
62267         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
62268         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
62269
62270 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62271
62272         * modules/restrict: Remove; no longer needed now that we assume
62273         Autoconf 2.59 or later.
62274         * MODULES.html.sh: Remove 'restrict'.
62275         * modules/argp (Depends-on): Remove 'restrict'.
62276         * modules/base64 (Depends-on): Likewise.
62277         * modules/gc (Depends-on): Likewise.
62278         * modules/getaddrinfo (Depends-on): Likewise.
62279         * modules/glob (Depends-on): Likewise.
62280         * modules/inet_ntop (Depends-on): Likewise.
62281         * modules/inet_pton (Depends-on): Likewise.
62282         * modules/memxor (Depends-on): Likewise.
62283         * modules/regex (Depends-on): Likewise.
62284         * modules/strtok_r (Depends-on): Likewise.
62285         * modules/time_r (Depends-on): Likewise.
62286
62287 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62288
62289         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
62290         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
62291         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62292         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
62293         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
62294         * m4/memxor.m4 (gl_MEMXOR): Likewise.
62295         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
62296         gl_C_RESTRICT replaced by AC_C_RESTRICT.
62297
62298         Merge from coreutils.
62299         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
62300         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
62301         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62302         * m4/time_r.m4 (gl_TIME_R): Likewise.
62303
62304 2006-08-09  Karl Berry  <karl@gnu.org>
62305
62306         * config/srclist.txt: no more gettext-tools, per Bruno.
62307
62308 2006-08-08  Eric Blake  <ebb9@byu.net>
62309
62310         * modules/verror: New module.
62311         * MODULES.html.sh: Document it.
62312
62313 2006-08-08  Eric Blake  <ebb9@byu.net>
62314
62315         * lib/verror.h, lib/verror.c: New files.
62316
62317 2006-08-08  Eric Blake  <ebb9@byu.net>
62318
62319         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
62320         verror_at_line output complies with GNU Coding Standards even when
62321         file is NULL.
62322
62323 2006-08-07  Bruno Haible  <bruno@clisp.org>
62324
62325         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
62326         versions of AIX.
62327         Reported by Ralf Wildenhues.
62328
62329 2006-08-07  Bruno Haible  <bruno@clisp.org>
62330
62331         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
62332         in an AC_DEFUN. Needed so that the autoconf snippets can use
62333         AC_REQUIRE.
62334
62335 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62336
62337         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62338         Initialize pkgdata_DATA.
62339         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
62340         overriding it.
62341
62342 2006-08-06  Eric Blake  <ebb9@byu.net>
62343
62344         * lib/error.h: Fold in some upstream changes from glibc.
62345         * lib/error.c: Likewise.
62346
62347 2006-08-04  Bruno Haible  <bruno@clisp.org>
62348
62349         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62350         Make the mostlyclean-local rule depend on mostlyclean-generic.
62351         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
62352
62353 2006-07-31  Bruno Haible  <bruno@clisp.org>
62354
62355         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
62356         <stdlib.h>, <string.h>.
62357
62358 2006-07-30  Bruno Haible  <bruno@clisp.org>
62359
62360         * modules/readlink (License): Change to LGPL.
62361
62362 2006-07-30  Bruno Haible  <bruno@clisp.org>
62363
62364         * modules/javaversion (Makefile.am): Distribute javaversion.java and
62365         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
62366         set PKGDATADIR to point to it.
62367
62368 2006-07-30  Bruno Haible  <bruno@clisp.org>
62369
62370         * modules/csharpexec (configure.ac): Comment out macro invocation.
62371         * modules/javaexec (configure.ac): Likewise.
62372         * modules/javacomp-script (configure.ac): Likewise.
62373
62374         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
62375
62376 2006-07-30  Bruno Haible  <bruno@clisp.org>
62377
62378         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
62379         linked-list.
62380
62381 2006-07-30  Bruno Haible  <bruno@clisp.org>
62382
62383         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
62384
62385 2006-07-30  Bruno Haible  <bruno@clisp.org>
62386
62387         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62388         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
62389         get removed.
62390
62391 2006-07-29  Bruno Haible  <bruno@clisp.org>
62392
62393         Make it possible for gnulib-tool to work with locally modified or
62394         augmented gnulib repositories.
62395         * gnulib-tool (func_usage): Document --local-dir option.
62396         (local_gnulib_dir): New variable.
62397         Handle --local-dir option.
62398         (func_lookup_file): New function.
62399         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
62400         (func_get_description, func_get_filelist, func_get_description,
62401         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
62402         func_get_automake_snippet, func_get_include_directive,
62403         func_get_license, func_get_maintainer): Use func_lookup_file.
62404         (func_import, func_create_testdir): Use func_lookup_file.
62405
62406 2006-07-29  Bruno Haible  <bruno@clisp.org>
62407
62408         * modules/setenv (Depends-on): Add unistd.
62409
62410 2006-07-29  Bruno Haible  <bruno@clisp.org>
62411
62412         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
62413
62414 2006-07-29  Bruno Haible  <bruno@clisp.org>
62415
62416         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
62417
62418 2006-07-29  Bruno Haible  <bruno@clisp.org>
62419
62420         * gnulib-tool (import, update): If there is no Makefile.am, look at
62421         aclocal.m4, instead of bailing out.
62422
62423 2006-07-29  Bruno Haible  <bruno@clisp.org>
62424
62425         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
62426         Categorize the options by when they are useful.
62427
62428 2006-07-29  Bruno Haible  <bruno@clisp.org>
62429
62430         * gnulib-tool (func_usage): Document option --no-libtool.
62431         Handle option --no-libtool.
62432         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
62433         for changed semantics of $libtool variable.
62434         (func_import): Likewise. If libtool is not used, show this through
62435         an option --no-libtool.
62436         (func_create_testdir): Update.
62437
62438 2006-07-29  Bruno Haible  <bruno@clisp.org>
62439
62440         * gnulib-tool (func_import): Extend error message about missing
62441         --doc-base.
62442
62443 2006-07-29  Bruno Haible  <bruno@clisp.org>
62444
62445         * gnulib-tool (func_import): Don't create the $docbase directory if
62446         there is no file to store there.
62447
62448 2006-07-29  Bruno Haible  <bruno@clisp.org>
62449
62450         * gnulib-tool (autoconf_minversion): If a --dir option is given and
62451         relevant, look for configure.ac there, not in the current directory.
62452         Also use a simple search for AC_PREREQ, not "autoconf --trace".
62453
62454 2006-07-29  Bruno Haible  <bruno@clisp.org>
62455
62456         * gnulib-tool (SORT): New variable.
62457         (func_usage): Undocument --assume-autoconf option.
62458         Remove --assume-autoconf option handling.
62459         (autoconf_minversion): Determine from the contents of configure.ac.
62460         (func_import): Remove autoconf_minversion handling.
62461         Suggested by Eric Blake.
62462
62463 2006-07-29  Bruno Haible  <bruno@clisp.org>
62464
62465         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
62466
62467 2006-07-29  Bruno Haible  <bruno@clisp.org>
62468
62469         * config/srclist.txt (*setenv.[ch]): Remove rules.
62470
62471 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62472
62473         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
62474
62475 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62476
62477         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
62478         arpa/inet.h.
62479
62480 2006-07-28  Simon Josefsson  <jas@extundo.com>
62481
62482         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
62483         * modules/inet_pton (Depends-on): Likewise.
62484
62485 2006-07-28  Simon Josefsson  <jas@extundo.com>
62486
62487         * m4/netinet_in_h.m4: New file.
62488
62489 2006-07-28  Simon Josefsson  <jas@extundo.com>
62490
62491         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
62492         #include's.
62493
62494 2006-07-28  Simon Josefsson  <jas@extundo.com>
62495
62496         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
62497         #include's.
62498
62499 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
62500
62501         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
62502         setgid on directories only if they set these bits.
62503         * lib/modechange.h: Remove obsolete comment about masks.
62504
62505 2006-07-28  Eric Blake  <ebb9@byu.net>
62506
62507         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
62508         macro expansion.
62509
62510 2006-07-28  Bruno Haible  <bruno@clisp.org>
62511
62512         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
62513
62514 2006-07-28  Bruno Haible  <bruno@clisp.org>
62515
62516         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
62517
62518 2006-07-28  Bruno Haible  <bruno@clisp.org>
62519
62520         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
62521         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
62522         Define fallbacks.
62523         Avoids link error on FreeBSD 4.x.
62524         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62525
62526         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
62527         encoding.
62528         * lib/mbswidth.c (iswcntrl): Likewise.
62529
62530 2006-07-27  Bruno Haible  <bruno@clisp.org>
62531
62532         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
62533         test.
62534
62535 2006-07-27  Bruno Haible  <bruno@clisp.org>
62536
62537         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
62538         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
62539         defined.
62540
62541 2006-07-26  Eric Blake  <ebb9@byu.net>
62542
62543         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
62544
62545 2006-07-26  Eric Blake  <ebb9@byu.net>
62546
62547         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
62548         like mingw that lack mkstemp.
62549         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
62550         avoid compilation warning on mingw.
62551
62552 2006-07-26  Bruno Haible  <bruno@clisp.org>
62553
62554         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
62555         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
62556         INT_FAST*_MIN, INTPTR_MIN.
62557
62558 2006-07-25  Bruno Haible  <bruno@clisp.org>
62559
62560         * modules/version-etc (Depends-on): Add stdarg.
62561
62562 2006-07-25  Bruno Haible  <bruno@clisp.org>
62563
62564         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
62565         complex commands.
62566
62567 2006-07-25  Bruno Haible  <bruno@clisp.org>
62568
62569         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
62570         defined in <stdarg.h> or config.h.
62571
62572 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
62573
62574         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
62575         (gl_STDIO_SAFER): Remove.
62576
62577 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
62578
62579         * MODULES.html.sh (File stream based Input/Output):
62580         Add fopen-safer, tmpfile-safer; remove stdio-safer.
62581         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
62582         * modules/fopen-safer, modules/tmpfile-safer: New files.
62583         * modules/stdio-safer: Remove.
62584
62585 2006-07-24  Bruno Haible  <bruno@clisp.org>
62586
62587         * modules/tmpdir: New file.
62588         * MODULES.html.sh (File system functions): Add it.
62589
62590 2006-07-24  Bruno Haible  <bruno@clisp.org>
62591
62592         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
62593         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
62594
62595 2006-07-24  Bruno Haible  <bruno@clisp.org>
62596
62597         * modules/clean-temp: New file.
62598
62599 2006-07-24  Bruno Haible  <bruno@clisp.org>
62600
62601         * m4/tmpdir.m4: New file, from GNU gettext.
62602
62603 2006-07-24  Bruno Haible  <bruno@clisp.org>
62604
62605         * lib/tmpdir.h: New file, from GNU gettext.
62606         * lib/tmpdir.c: New file, from GNU gettext.
62607
62608 2006-07-24  Bruno Haible  <bruno@clisp.org>
62609
62610         * lib/clean-temp.h: New file, from GNU gettext.
62611         * lib/clean-temp.c: New file, from GNU gettext.
62612
62613 2006-07-23  Eric Blake  <ebb9@byu.net>
62614
62615         * modules/stdio-safer (Files): Add tmpfile-safer.c.
62616         (Depends-on): Add binary-io.
62617
62618 2006-07-23  Eric Blake  <ebb9@byu.net>
62619
62620         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
62621
62622 2006-07-23  Eric Blake  <ebb9@byu.net>
62623
62624         * lib/tmpfile-safer.c: New file.
62625         * lib/stdio-safer.h (fopen_safer): Add prototype.
62626         * lib/stdio--.h (tmpfile): Make safer.
62627
62628 2006-07-23  Bruno Haible  <bruno@clisp.org>
62629
62630         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
62631         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
62632         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
62633         gl_linked_remove_at): Use it.
62634
62635 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62636         and Simon Josefsson <jas@extundo.com>
62637
62638         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
62639
62640         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
62641
62642 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62643
62644         * modules/close-stream: New file.
62645         * modules/closeout (Description): Make it clear that it exits
62646         with a diagnostic on error.
62647         (Depends-on): Add close-stream.  Remove fpending, stdbool.
62648         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
62649
62650 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62651
62652         * m4/close-stream.m4: New file.
62653
62654 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62655
62656         * lib/close-stream.c, lib/close-stream.h: New files.
62657
62658 2006-07-22  Bruno Haible  <bruno@clisp.org>
62659
62660         Merge from GNU gettext 0.15.
62661
62662         2006-05-01  Bruno Haible  <bruno@clisp.org>
62663
62664                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
62665
62666         2006-07-22  Bruno Haible  <bruno@clisp.org>
62667
62668                 * modules/javaversion: New file.
62669                 * MODULES.html.sh (Java): Add javaversion.
62670
62671         2006-03-12  Bruno Haible  <bruno@clisp.org>
62672
62673                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
62674
62675         2005-12-04  Bruno Haible  <bruno@clisp.org>
62676
62677                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
62678                 (untested).
62679
62680         2006-06-21  Bruno Haible  <bruno@clisp.org>
62681
62682                 Avoid warnings from recent versions of mcs.
62683                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
62684                 -o, -L, -r any more. Use options documented since mcs-1.0
62685                 instead. Similarly for -g.
62686
62687         2005-12-04  Bruno Haible  <bruno@clisp.org>
62688
62689                 * build-aux/csharpcomp.sh.in: Suffix for resources is
62690                 .resources, not .resource.
62691
62692         2005-07-09  Bruno Haible  <bruno@clisp.org>
62693
62694                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
62695                 add a .dll suffix.
62696                 Reported by Mark Junker <mjscod@gmx.de>.
62697
62698         2006-07-22  Bruno Haible  <bruno@clisp.org>
62699
62700                 * modules/gettext: Upgrade to gettext-0.15.
62701                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
62702                 m4/visibility.m4.
62703                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
62704
62705 2006-07-22  Bruno Haible  <bruno@clisp.org>
62706
62707         Merge from GNU gettext 0.15.
62708
62709         2006-03-25  Bruno Haible  <bruno@clisp.org>
62710
62711                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
62712
62713         2006-07-21  Bruno Haible  <bruno@clisp.org>
62714
62715                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
62716                 "1.1".
62717
62718         2006-05-09  Bruno Haible  <bruno@clisp.org>
62719
62720                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
62721                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
62722                 for the conftestver execution.
62723
62724         2006-05-01  Bruno Haible  <bruno@clisp.org>
62725
62726                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
62727                 optional target-version argument. Verify that the compiler
62728                 groks source of the specified source-version, or add -source
62729                 option as necessary. Verify that the compiler produces
62730                 bytecode in the specified target-version, or add -target and
62731                 -source options as necessary. Make the result of the test
62732                 available as variable CONF_JAVAC. Also log error output in
62733                 config.log.
62734
62735         2006-03-11  Bruno Haible  <bruno@clisp.org>
62736
62737                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
62738
62739         2006-05-09  Bruno Haible  <bruno@clisp.org>
62740
62741                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
62742                 CLASSPATH_SEPARATOR to a semicolon.
62743
62744         2006-03-12  Bruno Haible  <bruno@clisp.org>
62745
62746                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
62747                 available as variable CONF_JAVA, for subsequent autoconf
62748                 tests. Also log error output in config.log.
62749
62750         2006-07-19  Bruno Haible  <bruno@clisp.org>
62751
62752                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
62753                 that getline works on glibc2 systems. Needed to avoid trouble
62754                 in relocatable.c.
62755                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
62756
62757         2005-12-04  Bruno Haible  <bruno@clisp.org>
62758
62759                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
62760                 launcher (untested).
62761
62762         2005-12-04  Bruno Haible  <bruno@clisp.org>
62763
62764                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
62765
62766         2006-07-22  Bruno Haible  <bruno@clisp.org>
62767
62768                 * gettext.m4: Update from GNU gettext-0.15.
62769                 * nls.m4: Likewise.
62770                 * po.m4: Likewise.
62771                 * inttypes-pri.m4: Likewise.
62772                 * inttypes-h.m4: Renamed from inttypes.m4.
62773                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
62774
62775 2006-07-22  Bruno Haible  <bruno@clisp.org>
62776
62777         Merge from GNU gettext 0.15.
62778
62779         2005-07-05  Bruno Haible  <bruno@clisp.org>
62780
62781                 * printf-args.c (printf_fetchargs): Work around broken
62782                 definition of wint_t on mingw.
62783
62784         2005-02-12  Bruno Haible  <bruno@clisp.org>
62785
62786                 * xallocsa.h: Add extern "C" for C++.
62787
62788         2006-05-17  Bruno Haible  <bruno@clisp.org>
62789
62790                 Cygwin portability.
62791                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
62792
62793         2006-04-30  Bruno Haible  <bruno@clisp.org>
62794
62795                 * progreloc.c: Include <mach-o/dyld.h> if available.
62796                 (find_executable): Use _NSGetExecutablePath when possible.
62797
62798         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62799
62800                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
62801                 function.
62802
62803         2005-12-29  Bruno Haible  <bruno@clisp.org>
62804
62805                 * progreloc.c (set_program_name_and_installdir): Fix
62806                 compilation error.
62807
62808         2005-12-04  Bruno Haible  <bruno@clisp.org>
62809
62810                 Cygwin portability.
62811                 * progreloc.c: Include <windows.h> also on Cygwin.
62812                 (find_executable): Add support for Cygwin.
62813                 (set_program_name_and_installdir): Handle also platforms with
62814                 nonempty EXEEXT.
62815
62816         2006-07-11  Bruno Haible  <bruno@clisp.org>
62817
62818                 * javacomp.c: Fix a comment.
62819                 Reported by Jim Meyering.
62820
62821         2006-04-30  Bruno Haible  <bruno@clisp.org>
62822
62823                 * javacomp.h (compile_java_class): Add source_version,
62824                 target_version arguments.
62825                 * javacomp.c: Rewritten to choose only a compiler that
62826                 respects the specified source_version and target_version.
62827
62828         2006-06-27  Bruno Haible  <bruno@clisp.org>
62829
62830                 Assume correct S_ISDIR macro.
62831                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
62832
62833         2006-07-22  Bruno Haible  <bruno@clisp.org>
62834
62835                 * javaversion.h: New file, from GNU gettext.
62836                 * javaversion.c: New file, from GNU gettext.
62837                 * javaversion.java: New file, from GNU gettext.
62838                 * javaversion.class: New file, from GNU gettext.
62839
62840         2006-05-17  Bruno Haible  <bruno@clisp.org>
62841
62842                 Cygwin portability.
62843                 * javaexec.c (execute_java_class): Test for jview program
62844                 also on Cygwin.
62845
62846         2006-04-09  Bruno Haible  <bruno@clisp.org>
62847
62848                 * fatal-signal.c: Don't include string.h.
62849                 (at_fatal_signal): Use a copying loop instead of memcpy.
62850
62851         2005-12-04  Bruno Haible  <bruno@clisp.org>
62852
62853                 * csharpexec.c: Add support for 'clix' launcher (untested).
62854                 (execute_csharp_using_sscli): New function.
62855                 (execute_csharp_program): Call it.
62856
62857         2006-06-21  Bruno Haible  <bruno@clisp.org>
62858
62859                 Avoid warnings from recent versions of mcs.
62860                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
62861                 -o, -L, -r any more. Use options documented since mcs-1.0
62862                 instead. Similarly for -g.
62863
62864         2005-07-09  Bruno Haible  <bruno@clisp.org>
62865
62866                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
62867                 add a .dll suffix.
62868                 Reported by Mark Junker <mjscod@gmx.de>.
62869
62870         2006-06-17  Bruno Haible  <bruno@clisp.org>
62871
62872                 * config.charset: Update for NetBSD 3.0.
62873
62874         2006-05-17  Bruno Haible  <bruno@clisp.org>
62875
62876                 Cygwin portability.
62877                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
62878
62879         2006-05-16  Bruno Haible  <bruno@clisp.org>
62880
62881                 * localcharset.c [CYGWIN]: Include <windows.h>.
62882                 (get_charset_aliases): For Cygwin, return the same CPxxx
62883                 aliases list as under WIN32.
62884                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
62885                 the environment variables. Fall back to GetACP().
62886
62887         2006-04-05  Bruno Haible  <bruno@clisp.org>
62888
62889                 * config.charset: Update Juan Manuel Guerrero's address.
62890
62891         2005-02-12  Bruno Haible  <bruno@clisp.org>
62892
62893                 * allocsa.h: Add extern "C" for C++.
62894
62895         2005-02-10  Bruno Haible  <bruno@clisp.org>
62896
62897                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
62898                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
62899
62900         2006-07-22  Bruno Haible  <bruno@clisp.org>
62901
62902                 * gettext.h: Update to GNU gettext-0.15.
62903
62904 2006-07-22  Bruno Haible  <bruno@clisp.org>
62905
62906         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
62907         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
62908         lib-prefix.m4, longdouble.m4, ssize_t.m4.
62909
62910 2006-07-21  Eric Blake  <ebb9@byu.net>
62911
62912         * modules/stdlib-safer: New file.
62913         * MODULES.html.sh (File stream based Input/Output): Add
62914         stdlib-safer.
62915
62916 2006-07-21  Eric Blake  <ebb9@byu.net>
62917
62918         * lib/stdlib-safer.h: New file from coreutils, required by
62919         stdlib--.h.
62920
62921 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
62922
62923         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
62924
62925 2006-07-20  Bruno Haible  <bruno@clisp.org>
62926
62927         * gnulib-tool: Recognize new option --assume-autoconf.
62928         (autoconf_minversion): New variable.
62929         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
62930
62931 2006-07-20  Bruno Haible  <bruno@clisp.org>
62932
62933         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
62934
62935 2006-07-19  Derek R. Price  <derek@ximbiot.com>
62936
62937         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
62938         Reindent and repaginate.
62939
62940 2006-07-19  Derek Price  <derek@ximbiot.com>
62941
62942         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
62943         Correct grammar.
62944
62945 2006-07-17  Bruno Haible  <bruno@clisp.org>
62946
62947         * modules/list: New file.
62948         * modules/array-list: New file.
62949         * modules/carray-list, modules/carray-list-tests: New files.
62950         * modules/linked-list, modules/linked-list-tests: New files.
62951         * modules/avltree-list, modules/avltree-list-tests: New files.
62952         * modules/rbtree-list, modules/rbtree-list-tests: New files.
62953         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
62954         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
62955         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
62956         * modules/oset: New file.
62957         * modules/array-oset: New file.
62958         * modules/avltree-oset, modules/avltree-oset-tests: New files.
62959         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
62960         * tests/test-carray_list.c: New file.
62961         * tests/test-linked_list.c: New file.
62962         * tests/test-avltree_list.c: New file.
62963         * tests/test-rbtree_list.c: New file.
62964         * tests/test-linkedhash_list.c: New file.
62965         * tests/test-avltreehash_list.c: New file.
62966         * tests/test-rbtreehash_list.c: New file.
62967         * tests/test-avltree_oset.c: New file.
62968         * tests/test-rbtree_oset.c: New file.
62969         * MODULES.html.sh (Container data structures): New section.
62970
62971 2006-07-17  Bruno Haible  <bruno@clisp.org>
62972
62973         * m4/gl_list.m4: New file.
62974
62975 2006-07-17  Bruno Haible  <bruno@clisp.org>
62976
62977         * lib/gl_list.h: New file.
62978         * lib/gl_list.c: New file.
62979         * lib/gl_array_list.h: New file.
62980         * lib/gl_array_list.c: New file.
62981         * lib/gl_carray_list.h: New file.
62982         * lib/gl_carray_list.c: New file.
62983         * lib/gl_linked_list.h: New file.
62984         * lib/gl_linked_list.c: New file.
62985         * lib/gl_anylinked_list1.h: New file.
62986         * lib/gl_anylinked_list2.h: New file.
62987         * lib/gl_avltree_list.h: New file.
62988         * lib/gl_avltree_list.c: New file.
62989         * lib/gl_anyavltree_list1.h: New file.
62990         * lib/gl_anyavltree_list2.h: New file.
62991         * lib/gl_rbtree_list.h: New file.
62992         * lib/gl_rbtree_list.c: New file.
62993         * lib/gl_anyrbtree_list1.h: New file.
62994         * lib/gl_anyrbtree_list2.h: New file.
62995         * lib/gl_anytree_list1.h: New file.
62996         * lib/gl_anytree_list2.h: New file.
62997         * lib/gl_linkedhash_list.h: New file.
62998         * lib/gl_linkedhash_list.c: New file.
62999         * lib/gl_anyhash_list1.h: New file.
63000         * lib/gl_anyhash_list2.h: New file.
63001         * lib/gl_avltreehash_list.h: New file.
63002         * lib/gl_avltreehash_list.c: New file.
63003         * lib/gl_rbtreehash_list.h: New file.
63004         * lib/gl_rbtreehash_list.c: New file.
63005         * lib/gl_anytreehash_list1.h: New file.
63006         * lib/gl_anytreehash_list2.h: New file.
63007
63008         * lib/gl_oset.h: New file.
63009         * lib/gl_oset.c: New file.
63010         * lib/gl_array_oset.h: New file.
63011         * lib/gl_array_oset.c: New file.
63012         * lib/gl_avltree_oset.h: New file.
63013         * lib/gl_avltree_oset.c: New file.
63014         * lib/gl_rbtree_oset.h: New file.
63015         * lib/gl_rbtree_oset.c: New file.
63016         * lib/gl_anytree_oset.h: New file.
63017
63018 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63019
63020         * m4/mkancesdirs.m4: New file.
63021         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
63022         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
63023         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
63024         it.
63025
63026 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63027
63028         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
63029         * lib/mkancesdirs.h: New files.
63030         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
63031         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
63032         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
63033         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
63034         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
63035         callers changed.  Revamp internals significantly, by not
63036         attempting to create directories that are temporarily more
63037         permissive than the final results.  Do not attempt to use
63038         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
63039         This removes some race conditions, fixes some bugs, and simplifies
63040         things.  Use new dirchownmod function to do owner and mode changes.
63041         * lib/mkdir-p.h: Likewise.
63042         * lib/modechange.c (octal_to_mode): New function.
63043         (struct mode_change): New member mentioned.
63044         (make_node_op_equals): New arg mentioned.  All callers changed.
63045         (mode_compile): Keep track of which mode bits the user has explicitly
63046         mentioned.
63047         (mode_adjust): New arg DIR, so that we implement the X op correctly.
63048         New arg PMODE_BITS, to keep track of which mode bits the user
63049         mentioned; it treats S_ISUID and S_ISGID speciall.
63050         All callers changed.
63051         * lib/modechange.h: Likewise.
63052
63053 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63054
63055         * MODULES.html.sh: Add mkancestors.
63056         * modules/mkancesdirs: New module.
63057         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
63058         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
63059         The chdir-safer and afs files are now orphans; I'll remove them
63060         unless someone speaks up.
63061         Add lib/dirchownmod.c, lib/dirchownmod.h.
63062         (Depends-on): Remove alloca, chown, save-cwd, dirname.
63063         Add lchown, mkancesdirs.
63064         (Maintainer): Add self.
63065
63066 2006-07-15  Karl Berry  <karl@gnu.org>
63067
63068         * gnulib-tool: help message wording/arrangement.
63069
63070 2006-07-14  Simon Josefsson  <jas@extundo.com>
63071
63072         * doc/gnulib.texi (Libtool and Windows): New section.
63073
63074 2006-07-12  Simon Josefsson  <jas@extundo.com>
63075
63076         * modules/gendocs (License): Fix license, approved by Karl.
63077
63078 2006-07-12  Eric Blake  <ebb9@byu.net>
63079
63080         * MODULES.html.sh: Add gendocs.
63081
63082 2006-07-11  Eric Blake  <ebb9@byu.net>
63083
63084         * modules/fdl: New module, to install doc/fdl.texi.
63085         * MODULES.html.sh: Add new section for documentation modules.
63086         * gnulib-tool: Avoid space-tab.
63087         (--doc-base): New option, to manage files from doc.
63088
63089 2006-07-11  Eric Blake  <ebb9@byu.net>
63090
63091         * m4/absolute-header.m4: Fix comments to match recent change.
63092
63093 2006-07-11  Eric Blake  <ebb9@byu.net>
63094
63095         * gnulib-tool: List --doc-base before --tests-base.
63096
63097 2006-07-11  Derek R. Price  <derek@ximbiot.com>
63098
63099         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
63100
63101 2006-07-11  Bruno Haible  <bruno@clisp.org>
63102
63103         * README: Mention where to put documentation.
63104
63105 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63106
63107         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
63108
63109 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63110
63111         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
63112         to stdint.m4.
63113
63114 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63115
63116         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
63117         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
63118         "no/such/file/stdint.h" when there is no such file, so that
63119         the resulting C code can be parsed by dodgy compilers.
63120         Problems reported by Bob Proulx.
63121
63122 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63123
63124         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
63125         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63126         macros into the GNU _D_EXACT_NAMLEN.
63127         * lib/savedir.c:  Likewise.
63128         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
63129
63130 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63131         and Paul Eggert  <eggert@cs.ucla.edu>
63132
63133         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
63134         * m4/savedir.m4:
63135         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63136         macros into the GNU _D_EXACT_NAMLEN.
63137
63138 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63139
63140         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
63141         around the absolute name, to work around a problem with the HP-UX
63142         11.23 native C compiler, reported by Bob Proulx.
63143
63144 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63145
63146         * doc/maintain.texi, make-stds.texi: Sync from
63147         <http://savannah.gnu.org/projects/gnustandards>.
63148
63149 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63150
63151         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
63152
63153 2006-07-09  Jim Meyering  <jim@meyering.net>
63154
63155         * m4/glob.m4: Remove a doubled word in a comment.
63156
63157 2006-07-09  Jim Meyering  <jim@meyering.net>
63158
63159         * lib/argp-pv.c: Remove a doubled word in a comment.
63160         * lib/check-version.c (check_version): Likewise.
63161         * lib/javacomp.c (compile_java_class): Likewise.
63162
63163 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63164
63165         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
63166         for the benefit of people using Autoconf 2.60.  If you want to
63167         support older Autoconf versions you can copy m4/onceonly_2_57.m4
63168         (or m4/onceonly.m4, if pre-2.57) manually.
63169
63170 2006-07-08  Jim Meyering  <jim@meyering.net>
63171
63172         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
63173         comment.
63174         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
63175         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
63176         comment.
63177
63178 2006-07-08  Jim Meyering  <jim@meyering.net>
63179
63180         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
63181
63182 2006-07-07  Simon Josefsson  <jas@extundo.com>
63183
63184         * tests/test-crc.c: Change expected crc value, the test vector
63185         were probably computed using the old broken crc.c?
63186
63187 2006-07-06  Simon Josefsson  <jas@extundo.com>
63188
63189         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
63190         now the canonical place for the M4 file).
63191
63192         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
63193         from the sys_socket dependency now.
63194
63195         * modules/inet_pton (Files): Ditto.
63196
63197         * modules/inet_ntop (Files): Ditto.
63198
63199 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63200
63201         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
63202         not gl_PREREQ_GETUSERSHELL.
63203
63204 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63205
63206         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
63207         with only one argument, for Autoconf 2.60.
63208         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
63209         expand to nothing, so add a shell command to avoid syntax error.
63210         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63211
63212 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63213
63214         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
63215
63216 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63217
63218         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
63219         no longer needed.  Check for isblank decl.
63220         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
63221         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
63222         of existence.
63223
63224 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63225
63226         * lib/getloadavg.c: Use __VMS, not VMS.
63227         * lib/getopt.c: Likewise.
63228         * lib/getpagesize.h: Likewise.
63229         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
63230         and probably does not work.
63231
63232 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63233
63234         * lib/.cppi-disable: Add wcwidth.
63235         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
63236         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
63237         (ISGRAPH): Remove.  All uses changed to isgraph.
63238         (FOLD) [!defined _LIBC]: Remove special case.
63239         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
63240         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
63241         HAVE_ISBLANK.
63242         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
63243         case.
63244
63245 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63246
63247         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
63248         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
63249         brackets.  Other minor changes to suppress some compiler
63250         warnings.
63251
63252 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63253         and Paul Eggert  <eggert@cs.ucla.edu>
63254
63255         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
63256         of invoking obsolescent AC_HEADER_DIRENT macro.
63257         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
63258         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
63259         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
63260         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
63261         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
63262         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63263         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
63264         * m4/readdir.m4: Remove; no longer needed.
63265
63266 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63267         and Paul Eggert  <eggert@cs.ucla.edu>
63268
63269         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
63270         Don't worry about this obsolete case any more.
63271         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
63272         directories.
63273         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
63274         worry about this obsolete case any more.
63275         * lib/fts.c: Likewise.
63276         * lib/getcwd.c: Likewise.
63277         * lib/glob.h: Likewise.
63278         * lib/savedir.c: Likewise.
63279
63280 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63281
63282         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
63283         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
63284         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
63285         needed.
63286         All uses removed.
63287         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63288         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63289         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
63290         needed.
63291         * m4/getdate.m4 (gl_GETDATE): Likewise.
63292         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63293         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63294         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63295         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63296         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63297         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63298         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
63299         needed.
63300
63301 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63302
63303         * lib/memcasecmp.c: Include <limits.h>.
63304         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
63305         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
63306         Don't assume isdigit succeeds only on '0' through '9'.
63307
63308 2006-07-05  Eric Blake  <ebb9@byu.net>
63309
63310         * modules/getaddrinfo (Depends-on): Add snprintf.
63311
63312 2006-07-05  Eric Blake  <ebb9@byu.net>
63313
63314         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
63315         to avoid 'header present but could not be compiled' on cygwin.
63316
63317 2006-07-05  Eric Blake  <ebb9@byu.net>
63318
63319         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
63320         missing from netdb.h.
63321         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
63322
63323 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63324
63325         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
63326         no longer needed.
63327         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
63328         * m4/getdate.m4 (gl_GETDATE): Likewise.
63329         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63330         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63331         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63332         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63333         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63334
63335 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63336
63337         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
63338         All uses of is_space replaced by isspace.
63339         * lib/exit.h: Don't talk about STDC_HEADERS.
63340         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
63341         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
63342         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
63343         replaced by isprint etc.
63344         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
63345         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63346         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
63347         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
63348         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
63349         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63350
63351 2006-07-05  Bruno Haible  <bruno@clisp.org>
63352
63353         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
63354         the function exists, before testing against AIX.
63355         Reported by Martin Lambers <marlam@marlam.de>.
63356
63357 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63358
63359         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
63360         From Mark D. Baushke.
63361
63362 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63363
63364         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
63365         to the absolute name, not just one, to bypass Sun C 5.8's
63366         "warning: #include of /usr/include/... may be non-portable".
63367
63368 2006-07-04  Eric Blake  <ebb9@byu.net>
63369
63370         * modules/dirname-tests: New test module.
63371         * tests/test-dirname.c: New file, replacing dirname.c
63372         TEST_DIRNAME section that was recently deleted.
63373
63374 2006-07-04  Bruno Haible  <bruno@clisp.org>
63375
63376         Assume ANSI C header files and <ctype.h> functions.
63377         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
63378         (mbsnwidth): Use isprint, iscntrl instead.
63379
63380 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63381
63382         Merge from coreutils.
63383         * MODULES.html.sh: Add xstrtold.
63384         * modules/xstrtold: New file.
63385         * modules/cycle-check (Files): Add lib/same-inode.h.
63386         * modules/dirname (Files): Add m4/double-slash-root.m4.
63387         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
63388         * modules/mkdir-p (Files): Add lib/same-inode.h.
63389         * modules/same (Files): Add lib/same-inode.h.
63390
63391 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63392
63393         * m4/absolute-header.m4: Renamed from full-header-path.m4.
63394         This is to keep the terminology clean; POSIX talks about
63395         "absolute pathnames", not "full pathnames", but the GNU
63396         Coding Standards say to use "path" for something else;
63397         so use "absolute" to keep both sides happy.
63398         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
63399         Set gl_absolute_header, not gl_full_header_path.
63400         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
63401         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
63402         All uses changed.
63403
63404         Merge from coreutils.
63405
63406         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63407
63408         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
63409         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
63410         want to require the building of c-strtod.o.
63411         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
63412         needs -lm directly.
63413         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
63414
63415         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
63416
63417         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
63418         --as-needed option if available.  Problem reported by Albert Chin in
63419         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
63420         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
63421         cc merely issues a bunch of annoying warnings for --as-needed
63422         (this problem was reported by Bob Proulx).  Also, try linking with
63423         -lm to detect a bug in binutils 2.16 (this problem was reported
63424         by Ralf Wildenhues).
63425
63426         2006-06-18  Jim Meyering  <jim@meyering.net>
63427
63428         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
63429         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
63430         macro.
63431         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
63432         also check for glibc-2.4's abort-inducing bug.
63433
63434         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
63435         Low-probability clean-up should be to use rmdir to get rid of
63436         the just-created directory, not unlink.
63437
63438         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
63439         configure fail, and request a bug report to inform us about it.
63440         Add a comment that, barring reports to the contrary, in 2007 we'll
63441         assume ftruncate is universally available.
63442
63443         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63444
63445         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
63446
63447         2006-03-12  Jim Meyering  <jim@meyering.net>
63448
63449         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
63450         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
63451         * m4/same.m4 (gl_SAME): Likewise.
63452         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
63453
63454         2006-03-11  Eric Blake  <ebb9@byu.net>
63455
63456         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
63457         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
63458         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
63459         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
63460
63461 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63462
63463         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
63464         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
63465         reported by Mark D. Baushke, one in
63466         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
63467
63468         Merge from coreutils.
63469
63470         * lib/.cppi-disable: Add stdint_.h.
63471         * lib/.cvsignore: Add stdint.h.
63472
63473         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63474
63475         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
63476         both double and long double versions.
63477         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
63478         * lib/xstrtold.c: New file.
63479         * lib/xstrtod.h (xstrtold): New decl.
63480
63481         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
63482
63483         * lib/filemode.c (setst): Remove.
63484         (strmode): Rewrite to avoid setst.  This makes the code shorter,
63485         (arguably) clearer, and the generated code is a bit smaller on my
63486         Debian GNU/Linux stable x86 host.
63487
63488         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63489
63490         * lib/filemode.c: Include "filemode.h" first, to test the interface.
63491         Assume that filemode.h includes sys/types.h and sys/stat.h.
63492         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
63493         (ftypelet): Reorder to put common cases first, for efficiency.
63494         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
63495         to do 'M'.
63496         (strmode): Renamed from mode_string, and now stores 12 bytes instead
63497         of 10, for compatibility with FreeBSD.  All callers changed.
63498         (filemodestring): Now stores 12 bytes instead of 10, and sets file
63499         types that can't be deduced solely from st_mode.  First arg is now a
63500         const pointer.
63501         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
63502         (strmode): Renamed from mode_string.
63503         (filemodestring): New decl.
63504         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
63505         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
63506         needed.
63507         (S_ISPORT, S_ISWHT): New macros, if not already defined.
63508
63509         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
63510
63511         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
63512         fsusage.h now does that.  Include fsusage.h first, to test interface.
63513         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
63514         at most one method (the old code could have generated decls that
63515         didn't conform to C89, not that this was ever exercised).
63516         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
63517
63518         2006-03-19  Jim Meyering  <jim@meyering.net>
63519
63520         Work even in a chroot where d_ino values for entries in "/"
63521         don't match the stat.st_ino values for the same names.
63522         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
63523         number, iterate through all entries again, using lstat instead.
63524         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
63525         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
63526
63527         * lib/getcwd.c (__getcwd): Clarify a comment.
63528         Use memcpy in place of a call to strcpy.
63529
63530         2006-03-12  Jim Meyering  <jim@meyering.net>
63531
63532         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
63533         matches that of the current directory (which we're about to chdir ".."
63534         out of), then save the dev-ino of the parent, instead.
63535
63536         * lib/same-inode.h (SAME_INODE): New file/macro.
63537         * lib/chdir-safer.c (SAME_INODE): Remove definition.
63538         Include "same-inode.h", instead.
63539         * lib/same.c: Likewise.
63540         * lib/cycle-check.h: Include "same-inode.h".
63541         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
63542         * lib/cycle-check.c (SAME_INODE): Remove definition.
63543         * lib/root-dev-ino.h: Include "same-inode.h".
63544
63545         2006-03-11  Eric Blake  <ebb9@byu.net>
63546
63547         * lib/same.c (same_name): s/base_name/last_component/
63548         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
63549         * lib/filenamecat.c (file_name_concat): Likewise.
63550
63551         2006-03-11  Eric Blake  <ebb9@byu.net>,
63552                     Paul Eggert  <eggert@cs.ucla.edu>
63553
63554         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
63555         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
63556         drive prefix.
63557         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
63558         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
63559         (last_component): New method.
63560         * lib/dirname.c (dir_len): Determine when drive letters need a
63561         subsequent slash.  Preserve // when it is special.
63562         (dir_name): Don't append dot when drive letter is absolute.
63563         [TEST_DIRNAME]: Move into a full-blown gnulib test.
63564         * lib/basename.c (base_name): New semantics - malloc the result.
63565         Preserve // when it is special.  Preserve relative files that look
63566         like drive letters.
63567         (base_len): Preserve // when it is special.
63568         (last_component): New method, similar to old base_name semantics.
63569         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
63570         base_name.  Strip redundant slashes from ///.
63571
63572 2006-07-03  Jim Meyering  <jim@meyering.net>
63573
63574         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
63575         macro is used before the first cycle_check call.
63576
63577 2006-07-03  Eric Blake  <ebb9@byu.net>
63578
63579         * modules/dirname (Depends-on): Add xstrndup.
63580
63581 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63582
63583         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
63584         test cases, so that config.log is a bit easier to follow.
63585
63586 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63587
63588         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
63589         both are 64 bits, since this seems to be the tradition, and this
63590         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
63591         we ever run into a host that prefers long long to long in this
63592         case, we'll need another configure-time test.  Problem reported by
63593         Jim Meyering.
63594
63595 2006-07-02  Eric Blake  <ebb9@byu.net>
63596
63597         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
63598
63599 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63600
63601         * modules/inttypes (Depends-on): No longer depends on stdint.
63602         * modules/stdint (Description): Say more about assumptions.
63603         Say that the fast types might differ.  Say macros are used.
63604         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
63605         (Makefile.am): Revise list of substituted symbols to match
63606         new stdint.m4.
63607         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
63608         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
63609         * tests/test-stdint.c (verify_same_types)
63610         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
63611         the code conforms to C99/C89.
63612         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
63613         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
63614
63615 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63616
63617         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
63618         but fix a bug, by requiring at least 64 bits.
63619         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63620         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
63621         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
63622         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
63623
63624         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
63625         changes.  Make 2.59 a prerequisite.  Check and substitute for
63626         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
63627         inttypes.h.  Do not use special include files; just use the
63628         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
63629         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
63630         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
63631         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
63632         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
63633         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
63634         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
63635         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
63636         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
63637         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
63638         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
63639         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
63640         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
63641         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
63642         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
63643         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
63644         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
63645         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
63646         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
63647         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
63648         WINT_MAX.  Check for C99 conformance more strictly, by detecting
63649         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
63650         not check for things that C99 does not require, e.g., int8_t.  If
63651         a test isn't needed unless <stdint.h> isn't working, and is
63652         unlikely to be needed for any other reason, then don't do it
63653         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
63654         size_t, since we assume C89 freestanding at least.  Do not check
63655         for sig_atomic_t, wchar_t, or wint_t, since the code now does
63656         the right thing even if the types are not defined.  Instead use:
63657         (gl_STDINT_TYPE_PROPERTIES): New macro.
63658         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
63659         testing whether <sys/types.h> clashes, as Autoconf does this for
63660         us now.  All uses removed.
63661         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
63662         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
63663         (gl_CHECK_TYPE_SAME):
63664         Remove; no longer needed.
63665         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
63666         exists, since we'll return 0 anyway in that case.
63667         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
63668
63669 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63670
63671         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
63672         possible collision with system files.
63673         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
63674         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
63675         WCHAR_MIN and WCHAR_MAX in this case.
63676         (<stddef.h>): Do not include; no longer needed.
63677         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
63678         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
63679         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
63680         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
63681         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
63682         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
63683         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
63684         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
63685         !defined(__c99))]: Include in this case too, since it's harmless
63686         now.
63687         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
63688         dangerous to do so.
63689         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
63690         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
63691         (_STDINT_MIN, _STDINT_MAX): New macros.
63692         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
63693         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
63694         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
63695         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
63696         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
63697         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
63698         macros, not typedefs; this simplifies things quite a bit.
63699         Use long int for all types narrower than int64_t.
63700         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
63701         Define in terms of long long int or int64_t or long int,
63702         not int64_t or int32_t.  This saves some compile-time testing.
63703         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
63704         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
63705         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
63706         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
63707         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
63708         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
63709         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
63710         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
63711         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
63712         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
63713         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
63714         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
63715         undef any previous version and define our own version, for
63716         simplicity and consistency with the new macros for types.
63717         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
63718         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
63719         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
63720         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
63721         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
63722         @WINT_T_SUFFIX@ to keep things simple here.
63723         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
63724         Simplify by assuming typical 8/16/32/64 host, since we're
63725         already doing that elsewhere anyway.
63726         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
63727         and assume long long int is 64 bits if available.  This
63728         speeds up 'configure'.
63729
63730 2006-07-01  Eric Blake  <ebb9@byu.net>
63731
63732         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
63733         Reported by Andreas Buening.
63734
63735 2006-07-01  Eric Blake  <ebb9@byu.net>
63736
63737         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
63738
63739 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63740
63741         * lib/getaddrinfo.c: fixed typo
63742
63743 2006-06-29  Jim Meyering  <jim@meyering.net>
63744
63745         * modules/strftime (Maintainer): Add my name, since with the
63746         FPRINTFTIME changes strftime.c has forked from glibc.
63747
63748 2006-06-29  Eric Blake  <ebb9@byu.net>
63749
63750         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
63751
63752 2006-06-29  Eric Blake  <ebb9@byu.net>
63753
63754         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
63755
63756 2006-06-29  Eric Blake  <ebb9@byu.net>
63757
63758         * lib/stat_.h: New file.
63759
63760 2006-06-29  Eric Blake  <ebb9@byu.net>
63761
63762         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
63763         unused static function.
63764
63765 2006-06-29  Eric Blake  <ebb9@byu.net>
63766
63767         * doc/functions.texi (Function Portability): Document missing lstat
63768         on mingw.
63769
63770 2006-06-29  Eric Blake  <ebb9@byu.net>
63771
63772         * MODULES.html.sh: Add sys_stat.
63773         * modules/sys_stat: New module.
63774         * modules/mkstemp (Depends-on): Add sys_stat.
63775
63776 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63777
63778         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
63779
63780 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63781
63782         * m4/c-bs-a.m4: Removed.
63783
63784 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63785
63786         * lib/strftime.c: Assume strftime() exists.
63787
63788 2006-06-29  Derek Price  <derek@ximbiot.com>
63789
63790         * modules/c-bs-a: Removed - \a is C89.
63791         * MODULES.html.sh: Remove c-bs-a.
63792
63793 2006-06-29  Bruno Haible  <bruno@clisp.org>
63794
63795         * modules/wcwidth (License): Change to LGPL.
63796
63797 2006-06-28  Simon Josefsson  <jas@extundo.com>
63798
63799         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
63800         on _WIN32.
63801
63802         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
63803         getnameinfo.
63804
63805 2006-06-28  Simon Josefsson  <jas@extundo.com>
63806
63807         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
63808
63809 2006-06-28  Simon Josefsson  <jas@extundo.com>
63810
63811         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
63812         functions there.  It will succeed on Windows XP, but on Windows
63813         2000 and (presumably) earlier, it will fail, and use the internal
63814         re-implementation.
63815         (use_win32_p): New function.
63816         (getaddrinfo): Use strtoul on servname, to support numeric ports.
63817         Support AI_NUMERICSERV to disable getservbyname.
63818         (getnameinfo): New function, only supports
63819         NI_NUMERICHOST|NI_NUMERICSERV for now.
63820
63821         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
63822         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
63823         getnameinfo.
63824
63825 2006-06-28  Eric Blake  <ebb9@byu.net>
63826
63827         * modules/wcwidth: New file.
63828         * modules/mbchar (Depends-on): Add wcwidth.
63829         * modules/mbswidth (Depends-on): Add wcwidth.
63830         * MODULES.html.sh: Add wcwidth.
63831
63832 2006-06-28  Eric Blake  <ebb9@byu.net>
63833
63834         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
63835         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
63836
63837 2006-06-28  Eric Blake  <ebb9@byu.net>
63838
63839         * lib/xvasprintf.h: Fix comments.
63840
63841 2006-06-28  Eric Blake  <ebb9@byu.net>
63842
63843         * lib/mbchar.h (wcwidth): Include wcwidth.h.
63844         * lib/mbswidth.c (wcwidth): Move from here...
63845         * lib/wcwidth.h: ...to this new file.
63846
63847 2006-06-28  Derek R. Price  <derek@ximbiot.com>
63848
63849         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
63850
63851         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
63852         it's obsolete.
63853         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
63854
63855 2006-06-28  Derek R. Price  <derek@ximbiot.com>
63856
63857         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
63858         Autoconf 2.60 says this stuff was obsolete.
63859
63860 2006-06-28  Bruno Haible  <bruno@clisp.org>
63861
63862         * modules/wcwidth (Files): Add m4/wchar_t.m4.
63863
63864 2006-06-28  Bruno Haible  <bruno@clisp.org>
63865
63866         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
63867         gt_TYPE_WCHAR_T.
63868
63869 2006-06-28  Bruno Haible  <bruno@clisp.org>
63870
63871         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
63872         declaration for wcwidth.
63873         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
63874
63875 2006-06-28  Bruno Haible  <bruno@clisp.org>
63876
63877         * lib/mkdtemp.c [MINGW]: Include <io.h>.
63878         (mkdir): Define using _mkdir.
63879
63880 2006-06-28  Bruno Haible  <bruno@clisp.org>
63881
63882         * lib/getaddrinfo.h: Fix POSIX URL.
63883         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
63884         _WIN32.
63885         (use_win32_p): Make static.
63886         (getaddrinfo): Reject service name if it is empty or does not consist
63887         solely of decimal digits, or if its value is > 65535.
63888         (getnameinfo): Remove useless casts.
63889
63890 2006-06-27  Simon Josefsson  <jas@extundo.com>
63891
63892         * modules/sys_select: New file, suggested by Bruno Haible, Paul
63893         Eggert and Martin Lambers.
63894
63895 2006-06-27  Simon Josefsson  <jas@extundo.com>
63896
63897         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
63898         Eggert and Martin Lambers.
63899
63900 2006-06-27  Bruno Haible  <bruno@clisp.org>
63901
63902         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
63903         result to 0, not to empty.
63904         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
63905
63906 2006-06-27  Bruno Haible  <bruno@clisp.org>
63907
63908         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
63909
63910 2006-06-26  Simon Josefsson  <jas@extundo.com>
63911
63912         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
63913         present.
63914
63915 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
63916
63917         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
63918         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
63919         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
63920
63921 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
63922
63923         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
63924
63925 2006-06-26  Bruno Haible  <bruno@clisp.org>
63926
63927         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
63928
63929 2006-06-26  Bruno Haible  <bruno@clisp.org>
63930
63931         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
63932
63933 2006-06-26  Bruno Haible  <bruno@clisp.org>
63934
63935         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
63936         SGI C compiler in pre-C99 mode.
63937         Suggested by Mark D. Baushke and Larry Jones.
63938
63939 2006-06-26  Bruno Haible  <bruno@clisp.org>
63940
63941         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
63942         WCHAR_MAX.
63943         Reported by Mark D. Baushke and Larry Jones.
63944
63945 2006-06-26  Bruno Haible  <bruno@clisp.org>
63946
63947         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
63948         in pre-C99 mode.
63949         Suggested by Mark D. Baushke and Larry Jones.
63950
63951 2006-06-23  Simon Josefsson  <jas@extundo.com>
63952             Bruno Haible  <bruno@clisp.org>
63953
63954         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
63955         Emit mostlyclean-local rule.
63956         (func_emit_tests_Makefile_am): Likewise.
63957         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
63958
63959 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
63960
63961         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
63962
63963 2006-06-23  Bruno Haible  <bruno@clisp.org>
63964
63965         * tests/test-stdint.c: Update to match ISO C 99 Technical
63966         Corrigendum 1.
63967
63968 2006-06-23  Bruno Haible  <bruno@clisp.org>
63969
63970         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
63971
63972 2006-06-23  Bruno Haible  <bruno@clisp.org>
63973
63974         * lib/stdint_.h: Treat IRIX like OpenBSD.
63975
63976 2006-06-23  Bruno Haible  <bruno@clisp.org>
63977
63978         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
63979         ISO C 99 Technical Corrigendum 1.
63980
63981 2006-06-22  Simon Josefsson  <jas@extundo.com>
63982
63983         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
63984         MinGW.
63985
63986 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63987
63988         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
63989         needed.  Some compiler complained about some of them.  Problem reported
63990         by Larry Jones in
63991         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
63992
63993 2006-06-21  Simon Josefsson  <jas@extundo.com>
63994
63995         * tests/test-getaddrinfo.c: New file.
63996
63997         * modules/getaddrinfo-tests: New file.
63998
63999         * MODULES.html.sh: Add inet_pton.
64000
64001         * modules/inet_pton: New file.
64002
64003 2006-06-21  Simon Josefsson  <jas@extundo.com>
64004
64005         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
64006         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
64007         of using the (limited) gnulib implementation on Windows XP.
64008
64009         * m4/inet_pton.m4: New file.
64010
64011 2006-06-21  Simon Josefsson  <jas@extundo.com>
64012
64013         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
64014         variable.
64015
64016         * lib/socket_.h: Don't define WINVER.
64017
64018         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
64019         slightly modified to work in gnulib.
64020
64021 2006-06-21  Simon Josefsson  <jas@extundo.com>
64022
64023         * doc/gnulib.texi (Windows sockets): Add.
64024
64025 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64026
64027         * lib/read-file.c (fread_file): Start with buffer allocation of
64028         0 bytes rather than 1 byte; this simplifies the code.
64029         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
64030         code to free buffer and save/restore errno.
64031         (internal_read_file): Remove unused local.
64032
64033 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64034
64035         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
64036         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
64037         Problem reported by Denis Excoffier in
64038         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
64039
64040 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64041
64042         * modules/sys_socket, modules/socklen: Include sys/types since
64043         FreeBSD 4.x's sys/socket.h needs it.
64044
64045 2006-06-19  Simon Josefsson  <jas@extundo.com>
64046
64047         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
64048
64049 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
64050
64051         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
64052
64053 2006-06-19  Bruno Haible  <bruno@clisp.org>
64054
64055         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
64056         and FULL_PATH_INTTYPES_H in angle brackets.
64057         Reported by Mark D. Baushke <mdb@gnu.org>.
64058
64059 2006-06-17  Eric Blake  <ebb9@byu.net>
64060
64061         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
64062         errno.
64063
64064 2006-06-17  Bruno Haible  <bruno@clisp.org>
64065
64066         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
64067         <sys/inttypes.h>.
64068
64069 2006-06-17  Bruno Haible  <bruno@clisp.org>
64070
64071         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
64072         whether errno is declared. Assume <errno.h> declares errno.
64073
64074 2006-06-17  Bruno Haible  <bruno@clisp.org>
64075
64076         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
64077
64078 2006-06-17  Bruno Haible  <bruno@clisp.org>
64079
64080         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
64081         problem on Solaris 2.5.1.
64082
64083 2006-06-16  Eric Blake  <ebb9@byu.net>
64084
64085         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
64086         * lib/unicodeio.c [!defined errno]: Likewise.
64087         * lib/strtol.c [!defined errno]: Likewise.
64088         * lib/strtod.c [!defined errno]: Likewise.
64089
64090 2006-06-15  Eric Blake  <ebb9@byu.net>
64091
64092         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
64093
64094 2006-06-15  Eric Blake  <ebb9@byu.net>
64095
64096         * config/srclist.txt (ssize_t.m4): Lose sync.
64097
64098 2006-06-15  Bruno Haible  <bruno@clisp.org>
64099
64100         * modules/stdint (Files): Include m4/full-header-path.m4,
64101         m4/size_max.m4, m4/wchar_t.m4.
64102         (Makefile.am): Many more substitutions.
64103         * modules/stdint-tests: New file.
64104         * tests/test-stdint.c: New file.
64105
64106 2006-06-15  Bruno Haible  <bruno@clisp.org>
64107
64108         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
64109         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
64110         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
64111         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
64112         gl_CHECK_TYPE_SAME): New macros.
64113
64114 2006-06-15  Bruno Haible  <bruno@clisp.org>
64115
64116         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
64117
64118 2006-06-15  Bruno Haible  <bruno@clisp.org>
64119
64120         * lib/stdint_.h: Rewritten to be fully auto-configured.
64121         Fixes bug on HP-UX/IA64.
64122
64123 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
64124
64125         * lib/getdate.y (__attribute__): Don't define if already defined.
64126         Problem reported by Larry Jones.
64127         * lib/utimens.c (__attribute__): Likewise.
64128
64129 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
64130
64131         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
64132         reported by Andreas Schwab.
64133
64134 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64135             Bruno Haible  <bruno@clisp.org>
64136
64137         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
64138         check for the declaration of strnlen and a run test that exposes the
64139         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
64140         rpl_strndup.
64141
64142 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64143             Bruno Haible  <bruno@clisp.org>
64144
64145         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
64146
64147 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64148
64149         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
64150         compile test, for Tru64 4.0D.
64151
64152 2006-05-28  Karl Berry  <karl@gnu.org>
64153
64154         * config/srclist.txt (printf-args.c): lose sync.
64155
64156 2006-05-26  Martin Lambers  <marlam@marlam.de>
64157
64158         * lib/getpass.c: Updates the test for the native W32 API, and adds
64159         missing includes, thus fixing compilation warnings.
64160
64161 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64162
64163         * lib/exclude.c (exclude_fnmatch): New function.
64164         (excluded_file_name): Call exclude_fnmatch.
64165         * lib/exclude.h (excluded_file_name): New prototype
64166
64167 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
64168
64169         * lib/tempname.c (small_open, large_open): New macros.
64170         (__open, __open64) [!_LIBC]: Remove.
64171         (__gen_tempname): Use small_open and large_open instead of __open
64172         and __open64.  This fixes a portability bug on HP-UX 11.11i
64173         reported by Simon Wing-Tang in
64174         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
64175
64176 2006-05-24  Bruno Haible  <bruno@clisp.org>
64177
64178         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
64179         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
64180         Reported by Thorsten Maerz <torte@netztorte.de> via
64181         Aaron Stone <aaron@serendipity.cx>.
64182
64183 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64184
64185         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
64186         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
64187         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
64188         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
64189         not really conditional on the cache.
64190         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
64191
64192 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64193
64194         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
64195         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
64196         (my_usleep): Don't mishandle maximum value.
64197
64198 2006-05-19  Jim Meyering  <jim@meyering.net>
64199
64200         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
64201
64202 2006-05-17  Bruno Haible  <bruno@clisp.org>
64203
64204         Cygwin portability.
64205         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
64206
64207 2006-05-17  Bruno Haible  <bruno@clisp.org>
64208
64209         * lib/stdint_.h: Fix recognition of Cygwin.
64210
64211 2006-05-15  Bruno Haible  <bruno@clisp.org>
64212
64213         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
64214         on libtool patch by Ralf Wildenhues.
64215
64216 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64217
64218         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
64219         test for C99 conformance; (bool) 0.5 is an integer constant
64220         expression, but (bool) -0.5 is not.  Problem reported by Fedor
64221         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
64222
64223 2006-05-11  Simon Josefsson  <jas@extundo.com>
64224
64225         * m4/xvasprintf.m4: Fix obvious typo.
64226
64227 2006-05-11  Jim Meyering  <jim@meyering.net>
64228
64229         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
64230         James Lemley.
64231
64232 2006-05-10  Simon Josefsson  <jas@extundo.com>
64233
64234         * lib/md4.c: Typo fix, update copyright years.
64235         (K1, K2): Don't use L because it turn computations into 64-bit on
64236         64-bit platforms.
64237
64238 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
64239
64240         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
64241         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
64242         unwanted sign propagation, e.g., on hosts with 64-bit int.
64243         There still are some problems with reeelly weird theoretical hosts
64244         (e.g., 33-bit int) but it's not worth worrying about now.
64245         * lib/sha1.c (rol): Likewise.
64246         (K1, K2, K3, K4): Remove unnecessary L suffix.
64247
64248 2006-05-10  Bruno Haible  <bruno@clisp.org>
64249
64250         * lib/des.c: Cast to avoid warnings.
64251
64252 2006-05-09  Bruno Haible  <bruno@clisp.org>
64253
64254         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
64255         (Depends-on): Depend also on xsize, stdarg.
64256         (configure.ac): Add gl_XVASPRINTF.
64257
64258 2006-05-09  Bruno Haible  <bruno@clisp.org>
64259
64260         * m4/xvasprintf.m4: New file.
64261
64262 2006-05-09  Bruno Haible  <bruno@clisp.org>
64263
64264         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
64265         (EOVERFLOW): Define fallback value.
64266         (xstrcat): New function.
64267         (xvasprintf): Recognize the special case of a string concatenation.
64268
64269 2006-05-08  Eric Blake  <ebb9@byu.net>
64270
64271         * gnulib-tool (func_version): Base copyright year on CVS date.
64272         (func_emit_copyright_notice): New function.
64273         (func_emit_lib_Makefile_am): Use it.
64274         (func_emit_tests_Makefile_am): Likewise.
64275         (func_import): Likewise.
64276
64277 2006-05-08  Bruno Haible  <bruno@clisp.org>
64278
64279         * modules/stdarg: New file.
64280         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
64281
64282 2006-05-08  Bruno Haible  <bruno@clisp.org>
64283
64284         * m4/stdarg.m4: New file, from GNU gettext.
64285
64286 2006-05-08  Bruno Haible  <bruno@clisp.org>
64287
64288         * config/srclist.txt (build-aux/config.rpath): different from latest
64289         release.
64290
64291 2006-05-08  Bruno Haible  <bruno@clisp.org>
64292
64293         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
64294
64295 2006-05-05  Jim Meyering  <jim@meyering.net>
64296
64297         * m4/warning.m4: New file, derived from bison's file by the same name.
64298
64299 2006-05-03  Bruno Haible  <bruno@clisp.org>
64300
64301         * lib/stdint_.h: Shorter URL.
64302         * lib/inttypes.h: Likewise.
64303
64304 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64305
64306         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
64307
64308 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64309
64310         * lib/verify.h: Document the internals better.  Most of this change
64311         was written by Bruno Haible.
64312
64313 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64314
64315         * doc/verify.texi: New file, partly based on a proposal by
64316         Bruno Haible.
64317
64318 2006-05-02  Bruno Haible  <bruno@clisp.org>
64319
64320         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
64321         test from here...
64322         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
64323
64324 2006-04-29  Bruno Haible  <bruno@clisp.org>
64325
64326         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
64327         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
64328
64329 2006-04-29  Bruno Haible  <bruno@clisp.org>
64330
64331         * gnulib-tool: Make --update option actually work.
64332
64333 2006-04-29  Bruno Haible  <bruno@clisp.org>
64334
64335         * doc/gcd.texi: New file.
64336         * doc/gnulib.texi: Include it.
64337
64338 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
64339
64340         * lib/getdate.y (get_date): When adding relative date, start with the
64341         initial time, not with the result of the first mktime call.
64342
64343 2006-04-25  Bruno Haible  <bruno@clisp.org>
64344
64345         * gnulib-tool (func_import): Output the include directives in three
64346         blocks, sorted separately.
64347         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64348
64349 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64350
64351         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
64352         to define main with arguments, for C++.  Reported by Eric Blake.
64353         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
64354         Prefer 'int main ()' to 'int main (void)', for C++.
64355         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
64356         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
64357         for 'main', for C99 and C++.
64358
64359 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64360
64361         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
64362         Don't assume that exit status -1 is valid.
64363         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64364         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
64365         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
64366         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
64367         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
64368         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
64369         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
64370         functions can be used without declaring them, or that you can
64371         exit with status -1.
64372         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
64373
64374 2006-04-24  Karl Berry  <karl@gnu.org>
64375
64376         * config/srclist.txt (longdouble.m4): sync lost.
64377
64378 2006-04-24  Eric Blake  <ebb9@byu.net>
64379
64380         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
64381
64382 2006-04-24  Bruno Haible  <bruno@clisp.org>
64383
64384         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
64385         poll() implementation in AIX.
64386         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64387
64388 2006-04-24  Bruno Haible  <bruno@clisp.org>
64389
64390         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
64391         assigned exactly once.
64392
64393 2006-04-23  Claudio Fontana  <claudio@gnu.org>
64394             Bruno Haible  <bruno@clisp.org>
64395
64396         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
64397         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
64398         for AM_CPPFLAGS.
64399
64400 2006-04-23  Bruno Haible  <bruno@clisp.org>
64401
64402         * modules/copy-file: Depend on unistd.
64403         * modules/execute: Likewise.
64404         * modules/fatal-signal: Likewise.
64405         * modules/findprog: Likewise.
64406         * modules/mkdtemp : Likewise.
64407         * modules/pipe: Likewise.
64408         * modules/wait-process: Likewise.
64409
64410 2006-04-23  Bruno Haible  <bruno@clisp.org>
64411
64412         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
64413         condition was already detected.
64414         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64415
64416 2006-04-23  Bruno Haible  <bruno@clisp.org>
64417
64418         * lib/copy-file.c: Include <unistd.h> unconditionally.
64419         * lib/execute.c: Likewise.
64420         * lib/fatal-signal.c: Likewise.
64421         * lib/findprog.c: Likewise.
64422         * lib/mkdtemp.c: Likewise.
64423         * lib/pipe.h: Likewise.
64424         * lib/pipe.c: Likewise.
64425         * lib/wait-process.h: Likewise.
64426
64427 2006-04-23  Bruno Haible  <bruno@clisp.org>
64428
64429         * gnulib-tool (func_usage): Fix --import description. Document
64430         --update.
64431         (func_import): Create temporary file in a temporary directory, if
64432         --dry-run is specified. Silence errors from 'grep' when there are no
64433         m4 files in $m4dir.
64434         (func_create_testdir): Silence errors from 'grep' when there are no
64435         m4 files in $m4dir.
64436         Reported by Karl Berry <karl@freefriends.org>.
64437
64438 2006-04-20  Bruno Haible  <bruno@clisp.org>
64439
64440         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
64441         one argument, so that the code will be portable to Autoconf 2.60.
64442         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
64443         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
64444         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
64445
64446 2006-04-19  Derek Price  <derek@ximbiot.com>
64447             Eric Blake  <ebb9@byu.net>
64448
64449         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
64450         rather than "/full/path.h".  Update comment to match.  Shorten &
64451         generalize m4_translit call via AS_TR_CPP.
64452
64453 2006-04-19  Derek Price  <derek@ximbiot.com>
64454             Eric Blake  <ebb9@byu.net>
64455
64456         * lib/inttypes.h: Correct grammar in comment.
64457
64458 2006-04-18  Derek Price  <derek@ximbiot.com>
64459             Paul Eggert  <eggert@cs.ucla.edu>
64460
64461         * modules/inttypes: New file.
64462         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
64463
64464 2006-04-18  Derek Price  <derek@ximbiot.com>
64465             Paul Eggert  <eggert@cs.ucla.edu>
64466
64467         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
64468         New files.
64469
64470 2006-04-18  Derek Price  <derek@ximbiot.com>
64471             Paul Eggert  <eggert@cs.ucla.edu>
64472
64473         * lib/inttypes.h: New file.
64474         * lib/strtoimax.c: Assume <inttypes.h>.
64475
64476 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
64477
64478         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
64479         isn't mounted.  Problem reported by Kir Kolyshkin.
64480
64481 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64482
64483         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
64484         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
64485         Derek R. Price.
64486         * lib/regex.h (RE_DUP_MAX): Update comment to match current
64487         implementation.
64488
64489 2006-04-12  Eric Blake  <ebb9@byu.net>
64490
64491         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
64492         is now done automatically by the corresponding Autoconf macro.
64493
64494 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
64495
64496         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
64497         time_r.h.
64498
64499 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64500
64501         Merge regex changes from libc, removing some of our
64502         POSIX-conformance changes that were rejected and redoing them in a
64503         less-intrusive way.
64504
64505         * lib/regcomp.c (re_compile_internal, init_dfa):
64506         Length arg is now size_t, not Idx.  All uses changed.
64507         (peek_token): Forward decl now says internal_function.
64508         (__re_error_msgid, __re_error_msgid_idx):
64509         Now static rather than extern with attribute_hidden.
64510         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
64511         For some reason libc prefers K&R style defns for external functions.
64512         (regerror) [!defined _LIBC]: Likewise.
64513         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
64514         (seek_collating_symbol_entry, lookup_collation_sequence_value):
64515         (build_range_exp, build_collating_symbol):
64516         Use K&R-style defn.
64517         (re_compile_fastmap): Use '\0' to memset, not 0.
64518         (utf8_sb_map): Make the calculations more obvious.
64519         (init_dfa, parse_bracket_exp, build_charclass_op):
64520         Call calloc and cast result, as glibc does.
64521         (init_word_char, fetch_token, peek_token, peek_token_bracket):
64522         (build_range_exp, build_collating_symbol):
64523         Now internal functions.
64524
64525         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
64526
64527         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
64528         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
64529         Don't depend on VMS; depend on __VMS instead, for POSIX
64530         namespace cleanness.
64531         (regoff_t): Define to ssize_t, not long int.
64532
64533         Remove the REG_ macros named below.  Instead, make the old names
64534         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
64535         __USE_GNU_REGEX.
64536         (REG_BACKSLASH_ESCAPE_IN_LISTS):
64537         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
64538         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
64539         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
64540         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
64541         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
64542         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
64543         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
64544         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
64545         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
64546         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
64547         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
64548         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
64549         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
64550         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
64551         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
64552         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
64553         (REG_NREGS):
64554         Remove.  All uses replaced by the old RE_* names.
64555         (RE_BACKSLASH_ESCAPE_IN_LISTS):
64556         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
64557         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
64558         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
64559         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
64560         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
64561         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
64562         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
64563         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
64564         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
64565         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
64566         Don't bother having these macros be independent of each others'
64567         values, since they no longer exist in the POSIX name space.
64568
64569         Rename the following member names back to their old names,
64570         unless !__USE_GNU_REGEX.  All uses changed back.
64571         (buffer): Renamed from re_buffer.
64572         (allocated): Renamed from re_allocated.
64573         (used): Renamed from re_used.
64574         (syntax): Renamed from re_syntax.
64575         (fastmap): Renamed from re_fastmap.
64576         (translate): Renamed from re_translate.
64577         (can_be_null): Renamed from re_can_be_null.
64578         (regs_allocated): Renamed from re_regs_allocated.
64579         (fastmap_accurate): Renamed from re_fastmap_accurate.
64580         (no_sub): Renamed from re_no_sub.
64581         (not_bol): Renamed from re_not_bol.
64582         (not_eol): Renamed from re_not_eol.
64583         (newline_anchor): Renamed from re_newline_anchor.
64584         (num_regs): Renamed from rm_num_regs.
64585         (start): Renamed from rm_start.
64586         (end): Renamed from rm_end.
64587
64588         (free_state): Move up a bit.
64589
64590         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
64591         #define to be empty.
64592         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
64593         when that is what is intended.
64594         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
64595         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
64596         (MAX): New macro.
64597         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
64598         All uses changed back to re_malloc, etc.  It's now the caller's
64599         responsibility to check for overflow; all callers changed.
64600         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
64601         (re_x2nrealloc): Remove.
64602         (free_state): Remove decl.
64603
64604         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
64605         (re_set_registers, re_exec):
64606         Use K&R-style defn.
64607
64608         2006-01-31  Roland McGrath  <roland@redhat.com>
64609
64610         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
64611         Reported by Mike Frysinger <vapier@gentoo.org>.
64612
64613         2006-01-15  Andreas Jaeger  <aj@suse.de>
64614
64615         [BZ #1950]
64616         * lib/regex_internal.c (re_string_reconstruct): Adjust for
64617         build_wcs_upper_buffer change.
64618         (build_wcs_upper_buffer): Change return type.
64619
64620         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
64621
64622         * lib/regex_internal.h: Include <stdint.h> if available.
64623
64624         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
64625
64626         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
64627
64628         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64629
64630         * lib/regcomp.c: Adjust for changed secondary hash function.
64631
64632         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
64633
64634         * lib/regex.h: Pretty printing.
64635         Clean up namespace a bit.
64636
64637         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
64638
64639         * lib/regexec.c (update_cur_sifted_state, check_arrival,
64640         check_arrival_add_next_nodes): Avoid using uninitialized variable.
64641
64642         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64643                     Ulrich Drepper  <drepper@redhat.com>
64644
64645         [BZ #1302]
64646         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
64647         changed.
64648         (bitset_word_t): Renamed from bitset_word.  All uses changed.
64649
64650         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
64651
64652         [BZ #281]
64653         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
64654         * lib/regcomp.c: Remove unnecessary uses of
64655         unsigned RE_TRANSLATE_TYPE.
64656         * lib/regex_internal.h: Likewise.
64657         * lib/regex_internal.c: Likewise.
64658         * lib/regexec.c: Likewise.
64659         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
64660
64661         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
64662
64663         * lib/regexec.c (find_recover_state): Remove unnecessary
64664         initialization.
64665         (transit_state_bkref): Make DFA a const pointer.
64666         (get_subexp): Likewise.
64667         (check_arrival): Likewise.
64668         (update_cur_sifted_state): Likewise.
64669         (re_search_internal): Likewise.
64670         (prune_impossible_nodes): Likewise.
64671         (acquire_init_state_context): Likewise.
64672         (proceed_next_node): Likewise.
64673         (set_regs): Likewise.
64674         (free_fail_stack_return): Likewise.
64675         (check_arrival_expand_ecl): Mark DFA parameter as const.
64676         (check_arrival_expand_ecl_sub): Likewise.
64677         (check_subexp_limits): Likewise.
64678         (sub_epsilon_src_nodes):  Likewise.
64679         (add_epsilon_src_nodes):  Likewise.
64680         (merge_state_array): Likewise.
64681         (update_regs): Likewise.
64682         (build_trtable): Likewise.
64683         (sift_states_backward): Mark MCTX parameter as const.
64684         (build_sifted_states): Likewise.
64685         (update_cur_sifted_state): Likewise.
64686         (sift_states_mkref): Likewise.
64687         (check_arrival_expand_ecl): Mark eclosure as const.
64688         (check_dst_limits_calc_pos_1): Likewise.
64689         * lib/regex_internal.h (re_match_context_t): Make dfa a const
64690         pointer.
64691
64692         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
64693
64694         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
64695         (transit_state_sb): Likewise.
64696         (transit_state_mb): Likewise.
64697         (sift_states_iter_mb): Likewise.
64698         (check_arrival_add_next_nodes): Likewise.
64699         (check_node_accept_bytes): Change first parameter to pointer-to-const.
64700         [_LIBC] (re_search_2_stub): Use mempcpy.
64701
64702         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
64703         mbrtowc for very simple UTF-8 case.
64704
64705         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
64706         a pointer-to-const.
64707         (re_acquire_state_context): Likewise.
64708         * lib/regex_internal.h: Adjust prototypes.
64709
64710         * lib/regex.c: Prevent using C++ compilers.
64711
64712         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
64713         (re_acquire_state_context): Likewise.
64714
64715 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64716
64717         * modules/regex (Depends-on): Add ssize_t.
64718
64719 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64720
64721         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
64722         translation table.
64723
64724 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64725
64726         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
64727
64728 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
64729             Bruno Haible  <bruno@clisp.org>
64730
64731         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
64732         <sys/types.h> and <inttypes.h>.
64733
64734 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64735
64736         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
64737         `__error_t_defined', so argp.h will not typedef the former.
64738
64739 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
64740
64741         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
64742         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
64743         glibc names.  Even if glibc is changed to conform to POSIX, the
64744         traditional names will be available anyway, since regex depends on
64745         the extensions module.  Also, fix a longstanding typo in the
64746         implementation of Spencer ERE test #75 from grep 2.3.  Problems
64747         reported by Emanuele Giaquinta.  Also, change sense of cached
64748         variable, so that the message makes sense.
64749
64750 2006-03-24  Simon Josefsson  <jas@extundo.com>
64751
64752         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
64753         including some doc fixes.
64754         (base64_encode_alloc): Fix +1 bug on allocation failures.
64755
64756 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64757
64758         * lib/base64.c (base64_encode): Do not read past end of array with
64759         unsanitized input on systems with CHAR_BIT > 8.
64760
64761 2006-03-24  Eric Blake  <ebb9@byu.net>
64762
64763         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
64764
64765 2006-03-22  Karl Berry  <karl@gnu.org>
64766
64767         * config/srclist.txt (*setenv.[ch]): get from coreutils.
64768         * config/srclistvars.sh (COREUTILS): new var.
64769
64770 2006-03-17  Jim Meyering  <jim@meyering.net>
64771
64772         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
64773         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
64774
64775 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
64776
64777         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
64778         no longer needs it.  Instead, check that regoff_t is as least
64779         as wide as ptrdiff_t.
64780
64781         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
64782         so that our regex.h stays compatible with the installed regex.
64783         This is helpful for installers who configure --without-included-regex.
64784         Problem reported by Emanuele Giaquinta.
64785
64786 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
64787
64788         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
64789         Typedef to long int, not to off_, as POSIX will likely change
64790         in that direction.
64791
64792 2006-03-15  Eric Blake  <ebb9@byu.net>
64793
64794         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
64795
64796 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
64797
64798         * lib/argp-help.c (validate_uparams): Fix typo
64799         * lib/argp-parse.c (argp_default_options): Consistently begin help
64800         messages with a lowercase letter.
64801
64802 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
64803
64804         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
64805         overrun buffers and shouldn't be used (much as gets shouldn't be
64806         used).
64807         * lib/time_r.c (asctime_r, ctime_r): Likewise.
64808
64809 2006-03-08  Simon Josefsson  <jas@extundo.com>
64810
64811         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
64812         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64813
64814 2006-03-08  Simon Josefsson  <jas@extundo.com>
64815
64816         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
64817         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64818
64819 2006-03-08  Simon Josefsson  <jas@extundo.com>
64820
64821         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
64822         signal that configure disabled the device.
64823
64824 2006-03-08  Simon Josefsson  <jas@extundo.com>
64825
64826         * build-aux/maint.mk: Fix refresh-po, to handle no translated
64827         languages.
64828
64829 2006-03-07  Simon Josefsson  <jas@extundo.com>
64830
64831         * modules/getopt (Depends-on): Add unistd.
64832
64833         * modules/unistd: New file.
64834
64835 2006-03-07  Simon Josefsson  <jas@extundo.com>
64836
64837         * modules/gc-random: New file.
64838
64839 2006-03-07  Simon Josefsson  <jas@extundo.com>
64840
64841         * m4/unistd_h.m4: New file.
64842
64843 2006-03-07  Simon Josefsson  <jas@extundo.com>
64844
64845         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
64846         test to be side-effect free by storing the result in the cache
64847         variable gl_cv_lib_readline, and moving the assignment of
64848         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
64849         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64850
64851 2006-03-07  Simon Josefsson  <jas@extundo.com>
64852
64853         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
64854         error on missing devices (the functions will return an error).
64855
64856         * m4/gc.m4: Move random stuff to gc-random.m4
64857
64858 2006-03-07  Simon Josefsson  <jas@extundo.com>
64859
64860         * lib/unistd_.h: New file.
64861
64862 2006-03-07  Simon Josefsson  <jas@extundo.com>
64863
64864         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
64865
64866 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64867
64868         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
64869         Problem reported by Juan Manuel Guerrero.
64870
64871 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64872
64873         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
64874         the unistd module.
64875         * lib/getlogin_r.c: Likewise.
64876         * lib/getlogin_r.h: Likewise.
64877         * lib/glob.c: Likewise.
64878         * lib/pagealign_alloc.c: Likewise.
64879         * lib/unistd_.h: Remove; no longer needed.
64880
64881 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64882
64883         * MODULES.html.sh (Support for systems lacking POSIX:2001):
64884         Add unistd.
64885         * modules/c-stack (Depends-on): Add unistd.
64886         * modules/getlogin_r: Likewise.
64887         * modules/glob: Likewise.
64888         * modules/pagealign_alloc: Likewise.
64889         * modules/unistd (Files): Remove lib/unistd_.h.
64890         (EXTRA_DIST): Remove.
64891         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
64892         need unistd_.h.
64893         (MOSTLYCLEANFILES): Remove unistd.h-t.
64894
64895 2006-03-03  Simon Josefsson  <jas@extundo.com>
64896
64897         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
64898
64899 2006-03-03  Simon Josefsson  <jas@extundo.com>
64900
64901         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
64902         libidn and bison.
64903
64904 2006-03-03  Simon Josefsson  <jas@extundo.com>
64905
64906         * build-aux/maint.mk: Add indent target.
64907
64908 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
64909
64910         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
64911         our replacement poll.h in any case, to avoid a differing
64912         declaration from a system header.  Seen on AIX.
64913
64914 2006-03-01  Simon Josefsson  <jas@extundo.com>
64915
64916         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
64917         <kasal@ucw.cz>.
64918
64919 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64920
64921         * modules/gettime (Depends-on): Add extensions module.
64922         * modules/nanosleep (Depends-on): Likewise.
64923         * modules/settime (Depends-on): Likewise.
64924
64925 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64926
64927         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
64928         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
64929         pedantically.
64930         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64931         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
64932
64933         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
64934         not "==".  Reported by Ralf Wildenhues.
64935
64936 2006-03-01  Karl Berry  <karl@gnu.org>
64937
64938         * doc/Copyright/request-*: new files, synced from gnuorg.
64939
64940 2006-03-01  Karl Berry  <karl@gnu.org>
64941
64942         * config/srclist.txt (Copyright/*): new entries.
64943
64944 2006-02-28  Simon Josefsson  <jas@extundo.com>
64945
64946         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
64947
64948 2006-02-27  Simon Josefsson  <jas@extundo.com>
64949
64950         * lib/base64.h: Indent #define's.  From Jim Meyering
64951         <jim@meyering.net>.
64952
64953 2006-02-27  Jim Meyering  <jim@meyering.net>
64954
64955         Revert the change of 2006-02-24, so these files can continue
64956         to be sync'd from gettext.
64957         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
64958         of `config.h'.
64959
64960 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
64961
64962         * modules/intprops: New file.
64963         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
64964         Add intprops.
64965         * modules/getloadavg (Files): Remove lib/intprops.h.
64966         (Depends-on): Add intprops.
64967         * modules/human: Likewise.
64968         * modules/inttostr: Likewise.
64969         * modules/openat: Likewise.
64970         * modules/sig2str: Likewise.
64971         * modules/userspec: Likewise.
64972         * modules/utimecmp: Likewise.
64973         * modules/xnanosleep: Likewise.
64974         * modules/xstrtol: Likewise.
64975
64976 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
64977
64978         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
64979         * modules/lock-tests (TESTS): Use $(EXEEXT).
64980         * modules/tls-tests: Likewise.
64981         * modules/argp-tests: Likewise.
64982         (check_PROGRAMS): New var, replacing...
64983         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
64984
64985 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64986
64987         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
64988         `config.h'.
64989
64990 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
64991
64992         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
64993
64994 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64995
64996         Sync from coreutils.
64997         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
64998         gl_CHDIR_SAFER.
64999
65000 2006-02-22  Jim Meyering  <jim@meyering.net>
65001
65002         Sync from coreutils.
65003         * m4/chdir-safer.m4: New file.
65004
65005 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
65006
65007         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
65008         AT_FDCWD exceeds INT_MAX.
65009         * lib/openat.h (AT_FDCWD): Likewise.
65010
65011 2006-02-17  Eric Blake  <address@hidden>
65012
65013         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
65014
65015 2006-02-16  Simon Josefsson  <jas@extundo.com>
65016
65017         * modules/getaddrinfo (Depends-on): Add sys_socket.
65018
65019 2006-02-15  Simon Josefsson  <jas@extundo.com>
65020
65021         * build-aux/maint.mk: Add dsyntax-check rule.
65022
65023 2006-02-15  Eric Blake  <ebb9@byu.net>
65024
65025         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
65026         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
65027         'present but cannot compile' warnings on cygwin.
65028         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
65029         use ws2tcpip.h if sys/socket.h works.
65030         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
65031         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
65032
65033 2006-02-14  Simon Josefsson  <jas@extundo.com>
65034
65035         * modules/maintainer-makefile (Files): Rename.
65036
65037         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
65038         and (the local) Makefile.cfg to maint-cfg.mk.
65039
65040         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
65041         to the latter.
65042
65043         * modules/maintainer-makefile: New module.
65044
65045         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
65046         severaly stripped to make it possible to build it up from scratch
65047         with reliable tests.
65048
65049         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
65050         fixes to permit overriding the default actions when configure and
65051         makefile are not available.
65052
65053 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65054
65055         Sync from coreutils.
65056         * modules/lstat (Depends-on): Don't depend on xalloc.
65057         (License): Change from GPL to LGPL, since this is now simply a
65058         replacement for a libc function.
65059
65060 2006-02-14  Jim Meyering  <jim@meyering.net>
65061
65062         Sync from coreutils.
65063
65064         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
65065         failure on deficient systems, and simplify gnulib lgpl dependencies.
65066         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
65067         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
65068
65069         * lib/xalloc-die.c: Remove unused definition of N_.
65070
65071 2006-02-14  Jim Meyering  <jim@meyering.net>
65072
65073         Sync from coreutils.
65074         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
65075         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
65076         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
65077         double-quote uses of that variable, to accommodate the rare case in
65078         which getmntent is available in none of the libraries checked.  This
65079         happens at least on FreeBSD 5.0.
65080
65081 2006-02-13  Simon Josefsson  <jas@extundo.com>
65082
65083         * gnulib-tool (Usage): Fix --import, from
65084         karl@freefriends.org (Karl Berry).
65085
65086 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
65087
65088         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
65089
65090 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
65091
65092         * lib/argp-namefrob.h: Restore changes accidentally lost during the
65093         "autoupdate" on 2005-12-12.
65094
65095 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65096
65097         * modules/closeout (Depends-on): Remove atexit.
65098
65099 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65100
65101         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
65102         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
65103
65104 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65105
65106         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
65107         __EXTENSIONS__ if this causes compilation to fail.  Problem
65108         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
65109         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
65110
65111 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
65112
65113         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
65114         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
65115         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
65116         All uses changed.
65117
65118 2006-01-26  Simon Josefsson  <jas@extundo.com>
65119
65120         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
65121         prototype is visible on mingw32.
65122
65123         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
65124         for mingw32.
65125
65126         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
65127         mingw32).
65128
65129 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65130
65131         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
65132         attempt to open for write; this always fails, at least on POSIX
65133         hosts.  This reinstates the 2006-01-09 change, which was
65134         inadvertently removed.
65135
65136 2006-01-26  Bruno Haible  <bruno@clisp.org>
65137
65138         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
65139         Reported by Paul Eggert.
65140
65141 2006-01-26  Bruno Haible  <bruno@clisp.org>
65142             Paul Eggert  <eggert@cs.ucla.edu>
65143
65144         * lib/stdbool_.h (_Bool)
65145         [(! (defined __cplusplus || defined __BEOS__)
65146           && !defined __GNUC__
65147           && !(defined __HP_cc || defined __xlc__
65148                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
65149                || defined __sgi))]:
65150         #define to signed char in these cases too; this simplifies
65151         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
65152         etc., separately) and makes it more conservative.
65153
65154 2006-01-25  Simon Josefsson  <jas@extundo.com>
65155
65156         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
65157         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
65158         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
65159
65160 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65161
65162         * lib/argp-namefrob.h: Bugfix. Remove stray #
65163
65164 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
65165
65166         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
65167         so that we test the test.
65168         Check for yet another HP-UX cc bug involving *bool |= bool.
65169
65170 2006-01-25  Karl Berry  <karl@gnu.org>
65171
65172         * config/srclist.txt (vasnprintf.c): sync lost.
65173
65174 2006-01-25  Jim Meyering  <jim@meyering.net>
65175
65176         Sync from the stable (b5) branch of coreutils:
65177
65178         * lib/fts.c (fts_children): Don't let close() clobber errno from
65179         failed fchdir().
65180
65181         * lib/fts.c (fts_stat): When following a symlink-to-directory,
65182         don't necessarily interpret stat-fails+lstat-succeeds as indicating
65183         a dangling symlink.  That can also happen at least for ELOOP.
65184         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
65185         FYI, this bug predates the inclusion of fts.c in coreutils.
65186
65187         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
65188         in their own block, so pre-c99 compilers don't object.
65189
65190         Avoid the double-free (first in fts_read, second in fts_close) that
65191         would occur when an `active' directory is made inaccessible (e.g.,
65192         via chmod a-x) during a traversal.
65193         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65194         before returning.  Reproduce this failure by
65195         mkdir -p a/b; cd a; chmod a-x . b
65196         Reported by Stavros Passas.
65197
65198 2006-01-25  Jim Meyering  <jim@meyering.net>
65199
65200         * lib/fileblocks.c: Remove more useless parentheses.
65201         * lib/readutmp.h: Likewise.
65202
65203 2006-01-25  Bruno Haible  <bruno@clisp.org>
65204
65205         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
65206         warnings.
65207         Reported by Paul Eggert.
65208
65209 2006-01-25  Bruno Haible  <bruno@clisp.org>
65210
65211         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
65212         rid of a trap command. For Solaris sh.
65213         Reported by Mark D. Baushke <mdb@gnu.org>.
65214
65215 2006-01-24  Simon Josefsson  <jas@extundo.com>
65216
65217         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
65218         Bruno.
65219
65220 2006-01-24  Karl Berry  <karl@gnu.org>
65221
65222         * config/srclist.txt (argp-namefrob.h): sync lost.
65223
65224 2006-01-24  Jim Meyering  <jim@meyering.net>
65225
65226         * modules/openat (Files): Add lib/intprops.h.
65227         From Mark D. Baushke.
65228
65229 2006-01-24  Jim Meyering  <jim@meyering.net>
65230
65231         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
65232         Reported by Mark D. Baushke.
65233
65234 2006-01-24  Jim Meyering  <jim@meyering.net>
65235
65236         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
65237
65238 2006-01-24  Bruno Haible  <bruno@clisp.org>
65239
65240         * modules/strnlen (Maintainer): Change from glibc to all.
65241
65242 2006-01-24  Bruno Haible  <bruno@clisp.org>
65243
65244         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
65245         Patch by Paul Eggert.
65246
65247 2006-01-24  Bruno Haible  <bruno@clisp.org>
65248
65249         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
65250         already has it.
65251         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
65252         2005-11-26.
65253
65254         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
65255         'signed char' to avoid problems with the built-in _Bool type.
65256         Reported by Paul Eggert on 2005-11-26.
65257
65258 2006-01-24  Bruno Haible  <bruno@clisp.org>
65259
65260         * gnulib-tool (func_import): Avoid constructing complicated sed
65261         expressions inside backquote.
65262         Report and solution by Mark D. Baushke <mdb@gnu.org>.
65263
65264 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
65265
65266         These changes imported from libc.
65267         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
65268         test and two separate function calls.
65269         * lib/strndup.c (__strndup): Add libc_hidden_def.
65270
65271 2006-01-23  Simon Josefsson  <jas@extundo.com>
65272
65273         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
65274         Remove the test_*_SOURCES variable: automake infers it by default.
65275         * modules/tls-tests: Likewise.
65276
65277 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65278
65279         Work around porting bugs reported by Dieter in
65280         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
65281         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
65282         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
65283         Include "getopt.h" first, to check interface.
65284         (getenv): Declare only if defined HAVE_DECL_GETENV &&
65285         !HAVE_DECL_GETENV.
65286         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
65287         (__strndup): Revert to K&R-style function dfns, the glibc style.
65288         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
65289         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
65290         Include strnlen.h first, to get prototype properly.
65291         (strnlen): Renamed from __strnlen.
65292         Remove weak alias.
65293
65294 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65295
65296         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
65297
65298 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65299
65300         * config/srclist.txt: Adjust to reflect glibc reorganization.
65301         This affects only comments.
65302
65303 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65304
65305          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
65306          Reported by Bruce Korb <bkorb@gnu.org>.
65307
65308 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65309
65310         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
65311         to pacify gcc -Wswitch-default.
65312
65313 2006-01-22  Bruno Haible  <bruno@clisp.org>
65314
65315         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
65316         temporary buffer for sprintf, take into account the precision also
65317         for 'd', 'i', 'u', 'o', 'x', 'X'.
65318
65319 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65320
65321         * modules/argp-tests: New module
65322         * tests/test-argp.c: New file
65323         * tests/test-argp-2.sh: New file
65324
65325 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65326
65327         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
65328         (__argp_base_name): Removed
65329         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
65330         typo.
65331         (__argp_base_name): Provide macro definition or extern declaration
65332         depending on the configuration
65333
65334 2006-01-20  Simon Josefsson  <jas@extundo.com>
65335
65336         * modules/inet_ntop (Depends-on): Depend on sys_socket.
65337
65338 2006-01-20  Simon Josefsson  <jas@extundo.com>
65339
65340         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
65341
65342 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65343
65344         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
65345         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
65346         Suggested by Bruno Haible.
65347
65348 2006-01-20  Karl Berry  <karl@gnu.org>
65349
65350         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
65351         until changes propagate, I guess.
65352
65353 2006-01-19  Simon Josefsson  <jas@extundo.com>
65354
65355         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
65356
65357 2006-01-19  Simon Josefsson  <jas@extundo.com>
65358
65359         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
65360
65361 2006-01-19  Simon Josefsson  <jas@extundo.com>
65362
65363         * gnulib-tool: Set check_PROGRAMS.
65364
65365         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65366         modules/des-tests, modules/gc-arcfour-tests,
65367         modules/gc-arctwo-tests, modules/gc-des-tests,
65368         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65369         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65370         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65371         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65372         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65373         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
65374         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
65375         test_*_SOURCES.
65376
65377 2006-01-18  Simon Josefsson  <jas@extundo.com>
65378
65379         * modules/socklen (Depends-on): Depend on sys_socket.
65380
65381 2006-01-18  Simon Josefsson  <jas@extundo.com>
65382
65383         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65384         modules/des-tests, modules/gc-arcfour-tests,
65385         modules/gc-arctwo-tests, modules/gc-des-tests,
65386         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65387         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65388         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65389         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65390         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65391         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
65392         $(EXEEXT) to automake TESTS variable, for mingw32.
65393
65394 2006-01-17  Simon Josefsson  <jas@extundo.com>
65395
65396         * modules/socklen (Include): Need sys/socket.h.
65397
65398 2006-01-17  Bruno Haible  <bruno@clisp.org>
65399
65400         * modules/ssize_t (Include): Add <sys/types.h>.
65401
65402 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
65403
65404         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
65405         it's not portable and it doesn't work with cross-compiles.
65406         Problem reported by Bruno Haible.  Fix missing-$ typo in
65407         'test "gl_cv_ignore_unused_libraries" ...' that prevented
65408         -zignore from being used with Sun's C compiler.
65409
65410 2006-01-12  Simon Josefsson  <jas@extundo.com>
65411
65412         * lib/base64.c: Fix warning, reported by Bruno Haible
65413         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
65414
65415 2006-01-12  Bruno Haible  <bruno@clisp.org>
65416
65417         * modules/ldd: New file.
65418         * build-aux/ldd.sh.in: New file.
65419         * MODULES.html.sh (Support for building libraries and executables): Add
65420         ldd.
65421
65422 2006-01-12  Bruno Haible  <bruno@clisp.org>
65423
65424         * m4/ldd.m4: New file.
65425
65426 2006-01-12  Bruno Haible  <bruno@clisp.org>
65427
65428         * gnulib-tool (func_import, func_create_testdir): Don't go into an
65429         endless loop while replacing $auxdir with build-aux.
65430
65431 2006-01-11  Simon Josefsson  <jas@extundo.com>
65432
65433         * lib/stdint_.h (SIZE_MAX): Add missing (.
65434
65435 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
65436
65437         Sync from coreutils.
65438         * lib/md5.c: Fix commentary typos.
65439         (alignof, UNALIGNED_P): No need for a GCC-specific version.
65440         * lib/md5.h (__attribute__): Remove; unused.
65441         * lib/sha1.c: Fix commentary to match md5 better.
65442         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
65443         so that we don't need to worry about alignment.  All uses changed.
65444         This merges the 2005-10-28 md5 change into sha1.
65445
65446 2006-01-11  Jim Meyering  <jim@meyering.net>
65447
65448         Sync from coreutils.
65449         * lib/md5.c (OP): Fix spacing.
65450
65451 2006-01-11  Bruno Haible  <bruno@clisp.org>
65452
65453         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65454         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
65455         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
65456
65457 2006-01-11  Bruno Haible  <bruno@clisp.org>
65458
65459         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65460         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
65461         the "early" section as well.
65462
65463 2006-01-11  Bruno Haible  <bruno@clisp.org>
65464
65465         Avoid "ar: no archive members specified" error on MacOS X.
65466         * gnulib-tool (func_modules_add_dummy): New function.
65467         (func_import, func_create_testdir): Invoke it.
65468
65469 2006-01-11  Bruno Haible  <bruno@clisp.org>
65470
65471         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
65472         with $auxdir in AC_CONFIG_FILES statements.
65473
65474 2006-01-11  Bruno Haible  <bruno@clisp.org>
65475
65476         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65477         Initialize also noinst_HEADERS to empty.
65478
65479 2006-01-11  Bruno Haible  <bruno@clisp.org>
65480
65481         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
65482         variables.
65483         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
65484         autoreconf.
65485
65486 2006-01-11  Bruno Haible  <bruno@clisp.org>
65487
65488         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
65489         overridable by the user.
65490         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65491
65492 2006-01-10  Simon Josefsson  <jas@extundo.com>
65493
65494         * modules/sys_socket: New file.
65495
65496 2006-01-10  Simon Josefsson  <jas@extundo.com>
65497
65498         * m4/sys_socket_h.m4: New file.
65499
65500 2006-01-10  Simon Josefsson  <jas@extundo.com>
65501
65502         * lib/socket_.h: New file.
65503
65504 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65505
65506         * modules/readutmp (Maintainer): Add myself.
65507
65508 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65509
65510         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
65511         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
65512         People who are still concerned with buggy memcmp implementations
65513         can invoke gl_FUNC_MEMCMP themselves.
65514
65515 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65516
65517         * lib/regex_internal.h (BITSET_WORD_BITS):
65518         Work around a bug in 64-bit PGC (before version 6.1-2), where the
65519         preprocessor mishandles large unsigned values as if they were signed.
65520         Problem reported by Claudio Fontana in
65521         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
65522
65523 2006-01-10  Jim Meyering  <jim@meyering.net>
65524
65525         Avoid the double-free (first in fts_read, second in fts_close) that
65526         would occur when an `active' directory is made inaccessible (e.g.,
65527         via chmod a-x) during a traversal.
65528         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65529         before returning.  Reproduce this failure by
65530         mkdir -p a/b; cd a; chmod a-x . b
65531         Reported by Stavros Passas.
65532
65533         Sync from coreutils.
65534         * lib/sha1.c: Tweak grammar in a comment.
65535
65536 2006-01-10  Jim Meyering  <jim@meyering.net>
65537
65538         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
65539         Patch by Joerg Sonnenberger.
65540
65541 2006-01-10  Bruno Haible  <bruno@clisp.org>
65542
65543         * modules/readutmp: Depend on module free.
65544         * modules/strtok_r: Depend on module restrict.
65545
65546 2006-01-10  Bruno Haible  <bruno@clisp.org>
65547
65548         * modules/gettext (configure.ac): Add an invocation of
65549         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
65550
65551 2006-01-10  Bruno Haible  <bruno@clisp.org>
65552
65553         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
65554         Reported by Werner Lemberg <wl@gnu.org>.
65555
65556 2006-01-10  Bruno Haible  <bruno@clisp.org>
65557
65558         * lib/localcharset.c: Update from GNU gettext.
65559
65560 2006-01-10  Bruno Haible  <bruno@clisp.org>
65561
65562         * lib/argp.h (__const): Remove macro. Use const instead.
65563         * lib/argp-fmtstream.h (__const): Likewise.
65564         * lib/glob_.h (__const): Remove macro.
65565         * lib/glob-libc.h: Use const instead of __const.
65566
65567 2006-01-10  Bruno Haible  <bruno@clisp.org>
65568
65569         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
65570         variable.
65571         Needed to avoid an automake error regarding the 'gettext' module.
65572
65573 2006-01-09  Simon Josefsson  <jas@extundo.com>
65574
65575         * modules/inet_ntop (Depends-on): Add restrict.
65576
65577 2006-01-09  Simon Josefsson  <jas@extundo.com>
65578
65579         * modules/gc-rijndael-tests (License): Put under LGPL.
65580
65581         * modules/gc-des-tests (License): Likewise.
65582
65583         * modules/gc-arcfour-tests (License): Likewise.
65584
65585         * modules/gc-arctwo-tests (License): Likewise.
65586
65587         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
65588
65589         * modules/gc-hmac-sha1-tests (Files): Likewise.
65590
65591         * modules/gc-hmac-md5-tests (License): Likewise.
65592
65593         * modules/gc-sha1-tests (License): Likewise.
65594
65595         * modules/gc-md5-tests (License): Likewise.
65596
65597         * modules/gc-md4-tests (License): Likewise.
65598
65599         * modules/gc-md2-tests (License): Likewise.
65600
65601         * modules/gc-tests (License): Likewise.
65602
65603         * modules/des-tests (License): Likewise.
65604
65605         * modules/md4-tests (License): Likewise.
65606
65607         * modules/md2-tests (License): Likewise.
65608
65609 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65610
65611         Sync from coreutils:
65612
65613         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
65614         * modules/lib-ignore: New file.
65615         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
65616         chdir-safer.m4, lchmod.m4.
65617         * modules/openat: Add mkdirat.c, openat-priv.h.
65618
65619 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65620
65621         Sync from coreutils.
65622         * m4/lib-ignore.m4: New file.
65623         * m4/lchmod.m4: New file.
65624
65625 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65626
65627         Sync from coreutils.
65628         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
65629         for write access: POSIX says that must fail.
65630         * lib/fts.c (diropen): Likewise.
65631         * lib/save-cwd.c (save_cwd): Likewise.
65632         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
65633         well, for minor improvements on hosts that lack O_DIRECTORY.
65634         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
65635         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
65636         Fall back on chown if open failed with EACCES.
65637
65638         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
65639         Report an error at compile-time if only a 1-second nominal clock
65640         resolution is found.
65641
65642         * lib/lchmod.h: New file.
65643         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
65644         (make_dir_parents): Use lchown rather than chown, and
65645         lchmod rather than chmod.
65646
65647         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
65648         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
65649         "proc" reported by n0dalus.
65650
65651         * lib/mountlist.c: Include <limits.h>.
65652         (dev_from_mount_options)
65653         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
65654         New function.  It no longer assumes "dev=" has the System V meaning
65655         on Linux (since it doesn't).  It also parses "dev=" more carefully.
65656         (read_file_system_list)
65657         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
65658         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
65659         dev= in that case.
65660
65661         * lib/posixtm.h (PDS_PRE_2000): New macro.
65662         * lib/posixtm.c (year): Arg is now syntax_bits rather than
65663         allow_century.  All usages changed.  Reject dates outside the range
65664         1969-1999 if PDS_PRE_2000 is used.
65665
65666 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65667
65668         Sync from coreutils.
65669         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
65670         (Time of day items): Mention the possibility of leap seconds.
65671         Problem reported by Dr. David Alan Gilbert.
65672
65673 2006-01-09  Jim Meyering  <jim@meyering.net>
65674
65675         Sync from coreutils.
65676
65677         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
65678
65679         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
65680
65681         * lib/modechange.c (mode_compile): Reject an invalid mode string
65682         that starts with an octal digit.  From Andreas Gruenbacher.
65683
65684         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
65685         and dup to open_safer and dup_safer, respectively.
65686         (openat_permissive): Fix typo in comment.
65687
65688         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
65689         "gettext.h"; either no longer needed or are guaranteed by openat.h.
65690         (_): Remove; no longer needed.
65691         (openat): Renamed from rpl_openat; no need for rpl_openat
65692         since openat.h renames openat for us.
65693         Replace most of the body with a call to openat_permissive,
65694         to avoid duplicate code.
65695         Port to (probably hypothetical) environments were mode_t is
65696         wider than int.
65697         (openat_permissive): Require mode arg, so that we can check
65698         types better.  Put it just after flags.  Change cwd failure
65699         indicator from pointer-to-bool to pointer-to-errno-value.
65700         All callers changed.
65701         Invoke openat_save_fail and/or openat_restore_fail if
65702         cwd_errno is null, so that openat can call us.
65703         (openat_permissive, fdopendir, fstatat, unlinkat):
65704         Simplify errno handling to avoid some duplicate code,
65705         as it's OK to set errno on success.
65706         * lib/openat.h: Revamp code so that function macros depend on
65707         __OPENAT_PREFIX only, not also on AT_FDCWD.
65708         (openat_ro): Remove.  Caller changed to use openat_permissive.
65709         (openat_permissive): Now a macro, if not a function.
65710         (openat_restore_fail, openat_save_fail): Now always functions,
65711         since mkdirat needs them even if __OPENAT_PREFIX is defined.
65712
65713         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
65714         and openat.c.
65715         * lib/mkdirat.c: Include openat-priv.h.
65716         Remove definitions of macros defined therein.
65717         * lib/openat.c: Likewise.
65718
65719         * lib/mkdirat.c (mkdirat): New file and function.
65720         * lib/openat.h (mkdirat): Declare.
65721
65722         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
65723
65724         * lib/openat.h (openat_permissive): Declare.
65725         (openat_ro): Define.
65726
65727         * lib/openat.c (EXPECTED_ERRNO): New macro.
65728         (openat_permissive): New function -- used in remove.c rewrite.
65729         (all functions): Set errno just before returning, only if there
65730         was an actual failure.
65731         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
65732
65733         Emulate openat-family functions using Linux's procfs, if possible.
65734         Idea and some code based on Ulrich Drepper's glibc changes.
65735
65736         * lib/openat.c: (BUILD_PROC_NAME): New macro.
65737         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
65738         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
65739         before falling back on save_cwd and restore_cwd.
65740         (fdopendir, fstatat, unlinkat): Likewise.
65741
65742         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
65743         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
65744
65745         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
65746         as second argument to va_arg.  Otherwise, some versions of gcc
65747         warn that `if this code is reached, the program will abort'.
65748
65749 2006-01-09  Jim Meyering  <jim@meyering.net>
65750
65751         Sync from coreutils.
65752         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
65753         Require openat-priv.h.
65754
65755 2006-01-09  Bruno Haible  <bruno@clisp.org>
65756
65757         * modules/strnlen (Include): Use strnlen.h.
65758
65759 2006-01-09  Bruno Haible  <bruno@clisp.org>
65760
65761         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
65762
65763 2006-01-09  Bruno Haible  <bruno@clisp.org>
65764
65765         * lib/sysexit_.h (EX_OK): New macro.
65766         Suggested by Martin Lambers <marlam@marlam.de>.
65767
65768 2006-01-09  Bruno Haible  <bruno@clisp.org>
65769
65770         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
65771         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
65772
65773 2006-01-09  Bruno Haible  <bruno@clisp.org>
65774
65775         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
65776         numbers.
65777
65778 2006-01-09  Bruno Haible  <bruno@clisp.org>
65779
65780         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
65781         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
65782         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
65783         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
65784
65785 2006-01-09  Bruno Haible  <bruno@clisp.org>
65786
65787         * build-aux/javacomp.sh.in: New file, moved from lib/.
65788         * modules/javacomp-script (Files): Update.
65789         (configure.ac): Add AC_CONFIG_FILES invocation.
65790         (EXTRA_DIST): Remove variable.
65791
65792         * build-aux/javaexec.sh.in: New file, moved from lib/.
65793         * modules/javaexec (Files): Update.
65794         (configure.ac): Add AC_CONFIG_FILES invocation.
65795         (EXTRA_DIST): Remove javaexec.sh.in.
65796
65797         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
65798         * modules/csharpcomp-script (Files): Update.
65799         (configure.ac): Add AC_CONFIG_FILES invocation.
65800         (EXTRA_DIST): Remove variable.
65801
65802         * build-aux/csharpexec.sh.in: New file, moved from lib/.
65803         * modules/csharpexec (Files): Update.
65804         (configure.ac): Add AC_CONFIG_FILES invocation.
65805         (EXTRA_DIST): Remove csharpexec.sh.in.
65806
65807 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
65808
65809         Sync from coreutils.
65810
65811         Add POSIX ACL support
65812         * lib/acl.h (copy_acl, set_acl): Add declarations.
65813         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
65814         systems other than Linux.
65815         (chmod_or_fchmod): New function: use fchmod when possible,
65816         and chmod otherwise.
65817         (file_has_acl): Add a POSIX ACL implementation, with a
65818         Linux-specific subcase.
65819         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
65820         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
65821         acls are unsupported.
65822         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
65823         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
65824         are unsupported.
65825
65826 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
65827
65828         Sync from coreutils.
65829         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
65830
65831 2006-01-07  Bruno Haible  <bruno@clisp.org>
65832
65833         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
65834         gl_EARLY.
65835
65836 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65837
65838         * lib/strftime.c (tzname): Don't declare if it is already #defined.
65839         Problem reported for Mingw by Mark Junker.
65840
65841 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65842
65843         * README: Gnulib normally doesn't generate a tarball.
65844
65845 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
65846
65847         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
65848         long int, not int, for nanosecond counts, so that people who are
65849         used to POSIX struct timespec won't be surprised.  Reported by Jim
65850         Meyering.
65851
65852 2005-12-28  Bruno Haible  <bruno@clisp.org>
65853
65854         * build-aux/config.rpath: Update from GNU gettext.
65855
65856 2005-12-16  Jim Meyering  <jim@meyering.net>
65857
65858         * modules/fprintftime: New module.
65859         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
65860
65861 2005-12-16  Jim Meyering  <jim@meyering.net>
65862
65863         * m4/fprintftime.m4: New file.
65864
65865 2005-12-16  Jim Meyering  <jim@meyering.net>
65866
65867         * lib/fprintftime.c, lib/fprintftime.h: New files.
65868
65869 2005-12-15  Simon Josefsson  <jas@extundo.com>
65870
65871         * modules/socklen (configure.ac): Fix M4 macro name, to align with
65872         new m4/socklen.m4.
65873
65874 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65875
65876         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
65877         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
65878
65879 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65880
65881         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
65882         * lib/argp-help.c (fill_in_uparams): Check if the constructed
65883         struct uparams is valid. Fall back to the default values if it is
65884         not.
65885
65886 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65887
65888         * modules/argp (Files): Add argp-pin.c
65889         (Depends-on): dirname
65890         (lib_SOURCES): Add argp-pin.c
65891
65892 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65893
65894         * m4/argp.m4:  Check if program_invocation_name and
65895         program_invocation_short_name are declared and define appropriate
65896         macros if they are not.
65897
65898 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65899
65900         * lib/argp-help.c (__argp_base_name): New function
65901         (__argp_short_program_name): Rewrite using __argp_base_name
65902         * lib/argp-namefrob.h: Define program_invocation_name and
65903         program_invocation_short_name if requested
65904         (__argp_base_name): Add prototype
65905         * lib/argp-parse.c (argp_def): Use gettext wrappers
65906         (argp_default_parser): Use __argp_base_name
65907         * lib/argp-pin.c: New file. Defines program_invocation_name and
65908         program_invocation_short_name on systems that lack them.
65909
65910 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65911
65912         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
65913         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
65914         porting problem reported by Georg Schwarz in
65915         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
65916
65917 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65918
65919         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
65920         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
65921         porting problem reported by Georg Schwarz in
65922         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
65923
65924 2005-12-05  Bruno Haible  <bruno@clisp.org>
65925
65926         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
65927         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
65928         Reported by Mark Junker <mjscod@gmx.de>.
65929
65930 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
65931
65932         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
65933         Use implementation from Albert Chin, with some
65934         comments/corrections by Stepan Kasal and myself.
65935
65936 2005-12-02  Bruno Haible  <bruno@clisp.org>
65937
65938         * gnulib-tool (func_import): Accept GPLed build tool modules when
65939         --lgpl is given.
65940         * modules/csharpcomp-script: New file.
65941         * modules/csharpcomp: Depend on it.
65942         * modules/javacomp-script: New file.
65943         * modules/javacomp: Depend on it.
65944         Suggested by Simon Josefsson.
65945
65946 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
65947
65948         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
65949         statement, to work around an HP-UX 10.20 compiler bug reported by
65950         Peter O'Gorman.
65951
65952 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
65953
65954         * modules/savedir (Depends-on): Add openat.
65955
65956 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
65957
65958         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
65959         (uintmax_t) [defined uintmax_t]: Do not declare.
65960         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
65961         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
65962         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
65963         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
65964         sake of portability to weird hosts that C allows (though we don't
65965         know of any practical examples).
65966
65967         * lib/savedir.h (fdsavedir): New decl.
65968         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
65969         contains most of the former guts of savedir.
65970         (savedir): Use savedirstream.
65971         Include "openat.h".
65972
65973 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
65974
65975         * modules/obstack (Files): Add m4/ulonglong.m4.
65976         Problem reported by Davide Angelocola.
65977
65978 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
65979
65980         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
65981         coreutils no longer futzes with rounding modes.
65982
65983 2005-11-14  Jim Meyering  <jim@meyering.net>
65984
65985         * lib/mkstemp-safer.c: Include <config.h>, required for possible
65986         replacement of mkstemp.
65987
65988 2005-11-10  Simon Josefsson  <jas@extundo.com>
65989
65990         * lib/readline.c: Remove EOL.
65991
65992 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65993
65994         * modules/gethrxtime (Depends-on): Add gettime.
65995
65996 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65997
65998         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
65999         or gettimeofday; no longer needed.
66000
66001 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66002
66003         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
66004         time business.
66005         (gethrxtime) [! (HAVE_NANOUPTIME
66006         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
66007         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
66008         our own approximation.
66009
66010 2005-11-08  Eric Blake  <ebb9@byu.net>
66011
66012         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66013
66014 2005-11-08  Eric Blake  <ebb9@byu.net>
66015
66016         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66017
66018 2005-11-04  Bruno Haible  <bruno@clisp.org>
66019
66020         * gnulib-tool: Implement --update mode.
66021
66022 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66023
66024         Fix porting problem reported by Theodoros V. Kalamatianos.
66025         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
66026         Don't assume that futimes failing means we must fail.
66027
66028 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66029
66030         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
66031         variables to suggest the intended function of the PATH_MAX check.
66032
66033 2005-10-30  Kean Johnston  <jkj@sco.com>
66034
66035         Trivial changes to support SCO systems.
66036         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
66037         as PATH_MAX.
66038         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
66039         where __ptr is null when no I/O is pending.
66040
66041 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66042
66043         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
66044         leave errno alone.  Problem reported by Dmitry V. Levin.
66045
66046 2005-10-28  Simon Josefsson  <jas@extundo.com>
66047
66048         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
66049         Test more.
66050
66051         * tests/test-gc-md2.c, tests/test-md2.c: New files.
66052
66053         * modules/md2, modules/md2-tests: New files.
66054
66055 2005-10-28  Simon Josefsson  <jas@extundo.com>
66056
66057         * m4/inet_ntop.m4: More tests.
66058
66059         * m4/gc-md2.m4, md2.m4: New file.
66060
66061 2005-10-28  Simon Josefsson  <jas@extundo.com>
66062
66063         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
66064         "restrict" keywords, as per POSIX.  Protect the function
66065         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
66066         Don't use K&R prototypes.  Check the sprintf return values.
66067         Re-define EAFNOSUPPORT if not present.  Indent.
66068
66069         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
66070         suggested by Bruno Haible <bruno@clisp.org>.
66071
66072         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
66073
66074         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
66075
66076         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
66077         libgcrypt).
66078
66079         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
66080
66081         * lib/md2.h, lib/md2.c: New files.
66082
66083 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
66084
66085         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
66086         errno alone.  Problem reported by Frederic Jolliton.
66087
66088 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66089
66090         * modules/verify (License): Change from GPL to LGPL.  This is a
66091         tiny module and there are apparently near-equivalents that are
66092         under the BSD license.
66093
66094 2005-10-24  Simon Josefsson  <jas@extundo.com>
66095
66096         * modules/sha1: Relicense to LGPL.
66097
66098 2005-10-24  Simon Josefsson  <jas@extundo.com>
66099
66100         * lib/md4.h: Shrink buffer size, now that we changed the type.
66101
66102 2005-10-23  Simon Josefsson  <jas@extundo.com>
66103
66104         * gnulib-tool (func_import): Fix --tests-base.
66105
66106 2005-10-22  Simon Josefsson  <jas@extundo.com>
66107
66108         * modules/arcfour (Depends-on): Need stdint.
66109
66110 2005-10-22  Simon Josefsson  <jas@extundo.com>
66111
66112         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
66113         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
66114
66115 2005-10-22  Simon Josefsson  <jas@extundo.com>
66116
66117         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
66118         suggested by Bruno Haible <bruno@clisp.org>.
66119
66120 2005-10-22  Simon Josefsson  <jas@extundo.com>
66121
66122         * lib/crc.h: Include stddef.h, for size_t.
66123
66124 2005-10-22  Simon Josefsson  <jas@extundo.com>
66125
66126         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
66127         arcfour_context struct (simplify test vector testing in GNU
66128         Shishi).
66129
66130 2005-10-21  Simon Josefsson  <jas@extundo.com>
66131
66132         * modules/des, modules/des-tests: New files.
66133
66134         * modules/gc-des, modules/gc-des-tests: New files.
66135
66136         * tests/test-des.c, tests/test-gc-des.c: New file.
66137
66138 2005-10-21  Simon Josefsson  <jas@extundo.com>
66139
66140         * modules/arctwo, modules/arctwo-tests: New files.
66141
66142         * tests/test-arctwo.c: New file.
66143
66144         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
66145
66146         * tests/test-gc-arctwo.c: New file.
66147
66148 2005-10-21  Simon Josefsson  <jas@extundo.com>
66149
66150         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
66151         Bruno Haible <bruno@clisp.org>.
66152
66153         * m4/gc-des.m4: New file.
66154
66155 2005-10-21  Simon Josefsson  <jas@extundo.com>
66156
66157         * m4/arctwo.m4: New file.
66158
66159         * m4/gc-arctwo.m4: New file.
66160
66161 2005-10-21  Simon Josefsson  <jas@extundo.com>
66162
66163         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
66164         block.
66165
66166 2005-10-21  Simon Josefsson  <jas@extundo.com>
66167
66168         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
66169         <bruno@clisp.org>.
66170
66171         * lib/hmac-sha1.c (hmac_sha1): Likewise.
66172
66173         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
66174         Bruno Haible <bruno@clisp.org>.
66175
66176         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
66177         <bruno@clisp.org>.
66178
66179 2005-10-21  Simon Josefsson  <jas@extundo.com>
66180
66181         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
66182
66183 2005-10-21  Simon Josefsson  <jas@extundo.com>
66184
66185         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
66186
66187 2005-10-21  Simon Josefsson  <jas@extundo.com>
66188
66189         * lib/des.h, lib/des.c: New files.
66190
66191         * lib/gc-gnulib.c: Support DES.c
66192
66193 2005-10-21  Simon Josefsson  <jas@extundo.com>
66194
66195         * lib/arctwo.h, lib/arctwo.c: New files.
66196
66197         * lib/gc-gnulib.c: Support ARCTWO.
66198
66199 2005-10-21  Simon Josefsson  <jas@extundo.com>
66200
66201         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
66202         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66203
66204 2005-10-21  Simon Josefsson  <jas@extundo.com>
66205
66206         * gnulib-tool (func_import, func_create_testdir): Define automake
66207         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
66208         Makefile.am snippet),
66209         suggested by Bruno Haible <bruno@clisp.org>.
66210
66211         * modules/gc (Makefile.am): Use it.
66212
66213 2005-10-21  Bruno Haible  <bruno@clisp.org>
66214
66215         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
66216         patch.
66217
66218 2005-10-19  Simon Josefsson  <jas@extundo.com>
66219
66220         * tests/test-gc-rijndael.c: New file.
66221
66222         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
66223
66224 2005-10-19  Simon Josefsson  <jas@extundo.com>
66225
66226         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
66227         interface too.
66228
66229 2005-10-19  Simon Josefsson  <jas@extundo.com>
66230
66231         * tests/test-gc-arcfour.c: New file.
66232
66233         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
66234
66235 2005-10-19  Simon Josefsson  <jas@extundo.com>
66236
66237         * modules/gc-md4, modules/gc-md4-tests: New file.
66238
66239         * tests/test-gc-md4.c: New file.
66240
66241 2005-10-19  Simon Josefsson  <jas@extundo.com>
66242
66243         * m4/gc-md4.m4: New file.
66244
66245 2005-10-19  Simon Josefsson  <jas@extundo.com>
66246
66247         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
66248         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
66249         <kasal@ucw.cz>.
66250
66251 2005-10-19  Simon Josefsson  <jas@extundo.com>
66252
66253         * m4/gc-arcfour.m4: New file.
66254
66255         * m4/gc-rijndael.m4: New file.
66256
66257 2005-10-19  Simon Josefsson  <jas@extundo.com>
66258
66259         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
66260
66261 2005-10-19  Simon Josefsson  <jas@extundo.com>
66262
66263         * lib/gc-gnulib.c: Support ARCFOUR.
66264
66265 2005-10-19  Simon Josefsson  <jas@extundo.com>
66266
66267         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
66268         support.
66269
66270         * lib/gc.h: Add ECB enum type.
66271
66272         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
66273
66274 2005-10-18  Simon Josefsson  <jas@extundo.com>
66275
66276         * tests/test-md5.c: New file.
66277
66278         * modules/md5-tests: New file.
66279
66280 2005-10-18  Simon Josefsson  <jas@extundo.com>
66281
66282         * tests/test-md4.c: New file.
66283
66284         * modules/md4, modules/md4-tests: New files.
66285
66286 2005-10-18  Simon Josefsson  <jas@extundo.com>
66287
66288         * m4/md4.m4: New file.
66289
66290 2005-10-18  Simon Josefsson  <jas@extundo.com>
66291
66292         * lib/md4.h, lib/md4.c: New files, based on md5.?.
66293
66294 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
66295
66296         * gnulib-tool (func_create_testdir): Omit the second check whether
66297         BUILT_SOURCES in nonempty.
66298
66299 2005-10-17  Simon Josefsson  <jas@extundo.com>
66300
66301         * tests/test-rijndael.c: New file.
66302
66303 2005-10-17  Simon Josefsson  <jas@extundo.com>
66304
66305         * modules/sha1: Depend on stdint instead of md5.
66306
66307         * modules/md5: Depend on stdint, remove uint32_t.
66308
66309 2005-10-17  Simon Josefsson  <jas@extundo.com>
66310
66311         * modules/gc-sha1-tests: New file.
66312
66313         * tests/test-gc-sha1.c: New file.
66314
66315 2005-10-17  Simon Josefsson  <jas@extundo.com>
66316
66317         * m4/md5.m4: Remove call to uint32_t.m4.
66318
66319 2005-10-17  Simon Josefsson  <jas@extundo.com>
66320
66321         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
66322
66323         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
66324         md5.h.
66325
66326         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
66327
66328         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
66329
66330 2005-10-17  Simon Josefsson  <jas@extundo.com>
66331
66332         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
66333
66334 2005-10-17  Simon Josefsson  <jas@extundo.com>
66335
66336         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
66337
66338 2005-10-17  Simon Josefsson  <jas@extundo.com>
66339
66340         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
66341
66342         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
66343
66344 2005-10-17  Bruno Haible  <bruno@clisp.org>
66345
66346         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
66347         that it can also be used in a test.
66348
66349 2005-10-16  Bruno Haible  <bruno@clisp.org>
66350
66351         * gnulib-tool (func_emit_tests_Makefile_am): Also define
66352         TESTS_ENVIRONMENT, so that individual tests can augment it.
66353
66354         * gnulib-tool (func_create_testdir): Use an intermediate target for
66355         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
66356         macros, like $(ALLOCA_H), which cannot be passed through the command
66357         line.
66358
66359 2005-10-15  Simon Josefsson  <jas@extundo.com>
66360
66361         * modules/rijndael-tests: New file.
66362
66363         * modules/rijndael: New file.
66364
66365 2005-10-15  Simon Josefsson  <jas@extundo.com>
66366
66367         * m4/rijndael.m4: New file.
66368
66369 2005-10-15  Simon Josefsson  <jas@extundo.com>
66370
66371         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
66372
66373         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
66374
66375 2005-10-14  Simon Josefsson  <jas@extundo.com>
66376
66377         * tests/test-arcfour.c: New file.
66378
66379         * modules/arcfour, modules/arcfour-tests: New files.
66380
66381 2005-10-14  Simon Josefsson  <jas@extundo.com>
66382
66383         * m4/arcfour.m4: New file.
66384
66385 2005-10-14  Simon Josefsson  <jas@extundo.com>
66386
66387         * lib/arcfour.h, lib/arcfour.c: New files.
66388
66389 2005-10-14  Roland McGrath  <roland@redhat.com>
66390
66391         Import from libc.  [BZ #1331]
66392         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
66393         macro argument.
66394         Reported by Matej Vela <vela@debian.org>.
66395
66396 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66397
66398         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
66399         include <wchar.h>; no longer needed.
66400
66401 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66402
66403         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
66404
66405 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
66406         and  Ulrich Drepper  <drepper@redhat.com>
66407
66408         Import from libc.
66409         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
66410         instead of inline stream orientation test and two separate
66411         function calls.  Pay no attention to USE_IN_LIBIO.
66412
66413 2005-10-13  Simon Josefsson  <jas@extundo.com>
66414
66415         * modules/gc-hmac-md5-tests: New file.
66416
66417         * tests/test-gc-hmac-sha1.c: New file.
66418
66419         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
66420
66421         * modules/gc-hmac-md5-tests: New file.
66422
66423         * tests/test-gc-md5.c: New file.
66424
66425         * modules/gc-md5-tests: New file.
66426
66427 2005-10-13  Simon Josefsson  <jas@extundo.com>
66428
66429         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
66430         Move memory allocation outside of loop.
66431
66432 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
66433
66434         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
66435         intermediate directory is in a read-only file system.  Problem
66436         reported by Eric Blake.
66437
66438 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
66439
66440         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
66441
66442 2005-10-12  Simon Josefsson  <jas@extundo.com>
66443
66444         * tests/test-hmac-sha1.c: New file.
66445
66446         * modules/hmac-sha1-tests: New file.
66447
66448         * modules/hmac-sha1: New file.
66449
66450 2005-10-12  Simon Josefsson  <jas@extundo.com>
66451
66452         * modules/gc-sha1: New file.
66453
66454 2005-10-12  Simon Josefsson  <jas@extundo.com>
66455
66456         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
66457
66458         * tests/test-gc-pbkdf2-sha1.c: New file.
66459
66460 2005-10-12  Simon Josefsson  <jas@extundo.com>
66461
66462         * modules/gc-md5, modules/gc-hmac-md5: New files.
66463
66464         * modules/gc (Files): Remove md5, memxor and hmac files.
66465
66466 2005-10-12  Simon Josefsson  <jas@extundo.com>
66467
66468         * m4/gc-pbkdf2-sha1.m4: New file.
66469
66470         * m4/gc-hmac-sha1.m4: New file.
66471
66472         * m4/gc-sha1: New file.
66473
66474         * m4/hmac-sha1.m4: New file.
66475
66476 2005-10-12  Simon Josefsson  <jas@extundo.com>
66477
66478         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
66479
66480         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
66481
66482 2005-10-12  Simon Josefsson  <jas@extundo.com>
66483
66484         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
66485         suggested by Bruno Haible <bruno@clisp.org>.
66486
66487 2005-10-12  Simon Josefsson  <jas@extundo.com>
66488
66489         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
66490
66491 2005-10-12  Simon Josefsson  <jas@extundo.com>
66492
66493         * lib/gc-pbkdf2-sha1.c: New file.
66494
66495         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
66496
66497 2005-10-12  Simon Josefsson  <jas@extundo.com>
66498
66499         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
66500
66501         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
66502
66503 2005-10-12  Simon Josefsson  <jas@extundo.com>
66504
66505         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
66506         GC_USE_HMAC_MD5, respectively.
66507
66508         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
66509         (gc_md5): Fix typo.
66510
66511         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
66512
66513         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
66514
66515         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
66516
66517 2005-10-12  Bruno Haible  <bruno@clisp.org>
66518
66519         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
66520         Reported by Stepan Kasal <kasal@ucw.cz>.
66521
66522 2005-10-11  Simon Josefsson  <jas@extundo.com>
66523
66524         * tests/test-crc.c: New file.
66525
66526         * modules/crc, modules/crc-tests: New files.
66527
66528 2005-10-11  Simon Josefsson  <jas@extundo.com>
66529
66530         * m4/crc.m4: New file.
66531
66532 2005-10-11  Simon Josefsson  <jas@extundo.com>
66533
66534         * lib/gc.h: Add gc_hash and gc_hash_buffer.
66535
66536         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
66537
66538         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
66539
66540 2005-10-11  Simon Josefsson  <jas@extundo.com>
66541
66542         * lib/crc.h, lib/crc.c: New files.
66543
66544         * lib/gc.h (gc_hash_buffer): Add doc.
66545
66546 2005-10-11  Bruno Haible  <bruno@clisp.org>
66547
66548         * modules/c-strcasestr: New file.
66549         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
66550
66551 2005-10-11  Bruno Haible  <bruno@clisp.org>
66552
66553         * modules/c-strcase: New file.
66554         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
66555
66556 2005-10-11  Bruno Haible  <bruno@clisp.org>
66557
66558         * lib/strcasecmp.c: Include limits.h.
66559         (strcasecmp): Avoid integer overflow on exotic platforms.
66560         * lib/strncasecmp.c: Include limits.h.
66561         (strncasecmp): Avoid integer overflow on exotic platforms.
66562         Reported by Paul Eggert.
66563
66564 2005-10-11  Bruno Haible  <bruno@clisp.org>
66565
66566         * lib/c-strcasestr.h: New file, from GNU gettext.
66567         * lib/c-strcasestr.c: New file, from GNU gettext.
66568
66569 2005-10-11  Bruno Haible  <bruno@clisp.org>
66570
66571         * lib/c-strcase.h: New file, from GNU gettext.
66572         * lib/c-strcasecmp.c: New file, from GNU gettext.
66573         * lib/c-strncasecmp.c: New file, from GNU gettext.
66574
66575 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66576
66577         * modules/mempcpy (License): GPL -> LGPL.
66578         * modules/strchrnul (License): Likewise.
66579         * modules/sysexits (License): Likewise.
66580
66581 2005-10-08  Simon Josefsson  <jas@extundo.com>
66582
66583         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
66584
66585 2005-10-07  Simon Josefsson  <jas@extundo.com>
66586
66587         * m4/memxor.m4: Remove gl_C_RESTRICT call.
66588
66589 2005-10-06  Simon Josefsson  <jas@extundo.com>
66590
66591         * tests/test-hmac-md5.c: New file.
66592
66593         * modules/hmac-md5-tests: New file.
66594
66595         * modules/hmac-md5: New file.
66596
66597 2005-10-06  Simon Josefsson  <jas@extundo.com>
66598
66599         * m4/hmac-md5.m4: New file.
66600
66601         * m4/memxor.m4: Require gl_C_RESTRICT.
66602
66603 2005-10-06  Simon Josefsson  <jas@extundo.com>
66604
66605         * lib/memxor.c (memxor): Avoid casts and warnings.
66606
66607 2005-10-06  Simon Josefsson  <jas@extundo.com>
66608
66609         * lib/hmac-md5.c: New file.
66610
66611         * lib/hmac.h: New file.
66612
66613 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66614
66615         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
66616         promotes to int, not unsigned int, to catch the AIX 5.3
66617         compiler bug.
66618
66619 2005-10-05  Simon Josefsson  <jas@extundo.com>
66620
66621         * modules/memxor: New file.
66622
66623         * modules/iconv (Files): Move config.rpath to havelib, it is used
66624         there.
66625
66626         * modules/havelib (Files): Add config.rpath.
66627
66628 2005-10-05  Simon Josefsson  <jas@extundo.com>
66629
66630         * m4/memxor.m4: New file.
66631
66632 2005-10-05  Simon Josefsson  <jas@extundo.com>
66633
66634         * lib/memxor.c (memxor): Fix compiler error.
66635
66636         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
66637         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
66638
66639         * lib/memxor.h, lib/memxor.c: New files.
66640
66641         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
66642         we assume all systems have it, suggested by Jim Meyering
66643         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
66644         any systems lack sys/socket.h; mingw32 is known to lack it, but we
66645         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
66646         same reasons.
66647
66648 2005-10-05  Simon Josefsson  <jas@extundo.com>
66649
66650         * config/srclist.txt: Add glibc bug 1423 for md5.h.
66651
66652 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
66653
66654         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
66655         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
66656         needed, since the source code now assumes these .h files.
66657
66658 2005-10-05  Derek Price  <derek@ximbiot.com>
66659
66660         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
66661
66662 2005-10-05  Bruno Haible  <bruno@clisp.org>
66663
66664         * modules/stdint (License): Change to LGPL.
66665
66666 2005-10-04  Simon Josefsson  <jas@extundo.com>
66667
66668         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
66669         D. Baushke" <mdb@gnu.org>.
66670
66671 2005-10-04  Bruno Haible  <bruno@clisp.org>
66672
66673         * lib/verify.h (verify_true): Provide alternative definition for C++.
66674
66675 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
66676
66677         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
66678         (SSIZE_MAX): New macro, if not already defined.
66679         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
66680         than 2 GiB.
66681
66682 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66683
66684         Sync from coreutils.
66685         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
66686         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
66687         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
66688         ULLONG_MAX doesn't work with 2.7.2.1.
66689
66690 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66691
66692         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
66693         From Ben Pfaff.
66694
66695         * modules/exclude (Depends-on): Depend on verify.
66696         * modules/strtoimax (Depends-on): Likewise.
66697         * modules/utimecmp (Depends-on): Likewise.
66698
66699 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66700
66701         * lib/exclude.c: Include verify.h.
66702         (verify): Remove.  All callers changed to use verify.h's version.
66703         * lib/strtoimax.c: Likewise.
66704         * lib/utimecmp.c: Likewis.e
66705
66706         Sync from coreutils.
66707         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
66708         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
66709         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
66710         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
66711         bother returning ENOSYS if settimeofday or stime fails; just let
66712         them return whatever errno they want to return.
66713         * lib/utimens.c: Include unistd.h, for dup2.
66714         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
66715         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
66716
66717 2005-10-02  Jim Meyering  <jim@meyering.net>
66718
66719         Sync from coreutils.
66720         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
66721         from glibc-2.2.5 that fails for read-only files.
66722
66723 2005-10-02  Jim Meyering  <jim@meyering.net>
66724
66725         Sync from coreutils.
66726         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
66727         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
66728         `#if HAVE_CONFIG_H'.
66729         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
66730         Remove AT_FDCWD test.
66731         Do not consume the fd unless successful.
66732         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
66733         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
66734         block, so that we don't even try to compile it if settimeofday is
66735         available.  This works around a compilation failure on OSF1 V5.1,
66736         due to stime requiring a `long int*' while tv_sec is `int'.
66737
66738 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
66739
66740         Sync from coreutils.
66741         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
66742         against `yes', rather than just testing for nonempty.
66743
66744 2005-10-01  Simon Josefsson  <jas@extundo.com>
66745
66746         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
66747         and Darwin.
66748
66749         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
66750         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
66751         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
66752         freeaddrinfo and gai_strerror are declared by the POSIX headers.
66753         Check if struct addrinfo is declared.
66754
66755 2005-10-01  Simon Josefsson  <jas@extundo.com>
66756
66757         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
66758         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
66759         AI_* and EAI_* definitions.  Protect function declarations.
66760
66761 2005-10-01  Jim Meyering  <jim@meyering.net>
66762
66763         Sync from coreutils.
66764
66765         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
66766         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
66767         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
66768         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
66769         in the inet and nsl libraries.  Required on Solaris 5.7.
66770
66771 2005-10-01  Jim Meyering  <jim@meyering.net>
66772
66773         Sync from coreutils.
66774         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
66775         in the inet and nsl libraries.  Required on Solaris 5.7.
66776
66777 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
66778
66779         * lib/getdelim.c (getdelim): Remove unused variables.
66780
66781 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
66782
66783         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
66784         so that the code works even with ancient cpp.  Portability problem
66785         with GCC 2.7.2.1 reported by Thomas M.Ott.
66786
66787 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
66788
66789         * modules/regex (Depends-on): Add strcase.
66790
66791         * modules/gethostname (Licence): Change from GPL to LGPL, since
66792         gethostname.c is a trivial implementation of a standard library
66793         function.
66794         * modules/poll (License): Change from GPL to LGPL, since it's
66795         derived from LGPL code.
66796
66797 2005-09-27  Jim Meyering  <jim@meyering.net>
66798
66799         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
66800         HAVE_CONFIG_H.
66801
66802         * lib/intprops.h (signed_type_or_expr__): Define.
66803         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
66804         for unsigned types.
66805
66806 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
66807
66808         * lib/verify.h (verify_expr): Remove, replacing with:
66809         (verify_true): New macro that returns true instead of void.
66810         (verify_type__): Remove.
66811         (verify): Use verify_true rather than verify_type__.
66812
66813 2005-09-26  Bruno Haible  <bruno@clisp.org>
66814
66815         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
66816         is necessary.
66817         (lib_SOURCES): Remove mbchar.c.
66818         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
66819         (Files): Add m4/mbrtowc.m4.
66820         * modules/mbiter: Likewise.
66821         * modules/mbuiter: Likewise.
66822
66823 2005-09-26  Bruno Haible  <bruno@clisp.org>
66824
66825         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
66826         compile mbchar.c if they are not both present.
66827         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
66828         * m4/mbiter.m4 (gl_MBITER): Likewise.
66829         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
66830         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
66831         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
66832
66833 2005-09-25  Jim Meyering  <jim@meyering.net>
66834
66835         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
66836         also uses socklen_t.
66837
66838 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
66839
66840         * lib/utimens.c (ENOSYS): Define if not already defined.
66841         (futimens): Support having a null PATH if the file descriptor
66842         is nonnegative.
66843
66844         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
66845         Remove.
66846         (__attribute): Define to empty unless GCC 3.1 or later.
66847         This works around a core dump on OpenBSD 3.4, which has GCC
66848         2.95.3, which dumps core when given __attribute__(()).  It also
66849         simplifies other tests, since we really don't want to bother with
66850         worrying about which ancient version of GCC supported what.
66851         Original problem reported by Yoann Vandoorselaere, with part of
66852         the fix suggested by Derek Price.
66853
66854 2005-09-24  Jim Meyering  <jim@meyering.net>
66855
66856         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
66857         so we can once again use a positive bitfield width of 1 -- now we
66858         don't have to explain why we were using a bitfield width of 2.
66859
66860 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
66861
66862         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
66863         and similarly for the other external symbols.  Problem reported
66864         by James Gallager.
66865
66866         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
66867         bug reported by Jim Meyering.
66868
66869         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
66870         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
66871         not needed, since socklen is a prerequisite module.
66872
66873 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
66874
66875         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
66876         Problem reported by Eric Blake.
66877         (getaddrinfo): Initialize se so that it's not garbage.
66878         Redo internal storage allocation so that it doesn't make unportable
66879         assumptions about alignment.
66880         Fix a memory leak.
66881
66882         * lib/utimens.c (futimens): Use futimesat if available.
66883         Prefer it to futimes since it doesn't have the futimes bug.
66884
66885         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
66886         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
66887         Instead, declare a function that returns a pointer to an array,
66888         and use verify_type__ to declare the size of the array.
66889         Problem and germ of a solution reported by Bruno Haible.
66890         (verify_type__): Use 2, not 1, for bitfield size, to avoid
66891         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
66892
66893 2005-09-23  Jim Meyering  <jim@meyering.net>
66894
66895         Sync from coreutils.
66896         Correct build failure (socklen_t not defined) on at least
66897         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
66898         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
66899
66900 2005-09-23  Jim Meyering  <jim@meyering.net>
66901
66902         * modules/getaddrinfo (Depends-on): Add socklen.
66903
66904 2005-09-23  Bruno Haible  <bruno@clisp.org>
66905
66906         * tests/test-verify.c: New file.
66907
66908 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66909
66910         Sync from coreutils.
66911
66912         * modules/argmatch (Depends-on): Add verify.
66913         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
66914         unistd-safer.
66915         * modules/save-cwd (Depends-on): Likewise.
66916
66917         * modules/openat (Files): Add lib/openat-die.c.
66918         (Depends-on): Remove error, exitfail.
66919         Add dirname.
66920
66921         * modules/verify: New file.
66922         * MODULES.html.sh (Diagnostics <assert.h>): New section,
66923         with "verify" module.
66924
66925 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66926
66927         Sync from coreutils.
66928
66929         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
66930         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
66931         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
66932         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
66933         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
66934         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
66935         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
66936         Don't bother checking for string.h, stdlib.h, unistd.h.
66937         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
66938         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
66939         module's job.
66940         * m4/jm-macros.m4 (gl_MACROS): Likewise.
66941         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
66942
66943         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
66944         (gl_GETDATE): Use it.
66945
66946         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
66947
66948 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66949
66950         Sync from coreutils.
66951
66952         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
66953         stat-time.h.
66954         * lib/argmatch.h: Include verify.h
66955         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
66956         (ARGMATCH_ASSERT): Remove; unused.
66957         * lib/canonicalize.c: Assume STDC_HEADERS.
66958         * lib/exclude.c: Include "strcase.h".
66959         * lib/regex_internal.h [!defined _LIBC]: Likewise.
66960         * lib/getusershell.c: Include stdio--.h rather than stdio.h
66961         and stdio-safer.h.
66962         (getusershell): Call fopen, not fopen_safer.
66963         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
66964         Do not include unistd-safer.h.
66965         (save_cwd): Don't call fd_safer; no longer needed
66966         now that we include fcntl--.h.
66967
66968         * lib/getdate.y (relative_time): New type.
66969         (RELATIVE_TIME_0): New constant.
66970         (parser_control): Use relative_time instead of doing it ourselves.
66971         (%union): Add new relative_time rel member.
66972         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
66973         Now typeless.
66974         (relunit, relunit_snumber): Now of type rel.
66975         (zone, rel, relunit, get_date): Adjust to above changes.
66976
66977         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
66978         Do not include unistd-safer.h.
66979         (getloadavg): Don't call fd_safer; no longer needed
66980         now that we include fcntl--.h.
66981
66982         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
66983         (make_dir_parents): Treat ENOSYS like EEXIST.
66984
66985         Improve quality of diagnostics on restore_cwd failure.
66986         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
66987         (make_dir_parents): Last arg is now int * (for errno), not bool *.
66988         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
66989         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
66990         each time through the loop.  Do not diagnose restore_cwd failure;
66991         that is the caller's job (and perhaps the caller does not care).
66992
66993         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
66994         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
66995         If the file already exists but is not a directory, don't bother
66996         to try to make its parents.
66997         Close potential file descriptor leak if we can't chdir("/") (!).
66998         Don't always return true if chdir($PWD) fails; return true only
66999         if the requested action was done successfully (except for the
67000         chdir($PWD)).
67001         Don't log final directory unless we actually made it.
67002         Refactor to avoid duplicate code to fix up permissions.
67003         Don't attempt to fix up parent permissions if chdir($PWD) fails.
67004
67005         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
67006         to make it a bit faster and (I hope) clearer.
67007         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
67008         Fix bug in formats like %2N.
67009
67010         * lib/verify.h: New file.
67011
67012 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67013
67014         Sync from coreutils.
67015         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
67016
67017 2005-09-22  Jim Meyering  <jim@meyering.net>
67018
67019         Sync from coreutils.
67020
67021         * m4/lstat.m4 (gl_FUNC_LSTAT):
67022         Use AC_LIBSOURCES to require lstat.c and lstat.h.
67023         Remove obsolete comment.
67024         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
67025         * m4/xstrtod.m4: Likewise.
67026
67027         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
67028
67029 2005-09-22  Jim Meyering  <jim@meyering.net>
67030
67031         Sync from coreutils.
67032
67033         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
67034
67035         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
67036         the .tm_year member, since otherwise gcc-4.0 would now warn about
67037         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
67038
67039         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
67040         order to avoid an unsuppressible warning from gcc on 64-bit systems.
67041
67042         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
67043         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
67044         when run in a time zone for which daylight savings time is in effect
67045         for the starting date.
67046
67047         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
67048         stop us from restricting permissions of just-created absolute-named
67049         directories.
67050         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
67051         to restore initial working directory.
67052         * lib/mkdir-p.c (make_dir_parents): New parameter:
67053         different_working_dir, to tell caller if/when we change the working
67054         directory and are unable to return to the initial one.
67055         * lib/mkdir-p.h (make_dir_parents): Update prototype.
67056         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
67057         `return false'.  This fixes a bug introduced on 2004-07-30.
67058
67059         * lib/openat.c (fdopendir): Be sure to close the supplied
67060         file descriptor before returning.  This makes our replacement
67061         implementation a little closer to Solaris's, where fdopendir
67062         ties the file descriptor to the returned DIR* pointer.
67063         * lib/openat.c (unlinkat): New function.
67064         * lib/openat.h (unlinkat): Add prototype.
67065         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
67066         (openat_restore_fail): Rename from openat_restore_die.
67067         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
67068
67069         Provide an alternative to exiting immediately upon save_cwd or
67070         restore_cwd failure.  Now, an application can arrange e.g.,
67071         to perform a longjump in that case.
67072         * lib/openat.c: Include dirname.h.
67073         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
67074         (rpl_openat, fdopendir, fstatat): Call openat_save_die
67075         and openat_restore_die rather than calling error directly.
67076         Don't include "error.h" or "exitfail.h"; they're no longer needed.
67077
67078         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
67079         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
67080         define.
67081
67082         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
67083         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
67084                             int utc, int nanoseconds);
67085         Background:
67086         date should not have to allocate a megabyte of virtual memory to
67087         handle a format argument like +%1048575T.  When implemented with
67088         strftime, it must allocate such a buffer, use strftime to fill it
67089         in, print it, then free it.
67090         With fprintftime, it simply prints everything and exits.
67091         With no need for memory allocation, that's one fewer way to fail.
67092         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
67093         optional field width, not before, so we accept %9:z, not %:9z.
67094         (my_strftime): Be sure to use L_('x') for literals.
67095
67096         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
67097         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
67098         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
67099         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
67100         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
67101         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
67102         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
67103         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
67104         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
67105         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
67106         * lib/xgethostname.c, lib/xreadlink.c:
67107         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
67108
67109         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
67110         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
67111         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
67112         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67113         and don't include <sys/file.h>).
67114
67115 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
67116
67117         Sync from coreutils.
67118
67119         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
67120         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
67121         [!LDAV_DONE]: Avoid unused variable warning.
67122
67123 2005-09-21  Bruno Haible  <bruno@clisp.org>
67124
67125         * lib/unicodeio.h (unicode_to_mb): New declaration.
67126
67127 2005-09-20  Derek Price  <derek@ximbiot.com>
67128
67129         * lib/getaddrinfo.c: Don't include <netdb.h> included from
67130         getaddrinfo.h.
67131
67132 2005-09-20  Bruno Haible  <bruno@clisp.org>
67133
67134         * gnulib-tool: Remove trailing slashes from the values specified for
67135         --source-base, --m4-base, --tests-base, --aux-dir.
67136         Suggested by Simon Josefsson <jas@extundo.com>.
67137
67138 2005-09-20  Bruno Haible  <bruno@clisp.org>
67139
67140         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
67141         func_modules_to_filelist, func_import, func_create_testdir): Make all
67142         sorting results locale-independent, so that gnulib-cache.m4 doesn't
67143         change when gnulib-tool is invoked in a different locale.
67144
67145 2005-09-19  Simon Josefsson  <jas@extundo.com>
67146
67147         * m4/socklen.m4: Fix typo.
67148
67149 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67150
67151         Use a consistent style for including <config.h>.
67152         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
67153         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
67154         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
67155         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
67156         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
67157         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
67158         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
67159         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
67160         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
67161         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
67162         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
67163         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
67164         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
67165         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
67166         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
67167         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
67168         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
67169         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
67170         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
67171         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
67172         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
67173         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
67174         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
67175         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
67176         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
67177         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
67178         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
67179         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
67180         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
67181         lib/xstrtoumax.c, lib/yesno.c:
67182         Standardize inclusion of config.h.
67183         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
67184         lib/inttostr.h:  Removed inclusion of config.h from header files.
67185         * lib/inttostr.c:  Adjusted in-tree users.
67186         * lib/timespec.h: Remove superfluous warning to include config.h.
67187         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
67188         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
67189         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
67190         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
67191         config.h with HAVE_CONFIG_H.
67192
67193 2005-09-19  Jim Meyering  <jim@meyering.net>
67194
67195         * modules/pathmax (License): Change to LGPL.
67196
67197 2005-09-19  Derek Price  <derek@ximbiot.com>
67198
67199         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
67200
67201 2005-09-19  Bruno Haible  <bruno@clisp.org>
67202
67203         * gnulib-tool (import): Provide default for --tests-base.
67204
67205 2005-09-19  Bruno Haible  <bruno@clisp.org>
67206
67207         * doc/quote.texi: New file, extracted from gnulib.texi.
67208         * doc/ctime.texi: New file, extracted from gnulib.texi.
67209         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
67210         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
67211         * doc/gnulib.texi: Include them.
67212
67213 2005-09-18  Bruno Haible  <bruno@clisp.org>
67214
67215         Portability fix.
67216         * gnulib-tool (func_readlink): New function.
67217         (func_ln_if_changed): Use it.
67218
67219 2005-09-18  Bruno Haible  <bruno@clisp.org>
67220
67221         * gnulib-tool: Support --with-tests also with --import.
67222         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
67223         (func_import): Use variables $testsbase and $inctests. Emit a
67224         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
67225         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
67226         SUBDIRS += $testsdir.
67227         (func_create_testdir): Update.
67228
67229 2005-09-18  Bruno Haible  <bruno@clisp.org>
67230
67231         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
67232         instead of $dry_run.
67233         (func_cp_if_changed, func_mv_if_changed): Remove functions.
67234         (func_ln_if_changed): Don't handle dry-run here.
67235         (func_import): In dry-run mode, detect more precisely which actions
67236         would be performed, and don't use "...ing" verbs.
67237
67238 2005-09-18  Bruno Haible  <bruno@clisp.org>
67239
67240         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
67241         (func_import): Use join on two temporary files instead of three nested
67242         loops, in order to determine which files are new or old.
67243
67244 2005-09-18  Bruno Haible  <bruno@clisp.org>
67245
67246         * gnulib-tool (func_import): Comment out code that spits out the
67247         new files with --dry-run.
67248
67249 2005-09-18  Bruno Haible  <bruno@clisp.org>
67250
67251         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
67252
67253 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67254
67255         * lib/stat-time.h: New file.
67256         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
67257         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
67258         in a different way.
67259         (timespec_cmp): New function.
67260         * lib/utimecmp.c: Include stat-time.h.
67261         (SYSCALL_RESOLUTION): Depend on whether various struct stat
67262         members exist, not on the obsolescent ST_MTIM_NSEC.
67263         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
67264
67265 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67266
67267         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
67268
67269 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67270
67271         * MODULES.html.sh (File system functions): Add stat-time.
67272         * modules/stat-time: New file.
67273         * modules/timespec (Files): Remove m4/st_mtim.m4; this
67274         is now done in a different way, by the stat-time module.
67275         * modules/utimecmp (Depends-on): Add stat-time.
67276
67277 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67278
67279         * m4/st_mtim.m4: Remove.  Superseded by...
67280         * m4/stat-time.m4: New file.
67281         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
67282         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
67283
67284 2005-09-15  Derek Price  <derek@ximbiot.com>
67285
67286         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
67287
67288 2005-09-15  Derek Price  <derek@ximbiot.com>
67289
67290         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
67291         * lib/regex_internal.c: Ditto, using this...
67292         (__GNUC_PREREQ): ...new macro.
67293         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
67294         using...
67295         (__GNUC_PREREQ): ...this new macro.
67296
67297         * lib/strstr.h: Include string.h. Define strstr as a macro here.
67298
67299 2005-09-15  Derek Price  <derek@ximbiot.com>
67300             Paul Eggert  <eggert@cs.ucla.edu>
67301
67302         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
67303         changes, consolidating in...
67304         * lib/regex_internal.h: ...this file.
67305
67306 2005-09-13  Jim Meyering  <jim@meyering.net>
67307
67308         * lib/canon-host.c: Filter through gnu indent and reword comments
67309         slightly.
67310         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
67311
67312 2005-09-13  Derek Price  <derek@ximbiot.com>
67313
67314         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
67315         failure.
67316         Reported by Jim Meyering  <jim@meyering.net>.
67317
67318 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67319
67320         * lib/base64.c: Typo.
67321         (base64_encode): Put b64str in initialized data section.
67322
67323 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
67324
67325         Merge glibc and coreutils changes into gnulib, plus a few
67326         extra fixes.
67327         * lib/md5.c: Use #error rather than a string.
67328         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
67329         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
67330         (__attribute__): Define to empty for non recent-GCC.
67331         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
67332         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
67333         Renamed from their non-__ counterparts, with new macros replacing
67334         them if not _LIBC.  Add __THROW attribute.
67335         (rol): Remove.
67336         (struct md5_ctx): Align buffer if using GCC.
67337         * lib/sha1.h (struct sha1_ctx): Likewise.
67338         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
67339         The old name was backwards.
67340         (NOTSWAP): Remove; not used.
67341         (rol): New macro, moved here from md5.h.
67342         (sha1_process_block): Remove a FIXME that doesn't make sense.
67343
67344 2005-09-12  Derek Price  <derek@ximbiot.com>
67345
67346         Return usable errors from canon-host.
67347         * lib/canon-host.h: New file.
67348         * lib/canon-host.c (canon_host): Wrap...
67349         (canon_host_r): ...this new function, which now relies exclusively on
67350         getaddrinfo.
67351         (ch_strerror): New function.
67352         (last_cherror): New global.
67353         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
67354         interface.
67355         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
67356         void *.
67357         (freeaddrinfo): Free ai->ai_canonname when set.
67358
67359 2005-09-12  Derek Price  <derek@ximbiot.com>
67360
67361         Make canon-host require getaddrinfo.
67362         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
67363         AC_LIBSOURCE canon-host.h.  Call...
67364         (gl_PREREQ_CANON_HOST): ...this new function, which requires
67365         gl_GETADDRINFO.
67366         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
67367
67368 2005-09-12  Derek Price  <derek@ximbiot.com>
67369
67370         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
67371         LGPL.
67372         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
67373
67374 2005-09-12  Derek Price  <derek@ximbiot.com>
67375
67376         * lib/gai_strerror.c: Include config.h when available.  Include
67377         getaddrinfo.h before other headers to test interface.
67378         Reported by Larry Jones <lawrence.jones@ugs.com>.
67379
67380 2005-09-12  Derek Price  <derek@ximbiot.com>
67381             Paul Eggert  <eggert@cs.ucla.edu>
67382
67383         * modules/glob (Files): Add glob-libc.h.
67384
67385 2005-09-12  Derek Price  <derek@ximbiot.com>
67386             Paul Eggert  <eggert@cs.ucla.edu>
67387
67388         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
67389         glob_.h, glob-libc.h.
67390         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
67391
67392 2005-09-12  Derek Price  <derek@ximbiot.com>
67393             Paul Eggert  <eggert@cs.ucla.edu>
67394
67395         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
67396         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
67397         protecting things that should be done only in gnulib contexts.
67398         * lib/glob_.h: New file, containing only the glob things needed for
67399         gnulib.
67400         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
67401         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
67402         (glob, globfree, glob_pattern_p): Now defined simply in terms of
67403         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
67404         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
67405         and to respect the namespace rules better.
67406
67407 2005-09-08  Simon Josefsson  <jas@extundo.com>
67408
67409         * modules/socklen: New file.
67410
67411 2005-09-08  Simon Josefsson  <jas@extundo.com>
67412
67413         * m4/socklen.m4: New file.
67414
67415 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67416
67417         * modules/utimens (Files): Add m4/utimbuf.m4, since
67418         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
67419         Reported by Sergey Poznyakoff.
67420
67421 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67422
67423         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
67424         definitions, since that's the preferred style in glibc.
67425         Fix a minor spacing issue, and update copyright notice to match
67426         glibc's.
67427
67428 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67429
67430         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
67431
67432 2005-09-06  Simon Josefsson  <jas@extundo.com>
67433
67434         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
67435         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
67436
67437 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67438
67439         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
67440         warning.
67441
67442 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67443
67444         * config/srclist.txt: Add glibc bug 1302.
67445
67446 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
67447
67448         Change bitset word type from unsigned int to unsigned long int,
67449         as this has better performance on typical 64-bit hosts.
67450         Port bitset code to hosts with unusual word sizes.
67451         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
67452         (build_collating_symbol):
67453         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
67454         argument is a bitset.  This is merely a style issue, but it makes
67455         it clearer that an entire array is expected.
67456         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
67457         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
67458         Port to the case where bitset_word is not the same as unsigned int.
67459         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67460         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
67461         Likewise.
67462         * lib/regexec.c (check_dst_limits_calc_pos_1,
67463         check_subexp_matching_top):
67464         (build_trtable, group_nodes_into_DFAstates):
67465         Likewise.
67466         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
67467         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
67468         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
67469         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
67470         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
67471         * lib/regcomp.c (optimize_subexps, lower_subexp):
67472         Work even if bitset_word has holes in its bitwise representation.
67473         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
67474         * lib/regexec.c (check_dst_limits_calc_pos_1,
67475         check_subexp_matching_top):
67476         Likewise.
67477         * lib/regex_internal.c (re_string_reconstruct):
67478         Don't assume UCHAR_MAX == 255.
67479         * lib/regex_internal.h (bitset_set_all): Likewise.
67480         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
67481         All uses changed.
67482         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
67483         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
67484         All uses changed.
67485         (BITSET_WORD_MAX): New macro.
67486         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
67487         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
67488         (bitset_empty, bitset_copy):
67489         Prefer sizeof (bitset) to multiplying it out ourselves.
67490         (bitset_not_merge): Remove; unused.
67491         (bitset_contain): Return bool, not unsigned int with one bit on.
67492         All callers changed.
67493         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
67494         alignment than re_node_set; do this by defining a new internal
67495         type struct dests_alloc and using it to allocate memory.
67496
67497 2005-09-05  Bruno Haible  <bruno@clisp.org>
67498
67499         * gnulib-tool (func_import): Fix comparison in handling of symbolic
67500         links.
67501
67502 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
67503
67504         * modules/size_max (Makefile.am): Add size_max.h
67505
67506 2005-09-04  Derek Price  <derek@ximbiot.com>
67507
67508         * gnulib-tool (func_import): Fix reversed $symbolic logic.
67509
67510 2005-09-03  Simon Josefsson  <jas@extundo.com>
67511
67512         * gnulib-tool: Fix typo.
67513
67514 2005-09-03  Simon Josefsson  <jas@extundo.com>
67515
67516         * config/srclist.txt: Add glibc bug 1293.
67517
67518 2005-09-03  Derek Price  <derek@ximbiot.com>
67519
67520         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
67521         From Larry Jones <lawrence.jones@ugs.com>.
67522
67523 2005-09-02  Simon Josefsson  <jas@extundo.com>
67524
67525         * modules/socklen: New file.
67526
67527 2005-09-02  Simon Josefsson  <jas@extundo.com>
67528
67529         * modules/havelib: New module.
67530
67531         * modules/gettext, modules/iconv, modules/lock, modules/readline:
67532         Use havelib.
67533
67534 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67535
67536         Check for arithmetic overflow when calculating sizes, to prevent
67537         some buffer-overflow issues.  These patches are conservative, in the
67538         sense that when I couldn't determine whether an overflow was possible,
67539         I inserted a run-time check.
67540         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
67541         macros.
67542         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
67543         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
67544         (re_xnrealloc, re_x2nrealloc): New inline functions.
67545         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
67546         parse_bracket_exp):
67547         (build_equiv_class, build_charclass): Check for arithmetic overflow
67548         in size expression calculations.
67549         * lib/regex_internal.c (re_string_realloc_buffers):
67550         (build_wcs_upper_buffer, re_node_set_add_intersect):
67551         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
67552         (re_dfa_add_node, register_state): Likewise.
67553         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
67554         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
67555         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
67556         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
67557
67558 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67559
67560         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
67561         m4/ulonglong.m4.  Problem reported by Martin Lambers.
67562
67563 2005-09-02  Bruno Haible  <bruno@clisp.org>
67564
67565         Support for lib vs. lib64 distinction on biarch platforms.
67566         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
67567         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
67568         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
67569
67570 2005-09-02  Bruno Haible  <bruno@clisp.org>
67571
67572         * gnulib-tool (import): In the other first-use case, provide defaults
67573         as well.
67574
67575 2005-09-02  Bruno Haible  <bruno@clisp.org>
67576
67577         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
67578         patches not yet found in the latest gettext release.
67579
67580 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67581
67582         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
67583         to avoid a collision with bits/local_lim.h in glibc.
67584         All uses changed.  Problem reported by Dmitry V. Levin in
67585         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
67586
67587         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
67588         bugs in int versus size_t comparisons.
67589         (re_string_context_at): Fix bug where the code assumed that
67590         Idx is signed.
67591
67592         Use bool where appropriate.
67593         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
67594         All callers changed.
67595         (calc_eclosure_iter): Likewise, for ROOT arg.
67596         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
67597         (build_charclass_op): Likewise, for NON_MATCH arg.
67598         * lib/regex_internal.c (re_string_allocate, re_string_construct):
67599         (re_string_construct_common): Likewise, for ICASE arg.
67600         * lib/regexec.c (re_search_2_stub, re_search_stub):
67601         Likewise, for RET_LEN arg.
67602         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
67603         (set_regs): Likewise, for FL_BACKTRACK arg.
67604         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
67605         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
67606         (calc_eclosure_iter, parse_bracket_exp):
67607         Use bool for internal variables that are booleans.
67608         * lib/regexec.c (re_search_internal, check_matching,
67609         proceed_next_node):
67610         (set_regs, build_sifted_states, sift_states_bkref):
67611         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
67612         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
67613         (find_collation_sequence_value):
67614         Likewise.
67615         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
67616         (re_node_set_compare):
67617         Return bool, not int. All callers changed.
67618         * lib/regexec.c (check_halt_node_context, check_dst_limits):
67619         (build_trtable, check_node_accept): Likewise.
67620         * lib/regex_internal.h: Include stdbool.h.
67621
67622         Fix bugs uncovered when converting to bool.
67623         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
67624         failure instead of charging ahead blindly.
67625         * lib/regex_internal.c (register_state): Likewise.
67626         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
67627         for freeing internal storage.
67628         (group_nodes_into_DFA_states): Use unsigned int, not int, for
67629         bitset pieces used as boolean, to avoid undefined behavior
67630         on hosts that do int overflow checking.
67631
67632 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67633
67634         * config/srclist.txt: Add glibc bugs 1285-1287.
67635
67636 2005-09-01  Jim Meyering  <jim@meyering.net>
67637
67638         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
67639         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
67640         Require gl_STAT_MACROS, too.
67641
67642 2005-09-01  Bruno Haible  <bruno@clisp.org>
67643
67644         * gnulib-tool (import): In the first-use case, provide defaults.
67645
67646 2005-09-01  Bruno Haible  <bruno@clisp.org>
67647
67648         * gnulib-tool (func_import): Remove the .tmp files.
67649
67650 2005-09-01  Bruno Haible  <bruno@clisp.org>
67651
67652         * gnulib-tool (func_import): Fix handling of symbolic links.
67653
67654 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67655
67656         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
67657         old glibc regex code mishandles strings longer than 2**31 bytes.
67658         This patch fixes this when the regex code is used in gnulib
67659         (i.e., outside glibc).
67660
67661         This patch should not affect the use of the regex code inside
67662         glibc.  No doubt this problem also needs to be handled for glibc
67663         as well, but the result will be an incompatible change to the
67664         glibc ABI, and the old ABI will have to be supported too.  That
67665         can be the the subject for another patch.
67666
67667         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
67668         governing whether the rest of this patch is active.  By default,
67669         the macro is disabled and the patch has no effect.
67670         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
67671         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
67672         (struct re_pattern_buffer, re_search, re_search_2, re_match):
67673         (re_match_2, re_set_registers): Use the new types.
67674         * lib/regex_internal.h (Idx, re_hashval_t): New types.
67675         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
67676         New macros.
67677         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
67678         (re_string_context_at, bin_tree_t, re_dfastate_t):
67679         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
67680         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
67681         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
67682         (re_string_char_size_at, re_string_wchar_at):
67683         (re_string_elem_size_at):
67684         Use the new types and macros to port to 64-bit hosts.
67685         Use unsigned types for internal values, so that the code
67686         mostly works even for arrays larger than SSIZE_MAX.
67687         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
67688         (search_duplicated_node, calc_eclosure_iter, fetch_number):
67689         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
67690         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
67691         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
67692         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
67693         (calc_inveclosure, parse_dup_op, build_range_exp):
67694         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
67695         (fetch_number, create_token_tree, mark_opt_subexp):
67696         Likewise.
67697         * lib/regex_internal.c (re_string_construct_common,
67698         create_ci_newstate):
67699         (create_cd_newstate, re_string_allocate, re_string_construct):
67700         (re_string_realloc_buffers, build_wcs_upper_buffer):
67701         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
67702         (re_string_reconstruct, re_string_peek_byte_case):
67703         (re_string_fetch_byte_case, re_string_context_at):
67704         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
67705         (re_node_set_init_copy, re_node_set_add_intersect):
67706         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67707         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67708         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
67709         (re_acquire_state, re_acquire_state_context, register_state):
67710         Likewise.
67711         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
67712         search_cur_bkref_entry):
67713         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
67714         (re_search_internal, re_search_2_stub, re_search_stub)
67715         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
67716         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
67717         (update_cur_sifted_state, check_dst_limits):
67718         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
67719         (check_subexp_limits, sift_states_bkref, merge_state_array):
67720         (check_subexp_matching_top, get_subexp, get_subexp_sub):
67721         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
67722         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
67723         (expand_bkref_cache, check_node_accept_bytes):
67724         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
67725         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
67726         (acquire_init_state_context, check_halt_node_context):
67727         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
67728         (sift_states_backward, clean_state_log_if_needed):
67729         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
67730         (find_recover_state, transit_state_sb, transit_state_mb):
67731         (transit_state_bkref, build_trtable, match_ctx_clean):
67732         Likewise.
67733         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
67734         to work around an assumption that REG_MISSING is negative.
67735
67736         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
67737         (seek_collating_symbol_entry) [defined _LIBC]:
67738         (lookup_collation_sequence_value) [defined _LIBC]:
67739         (build_range_exp, build_collating_symbol) [defined _LIBC]:
67740         Use prototypes rather than old-style function definitions.
67741         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
67742         (transit_state_sb) [0]:
67743         (find_collation_sequence_value) [defined _LIBC]: Likewise.
67744
67745         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
67746         rm_eo.
67747
67748         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
67749         (optimize_subexps, lower_subexp):
67750         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
67751         since the signed shift might overflow.  Use 1u<<31 instead.
67752         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67753         Likewise.
67754         * lib/regexec.c (check_dst_limits_calc_pos_1,
67755         check_subexp_matching_top): Likewise.
67756
67757         * lib/regcomp.c (optimize_subexps, lower_subexp):
67758         Use CHAR_BIT rather than 8, for clarity.
67759         * lib/regexec.c (check_dst_limits_calc_pos_1):
67760         (check_subexp_matching_top): Likewise.
67761         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
67762         have to worry about portability issues when shifting it left.
67763         Remove no-longer-needed test for table_size > 0.
67764         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
67765         in a word, as the resulting behavior is undefined.
67766         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
67767         in one case, a <= should have been an <, and in another case the
67768         whole test was missing.
67769         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
67770         the standard name CHAR_BIT.
67771         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
67772         this is not true on one's complement and signed-magnitude hosts.
67773
67774         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
67775         next_last_offset.
67776         (struct re_dfa_t): Remove unused member states_alloc.
67777         * lib/regcomp.c (init_dfa): Don't initialize unused members.
67778
67779 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67780
67781         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
67782         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
67783         and large-file glibc and in 32-bit large-file Solaris.
67784
67785 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67786
67787         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
67788         lengths fit in regoff_t; this isn't true if regoff_t is the same
67789         width as size_t.
67790         * lib/regex.c (re_search_internal): 5th arg is LAST_START
67791         (= START + RANGE) instead of RANGE.  This avoids overflow
67792         problems when regoff_t is the same width as size_t.
67793         All callers changed.
67794         (re_search_2_stub): Check for overflow when adding the
67795         sizes of the two strings.
67796         (re_search_stub): Check for overflow when adding START
67797         to RANGE; if it occurs, substitute the extreme value.
67798
67799 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67800
67801         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
67802
67803 2005-08-31  Jim Meyering  <jim@meyering.net>
67804
67805         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
67806         a pointer-to-const.
67807         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
67808         (register_state): Likewise.
67809         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
67810         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
67811         (group_nodes_into_DFAstates): Likewise.
67812
67813 2005-08-31  Jim Meyering  <jim@meyering.net>
67814
67815         * check-module: Add a FIXME comment.
67816
67817 2005-08-31  Eric Blake  <ebb9@byu.net>
67818
67819         * modules/unistd-safer (Files): Add unistd--.h.
67820         * modules/stdio-safer (Files): Add stdio--.h.
67821
67822 2005-08-31  Derek Price  <derek@ximbiot.com>
67823
67824         * lib/getdelim.c (getdelim): Return EOF on EOF.
67825         Reported by Larry Jones <lawrence.jones@ugs.com>.
67826
67827 2005-08-31  Bruno Haible  <bruno@clisp.org>
67828
67829         Avoid unnecessary diffs in the generated lib/Makefile.am.
67830         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
67831         the generated files.
67832         (func_import): Don't set cmd.
67833
67834 2005-08-31  Bruno Haible  <bruno@clisp.org>
67835
67836         * lib/strstr.c: Include <stddef.h>, for NULL.
67837         * lib/strcasestr.c: Likewise.
67838         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67839
67840 2005-08-31  Bruno Haible  <bruno@clisp.org>
67841
67842         * gnulib-tool: New option --macro-prefix.
67843         (func_import): Use macro_prefix.
67844         (import): Handle option --macro-prefix.
67845
67846 2005-08-31  Bruno Haible  <bruno@clisp.org>
67847
67848         * gnulib-tool (import): Rename most ac_* variables to cached_*.
67849         Also use new variables cached_lgpl, cached_libtool.
67850
67851 2005-08-31  Bruno Haible  <bruno@clisp.org>
67852
67853         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
67854         always instantiating them.
67855
67856 2005-08-31  Bruno Haible  <bruno@clisp.org>
67857
67858         * gnulib-tool (func_import): Read the previous cached settings
67859         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
67860         earlier added by gnulib but are now dropped. Warn when a gnulib file
67861         overwrites a non-gnulib file.
67862
67863 2005-08-31  Bruno Haible  <bruno@clisp.org>
67864
67865         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
67866         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
67867         projects that don't keep autogenerated files in CVS. Put into
67868         actioncmd only the specified modules, not the transitive closure.
67869
67870 2005-08-31  Bruno Haible  <bruno@clisp.org>
67871
67872         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
67873         Create directories that shall be filled.
67874         (import): Don't look for gl_* macros in configure.ac. Recurse across
67875         all directories containing a gnulib-cache.m4 files, if meaningful.
67876
67877 2005-08-31  Bruno Haible  <bruno@clisp.org>
67878
67879         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
67880         (import): Set seen_libtool when we see gl_LIBTOOL.
67881
67882 2005-08-31  Bruno Haible  <bruno@clisp.org>
67883
67884         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
67885         declaration macro definitions from generated gnulib.m4.
67886
67887 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
67888
67889         * lib/iconvme.h: Add prototype for iconv_alloc.
67890
67891 2005-08-29  Simon Josefsson  <jas@extundo.com>
67892
67893         * lib/iconvme.c: Fix errno.
67894
67895 2005-08-29  Bruno Haible  <bruno@clisp.org>
67896
67897         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
67898         that it works when the directory contains spaces.
67899
67900 2005-08-29  Bruno Haible  <bruno@clisp.org>
67901
67902         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
67903
67904 2005-08-29  Bruno Haible  <bruno@clisp.org>
67905
67906         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
67907         Emit more advice.
67908
67909 2005-08-29  Bruno Haible  <bruno@clisp.org>
67910         and Stepan Kasal  <kasal@ucw.cz>
67911
67912         * check-module: If more parameters are given, check each of them
67913         separately; add more exceptions, as noted by Jim Meyering.
67914         (check_module): New procedure.
67915         (%exempt_header): Now contains all exceptions.
67916
67917 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
67918
67919         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
67920
67921 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
67922
67923         * lib/iconvme.c: Split iconv_string into iconv_alloc.
67924
67925 2005-08-28  Bruno Haible  <bruno@clisp.org>
67926
67927         * m4/gnulib-tool.m4: New file.
67928
67929 2005-08-27  Jim Meyering  <jim@meyering.net>
67930
67931         * modules/unistd-safer (Files): Add pipe-safer.c.
67932         * modules/fcntl-safer (Files): Add creat-safer.c.
67933
67934 2005-08-27  Jim Meyering  <jim@meyering.net>
67935
67936         * m4/stdlib-safer.m4: New file.  From coreutils.
67937         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
67938         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
67939         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
67940         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
67941         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
67942
67943 2005-08-27  Jim Meyering  <jim@meyering.net>
67944
67945         * lib/fopen-safer.c: Merge minor changes from coreutils.
67946         * lib/dup-safer.c: Likewise.
67947         * lib/fd-safer.c: Likewise.
67948
67949         Merge from coreutils.
67950         * lib/stdio--.h: New file.
67951         * lib/stdlib--.h: New file.
67952         * lib/mkstemp-safer.c: New file.
67953
67954         GNU tar needs these.
67955         * lib/pipe-safer.c: New file.
67956         * lib/creat-safer.c: New file.
67957         * lib/fcntl--.h (creat): Define to creat_safer.
67958         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
67959         * lib/unistd--.h (pipe): Define to pipe_safer.
67960         * lib/unistd-safer.h: Declare pipe_safer.
67961
67962 2005-08-26  Simon Josefsson  <jas@extundo.com>
67963
67964         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
67965         Haible <bruno@clisp.org>.
67966
67967 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
67968
67969         * lib/regex_internal.h: Remove all references to
67970         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
67971         or better.
67972         (bitset_not, bitset_merge, bitset_not_merge):
67973         (bitset_mask, re_string_allocate, re_string_construct):
67974         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
67975         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
67976         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
67977         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
67978         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67979         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67980         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
67981         (re_acquire_state_context):
67982         Remove unnecessary forward decls.
67983         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
67984         Put __attribute at function definition,
67985         now that the function decl has been removed.
67986         * lib/regex_internal.c (re_string_peek_byte_case):
67987         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
67988         Likewise.
67989
67990 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
67991
67992         * m4/regex.m4: Add AC_PREREQ(2.50).
67993         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
67994
67995 2005-08-25  Simon Josefsson  <jas@extundo.com>
67996
67997         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
67998         __fsetlocking.
67999
68000 2005-08-25  Simon Josefsson  <jas@extundo.com>
68001
68002         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
68003         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
68004         GLIBC specific code.
68005
68006 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68007
68008         Make regex safe for g++.  This fixes one real bug (an "err"
68009         that should have been "*err").  g++ problem reported by
68010         Sam Steingold.
68011         * lib/regex_internal.h (re_calloc): New macro, consistent with
68012         re_malloc etc.  All callers of calloc changed to use re_calloc.
68013         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
68014         not int.  All callers changed.
68015         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
68016         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
68017         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
68018         (find_recover_state): Change "err" to "*err"; this fixes what
68019         appears to be a real bug.
68020         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
68021         versus int.
68022
68023 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68024
68025         * modules/regex (Depends-on): Add malloc, since the code
68026         assumes that !malloc(0) means failure.
68027
68028 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68029
68030         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
68031
68032         alloca modernization/simplification for regex.
68033         * lib/regex.c: Remove portability cruft for alloca.  This no longer
68034         needs to be at the start of the file, and can be moved into
68035         regex_internal.h and simplified.
68036         * lib/regex_internal.h: Include <alloca.h>.
68037         (__libc_use_alloca) [!defined _LIBC]: New macro.
68038         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
68039         now works outside glibc.
68040
68041 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68042
68043         * config/srclist.txt: Add glibc bugs 1241, 1245.
68044
68045 2005-08-25  Jim Meyering  <jim@meyering.net>
68046
68047         * lib/open-safer.c: Include <config.h>.
68048         Otherwise, we'd lose LARGEFILE support in any file using
68049         e.g. "fcntl--.h"
68050
68051 2005-08-25  Bruno Haible  <bruno@clisp.org>
68052
68053         * m4/minmax.m4: Require autoconf 2.52.
68054         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
68055         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
68056         alternatives of translit over the alphabet.
68057         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
68058
68059 2005-08-24  Simon Josefsson  <jas@extundo.com>
68060
68061         * tests/test-getpass.c: New file.
68062
68063 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68064
68065         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
68066         for GNU regex features.
68067
68068 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68069
68070         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
68071         * lib/regex.h (regerror): Likewise.
68072
68073         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
68074         requires this.  (The code never needed it.)
68075
68076         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
68077         All uses of recently-renamed identifiers changed to use the new,
68078         POSIX-compliant names.  The code will build and run just fine
68079         without these changes, but it's better to eat our own dog food
68080         and use the standard-conforming names.
68081
68082         * lib/regex.h: Fix a multitude of POSIX name space violations.
68083         These changes have an effect only for programs that define
68084         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
68085         do not change anything for programs compiled in the normal way.
68086         Also, there is no effect on the ABI.
68087
68088         (_REGEX_SOURCE): New macro.
68089         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
68090         defined and _GNU_SOURCE is not; this fixes a name space violation.
68091
68092         Rename the following macros to obey POSIX requirements.
68093         The old names are still visible as macros if _REGEX_SOURCE is defined.
68094         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
68095         RE_BACKSLASH_ESCAPE_IN_LISTS.
68096         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
68097         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
68098         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
68099         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
68100         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
68101         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
68102         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
68103         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
68104         (REG_INTERVALS): renamed from RE_INTERVALS.
68105         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
68106         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
68107         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
68108         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
68109         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
68110         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
68111         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
68112         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
68113         RE_UNMATCHED_RIGHT_PAREN_ORD.
68114         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
68115         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
68116         (REG_DEBUG): renamed from RE_DEBUG.
68117         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
68118         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
68119         unusual, since we can't clash with the POSIX REG_ICASE.
68120         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
68121         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
68122         (REG_NO_SUB): renamed from RE_NO_SUB.
68123         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
68124         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
68125         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
68126         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
68127         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
68128         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
68129         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
68130         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
68131         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
68132         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
68133         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
68134         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
68135         RE_SYNTAX_POSIX_MINIMAL_BASIC.
68136         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
68137         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
68138         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
68139         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
68140         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
68141         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
68142         (REG_FIXED): Renamed from REGS_FIXED.
68143         (REG_NREGS): Renamed from RE_NREGS.
68144
68145         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
68146         of other REG_* macros, since POSIX says the user is allowed to
68147         #undef these macros selectively.
68148
68149         (reg_errcode_t): Update comment stating what other tables need
68150         to be consistent.
68151
68152         Rename the following enum values to obey POSIX requirements.
68153         The old names are still visible as macros.
68154         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
68155         is not defined, since GNU is supposed to be a superset of POSIX as
68156         much as possible, and since we want reg_errcode_t to be a signed
68157         type for implementation consistency.
68158         (_REG_NOERROR): Renamed from REG_NOERROR.
68159         (_REG_NOMATCH): Renamed from REG_NOMATCH.
68160         (_REG_BADPAT): Renamed from REG_BADPAT.
68161         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
68162         (_REG_ECTYPE): Renamed from REG_ECTYPE.
68163         (_REG_EESCAPE): Renamed from REG_EESCAPE.
68164         (_REG_ESUBREG): Renamed from REG_ESUBREG.
68165         (_REG_EBRACK): Renamed from REG_EBRACK.
68166         (_REG_EPAREN): Renamed from REG_EPAREN.
68167         (_REG_EBRACE): Renamed from REG_EBRACE.
68168         (_REG_BADBR): Renamed from REG_BADBR.
68169         (_REG_ERANGE): Renamed from REG_ERANGE.
68170         (_REG_ESPACE): Renamed from REG_ESPACE.
68171         (_REG_BADRPT): Renamed from REG_BADRPT.
68172         (_REG_EEND): Renamed from REG_EEND.
68173         (_REG_ESIZE): Renamed from REG_ESIZE.
68174         (_REG_ERPAREN): Renamed from REG_ERPAREN.
68175         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
68176         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
68177         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
68178         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
68179
68180         (_REG_RE_NAME, _REG_RM_NAME): New macros.
68181         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
68182         changed.  But support the old name if the new one is not defined
68183         and if _REGEX_SOURCE.
68184
68185         Change the following member names in struct re_pattern_buffer.
68186         The old names are still supported if !_REGEX_SOURCE.
68187         The new names are always supported, regardless of _REGEX_SOURCE.
68188         (re_buffer): Renamed from buffer.
68189         (re_allocated): Renamed from allocated.
68190         (re_used): Renamed from used.
68191         (re_syntax): Renamed from syntax.
68192         (re_fastmap): Renamed from fastmap.
68193         (re_translate): Renamed from translate.
68194         (re_can_be_null): Renamed from can_be_null.
68195         (re_regs_allocated): Renamed from regs_allocated.
68196         (re_fastmap_accurate): Renamed from fastmap_accurate.
68197         (re_no_sub): Renamed from no_sub.
68198         (re_not_bol): Renamed from not_bol.
68199         (re_not_eol): Renamed from not_eol.
68200         (re_newline_anchor): Renamed from newline_anchor.
68201
68202         Change the following member names in struct re_registers.
68203         The old names are still supported if !_REGEX_SOURCE.
68204         The new names are always supported, regardless of _REGEX_SOURCE.
68205         (rm_num_regs): Renamed from num_regs.
68206         (rm_start): Renamed from start.
68207         (rm_end): Renamed from end.
68208
68209         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
68210         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
68211         Prepend __ to parameter names.
68212
68213         Undo yesterday's changes.
68214
68215 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68216
68217         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
68218         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
68219         lib/regex.c.
68220
68221 2005-08-24  Jim Meyering  <jim@meyering.net>
68222
68223         Sync from coreutils.
68224         * m4/fcntl-safer.m4: New file.
68225
68226         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
68227         and object files for this module.
68228
68229 2005-08-24  Jim Meyering  <jim@meyering.net>
68230
68231         Sync from coreutils.
68232         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
68233
68234 2005-08-24  Jim Meyering  <jim@meyering.net>
68235
68236         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
68237         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
68238
68239 2005-08-24  Jim Meyering  <jim@meyering.net>
68240
68241         * modules/fcntl-safer: New module.
68242         * modules/fts (Depends-on): Add fcntl-safer.
68243         * MODULES.html.sh (File descriptor based Input/Output):
68244         Add fcntl-safer.
68245
68246 2005-08-24  Bruno Haible  <bruno@clisp.org>
68247
68248         Support for unit test modules.
68249         * modules/README: Mention tests modules.
68250         * modules/TEMPLATE-TESTS: New file.
68251         * gnulib-tool: New options --extract-tests-module, --with-tests and
68252         --tests-base (unused for the moment).
68253         (testsbase, inctests): New variables.
68254         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
68255         (func_verify_module): Exclude TEMPLATE-TESTS.
68256         (func_verify_nontests_module, func_verify_tests_module): New functions.
68257         (func_get_dependencies): Add implicit dependency for tests modules.
68258         (func_get_tests_module): New function.
68259         (func_modules_transitive_closure): When --with-tests was specified,
68260         include the unit tests as well, unless explicitly avoided.
68261         (func_emit_lib_Makefile_am): Ignore the tests modules here.
68262         (func_emit_tests_Makefile_am): New function.
68263         (func_create_testdir): When --with-tests was specified, emit a
68264         tests/ directory.
68265         * MODULES.html.sh (Future developments): Update.
68266
68267 2005-08-24  Bruno Haible  <bruno@clisp.org>
68268
68269         * modules/tls-tests: New file.
68270         * tests/test-tls.c: New file, from GNU gettext.
68271
68272 2005-08-24  Bruno Haible  <bruno@clisp.org>
68273
68274         * modules/lock-tests: New file.
68275         * tests/test-lock.c: New file, from GNU gettext.
68276
68277 2005-08-24  Bruno Haible  <bruno@clisp.org>
68278
68279         * lib/lock.h: Add multiple inclusion guard.
68280         * lib/tls.h: Add multiple inclusion guard.
68281
68282 2005-08-24  Bruno Haible  <bruno@clisp.org>
68283
68284         * gnulib-tool: Add support for the --aux-dir option to
68285         --create-testdir, --create-megatestdir, --test, --megatest.
68286         (func_create_testdir, func_create_megatestdir): Optionally emit a
68287         AC_CONFIG_AUX_DIR directive.
68288         (create-testdir, create-megatestdir, test, megatest): Provide a
68289         default value for $auxdir.
68290
68291 2005-08-24  Bruno Haible  <bruno@clisp.org>
68292
68293         * gnulib-tool (import): Use compound statement instead of subshell
68294         where possible.
68295
68296 2005-08-24  Bruno Haible  <bruno@clisp.org>
68297
68298         * gnulib-tool (import): Change --aux-dir default to "build-aux".
68299
68300 2005-08-24  Bruno Haible  <bruno@clisp.org>
68301
68302         * gnulib-tool (func_version): Update.
68303
68304 2005-08-24  Bruno Haible  <bruno@clisp.org>
68305
68306         * gnulib-tool (func_import, func_create_testdir,
68307         func_create_megatestdir): Quote all autoconf macro arguments.
68308
68309 2005-08-24  Bruno Haible  <bruno@clisp.org>
68310
68311         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
68312         option --force, because --force causes the aclocal.m4 of each
68313         subdirectory to be newer than the corresponding config.h.in.
68314
68315 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68316
68317         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
68318         All contents moved to gl_REGEX.
68319         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
68320         assume that it does.
68321
68322 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68323
68324         * lib/regex.h (REG_NOSYS)
68325         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
68326         Define, since POSIX requires it as of 2001.
68327         (_REG_ENOSYS)
68328         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
68329         New private symbol, used to keep the enum signed in all cases.
68330         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
68331         Youngman in
68332         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
68333
68334         * lib/regex_internal.c (re_string_skip_chars, register_state):
68335         (calc_state_hash):
68336         Remove forward decls; no longer needed now that we use prototypes.
68337         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
68338         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
68339         (clean_state_log_if_needed): Likewise.
68340
68341 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68342
68343         * config/srclist.txt: Add glibc bugs 1231-1233.
68344
68345 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68346
68347         Fix problems reported by Sam Steingold in
68348         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
68349         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
68350         assumed that reg_errcode_t is a signed type, which is not
68351         necessarily true if _XOPEN_SOURCE is not defined.
68352         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
68353         since some compilers warn about it otherwise.
68354
68355 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68356
68357         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
68358         (init_word_char, create_initial_state, duplicate_node_closure):
68359         (fetch_token, peek_token_bracket, build_range_exp):
68360         (build_collating_symbol): Remove forward decls; no longer needed
68361         now that we use prototypes.
68362
68363         * lib/regcomp.c:
68364         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
68365         (re_compile_fastmap_iter, regcomp, regerror, regfree):
68366         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
68367         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
68368         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
68369         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
68370         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
68371         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
68372         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
68373         (build_range_exp, build_collating_symbol, parse_bracket_exp):
68374         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
68375         (build_charclass, build_charclass_op, fetch_number, create_tree):
68376         (create_token_tree, mark_opt_subexp, duplicate_tree):
68377         Use prototypes rather than old-style definitions.
68378
68379         * lib/regex_internal.c:
68380         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
68381         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
68382         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
68383         (re_string_reconstruct, re_string_peek_byte_case):
68384         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
68385         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
68386         (re_node_set_init_copy, re_node_set_add_intersect):
68387         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68388         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68389         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
68390         (re_acquire_state, re_acquire_state_context, register_state):
68391         (create_ci_newstate, create_cd_newstate, free_state):
68392         Likewise.
68393         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
68394         re_search_2):
68395         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
68396         (re_search_internal, prune_impossible_nodes):
68397         (acquire_init_state_context, check_matching, static):
68398         (check_halt_node_context, check_halt_state_context, proceed_next_node):
68399         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
68400         (update_regs, sift_states_backward, build_sifted_states):
68401         (clean_state_log_if_needed, merge_state_array):
68402         (update_cur_sifted_state, add_epsilon_src_nodes):
68403         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
68404         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
68405         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
68406         (find_recover_state, check_subexp_matching_top, transit_state_mb):
68407         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
68408         (check_arrival, check_arrival_add_next_nodes):
68409         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
68410         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
68411         (check_node_accept_bytes, check_node_accept, extend_buffers):
68412         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
68413         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
68414         (sift_ctx_init):
68415         Likewise.
68416
68417         * lib/regex_internal.h:
68418         (re_string_allocate, re_string_construct, re_string_reconstruct):
68419         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
68420         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
68421         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
68422         (re_string_context_at, re_string_peek_byte_case):
68423         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
68424         is defined, since we now use prototypes always.
68425
68426         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
68427         C89 or better.  All uses removed.
68428
68429 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68430
68431         * config/srclist.txt: Add glibc bugs 1220-1227.
68432
68433 2005-08-20  Jim Meyering  <jim@meyering.net>
68434
68435         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
68436         of unused local, dfa.
68437
68438 2005-08-20  Bruno Haible  <bruno@clisp.org>
68439
68440         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
68441
68442 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68443
68444         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
68445         (re_node_set_insert_last, re_dfa_add_node):
68446         Rename local variables to avoid GCC shadowing warnings.
68447
68448 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68449
68450         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
68451         [defined lint]: Suppress bogus uninitialized-variable warnings.
68452
68453         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
68454         and let the caller return REG_ESPACE if out of space.  This
68455         removes an uninitialied-variable warning with GCC 4.0.1, and also
68456         avoids taking the address of a local variable.  All callers
68457         changed.
68458
68459 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68460
68461         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
68462         $LIBCSRC/posix/regexec.c.
68463         Add glibc bug 1217 for regcomp.c.
68464
68465 2005-08-19  Jim Meyering  <jim@meyering.net>
68466
68467         * lib/regexec.c (proceed_next_node): Redo local variables to
68468         avoid GCC shadowing warnings.
68469
68470 2005-08-18  Bruno Haible  <bruno@clisp.org>
68471
68472         * lib/strstr.c (strstr): Fix return value in multibyte case.
68473         * lib/strcasestr.c (strcasestr): Likewise.
68474
68475 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68476
68477         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
68478
68479 2005-08-17  Jim Meyering  <jim@meyering.net>
68480
68481         Make the %s format (seconds since the epoch) work for a negative
68482         number and when used with a zero-padded field width, e.g. %015s.
68483
68484         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
68485         label so that it precedes the code to set `digits'.  Otherwise,
68486         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
68487         print `00-22'.  Now, it prints `-0022', as it should.
68488
68489 2005-08-17  Bruno Haible  <bruno@clisp.org>
68490
68491         * modules/strstr (Files): Add m4/mbrtowc.m4.
68492         (Depends-on): Add mbuiter.
68493
68494 2005-08-17  Bruno Haible  <bruno@clisp.org>
68495
68496         * modules/strcasestr: New file.
68497         * MODULES.html.sh (String handling, based on ANSI C 89): Add
68498         strcasestr.
68499
68500 2005-08-17  Bruno Haible  <bruno@clisp.org>
68501
68502         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
68503
68504 2005-08-17  Bruno Haible  <bruno@clisp.org>
68505
68506         * modules/mbuiter: New file.
68507         * MODULES.html.sh (Extended multibyte and wide character utilities):
68508         Add mbuiter.
68509
68510 2005-08-17  Bruno Haible  <bruno@clisp.org>
68511
68512         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
68513         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
68514
68515 2005-08-17  Bruno Haible  <bruno@clisp.org>
68516
68517         * m4/strcasestr.m4: New file.
68518
68519 2005-08-17  Bruno Haible  <bruno@clisp.org>
68520
68521         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
68522         * lib/strstr.c: Completely rewritten, with multibyte locale support.
68523
68524 2005-08-17  Bruno Haible  <bruno@clisp.org>
68525
68526         * lib/strcasestr.h: New file.
68527         * lib/strcasestr.c: New file.
68528
68529 2005-08-17  Bruno Haible  <bruno@clisp.org>
68530
68531         * lib/strcasecmp.c: Use mbuiter.h.
68532
68533 2005-08-17  Bruno Haible  <bruno@clisp.org>
68534
68535         * lib/mbuiter.h: New file.
68536
68537 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68538
68539         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
68540         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
68541         and gl_GETOPT are both invoked via different paths (as happens
68542         with GNU tar CVS because it uses both argp and getopt), the former
68543         wins.
68544
68545 2005-08-16  Bruno Haible  <bruno@clisp.org>
68546
68547         * modules/tls: New file.
68548         * MODULES.html.sh (Multithreading): Add tls.
68549
68550 2005-08-16  Bruno Haible  <bruno@clisp.org>
68551
68552         * modules/strnlen1: New file.
68553         * MODULES.html.sh (String handling): Add strnlen1.
68554
68555 2005-08-16  Bruno Haible  <bruno@clisp.org>
68556
68557         * modules/strcase (Files): Add m4/mbrtowc.m4.
68558         (Depends-on): Add strnlen1, mbchar.
68559
68560 2005-08-16  Bruno Haible  <bruno@clisp.org>
68561
68562         * modules/mbiter: New file.
68563         * MODULES.html.sh (Extended multibyte and wide character utilities):
68564         Add mbiter.
68565
68566 2005-08-16  Bruno Haible  <bruno@clisp.org>
68567
68568         * modules/mbfile: New file.
68569         * MODULES.html.sh (Extended multibyte and wide character utilities):
68570         Add mbfile.
68571
68572 2005-08-16  Bruno Haible  <bruno@clisp.org>
68573
68574         * modules/mbchar: New file.
68575         * MODULES.html.sh (Extended multibyte and wide character utilities):
68576         New section.
68577
68578 2005-08-16  Bruno Haible  <bruno@clisp.org>
68579
68580         * m4/tls.m4: New file, from GNU gettext.
68581
68582 2005-08-16  Bruno Haible  <bruno@clisp.org>
68583
68584         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
68585         always.
68586         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
68587
68588 2005-08-16  Bruno Haible  <bruno@clisp.org>
68589
68590         * m4/mbiter.m4: New file.
68591
68592 2005-08-16  Bruno Haible  <bruno@clisp.org>
68593
68594         * m4/mbfile.m4: New file.
68595
68596 2005-08-16  Bruno Haible  <bruno@clisp.org>
68597
68598         * m4/mbchar.m4: New file.
68599
68600 2005-08-16  Bruno Haible  <bruno@clisp.org>
68601
68602         * lib/tls.h: New file, from GNU gettext.
68603         * lib/tls.c: New file, from GNU gettext.
68604
68605 2005-08-16  Bruno Haible  <bruno@clisp.org>
68606
68607         * lib/strnlen1.h: New file.
68608         * lib/strnlen1.c: New file.
68609
68610 2005-08-16  Bruno Haible  <bruno@clisp.org>
68611
68612         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
68613         (mbi_init): Update.
68614         (mbi_avail, mbi_advance): Let the iteration end before the terminating
68615         NUL byte, not after it.
68616
68617 2005-08-16  Bruno Haible  <bruno@clisp.org>
68618
68619         * lib/strcase.h (strcasecmp): Add note in comments.
68620         * lib/strncasecmp.c: Use code from strcasecmp.c.
68621         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
68622         (strcasecmp): Work correctly in multibyte locales.
68623
68624 2005-08-16  Bruno Haible  <bruno@clisp.org>
68625
68626         * lib/mbiter.h: New file.
68627
68628 2005-08-16  Bruno Haible  <bruno@clisp.org>
68629
68630         * lib/mbfile.h: New file.
68631
68632 2005-08-16  Bruno Haible  <bruno@clisp.org>
68633
68634         * lib/mbchar.h: New file.
68635         * lib/mbchar.c: New file.
68636
68637 2005-08-16  Bruno Haible  <bruno@clisp.org>
68638
68639         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
68640         the valid ones. Makes the comparison operations transitive:
68641         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
68642         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
68643
68644 2005-08-15  Simon Josefsson  <jas@extundo.com>
68645
68646         * modules/ssize_t (License): Change to 'unlimited'.
68647
68648         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
68649
68650 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68651
68652         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
68653         Add comments for each pending glibc patch.
68654
68655 2005-08-15  Bruno Haible  <bruno@clisp.org>
68656
68657         * lib/regex.h (__restrict_arr): Don't define to __restrict if
68658         __cplusplus is defined.
68659
68660 2005-08-14  Jim Meyering  <jim@meyering.net>
68661
68662         Sync from coreutils.
68663
68664         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
68665         Use the hash-table-based cycle-detection code not just when
68666         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
68667         Reported by James Youngman in
68668         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
68669         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
68670         FTS_TIGHT_CYCLE_CHECK.
68671         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
68672         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
68673         once again.
68674         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
68675         * lib/fts.c (fd_safer): Remove decl.
68676         Include fcntl--.h rather than unistd-safer.h
68677         (fts_safe_changedir): Don't call fd_safer; no longer needed
68678         now that we include fcntl--.h.
68679
68680 2005-08-12  Simon Josefsson  <jas@extundo.com>
68681
68682         * modules/getndelim2: Use ssize_t module.
68683         * modules/getnline: Likewise.
68684         * modules/safe-read: Likewise.
68685         * modules/xreadlink: Likewise.
68686
68687         * modules/ssize_t: New file.
68688
68689 2005-08-12  Simon Josefsson  <jas@extundo.com>
68690
68691         * m4/readline.m4: Look for termcap, curses or ncurses if required.
68692
68693 2005-08-12  Simon Josefsson  <jas@extundo.com>
68694
68695         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68696         ssize_t.
68697
68698 2005-08-12  Simon Josefsson  <jas@extundo.com>
68699
68700         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
68701         readline, getdelim and check_version.
68702         (Support for systems lacking ISO C 99: Sizes of integer types):
68703         Add size_max.
68704
68705 2005-08-12  Bruno Haible  <bruno@clisp.org>
68706
68707         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
68708
68709 2005-08-11  Simon Josefsson  <jas@extundo.com>
68710
68711         * modules/readline: New file.
68712
68713         * modules/strnlen (Files): Add strnlen.h.
68714
68715 2005-08-11  Simon Josefsson  <jas@extundo.com>
68716
68717         * m4/readline.m4: New file.
68718
68719 2005-08-11  Simon Josefsson  <jas@extundo.com>
68720
68721         * lib/readline.h, readline.c: New file.
68722
68723 2005-08-11  Simon Josefsson  <jas@extundo.com>
68724
68725         * doc/gnulib.texi (Initial import, Finishing touches): Mention
68726         gl_AVOID.
68727
68728 2005-08-11  Bruno Haible  <bruno@clisp.org>
68729
68730         * lib/strnlen.h (strnlen): Change parameter name to match comment.
68731
68732 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
68733
68734         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
68735
68736 2005-08-10  Simon Josefsson  <jas@extundo.com>
68737
68738         * tests/test-iconvme.c: New file.
68739
68740 2005-08-10  Simon Josefsson  <jas@extundo.com>
68741
68742         * m4/strnlen.m4: New file.
68743
68744         * m4/strndup.m4: Don't check for strnlen declaration, done in
68745         strnlen.m4.
68746
68747 2005-08-10  Simon Josefsson  <jas@extundo.com>
68748
68749         * lib/strndup.c: Use strnlen.h.
68750
68751         * lib/strnlen.h: New file.
68752
68753 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68754
68755         * README: Typos.
68756
68757 2005-08-02  Simon Josefsson  <jas@extundo.com>
68758
68759         * modules/readline: New file.
68760
68761 2005-08-02  Simon Josefsson  <jas@extundo.com>
68762
68763         * modules/getdelim: New file.
68764
68765         * modules/getline: Rewrite, don't use getndelim2.
68766
68767 2005-08-02  Simon Josefsson  <jas@extundo.com>
68768
68769         * m4/getline.m4: Separate out getdelim stuff into separate module.
68770
68771         * m4/getdelim.m4: New file.
68772
68773 2005-08-02  Simon Josefsson  <jas@extundo.com>
68774
68775         * lib/getline.h, getline.c: Rewrite.
68776
68777         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
68778
68779 2005-07-31  Bruno Haible  <bruno@clisp.org>
68780
68781         * lib/lock.h (gl_lock_initializer): New macro.
68782         (gl_lock_define_initialized): Use it.
68783         (gl_rwlock_initializer): New macro.
68784         (gl_rwlock_define_initialized): Use it.
68785         (gl_recursive_lock_initializer): New macro.
68786         (gl_recursive_lock_define_initialized): Use it.
68787
68788 2005-07-30  Karl Berry  <karl@gnu.org>
68789
68790         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
68791         Report from Ben Pfaff, regarding getopt.
68792
68793 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
68794
68795         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
68796         normal way.
68797         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
68798         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
68799         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
68800         (gl_GETOPT): Use the new macros.  Most of the implementation
68801         is moved to the new macros.  This is for programs like Emacs
68802         that don't want all the functionality of gl_GETOPT.
68803
68804 2005-07-26  Bruno Haible  <bruno@clisp.org>
68805
68806         * m4/lock.m4: Update from GNU gettext.
68807
68808 2005-07-26  Bruno Haible  <bruno@clisp.org>
68809
68810         * lib/lock.h: Update from GNU gettext.
68811         * lib/lock.c: Update from GNU gettext.
68812
68813 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
68814
68815         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
68816         obsolescent AC_TRY_RUN.  Include the default includes files, for
68817         'exit'.
68818
68819 2005-07-24  Bruno Haible  <bruno@clisp.org>
68820
68821         * modules/visibility: New file.
68822         * MODULES.html.sh (Misc): Add visibility.
68823
68824 2005-07-24  Bruno Haible  <bruno@clisp.org>
68825
68826         * m4/visibility.m4: New file.
68827
68828 2005-07-24  Bruno Haible  <bruno@clisp.org>
68829
68830         * doc/visibility.texi: New file.
68831
68832 2005-07-22  Bruno Haible  <bruno@clisp.org>
68833
68834         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
68835         $(ALLOCA_H), redundant through BUILT_SOURCES.
68836         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
68837         redundant through BUILT_SOURCES.
68838         * modules/byteswap (Makefile.am): Remove explicit dependency on
68839         $(BYTESWAP_H), redundant through BUILT_SOURCES.
68840         * modules/fnmatch (Makefile.am): Remove explicit dependency on
68841         $(FNMATCH_H), redundant through BUILT_SOURCES.
68842         * modules/getopt (Makefile.am): Remove explicit dependency on
68843         $(GETOPT_H), redundant through BUILT_SOURCES.
68844         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
68845         redundant through BUILT_SOURCES.
68846         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
68847         redundant through BUILT_SOURCES.
68848         * modules/stdbool (Makefile.am): Remove explicit dependency on
68849         $(STDBOOL_H), redundant through BUILT_SOURCES.
68850         * modules/stdint (Makefile.am): Remove explicit dependency on
68851         $(STDINT_H), redundant through BUILT_SOURCES.
68852         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
68853         Remove explicit dependency on $(SYSEXITS_H).
68854         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
68855
68856 2005-07-18  Simon Josefsson  <jas@extundo.com>
68857
68858         * lib/check-version.c (check_version): Accept identical versions too.
68859
68860 2005-07-18  Bruno Haible  <bruno@clisp.org>
68861
68862         * modules/lock: New file.
68863         * MODULES.html.sh (Multithreading): New section.
68864
68865 2005-07-18  Bruno Haible  <bruno@clisp.org>
68866
68867         * m4/lock.m4: New file, from GNU gettext.
68868
68869 2005-07-18  Bruno Haible  <bruno@clisp.org>
68870
68871         * lib/lock.h: New file, from GNU gettext.
68872         * lib/lock.c: New file, from GNU gettext.
68873
68874 2005-07-18  Bruno Haible  <bruno@clisp.org>
68875
68876         * lib/lock.h (gl_once_t): New type.
68877         (gl_once_define, gl_once): New macros.
68878         * lib/lock.c (fresh_once): New variable.
68879         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
68880         functions.
68881
68882 2005-07-16  Simon Josefsson  <jas@extundo.com>
68883
68884         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
68885         workaround, suggested by Bruno.
68886
68887 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
68888
68889         * modules/xalloc (Depends-on): Add xalloc-die.
68890         * modules/xvasprintf (Depends-on): Add xalloc-die.
68891
68892 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
68893
68894         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
68895         with a minor change.
68896
68897 2005-07-15  Bruno Haible  <bruno@clisp.org>
68898
68899         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
68900         When using lib/poll.c, define poll as rpl_poll.
68901
68902 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
68903
68904         * modules/argp (Depends-on): Remove unlocked-io.
68905
68906 2005-07-14  Derek Price  <derek@ximbiot.com>
68907
68908         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
68909         for glob symlink bug.
68910
68911 2005-07-14  Bruno Haible  <bruno@clisp.org>
68912
68913         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
68914         Instead, test for *_unlocked function declarations directly.
68915
68916 2005-07-11  Simon Josefsson  <jas@extundo.com>
68917
68918         * modules/size_max: New file.
68919
68920         * modules/xsize: Depend on size_max module for size_max.m4.
68921
68922 2005-07-11  Simon Josefsson  <jas@extundo.com>
68923
68924         * lib/size_max.h: New file.
68925
68926 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
68927
68928         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
68929         copyright symbol and the year.
68930         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
68931         (version_etc_va): Use parameterized copyright notice.
68932         Reword to conform to the current GNU coding standards.
68933
68934 2005-07-11  Karl Berry  <karl@gnu.org>
68935
68936         * doc/gnulib.texi (Quoting): new node.
68937         (Initial import): more info, from Patrice.
68938
68939 2005-07-11  Bruno Haible  <bruno@clisp.org>
68940
68941         * gnulib-tool (func_usage): Document option --avoid.
68942         (Command line options): Handle --avoid.
68943         (func_acceptable): New function.
68944         (func_modules_transitive_closure): Use it.
68945
68946 2005-07-11  Bruno Haible  <bruno@clisp.org>
68947
68948         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
68949         Reported by Jim Meyering.
68950
68951 2005-07-10  Bruno Haible  <bruno@clisp.org>
68952
68953         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
68954         Needed when size_t is smaller than 'unsigned int'.
68955         Reported by Paul Eggert.
68956
68957 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68958
68959         * modules/argp (Depends-on): Add unlocked-io
68960
68961 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68962
68963         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
68964         block of defines.
68965
68966 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
68967
68968         * config/srclist.txt: Comment out regcomp.c, since we have a porting
68969         fix now.
68970
68971 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
68972         and Paul Eggert  <eggert@cs.ucla.edu>
68973
68974         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
68975         in wint_t, not wchar_t.  Remove now-unnecessary cast.
68976
68977 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68978
68979         * modules/regex (Files): Add lib/regex_internal.c,
68980         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
68981         (Depends-on): Add extensions.
68982         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
68983
68984 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68985
68986         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
68987         pathconf.
68988         * m4/same.m4 (gl_SAME): Likewise.
68989         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
68990
68991         * m4/regex.m4: Adjust to new libc regex implementation.
68992         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
68993         all the .c and .h parts of (the new) regex.
68994         Quote the m4 stuff better.
68995         Check for RE_ICASE bug of old gnulib.
68996         Check for REG_STARTEND of recent libc.
68997         Rename local variables from jm_* to gl_*.
68998         Quote operand of "test -f".
68999         Say "recent enough" version of libc, not "version 2".
69000         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
69001         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
69002         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
69003         Remove check for btowc, isascii.
69004         Require AM_LANGINFO_CODESET.
69005
69006 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69007
69008         * lib/regex.c, regex.h: Sync from libc.
69009         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
69010         * lib/regexec.c:
69011         New files, synced from libc, except that regex_internal.h
69012         currently has a small porting fix.
69013
69014 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69015
69016         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
69017         regex_internal.c, regexec.c.
69018         Add regex_internal.h too, but as a comment, since the libc version
69019         is currently broken in gnulib mode.
69020
69021 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69022
69023         Support programs like Emacs that use gnulib but not gettext.
69024         * MODULES.html.sh (Internationalization functions): Add gettext-h.
69025         * modules/gettext-h: New file.
69026         * modules/gettext (Files): Remove lib/gettext.h.
69027         (Depends-on): Add gettext-h.
69028         (Makefile.am): Remove lib_SOURCES.
69029         * modules/argmatch, modules/c-stack, modules/closeout:
69030         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
69031         * modules/execute, modules/file-type, modules/getaddrinfo:
69032         * modules/getopt, modules/human, modules/javacomp:
69033         * modules/javaexec, modules/mkdir-p, modules/obstack:
69034         * modules/openat, modules/pagealign_alloc, modules/pipe:
69035         * modules/quotearg, modules/regex, modules/rpmatch:
69036         * modules/unicodeio, modules/userspec, modules/version-etc:
69037         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
69038         * modules/xsetenv:
69039         Depend on gettext-h, not gettext.
69040
69041 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69042
69043         * gnulib-tool (func_import): Add support for 'public domain' license.
69044         * modules/alloca, modules/atexit, modules/memmove:
69045         Now public domain, not GPL.
69046         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
69047         * modules/realloc, modules/strerror, modules/strtod:
69048         Now LGPL, not GPL.
69049
69050 2005-07-05  Bruno Haible  <bruno@clisp.org>
69051
69052         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
69053         autoconf CVS. Needed for mingw.
69054
69055 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69056
69057         Remove the dependency of the strftime module on the tzset module.
69058         * modules/strftime (Depends-on): Remove dependency on tzset.
69059
69060 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69061
69062         Remove the dependency of the strftime module on the tzset module.
69063         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
69064         gl_FUNC_TZSET_CLOBBER.
69065
69066 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69067
69068         Remove the dependency of the strftime module on the tzset module.
69069         * lib/strftime.c (my_strftime)
69070         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
69071         Copy the input structure, to work around some of the bug with
69072         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
69073         Solaris releases, you should also use the tzset module, but we won't
69074         require it as a dependency any more since we don't want LGPLed code
69075         to depend on GPLed code.
69076
69077 2005-07-02  Jim Meyering  <jim@meyering.net>
69078
69079         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
69080         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
69081         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
69082         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
69083
69084 2005-07-02  Jim Meyering  <jim@meyering.net>
69085
69086         * lib/backupfile.c (backup_args): Change a `0' to NULL.
69087
69088 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69089
69090         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
69091         declares only 'struct timespec;' (!).
69092
69093 2005-07-01  Jim Meyering  <jim@meyering.net>
69094
69095         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
69096         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
69097         * lib/save-cwd.c, tempname.c:
69098         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69099         and don't include <sys/file.h>).
69100
69101 2005-06-29  Jim Meyering  <jim@meyering.net>
69102
69103         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
69104         type name.  Use the variable name instead.
69105         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
69106         Likewise.
69107
69108 2005-06-28  Simon Josefsson  <jas@extundo.com>
69109
69110         * modules/check-version (Files): Add check-version.m4.
69111
69112 2005-06-28  Simon Josefsson  <jas@extundo.com>
69113
69114         * m4/check-version.m4: New file, suggested by Jim Meyering
69115         <jim@meyering.net>.
69116
69117 2005-06-28  Simon Josefsson  <jas@extundo.com>
69118
69119         * lib/check-version.h, lib/check-version.c: New files.
69120
69121 2005-06-28  Simon Josefsson  <jas@extundo.com>
69122
69123         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
69124         collision with global variable.  Better indentation.  Don't
69125         increment buffer pointer beyond buffer end.  Based on comments
69126         from Paul Eggert <eggert@cs.ucla.edu>.
69127
69128         * lib/base64.h: Indent.
69129
69130 2005-06-28  Simon Josefsson  <jas@extundo.com>
69131
69132         * doc/gnulib.texi (Library version handling): New section.
69133
69134 2005-06-28  Jim Meyering  <jim@meyering.net>
69135
69136         * check-module (find_included_lib_files): Hard-code another
69137         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
69138         but modules/fts-lgpl (correctly) does not list those files.
69139
69140         * modules/canonicalize (Files): Add lib/pathmax.h.
69141
69142 2005-06-25  Simon Josefsson  <jas@extundo.com>
69143
69144         * modules/check-version: New file.
69145
69146 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
69147
69148         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
69149         initializer of struct addrinfo, as an indication that we don't
69150         care how many members the structure has.
69151
69152 2005-06-24  Derek Price  <derek@ximbiot.com>
69153         and Bruno Haible  <bruno@clisp.org>
69154
69155         Remove stat module & update lstat.
69156         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
69157         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69158         * m4/stat.m4: Remove this file.
69159
69160 2005-06-24  Derek Price  <derek@ximbiot.com>
69161         and Bruno Haible  <bruno@clisp.org>
69162
69163         Remove stat module & update lstat.
69164         * lib/stat.c: Remove this file...
69165         (slash_aware_lstat): ...moving this content and its support...
69166         * lib/lstat.c (rpl_lstat): ...into here.
69167         * lib/lstat.h: New file.
69168
69169 2005-06-24  Derek Price  <derek@ximbiot.com>
69170         and Bruno Haible  <bruno@clisp.org>
69171
69172         Remove stat module & update lstat.
69173         * config/srclist.txt (libc sources): Remove stat.
69174
69175 2005-06-24  Derek Price  <derek@ximbiot.com>
69176         and Bruno Haible  <bruno@clisp.org>
69177
69178         Remove stat module & update lstat.
69179         * MODULES.html.sh (stat): Remove.
69180         * MODULES.html: Regenerated.
69181         * modules/lstat (Description): Correct function name.
69182         (Files): Add "lstat.h".
69183         (Depends-on): Remove stat, add xalloc, stat-macros.
69184         * modules/stat: Remove this file.
69185         (Include): Add "lstat.h", remove <sys/stat.h>.
69186
69187 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69188
69189         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
69190         (ranged_convert): Don't save conversion in a temporary struct.
69191         This causes a warning with GCC 4.0.0, and anyway in the typical
69192         case it's not worth the extra 100 bytes or so of code.
69193         (ranged_convert, __mktime_internal): When calling a function via a
69194         pointer P, use P () rather than (*P) (), as we now assume C89 or
69195         better.
69196
69197 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69198
69199         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
69200         "who -r" failed to give output.  Problem reported by Tim Waugh.
69201
69202         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
69203         (xcalloc): Use it to avoid needless tests.
69204         Problem reported by Jim Meyering.
69205
69206 2005-06-20  Derek Price  <derek@ximbiot.com>
69207
69208         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
69209         unnecessary for Autoconfs > 2.59c.
69210
69211 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69212
69213         * lib/argp.h (__option_is_short): Check upper limit of
69214         __key. Isprint() requires its argument to have the value
69215         of an unsigned char or EOF.
69216
69217 2005-06-16  Jim Meyering  <jim@meyering.net>
69218
69219         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
69220         when either N or S is zero.
69221
69222 2005-06-16  Derek Price  <derek@ximbiot.com>
69223
69224         * m4/bison.m4: Declare YACC & YFLAGS precious.
69225
69226 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
69227
69228         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
69229         multibyte string or pattern, fall back on unibyte matching.
69230         Problem reported by James Youngman.
69231
69232 2005-06-08  Bruno Haible  <bruno@clisp.org>
69233
69234         * modules/csharpcomp: New file.
69235         * MODULES.html.sh (C#): Add csharpcomp.
69236
69237 2005-06-08  Bruno Haible  <bruno@clisp.org>
69238
69239         * m4/csharpcomp.m4: New file, from GNU gettext.
69240
69241 2005-06-08  Bruno Haible  <bruno@clisp.org>
69242
69243         * lib/csharpcomp.h: New file, from GNU gettext.
69244         * lib/csharpcomp.c: New file, from GNU gettext.
69245         * lib/csharpcomp.sh.in: New file, from GNU gettext.
69246
69247 2005-06-08  Bruno Haible  <bruno@clisp.org>
69248
69249         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
69250         warning on mingw.
69251
69252 2005-06-07  Derek Price  <derek@ximbiot.com>
69253
69254         Sync from CVS.
69255         * lib/glob_.h: Indent nested #ifdef.
69256
69257 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69258
69259         Sync from coreutils.
69260         Use "file name" when talking about file names, instead of "filename"
69261         or "path", as per the GNU coding standards.
69262         * lib/mkdir-p.c: Renamed from makepath.c.
69263         (make_dir_parents): Renamed from make_path.  All callers changed.
69264         * lib/mkdir-p.h: Likewise.  All includers changed.
69265         * lib/filenamecat.c: Renamed from path-concat.c.
69266         (file_name_concat): Renamed from path_concat.  All callers changed.
69267         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
69268         * lib/filenamecat.h: Likewise.  All includers changed.
69269         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
69270         in comments or local variable names.
69271         * lib/basename.c: Likewise.
69272         * lib/canonicalize.c, canonicalize.h: Likewise.
69273         * lib/dirname.c, dirname.h: Likewise.
69274         * lib/euidaccess.c: Likewise.
69275         * lib/exclude.c: Likewise
69276         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
69277         * lib/fsusage.c, fsuage.h: Likewise.
69278         * lib/fts.c, fts_.h: Likewise.
69279         * lib/getcwd.c: Likewise.
69280         * lib/getloadavg.c: Likewise.
69281         * lib/mkstemp.c: Likewise.
69282         * lib/mountlist.c, mountlist.h: Likewise.
69283         * lib/openat.c, openat.h: Likewise.
69284         * lib/readlink-stub.c: Likewise.
69285         * lib/readutmp.c, readutmp.h: Likewise.
69286         * lib/rename.c: Likewise.
69287         * lib/rmdir.c: Likewise.
69288         * lib/same.c: Likewise.
69289         * lib/savedir.c: Likewise.
69290         * lib/stripslash.c: Likewise.
69291         * lib/tempname.c: Likewise.
69292         * lib/xreadlink.c: Likewise.
69293         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
69294         All uses changed.
69295         * lib/exclude.h: Likewise.
69296
69297         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
69298         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69299         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
69300         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69301         * lib/pathmax.h: Include <limits.h> unconditionally, since other
69302         files have been getting away with it for years (MORE/BSD 4.3
69303         is extinct now).
69304         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
69305         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69306
69307         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
69308         Define to 256, not 255, as per modern POSIX.
69309
69310 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69311
69312         Sync from coreutils.
69313         Use "file name" when talking about file names, instead of "filename"
69314         or "path", as per the GNU coding standards.
69315         * MODULES.html.sh: mkdir-p renamed from makepath.
69316         filenamecat renamed from path-concat.
69317         * modules/filenamecat: Renamed from modules/path-concat.
69318         (Files): filenamecat.h and filenamecat.c renamed from
69319         path-concat.h and path-concat.c.
69320         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
69321         (Include): filenamecat.h, not path-concat.h.
69322         * modules/mkdir-p: Renamed from modules/makepath.
69323         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
69324         makepath.c.
69325         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
69326         (Include): mkdir-p.h, not makepath.h.
69327
69328 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69329
69330         Sync from coreutils.
69331         * m4/mkdir-p.m4: Renamed from makepath.m4.
69332         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
69333         Rename files from makepath.c to mkdir-p.c, and from
69334         makepath.h to mkdir-p.h.
69335         * m4/filenamecat.m4: Renamed from path-concat.m4.
69336         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
69337         Rename files from path-concat.c to filenamecat.c,
69338         and from path-concat.h to filenamecat.h.
69339         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
69340         "file name" in local variables or comments.
69341         * m4/rename.m4: Likewise.
69342
69343 2005-06-01  Bruno Haible  <bruno@clisp.org>
69344
69345         * modules/csharpexec: New file.
69346         * MODULES.html.sh (C#): New section.
69347
69348 2005-06-01  Bruno Haible  <bruno@clisp.org>
69349
69350         * m4/csharp.m4: New file, from GNU gettext.
69351         * m4/csharpexec.m4: New file, from GNU gettext.
69352
69353 2005-06-01  Bruno Haible  <bruno@clisp.org>
69354
69355         * lib/csharpexec.h: New file, from GNU gettext.
69356         * lib/csharpexec.c: New file, from GNU gettext.
69357         * lib/csharpexec.sh.in: New file, from GNU gettext.
69358
69359 2005-05-31  Derek Price  <derek@ximbiot.com>
69360             Paul Eggert  <eggert@cs.ucla.edu>
69361
69362         Sync from cvs.
69363         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69364
69365 2005-05-31  Derek Price  <derek@ximbiot.com>
69366             Paul Eggert  <eggert@cs.ucla.edu>
69367
69368         Sync from cvs.
69369         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69370
69371 2005-05-29  Derek Price  <derek@ximbiot.com>
69372
69373         * config/srclist.txt (glob_.h, glob.c): Add these files.
69374
69375 2005-05-29  Derek Price  <derek@ximbiot.com>
69376
69377         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
69378         * modules/glob: New file.
69379         * modules/getlogin_r: Add link to POSIX spec in description.
69380
69381 2005-05-29  Derek Price  <derek@ximbiot.com>
69382             Paul Eggert  <eggert@cs.ucla.edu>
69383
69384         * m4/glob.m4: New file.
69385
69386 2005-05-29  Derek Price  <derek@ximbiot.com>
69387             Paul Eggert  <eggert@cs.ucla.edu>
69388
69389         * lib/glob_.h, lib/glob.c: New files.
69390
69391 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69392
69393         * modules/fts (Files): Remove m4/inttypes-pri.m4.
69394         * modules/fts-lgpl (Depends-on): Remove gettext.
69395
69396 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69397
69398         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
69399         and don't require gt_INTTYPES_PRI.
69400
69401 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69402
69403         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
69404
69405         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
69406         the configuration hassle isn't worth it.
69407         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
69408         (LONGEST_MODIFIER, PRIuMAX): Remove.
69409
69410 2005-05-27  Bruno Haible  <bruno@clisp.org>
69411
69412         * lib/getlogin_r.h: Remove second include of <stddef.h>.
69413
69414 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
69415
69416         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
69417         _POSIX_PTHREAD_SEMANTICS for Solaris.
69418
69419 2005-05-25  Derek Price  <derek@ximbiot.com>
69420
69421         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
69422
69423 2005-05-25  Derek Price  <derek@ximbiot.com>
69424             Paul Eggert  <eggert@cs.ucla.edu>
69425
69426         * modules/getlogin_r, m4/getlogin_r.m4: New files.
69427         * lib/getlogin_r.c, getlogin_r.h: New files.
69428
69429 2005-05-25  Bruno Haible  <bruno@clisp.org>
69430             Derek Price  <derek@ximbiot.com>
69431
69432         * lib/getlogin_r.h: Simplify API documentation.
69433
69434 2005-05-23  Derek Price  <derek@ximbiot.com>
69435
69436         * modules/minmax (Files): Add m4/minmax.m4.
69437         (configure.ac): Add gl_MINMAX.
69438
69439 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69440
69441         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
69442         so that unistd-safer.h (GPL'ed code) need not be included.
69443
69444 2005-05-22  Bruno Haible  <bruno@clisp.org>
69445
69446         * m4/minmax.m4: New file.
69447         Based on a patch by Derek Price <derek@ximbiot.com>.
69448
69449 2005-05-22  Bruno Haible  <bruno@clisp.org>
69450
69451         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
69452         (INT64_MIN): Fix definition.
69453         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
69454
69455         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
69456         NEED_SIGNED_INT_TYPES.
69457
69458         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
69459         HAVE_SYSTEM_INTTYPES.
69460
69461 2005-05-22  Bruno Haible  <bruno@clisp.org>
69462
69463         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
69464         Also include <sys/param.h> if it defines MIN, MAX.
69465         Based on a patch by Derek Price <derek@ximbiot.com>.
69466
69467 2005-05-21  Jim Meyering  <jim@meyering.net>
69468
69469         * modules/fts (Files): Add m4/inttypes-pri.m4.
69470         (Depends-on): Add lstat and remove gettext.  Alphabetize.
69471
69472 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69473
69474         New fts module.
69475         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
69476         (setup_dir, free_dir): New functions.
69477         (enter_dir, leave_dir): Define trivial
69478         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
69479         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
69480         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
69481         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
69482         Move to fts-cycle.c.
69483         (fts_open): Use setup_dir.
69484         (fts_close): Use free_dir.
69485         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
69486         This adds a label and some gotos, but the alternatives were messier.
69487         Check for memory allocation failure when entering a dir.
69488         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
69489         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
69490         (FTS): New member fts_cycle, that is a union that contains the
69491         old active_dir_ht and cycle_state.  All uses changed to mention
69492         fts_cycle.ht and fts_cycle.state.
69493         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
69494         fts.c, with the following changes:
69495         (setup_dir, free_dir): New functions.
69496         (enter_dir): Now returns bool.  Return true if successful, false
69497         if memory exhausted.  All callers changed.
69498         Do not bother partly cleaning up on
69499         memory allocation failure; that is free_dir's job.
69500         However, free ad if hash_insert fails, to avoid memory leak.
69501         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
69502         fts->fts_options to see which union member to use.
69503
69504 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69505
69506         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
69507         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
69508
69509 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69510
69511         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
69512
69513 2005-05-20  Jim Meyering  <jim@meyering.net>
69514
69515         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
69516         Now a macro, to pacify GCC.
69517
69518 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69519
69520         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
69521         of -1.
69522
69523 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69524
69525         * lib/chown.c (rpl_chown): Return -1 on failure.
69526
69527 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69528
69529         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
69530         Don't check for stddef.h.
69531         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
69532         don't use its results.
69533         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
69534         since we include them unconditionally.  Don't require
69535         AM_STDBOOL_H, since stdbool is a prerequisite.
69536         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
69537         since we assume C89 or better.
69538         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
69539         as we don't use their results.
69540         Don't check for fchdir, memmove, memset, strrchr, as we use
69541         them unconditionally.
69542         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
69543         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
69544
69545 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69546
69547         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
69548         Include <stddef.h> unconditionally, since we assume C89 now.
69549         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
69550         * lib/fts.c: Include fts_.h first, to check interface.
69551         Do not include intprops.h; no longer needed.
69552         Include cycle-check.h and hash.h, since fts_.h no longer does.
69553         Remove unnecessary casts of closedir to void.
69554         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
69555         decide whether to decrement nlinks.
69556         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
69557         (FTS): Use struct hash_table * instead of Hash_table, so that
69558         we no longer need to include hash.h here.
69559
69560 2005-05-18  Jim Meyering  <jim@meyering.net>
69561
69562         * modules/dirfd (License): Change to LGPL.  Most of the code
69563         is already in the public domain.
69564
69565 2005-05-18  Jim Meyering  <jim@meyering.net>
69566
69567         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
69568         Reported by Yoann Vandoorselaere.
69569
69570 2005-05-17  Jim Meyering  <jim@meyering.net>
69571
69572         * m4/fts.m4: New file, from coreutils.
69573
69574 2005-05-17  Jim Meyering  <jim@meyering.net>
69575
69576         * lib/fts.c, lib/fts_.h: New files, from coreutils.
69577
69578 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69579
69580         Sync from coreutils.
69581         * m4/unlinkdir.m4: New file.
69582
69583 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69584
69585         Sync from coreutils.
69586         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
69587         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
69588         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
69589         White space changes only.
69590         * lib/makepath.c (make_path): Port to hosts where leading "//" is
69591         special.
69592         * lib/yesno.c: Include getline.h, not ctype.h.
69593         (yesno): Don't remove leading white space; POSIX doesn't allow it.
69594         Use getline to remove arbitrary restriction on response length.
69595
69596 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69597
69598         * config/srclist-update: Spell out "Street" in FSF postal
69599         mail address; this is the style the FSF seems to prefer.
69600
69601         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
69602         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
69603         this updates FSF postal mail address.
69604
69605         Sync from coreutils.
69606         * modules/unlinkdir: New file.
69607         * modules/yesno (Depends-on): Add getline.
69608         * MODULES.html.sh (File system functions): Add unlinkdir.
69609
69610 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69611
69612         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
69613         lib/strsep.h:
69614         Change the initial comment to refer to GPL, not LGPL.
69615         gnulib-tool will change it to LGPL as needed.
69616
69617         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
69618         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
69619         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
69620         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
69621         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
69622         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
69623         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
69624         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
69625         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
69626         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
69627         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
69628         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
69629         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
69630         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
69631         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
69632         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
69633         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
69634         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
69635         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
69636         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
69637         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
69638         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
69639         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
69640         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
69641         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
69642         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
69643         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
69644         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
69645         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
69646         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
69647         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
69648         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
69649         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
69650         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
69651         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
69652         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
69653         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
69654         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
69655         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
69656         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
69657         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
69658         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
69659         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
69660         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
69661         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
69662         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
69663         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
69664         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
69665         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
69666         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
69667         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
69668         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
69669         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
69670         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
69671         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
69672         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
69673         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
69674         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
69675         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
69676         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
69677         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
69678         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
69679         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
69680         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
69681         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
69682         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
69683         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
69684         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
69685         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
69686         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
69687         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
69688         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
69689         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
69690         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
69691         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
69692         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
69693         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
69694         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
69695         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
69696         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
69697         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
69698         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
69699         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
69700         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
69701         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
69702         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
69703         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
69704         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
69705         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
69706         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
69707         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
69708         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
69709         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
69710         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
69711         lib/yesno.c, lib/yesno.h:
69712         Update FSF postal mail address.
69713
69714 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69715
69716         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
69717         tests/test-memmem.c, tests/test-stpncpy.c:
69718         Update FSF postal mail address.
69719
69720 2005-05-13  Bruno Haible  <bruno@clisp.org>
69721
69722         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
69723         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
69724         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
69725         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
69726         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
69727         Add support for 64-bit integers in the MSVC compiler.
69728
69729 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69730
69731         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
69732
69733 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
69734
69735         * gnulib-tool (func_import): Sort and uniquify recommended includes.
69736
69737 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
69738
69739         * doc/getdate.texi (General date syntax): Don't say that date
69740         date --iso-8601=ns generates acceptable dates; it doesn't yet.
69741         Problem reported by Nic Ferrier.
69742
69743 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69744
69745         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
69746         specified in ai_socktype. Fix invalid ai_protocol
69747         check. ai_protocol is usually set to 0 or depending on
69748         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
69749         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
69750         ai_socktype / ai_protocol in the returned addrinfo structure.
69751
69752 2005-05-10  Simon Josefsson  <jas@extundo.com>
69753
69754         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
69755         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69756
69757 2005-05-10  Karl Berry  <karl@gnu.org>
69758
69759         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
69760         (from http://www.gnu.org/licenses).
69761         * doc/COPYING.LIB: also rename to COPYING.LESSER.
69762         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
69763         fdl.texi suffices.
69764
69765 2005-05-10  Karl Berry  <karl@gnu.org>
69766
69767         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
69768         (COPYING.DOC): remove.
69769
69770         * config/srclist-update: new FSF address.
69771
69772 2005-05-10  Derek Price  <derek@ximbiot.com>
69773
69774         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
69775         possible.
69776
69777 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69778             Bruno Haible  <bruno@clisp.org>
69779
69780         * modules/inet_ntop: New file.
69781         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69782         inet_ntop.
69783
69784 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69785             Bruno Haible  <bruno@clisp.org>
69786
69787         * m4/inet_ntop.m4: New file.
69788
69789 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69790             Bruno Haible  <bruno@clisp.org>
69791
69792         * lib/inet_ntop.h: New file.
69793         * lib/inet_ntop.c: New file, from glibc with modifications.
69794
69795 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
69796
69797         * modules/time_r (License): Change to LGPL.
69798         * modules/extensions (License): Change to LGPL.  Actually,
69799         the license is more permissive than that, but currently gnulib-tool
69800         doesn't know how to handle more-permissive licenses.
69801
69802         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
69803         Problem reported by Dave Love.
69804
69805 2005-05-08  Jim Meyering  <jim@meyering.net>
69806
69807         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
69808         blank.
69809
69810 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
69811
69812         * modules/argmatch (Depends-on): Add stdbool.
69813         * modules/backupfile (Depends-on): Likewise.
69814         * modules/chdir-long (Depends-on): Likewise.
69815         * modules/closeout (Depends-on): Likewise.
69816         * modules/cycle-check (Depends-on): Likewise.
69817         * modules/dirname (Depends-on): Likewise.
69818         * modules/fnmatch (Depends-on): Likewise.
69819         * modules/fsusage (Depends-on): Likewise.
69820         * modules/fwriteerror (Depends-on): Likewise.
69821         * modules/getcwd (Depends-on): Likewise.
69822         * modules/getloadavg (Depends-on): Likewise.
69823         * modules/hard-locale (Depends-on): Likewise.
69824         * modules/makepath (Depends-on): Likewise.
69825         * modules/mountlist (Depends-on): Likewise.
69826         * modules/nanosleep (Depends-on): Likewise.
69827         * modules/posixtm (Depends-on): Likewise.
69828         * modules/quotearg (Depends-on): Likewise.
69829         * modules/readtokens (Depends-on): Likewise.
69830         * modules/readtokens0 (Depends-on): Likewise.
69831         * modules/readutmp (Depends-on): Likewise.
69832         * modules/save-cwd (Depends-on): Likewise.
69833         * modules/strftime (Depends-on): Likewise.
69834         * modules/userspec (Depends-on): Likewise.
69835         * modules/utimecmp (Depends-on): Likewise.
69836         * modules/xgetcwd (Depends-on): Likewise.
69837         * modules/xnanosleep (Depends-on): Likewise.
69838         * modules/xstrtod (Depends-on): Likewise.
69839         * modules/yesno (Depends-on): Likewise.
69840
69841 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
69842
69843         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
69844         needless checks.
69845
69846 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69847
69848         Merge from coreutils.  Among other things,
69849         add bulletproofing for cases where stdin, stdout, or stderr are closed.
69850         * lib/fd-safer.c: New file.
69851         * lib/fcntl-safer.h, open-safer.c: Remove.
69852         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
69853         * lib/dup-safer.c: Include unistd-safer.h first.
69854         Don't include errno.h.
69855         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
69856         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
69857         * lib/file-type.c: Rely on file-type.h change.
69858         * lib/getloadavg.c: Include unistd-safer.h.
69859         (getloadavg): Use safer open.
69860         * lib/getusershell.c: Include "stdio-safer.h".
69861         (getusershell): Use safer fopen.
69862         * lib/long-options.c (long_options): Use NULL rather than 0.
69863         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
69864         'free'.
69865         * lib/modechange.c: Likewise.
69866         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
69867         (MODE_DONE): New constant.
69868         (struct mode_change): Remove 'next' member.
69869         (make_node_op_equals): New function; like the old one of the
69870         same name, except it allocates an array.
69871         (mode_compile, mode_create_from_ref): Use it.
69872         (mode_compile): Allocate result as an array, not a linked list.
69873         Parse octal string ourself, so that we catch mistakes like "+0".
69874         (mode_adjust): Arg is an array, not a linked list.
69875         * lib/modechange.c: Include stat-macros.h, xalloc.h.
69876         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
69877         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
69878         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
69879         Remove.  This is now stat-macros.h's job.
69880         (talloc): Remove.  All callers replaced by xalloc, so that
69881         our invokers don't have to worry about reporting memory failures.
69882         (make_node_op_equals): Remove.
69883         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
69884         New constants.
69885         (struct mode_change): Moved here from modechange.h.
69886         (mode_append_entry): Remove.
69887         (mode_compile): Remove MASKED_OPS arg, since it encouraged
69888         apps to have incorrect behavior.  Use simpler algorithm for head
69889         and tail.  Don't futz with umask; that's now the job of mode_adjust.
69890         Detect more invalid usages rather than having somewhat-random behavior.
69891         Don't insert an "a=" action, as that leads to incorrect behavior.
69892         (mode_compile, mode_create_from_ref): Return NULL on error instead
69893         of an enum, since now there's only one way to have an error.  All
69894         callers changed.
69895         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
69896         at the correct time.  Simplify calculation of "+u" and its ilk.
69897         Don't mishandle "+X".
69898         (mode_free): Remove "register" and localize decls.
69899         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
69900         (struct mode_change): Move to modechange.c; callers don't
69901         need to see this stuff.
69902         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
69903         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
69904         (mode_change, mode_adjust): Reflect the new signatures noted above.
69905         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
69906         that might redefine system include files.
69907         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
69908         (my_usleep): Use NULL rather than (void *) 0.
69909         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
69910         Use siginterrupt to specify that system calls should be interrupted.
69911         (rpl_nanosleep): Move initialization of suspended closer to call of
69912         my_usleep.
69913         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
69914         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
69915         (desirable_utmp_entry): New function.
69916         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
69917         using x2nrealloc, to simplify logic.
69918         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
69919         size calculation.  Do not assume utmp file is a regular file.
69920         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
69921         (READ_UTMP_CHECK_PIDS): New constant.
69922         * lib/save-cwd.c: Include unistd-safer.h.
69923         (save_cwd): Use fd_safer.
69924         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
69925         [!_LIBC] Include "stat-macros.h" instead.
69926         * lib/unistd-safer.h (fd_safer): New decl.
69927
69928 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69929
69930         * modules/getloadavg (Depends-on): Add unistd-safer.
69931         * modules/getusershell (Depends-on): Add stdio-safer.
69932         * modules/lstat (Depends-on): Remove xalloc.
69933         * modules/mkstemp (Depends-on): Add stat-macros.
69934         * modules/modechange (Depends-on): Remove xstrtol.
69935         Add stat-macros, xalloc.
69936         * modules/save-cwd (Depends-on): Add unistd-safer.
69937         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
69938         * modules/unistd-safer (Files): Add lib/fd-safer.c
69939         (Makefile.am): Remove lib_SOURCES.
69940
69941         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
69942         Remove fcntl-safer; unistd-safer supersedes it.
69943
69944 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69945
69946         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
69947         AC_HEADER_STAT.
69948         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
69949         (gl_PREREQ_CHOWN): Remove.
69950         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
69951         it.  Don't require AC_HEADER_STAT.
69952         (gl_PREREQ_LSTAT): Remove.
69953         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
69954         Don't require AC_HEADER_STAT.
69955         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
69956         (gl_PREREQ_RMDIR): Remove.
69957         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
69958         mention stat-macros.h or AC_HEADER_STAT, since we'll make
69959         the stat-macros module a prerequisite.
69960         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
69961         * m4/filemode.m4 (gl_FILEMODE): Likewise.
69962         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
69963         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
69964         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
69965         variable names.
69966         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
69967         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
69968         variable prefixes.
69969         * m4/fcntl-safer.m4: Remove.
69970         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
69971         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
69972         Invoke gl_PREREQ_FD_SAFER.
69973         (gl_PREREQ_FD_SAFER): New macro.
69974         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
69975         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
69976         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
69977         Remove duplicate call to AC_LIBOBJ(readutmp).
69978         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
69979
69980         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
69981         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
69982
69983 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69984
69985         * MODULES.html.sh (Misc): Add byteswap.
69986
69987 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69988
69989         * modules/getcwd (Depends-on): Add extensions.
69990         * modules/openat (Depends-on): Likewise.
69991
69992 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69993
69994         * modules/byteswap: New file.
69995
69996 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69997
69998         * m4/byteswap.m4: New file.
69999
70000 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70001
70002         * lib/byteswap_.h: New file.
70003
70004 2005-04-25  Karl Berry  <karl@gnu.org>
70005
70006         * m4/gettext.m4: Update from GNU gettext 0.14.4.
70007
70008 2005-04-25  Albert Chin  <china@thewrittenword.com>
70009
70010         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
70011         Toolkit C bug.
70012
70013 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
70014
70015         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
70016         (func_ln_if_changed): Remove forcibly for no error message
70017         in case file does not exist.
70018
70019 2005-04-19  Simon Josefsson  <jas@extundo.com>
70020
70021         * gnulib-tool (Options): Make --symlink mean --symbolic.
70022
70023 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
70024
70025         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
70026
70027 2005-04-16  Simon Josefsson  <jas@extundo.com>
70028
70029         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
70030
70031 2005-04-15  Simon Josefsson  <jas@extundo.com>
70032
70033         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
70034
70035 2005-04-15  Simon Josefsson  <jas@extundo.com>
70036
70037         * gnulib-tool: Rename --symlink to --symbolic.
70038
70039 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
70040
70041         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
70042         symbolic links to files instead of copying/moving.  Add --aux-dir,
70043         specifying directory relative --dir where auxiliary build tools
70044         are placed.
70045
70046 2005-04-14  Bruno Haible  <bruno@clisp.org>
70047
70048         * modules/allocsa (License): Change to LGPL.
70049         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
70050
70051 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70052
70053         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
70054         that "UTC +1 second" continues to work.  Problem reported
70055         by Dmitry V. Levin.
70056         (relunit_snumber): New rule.
70057         (relunit): Use it.
70058
70059 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70060
70061         * lib/getdate.y (universal_time_zone_table): New constant.
70062         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
70063         universal_time_zone_table.
70064         (lookup_zone): Prefer universal_time_zone_table to
70065         local_time_zone_table, so that "GMT" time stamps are allowed in
70066         London during the summer.  Problem reported by Ian Abbott.
70067
70068 2005-04-12  Jim Meyering  <jim@meyering.net>
70069
70070         * lib/human.c (humblock): Set *options even when returning due to
70071         xstrtoumax conversion failure.  Thanks to a used-uninitialized
70072         warning from gcc-4.
70073
70074 2005-04-09  Jim Meyering  <jim@meyering.net>
70075
70076         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
70077         -Wuninitialized: initialize tm0.tm_year.
70078
70079 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70080
70081         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
70082         count, since there's no maximum.  All uses changed.
70083         Add member dsts_seen.
70084         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
70085         not being INT_MAX.
70086         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
70087         Use pc_rels_seen to decide whther a date is absolute.
70088
70089         * lib/getdate.y (number): Don't overwrite year.
70090         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
70091         check.
70092
70093 2005-04-02  Simon Josefsson  <jas@extundo.com>
70094
70095         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
70096         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
70097
70098 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
70099
70100         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
70101         where no absolute path name can be longer than PATH_MAX.
70102
70103 2005-03-27  Jim Meyering  <jim@meyering.net>
70104
70105         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
70106
70107 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
70108
70109         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
70110         "one's complement" -> "ones' complement" in comment, as per Knuth.
70111         "value of type" -> "type or expression" in comment.
70112         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
70113
70114 2005-03-26  Jim Meyering  <jim@meyering.net>
70115
70116         Comment nits.
70117         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
70118         Correct typos: s/or/of/.
70119
70120 2005-03-26  Jim Meyering  <jim@meyering.net>
70121
70122         * modules/check-include-files: Move to ../ and rename to...
70123         * check-module: ...this.
70124
70125 2005-03-25  Jim Meyering  <jim@meyering.net>
70126
70127         * modules/xvasprintf (Files): Add xalloc.h.
70128
70129 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70130
70131         * modules/gettext (Files): config/config.rpath ->
70132         build-aux/config.rpath
70133         * modules/iconv (Files): Likewise.
70134         Problem reported by Oskar Liljeblad.
70135
70136 2005-03-23  Jim Meyering  <jim@meyering.net>
70137
70138         * modules/check-include-files: New script to check for
70139         missing dependencies, multiple includes, etc.
70140
70141         * modules/c-strtold (Depends-on): Add xalloc.
70142         * modules/c-strtod (Depends-on): Add xalloc.
70143         * modules/hash (Depends-on): Add xalloc.
70144         (Files): Remove lib/xalloc.h.
70145
70146         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
70147         * modules/userspec (Files): Add lib/inttostr.h.
70148
70149 2005-03-23  Jim Meyering  <jim@meyering.net>
70150
70151         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
70152
70153 2005-03-22  Jim Meyering  <jim@meyering.net>
70154
70155         * modules/stat-macros: New module.
70156         * modules/canonicalize, modules/euidaccess, modules/file-type,
70157         * modules/filemode, modules/lchown, modules/makepath,
70158         * modules/rmdir, modules/stat: Depend on new stat-macros module
70159         rather than listing lib/stat-macros.h manually.
70160         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
70161
70162 2005-03-22  Jim Meyering  <jim@meyering.net>
70163
70164         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
70165
70166 2005-03-22  Bruno Haible  <bruno@clisp.org>
70167
70168         * config/srclist.txt: Replace target directory 'config' with
70169         'build-aux'.
70170         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
70171         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
70172         ../build-aux/.
70173
70174 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
70175
70176         * modules/chdir-long (Depends-on): Add mempcpy.
70177
70178         * modules/acl, modules/backupfile, modules/c-strtod,
70179         modules/c-strtold, modules/canon-host, modules/canonicalize,
70180         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
70181         modules/exclude, modules/exitfail, modules/file-type,
70182         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
70183         modules/getdate, modules/getline, modules/getpagesize,
70184         modules/getpass, modules/getugroups, modules/group-member,
70185         modules/hard-locale, modules/hash, modules/human, modules/idcache,
70186         modules/inttostr, modules/long-options, modules/makepath,
70187         modules/md5, modules/memcasecmp, modules/memcoll,
70188         modules/modechange, modules/mountlist, modules/path-concat,
70189         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
70190         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
70191         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
70192         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
70193         modules/strftime, modules/strndup, modules/strverscmp,
70194         modules/timespec, modules/unlocked-io, modules/userspec,
70195         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
70196         modules/yesno:
70197         Remove lib_SOURCES line from Makefile.am section, as this is now
70198         done automatically by the corresponding Autoconf macro.
70199
70200 2005-03-21  Jim Meyering  <jim@meyering.net>
70201
70202         Changes imported from coreutils.
70203
70204         * lib/cycle-check.c: Don't include xalloc.h.
70205
70206         * lib/path-concat.c: Don't include assert.h.
70207         (path_concat): Remove assertion that would have triggered
70208         for ABASE starting with more than one slash.
70209         Reported by Andreas Schwab.
70210
70211         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
70212         properly when ABASE is an absolute file name.
70213         Correct the description of this function.
70214         Include <assert.h>.
70215         Add an assertion and a test driver.
70216         This fixes a bug introduced on 2004-07-02.
70217         Andreas Schwab reported the resulting failure of cp --parents:
70218         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
70219
70220 2005-03-21  Jim Meyering  <jim@meyering.net>
70221
70222         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
70223         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
70224
70225 2005-03-21  Jim Meyering  <jim@meyering.net>
70226         and  Paul Eggert  <eggert@cs.ucla.edu>
70227
70228         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
70229         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
70230         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
70231         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
70232         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
70233         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
70234         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
70235         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
70236         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
70237         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
70238         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
70239         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
70240         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
70241         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
70242         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
70243         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
70244         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
70245         for these modules.
70246
70247 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
70248
70249         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
70250         (which shouldn't happen), generate nothing instead of returning 0
70251         immediately, so that nstrftime (NULL, ...) doesn't return 0.
70252
70253 2005-03-16  Bruno Haible  <bruno@clisp.org>
70254
70255         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
70256         HAVE_LONGLONG_64BIT.
70257
70258 2005-03-16  Bruno Haible  <bruno@clisp.org>
70259
70260         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
70261         HAVE_LONGLONG_64BIT.
70262
70263 2005-03-16  Bruno Haible  <bruno@clisp.org>
70264
70265         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
70266         HAVE_LONGLONG_64BIT.
70267
70268 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70269
70270         * lib/strftime.c (my_strftime): Prepend space to format so that we can
70271         reliably distinguish strftime failure from empty output on POSIX
70272         hosts.
70273
70274 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70275
70276         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
70277         (iconv_string): Don't guess a size-zero buffer, as that might cause
70278         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
70279         result would be 'too large', where 'too large' is (heuristically)
70280         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
70281         overflow concerns.  This will prevent some unwanted malloc failures
70282         when the inputs are very large.
70283
70284 2005-03-15  Karl Berry  <karl@gnu.org>
70285
70286         * config/srclist.txt (config.rpath): from gettext.
70287         * config/config.rpath: update.
70288
70289 2005-03-15  Bruno Haible  <bruno@clisp.org>
70290
70291         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
70292         to 'negate'.
70293
70294         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
70295         variable.
70296
70297         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
70298         results.
70299
70300 2005-03-14  Simon Josefsson  <jas@extundo.com>
70301
70302         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
70303         <fx@gnu.org>.
70304
70305 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
70306
70307         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
70308         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
70309         intprops.h.
70310         * lib/strtol.c: Likewise.
70311
70312 2005-03-14  Jim Meyering  <jim@meyering.net>
70313
70314         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
70315         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
70316         to be nonzero so that we (and caller) can detect the difference
70317         between a valid zero-length expansion and an error return, even
70318         when the underlying strftime fails before writing anything into
70319         that location.
70320
70321 2005-03-14  Bruno Haible  <bruno@clisp.org>
70322
70323         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
70324         Update from GNU gettext 0.14.3.
70325
70326 2005-03-10  Jim Meyering  <jim@meyering.net>
70327
70328         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
70329
70330 2005-03-10  Jim Meyering  <jim@meyering.net>
70331
70332         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
70333         so that this module works on systems without fchdir.
70334
70335 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
70336
70337         Factor int-properties macros into a single file, except for
70338         glibc-related files.
70339         * lib/intprops.h: New file.
70340         * lib/getloadavg.c: Include it instead of limits.h.
70341         (INT_STRLEN_BOUND): Remove.
70342         * lib/human.c: Include intprops.h.
70343         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
70344         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
70345         302/1000.
70346         * lib/inttostr.h: Include intprops.h instead of limits.h.
70347         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
70348         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
70349         for consistency with intprops.h.
70350         (time_t_is_integer, twos_complement_arithmetic): Use them.
70351         * lib/sig2str.h: Include <signal.h>, intprops.h.
70352         (INT_STRLEN_BOUND): Remove.
70353         * lib/strftime.c (TYPE_SIGNED): Remove.
70354         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
70355         * lib/strtol.c: Adjust comments to match intprops.h.
70356         * lib/userspec.c: Include intprops.h.
70357         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
70358         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
70359         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
70360         instead of rolling our own expressions.
70361         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
70362
70363         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
70364         instead of int.
70365         (my_strftime): Do not mishandle years close to INT_MAX, by doing
70366         the right thing even if adding 1900 would overflow.  Similarly
70367         for tm_mon + 1 and tm_yday + 1.
70368         Make %Y always equivalent to %C%y, and similarly for %G and %g.
70369         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
70370         (DO_SIGNED_NUMBER): New macro.
70371         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
70372
70373 2005-03-07  Bruno Haible  <bruno@clisp.org>
70374
70375         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
70376
70377 2005-03-07  Bruno Haible  <bruno@clisp.org>
70378
70379         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
70380
70381 2005-03-04  Derek R. Price  <derek@ximbiot.com>
70382
70383         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
70384         (func_import): Only replace files via --import when they have actually
70385         changed.
70386
70387 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70388
70389         * m4/mmap-anon.m4: New file.
70390         * m4/pagealign_alloc.m4: New file.
70391
70392 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70393             Bruno Haible  <bruno@clisp.org>
70394
70395         * modules/pagealign_alloc: New file.
70396         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
70397
70398 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70399             Bruno Haible  <bruno@clisp.org>
70400
70401         * lib/pagealign_alloc.h: New file.
70402         * lib/pagealign_alloc.c: New file.
70403
70404 2005-03-03  Bruno Haible  <bruno@clisp.org>
70405
70406         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
70407         Use an all-permissive copyright notice, recommended by RMS.
70408
70409 2005-03-02  Bruno Haible  <bruno@clisp.org>
70410
70411         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
70412         of AIX, the replacement has to be done only after <string.h> is
70413         included, therefore not in config.h. stpncpy.h does the replacement,
70414         and stpncpy.c uses it.
70415
70416 2005-03-02  Bruno Haible  <bruno@clisp.org>
70417
70418         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
70419         stpncpy.c uses it.
70420
70421 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70422
70423         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
70424         The workaround isn't strictly needed for POSIX conformance, and
70425         it's too much of a pain to configure and maintain.  We'll ask
70426         people to fix their kernels instead.
70427         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
70428         (NANOSLEEP_BUG_WORKAROUND): Remove.
70429         (xnanosleep): Remove the workaround.
70430
70431 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70432
70433         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
70434         Reported by Derek Price.
70435         (Include): Add "timespec.h".
70436
70437         * modules/xnanosleep (Depends-on): Remove gethrxtime.
70438
70439 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70440
70441         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
70442         to detect nanosleep bug.
70443
70444 2005-03-01  Bruno Haible  <bruno@clisp.org>
70445
70446         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
70447
70448 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
70449
70450         * modules/gethrxtime: New file.
70451         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
70452         (Depends-on): Add gethrxtime.
70453         (configure.ac): Add gl_XNANOSLEEP.
70454         (Makefile.am): Remove lib_SOURCES line.
70455
70456 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70457
70458         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
70459         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
70460
70461 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70462
70463         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
70464         * lib/timespec.h (gettime): Return void, since it always
70465         succeeds now.  All uses changed.
70466         * lib/gettime.c (gettime): Likewise.
70467         [HAVE_NANOTIME]: Prefer nanotime.
70468         Assume gettimeofday succeeds, as POSIX requires.
70469         Assime time () succeeds, since other code already does.
70470         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
70471         (timespec_subtract): Remove.
70472         (NANOSLEEP_BUG_WORKAROUND): New constant.
70473         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
70474         things considerably.  Use it only on GNU/Linux hosts, since the
70475         workaround shouldn't be needed elsewhere.
70476
70477 2005-02-24  Bruno Haible  <bruno@clisp.org>
70478
70479         * modules/gettext (Files): Add m4/glibc2.m4.
70480
70481 2005-02-24  Bruno Haible  <bruno@clisp.org>
70482
70483         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
70484         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
70485         * m4/progtest.m4:
70486         Update from GNU gettext 0.14.2.
70487         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
70488
70489 2005-02-24  Bruno Haible  <bruno@clisp.org>
70490
70491         * lib/localcharset.c: Update from GNU gettext 0.14.2.
70492         * lib/config.charset: Update from GNU gettext 0.14.2.
70493
70494 2005-02-24  Bruno Haible  <bruno@clisp.org>
70495
70496         * lib/gettext.h: Update from GNU gettext 0.14.2.
70497
70498 2005-02-23  Simon Josefsson  <jas@extundo.com>
70499
70500         * m4/iconvme.m4: New file.
70501
70502 2005-02-23  Jim Meyering  <jim@meyering.net>
70503
70504         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
70505         change.
70506         Thanks to Bruno Haible for catching it.
70507
70508 2005-02-22  Simon Josefsson  <jas@extundo.com>
70509
70510         * modules/iconvme: New file.
70511
70512         * MODULES.html.sh: Add iconvme.
70513
70514 2005-02-22  Simon Josefsson  <jas@extundo.com>
70515
70516         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
70517
70518 2005-02-22  Simon Josefsson  <jas@extundo.com>
70519
70520         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
70521
70522 2005-02-22  Jim Meyering  <jim@meyering.net>
70523
70524         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
70525         s/ifndef/ifdef/.
70526
70527 2005-02-20  Neil Conway  <neilc@samurai.com>
70528
70529         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
70530         returned by OSX/Darwin if the specified buffer is not large
70531         enough for the hostname.
70532
70533 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70534
70535         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
70536         pass it to _help, otherwise the latter coredumps trying to
70537         dereference state.root_argp.
70538
70539 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70540
70541         * modules/chdir-long (Depends-on): Add memrchr.
70542         * modules/memrchr (Files): Add lib/memrchr.h.
70543         (Include): "memrchr.h".
70544
70545 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70546
70547         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
70548
70549 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70550
70551         * lib/memrchr.h: New file.
70552         * lib/chdir-long.c: Include it.
70553         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
70554         Don't bother including stddef.h.
70555
70556 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70557
70558         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
70559         inclusion.
70560         Include <sys/types.h>, for dev_t.
70561         (ME_DUMMY, ME_REMOTE): Move from here....
70562         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
70563         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
70564         Dmitry V. Levin.
70565         Include mountlist.h first, to test the interface.
70566
70567 2005-01-29  Bruno Haible  <bruno@clisp.org>
70568
70569         * lib/progname.c (program_name): Initialize.
70570         Needed when linking statically on MacOS X.
70571
70572 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70573
70574         Sync from coreutils.
70575         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
70576         (Depends-on): Add c-strtod.
70577         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
70578
70579 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70580
70581         Sync from coreutils.
70582         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
70583
70584         Remove files that are specific to coreutils.
70585         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
70586
70587 2005-01-28  Bruno Haible  <bruno@clisp.org>
70588
70589         * modules/javacomp: New file.
70590         * MODULES.html.sh (Java): Add javacomp.
70591
70592 2005-01-28  Bruno Haible  <bruno@clisp.org>
70593
70594         * m4/javacomp.m4: New file, from GNU gettext.
70595
70596 2005-01-28  Bruno Haible  <bruno@clisp.org>
70597
70598         * lib/javacomp.sh.in: New file, from GNU gettext.
70599         * lib/javacomp.h: New file, from GNU gettext.
70600         * lib/javacomp.c: New file, from GNU gettext.
70601
70602 2005-01-26  Simon Josefsson  <jas@extundo.com>
70603
70604         * lib/gai_strerror.c: Use GPL in header.
70605
70606 2005-01-26  Bruno Haible  <bruno@clisp.org>
70607
70608         * modules/javaexec: New file.
70609         * MODULES.html.sh (Java): Add javaexec.
70610
70611 2005-01-26  Bruno Haible  <bruno@clisp.org>
70612
70613         * m4/javaexec.m4: New file, from GNU gettext.
70614
70615 2005-01-26  Bruno Haible  <bruno@clisp.org>
70616
70617         * lib/javaexec.sh.in: New file, from GNU gettext.
70618         * lib/javaexec.h: New file, from GNU gettext.
70619         * lib/javaexec.c: New file, from GNU gettext.
70620
70621 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70622
70623         * modules/lchown (Depends-on): Remove lchown.h
70624
70625 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70626
70627         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
70628         must be defined if the header file was not found, in order
70629         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
70630
70631 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70632
70633         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
70634         initializers for struct pentry_state.
70635         (__argp_error): Check return value of __asprintf
70636         (__argp_failure): Translate error message
70637
70638         * lib/argp-parse.c: Removed braces around the expansion of N_()
70639
70640 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70641
70642         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
70643         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
70644         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
70645         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
70646         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
70647         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
70648         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
70649         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
70650         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
70651         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
70652         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
70653         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
70654         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
70655         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
70656         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
70657         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
70658         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
70659         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
70660         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
70661         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
70662         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
70663         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
70664         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
70665         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
70666         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
70667         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
70668         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
70669         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
70670         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
70671         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
70672         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
70673         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
70674         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
70675         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
70676         xstrtol.m4, xstrtoumax.m4, yesno.m4:
70677         Use an all-permissive copyright notice, recommended by RMS.
70678
70679 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
70680
70681         * modules/chdir-long (Depends-on): Remove mempcpy.
70682
70683 2005-01-21  Jim Meyering  <jim@meyering.net>
70684
70685         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
70686         same value as for Solaris 9.
70687
70688         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
70689         component length.  This included changing the parameter to be
70690         of type `char *' rather than `char const *'.
70691         * lib/chdir-long.h (chdir_long): Update prototype.
70692
70693         * lib/openat.c (fdopendir, fstatat): New functions.
70694         * lib/openat.h: Include headers required for use of DIR and struct
70695         stat.
70696         [AT_SYMLINK_NOFOLLOW]: Define.
70697         (fdopendir, fstatat): Add prototypes.
70698
70699 2005-01-21  Bruno Haible  <bruno@clisp.org>
70700
70701         * modules/classpath: New file.
70702         * MODULES.html.sh (Java): Add classpath.
70703
70704 2005-01-21  Bruno Haible  <bruno@clisp.org>
70705
70706         * lib/classpath.h: New file, from GNU gettext.
70707         * lib/classpath.c: New file, from GNU gettext.
70708
70709 2005-01-20  Simon Josefsson  <jas@extundo.com>
70710
70711         * modules/version-etc-fsf: New file.
70712
70713 2005-01-20  Simon Josefsson  <jas@extundo.com>
70714
70715         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
70716         * lib/version-etc.c: Remove version_etc_copyright.
70717         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
70718         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
70719
70720 2005-01-20  Simon Josefsson  <jas@extundo.com>
70721
70722         * lib/base64.h (isbase64): Add.
70723
70724         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
70725         using a unsigned prototype, don't inline.
70726         (base64_decode): Use it.
70727
70728 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70729
70730         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
70731         it.
70732
70733 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70734
70735         * lib/save-cwd.c (save_cwd): Remove code to support the case
70736         where fchdir is missing or flaky.
70737
70738 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70739
70740         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
70741
70742 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70743
70744         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
70745         AC_LIBSOURCES now does this.
70746         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
70747         with new ullong_max module.
70748
70749 2005-01-19  Bruno Haible  <bruno@clisp.org>
70750
70751         * modules/sh-quote: New file.
70752         * MODULES.html.sh (Executing programs): Add sh-quote.
70753
70754 2005-01-19  Bruno Haible  <bruno@clisp.org>
70755
70756         * lib/sh-quote.h: New file, from GNU gettext.
70757         * lib/sh-quote.c: New file, from GNU gettext.
70758
70759 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70760
70761         Merge from coreutils.
70762         * m4/ullong_max.m4: New file.
70763         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
70764         (gl_MACROS): Assume localeconv exists.
70765
70766 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70767
70768         Merge changes from coreutils, as described below in several
70769         changelogs dated today.
70770
70771         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
70772         (O_DIRECTORY): Remove; not needed here, since "." must be
70773         a directory.  All uses removed.
70774         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
70775         universal on Suns, and we also need to test for IRIX.
70776         Revamp code to use 'if' rather than '#if'.
70777         Avoid unnecessary comparison of cwd->desc to 0.
70778
70779         * lib/utimens.c (futimens): Robustify the previous patch, by checking
70780         for known valid error numbers rather than observed invalid ones.
70781
70782 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70783
70784         * modules/ullong_max: New file.
70785
70786         * modules/chdir-long, modules/openat: New files.
70787         * modules/save-cwd (Depends-on): Depend on chdir-long.
70788         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
70789
70790 2005-01-18  Jim Meyering  <jim@meyering.net>
70791
70792         Merge from coreutils.
70793         * m4/chdir-long.m4, m4/openat.m4: New files.
70794         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
70795         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
70796         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
70797         is sane and DOES follow symlinks.  Besides, testing 20 different
70798         systems found no broken chown implementations.
70799         Prompted by a change in rsync's copy of this macro.
70800         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
70801
70802         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
70803
70804         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
70805         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
70806         NULL-means-set-to-current-time semantics.
70807         Remove temporary file immediately, rather than waiting
70808         for configure's at-exit trap code to do it.
70809
70810 2005-01-18  Jim Meyering  <jim@meyering.net>
70811
70812         * lib/version-etc.c (version_etc_copyright): Update copyright date.
70813
70814         * lib/utimens.c (futimens): Account for the fact that futimes
70815         can also fail with errno == ENOSYS or errno == ENOENT.
70816         Patch from Dmitry V. Levin.
70817
70818         Change the name of the robust chdir function from chdir to chdir_long.
70819         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
70820         (restore_cwd): Use chdir_long, not chdir.
70821         * lib/chdir-long.c: Renamed from chdir.c.
70822         * lib/chdir-long.h: Renamed from chdir.h.
70823         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
70824         Hurd.
70825
70826 2005-01-18  Bruno Haible  <bruno@clisp.org>
70827
70828         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
70829         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
70830         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
70831         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
70832         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
70833         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
70834         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
70835         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
70836         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
70837         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
70838         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
70839         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
70840         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
70841         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
70842         Use an all-permissive copyright notice, recommended by RMS.
70843
70844 2005-01-18  Bob Proulx  <bob@proulx.com>
70845
70846         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
70847         simplify offsetof() macro construct to avoid compile failure with
70848         native HP-UX 11.0 ANSI C compiler.
70849
70850 2005-01-17  Bruno Haible  <bruno@clisp.org>
70851
70852         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
70853         redundant because stpncpy.m4 takes care of it.
70854
70855 2005-01-17  Bruno Haible  <bruno@clisp.org>
70856
70857         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
70858
70859 2005-01-17  Bruno Haible  <bruno@clisp.org>
70860
70861         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
70862         used.
70863
70864 2005-01-17  Bruno Haible  <bruno@clisp.org>
70865
70866         * lib/fwriteerror.h (fwriteerror): Change specification to include
70867         fclose.
70868         * lib/fwriteerror.c: Include <stdbool.h>.
70869         (fwriteerror): At the end, close the file stream. Record whether
70870         stdout was already closed.
70871
70872 2005-01-17  Bruno Haible  <bruno@clisp.org>
70873
70874         * lib/execute.c (environ): Declare if needed.
70875         * lib/pipe.c (environ): Likewise.
70876         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
70877
70878 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70879
70880         * modules/argp: Depend on vsnprintf
70881
70882 2005-01-10  Jim Meyering  <jim@meyering.net>
70883
70884         * modules/closeout (Depends-on): Add atexit.
70885
70886 2005-01-06  Bruno Haible  <bruno@clisp.org>
70887
70888         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
70889
70890 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70891
70892         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
70893         definitions to be after all include files, to avoid collisions.
70894         Problem reported by Bob Proulx.
70895
70896 2005-01-04  Jim Meyering  <jim@meyering.net>
70897
70898         Changes imported from coreutils.
70899         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
70900         as the mkstemp template, use a temporary directory and an
70901         8.3-friendly template to avoid trouble on systems like DJGPP.
70902         Reported by Juan M. Guerrero via Stepan Kasal.
70903         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
70904         close. Remove the temporary directory right away, rather than waiting
70905         for configure's at-exit trap code to do it.
70906         Suggestion from Stepan Kasal.
70907
70908 2005-01-01  Simon Josefsson  <jas@extundo.com>
70909
70910         * gnulib-tool: Print #include directives when --import'ing.
70911
70912 2004-12-28  Simon Josefsson  <jas@extundo.com>
70913
70914         * tests/test-base64.c: Include required header files.  Remove
70915         unused variables.
70916
70917 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70918
70919         * modules/error (Depends-on): Remove gettext.
70920
70921 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70922
70923         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
70924         not needed.  This removes a dependency on the gettext module.
70925         [defined _LIBC]: Do not include <libintl.h>; not needed.
70926
70927 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
70928
70929         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
70930         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
70931
70932 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
70933
70934         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
70935         HAVE_DECL_STRTOLD.
70936
70937 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70938
70939         * modules/getdate (Depends-on): Remove alloca-opt.
70940
70941 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70942
70943         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
70944
70945 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70946
70947         * lib/argp-parse.c: Include <stddef.h>.
70948         (alignof, alignto): New macros.
70949         (parser_init): Don't assume that void * is aligned sufficiently
70950         for struct option.
70951
70952         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
70953         need to extend the stack.
70954         (YYINITDEPTH): New macro, so that the initial stack isn't overly
70955         large.
70956
70957 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70958
70959         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
70960
70961 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
70962
70963         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
70964         (2004-10-24) change.  Apparently this was a false alarm.
70965
70966         * modules/getdate: Depend on alloca-opt, not alloca.
70967
70968 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
70969
70970         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
70971         Remove now-obsolete comment about AIX.
70972         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
70973         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
70974         (YYMAXDEPTH): New macro.
70975
70976 2004-12-18  Simon Josefsson  <jas@extundo.com>
70977
70978         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
70979
70980 2004-12-18  Bruno Haible  <bruno@clisp.org>
70981
70982         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
70983
70984 2004-12-18  Bruno Haible  <bruno@clisp.org>
70985
70986         * lib/fatal-signal.c (fatal_signals): Make non-const.
70987         (init_fatal_signals): New function.
70988         (uninstall_handlers, install_handlers): Ignore signals that were set to
70989         SIG_IGN.
70990         (at_fatal_signal): Call init_fatal_signals.
70991         (init_fatal_signal_set): Likewise. Ignore signals that were set to
70992         SIG_IGN.
70993         Reported by Paul Eggert.
70994
70995 2004-12-18  Bruno Haible  <bruno@clisp.org>
70996
70997         * doc/alloca.texi: New file.
70998         * doc/alloca-opt.texi: New file.
70999
71000 2004-12-17  Jim Meyering  <jim@meyering.net>
71001
71002         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
71003         Otherwise, install-sh could exit with improper exit status when
71004         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
71005
71006 2004-12-16  Simon Josefsson  <jas@extundo.com>
71007
71008         * tests/test-base64.c: Add license.
71009
71010 2004-12-15  Stepan Kasal  <address@hidden>
71011
71012         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
71013
71014 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
71015
71016         * modules/getcwd (Files): Add m4/d-ino.m4.
71017         Suggested by Mark D. Baushke.
71018
71019 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71020
71021         * lib/getdate.y (textint): New member "negative".
71022         (time_zone_hhmm): New function.
71023         Expect 14 shift-reduce conflicts, not 13.
71024         (o_colon_minutes): New rule.
71025         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
71026         (yylex): Set the "negative" member of signed numbers.
71027
71028 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71029
71030         * doc/getdate.texi (Time of day items, Time zone items):
71031         Describe new formats +00:00, UTC+00:00.
71032
71033 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
71034
71035         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
71036         spurious "-l"s.  Problem reported by Stepan Kasal.
71037
71038 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
71039
71040         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
71041         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
71042
71043 2004-12-04  Simon Josefsson  <jas@extundo.com>
71044
71045         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
71046         Vandoorselaere <yoann@prelude-ids.org>.
71047
71048 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71049
71050         Changes imported from coreutils.
71051         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
71052         exist.
71053         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
71054
71055 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71056
71057         Changes imported from coreutils.
71058         * lib/hard-locale.c: Assume <locale.h> exists.
71059         Include "strdup.h".
71060         (GLIBC_VERSION): New macro.
71061         (hard_locale): Assume setlocale exists.
71062         Rewrite to avoid #ifdef.
71063         Use strdup rather than malloc + strcpy.
71064         * lib/human.c: Assume <locale.h> exists.
71065         (human_readable): Assume localeconv exists.
71066
71067 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71068
71069         * modules/hard-locale (Depends-on): Add strdup.
71070
71071 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71072
71073         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
71074         convert T2, not T.  (Imported from libc.)
71075
71076 2004-11-30  Simon Josefsson  <jas@extundo.com>
71077
71078         * modules/restrict (License): Change to LGPL.
71079
71080 2004-11-30  Simon Josefsson  <jas@extundo.com>
71081
71082         * m4/restrict.m4: Add copyright and copying conditions.
71083
71084 2004-11-30  Simon Josefsson  <jas@extundo.com>
71085
71086         * m4/base64.m4: New file.
71087
71088 2004-11-30  Simon Josefsson  <jas@extundo.com>
71089
71090         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
71091         base64.
71092
71093         * tests/test-base64.c: New file.
71094
71095         * modules/base64: New file.
71096
71097 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71098
71099         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
71100         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
71101
71102         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
71103
71104 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71105
71106         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
71107         (__getcwd.c): Don't restore errno; glibc doesn't.
71108         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
71109         first, falling back to our code only if its results look suspicious.
71110         Ensure that the resulting buffer is only as large as necessary.
71111
71112         * lib/readutmp.c: Include readutmp.h first.
71113         Include <errno.h>, since readutmp.h no longer does that.
71114         * lib/readutmp.h: Don't include <errno.h>,
71115         <sys/param.h>, <time.h>; not needed to establish interface.
71116         (errno): Remove decl.
71117         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
71118         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
71119         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
71120
71121 2004-11-28  Simon Josefsson  <jas@extundo.com>
71122
71123         * lib/base64.h, base64.c: New file.
71124
71125 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71126
71127         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
71128
71129 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71130
71131         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
71132         (Depends-on): Remove pathmax, same.  Add mempcpy.
71133         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
71134         (Makefile.am): Append getcwd.h to lib_SOURCES.
71135         (Include): Add getcwd.h.
71136         (Maintainer): Change from Jim Meyering to "all, glibc",
71137         since getdate now uses intended-for-glibc code.
71138         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
71139         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
71140
71141 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71142
71143         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
71144         HP's ANSI C compiler.
71145         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
71146         Declaring int functions causes warnings on some modern systems and
71147         shouldn't be needed to compile on ancient ones.
71148         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
71149         defined.
71150
71151         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
71152         with the following changes.
71153         (__set_errno): Parenthesize properly.
71154         Include <stdbool.h>.
71155         (MIN, MAX, MATCHING_INO): New macros.
71156         (__getcwd): Define with prototype, not K&R form.
71157         Use heuristics to allocate default buffer on stack if possible.
71158         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
71159         behavior, and to avoid the PATH_MAX limit when computing
71160         ../../../../...
71161         Use MATCHING_INO to compare inode number to file.
71162         Check for arithmetic overflow in size calculations.
71163         Fix bug in reallocation of dot array that caused getcwd to fail
71164         on directories nested deeper than 75.
71165         Be more careful about saving errno on error.
71166         Do not use realloc; use only free+malloc, as this is a bit
71167         more flexible and avoids a needless copy operation.
71168         Do not inspect st_dev and st_ino for symbolic links; POSIX
71169         doesn't specify the latter.
71170         Check for closedir errors.
71171         Avoid needless casts.
71172         Use "#ifdef weak_alias" around weak_alias, to be like other
71173         glibc code.
71174         The following changes to getcwd.c have effect only when used in
71175         gnulib; they have no effect inside glibc proper.
71176         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
71177         as alloca isn't used.
71178         (alloca, __alloca): Likewise.
71179         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
71180         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71181         unconditionally, as gnulib assumes C89 or better.
71182         Do not include <sys/param.h>.
71183         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
71184         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
71185         better.
71186         (NULL) [!defined NULL]: Remove; we assume C89 or better.
71187         Include <dirent.h> in a way that is compatible with modern Autoconf.
71188         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
71189         New macros, if not already defined.
71190         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
71191         Use "_LIBC", not "defined _LIBC", for consistency.
71192         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
71193         a mempcpy module.
71194         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
71195         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
71196         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
71197         credit only to Jim Meyering and adjust the copyright dates.
71198         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
71199         <stdlib.h>, <unistd.h>, "pathmax.h".
71200         Instead, include "xgetcwd.h" (first) and "getcwd.h".
71201         (INITIAL_BUFFER_SIZE): Remove.
71202         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
71203
71204 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71205
71206         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
71207         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
71208         Use the _ONCE methods, for efficiency.
71209         Check for fcntl.h.  In test program, include <errno.h>
71210         and <fcntl.h> if available.  Remove old K&R cruft from
71211         test program.  Check for common errors in GNU/Linux,
71212         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
71213         don't do AC_LIBOBJ, as that's getcwd.m4's job.
71214         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
71215         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
71216         name accordingly.
71217         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
71218         accommodate new getcwd.c.
71219         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
71220         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
71221         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
71222         that's all we need now.
71223
71224 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71225
71226         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
71227         argp-parse.c depends on getopt internals, that means we should
71228         always use our getopt, to be on the safe side.
71229         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
71230         order not to spoil the result of an eventual previous invocation
71231         of gl_GETOPT_SUBSTITUTE.
71232
71233 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71234
71235         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
71236         redefinition warnings. To avoid them, include the defines
71237         in `#if !defined __need_getopt ... #endif'. The only place
71238         where __getopt_argv_const is used is in definitions
71239         of getopt_long and getopt_long_only below, which are as well
71240         protected by `#ifndef __need_getopt'.
71241         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
71242         __need_getopt after including <stdio.h> and <unistd.h> These
71243         headers might have defined it.
71244
71245 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71246
71247         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
71248
71249 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71250
71251         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
71252         (futimens): New function, which uses futimes if available.
71253         (futimens, utimens): Support timespec==NULL, with same semantics
71254         as utime and utimens.
71255         * lib/utimens.h (futimens): New decl.
71256
71257 2004-11-23  Jim Meyering  <jim@meyering.net>
71258
71259         * lib/getopt_.h: Remove trailing blanks.
71260
71261 2004-11-23  Jim Meyering  <jim@meyering.net>
71262
71263         * lib/__fpending.c: Add comment.
71264
71265 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
71266
71267         * modules/canonicalize (Depends-on): Add xreadlink.
71268         Problem reported by James Youngman.
71269
71270 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71271
71272         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
71273         New macros.
71274         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
71275         optopt): Use them instead of invoking ## directly; otherwise, the
71276         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
71277
71278 2004-11-19  Bruno Haible  <bruno@clisp.org>
71279
71280         * lib/strtok_r.c: Move comments from here...
71281         * lib/strtok_r.h: ... to here.
71282
71283 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71284
71285         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
71286         implementations that mishandle size_t overflow.
71287
71288 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71289
71290         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
71291         might fail.  Problem reported by Yoann Vandoorselaere.
71292         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
71293         implementations that mishandle size_t overflow.
71294
71295 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71296
71297         * modules/canon-host (Depends-on): Add strdup.
71298
71299 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71300
71301         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
71302
71303 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71304
71305         * lib/canon-host.c: Include "strdup.h".
71306         (canon_host): Use getaddrinfo if available, so that IPv6 works.
71307         Use strdup instead of malloc/strcpy to duplicate strings.
71308
71309         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
71310         (human_space_before_unit): New constant.
71311         * lib/human.c (human_readable): Support it.
71312
71313         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
71314         (xgetcwd): Set errno correctly when failing.
71315         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
71316         the failure is actually due to a PATH_MAX problem.
71317
71318         Further getopt changes to make it more likely that glibc will
71319         buy the changes back.
71320         * lib/getopt.c (POSIXLY_CORRECT): New constant.
71321         (getopt): Use it, so to preserve glibc semantic
71322         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
71323         when compiling for libc.
71324         * lib/getopt_.h (__getopt_argv_const): Bring it back.
71325         (getopt_long, getopt_long_only): Use it.
71326
71327         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71328         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
71329         (getopt): Argv is now char * const *, as per standard.
71330         (_getopt_internal_r, _getopt_internal): Argv is now char **,
71331         not char *__getopt_argv_const *.
71332         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71333         _getopt_long_only_r): Likewise.
71334         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
71335         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71336         _getopt_long_r, _getopt_long_only_r): Likewise.
71337         * lib/getopt_.h (__getopt_argv_const): Remove.
71338         (getopt): Argv is now char * const *, as per standard.
71339
71340         * lib/getdate.y (tORDINAL): New token.
71341         (day, relunit): Allow it for relative times.
71342         (relative_time_table): Use tORDINAL for ordinals.
71343
71344 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71345
71346         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
71347         Document that "second" isn't allowed as an ordinal number.
71348
71349 2004-11-16  Jim Meyering  <jim@meyering.net>
71350
71351         * modules/closeout (Depends-on): Add fpending.
71352
71353 2004-11-15  Jim Meyering  <jim@meyering.net>
71354
71355         * lib/closeout.c: Include "__fpending.h" once again.
71356         Include <stdbool.h>.
71357         (close_stdout): Don't fail just because stdout was closed initially,
71358         since some programs don't write to stdout in the normal course of
71359         operation (other than --version and --help), and we don't want this
71360         function to make e.g. `touch file >&-' fail.
71361         But do fail if it was closed and someone has tried to write to it.
71362         E.g., `printf foo >&-' must fail.
71363
71364 2004-11-13  Jim Meyering  <jim@meyering.net>
71365
71366         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
71367
71368 2004-11-12  Simon Josefsson  <jas@extundo.com>
71369
71370         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
71371         small doc fix is still pending.
71372
71373 2004-11-11  Simon Josefsson  <jas@extundo.com>
71374
71375         * modules/strtok_r: New file.
71376
71377         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71378         strtok_r.
71379
71380 2004-11-11  Simon Josefsson  <jas@extundo.com>
71381
71382         * m4/strtok_r.m4: New file.
71383
71384         * m4/getopt.m4: Replace opterr.
71385
71386 2004-11-11  Simon Josefsson  <jas@extundo.com>
71387
71388         * lib/strtok_r.h, strtok_r.c: New file.
71389
71390 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71391
71392         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
71393         of replacing opterr, getopt, etc.  This should handle the
71394         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
71395
71396 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71397
71398         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
71399         we can stop lying to compilers about the constness of argv when we
71400         are compiled outside glibc.
71401         (getopt, getopt_long, getopt_long_only): Use it.
71402         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71403         _getopt_internal, getopt): Likewise.
71404         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71405         _getopt_long_only_r): Likewise.
71406         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71407         _getopt_long_r, _getopt_long_only_r): Likewise.
71408
71409         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
71410         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
71411         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
71412         the other external symbols.
71413         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
71414         declaration, since the above renaming now works around collisions.
71415
71416 2004-11-11  Jim Meyering  <jim@meyering.net>
71417
71418         * lib/linebreak.c: Remove trailing blanks.
71419         * lib/alloca_.h: Likewise.
71420         * lib/acosl.c: Likewise.
71421         * lib/euidaccess.c: Likewise.
71422         * lib/allocsa.h: Likewise.
71423
71424 2004-11-10  Simon Josefsson  <jas@extundo.com>
71425
71426         * m4/getaddrinfo.m4: New file.
71427
71428 2004-11-10  Simon Josefsson  <jas@extundo.com>
71429
71430         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
71431
71432 2004-11-10  Simon Josefsson  <jas@extundo.com>
71433
71434         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71435         getaddrinfo.
71436
71437         * modules/getaddrinfo: New file.
71438
71439 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71440
71441         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
71442
71443 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71444
71445         * lib/mktime.c (SHR): New macro, which is a portable
71446         substitute for >> that should work even on Crays.
71447         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
71448         Problem reported by Mark D. Baushke in
71449         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
71450         * lib/getdate.y (SHR): Likewise.
71451         (tm_diff): Use it.
71452         * lib/strftime.c (SHR): Likewise.
71453         (tm_diff): Use it.
71454         * lib/quotearg.c (struct quoting_options): Use unsigned int for
71455         quote_these_too, so that right shifts are well defined.  All uses
71456         changed.
71457
71458 2004-11-10  Jim Meyering  <jim@meyering.net>
71459
71460         Ensure that no close failure goes unreported.
71461         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
71462         return early when it seems there's nothing to flush.
71463         Don't include __fpending.h.
71464
71465 2004-11-10  Jim Meyering  <jim@meyering.net>
71466
71467         * modules/closeout (Depends-on): Remove fpending.
71468
71469 2004-11-10  Jim Meyering  <jim@meyering.net>
71470
71471         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
71472
71473 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71474
71475         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
71476         gl_FUNC_STRFTIME.
71477         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
71478         and AC_REQUIRE when possible, to avoid duplicate checks.
71479         Check for <wchar.h>.
71480
71481 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71482
71483         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
71484
71485 2004-11-09  Bruno Haible  <bruno@clisp.org>
71486
71487         * m4/sockpfaf.m4: New file.
71488
71489 2004-11-05  Bruno Haible  <bruno@clisp.org>
71490
71491         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
71492         Reported by Mark D. Baushke <mdb@cvshome.org>.
71493
71494 2004-11-04  Bruno Haible  <bruno@clisp.org>
71495
71496         2004-09-11  Bruno Haible  <bruno@clisp.org>
71497                 * allocsa.valgrind: New file.
71498         2004-02-06  Bruno Haible  <bruno@clisp.org>
71499                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
71500                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
71501                 Reported by Christopher Seip <chris.seip@hp.com>.
71502
71503 2004-11-04  Bruno Haible  <bruno@clisp.org>
71504
71505         * modules/allocsa (Files): Add lib/allocsa.valgrind.
71506         (Makefile.am): Distribute it.
71507
71508 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71509
71510         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
71511         with errno == ERANGE if the buffer is too small.
71512         Problem reported by Mark D. Baushke.
71513
71514 2004-11-03  Albert Chin  <china@thewrittenword.com>
71515             Paul Eggert  <eggert@cs.ucla.edu>
71516
71517         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
71518         equivalent, substitute $ac_type for equivalent type rather than
71519         blindly using uint32_t *always* which won't work if uint32_t is not
71520         available.  Define _UINT32_T to work around typedef of uint32_t if
71521         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
71522         2.5.1.
71523
71524 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71525
71526         * m4/jm-macros.m4: Sync from coreutils.
71527         (gl_MACROS): Check for mbrlen, for pathchk.
71528         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
71529
71530 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71531
71532         * lib/xreadlink.c (MAXSIZE): New macro.
71533         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
71534         size does not exceed MAXSIZE.  Avoid cast.
71535         As suggested by Mark D. Baushke in
71536         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
71537         if readlink fails with buffer size just under MAXSIZE, try again
71538         with MAXSIZE.
71539
71540 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71541
71542         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
71543
71544 2004-11-02  Derek R. Price  <derek@ximbiot.com>
71545         and  Paul Eggert  <eggert@cs.ucla.edu>
71546
71547         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
71548         (get_date): Overparenthesize to avoid GCC warning.
71549
71550 2004-11-02  Bruno Haible  <bruno@clisp.org>
71551
71552         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
71553         returns void.
71554
71555 2004-11-02  Bruno Haible  <bruno@clisp.org>
71556
71557         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
71558         function returns void.
71559
71560 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
71561
71562         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
71563         fflush_unlocked, flockfile, funlockfile, funlockfile,
71564         fputs_unlocked, putc_unlocked.
71565
71566 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
71567
71568         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
71569         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
71570         already declared.
71571
71572 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71573
71574         * modules/getdate (Files): Add doc/getdate.texi.
71575         (Depends-on): Add setenv, xalloc.
71576
71577 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71578
71579         * lib/getdate.y: Add support for TZ="foo" within a date string.
71580         Fix some bugs near time_t boundaries.  Reject dates with
71581         out-of-range components, e.g., "Sept 31".
71582         Include <stdlib.h>, "setenv.h", "xalloc.h".
71583         (ISDIGIT_LOCALE): Remove; unused.
71584         Note that the TZ and time functions used here are not reentrant.
71585         (mktime_ok, get_tz): New functions.
71586         (TZBUFSIZE): New constant.
71587         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
71588         This requires that we sometimes generate our own TZ="XXX..." setting.
71589
71590 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71591
71592         * doc/getdate.texi: New file, from coreutils with modifications for
71593         the new TZ parsing.
71594
71595 2004-10-27  Derek R. Price  <derek@ximbiot.com>
71596
71597         * lib/mktime.c (not_equal_tm): Remove redundant check.
71598
71599 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71600
71601         * modules/regex (lib_SOURCES): Add regex.c.
71602         Reported by James Youngman in
71603         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
71604
71605 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71606
71607         * lib/getdate.y: Use Bison 1.875 features, and some minor
71608         code cleanups.  This change does not affect semantics.
71609         Don't include <stdlib.h>; no longer needed.
71610         Don't include unlocked-io.h; only the "#if TEST" code uses
71611         stdio, and performance isn't crucial there.
71612         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
71613         Bison 1.875 features as described below.
71614         All uses of "PC." replaced by "pc->".
71615         (YYSTYPE): Add a forward declaration.
71616         (yylex, yyerror): Use full prototypes in forward decls.
71617         Use "%pure-parser" rather than obsolescent "%pure_parser".
71618         Use %parse-param and %lex-param instead of obsolescent
71619         YYPARSE_PARAM and YYLEX_PARAM.
71620         (meridian_table, month_and_day_table, time_units_table,
71621         relative_time_table, time_zone_table, military_table,
71622         lookup_zone, lookup_word, get_date):
71623         Use NULL instead of 0 where appropriate.
71624         (to_hour): Avoid abort (), to avoid a dependency on
71625         stdlib.h.
71626         (yyerror, yylex): Now accepts parser_control * arg.
71627         (main) [TEST]: Use '\0' rather than 0 for char.
71628
71629 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
71630
71631         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
71632
71633 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
71634
71635         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
71636         It's now the caller's responsibility to handle the case where
71637         !HAVE_GETPAGESIZE && !defined getpagesize.
71638
71639         * lib/mktime.c (leapyear): Arg is long int, not int.
71640
71641 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
71642
71643         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
71644
71645 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71646
71647         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
71648         missing.  Problem reported by James Youngman.
71649
71650 2004-10-16  Simon Josefsson  <jas@extundo.com>
71651
71652         * gnulib-tool: Fix comments.  Fix parse problem.
71653         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
71654
71655 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
71656
71657         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
71658         implementation of getopt_long.  Problem reported by Alexander Taler in:
71659         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
71660
71661 2004-10-15  Bruno Haible  <bruno@clisp.org>
71662
71663         * gnulib-tool: Untabify. Initialize supplied_libname.
71664         (func_usage): More homogenous output.
71665         (func_modules_transitive_closure, func_modules_to_filelist,
71666         func_emit_lib_Makefile_am): New functions.
71667         (func_import): New function, extracted from big case statement. Use
71668         func_get_license, func_modules_transitive_closure,
71669         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
71670         opt_lgpl. Don't use test -a, as it's not portable.
71671         (func_create_testdir): Use func_modules_transitive_closure,
71672         func_modules_to_filelist, func_emit_lib_Makefile_am.
71673
71674 2004-10-15  Bruno Haible  <bruno@clisp.org>
71675
71676         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
71677
71678 2004-10-15  Bruno Haible  <bruno@clisp.org>
71679
71680         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
71681         the portions belonging to each module.
71682         Suggested by Derek Robert Price <derek@ximbiot.com>.
71683
71684 2004-10-12  Simon Josefsson  <jas@extundo.com>
71685
71686         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
71687         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
71688         to real functions.
71689
71690 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71691
71692         * modules/vsnprintf: New file.
71693
71694 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71695
71696         * m4/vsnprintf.m4: New file.
71697
71698 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71699
71700         * lib/vsnprintf.h: New file.
71701         * lib/vsnprintf.c: New file.
71702
71703 2004-10-11  Bruno Haible  <bruno@clisp.org>
71704
71705         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
71706         vsnprintf.
71707
71708 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71709
71710         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
71711
71712 2004-10-07  Bruno Haible  <bruno@clisp.org>
71713
71714         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
71715         fits into the provided buffer.
71716
71717 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71718
71719         * lib/diacrit.c, diacrit.h: Add GPL notice.
71720
71721         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
71722         notice.
71723         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
71724         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
71725         This avoids a potential constant-folding bug.
71726
71727 2004-10-05  Bruno Haible  <bruno@clisp.org>
71728
71729         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
71730         for the declaration of strsep.
71731
71732 2004-10-05  Bruno Haible  <bruno@clisp.org>
71733
71734         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
71735
71736 2004-10-04  Simon Josefsson  <jas@extundo.com>
71737
71738         * modules/memmem: New file.
71739         * tests/test-memmem.c: New file.
71740         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
71741
71742 2004-10-04  Simon Josefsson  <jas@extundo.com>
71743
71744         * m4/memmem.m4: New file.
71745
71746 2004-10-04  Simon Josefsson  <jas@extundo.com>
71747
71748         * lib/memmem.h: New file.
71749         * lib/memmem.c: New file, taken from glibc.
71750
71751 2004-10-04  Simon Josefsson  <jas@extundo.com>
71752
71753         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
71754         '#ifdef USE_UNLOCKED_IO'.
71755
71756 2004-10-04  Simon Josefsson  <jas@extundo.com>
71757
71758         * config/srclist.txt: Add memmem from glibc.
71759
71760 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71761
71762         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
71763
71764         * modules/argmatch, modules/argp, modules/closeout, modules/error,
71765         modules/exclude, modules/getdate, modules/getline,
71766         modules/getndelim2, modules/getpass, modules/getpass-gnu,
71767         modules/getusershell, modules/linebuffer, modules/md5,
71768         modules/mountlist, modules/posixtm, modules/readtokens,
71769         modules/readutmp, modules/regex, modules/sha1,
71770         modules/version-etc, modules/yesno:
71771         Remove dependency on unlocked-io.
71772
71773 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71774
71775         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
71776
71777         * m4/unlocked-io.m4: Add copyright notice.
71778         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
71779
71780 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71781
71782         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
71783         * lib/xmalloc.c (xmemdup): Likewise.
71784         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
71785         XFREE): Remove these long-obsolescent macros.
71786         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
71787         * lib/xstrdup.c: Remove.
71788
71789         * lib/regex.c (re_comp): Cast gettext return value to char *,
71790         Problem reported by Martin Neitzel via Mark D. Baushke.
71791
71792 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71793
71794         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
71795         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
71796         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
71797         regex.c, sha1.c, version-etc.c, yesno.c:
71798         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
71799         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
71800         the includer's responsibility.
71801
71802         Sync from coreutils.
71803
71804         * lib/modechange.c (mode_compile): Don't decrement a pointer that
71805         points to the start of a string, as the C Standard says the
71806         resulting behavior is undefined.
71807
71808         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
71809         simple -> simple_backups, numbered_existing ->
71810         numbered_existing_backups, numbered -> numbered_backups
71811         to avoid shadowing problems.  All uses changed.
71812         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
71813         * lib/backupfile.c (check_extension, numbered_backup):
71814         Rename locals to avoid shadowing 'basename'.
71815         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
71816         once.
71817
71818         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
71819         * lib/.cvsignore: Add getopt.h.
71820
71821 2004-10-04  Bruno Haible  <bruno@clisp.org>
71822
71823         * modules/README: New file.
71824         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
71825         not a module.
71826
71827 2004-10-02  Jim Meyering  <jim@meyering.net>
71828
71829         * lib/dirfd.h, getpagesize.h: Add copyright notice.
71830
71831 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71832
71833         * modules/strsep: New file.
71834
71835 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71836
71837         * m4/strsep.m4: New file.
71838
71839 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71840
71841         * lib/strsep.h: New file.
71842         * lib/strsep.c: New file.
71843
71844 2004-10-01  Simon Josefsson  <jas@extundo.com>
71845
71846         * lib/snprintf.c (snprintf): Handle size==0.
71847
71848 2004-10-01  Simon Josefsson  <jas@extundo.com>
71849             Bruno Haible  <bruno@clisp.org>
71850
71851         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
71852         (snprintf): Declare 'args'.
71853
71854 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
71855
71856         * lib/snprintf.c: Remove comments as to why each header is needed.
71857
71858 2004-10-01  Bruno Haible  <bruno@clisp.org>
71859
71860         * MODULES.html.sh: Add strsep.
71861
71862 2004-09-30  Simon Josefsson  <jas@extundo.com>
71863
71864         * modules/snprintf: New file.
71865
71866 2004-09-30  Simon Josefsson  <jas@extundo.com>
71867
71868         * m4/snprintf.m4: New file.
71869
71870 2004-09-30  Simon Josefsson  <jas@extundo.com>
71871
71872         * lib/snprintf.h, lib/snprintf.c: New files.
71873
71874 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71875
71876         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
71877         (hol_entry_help): Never translate an empty string.
71878         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
71879         * lib/argp.h (OPTION_NO_TRANS): New option.
71880
71881 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71882
71883         * modules/argp (Maintainer): Replace Simon Josefsson
71884         by Sergey Poznyakoff.
71885
71886 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71887
71888         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
71889         changes merged back into glibc.
71890
71891 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71892
71893         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
71894
71895 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71896
71897         * lib/xvasprintf.c: Include xalloc.h.
71898         (xvasprintf): Use xalloc_die, not xmalloc_die.
71899
71900 2004-09-29  Bruno Haible  <bruno@clisp.org>
71901
71902         * modules/alloca-opt: New file, derived from modules/alloca.
71903         * modules/allocsa: Depend on alloca-opt instead of alloca.
71904         * modules/setenv: Likewise.
71905         * modules/vasnprintf: Likewise.
71906         * MODULES.html.sh: Add alloca-opt.
71907
71908 2004-09-28  Simon Josefsson  <jas@extundo.com>
71909
71910         * gnulib-tool: New parameter --lgpl, to asseert that modules are
71911         LGPL, and to replace license template from GPL to LGPL.
71912
71913 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
71914
71915         * modules/dummy: Change license to LGPL.
71916
71917 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
71918
71919         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
71920
71921 2004-09-24  Simon Josefsson  <jas@extundo.com>
71922
71923         * modules/minmax (License): Change from GPL to LGPL.
71924
71925 2004-09-23  Simon Josefsson  <jas@extundo.com>
71926
71927         * gnulib-tool (--import): Typo.
71928
71929 2004-09-23  Simon Josefsson  <jas@extundo.com>
71930
71931         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
71932
71933 2004-09-22  Bruno Haible  <bruno@clisp.org>
71934
71935         * modules/*: Add 'License' field.
71936         * gnulib-tool: Accept --extract-license option.
71937         (func_get_license): New function.
71938
71939 2004-09-21  Bruno Haible  <bruno@clisp.org>
71940
71941         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
71942         Reported by Simon Josefsson.
71943
71944 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
71945
71946         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
71947         gl_AC_TYPE_LONG_LONG.
71948
71949 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
71950
71951         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
71952
71953 2004-09-18  Simon Josefsson  <jas@extundo.com>
71954         and  Paul Eggert  <eggert@cs.ucla.edu>
71955
71956         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
71957         calls with autoreconf.  Define GL_LIB.
71958
71959 2004-09-14  Karl Berry  <karl@gnu.org>
71960
71961         * config/srclist.txt: unsync setenv.c, sigh.
71962
71963 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71964
71965         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
71966         Problem reported by Bruno Haible in:
71967         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
71968
71969 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71970
71971         * config/srclist.txt: Comment out argp-pvh.c.
71972
71973 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
71974
71975         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
71976         in case some system header has #define'd it.  Problem reported by
71977         Soeren D. Schulze in
71978         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
71979
71980 2004-09-09  Karl Berry  <karl@gnu.org>
71981
71982         * regex.[ch]: delete from the root.  These were supposed to be
71983                 synced with emacs cvs, but this has not happened for about
71984                 a year, and anyway nothing else uses emacs regex.[ch].
71985                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
71986                 lib/regex[.ch] is untouched.
71987
71988 2004-09-09  Bruno Haible  <bruno@clisp.org>
71989
71990         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
71991
71992 2004-09-09  Bruno Haible  <bruno@clisp.org>
71993
71994         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
71995         modifications.
71996         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
71997
71998 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
71999
72000         * modules/xvasprintf: New file.
72001         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
72002
72003 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72004
72005         * lib/xvasprintf.h: New file.
72006         * lib/xvasprintf.c: New file.
72007         * lib/xasprintf.c: New file.
72008
72009 2004-09-08  Bruno Haible  <bruno@clisp.org>
72010
72011         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
72012
72013 2004-09-08  Bruno Haible  <bruno@clisp.org>
72014
72015         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
72016         length is > INT_MAX.
72017         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
72018         more.
72019
72020 2004-09-08  Bruno Haible  <bruno@clisp.org>
72021
72022         * lib/stdint_.h: New file, taken from GNU clisp.
72023
72024 2004-09-08  Bruno Haible  <bruno@clisp.org>
72025             Oskar Liljeblad  <oskar@osk.mine.nu>
72026
72027         * modules/stdint: New file.
72028         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
72029
72030 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72031
72032         Import from coreutils.
72033         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
72034         strings on unbounded length.  alloca's performance benefits aren't
72035         that important here.
72036         (V_STRDUP): Remove.
72037         (parse_with_separator): New function, with most of the internals
72038         of the old parse_user_spec.  Allow user to omit both user and group,
72039         for compatibility with FreeBSD.
72040         Clone only the user name, not the entire spec.
72041         Do not set *uid, *gid unless entirely successful.
72042         Avoid memory leak in some failing cases.
72043         Fix regression for USER.GROUP reported by Dmitry V. Levin in
72044         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
72045         (parse_user_spec): Rewrite to use parse_with_separator.
72046
72047 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72048
72049         * modules/userspec: Don't depend on alloca.
72050
72051 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72052
72053         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
72054
72055 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72056
72057         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
72058         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
72059         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
72060
72061 2004-08-16  Simon Josefsson  <jas@extundo.com>
72062
72063         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
72064         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
72065         Add --dry-run for --import.
72066         Let user provided command line parameters override configure.ac
72067         settings.
72068
72069 2004-08-12  Simon Josefsson  <jas@extundo.com>
72070
72071         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
72072         as discussed with Paul Eggert in threads rooted at
72073         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
72074         and
72075         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
72076         Before, the test was empty, and relied on ELIDE_CODE in source
72077         code.)
72078         (gl_PREREQ_GETOPT): New macro.
72079         (gl_GETOPT): Use them.
72080
72081 2004-08-12  Simon Josefsson  <jas@extundo.com>
72082
72083         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
72084         * lib/getopt_.h: Renamed from getopt.h.
72085
72086 2004-08-12  Simon Josefsson  <jas@extundo.com>
72087
72088         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
72089         Change default library name from libfoo to libgnu.
72090         Now, if you have a configure.ac that says:
72091                 gl_SOURCE_BASE(gl)
72092                 gl_M4_BASE(gl/m4)
72093                 gl_MODULES(error getopt etcetera)
72094                 gl_INIT
72095         you can import all you need by running:
72096                 ../gnulib/gnulib-tool --import
72097
72098         * modules/getopt (Files): Rename getopt.h to getopt_.h.
72099         (Makefile.am): Rewrite, use logic from argz.
72100         (Include): Use <getopt.h> instead of "getopt.h".
72101
72102 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72103
72104         * modules/argp (Files): Add m4/unlocked-io.m4.
72105         (Depends-on): Add extensions.
72106
72107 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72108
72109         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
72110         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
72111         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
72112         Check for program_invocation_name, program_invocation_short_name,
72113         flockfile, funlockfile, features.h, _getopt_long_only_r.
72114
72115 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72116
72117         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
72118         its complicated substitute.
72119         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
72120         and program_invocation_name.
72121         (__argp_basename) [!_LIBC]: Remove; the only use was
72122         replaced by its body.
72123         (__argp_short_program_name): Change condition from
72124         !defined __argp_short_program_name to
72125         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
72126         to match argp-namefrob.h.
72127         (__argp_failure): Don't assume strerror_r returns char *.
72128         * lib/argp-parse.c (N_): Define unconditionally.
72129         (argp_default_options): Fill out initializers with 0 to avoid
72130         gcc warnings.
72131
72132 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72133
72134         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
72135         getopt1.c.
72136
72137 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72138
72139         Merge from coreutils.
72140
72141         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
72142
72143         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
72144         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
72145
72146 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72147
72148         Merge from coreutils.
72149
72150         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
72151         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
72152         for Reliant Unix 5.43.
72153
72154         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
72155         (union fooround): Use uintmax_t, not long int.
72156         The rest is a merge from libc:
72157         [defined _LIBC]: Include <shlib-compat.h>.
72158         (_obstack) [defined _LIBC]: Remove after 2.3.4.
72159
72160         * lib/settime.c (settime): Recode to avoid warning with
72161         Sun Forte C 6U2.
72162
72163         * lib/strverscmp.c: Convert to UTF-8.
72164
72165 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72166
72167         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
72168         m4/uintmax_t.m4.
72169
72170 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72171
72172         * modules/xalloc-die: New file.
72173         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
72174
72175         * modules/md5 (Files): Add m4/uint32_t.m4.
72176         * modules/sha1: Renamed from modules/sha.
72177         (Files):
72178         Rename lib/sha.h to lib/sha1.h.
72179         Rename lib/sha.c to lib/sha1.c.
72180         Rename m4/sha.m4 to m4/sha1.m4.
72181         (lib_SOURCES): Likewise.
72182         (configure.ac): Rename gl_SHA to gl_SHA1.
72183         (Include): sha.h -> sha1.h.
72184
72185 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72186
72187         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
72188         * m4/sha1.m4: Renamed from sha.m4.
72189         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
72190
72191 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72192
72193         * lib/obstack.h (obstack_empty_p):
72194         Don't assume that chunk->contents is suitably aligned.
72195         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
72196         Likewise. Problem reported by Benno in
72197         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
72198
72199         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
72200         readable.  This could be improved further but it'd take some work.
72201
72202 2004-08-08  Simon Josefsson  <jas@extundo.com>
72203
72204         * modules/xgethostname (Depends-on): Remove exit and error (not
72205         used).
72206
72207         * modules/getpass-gnu: Add getpass.h.
72208         (Depends-on): Add stdbool.
72209         * modules/getpass: Add getpass.h.
72210
72211 2004-08-08  Simon Josefsson  <jas@extundo.com>
72212
72213         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
72214         Check getpass declaration.
72215
72216 2004-08-08  Simon Josefsson  <jas@extundo.com>
72217
72218         * lib/xgethostname.c: Don't include error.h (not used).
72219
72220         * lib/getpass.h: Add.
72221         * lib/getpass.c: Include getpass.h first.
72222
72223 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
72224
72225         * lib/xalloc-die.c: New file.
72226         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
72227         All uses removed.
72228         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
72229         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
72230         xalloc-die.c.
72231         (_, N_, xalloc_die): Move to xalloc-die.c.
72232         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
72233         so that we needn't mess with xalloc_msg_memory_exhausted.
72234
72235         * lib/sha1.h: Renamed from sha.h.
72236         (SHA1_H): Renamed from _SHA_H.
72237         (sha1_ctx): Renamed from sha_ctx.
72238         (sha1_init_ctx): Renamed from sha_init_ctx.
72239         (sha1_process_block): Renamed from sha_process_block.
72240         (sha1_process_bytes): Renamed from sha_process_bytes.
72241         (sha1_finish_ctx): Renamed from sha_finish_ctx.
72242         (sha1_read_ctx): Renamed from sha_read_ctx.
72243         (sha1_stream): Renamed from sha_stream.
72244         (sha1_buffer): Renamed from sha_buffer.
72245         * lib/sha1.c: Likewise; renamed from sha.c.
72246         Do not include <sys/types.h>.
72247         Include <stddef.h> rather than <stdlib.h>.
72248
72249 2004-08-08  Bruno Haible  <bruno@clisp.org>
72250
72251         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
72252         FILESYSTEM_PREFIX_LEN.
72253         * lib/progreloc.c: Likewise.
72254         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
72255
72256 2004-08-06  Simon Josefsson  <jas@extundo.com>
72257
72258         * modules/progname (Depends-on): Don't depend on stdbool.
72259
72260 2004-08-06  Simon Josefsson  <jas@extundo.com>
72261
72262         * modules/getsubopt: New file.
72263         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72264         getsubopt.
72265
72266 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72267
72268         More merge from coreutils.
72269
72270         * m4/utimens.m4, m4/utimecmp.m4: New files.
72271         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
72272         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
72273         prereq.m4, sha.m4: Import changes from coreutils.
72274
72275 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72276
72277         More merge from coreutils.
72278         * modules/raise, modules/readtokens0, modules/utimens:
72279         * modules/utimecmp, module/xnanosleep: New files.
72280         * modules/strftime: Add lib/strftime.h.
72281         Change include from <time.h> to "strftime.h".
72282         * modules/yesno: Add lib/yesno.h.
72283         * modules/backupfile: Remove lib/addext.c.
72284         * modules/euidaccess: Add stat-macros.h.
72285         * modules/canonicalize, modules/euidaccess,
72286         modules/filemode, modules/lchown, modules/makepath,
72287         modules/rmdir, modules/stat: Likewise.
72288
72289 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72290
72291         Merge from tar.
72292         * lib/argp-help.c (make_hol, hol_append): Don't assume that
72293         SIZE_MAX is a valid preprocessor constant.
72294         (__argp_basename): Change from "#ifndef _LIBC"
72295         to "#ifndef __argp_short_program_name", so that
72296         we don't compile these functions for tar.
72297
72298         More merges from coreutils.
72299         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
72300         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
72301         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
72302         * lib/addext.c: Remove; no longer needed.
72303         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
72304         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
72305         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
72306         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
72307         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
72308         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
72309         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
72310         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
72311         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
72312         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
72313         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
72314         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
72315         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
72316         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
72317         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
72318         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
72319         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
72320         Import changes from coreutils.
72321
72322 2004-08-05  Simon Josefsson  <jas@extundo.com>
72323
72324         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
72325
72326 2004-08-05  Simon Josefsson  <jas@extundo.com>
72327
72328         * m4/getsubopt.m4: New file.
72329
72330 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72331
72332         Merge from coreutils.
72333
72334         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
72335         * m4/getcwd-path-max.m4: New files.
72336
72337         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
72338         FILESYSTEM_PREFIX_LEN ->
72339         FILE_SYSTEM_PREFIX_LEN.
72340         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
72341         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
72342         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
72343         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
72344
72345         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
72346         prerequisite modules now handle the DOS stuff.
72347         Don't check for unistd.h.
72348
72349 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72350
72351         Merge from coreutils.
72352
72353         * lib/.gdb-history: Remove; this doesn't belong here.
72354
72355         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
72356         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
72357         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
72358         * lib/getcwd.c: New files.
72359
72360         * lib/dirname.h: Include <stdbool.h>.
72361         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
72362         for consistency with POSIX terminology.  All uses changed.
72363         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
72364         (strip_trailing_slashes): Use bool for booleans.
72365         * lib/stripslash.c (strip_trailing_slashes): Likewise.
72366
72367         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
72368         sometimes returns a positive errno value even when it succeeds.
72369         (print_errno_message) [!LIBC]: Fall back on strerror if
72370         __strerror_r fails.
72371
72372         * lib/path-concat.c (mempcpy): Don't define if a system header defines
72373         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
72374         (longest_relative_suffix): New function.
72375         (path_concat): Use it.  Assume first argument is not NULL.
72376         Port to DOS.  Omit redundant separators.
72377         Report an error instead of returning NULL.
72378         Use mempcpy instead of memcpy.
72379         (xpath_concat): Remove: not declared or used.
72380
72381         * lib/same.h: Include <stdbool.h>
72382         (same_name): Return bool, not int.
72383         * lib/same.c (same_name): Likewise.
72384         (errno): Don't declare; we assume C89 or better now.
72385
72386         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
72387         if not already defined.
72388
72389         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
72390         * lib/dup-safer.c (errno): Likewise.
72391
72392 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72393
72394         Merge from coreutils.
72395         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
72396         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
72397         * modules/path-concat: Don't depend on strdup.
72398
72399 2004-08-03  Simon Josefsson  <jas@extundo.com>
72400
72401         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
72402         * lib/progname.h: Don't include stdbool.h.
72403
72404 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72405
72406         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
72407         * MODULES.html.sh (func_all_modules): Remove fatal.
72408
72409 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72410
72411         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
72412
72413 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72414
72415         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
72416         working.
72417
72418 2004-08-02  Simon Josefsson  <jas@extundo.com>
72419
72420         * lib/getsubopt.h: New file, with comments from Bruno Haible.
72421         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
72422         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
72423
72424 2004-08-01  Simon Josefsson  <jas@extundo.com>
72425
72426         * lib/xgetdomainname.c: Include stdlib.h, for free().
72427
72428 2004-07-19  Bruno Haible  <bruno@clisp.org>
72429
72430         * MODULES.html.sh (func_all_modules): Add dummy.
72431
72432 2004-07-16  Simon Josefsson  <jas@extundo.com>
72433
72434         * modules/dummy: New file.
72435
72436 2004-07-16  Simon Josefsson  <jas@extundo.com>
72437
72438         * lib/dummy.c: New file.
72439
72440 2004-07-16  Bruno Haible  <bruno@clisp.org>
72441
72442         * lib/backupfile.h: Add extern "C" for C++.
72443         * lib/closeout.h: Likewise.
72444         * lib/copy-file.h: Likewise.
72445         * lib/findprog.h: Likewise.
72446         * lib/full-write.h: Likewise.
72447         * lib/pathname.h: Likewise.
72448         * lib/progname.h: Likewise.
72449         * lib/stpcpy.h: Likewise.
72450         * lib/stpncpy.h: Likewise.
72451         * lib/strcase.h: Likewise.
72452         * lib/strstr.h: Likewise.
72453         * lib/xalloc.h: Likewise.
72454
72455         * lib/mbswidth.h: Add extern "C" for C++.
72456         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
72457
72458 2004-07-13  Robert Millan  <robertmh@gnu.org>
72459
72460         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
72461
72462 2004-07-09  Simon Josefsson  <jas@extundo.com>
72463
72464         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
72465         failed without this.)
72466
72467 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72468
72469         * modules/chown (Files): Add lib/fchown-stub.c, since
72470         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
72471
72472 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72473
72474         * lib/fchown-stub.c: New file.
72475
72476 2004-06-24  Jim Meyering  <jim@meyering.net>
72477
72478         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
72479
72480 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72481
72482         * modules/argz: Omit "#include".
72483
72484         * MODULES.html.sh (func_all_modules): Add calloc, to match
72485         2004-06-01 addition of calloc module.
72486
72487 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72488
72489         * m4/argz.m4: New file, which is autoupdated from libtool.
72490
72491 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72492
72493         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
72494         libtool.
72495
72496 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72497
72498         * config/srclist-update: Don't insist on "USA." before the
72499         close-comment, as libtool omits the period and puts the */ on a
72500         separate line.
72501         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
72502         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
72503
72504 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
72505
72506         * modules/argz: New file.
72507         * MODULES.html.sh (func_all_modules): Add argz.
72508
72509 2004-06-12  Jim Meyering  <jim@meyering.net>
72510         and  Paul Eggert  <eggert@cs.ucla.edu>
72511
72512         * modules/hash (Files): Add lib/xalloc.h.
72513         * modules/pipe (Depends-on): Add wait-process.
72514         * modules/stat (Depends-on): Add xalloc.
72515         * modules/userspec (Files): Add lib/userspec.h.
72516         * modules/xstrto
72517
72518         Upgrade from gettext-0.13.
72519         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
72520         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
72521         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
72522
72523 2004-06-10  Jim Meyering  <jim@meyering.net>
72524
72525         * lib/calloc.c: New file.
72526
72527 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
72528
72529         * lib/getdate.y (yylex): Allow space between sign and number.
72530         Problem reported by Dan Jacobson.
72531
72532 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72533
72534         Merge from coreutils CVS.
72535
72536         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
72537         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
72538         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
72539         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
72540         xstrtol.m4: Fix copyright date and/or serial number.
72541
72542         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
72543         See if we need an fchown replacement.
72544         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
72545         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
72546         and use the replacement function if we detect either defect.
72547
72548         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
72549         gl_UTIMECMP.
72550
72551 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72552         and  Jim Meyering  <jim@meyering.net>
72553
72554         Merge from coreutils CVS.
72555
72556         * lib/stat-macros.h: New file, with contents from file-type.h
72557         and coreutils' system.h.
72558         * lib/file-type.c: Include "stat-macros.h".
72559         * lib/file-type.h (file_type): Move all macro definitions to new file,
72560         stat-macros.h.
72561
72562         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
72563         Wrap old code with this conditional.
72564         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
72565         function that does not dereference symlinks.
72566         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
72567
72568         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
72569         dependency problems.
72570         (xreadlink): Accept new arg SIZE, for efficiency.
72571         All decls and uses changed.
72572         * lib/xreadlink.h: Include <stddef.h>, for size_t.
72573
72574         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
72575         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
72576
72577         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
72578         sysexits.h.
72579
72580 2004-06-01  Jim Meyering  <jim@meyering.net>
72581
72582         * m4/calloc.m4: New file.
72583
72584 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
72585
72586         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
72587         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
72588         Also, fix a typo in a diagnostic.
72589
72590 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
72591
72592         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
72593         or AC_FUNC_REALLOC.
72594
72595 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
72596
72597         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
72598         macros to be defined.
72599         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
72600         the allocator returns NULL because the requested size is zero.
72601
72602 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72603
72604         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
72605         var.  Add comment explaining why libc still defines it.  This
72606         merges the following patch from glibc:
72607         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
72608
72609 2004-05-20  Andreas Schwab  <schwab@suse.de>
72610
72611         * m4/free.m4: Replace free if it not known to work, not the other
72612         way round.
72613
72614 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72615
72616         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
72617         present in glibc since revision 1.1 of this file.
72618         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
72619         obstack_alignment_mask, obstack_alloc, obstack_base,
72620         obstack_blank, obstack_blank_fast, obstack_chunk_size,
72621         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
72622         obstack_grow0, obstack_init, obstack_int_grow,
72623         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
72624         obstack_next_free, obstack_object_size, obstack_ptr_grow,
72625         obstack_ptr_grow_fast, obstack_room): Remove declarations of
72626         nonexistent functions.
72627
72628 2004-05-18  Karl Berry  <karl@gnu.org>
72629
72630         * config/srclist.txt: break link for vasnprintf.c.
72631
72632 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
72633
72634         Port obstack to the AS/400, where pointers are 16 bytes wide and
72635         you cannot cast an integer to a valid pointer.  This patch is
72636         currently waiting to be integrated into glibc; see
72637         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
72638
72639         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
72640         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
72641         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
72642         (struct obstack): temp member is now a union of a pointer and
72643         an integer, instead of an integer.  All integer uses changed.
72644         This does not affect the physical layout of struct obstack,
72645         except on hosts (like the AS/400) where the size or alignment of
72646         void * is greater than that of ptrdiff_t.
72647         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
72648         __STDC__)]: Store temporary in pointer member of union, not
72649         integer member.
72650         * lib/obstack.c: Include <stddef.h>, for offsetof.
72651         (struct fooalign): Remove; it doesn't need a name.
72652         (union fooround): Change double to long double, and add void *.
72653         (DEFAULT_ALIGNMENT): Use offsetof to compute.
72654         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
72655         not a macro.  Hence the values are always int; so remove all
72656         casts-to-int in uses.
72657
72658 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
72659
72660         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
72661         we can get this patch merged into glibc.
72662
72663 2004-05-17  Derek R. Price  <derek@ximbiot.com>
72664             Paul Eggert  <eggert@cs.ucla.edu>
72665
72666         * m4/argp: Depend on alloca.
72667
72668 2004-05-17  Derek R. Price  <derek@ximbiot.com>
72669             Paul Eggert  <eggert@cs.ucla.edu>
72670
72671         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
72672         freecoding.
72673
72674 2004-05-17  Bruno Haible  <bruno@clisp.org>
72675
72676         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
72677         precision that consists of a '.' followed by an empty digit string.
72678         Patch by Tor Lillqvist <tml@iki.fi>.
72679
72680 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
72681
72682         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
72683         for backward compatibility with older code.  We need our own
72684         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
72685         it under some other name, and our alloca.h will define it.
72686
72687 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
72688             Derek Price  <derek@ximbiot.com>
72689
72690         * lib/alloca.c: Include <alloca.h>, to get our interface.
72691         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
72692         include <alloca.h> first.  Use C89 prototype for alloca; this
72693         requires including <stddef.h> for size_t.  Use extern "C" if C++.
72694         Use #elif for simplicity, since we can assume C89 now.
72695         Don't try to source the system alloca.h since it will not be found
72696         and to prevent recursively including its replacement.
72697         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
72698         * lib/regex.c: Likewise.
72699
72700 2004-05-16  Derek Price  <derek@ximbiot.com>
72701             Paul Eggert  <eggert@cs.ucla.edu>
72702
72703         getline cleanup.  This changes the getndelim2 API: both order of
72704         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
72705         no delimiter).
72706
72707         * lib/getline.c: Don't include stddef.h or stdio.h, since our
72708         interface does that.
72709         (getline): Always use getdelim, so that we don't have two
72710         copies of this code.
72711         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
72712         if available.
72713         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
72714         (GETNDELIM2_MAXIMUM): New macro.
72715         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
72716         instead of the old practice of delim2==0.  All callers changed.
72717         Return -1 on overflow, instead of returning junk.
72718         Do not set *linesize unless allocation succeeds.
72719         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
72720         that we include sys/types.h.
72721         * lib/getnline.h: Likewise.
72722         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
72723         (getndelim2): Reorder arguments.
72724         * lib/getnline.c (getnline, getndelim):
72725         Don't discard the NMAX argument.
72726         (getnline): Invoke getndelim, to avoid code duplication.
72727         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
72728         of (size_t) -1 by callers of the getnline family.
72729
72730 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72731
72732         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
72733         Check for gettimeofday.
72734         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
72735         Check for settimeofday, stime.
72736
72737 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72738
72739         * lib/nanosleep.c (suspended): Change its type from int to
72740         sig_atomic_t volatile.
72741         (first_call): Make it private to rpl_nanosleep, and have it
72742         be zero initially as that's a bit faster.
72743         (my_usleep): Round up fractional times instead of truncating them,
72744         as this is the usual meaning for 'sleep'.
72745
72746         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
72747         doesn't work.
72748         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
72749         (ENOSYS): Define if not defined.
72750         (settime): Fall back on stime if it exists and settimeofday fails.
72751         But don't bother with fallbacks if a method fails with errno == EPERM.
72752
72753 2004-05-11  Jim Meyering  <jim@meyering.net>
72754
72755         Prior to this change, the save_cwd caller required read access to the
72756         current directory on most systems (ones with the fchdir function).
72757
72758         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
72759         fails, try write-only, and finally, resort to using xgetcwd.
72760
72761 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
72762
72763         * lib/obstack.c, obstack.h: Import changes from libc.
72764
72765 2004-04-28  Bruno Haible  <bruno@clisp.org>
72766
72767         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
72768         also implicitly appends .exe to executables.
72769         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
72770         accepts Windows pathnames.
72771         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
72772         Treat Cygwin like Windows, since it now accepts Windows pathnames.
72773         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
72774         Treat Cygwin like Windows, since it now accepts Windows pathnames.
72775         Reported by Derek Robert Price <derek@ximbiot.com>.
72776
72777 2004-04-21  Karl Berry  <karl@gnu.org>
72778
72779         * config/srclist.txt (localcharset.c): break sync.
72780
72781 2004-04-20  Paul Eggert  <eggert@twinsun.com>
72782
72783         * m4/host-os.m4: Add a copyright notice.
72784
72785 2004-04-20  Jim Meyering  <jim@meyering.net>
72786
72787         Change UTILS_ to gl_ in AC_DEFINE'd names.
72788         Change utils_- and jm_-prefixed variables, too.
72789         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
72790         UTILS_FUNC_MKDIR_TRAILING_SLASH.
72791         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
72792
72793         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
72794         Don't emit trailing blanks.
72795         Also rename jm_-prefixed variables to have gl_ prefix.
72796
72797         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
72798         Also rename jm_-prefixed variables to have gl_ prefix.
72799
72800         * m4/jm-macros.m4: Reflect the renamings.
72801         * m4/prereq.m4: Likewise.
72802
72803 2004-04-20  Jim Meyering  <jim@meyering.net>
72804
72805         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
72806         memory.
72807
72808 2004-04-20  Jim Meyering  <jim@meyering.net>
72809             Bruno Haible  <bruno@clisp.org>
72810
72811         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
72812         memory when realloc fails.
72813
72814 2004-04-19  Jim Meyering  <jim@meyering.net>
72815
72816         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
72817         now that readutmp.c may call `free (0)'.
72818
72819 2004-04-19  Bruno Haible  <bruno@clisp.org>
72820
72821         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
72822         * m4/inttypes_h.m4: Likewise.
72823         * m4/stdint_h.m4: Likewise.
72824         * m4/intmax_t.m4: Likewise.
72825         * m4/uintmax_t.m4: Likewise.
72826
72827 2004-04-18  Jim Meyering  <jim@meyering.net>
72828
72829         * m4/prereq.m4: Don't forbid jm_ prefix.
72830
72831         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
72832         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
72833         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
72834         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
72835         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
72836         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
72837         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
72838         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
72839         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
72840         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
72841         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
72842         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
72843         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
72844         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
72845         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
72846         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
72847         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
72848         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
72849         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
72850
72851 2004-04-18  Jim Meyering  <jim@meyering.net>
72852
72853         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
72854         failure, don't leak memory and do call END_UTMP_ENT.
72855
72856 2004-04-16  Jim Meyering  <jim@meyering.net>
72857
72858         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
72859         coreutils' stat program.
72860         (gl_PREREQ): Don't require jm_PREREQ_STAT.
72861
72862 2004-04-11  Paul Eggert  <eggert@twinsun.com>
72863
72864         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
72865         C89.
72866         (CHAR_BIT): Remove, since we assume C89.
72867         Include <stdint.h> if available, as per current Autoconf CVS advice.
72868
72869 2004-03-31  Jim Meyering  <jim@meyering.net>
72870
72871         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
72872         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
72873         * m4/xalloc.m4: Likewise.
72874
72875 2004-03-30  Paul Eggert  <eggert@twinsun.com>
72876
72877         Merge from coreutils.
72878
72879         * m4/inttostr.m4: New file.
72880         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
72881         Require AM_STDBOOL_H and gl_TIMESPEC instead.
72882         Require gl_CLOCK_TIME.
72883         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
72884
72885 2004-03-30  Paul Eggert  <eggert@twinsun.com>
72886
72887         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
72888         not bool, to be more consistent with Unix conventions.
72889         Suggested by Bruno Haible.
72890
72891         Merge from coreutils.
72892
72893         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
72894         * lib/umaxtostr.c: New files.
72895
72896         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
72897         the usual <time.h> dance.
72898         (get_date): Change signature to support fractional time stamps.
72899         All callers changed.
72900         * lib/getdate.y: Include "getdate.h" first, as we can now
72901         assume C89 and don't need to worry about 'const'.
72902         Similarly, include "unlocked-io.h" near start, not in middle.
72903         Include <limits.h>.
72904         (textint.value): Use long int rather than int.
72905         (textint.digits): Use size_t rather than int.
72906         (BILLION, LOG10_BILLION): New constants.
72907         (parser_control): New member rel_ns.  Members day_ordinal,
72908         time_zone, month, day, hour, minutes, rel_year, rel_month,
72909         rel_day, rel_hour, rel_minutes, rel_seconds
72910         are now long int, not int.  Member seconds is now struct timespec,
72911         not int.  New member timespec_seen.  Members dates_seen, days_seen,
72912         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
72913         not int.
72914         (%union.intval): Now long int, not int.
72915         New member timespec.
72916         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
72917         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
72918         (spec): Now is a timespec or an item list.
72919         (timespec, items): New nonterminals.
72920         (time, rel, relunit, number, get_date):
72921         Add support for fractional seconds.
72922         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
72923         (gmtime, localtime, mktime): Remove decls; not needed with C89.
72924         (to_hour): First arg is now long int, not int.
72925         (to_year): Returns long int, not int.
72926         Don't treat year -70 like 70.
72927         (tm_diff): Returns long int, not int.
72928         (lookup_word): Use bool instead of int when appropriate.
72929         (yylex): Use size_t for count, not int.
72930         Detect overflow when parsing large integer constants.
72931         Add support for fractions.
72932         (get_date): Make pointers 'const' if possible.
72933         Use more-portable code to detect integer overflow.
72934         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
72935         Don't use ctime; it's not reliable if the year has >4 digits.
72936
72937         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
72938         This is for compatibility with BSD.
72939
72940         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
72941         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
72942         From coreutils' system.h.
72943
72944         * lib/userspec.c: Don't include "posixver.h".
72945         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
72946         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
72947         compatible extension.  Simplify code by removing a boolean int
72948         that was always nonzero if a string was nonnull.
72949
72950 2004-03-30  Jim Meyering  <jim@meyering.net>
72951
72952         Merge from coreutils.
72953
72954         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
72955         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
72956         on some systems one must include <grp.h> before it.
72957         Reported by Christian Krackowizer.
72958
72959 2004-03-30  Jim Meyering  <jim@meyering.net>
72960
72961         Merge from coreutils.
72962
72963         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
72964
72965         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
72966         an empty input stream.
72967
72968         * lib/readtokens.c: Include <stdbool.h>.
72969         (readtoken): Use `size_t' rather than int/long.
72970         All callers adjusted.
72971         Use `bool' rather than `int' where appropriate.
72972         Use memset rather than an explicit loop.
72973         Use x2nrealloc rather than xrealloc.
72974         Allow the use of `\0' as a delimiter.
72975         (readtokens): Likewise.
72976         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
72977
72978 2004-03-30  Jim Meyering  <jim@meyering.net>
72979
72980         * m4/realloc.m4: Remove file, since now it does no more than
72981         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
72982         the `configure.ac' section of module/realloc.
72983         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
72984
72985 2004-03-30  Bruno Haible  <bruno@clisp.org>
72986
72987         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
72988         nonnull.
72989
72990 2004-03-29  Paul Eggert  <eggert@twinsun.com>
72991
72992         Merge changes to getloadavg.c from coreutils and Emacs.
72993
72994         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
72995         Define to an expression, not to the empty string.
72996         Include cloexec.h and xalloc.h.
72997         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
72998         Use set_cloexec_flag rather than rolling our own.
72999         * lib/cloexec.c, lib/cloexec.h: New files.
73000
73001 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73002
73003         * m4/cloexec.m4: New file.
73004
73005 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73006
73007         * lib/getopt.h: Sync with libc CVS.
73008
73009 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73010             Bruno Haible  <bruno@clisp.org>
73011
73012         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
73013         mbswidth.
73014
73015 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73016             Bruno Haible  <bruno@clisp.org>
73017
73018         * lib/mbswidth.h: Include <wchar.h> only if
73019         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
73020         <wchar.h>.
73021         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
73022
73023 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73024
73025         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
73026         Sync with libc CVS.
73027         * lib/getopt_int.h: New file, also synced from libc.
73028
73029 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73030
73031         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
73032         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
73033         Bring back getopt.c, getopt.h, getopt1.c.
73034
73035 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73036
73037         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
73038         All uses changed.  Check for sa_sigaction member; this fixes
73039         a bug first reported by Jason Andrade in
73040         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73041
73042 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73043
73044         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
73045         '#if' expressions.  Unlike the code it replaces, it does not
73046         depend on (defined _SC_PAGESIZE).  However, it does depend on
73047         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
73048         first reported by Jason Andrade in
73049         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73050
73051 2004-02-25  Simon Josefsson  <jas@extundo.com>
73052
73053         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
73054
73055 2004-02-25  Simon Josefsson  <jas@extundo.com>
73056
73057         * lib/strdup.h: New file.
73058         * lib/strdup.c: Include it.
73059         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
73060         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
73061
73062 2004-02-23  Karl Berry  <karl@gnu.org>
73063
73064         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
73065         (from fencepost.gnu.org:/gd/gnuorg).
73066
73067 2004-02-23  Karl Berry  <karl@gnu.org>
73068
73069         * config/srclistvars.sh (GNUORG) [karl]: redefine.
73070         * config/srclist.txt: add maintain/standards documents.
73071
73072 2004-02-18  Bruno Haible  <bruno@clisp.org>
73073
73074         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
73075         Reported by Derek Robert Price <derek@ximbiot.com>.
73076
73077 2004-02-16  Karl Berry  <karl@gnu.org>
73078
73079         * config/mkinstalldirs, install-sh: update from automake.
73080
73081 2004-02-06  Karl Berry  <karl@gnu.org>
73082
73083         * m4/po.m4: update from gettext 0.14.1.
73084
73085 2004-02-06  Karl Berry  <karl@gnu.org>
73086
73087         * lib/config.charset: update from gettext 0.14.1.
73088
73089 2004-02-05  Paul Eggert  <eggert@twinsun.com>
73090
73091         Add comments and code, prompted by suggestions from Bruno Haible
73092         for sh-quote.
73093         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
73094         describing the enum quoting_style values.
73095         * lib/quotearg.c (quotearg_alloc): New function.
73096         (quotearg_buffer_restyled): Treat lone { and } as special.
73097         Treat = as special.  Work around bug with older shells
73098         that "see" a '\' that is really the 2nd byte of a multibyte char.
73099         Quote empty string with shell_quoting_style.
73100
73101 2004-02-03  Bruno Haible  <bruno@clisp.org>
73102
73103         * m4/pipe.m4: New file, from GNU gettext.
73104
73105 2004-02-03  Bruno Haible  <bruno@clisp.org>
73106
73107         * lib/pipe.h: New file, from GNU gettext.
73108         * lib/pipe.c: New file, from GNU gettext.
73109
73110 2004-01-27  Bruno Haible  <bruno@clisp.org>
73111
73112         * m4/execute.m4: New file, from GNU gettext.
73113
73114 2004-01-27  Bruno Haible  <bruno@clisp.org>
73115
73116         * lib/execute.h: New file, from GNU gettext.
73117         * lib/execute.c: New file, from GNU gettext.
73118         * lib/w32spawn.h: New file, from GNU gettext.
73119
73120 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73121
73122         Merge from diffutils.
73123
73124         * lib/file-type.c (file_type): Add typed memory objects.
73125         * lib/file-type.h (S_TYPEISTMO): New macro.
73126
73127         * lib/c-stack.h (c_stack_action): Remove argv argument.
73128         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
73129         (die): Don't calculate message unless segv_action returns.
73130         (get_stack_location, min_address_from_argv, max_address_from_argv,
73131         volatile stack_base, volatile_stack_size): Remove.
73132         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
73133         that every segmentation violation is a stack overflow.  (Ouch!)
73134         See Debian bug 136249 (still outstanding) for more info about why
73135         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
73136
73137 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73138
73139         Exit-status fix from coreutils.
73140
73141         Use exit_failure consistently in place of EXIT_FAILURE,
73142         so that program exit statuses are consistent on failure.
73143
73144         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
73145         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
73146         * lib/argmatch.h: Comment fix to match the above.
73147         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
73148         Now a macro referring to exit_failure, instead of a separate
73149         variable.  Include "exitfail.h" to get it.
73150         * lib/xstrtol.h: Include "exitfail.h".
73151         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
73152
73153         * lib/long-options.c (parse_long_options): Use prototype
73154         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
73155         for clarity.
73156
73157 2004-01-21  Jim Meyering  <jim@meyering.net>
73158
73159         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
73160         so as not to conflict with a different-sized __mktime_internal
73161         function in GNU libc.
73162         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
73163         Problem building statically-linked `ls' reported by Michael Brunnbauer.
73164
73165 2004-01-20  Karl Berry  <karl@gnu.org>
73166
73167         * config/config.guess: update from config.
73168
73169         * config/srclistvars.sh: GNUWWWLICENSES for karl.
73170
73171 2004-01-20  Bruno Haible  <bruno@clisp.org>
73172
73173         Safer stack allocation.
73174         * lib/setenv.c: Include allocsa.h.
73175         (alloca): Remove fallback definition.
73176         (freea): Remove macro.
73177         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
73178         instead of freea.
73179
73180 2004-01-20  Bruno Haible  <bruno@clisp.org>
73181
73182         * m4/eealloc.m4: New file, from GNU gettext.
73183
73184 2004-01-20  Bruno Haible  <bruno@clisp.org>
73185
73186         * m4/allocsa.m4: New file, from GNU gettext.
73187
73188 2004-01-20  Bruno Haible  <bruno@clisp.org>
73189
73190         * lib/xallocsa.h: New file, from GNU gettext.
73191         * lib/xallocsa.c: New file, from GNU gettext.
73192
73193 2004-01-20  Bruno Haible  <bruno@clisp.org>
73194
73195         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
73196
73197 2004-01-20  Bruno Haible  <bruno@clisp.org>
73198
73199         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
73200         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
73201         specially.
73202
73203 2004-01-20  Bruno Haible  <bruno@clisp.org>
73204
73205         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
73206         patch.
73207
73208 2004-01-20  Bruno Haible  <bruno@clisp.org>
73209
73210         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
73211
73212 2004-01-20  Bruno Haible  <bruno@clisp.org>
73213
73214         * lib/eealloc.h: New file.
73215
73216 2004-01-20  Bruno Haible  <bruno@clisp.org>
73217
73218         * lib/binary-io.h: Avoid warnings on Cygwin.
73219
73220 2004-01-20  Bruno Haible  <bruno@clisp.org>
73221
73222         * lib/allocsa.h: New file, from GNU gettext.
73223         * lib/allocsa.c: New file, from GNU gettext.
73224
73225 2004-01-18  Karl Berry  <karl@gnu.org>
73226
73227         * doc/gpl.texi, doc/lgpl.texi: new files.
73228
73229 2004-01-18  Karl Berry  <karl@gnu.org>
73230
73231         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
73232         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
73233
73234 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73235
73236         Merge from coreutils.
73237
73238         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
73239         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
73240         (gl_DEFAULT_POSIX2_VERSION): Move
73241         the documentation from 'configure' into 'config.hin',
73242         so that 'configure --help' isn't burdened by it and
73243         we don't have to worry about its formatting there.
73244         Reword the documentation so that it's more succinct
73245         and can be run together into a single paragraph.
73246         * m4/same.m4 (gl_SAME): Check for pathconf.
73247
73248 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73249
73250         Merge from coreutils.
73251
73252         * lib/posixver.c: Include posixver.h.
73253
73254         * lib/same.c: Include <stdbool.h>, <limits.h>.
73255         (_POSIX_NAME_MAX): Define if not defined.
73256         (MIN): New macro.
73257         (same_name): If file names are silently truncated, report
73258         that the file names are the same if they are the same after
73259         the silent truncation.
73260
73261         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
73262         conversion function.
73263         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
73264         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
73265         longer needed.
73266
73267 2004-01-15  Jim Meyering  <jim@meyering.net>
73268
73269         Merge from coreutils.
73270
73271         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
73272         if no library is required.
73273         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
73274         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
73275         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
73276         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
73277         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
73278         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
73279         value, $ac_cv_search_crypt, if it's "none required".
73280         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
73281         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
73282         not gl_FUNC_GETLOADAVG.
73283         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
73284         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
73285
73286 2004-01-15  Jim Meyering  <jim@meyering.net>
73287
73288         Merge from coreutils.
73289
73290         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
73291         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
73292         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
73293
73294         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
73295         optional configure-time default.
73296
73297         * lib/version-etc.c (version_etc_copyright): Update copyright date.
73298
73299         * lib/xreadlink.c (xreadlink): Correct outdated comment.
73300
73301 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
73302
73303         Merge from coreutils.
73304
73305         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
73306         value, $ac_cv_search_nanosleep, if it's "none required".
73307
73308 2004-01-14  Paul Eggert  <eggert@twinsun.com>
73309
73310         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
73311         with like-named macro in fnmatch.c.
73312         (EXT): Use an internal constant instead.
73313
73314         Merge fnmatch patches from glibc.
73315         * lib/fnmatch.c (mbsinit): Remove define.
73316         Add libc_hidden_ver (__fnmatch, fnmatch).
73317         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
73318         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
73319
73320 2004-01-14  Karl Berry  <karl@gnu.org>
73321
73322         * config/install-sh: update from automake.
73323
73324 2004-01-13  Karl Berry  <karl@gnu.org>
73325
73326         * config/install-sh: update from automake.
73327
73328 2004-01-09  Karl Berry  <karl@gnu.org>
73329
73330         * config/install-sh: update from automake.
73331
73332 2004-01-05  Karl Berry  <karl@gnu.org>
73333
73334         * config/config.{sub,guess}: update from config.
73335
73336 2003-12-31  Karl Berry  <karl@gnu.org>
73337
73338         * config/depcomp: update from automake.
73339
73340 2003-12-14  Karl Berry  <karl@gnu.org>
73341
73342         * lib/config.charset: update from gettext-runtime.
73343
73344 2003-12-03  Paul Eggert  <eggert@twinsun.com>
73345
73346         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
73347         Bug reported by Alfred M. Szmidt.
73348
73349 2003-12-03  Bruno Haible  <bruno@clisp.org>
73350
73351         * m4/gettext.m4: Upgrade from gettext-0.13.
73352         * m4/po.m4: Upgrade from gettext-0.13.
73353         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
73354         * m4/intmax.m4: New file, from gettext-0.13.
73355         * m4/printf-posix.m4: New file, from gettext-0.13.
73356
73357 2003-11-29  Karl Berry  <karl@gnu.org>
73358
73359         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
73360
73361 2003-11-25  Paul Eggert  <eggert@twinsun.com>
73362             Bruno Haible  <bruno@clisp.org>
73363
73364         * lib/printf-parse.h: Don't include sys/types.h.
73365         (ARG_NONE): New macro.
73366         (char_directive): Change type of *arg_index fields to size_t.
73367         * lib/printf-parse.c: Don't include sys/types.h.
73368         (SSIZE_MAX): Remove macro.
73369         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
73370         Remove unnecessary overflow check.
73371         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
73372         fields.
73373
73374 2003-11-25  Bruno Haible  <bruno@clisp.org>
73375
73376         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
73377
73378 2003-11-25  Bruno Haible  <bruno@clisp.org>
73379
73380         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
73381         gt_TYPE_SSIZE_T.
73382
73383 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73384
73385         * modules/alloca: Remove dependency on xalloc.
73386
73387 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73388
73389         * lib/alloca.c: Remove dependency on xalloc module.
73390         (xalloc_die): Remove.
73391         (memory_full) [!defined emacs]: New macro.
73392         [!defined emacs]: Don't include xalloc.h.
73393         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
73394         address arithmetic overflows.  Change datatypes a bit to avoid
73395         unnecessary casts.
73396
73397 2003-11-22  Jim Meyering  <jim@meyering.net>
73398
73399         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
73400         s/size/size_t/.
73401
73402 2003-11-21  Karl Berry  <karl@gnu.org>
73403
73404         * config/config.{sub,guess}: update from config.
73405
73406 2003-11-18  Karl Berry  <karl@gnu.org>
73407
73408         * config/config.{sub,guess}: update from config.
73409
73410         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
73411
73412 2003-11-17  Paul Eggert  <eggert@twinsun.com>
73413
73414         * README: Mention that S+T cannot overflow if S is the size of
73415         an existing object and T is sufficiently small.
73416
73417 2003-11-17  Jim Meyering  <jim@meyering.net>
73418
73419         On systems without utime and without a utimes function capable of
73420         dealing with a NULL struct utimbuf* argument, this utime replacement
73421         could -- in unusual circumstances -- leak a file descriptor.
73422         * lib/utime.c: Include <unistd.h> and <errno.h>.
73423         (utime_null): Be sure to close `fd' and to preserve errno.
73424         Reported by Geoff Collyer via Arnold Robbins.
73425
73426 2003-11-17  Bruno Haible  <bruno@clisp.org>
73427
73428         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
73429         (Depends-on): Add xsize.
73430
73431 2003-11-17  Bruno Haible  <bruno@clisp.org>
73432
73433         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
73434
73435 2003-11-17  Bruno Haible  <bruno@clisp.org>
73436
73437         * lib/vasnprintf.c (alloca): Remove fallback definition.
73438         (freea): Remove definition.
73439         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
73440         Reported by Paul Eggert.
73441
73442 2003-11-16  Paul Eggert  <eggert@twinsun.com>
73443             Bruno Haible  <bruno@clisp.org>
73444
73445         Protect against address arithmetic overflow.
73446         * lib/printf-args.h: Include stddef.h.
73447         (arguments): Change type of field 'count' to size_t.
73448         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
73449         'unsigned int' where appropriate.
73450         * lib/printf-parse.h: Include sys/types.h.
73451         (char_directive): Change type of *arg_index fields to ssize_t.
73452         (char_directives): Change type of fields 'count', max_*_length to
73453         size_t.
73454         * lib/printf-parse.c: Include sys/types.h and xsize.h.
73455         (SSIZE_MAX): Define fallback value.
73456         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
73457         instead of 'int' where appropriate. Check a_allocated, d_allocated
73458         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
73459         * lib/vasnprintf.c: Include xsize.h.
73460         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
73461         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
73462         overflow. Avoid wraparound when converting a width or precision from
73463         decimal to binary.
73464
73465 2003-11-16  Bruno Haible  <bruno@clisp.org>
73466
73467         Update from GNU gettext.
73468         * lib/printf-parse.c: Generalize to it can be compiled for wide
73469         strings.
73470         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
73471         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
73472         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
73473         SNPRINTF): New macros.
73474         Don't include <alloca.h> if the file is used inside libintl.
73475         (local_wcslen): New function, for Solaris 2.5.1.
73476         (VASNPRINTF): Use it instead of wcslen.
73477
73478 2003-11-16  Bruno Haible  <bruno@clisp.org>
73479
73480         * lib/xsize.h (xmax): New function.
73481         (xsum, xsum3, xsum4): Declare as "pure" functions.
73482
73483 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73484
73485         * modules/xalloc (Files): Undo latest change, since xalloc.h
73486         no longer needs SIZE_MAX or PTRDIFF_MAX.
73487
73488 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73489
73490         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
73491         gl_PTRDIFF_MAX.
73492
73493 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73494
73495         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
73496         "return", to pacify some unknown compiler.  Problem reported
73497         by Joerg Schilling.
73498
73499 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73500
73501         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
73502         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
73503         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
73504         heuristic is just as accurate as far as we know, and it removes a
73505         dependency on size_max.m4 and ptrdiff_max.m4.
73506
73507 2003-11-11  Bruno Haible  <bruno@clisp.org>
73508
73509         * modules/xsize (Files): Add m4/size_max.m4.
73510         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
73511
73512 2003-11-11  Bruno Haible  <bruno@clisp.org>
73513
73514         * m4/size_max.m4: New file.
73515         * m4/ptrdiff_max.m4: New file.
73516         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
73517         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
73518         (gl_XALLOC): Invoke it.
73519
73520 2003-11-11  Bruno Haible  <bruno@clisp.org>
73521
73522         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
73523         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
73524         defined.
73525
73526 2003-11-10  Paul Eggert  <eggert@twinsun.com>
73527
73528         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
73529         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
73530         rejected some allocations of exactly SIZE_MAX - 2 bytes.
73531         From Bruno Haible.
73532         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
73533         not (size_t) -1, since it's defined here.
73534
73535 2003-11-09  Karl Berry  <karl@gnu.org>
73536
73537         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
73538
73539 2003-11-06  Paul Eggert  <eggert@twinsun.com>
73540
73541         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
73542         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
73543         Reject sizes of exactly SIZE_MAX bytes.
73544         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
73545         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
73546
73547 2003-11-05  Bruno Haible  <bruno@clisp.org>
73548
73549         * lib/xsize.h: Include limits.h, to avoid a possible collision with
73550         SIZE_MAX defined in <limits.h> on Solaris.
73551
73552 2003-11-04  Jim Meyering  <jim@meyering.net>
73553
73554         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
73555         variable names, rather than @VAR@.
73556         * modules/poll: Likewise.
73557
73558 2003-11-04  Bruno Haible  <bruno@clisp.org>
73559
73560         * modules/xsize: New file.
73561         * modules/linebreak: Depend on xsize.
73562         * MODULES.html.sh (func_all_modules): Add xsize.
73563
73564 2003-11-04  Bruno Haible  <bruno@clisp.org>
73565
73566         * m4/xsize.m4: New file.
73567
73568 2003-11-04  Bruno Haible  <bruno@clisp.org>
73569
73570         * lib/xsize.h: New file.
73571         * lib/linebreak.c: Include xsize.h.
73572         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
73573         argument for overflow.
73574         Suggested by Paul Eggert.
73575
73576 2003-11-03  Karl Berry  <karl@gnu.org>
73577
73578         * config/config.{guess,sub}: update from config.
73579
73580 2003-11-03  Jim Meyering  <jim@meyering.net>
73581
73582         * modules/userspec (lib_SOURCES): Add userspec.h.
73583         (Include): Add "userspec.h".
73584         Improve description.
73585
73586 2003-11-03  Jim Meyering  <jim@meyering.net>
73587
73588         * lib/userspec.c: Include "userspec.h".
73589         * lib/userspec.h: New file.
73590
73591 2003-11-03  Bruno Haible  <bruno@clisp.org>
73592
73593         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
73594
73595 2003-11-03  Bruno Haible  <bruno@clisp.org>
73596
73597         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
73598         available, to avoid (extremely rare) race condition.
73599         Suggested by Paul Eggert.
73600
73601 2003-11-02  Karl Berry  <karl@gnu.org>
73602
73603         * config/srclist.txt (vasprintf.c): sync broken, sigh.
73604
73605 2003-10-31  Paul Eggert  <eggert@twinsun.com>
73606
73607         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
73608         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
73609         (read_filesystem_list): Set and use me_type_malloced.
73610         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
73611         whatever the type happens to be), for brevity and consistency.
73612         Check for size calculation overflow on Alphas running OSF/1.
73613
73614 2003-10-31  Jim Meyering  <jim@meyering.net>
73615
73616         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
73617
73618         * lib/linebuffer.c: Include <string.h> for declaration of memset.
73619
73620 2003-10-30  Paul Eggert  <eggert@twinsun.com>
73621             Bruno Haible  <bruno@clisp.org>
73622
73623         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
73624         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
73625
73626 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73627
73628         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
73629         netbsd*-gnu*.  Suggested by Robert Millan.
73630
73631 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73632
73633         * modules/group-member: Depend on stdbool.
73634
73635 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73636
73637         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
73638
73639 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73640
73641         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
73642         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
73643         after the 'gnu' in these cases.  This fixes some bugs in the
73644         previous change, and is based on suggestions by Robert Millan.
73645
73646 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73647
73648         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
73649         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
73650         no longer needed.
73651         * lib/quotearg.c (quotearg_n_options): Use it.
73652         * lib/group-member.c: Include <stdbool.h>.
73653         (free_group_info): Arg is now const *; don't free arg.
73654         (get_group_info): Now returns bool and accepts struct group_info *,
73655         rather than returning a malloc'ed struct group_info *.
73656         All uses changed.  Check for overflow in internal size calculation.
73657
73658         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
73659         rather than xmalloc/xrealloc.
73660         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
73661         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
73662         conformance bug: the old code used a pointer after freeing the
73663         storage that it addressed.
73664         * lib/hash.c (hash_initialize): Simplify the code by using
73665         xalloc_oversized rather than doing it by hand.
73666         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
73667         the buffer preserved.  Use free and xmalloc instead.
73668         * lib/quotearg.c (quotearg_n_options): Likewise.
73669         Use a simpler test for size overflow.  Don't use xalloc_oversized
73670         because unsigned int might be wider than size_t (!); this suggests
73671         that we should switch from unsigned int to size_t for slot numbers.
73672
73673 2003-10-28  Paul Eggert  <eggert@twinsun.com>
73674
73675         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
73676         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
73677         NetBSD kernels.  Requested by Richard Stallman.
73678
73679 2003-10-27  Paul Eggert  <eggert@twinsun.com>
73680
73681         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
73682         to allocate the returned structure.  Do not allocate a subarray,
73683         as x2nrealloc will do that.
73684         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
73685         instead of xnrealloc.
73686         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
73687
73688 2003-10-27  Bruno Haible  <bruno@clisp.org>
73689
73690         * lib/stdbool_.h: Better support for BeOS.
73691
73692 2003-10-26  Paul Eggert  <eggert@twinsun.com>
73693
73694         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
73695         now uses inline.
73696
73697 2003-10-26  Paul Eggert  <eggert@twinsun.com>
73698
73699         * lib/xalloc.h (xalloc_oversized): New static inline function, for
73700         callers that want to do their own size-overflow checking.  Include
73701         <stdbool.h>, since xalloc_oversized returns bool.
73702         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
73703         to use xalloc_oversized.
73704
73705         Add two functions x2realloc, x2nrealloc, for programs that grow
73706         arrays dynamically by doubling their sizes.
73707         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
73708         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
73709         New functions.
73710
73711         Port to C99 semantics for 'inline' of external functions.
73712         Bug reported by Bruno Haible.
73713         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
73714         with the old contents of xnmalloc.
73715         (xnmalloc, xmalloc): Use it.
73716         (xnrealloc_inline): New static inline function,
73717         with the old contents of xnrealloc.
73718         (xnrealloc, xrealloc): Use it.
73719
73720         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
73721         that.
73722
73723 2003-10-26  Karl Berry  <karl@gnu.org>
73724
73725         * config/srclist.txt (COPYING.DOC): no longer available from
73726         /gd/gnuorg; don't know where the ultimate source is.
73727
73728 2003-10-25  Paul Eggert  <eggert@twinsun.com>
73729
73730         Fix several address-calculation bugs in the hash modules,
73731         plus some minor code cleanup.
73732
73733         * lib/hash.h: Include <stdbool.h>, for bool.
73734         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
73735         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
73736         hash_get_n_entries, hash_get_max_bucket_length,
73737         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
73738         hash_rehash): Use size_t rather than unsigned.
73739         * lib/hash.c (struct hash_table, hash_get_n_buckets,
73740         hash_get_n_buckets_used, hash_get_n_entries,
73741         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
73742         hash_get_entries, hash_do_for_each, hash_string, is_prime,
73743         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
73744         Likewise.
73745         (SIZE_MAX): Define if not defined.
73746         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
73747         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
73748         hash_print):
73749         Use const * when possible.
73750         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
73751         (check_tuning): Fix bug: if tuning parameters were very close to
73752         0 or 1, rounding errors could have caused subscript violations.
73753         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
73754         (hash_initialize): Add 'fail:' label
73755         to free table and return NULL, and use it to simplify code.
73756         Use calloc rather than clearing the storage ourself.
73757         (hash_initialize, hash_rehash): Check for arithmetic overflow in
73758         buffer size calculations.
73759         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
73760         Include <stddef.h>, for size_t.
73761         * lib/hash-pjw.c (hash_pjw): Likewise.
73762         Switch to method described by Bruno Haible.
73763         Include <limits.h>, for CHAR_BIT.
73764         (SIZE_BITS): New macro.
73765
73766 2003-10-23  Paul Eggert  <eggert@twinsun.com>
73767
73768         * m4/getline.m4 (AM_FUNC_GETLINE):
73769         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
73770         hosts.  Problem reported by Derek Robert Price in
73771         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
73772         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
73773         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
73774
73775 2003-10-21  Paul Eggert  <eggert@twinsun.com>
73776
73777         * lib/getndelim2.c (getndelim2): When size calculation overflows,
73778         ceiling the allocation at NMAX bytes rather than silently
73779         discarding input bytes before NMAX is reached.  This makes
73780         a difference only if NMAX exceeds SIZE_MAX / 2.
73781
73782         * lib/obstack.c: Merge from glibc.
73783         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
73784         Add libc_hidden_def (_obstack_newchunk).
73785         (_obstack_free) [! defined _LIBC]: Remove.
73786         [defined _LIBC]: Make a strong alias from obstack_free, rather than
73787         a clone of the function body.
73788         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
73789         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
73790
73791         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
73792         glibc.
73793         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
73794         arg to memcpy.
73795
73796         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
73797         (obstack_ptr_grow_fast, obstack_int_grow_fast):
73798         Don't use lvalue casts, as GCC plans to remove support for them
73799         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
73800         was also present in the non-GCC version, indicating that this
73801         code had always been buggy and had never been widely used.
73802         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
73803         Use the fast variant of each macro, rather than copying the
73804         definiens of the fast variant; that way, we'll be more likely to
73805         catch future bugs in the fast variants.
73806
73807 2003-10-20  Bruno Haible  <bruno@clisp.org>
73808
73809         * modules/wait-process: New file.
73810         * MODULES.html.sh (func_all_modules): Add wait-process.
73811
73812 2003-10-20  Bruno Haible  <bruno@clisp.org>
73813
73814         * m4/wait-process.m4: New file.
73815
73816 2003-10-20  Bruno Haible  <bruno@clisp.org>
73817
73818         * lib/wait-process.h: New file, from GNU gettext.
73819         * lib/wait-process.c: New file, from GNU gettext.
73820
73821 2003-10-19  Jim Meyering  <jim@meyering.net>
73822
73823         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
73824         HPUX 10.20.
73825
73826 2003-10-18  Karl Berry  <karl@gnu.org>
73827
73828         * config/config.guess: update from config.
73829
73830 2003-10-16  Paul Eggert  <eggert@twinsun.com>
73831
73832         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
73833         (getgroups): First arg is int, not size_t.
73834         Don't let 'free' mangle errno.
73835
73836 2003-10-16  Paul Eggert  <eggert@twinsun.com>
73837
73838         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
73839
73840 2003-10-16  Karl Berry  <karl@gnu.org>
73841
73842         * config/config.{guess,sub}: update from config.
73843
73844 2003-10-16  Jim Meyering  <jim@meyering.net>
73845
73846         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
73847         memcpy.
73848
73849 2003-10-15  Paul Eggert  <eggert@twinsun.com>
73850
73851         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
73852         (SIZE_MAX): Remove.
73853         (new_exclude, add_exclude_file): Initial size no longer needs to
73854         be a power of 2.
73855         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
73856         our own address arithmetic overflow checking.
73857
73858         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
73859         (fnmatch): Do not alloca more than 2000 wide characters;
73860         instead, use malloc for large buffers.
73861         Check for address arithmetic overflow, and return -1
73862         with errno set to ENOMEM in that case.
73863         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
73864         (NEW_PATTERN): Do not alloca more than 8000 bytes;
73865         instead, return -1.  Check for address arithmetic overflow.
73866
73867 2003-10-14  Paul Eggert  <eggert@twinsun.com>
73868
73869         Handle invalid suffixes and overflow independently, so that
73870         callers can treat them independently as needed.  Fix some bugs in
73871         suffix handling, e.g., "100k@" was not diagnosed as an invalid
73872         suffix for a human-readable blocksize.  The major caller-visible
73873         change is the addition of a new
73874         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
73875         that both overflow and suffix chars were found.
73876
73877         * lib/human.c (humblock): Don't check separately for invalid suffix
73878         char; that is xstrtoumax's job (now that its bug is fixed).
73879         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
73880         INTMAX_MAX]: New macros.
73881         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
73882         TYPE_MAXIMUM): New macros.
73883         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
73884         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
73885         if overflow occurs, as it's what __strtol does and it's more useful
73886         in practice.
73887         (__xstrtol): If __strtol reports some error other than ERANGE,
73888         reflect it to the caller as LONGINT_INVALID.  If it reports
73889         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
73890         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
73891         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
73892         value.
73893         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
73894         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
73895         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
73896         [defined UINTMAX_MAX]: New macros.
73897
73898 2003-10-14  Bruno Haible  <bruno@clisp.org>
73899
73900         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
73901
73902 2003-10-14  Bruno Haible  <bruno@clisp.org>
73903
73904         * m4/sig_atomic_t: New file, from GNU gettext.
73905         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
73906
73907 2003-10-14  Bruno Haible  <bruno@clisp.org>
73908
73909         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
73910         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
73911         Also use volatile where needed.
73912
73913 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73914
73915         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
73916         Change maintainer from Bruno Haible to 'all'.
73917
73918 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73919
73920         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
73921
73922 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73923
73924         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
73925         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
73926         and define in terms of the other primitives.
73927         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
73928         (SIZE_MAX): Define if not already defined.
73929         (array_size_overflow): New function.
73930         (xalloc_die): Abort instead of exiting if 'error' returns.
73931         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
73932         (xmalloc, xrealloc): Use them.
73933         (xcalloc): Check for address arithmetic overflow.
73934         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
73935         a bit faster than strcpy.
73936
73937 2003-10-10  Simon Josefsson  <jas@extundo.com>
73938
73939         * modules/argp (Depends-on): Add restrict and strcase.
73940
73941 2003-10-10  Simon Josefsson  <jas@extundo.com>
73942
73943         * m4/argp.m4: Add AC_C_INLINE.
73944
73945 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73946
73947         Merge getpass from libc, plus a few fixes.
73948
73949         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
73950         Include <stdbool.h>.
73951         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
73952         __fsetlocking to empty.
73953         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
73954         do include <bits/libc-lock.h>.
73955         Do not include <fcntl.h>; not needed.
73956         [_LIBC]: Include <wchar.h>.
73957         (NOTCANCEL_MODE): New macro.
73958         (flockfile, funlockfile) [_LIBC]: New macros.
73959         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
73960         [!_LIBC]: New macros.
73961         (call_fclose): New function.
73962         (getpass): Use it.  Save tty stream separately; this simplifies the
73963         code and makes it more reliable if stdin happens to equal stdout.
73964         Invoke __fsetlocking on tty.
73965         Handle thread cancellation if needed.
73966         Namespace cleanup (use __tcgetattr, __getline).
73967         Use bool for Booleans.
73968         [USE_IN_LIBIO]: Handle wide streams.
73969         [!_LIBC]: Unconditionally do the fseek, since we don't know what
73970         stream might go where.
73971
73972         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
73973         doesn't have to include <stdio.h> before us.
73974         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
73975         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
73976         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
73977         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
73978         if not declared, so that we can use getpass.c code from libc without
73979         rewriting it.
73980         (flockfile, ftrylockfile, funlockfile): New macros.
73981
73982 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73983
73984         * modules/getpass: Depend on stdbool.
73985
73986 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73987
73988         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
73989
73990 2003-10-07  Karl Berry  <karl@gnu.org>
73991
73992         * config/config.{guess,sub}: update from config.
73993
73994 2003-10-06  Jim Meyering  <jim@meyering.net>
73995             Bruno Haible  <bruno@clisp.org>
73996
73997         This lets translators provide better translations for the
73998         "Written by ..." part of --version output.
73999         * lib/version-etc.h: Include stdarg.h.
74000         (version_etc_copyright): Declare as readonly.
74001         (version_etc): Make this function variadic with a NULL-terminated list
74002         of author name strings.
74003         (version_etc_va): New declaration.
74004         * lib/version-etc.c: Include stdarg.h, stdlib.h.
74005         (version_etc_copyright): Declare as readonly.
74006         (version_etc_va): New function. Provide a different translatable string
74007         for each possible number of authors < 10. Abbreviate when there are 10
74008         authors or more.
74009         (version_etc): Make this function variadic. Call version_etc_va.
74010         Suggestion from Gary V. Vaughan.
74011
74012         * lib/long-options.h (parse_long_options): Change prototype: the
74013         authors string is moved to the end and becomes variadic.
74014         * lib/long-options.c: Include stdarg.h.
74015         (parse_long_options): Make this function variadic, too.
74016         Call version_etc_va, not version_etc.
74017
74018 2003-10-06  Bruno Haible  <bruno@clisp.org>
74019
74020         * modules/version-etc-2: Remove file.
74021         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
74022
74023 2003-10-06  Bruno Haible  <bruno@clisp.org>
74024
74025         * modules/fatal-signal: New file.
74026         * MODULES.html.sh (func_all_modules): Add fatal-signal.
74027
74028 2003-10-06  Bruno Haible  <bruno@clisp.org>
74029
74030         * m4/fatal-signal.m4: New file.
74031         * m4/signalblocking.m4: New file, from GNU gettext.
74032
74033 2003-10-06  Bruno Haible  <bruno@clisp.org>
74034
74035         * lib/version-etc-2.h: Remove file.
74036         * lib/version-etc-2.c: Remove file.
74037
74038 2003-10-06  Bruno Haible  <bruno@clisp.org>
74039
74040         * lib/fatal-signal.h: New file, from GNU gettext.
74041         * lib/fatal-signal.c: New file, from GNU gettext.
74042
74043 2003-10-05  Paul Eggert  <eggert@twinsun.com>
74044
74045         * README: Rework advice for preventing empty .o files.
74046         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
74047         not <sys/types.h>.
74048
74049 2003-10-04  Karl Berry  <karl@gnu.org>
74050
74051         * lib/argp*: update from libc.
74052
74053 2003-10-04  Karl Berry  <karl@gnu.org>
74054
74055         * config/config.{guess,sub}: update from config.
74056
74057 2003-10-02  Bruno Haible  <bruno@clisp.org>
74058
74059         * modules/lchown (Include): Add lchown.h.
74060         * modules/time_r (Include): Use "..." syntax.
74061         * modules/xgetdomainname (Include): Add xgetdomainname.h.
74062
74063 2003-10-01  Simon Josefsson  <jas@extundo.com>
74064
74065         * MODULES.html.sh (func_all_modules): Move gethostname from section
74066         'based on' to section 'lacking' POSIX:2001.
74067
74068 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
74069
74070         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
74071         to output mode on the same stream.
74072
74073 2003-09-29  Paul Eggert  <eggert@twinsun.com>
74074
74075         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
74076         Fix arg typo in previous patch.
74077
74078 2003-09-28  Jim Meyering  <jim@meyering.net>
74079
74080         * lib/error.c: Correct cpp indentation.
74081
74082 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74083
74084         * modules/free: New file.
74085
74086 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74087
74088         * m4/free.m4: New file.
74089
74090 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74091
74092         * lib/minmax.h (MIN, MAX)
74093         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
74094         Omit the special code that used __typeof__, since we worry that
74095         it could be more trouble than it's worth.  See:
74096         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
74097         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
74098
74099         * lib/free.c: New file.
74100
74101 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
74102
74103         Trivial fixes to Makefile.am parts of module listings.
74104         * modules/strstr: Append strstr.h to lib_SOURCES.
74105         * modules/strcase: Likewise, for strcase.h.
74106
74107 2003-09-27  Karl Berry  <karl@gnu.org>
74108
74109         * config/mkinstalldirs: update from automake.
74110
74111 2003-09-26  Paul Eggert  <eggert@twinsun.com>
74112
74113         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
74114         (error_tail): Do not loop, reallocating temporary buffer, since
74115         the output cannot contain more wide characters than the input
74116         contains bytes, the size must be big enough already.  This avoids
74117         one potential size overflow calculation.  Check for size overflow
74118         when calculating temporary buffer size.  Free temporary buffer
74119         when done, if it was allocated with malloc; this plugs a memory
74120         leak.  Remove casts from void * to pointers, that are no longer
74121         needed now that we're assuming C89 or better.
74122
74123         Merge error changes from glibc.
74124
74125         * lib/error.c, error.h: Update copyright notice header to match glibc.
74126         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
74127         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
74128         Disable cancellation while printing error.
74129         * lib/error.h: Prepend __ to parameter names.
74130
74131 2003-09-26  Jim Meyering  <jim@meyering.net>
74132
74133         * lib/error.c (error_tail): Move some declarations
74134         into inner scope where the local variables are used.
74135
74136 2003-09-26  Bruno Haible  <bruno@clisp.org>
74137
74138         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
74139         stpncpy().
74140         Don't define stpncpy through config.h; it's now done through stpncpy.h.
74141
74142 2003-09-26  Bruno Haible  <bruno@clisp.org>
74143
74144         * lib/stpncpy.h (gnu_stpncpy): New declaration.
74145         (stpncpy): Define as alias for gnu_stpncpy.
74146         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
74147
74148 2003-09-25  Simon Josefsson  <jas@extundo.com>
74149
74150         * lib/xgetdomainname.h: New file.
74151         * lib/xgetdomainname.c: New file.
74152
74153 2003-09-25  Simon Josefsson  <jas@extundo.com>
74154             Bruno Haible  <bruno@clisp.org>
74155
74156         * modules/getdomainname: New file.
74157         * modules/xgetdomainname: New file.
74158         * MODULES.html.sh (func_all_modules): Add getdomainname,
74159         xgetdomainname.
74160
74161 2003-09-25  Simon Josefsson  <jas@extundo.com>
74162             Bruno Haible  <bruno@clisp.org>
74163
74164         * m4/getdomainname.m4: New file.
74165
74166 2003-09-25  Simon Josefsson  <jas@extundo.com>
74167             Bruno Haible  <bruno@clisp.org>
74168
74169         * lib/getdomainname.h: New file.
74170         * lib/getdomainname.c: New file.
74171
74172 2003-09-25  Karl Berry  <karl@gnu.org>
74173
74174         * lib/argp-fmtstream.c, argp-help.c: update from libc.
74175
74176 2003-09-25  Karl Berry  <karl@gnu.org>
74177
74178         * config/install-sh: update from automake.
74179
74180 2003-09-25  Bruno Haible  <bruno@clisp.org>
74181
74182         * modules/version-etc-2: New file, from modules/version-etc with
74183         modifications.
74184         * MODULES.html.sh (func_all_modules): Add version-etc-2.
74185
74186 2003-09-25  Bruno Haible  <bruno@clisp.org>
74187
74188         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
74189         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
74190
74191 2003-09-24  Simon Josefsson  <jas@extundo.com>
74192
74193         * modules/xgethostname: Add xgethostname.h.
74194
74195 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74196
74197         * lib/linebuffer.c (freebuffer): Don't free the argument, just
74198         the buffer associated with the argument.  Bug reported by
74199         Simon Josefsson.
74200
74201 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74202
74203         * README: Document assumptions that 'int' is at least 32 bits
74204         wide, that integer arithmetic is 2's complement without overflow,
74205         that there are no holes in integer values, that adding sizes of
74206         two nonoverlapping objects can't overflow, and that all-bits-zero
74207         yields scalar zero.  Fix spelling and capitalization typos.
74208
74209 2003-09-19  Karl Berry  <karl@gnu.org>
74210
74211         * lib/argp.h: update from libc.
74212
74213 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74214
74215         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
74216         to avoid spurious warnings like "AC_RUN_IFELSE was called before
74217         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
74218
74219 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74220
74221         * gnulib-tool: Use "test -h", not "test -L", for portability
74222         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
74223         (tags_regexp): Remove, since \| doesn't conform to POSIX.
74224         (sed_extract_prog): Issue s commands one-by-one, rather than
74225         using \| in one s command.
74226
74227 2003-09-16  Paul Eggert  <eggert@twinsun.com>
74228
74229         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
74230         input error, instead of returning NULL the next time we are called
74231         (and therefore losing track of errno).
74232
74233 2003-09-16  Bruno Haible  <bruno@clisp.org>
74234
74235         * gnulib-tool (func_create_testdir): Warn about duplicated
74236         dependencies.
74237
74238 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74239
74240         * modules/argmatch, modules/fatal, modules/obstack,
74241         modules/xalloc, modules/xgethostname: Sort dependencies by
74242         importance, not alphabetically.
74243
74244 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74245
74246         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
74247         fails, so that the caller gets the proper errno.
74248
74249         * lib/readutmp.c (read_utmp): Likewise.
74250         Check for fstat error.  Close stream and free storage
74251         when failing.
74252
74253 2003-09-14  Karl Berry  <karl@gnu.org>
74254
74255         * config/srclist.txt (strdup.c): disable for c89 changes.
74256
74257 2003-09-14  Jim Meyering  <jim@meyering.net>
74258
74259         * lib/getloadavg.c: Correct cpp indentation.
74260         * lib/strdup.c: Likewise.
74261         * lib/vasnprintf.c: Likewise.
74262
74263 2003-09-14  Bruno Haible  <bruno@clisp.org>
74264
74265         * modules/fwriteerror: New file.
74266         * MODULES.html.sh (func_all_modules): Add fwriteerror.
74267
74268 2003-09-14  Bruno Haible  <bruno@clisp.org>
74269
74270         * lib/fwriteerror.h: New file.
74271         * lib/fwriteerror.c: New file.
74272
74273 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74274
74275         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
74276         modules/xgethostname, modules/xalloc: Depend on exit.
74277
74278 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74279
74280         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
74281
74282         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
74283         and AC_MINIX, too, so that their extensions are available.
74284
74285         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
74286         This macro has been superseded by gl_BACKUPFILE.
74287
74288         More patches to assume C89 or better.
74289
74290         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
74291
74292         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
74293         unconditionally.
74294         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
74295         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
74296         Include <string.h>, <stdlib.h> unconditionally.
74297         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
74298         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
74299         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
74300         headers or for string.h.
74301         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
74302         or strtoul.
74303
74304         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
74305         headers.
74306         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
74307         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74308         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
74309         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
74310         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74311         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
74312         memcpy, memset.
74313         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
74314         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
74315         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
74316         strtol.
74317         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
74318         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
74319         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
74320         strtoul.
74321
74322 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74323
74324         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
74325         * lib/obstack.c [!defined _LIBC]: Likewise.
74326         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
74327         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
74328         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
74329
74330         More changes to assume C89 or better.
74331
74332         * lib/error.c (error_tail): Assume vprintf.
74333
74334         * lib/argmatch.c (getenv): Remove decl.
74335         * lib/progreloc.c (get_full_program_name): Define via prototype.
74336         * lib/setenv.c (clearenv): Likewise.
74337         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
74338         needed.
74339         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
74340         (malloc, memcpy): Remove decls.
74341         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
74342         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
74343         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74344         (memcpy): Remove macro.
74345         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
74346         (__P): Remove.  All uses removed.
74347         (PTR): Remove.  All uses changed to void *.
74348         (CHAR_BIT, NULL): Remove.
74349         (spaces, zeros, memset_space, memset_zero)
74350         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
74351         Remove.
74352         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
74353         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
74354         Define with prototype.
74355         Remove now-unnecessary prototype decl.
74356         (extra_args_spec): Assume ANSI C.  All uses changed.
74357         (extra_args_spec_iso): Remove.
74358         (my_strftime, emacs_strftimeu): Define via prototype.
74359         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
74360         unconditionally.
74361         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
74362         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
74363         (strtoul, strtol): Remove decls.
74364         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
74365         LONG_MAX): Remove.
74366         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74367         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
74368         (LOCALE_PARAM_PROTO): New macro.
74369         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
74370         (INTERNAL (strtol), strtol): Define with a prototype.
74371         (PARAMS): Remove.  All uses removed.
74372         * lib/tempname.c: Include <string.h> unconditionally.
74373         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
74374         * lib/xgethostname.c (main): Define with a prototype.
74375         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
74376         Include <stdlib.h> unconditionally.
74377         (calloc, malloc, realloc, free): Remove decls.
74378         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
74379         Include <stdlib.h> unconditionally.  Sort include file names.
74380         (strtod): Remove.
74381         (xstrtod): Define with a prototype.
74382         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
74383         (strtol, strtoul): Remove decls.
74384
74385 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74386
74387         More patches to assume C89 or better.
74388         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
74389         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
74390         string.h, memchr, STDC_HEADERS.
74391
74392 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74393
74394         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
74395         Include <stdlib.h>, <string.h> unconditionally.
74396         Remove now-unnecessary cast to char *.
74397         * lib/strnlen.c: Include <string.h> unconditionally.
74398         * lib/yesno.c (yesno): Define with a prototype.
74399
74400 2003-09-11  Bruno Haible  <bruno@clisp.org>
74401
74402         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
74403
74404 2003-09-10  Jim Meyering  <jim@meyering.net>
74405
74406         * lib/error.c: Correct indentation of cpp directives.
74407
74408 2003-09-10  Bruno Haible  <bruno@clisp.org>
74409
74410         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
74411         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
74412         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
74413         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
74414         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
74415         <stdlib.h> and <string.h> checks.
74416         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
74417         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
74418
74419 2003-09-10  Bruno Haible  <bruno@clisp.org>
74420
74421         * lib/strcspn.c: Include <string.h> unconditionally.
74422         * lib/strpbrk.c: Include <string.h> unconditionally.
74423         * lib/strstr.c: Include <string.h> unconditionally.
74424         * lib/unicodeio.c: Include <string.h> unconditionally.
74425         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
74426         * lib/unsetenv.c: Likewise.
74427         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
74428         * lib/yesno.c: Include <stdlib.h> unconditionally.
74429         (rpmatch): Add prototype.
74430
74431 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74432
74433         More patches to assume C89 or better.
74434         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
74435         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
74436         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
74437         or for string.h.
74438         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
74439         stdlib.h.
74440         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
74441         C headers.
74442         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
74443         string.h.
74444         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
74445         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
74446         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
74447         or for string.h.
74448         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
74449         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
74450         C headers.
74451         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
74452         memcpy.
74453         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
74454         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
74455         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
74456         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
74457         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
74458         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
74459         string.h, free.
74460         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
74461         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
74462         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
74463         C headers, or for string.h.
74464         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
74465         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
74466         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
74467         headers, memory.h, stdlib.h, string.h, strings.h.
74468         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
74469         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
74470         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
74471         strchr.
74472         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
74473         headers, memory.h, string.h.
74474         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
74475         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
74476         free.
74477         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
74478         headers.
74479         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
74480         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
74481         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
74482         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
74483         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
74484
74485 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74486
74487         More K&R removal.
74488
74489         * lib/acosl.c (main): Use a prototype.
74490         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
74491         tanl.c: Likewise.
74492
74493         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
74494
74495         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
74496         (getopt, etopt_long, getopt_long_only, _getopt_internal)
74497         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
74498         with a prototype.
74499         * lib/getopt.c (const): Remove macro.
74500         Include <string.h> unconditionally.
74501         (my_index): Remove; all uses changed to strchr.
74502         (strlen): Remove decl.
74503         (exchange): Remove forward decl; no longer needed.
74504         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
74505         Define with prototype.
74506         * lib/getopt1.c (const): Remove macro.
74507         (getopt_long, getopt_long_only, main): Define with prototype.
74508
74509         * lib/getugroups.c: Include <string.h> unconditionally.
74510
74511         * lib/getusershell.c: Include <stdlib.h> unconditionally.
74512         (getusershell, setusershell, endusershell, readname, main):
74513         Define with prototypes.
74514
74515         * lib/group-member.c: Include group-member.h first.
74516         Include <stdlib.h> unconditionally.
74517
74518         * lib/hard-locale.c: Include hard-locale.h first.
74519         Include <stdlib.h>, <string.h> unconditionally.
74520
74521         * lib/hash.c (free, malloc): Remove decls.
74522         Include <stdlib.h> unconditionally.
74523
74524         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
74525         (getenv): Do not declare.
74526
74527         * lib/idcache.c: Include <string.h> unconditionally.
74528
74529         * lib/long-options.c: Include long-options.h first, to test interface.
74530         Include <stdlib.h> unconditionally.
74531
74532         * lib/makepath.c: Include makepath.h first, to test interface.
74533         Include <stdlib.h> and <string.h> unconditionally.
74534
74535         * lib/linebuffer.c: Include <stdlib.h>.
74536         (free): Remove decl.
74537
74538         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
74539         stddef.h. rpl_malloc returns void *, not char *.
74540         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
74541         prototype.
74542
74543         * lib/md5.h: Include <limits.h> unconditionally.
74544         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
74545         (__P): Remove; all uses removed.
74546         * lib/md5.c: Include "md5.h" first.
74547         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
74548         md5_buffer, md5_process_bytes, md5_process_block):
74549         Define with prototypes.
74550         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
74551         * lib/sha.c: Include "sha.h" first.
74552         Include <stdlib.h>, <string.h> unconditionally.
74553
74554         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
74555         * lib/memcmp.c (__ptr_t): Likewise.
74556         * lib/memrchr.c (__ptr_t): Likewise.
74557         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
74558         Include <string.h> unconditionally.
74559         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
74560         * lib/memchr.c: Include <stdlib.h> unconditionally.
74561         * lib/memchr.c (LONG_MAX): Remove.
74562         * lib/memrchr.c (LONG_MAX): Likewise.
74563         * lib/memchr.c (__memchr): Define via a prototype.
74564         * lib/memrchr.c (__memrchr): Likewise.
74565         * lib/memcmp.c (__P): Remove, and remove all uses.
74566         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
74567         Remove forward decls; no longer needed.
74568         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
74569         Use types required by C89 in prototype.
74570
74571         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
74572         * lib/savedir.c: Likewise.
74573         * lib/mkdir.c (free): Remove decl.
74574         * lib/rmdir.c (rmdir): Define with a prototype.
74575         * lib/savedir.c: Include savedir.h first, to test interface.
74576
74577         * lib/mktime.c (STDC_HEADERS): Remove.
74578         Include <stdlib.h>, <string.h> unconditionally.
74579
74580         * lib/modechange.c: Include <stdlib.h> unconditionally.
74581         (malloc): Remove decl.
74582
74583         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
74584         (free): Remove decl.
74585
74586         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
74587         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
74588         (This type really should be intptr_t, but that's a C99ism.)
74589         (_obstack_memcpy): Remove: all uses changed to memcpy.
74590         Include <string.h> unconditionally.
74591         (struct obstack): Assume __STDC__ for types of members
74592         chunkfun, freefun, extra_arg.
74593         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
74594         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
74595         obstack_begin, obstack_specify_allocation,
74596         obstack_specify_allocation_with_arg, obstack_chunkfun,
74597         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
74598         Remove unprototyped decls and the macros that use them.
74599         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
74600         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
74601         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
74602         (defined __STDC__ && __STDC__)]:
74603         Remove nonprototyped code.
74604         Include <stdlib.h> unconditionally.
74605         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
74606         _obstack_allocated_p, _obstack_free, obstack_free,
74607         _obstack_memory_used, print_and_abort):
74608         Define using prototypes.
74609         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
74610         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
74611         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
74612         obstack_next_free, obstack_object_size, obstack_room) [0]:
74613         Remove unused, unprototyped code.
74614
74615         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
74616
74617         * lib/physmem.c (physmem_total, physmem_available, main): Define
74618         with prototypes.
74619
74620         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
74621         (main): Define with a prototype.
74622
74623         * lib/posixver.c (getenv): Remove decl.
74624
74625         * lib/putenv.c (malloc): Returns void *, not char *.
74626         Include <string.h> unconditionally.
74627         (strchr, memcpy, NULL): Do not define.
74628
74629         * lib/readtokens.c: Include readtokens.h first, to test interface.
74630         Include <stdlib.h>, <string.h> unconditionally.
74631         (init_tokenbuffer): Define with a prototype.
74632
74633         * lib/regex.c (PARAMS): Remove.  All uses removed.
74634         All uses of _RE_ARGS removed, too.
74635         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74636         unconditionally.
74637         (bzero): Assume memset exists.
74638         (memcmp, memcpy, NULL): Remove.
74639         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
74640         char, or assignments to local vars of type signed char.
74641         (init_syntax_once, PREFIX(extract_number_and_incr),
74642         PREFIX(print_partial_compiled_pattern),
74643         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
74644         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
74645         PREFIX(regex_grow_registers), PREFIX(regex_compile),
74646         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
74647         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
74648         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
74649         wcs_compile_range, byte_compile_range, truncate_wchar,
74650         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
74651         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
74652         count_mbs_length, wcs_re_match_2_internal,
74653         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
74654         PREFIX(alt_match_null_string_p),
74655         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
74656         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
74657         regfree, PREFIX(extract_number)): Define with prototype.  Remove
74658         now-unnecessary declaration, if any.
74659         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
74660         regcomp, regexec):
74661         Remove now-unnecessary casts among pointer types.
74662         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
74663
74664         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
74665         (free): Remove decl.
74666
74667         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
74668
74669         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
74670         (free): Remove decl.
74671
74672         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
74673         * lib/xgetcwd.c: Likewise.
74674
74675         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
74676         (free): Remove decl.
74677
74678         * lib/strchrnul.c (strchrnul): Define with a prototype.
74679         Fix bug: c_in was not converted to char before searching.
74680
74681         The following changes are not K&R related:
74682
74683         * lib/group-member.h: Include <sys/types.h>, so that this file is
74684         self-contained.
74685         * lib/makepath.h: Likewise.
74686
74687         * lib/getusershell.c (readname, default_index, line_size, readname):
74688         Use size_t, not int, for sizes.
74689         (readname): If the size overflows, report an error instead of
74690         looping forever.
74691
74692 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74693
74694         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
74695         libc.
74696
74697 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74698
74699         * README: New section: portability guidelines.
74700
74701 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
74702
74703         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
74704         C89 spec.
74705
74706 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
74707
74708         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
74709
74710 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74711
74712         Assume C89 or better; remove K&R cruft.
74713         A few of these changes were first proposed by Derek Robert Price
74714         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
74715
74716         * lib/addext.c: Include <string.h> unconditionally.
74717         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
74718         Don't declare getenv or malloc.
74719
74720         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
74721         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
74722         (NULL): Remove.
74723         (find_stack_direction, alloca): Use prototypes.
74724
74725         * lib/atexit.c (atexit): Define using a prototype.
74726
74727         * lib/basename.c, dirname.c, stripslash.c:
74728         Include <string.h> unconditionally.
74729
74730         * lib/bcopy.c: Include <stddef.h>.
74731         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
74732
74733         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
74734
74735         * lib/error.h (error, error_at_line, error_print_progname)
74736         [! (defined (__STDC__) && __STDC__)]: Remove decls.
74737         * lib/error.c: Include error.h first, to check interface.
74738         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
74739         (VA_START): Remove; all uses changeed to va_start.
74740         (exit, strerror): Remove decls.
74741         (error_print_progname): Prototype uncondionally.
74742         Don't include <errno.h>; no longer needed.
74743         (private_strerror): Remove.
74744         (error_tail): Always define.
74745         (error, error_at_line): Assume C89 or better; always use prototypes.
74746         * lib/fatal.c: Include "fatal.h" first, to test interface.
74747         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
74748         (VA_START): Remove; all uses changed to va_start.
74749         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
74750         this case.
74751         (exit): Remove decl.
74752         (fatal): Prototype unconditionally.  Assume va_start works.
74753         Abort at end, to pacify gcc.
74754
74755         * lib/euidaccess.c (main): Define with a prototype.
74756
74757         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
74758
74759         * lib/exitfail.c: Include <stdlib.h> unconditionally.
74760
74761         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
74762         prototypes.
74763         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
74764         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
74765         (getenv): Remove decl.
74766         (fnmatch): Define using a prototype.
74767         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
74768         (FCT): Define using a prototype.
74769
74770         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
74771
74772         * lib/gethostname.c: Include <stddef.h>.
74773         (gethostname): Define with prototype.  Length is size_t, not int.
74774
74775 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74776
74777         Assume C89 or better; remove K&R cruft.
74778         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
74779         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
74780         string.h, getenv, malloc.
74781         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
74782         headers.
74783         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
74784         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
74785         do not check for strerror.
74786         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
74787         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
74788         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
74789         do not check for doprnt or vprintf.
74790         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
74791         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
74792
74793 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74794
74795         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
74796         getversion.c should have been removed then, but was accidentally
74797         preserved.
74798
74799         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
74800         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
74801
74802 2003-09-08  Karl Berry  <karl@gnu.org>
74803
74804         * config/config.sub, config.guess, srclistvars.sh: update from savannah
74805                 config, forget about prep.
74806
74807         * config/depcomp, missing: update from automake.
74808
74809 2003-09-07  Paul Eggert  <eggert@twinsun.com>
74810
74811         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
74812         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
74813
74814 2003-09-07  Paul Eggert  <eggert@twinsun.com>
74815
74816         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
74817         copy_tm_result.  Bug reported by Simon Josefsson in
74818         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
74819
74820 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74821
74822         * m4/time_r.m4: New file.
74823         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
74824         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
74825         is. Check for timegm declaration.
74826         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
74827         Do not check for gmtime_r.
74828         Replace mktime if __mktime_internal does not exist and if mktime
74829         hasn't been replaced already.
74830
74831 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74832
74833         * lib/time_r.c, lib/time_r.h: New files.
74834
74835         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
74836         __localtime_r.
74837         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
74838         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
74839
74840         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
74841         __gmtime_r.
74842         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
74843         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
74844         Include <time_r.h>.
74845
74846         * lib/timegm.c: Switch to glibc implementation, with the following
74847         changes:
74848         [defined HAVE_CONFIG_H]: Include <config.h>.
74849         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
74850         (__mktime_internal) [!defined _LIBC]: New decl.
74851         (__gmtime_r) [!defined _LIBC]: New macro and function.
74852         (timegm): Use a prototype, since gnulib assumes C89.
74853         Do not bother declaring tmp to be const, as it's not really usefu.
74854         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
74855         (timegm): Declare only if HAVE_DECL_TIMEGM.
74856
74857 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74858
74859         * MODULES.html.sh (func_all_modules): Add time_r.
74860         * modules/time_r: New file.
74861         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
74862         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
74863
74864 2003-09-03  Paul Eggert  <eggert@twinsun.com>
74865
74866         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
74867         Bug reported by Lute Kamstra in
74868         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
74869
74870         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
74871         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
74872         course with correspondingly smaller numbers for tomorrow and
74873         yesterday.  From Tadayoshi Funaba.  Originally installed into
74874         sh-utils on 1999-08-07, but the patch got lost (I guess during the
74875         coreutils merge?).
74876
74877 2003-08-31  Simon Josefsson  <jas@extundo.com>
74878
74879         * modules/timegm: New file.
74880         * MODULES.html.sh (func_all_modules): Add timegm.
74881
74882 2003-08-31  Simon Josefsson  <jas@extundo.com>
74883
74884         * m4/timegm.m4: New file.
74885
74886 2003-08-31  Simon Josefsson  <jas@extundo.com>
74887
74888         * lib/timegm.h: New file.
74889         * lib/timegm.c: New file.  Based on
74890         wget-1.8.2/src/http.c:mktime_from_utc.
74891
74892 2003-08-31  Karl Berry  <karl@gnu.org>
74893
74894         * lib/argp.h: update from libc.
74895
74896 2003-08-28  Bruno Haible  <bruno@clisp.org>
74897
74898         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
74899         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
74900         followed by '#define fnmatch fnmatch_posix' gives an error.
74901
74902 2003-08-28  Bruno Haible  <bruno@clisp.org>
74903
74904         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
74905         warning on QNX, which defines O_BINARY to 000000.
74906
74907 2003-08-27  Jim Meyering  <jim@meyering.net>
74908
74909         * m4/mkstemp.m4: Require that the system mkstemp be able to create
74910         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
74911         would fail after 32.  Reported by Danny Levinson.  Details here:
74912         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
74913
74914 2003-08-24  Bruno Haible  <bruno@clisp.org>
74915
74916         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
74917         MSVC7 <stdio.h> is included later.
74918
74919 2003-08-22  Simon Josefsson  <jas@extundo.com>
74920
74921         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
74922
74923 2003-08-20  Karl Berry  <karl@gnu.org>
74924
74925         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
74926
74927 2003-08-20  Bruno Haible  <bruno@clisp.org>
74928
74929         * modules/progname: New file.
74930         * MODULES.html.sh (func_all_modules): Add progname.
74931
74932 2003-08-20  Bruno Haible  <bruno@clisp.org>
74933
74934         * lib/progname.h: New file, from GNU gettext.
74935         * lib/progname.c: New file, from GNU gettext.
74936         * lib/progreloc.c: New file, from GNU gettext.
74937
74938 2003-08-19  Jim Meyering  <jim@meyering.net>
74939
74940         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
74941         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
74942
74943 2003-08-19  Bruno Haible  <bruno@clisp.org>
74944
74945         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
74946         more.
74947
74948 2003-08-19  Bruno Haible  <bruno@clisp.org>
74949
74950         * lib/xstrdup.c: Assume <string.h> exists.
74951
74952 2003-08-18  Paul Eggert  <eggert@twinsun.com>
74953
74954         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
74955         in makefile rules.
74956
74957 2003-08-18  Jim Meyering  <jim@meyering.net>
74958
74959         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
74960         * m4/lib-ld.m4: Likewise.
74961
74962 2003-08-18  Jim Meyering  <jim@meyering.net>
74963
74964         * lib/setenv.h: Indent nested cpp directive.
74965         * lib/vasnprintf.c: Remove trailing blanks.
74966
74967 2003-08-17  Simon Josefsson  <jas@extundo.com>
74968
74969         * modules/xstrndup: New file.
74970         * MODULES.html.sh (func_all_modules): Add xstrndup.
74971
74972 2003-08-17  Simon Josefsson  <jas@extundo.com>
74973
74974         * modules/argp: Fix autoconf macro name. Add more dependencies.
74975
74976 2003-08-17  Simon Josefsson  <jas@extundo.com>
74977
74978         * m4/xstrndup.m4: New file.
74979
74980 2003-08-17  Simon Josefsson  <jas@extundo.com>
74981
74982         * m4/argp.m4: New file.
74983
74984 2003-08-17  Simon Josefsson  <jas@extundo.com>
74985             Bruno Haible  <bruno@clisp.org>
74986
74987         * lib/xstrndup.h: New file.
74988         * lib/xstrndup.c: New file.
74989
74990 2003-08-17  Bruno Haible  <bruno@clisp.org>
74991
74992         * modules/strndup (Files, Include): Add lib/strndup.h.
74993
74994 2003-08-17  Bruno Haible  <bruno@clisp.org>
74995
74996         * modules/euidaccess (Files): Add lib/euidaccess.h.
74997
74998 2003-08-17  Bruno Haible  <bruno@clisp.org>
74999
75000         * lib/strndup.h: New file.
75001
75002 2003-08-17  Bruno Haible  <bruno@clisp.org>
75003
75004         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
75005         like AC_GNU_SOURCE.
75006         * modules/extensions (configure.ac): Comment out the invocation of
75007         gl_USE_SYSTEM_EXTENSIONS.
75008
75009 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75010
75011         Merges from coreutils, etc.
75012         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
75013         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
75014         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
75015         fixing a typo.
75016         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
75017         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
75018
75019 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75020
75021         Document merge from coreutils.
75022         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
75023         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
75024         * modules/utime: Add m4/utimes-null.m4.
75025
75026 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75027
75028         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
75029         space, undoing this 2003-08-12 change:
75030         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75031
75032 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75033
75034         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
75035         strtoul.c from libc, undoing this 2003-08-12 change:
75036         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75037
75038 2003-08-16  Jim Meyering  <jim@meyering.net>
75039
75040         Merges from coreutils.
75041         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
75042         prefix.  Adjust cache variables similarly.  Create 500 rather than
75043         just 300 files, to exercise bug on Darwin6.5, too.
75044         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
75045         $missing_dir.
75046         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
75047         AM_SYS_POSIX_TERMIOS.
75048         Reported by mkc@mathdogs.com.
75049         Also change use of $am_cv_sys_posix_termios
75050         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
75051         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
75052         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
75053         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
75054         in /proc/mounts until it finds one with matching device number.  This
75055         is unnecessary when the FILE argument *is* a mount point.  No stat call
75056         is necessary in that case.  So, disable the statvfs-testing code on
75057         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
75058         as RedHat bug# 84846.
75059         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75060         to 1MB, so as not to render systems with no stack size limit (e.g.,
75061         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75062         Include <unistd.h>.  On some systems,
75063         it is required for the definition of _SC_PAGESIZE.
75064
75065 2003-08-16  Jim Meyering  <jim@meyering.net>
75066
75067         Merge from coreutils.
75068         * lib/xstrtoimax.c: #else #if -> #elif.
75069         * lib/xstrtoumax.c: Likewise.
75070
75071 2003-08-16  Jim Meyering  <jim@meyering.net>
75072
75073         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
75074         * m4/utimes.m4: Removed.
75075         * m4/utimes-null.m4: Renamed from utimes.m4.
75076
75077         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75078         to 1MB, so as not to render systems with no stack size limit (e.g.,
75079         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75080         Include <unistd.h>.  On some systems,
75081         it is required for the definition of _SC_PAGESIZE.
75082
75083 2003-08-16  Jim Meyering  <jim@meyering.net>
75084         and Paul Eggert  <eggert@cs.ucla.edu>
75085
75086         Merges from coreutils, etc.
75087
75088         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
75089         using the latest version from cvs.  This avoids problems with #line
75090         directives using a vendor (Sun) compiler.
75091         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
75092         Don't set GETGROUPS_LIB here; now it's
75093         done via getgroups.m4's wrapper function.
75094         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
75095         rather than just in sh-util/configure.in, so that the
75096         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
75097         same.
75098         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
75099         AC_FUNC_GETLOADAVG where to find getloadavg.c.
75100         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
75101         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
75102         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
75103         Remove code that is now done by the newly-required macros.
75104         Append $(EXEEXT) to DF_PROG.
75105         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
75106         Do not invoke or require the following here,
75107         since prereq.m4 or some gnulib .m4 now does this for us:
75108         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
75109         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
75110         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
75111         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
75112         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
75113         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
75114         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
75115         AC_FUNC_OBSTACK.
75116         Do not replace the following functions, as this is now the job
75117         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
75118         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
75119         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
75120         atexit getpass, strdup, getpagesize.
75121         Replace 'raise'.
75122         Do not check for the following functions, as this is now the job
75123         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
75124         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
75125         setregid.
75126         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
75127         Check for sys/sysctl.h.
75128         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
75129         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
75130         of checking for ssize_t ourselves.
75131
75132         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
75133         Require every macro that gnulib/modules/* suggests for us.
75134         (jm_PREREQ_ADDEXT): New macro.
75135         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
75136         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
75137
75138         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
75139         (gl_PHYSMEM): Use it.
75140         Also check for `table' function.
75141         Check for new headers and functions.
75142         Add check for sys/sysmp.h.
75143         With suggestions from Kaveh Ghazi.
75144         Ignore headers that are present but cannot be compiled.  This
75145         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
75146         C 5.4.
75147
75148 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75149
75150         Document merge from coreutils.
75151         * modules/userspec: Depend on posixver.
75152         * modules/strftime: Depend on tzset.
75153
75154 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75155
75156         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
75157         rather than tab, after '#' in shell-script copyright notices.
75158         Suggested by Bruno Haible.
75159
75160 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75161
75162         * config/srclist-update: Use three spaces, rather than tab, after '#'
75163         in shell-script copyright notices.  Suggested by Bruno Haible.
75164         Remove unnecessary parenthesization in regular expression.
75165
75166 2003-08-15  Jim Meyering  <jim@meyering.net>
75167
75168         Merge from coreutils.
75169         * lib/xgethostname.c: Include <stdlib.h>.
75170         (xghostname): Don't exit for anything other than memory-related
75171         failure; just return NULL.
75172         * lib/userspec.c: Include "posixver.h".
75173         (parse_user_spec): Accept `.' as a separator only
75174         in pre-POSIX-200112 mode.
75175         * lib/strtoimax.c: Use #elif rather than #else #if.
75176         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
75177         Remove function, now that we can rely on a working tzset function.
75178         [!_LIBC]: Ensure that the required autoconf test has been run.
75179         [!defined _NL_CURRENT && HAVE_STRFTIME]:
75180         Use underlying_strftime for %r.
75181         * lib/sha.c: Merge in some clean-up and optimization changes from
75182         glibc.
75183         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
75184         Ensure that it is a multiple of 64.
75185         Rearrange loop exit tests so as to avoid performing an
75186         additional fread after encountering an error or EOF.
75187         * lib/realloc.c: Update copyright date.
75188
75189 2003-08-15  Jim Meyering  <jim@meyering.net>
75190         and Paul Eggert  <eggert@twinsun.com>
75191
75192         Merge from coreutils.
75193         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
75194         member but strut utmpx does not.  Needed for AIX 4.3.3.
75195         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
75196
75197 2003-08-15  Jim Meyering  <jim@meyering.net>
75198         and Paul Eggert  <eggert@cs.ucla.edu>
75199
75200         Merges from coreutils, etc.
75201         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
75202         Require gl_FUNC_TZSET_CLOBBER.
75203         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
75204         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
75205         members.
75206
75207 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75208
75209         Help the merge from coreutils.
75210         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
75211         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
75212         * m4/tzset.m4: Use it too.
75213
75214 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75215
75216         * modules/tzset: New file.
75217
75218 2003-08-14  Jim Meyering  <jim@meyering.net>
75219
75220         Merges from coreutils.
75221         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
75222         variable names, rather than @FNMATCH_H@.
75223         * modules/alloca: Likewise for $(ALLOCA_H).
75224
75225         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
75226         the three copies of the literal target, `fnmatch.h'.
75227         * modules/alloca (alloca.h): Likewise.
75228
75229 2003-08-14  Jim Meyering  <jim@meyering.net>
75230
75231         Merge from coreutils.
75232         * m4/tzset.m4: New file.
75233         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
75234         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
75235         otherwise, AIX 5.1 systems would end up using the latter.
75236         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
75237         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
75238         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
75239         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
75240
75241 2003-08-14  Jim Meyering  <jim@meyering.net>
75242
75243         Merge from coreutils.
75244         * lib/obstack.h: Whitespace changes.
75245         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
75246         and xcalloc return values.
75247         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
75248         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
75249         hang on OSF/1 5.1 for DIR on both local and remote file systems.
75250         Reported by (and fix confirmed by) Nelson H. F. Beebe.
75251         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75252         error from mntctl.
75253         Use mntctl's return value to drive the entry-processing loop, since
75254         we can't rely on the value of the vmt_length member in the last
75255         entry.  On some systems doing so could result in exhausting
75256         virtual memory.  Based in part on a patch from Mike Jetzer.
75257
75258 2003-08-14  Jim Meyering  <jim@meyering.net>
75259         and Paul Eggert  <eggert@twinsun.com>
75260
75261         Merges from coreutils, plus other fixes.
75262         * lib/physmem.c: Merge in portability changes from gcc/libiberty
75263         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
75264         for credits and details.  Thanks to Kaveh Ghazi for helping
75265         to keep these files in sync.
75266         (ARRAY_SIZE): Define it.
75267         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
75268         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
75269         (memcasecmp): Don't assume size_t fits in unsigned int.
75270         Remove casts and duplicate code.
75271         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
75272         (memcpy): Remove definition.
75273         Merge in some clean-up and optimization changes from glibc.
75274         [BLOCKSIZE]: Move definition to top of file.
75275         Ensure that it is a multiple of 64.
75276         Rearrange loop exit tests so as to avoid performing an
75277         additional fread after encountering an error or EOF.
75278         * lib/md5.h (md5_uintptr): Define.
75279         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
75280         return to the initial working directory.  Preserve errno
75281         for caller.
75282         * lib/idcache.c: Include "xalloc.h".
75283         (xmalloc, xrealloc): Remove decls.
75284         (getuser): Remove casts no longer required in C89.
75285         * lib/human.c: Include stdio.h, for sprintf.
75286         * lib/group-member.c: Include "xalloc.h".
75287         (xmalloc, xrealloc): Remove decls.
75288         (get_group_info): Remove casts no longer required in C89.
75289         * lib/getusershell.c (readname): Remove casts no longer required in
75290         C89.
75291         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
75292         * lib/getline.c: Whitespace fix, from coreutils.
75293
75294 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75295
75296         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
75297         Check for isascii.
75298
75299         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75300         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75301         Undo previous (whitespace-only) change.
75302
75303 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75304
75305         * lib/exclude.c: Include <ctype.h>
75306         (IN_CTYPE_DOMAIN): New macro.
75307         (is_space): New fn.
75308         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
75309         and empty lines.
75310
75311         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75312         Undo previous (whitespace-only) change.
75313
75314 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75315
75316         * config/srclist-update: Change update back to the old behavior,
75317         leaving whitespace alone.  Use one 'sed' command rather than a
75318         pipeline.
75319         (fixlicense): Now a variable, not a function.
75320         (remove_trailing_blanks): Remove.
75321         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
75322         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75323         Undo previous (whitespace-only) change.
75324
75325 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75326
75327         Merge from coreutils.
75328         * modules/euidaccess: Add lib_SOURCES, include for new
75329         file euidaccess.h
75330
75331 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75332
75333         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75334         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75335         Normalize leading white space and remove trailing white space.
75336
75337         Merge from coreutils
75338         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
75339
75340         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
75341         0.12.1.  These files are now being upgraded automatically by
75342         ../config/srclist-update.
75343
75344 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75345
75346         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75347         Normalize leading white space and remove trailing white space.
75348         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
75349         notice, as per ../config/srclist-update.
75350
75351         Merge from coreutils.
75352         * lib/euidaccess.h: New file.
75353         * lib/euidaccess.c: Include it.
75354         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
75355         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
75356         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
75357
75358 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75359
75360         * config/srclist-update: Add copyright notice.
75361         (remove_id_lines, remove_trailing_blanks): New constants.
75362         (fixfile): Use them to normalize spacing a bit in copied files.
75363         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75364         Normalize leading white space and remove trailing white space.
75365
75366         * config/texinfo.tex: Sync with texinfo.
75367
75368         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
75369         strtoul.c from libc, to merge coreutils whitespace changes.
75370
75371         * config/srclist.txt: Get the following m4 files from gettext:
75372         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
75373         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
75374         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
75375         wint_t.m4.
75376
75377 2003-08-12  Karl Berry  <karl@gnu.org>
75378
75379         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
75380         been made.
75381
75382 2003-08-11  Paul Eggert  <eggert@twinsun.com>
75383
75384         * modules/gnu-source, m4/gnu-source.m4:
75385         Remove; we're assuming Autoconf 2.54 or later now.
75386         Suggested by Bruno Haible.
75387         * MODULES.html.sh (func_all_modules): Remove gnu-source.
75388
75389 2003-08-11  Bruno Haible  <bruno@clisp.org>
75390
75391         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
75392
75393 2003-08-11  Bruno Haible  <bruno@clisp.org>
75394
75395         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
75396         (vasnprintf): Use it instead of wcslen.
75397
75398 2003-08-11  Bruno Haible  <bruno@clisp.org>
75399
75400         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
75401         value to ensure that _Bool promotes to int. Use #define for _Bool when
75402         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
75403
75404 2003-08-10  Karl Berry  <karl@gnu.org>
75405
75406         * lib/regex.h: update from libc (whitespace fix).
75407
75408 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75409
75410         Merge some files from coreutils.  These changes were
75411         originally made by Jim Meyering.
75412         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
75413         many older Unixes require this.
75414         * lib/alloca.c (alloca): Remove cast to argument of free;
75415         no longer needed in C89.
75416         * lib/alloca_.h, regex.h: Fix white space to match
75417         what GNU indent does.
75418
75419 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75420
75421         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
75422         apparently Emacs's Unicode mode got confused before my 2003-08-05
75423         checkin.
75424
75425 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75426
75427         * m4/extensions.m4: New file.
75428         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
75429         Require gl_USE_SYSTEM_EXTENSIONS.
75430         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
75431         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
75432
75433 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75434
75435         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
75436         * modules/extensions, modules/gnu-source: New files.
75437         * modules/timespec, modules/unlocked-io: Depend on extensions.
75438
75439 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75440
75441         * modules/restrict: New file.
75442         * MODULES.html.sh (func_all_modules): Add restrict.
75443         * modules/regex: Depend on restrict.
75444
75445 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75446
75447         * m4/restrict.m4: New file.
75448         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
75449
75450 2003-08-07  Bruno Haible  <bruno@clisp.org>
75451
75452         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
75453         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
75454
75455 2003-08-07  Bruno Haible  <bruno@clisp.org>
75456
75457         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
75458         makes the module 'getndelim2' compatible with the module 'getline'.
75459
75460 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75461
75462         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
75463         byte with "\201" to avoid glitches when editing that source file
75464         with multi-gnome-terminal.
75465
75466 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75467
75468         * lib/bumpalloc.h: Remove.
75469
75470 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75471
75472         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
75473         * modules/bumpalloc: Remove.
75474
75475 2003-08-04  Paul Eggert  <eggert@twinsun.com>
75476
75477         * lib/getloadavg.c: Change copyright notice and spacing to conform to
75478         GNU coding style.
75479
75480         Merge from coreutils.
75481         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
75482         1. From glibc.
75483         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
75484         from Karl Berry, implemented by Jim Meyering.
75485         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
75486         from Dmitry V. Levin.
75487         Remove anachronistic cast of xrealloc.
75488         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
75489         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
75490         type. Otherwise, it wouldn't compile with at least /bin/cc on
75491         ymp-cray-unicos9.0.2.X.
75492         Combine two mostly-identical uses of alloca into one.
75493         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
75494
75495 2003-08-04  Dave Love  <d.love@dl.ac.uk>
75496
75497         [From Emacs.]
75498
75499         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
75500         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
75501         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
75502         obsolete NLIST_NAME_UNION.
75503         [__GNU__]: Undef BSD and FSCALE.
75504         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
75505
75506 2003-08-03  Paul Eggert  <eggert@twinsun.com>
75507
75508         * lib/stdbool_.h (_Bool): Make it signed char, instead of
75509         an enum type, so that it's guaranteed to promote to int.  See:
75510         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
75511
75512 2003-08-03  Karl Berry  <karl@gnu.org>
75513
75514         * config/depcomp: update from automake.
75515
75516 2003-07-31  Paul Eggert  <eggert@twinsun.com>
75517
75518         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
75519         (strerror): Don't assume that a printable int fits in 14 bytes.
75520
75521 2003-07-31  Bruno Haible  <bruno@clisp.org>
75522
75523         * modules/getpass-gnu: New file.
75524         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
75525
75526 2003-07-31  Bruno Haible  <bruno@clisp.org>
75527
75528         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
75529
75530 2003-07-24  Karl Berry  <karl@gnu.org>
75531
75532         * config/missing: update from automake.
75533
75534 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
75535             Bruno Haible  <bruno@clisp.org>
75536
75537         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
75538         * lib/getline.c (getline, getdelim): Likewise.
75539         Remove _GNU_SOURCE define; now it's defined in config.h through
75540         m4/getline.m4.
75541
75542 2003-07-23  Karl Berry  <karl@gnu.org>
75543
75544         * config/config.sub: update from prep.
75545
75546 2003-07-22  Paul Eggert  <eggert@twinsun.com>
75547
75548         * modules/xalloc (Depends-on): Add exitfail.
75549         * modules/xmemcoll: Likewise.
75550
75551 2003-07-22  Paul Eggert  <eggert@twinsun.com>
75552
75553         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
75554         over-parenthesization in macros.
75555
75556         Sync with coreutils.
75557
75558         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
75559         required by C99.
75560
75561         Use `exit_failure' for xalloc and xmemcoll instead of their own
75562         private exit-failure variables.
75563         * lib/xalloc.h (xalloc_exit_failure): Remove.
75564         * lib/xmalloc.c: Likewise.  Include exitfail.h.
75565         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
75566         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
75567         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
75568         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
75569
75570 2003-07-20  Jim Meyering  <jim@meyering.net>
75571
75572         * modules/closeout (Depends-on): Add exitfail.
75573         Suggestion from Bruno Haible.
75574
75575 2003-07-19  Karl Berry  <karl@gnu.org>
75576
75577         * config/config.sub: update from prep.
75578
75579 2003-07-18  Paul Eggert  <eggert@twinsun.com>
75580
75581         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
75582         Remove.
75583         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
75584         to test that it can stand by itself.  Include "exitfail.h".
75585         Clients should set exit_failure instead.
75586         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
75587
75588 2003-07-18  Bruno Haible  <bruno@clisp.org>
75589
75590         * modules/getndelim2: New file.
75591         * modules/getline: Share files with module getndelim2.
75592         * modules/getnline: Depend on getndelim2 instead of sharing files with
75593         it. Add getnline.c to lib_SOURCES.
75594         * MODULES.html.sh (func_all_modules): Add getndelim2.
75595
75596 2003-07-18  Bruno Haible  <bruno@clisp.org>
75597
75598         * m4/getndelim2.m4: New file.
75599         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
75600         invoke gl_PREREQ_GETNDELIM2.
75601         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
75602         gl_PREREQ_GETNDELIM2.
75603         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
75604         gl_GETNDELIM2.
75605
75606 2003-07-18  Bruno Haible  <bruno@clisp.org>
75607
75608         * lib/getndelim2.h: New file.
75609         * lib/getndelim2.c: Make into a module of its own. Include config.h,
75610         getndelim2.h.
75611         (getndelim2): Make non-static. Change return type to ssize_t.
75612         * lib/getline.h: Change argument names.
75613         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
75614         * lib/getnline.c: Include getndelim2.h.
75615
75616 2003-07-18  Andreas Schwab  <schwab@suse.de>
75617
75618         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
75619
75620 2003-07-17  Karl Berry  <karl@gnu.org>
75621
75622         * config/config.sub: update from prep.
75623
75624 2003-07-17  Bruno Haible  <bruno@clisp.org>
75625
75626         * modules/getnline: New file.
75627         * modules/getline: Add lib/getndelim2.c to source file list.
75628         * MODULES.html.sh (func_all_modules): Add getnline.
75629
75630 2003-07-17  Bruno Haible  <bruno@clisp.org>
75631
75632         * m4/getnline.m4: New file.
75633
75634 2003-07-17  Bruno Haible  <bruno@clisp.org>
75635
75636         * m4/Makefile.am.in: Remove file.
75637         * m4/Makefile.am: Remove file.
75638         * m4/Makefile.in: Remove file.
75639
75640 2003-07-17  Bruno Haible  <bruno@clisp.org>
75641
75642         * lib/getnline.h: New file.
75643         * lib/getnline.c: New file.
75644         * lib/getndelim2.c: New file, extracted from getline.c.
75645         (getndelim2): Renamed from getdelim2, with added nmax argument.
75646         * lib/getline.c: Include getndelim2.c.
75647         (getdelim2): Moved out to getndelim2.c.
75648         (getline, getdelim): Update.
75649
75650 2003-07-17  Bruno Haible  <bruno@clisp.org>
75651
75652         * lib/Makefile.am: Remove file.
75653         * lib/Makefile.in: Remove file.
75654
75655 2003-07-17  Bruno Haible  <bruno@clisp.org>
75656
75657         * configure.in: Remove file.
75658         * Makefile.in: Remove file.
75659
75660 2003-07-17  Bruno Haible  <bruno@clisp.org>
75661
75662         * MODULES.html.sh: Put the </BODY> right before </HTML>.
75663
75664 2003-07-16  Karl Berry  <karl@gnu.org>
75665
75666         * config/srclist-update: was running fixlicense twice, which caused
75667                 texinfo.tex to be nullified for some reason.  Simplify,
75668                 $gplsrc is no longer needed as far as I can see?
75669
75670 2003-07-16  Jim Meyering  <jim@meyering.net>
75671
75672         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
75673
75674 2003-07-15  Paul Eggert  <eggert@twinsun.com>
75675
75676         * config/srclist.txt: Get the following files from gettext-runtime/intl
75677         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
75678         ref-del.sin.  From Bruno Haible.
75679         * config/srclist-update (fixfile): Change grep pattern again, since the
75680         previous fix didn't work (there was another trailing $).  Use
75681         '[$]' to escape the $s.
75682
75683 2003-07-15  Karl Berry  <karl@gnu.org>
75684
75685         * lib/vasnprintf.c: update from gettext.
75686
75687 2003-07-15  Karl Berry  <karl@gnu.org>
75688
75689         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
75690         gets expanded when surrounded by '$'.
75691
75692 2003-07-15  Jim Meyering  <jim@meyering.net>
75693
75694         * modules/save-cwd: Don't depend on error.  From Derek Price.
75695
75696 2003-07-15  Jim Meyering  <jim@meyering.net>
75697
75698         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
75699
75700 2003-07-14  Simon Josefsson  <jas@extundo.com>
75701
75702         * modules/mempcpy: New file.
75703         * MODULES.html.sh (func_all_modules): Add mempcpy.
75704
75705 2003-07-14  Simon Josefsson  <jas@extundo.com>
75706
75707         * m4/mempcpy.m4: New file.
75708
75709 2003-07-14  Simon Josefsson  <jas@extundo.com>
75710
75711         * lib/mempcpy.h: New file.
75712         * lib/mempcpy.c: New file.
75713
75714 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75715
75716         * modules/getdate, modules/posixtm: Depend on mktime.
75717
75718 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75719
75720         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
75721         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
75722         unicodeio.c, unicodeio.h, unlocked-io.h:
75723         Switch from LGPL to GPL.
75724
75725 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75726
75727         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
75728         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
75729         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
75730         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
75731         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
75732         updated automatically by ../config/srclist-update.  This changes
75733         their license from LPGL to GPL.
75734
75735 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75736
75737         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
75738         assumed to refer to the root of the most recent stable gettext version.
75739         * config/srclistvars.sh: Add defaults for eggert.
75740         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
75741         Match "This program" as well as "The program".  This is needed
75742         for gettext.
75743
75744 2003-07-14  Jim Meyering  <jim@meyering.net>
75745
75746         Don't emit diagnostics.  Let callers do that.
75747         * lib/save-cwd.c: Don't include "error.h".
75748         (save_cwd): Don't call error.  Ensure that errno is valid
75749         when returning nonzero.
75750
75751         * lib/save-cwd.h (restore_cwd): Update prototype.
75752         * lib/save-cwd.c (restore_cwd): Remove two parameters.
75753         Simplify.  Don't call error upon failure.  Let callers do that.
75754         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
75755         when auditing is enabled.  But don't bother updating the #if.
75756
75757 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
75758
75759         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
75760         it breaks C++ compilation.
75761         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
75762
75763 2003-07-10  Simon Josefsson  <jas@extundo.com>
75764
75765         * modules/strchrnul (Makefile.am): Add strchrnul.h.
75766
75767 2003-07-10  Jim Meyering  <jim@meyering.net>
75768
75769         * m4/clock_time.m4: Remove trailing blank.
75770         * m4/intmax_t.m4: Likewise.
75771
75772 2003-07-10  Jim Meyering  <jim@meyering.net>
75773
75774         * lib/vasnprintf.c: Remove trailing blanks.
75775         Make cpp indentation consistent.
75776
75777 2003-07-09  Paul Eggert  <eggert@twinsun.com>
75778
75779         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
75780         posixver.c, strftime.c, strnlen.c, strverscmp.c:
75781         Switch from LGPL to GPL.
75782
75783 2003-07-09  Paul Eggert  <eggert@twinsun.com>
75784
75785         * config/srclist.txt: Sort sublists.  Add
75786         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
75787         that differ from gnulib for one reason or another; we'd like this list
75788         to be smaller but for now let's document what we have.
75789
75790 2003-07-08  Paul Eggert  <eggert@twinsun.com>
75791
75792         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
75793         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
75794         and sweeter "eval x=$x".
75795         * config/srclist.txt: Get lib/argp* from glibc.
75796
75797 2003-07-07  Paul Eggert  <eggert@twinsun.com>
75798
75799         * lib/mktime.c: Fix some boundary cases and remove need for floating
75800         point.
75801
75802         Issue a compile-time diagnostic if time_t is floating point, or if
75803         two's complement arithmetic is not in effect, or if arithmetic
75804         right shift does not propagate the sign.  These assumptions were
75805         all in the original code but they weren't checked.
75806
75807         (TIME_T_MIDPOINT, verify): New macros.
75808         (__isleap): Remove; it has integer overflow problems.
75809         (leapyear): New function, without those problems.
75810         (ydhms_tm_diff): Remove; splitting into two parts.
75811         (ydhms_diff): New function, containing the arithmetic part of
75812         the old ydhms_tm_diff function.  Issue a compile-time
75813         diagnostic if we are not using C99 integer division.
75814         Avoid casts when possible.
75815         (guess_time_tm): New function, containing the checking part of
75816         the old ydhms_tm_diff function.  Return the new value, rather than
75817         the difference between it and the old.  Accept a new argument T
75818         so that *T specifies the old value.  Check for overflow in the result.
75819
75820         (__mktime_internal): Use a time_t offset, not a long int offset.
75821         This undoes the 2003-06-04 change, which is no longer needed now
75822         that we have better overflow checking.
75823         (localtime_offset): Likewise.
75824
75825         (__mktime_internal): Avoid harmful overflow on hosts where time_t
75826         and long are 64-bit but int is only 32-bit.
75827         (ydhms_diff): Use long int to store year1 and yday1.
75828         Issue a compile-time diagnostic if long int is not wide enough.
75829
75830         (__mktime_internal): Use long int to store adjusted year and yday.
75831         Use plain C rather than preprocessor commands, if that doesn't
75832         affect efficiency.
75833         Check for overflow (and try to repair) after each probe
75834         rather than checking only at the very end.  This avoids some bugs
75835         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
75836         does not equal GMT offset at maximum time).
75837         Use integer to check for overflow rather than floating point; this
75838         is more portable to non-IEEE hosts, and is a tad faster.
75839         When we detect that we are oscillating between two values,
75840         don't check whether tm_isdst has the requested value, since
75841         we already know the answer.  When tm_isdst has the wrong value,
75842         use a different heuristic to find the right one, based on the
75843         extreme values actually observed in practice in tz2003a,
75844         rather than the (overly optimistic) "previous 3 calendar quarters".
75845
75846         (not_equal_tm, print_tm, check_result): Use "const T" rather than
75847         "T const" to accommodate glibc style.
75848         (check_result): Use less-confusing report format.  "long" -> "long int.
75849         (main): Likewise.
75850         Don't loop if the iteration overflows time_t.
75851         Allow a negative step in the iteration.
75852
75853 2003-07-06  Karl Berry  <karl@gnu.org>
75854
75855         * config/depcomp: update from automake.
75856         * config/config.sub: update from prep.
75857
75858 2003-07-03  Karl Berry  <karl@gnu.org>
75859
75860         * config/config.guess: update from prep.
75861
75862 2003-07-01  Paul Eggert  <eggert@twinsun.com>
75863
75864         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
75865         xreadlink.c now includes it unconditionally.
75866
75867 2003-07-01  Paul Eggert  <eggert@twinsun.com>
75868
75869         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
75870         having it depend on HAVE_SYS_TYPES_H.
75871
75872 2003-07-01  Bruno Haible  <bruno@clisp.org>
75873
75874         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
75875         <sys/types.h> should be sufficient.
75876         Reported by Paul Eggert.
75877
75878 2003-06-26  Karl Berry  <karl@gnu.org>
75879
75880         * config/depcomp: update from automake.
75881
75882 2003-06-26  Bruno Haible  <bruno@clisp.org>
75883
75884         * modules/human: Depend on module stdbool.
75885
75886 2003-06-25  Bruno Haible  <bruno@clisp.org>
75887
75888         * modules/readlink: New file.
75889         * modules/xreadlink: Depend on it.
75890         * MODULES.html.sh (func_all_modules): Add readlink.
75891
75892 2003-06-25  Bruno Haible  <bruno@clisp.org>
75893
75894         * m4/readlink.m4: New file.
75895
75896 2003-06-25  Bruno Haible  <bruno@clisp.org>
75897
75898         * lib/readlink.c: New file.
75899
75900 2003-06-22  Karl Berry  <karl@gnu.org>
75901
75902         * config/srclist.txt: update mkinstalldirs from automake.
75903         * config/mkinstalldirs: update.
75904
75905 2003-06-22  Bruno Haible  <bruno@clisp.org>
75906
75907         Portability to mingw32.
75908         * m4/ssize_t.m4: New file, from GNU gettext.
75909         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
75910         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
75911
75912 2003-06-22  Bruno Haible  <bruno@clisp.org>
75913
75914         * modules/safe-read: Add m4/ssize_t.m4.
75915         * modules/xreadlink: Add m4/ssize_t.m4.
75916
75917 2003-06-20  Bruno Haible  <bruno@clisp.org>
75918
75919         Assume C89, so PARAMS isn't needed.
75920         * lib/unicodeio.h (PARAMS): Remove.
75921         * lib/unicodeio.c: Don't use PARAMS.
75922
75923 2003-06-18  Karl Berry  <karl@gnu.org>
75924
75925         * config/config.{guess,sub}: update from prep.
75926
75927 2003-06-18  Jim Meyering  <jim@meyering.net>
75928
75929         Merge changes from coreutils.
75930         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
75931         Remove explicit declarations of xmalloc and realloc.
75932         Include xalloc.h.
75933         (read_utmp): Remove anachronistic cast of xmalloc.
75934
75935 2003-06-17  Paul Eggert  <eggert@twinsun.com>
75936
75937         Assume C89, so PARAMS isn't needed.
75938         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
75939         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
75940         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
75941         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
75942         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
75943         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
75944         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
75945         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
75946         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
75947         lib/xstrtod.h, lib/xstrtol.h: Likewise.
75948         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
75949         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
75950         no longer needed. Anyway, config.h should always be included before any
75951         other file.
75952
75953 2003-06-11  Simon Josefsson  <jas@extundo.com>
75954
75955         * modules/sysexits: New file.
75956         * MODULES.html.sh (func_all_modules): Add sysexits.
75957
75958 2003-06-11  Simon Josefsson  <jas@extundo.com>
75959
75960         * lib/sysexit_.h: New file.
75961
75962 2003-06-11  Derek Price  <derek@ximbiot.com>
75963
75964         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
75965         necessary.
75966
75967 2003-06-11  Bruno Haible  <bruno@clisp.org>
75968
75969         * m4/sysexits.m4: New file.
75970
75971 2003-06-10  Simon Josefsson  <jas@extundo.com>
75972
75973         * lib/argp.h: New file, from glibc.
75974         * lib/argp-ba.c: New file, from glibc.
75975         * lib/argp-eexst.c: New file, from glibc.
75976         * lib/argp-fmtstream.c: New file, from glibc.
75977         * lib/argp-fmtstream.h: New file, from glibc.
75978         * lib/argp-fs-xinl.c: New file, from glibc.
75979         * lib/argp-help.c: New file, from glibc.
75980         * lib/argp-namefrob.h: New file, from glibc.
75981         * lib/argp-parse.c: New file, from glibc.
75982         * lib/argp-pv.c: New file, from glibc.
75983         * lib/argp-pvh.c: New file, from glibc.
75984         * lib/argp-xinl.c: New file, from glibc.
75985
75986 2003-06-10  Simon Josefsson  <jas@extundo.com>
75987
75988         * modules/strchrnul: New file.
75989
75990 2003-06-10  Simon Josefsson  <jas@extundo.com>
75991
75992         * modules/argp: New file.
75993
75994 2003-06-10  Simon Josefsson  <jas@extundo.com>
75995
75996         * m4/strchrnul.m4: New file.
75997
75998 2003-06-10  Simon Josefsson  <jas@extundo.com>
75999
76000         * lib/strchrnul.h: New file.
76001         * lib/strchrnul.c: New file.
76002
76003 2003-06-10  Bruno Haible  <bruno@clisp.org>
76004
76005         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
76006
76007 2003-06-07  Karl Berry  <karl@gnu.org>
76008
76009         * config/config.{guess,sub}: update from prep.
76010
76011 2003-06-07  Jim Meyering  <jim@meyering.net>
76012
76013         * modules/strtod: Use $(...) notation, not @...@ for
76014         AC_REPLACE'd variables.
76015         * modules/localcharset: Likewise.
76016
76017 2003-06-07  Jim Meyering  <jim@meyering.net>
76018
76019         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
76020         in place of my name in the copyright comment.
76021         Remove definition and uses of __P.
76022
76023         From coreutils.
76024         * lib/stat.c: Don't declare xmalloc explicitly.
76025         Instead, include "xalloc.h".
76026         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
76027         xrealloc, and xcalloc return values.
76028         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
76029         Improve comment.
76030         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
76031
76032 2003-06-07  Bruno Haible  <bruno@clisp.org>
76033
76034         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
76035         avoid AC_CONFIG_LINKS.
76036         * modules/fnmatch (Makefile.am): Use explicit creation rule for
76037         fnmatch.h, to avoid AC_CONFIG_LINKS.
76038         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
76039
76040 2003-06-07  Bruno Haible  <bruno@clisp.org>
76041
76042         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
76043         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
76044         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76045         directory.
76046         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
76047         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76048         directory.
76049
76050 2003-06-06  Jim Meyering  <jim@meyering.net>
76051
76052         Merge from coreutils.
76053         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
76054         Consolidate declarations and initializations of *_base* locals.
76055
76056         Merge from coreutils.
76057         This avoids a core dump on systems without GNU putenv,
76058         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
76059         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
76060         (unsetenv): New static function, from GNU libc.
76061         (rpl_putenv): Use it.
76062
76063         * lib/modechange.c: Remove trailing blanks.
76064
76065         Merge from coreutils.
76066         * lib/fsusage.c: Remove declaration of statfs.
76067         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
76068
76069         * lib/posixtm.c: Include <stdbool.h> unconditionally.
76070
76071 2003-06-06  Jim Meyering  <jim@meyering.net>
76072
76073         * lib/stdbool_.h: Renamed from stdbool.h.in.
76074
76075 2003-06-06  Jim Meyering  <jim@meyering.net>
76076             Bruno Haible  <bruno@clisp.org>
76077
76078         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
76079         Adjust Makefile.am snippet not to redirect directly to target.
76080         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
76081
76082 2003-06-05  Paul Eggert  <eggert@twinsun.com>
76083
76084         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
76085         mismatch, look in future quarters as well as past.  This fixes a
76086         bug when processing fall-backwards gaps immediately after a long
76087         period of daylight-saving time.
76088
76089         * lib/mktime.c: Assume freestanding C89 or better.
76090         (HAVE_LIMITS_H): Remove.  Assume it's 1.
76091         (__P): Remove; not used.
76092         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
76093         (mktime, not_equal_tm, print_tm, check_result,
76094         main): Use prototypes.  Use const * where appropriate.
76095         (main): Fix typo in testing code that uncovered by above changes.
76096         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
76097
76098 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76099
76100         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
76101         locale.h, localeconv.  This merges changes from coreutils.
76102
76103         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
76104         It can be removed after the next Autoconf is released.
76105         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
76106         needed.
76107
76108 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76109
76110         * lib/mktime.c: Fix Debian bug 177940
76111         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
76112         (localtime_offset): Now long int, not time_t, because we want it
76113         to be guaranteed to be signed.  All uses changed.
76114         (__mktime_internal): If overflow would occur when adding offset,
76115         don't add it.
76116
76117         Merge 'human' changes from coreutils.  Rewrite to support
76118         locale-specific notations like thousands separators.
76119         * lib/human.c: Simplify authorship notice.
76120         Include human.h immediately after config.h.
76121         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
76122         <limits.h>: Do not include, since human.h does.
76123         (SIZE_MAX, UINTMAX_MAX): New macros.
76124         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
76125         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
76126         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
76127         (power_letter): Renamed from suffixes.
76128         (generate_suffix_backwards): Remove.
76129         (adjust_value): Now takes int style (because of human.h changes)
76130         and long double value (for greater precision on some platforms).
76131         (group_number): New function.
76132         (human_readable): Use it.  Use integer options, not enum.
76133         Put the options before the sizes in the arg list.
76134         Support all the new options.
76135         The old human_readable function has been removed;
76136         use inttostr.h instead.
76137         (human_readable, default_block_size, humblock):
76138         Use uintmax_t, not int, for block sizes.
76139         (human_readable_inexact, block_size_types): Remove.
76140         (block_size_opts): New constant.
76141         (human_options): Renamed from human_block_size, with new signature
76142         that allows block sizes up to UINTMAX_MAX.  All callers changed.
76143         * lib/human.h: Add copyright and authorship notice.
76144         Include <limits.h> and <stdbool.h> unconditionally.
76145         (PARAMS): Remove.  All uses removed.
76146         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
76147         (enum human_inexact_style): Remove tag; now a nameless enum.
76148         (human_floor, human_ceiling, human_round_to_even): Now have
76149         values 2, 0, 1 rather than -1, 1, 0.
76150         (human_group_digits, human_suppress_point_zero, human_autoscale,
76151         human_base_1024, human_SI, human_B): New constants.
76152         (human_readable_inexact, human_block_size): Remove.
76153         (human_readable): Size args are now uintmax_t, not int.
76154         (human_options): New decl.
76155
76156         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
76157         unnecessary now that we assume C89 or better.  This change
76158         imported from coreutils.
76159
76160         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76161         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
76162         in the 2003-05-30 sync from glibc.
76163
76164         .h files should stand alone, but we shouldn't include <sys/types.h>
76165         if we can get away with just <stddef.h>.
76166
76167         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
76168         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
76169         rather than <sys/types.h>, as we merely need size_t.
76170         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
76171         to get size_t.
76172         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
76173         Include <stdio.h>, to get FILE.
76174         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
76175         memcasecmp.h has included <stddef.h> and all we need is size_t.
76176         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
76177         our interface, instead of including <sys/types.h>
76178
76179 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76180
76181         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
76182         now, as glibc mktime is buggy on non-glibc systems.
76183
76184 2003-06-03  Karl Berry  <karl@gnu.org>
76185
76186         * config/config.sub: update from prep.
76187
76188 2003-06-02  Paul Eggert  <eggert@twinsun.com>
76189
76190         [from coreutils]
76191         Fix some minor time-related bugs with POSIX time arguments.
76192         Some valid time stamps were being rejected (notably -1, and
76193         time stamps before 1900 on 64-bit hosts).  And some invalid
76194         time stamps were being accepted, e.g. September 31.
76195
76196         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
76197         that we can return (time_t) -1 successfully.
76198         * lib/posixtm.c: Likewise.
76199         [HAVE_STDBOOL_H]: Include <stdbool.h>.
76200         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
76201         (t): Remove static var.
76202         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
76203         of static var.  All uses changed.
76204         (year): Do not reject years before 1900; they can occur with
76205         64-bit time_t.
76206         (posix_time_parse): Do not check for out-of-range components;
76207         that is now the caller's responsibility, since our checks were
76208         only approximations.
76209         (posixtime): Use mktime to check for out-of-range components,
76210         since it knows them exactly.
76211         If mktime returns (time_t) -1, check whether an error actually occurred
76212         by invoking localtime on -1.
76213         (main) [TEST_POSIXTIME]: Check for input data errors, and report
76214         posixtime failures better.
76215         Improve the test data (in comments only).
76216
76217 2003-06-02  Karl Berry  <karl@gnu.org>
76218
76219         * config/mkinstalldirs (version): new variable.
76220         (--version): new option.
76221         (usage): improve message.
76222
76223 2003-05-30  Karl Berry  <karl@gnu.org>
76224
76225         * lib/mktime.c: update from libc.
76226
76227 2003-05-30  Bruno Haible  <bruno@clisp.org>
76228
76229         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
76230         * config/config.rpath: Upgrade to gettext-0.12.1.
76231
76232 2003-05-30  Bruno Haible  <bruno@clisp.org>
76233
76234         * m4/gettext.m4: Upgrade to gettext-0.12.1.
76235         * m4/nls.m4: New file, from gettext-0.12.1.
76236         * m4/po.m4: New file, from gettext-0.12.1.
76237         * m4/progtest.m4: Upgrade to gettext-0.12.1.
76238
76239 2003-05-30  Bruno Haible  <bruno@clisp.org>
76240
76241         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
76242         * lib/localcharset.h: Likewise.
76243         * lib/localcharset.c: Likewise.
76244
76245 2003-05-29  Karl Berry  <karl@gnu.org>
76246
76247         * config/config.rpath: update from gettext.
76248
76249 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76250
76251         Assume the headers required for C89 freestanding compilers.
76252         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
76253         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
76254         * m4/human.m4 (gl_HUMAN): Likewise.
76255         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
76256         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
76257         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76258         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
76259         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76260         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
76261
76262 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76263
76264         Assume the headers required for C89 freestanding compilers.
76265         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
76266         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
76267         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
76268         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
76269         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
76270         define, since <limits.h> is guaranteed to do that.
76271         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
76272         * lib/exclude.c: Include <stdbool.h> unconditionally.
76273         * lib/tempname.c: Include <stddef.h> unconditionally.
76274         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
76275         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
76276         <stddef.h> does that.
76277         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
76278         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
76279         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
76280         needed.
76281         * lib/xstrtol.c: Likewise.
76282         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
76283         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
76284
76285         * lib/addext.c (addext): Use assignment rather than cast, to avoid
76286         warnings on some platforms.
76287
76288         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76289         arbitrarily.
76290
76291 2003-05-26  Jim Meyering  <jim@meyering.net>
76292
76293         Merge in a change from coreutils:
76294         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
76295         that is guaranteed to be `no'.  Use `no_such_member' to indicate
76296         that condition, rather than `-1' which is slightly misleading.
76297         Change the name of the cache variable to have the gl_ prefix.
76298         Prompted by a patch from Richard Dawe for DJGPP.
76299
76300 2003-05-24  Karl Berry  <karl@gnu.org>
76301
76302         * config/config.guess: update from prep.
76303
76304 2003-05-22  Karl Berry  <karl@gnu.org>
76305
76306         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
76307
76308 2003-05-20  Karl Berry  <karl@gnu.org>
76309
76310         * config/config.guess: update from prep.
76311
76312 2003-05-18  Karl Berry  <karl@gnu.org>
76313
76314         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
76315         might actually be set by the user.
76316
76317         * config/depcomp, install-sh, mdate-sh: update from automake.
76318
76319 2003-05-17  Bruno Haible  <bruno@clisp.org>
76320
76321         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
76322         invalid expansion for AC_EGREP_CPP.
76323         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
76324         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
76325         Suggested by Akim Demaille <akim@epita.fr> in
76326         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
76327
76328 2003-05-12  Jim Meyering  <jim@meyering.net>
76329
76330         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
76331         the space-padded-by-default conversion specifiers, %e, %k, %l.
76332
76333 2003-05-12  Bruno Haible  <bruno@clisp.org>
76334
76335         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
76336         the string is longer than 4 KB.
76337
76338 2003-05-11  Karl Berry  <karl@gnu.org>
76339
76340         * config/config.{guess,sub}: update from prep.
76341
76342 2003-05-09  Bruno Haible  <bruno@clisp.org>
76343
76344         * modules/error: Add m4/strerror_r.m4 to file list.
76345
76346 2003-05-03  Bruno Haible  <bruno@clisp.org>
76347
76348         Upgrade to Unicode-4.0.
76349         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
76350         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
76351         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
76352         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
76353         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
76354         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
76355         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
76356         Change width of U+E0100..U+E01EF from 1 to 0.
76357
76358 2003-04-25  Jim Meyering  <jim@meyering.net>
76359
76360         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
76361         of type size_t, not int.
76362
76363 2003-04-25  Bruno Haible  <bruno@clisp.org>
76364
76365         * lib/copy-file.c: Include <stddef.h>, for size_t.
76366
76367 2003-04-21  Paul Eggert  <eggert@twinsun.com>
76368
76369         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
76370         code which expansion is under static control.  Patch imported from
76371         Akim Demaille's patch to Bison; see
76372         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
76373
76374 2003-04-14  Bruno Haible  <bruno@clisp.org>
76375
76376         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
76377
76378 2003-04-11  Jim Meyering  <jim@meyering.net>
76379
76380         Merge changes from Coreutils.
76381
76382         2003-03-22  Jim Meyering  <jim@meyering.net>
76383
76384         * lib/strftime.c (widen): Cast alloca return value to proper type.
76385
76386         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
76387
76388         From GNU libc.
76389         * lib/strftime.c (my_strftime): Handle very large width
76390         specifications for numeric values correctly.  Improve checks for
76391         overflow.
76392
76393         2003-01-19  Jim Meyering  <jim@meyering.net>
76394
76395         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
76396         definitions.
76397         (nl_get_alt_digit) [! defined my_strftime]: Define.
76398         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
76399         _nl_get_alt_digit and _nl_get_walt_digit.
76400
76401         * lib/strftime.c (my_strftime): Merge in locale-related changes from
76402         libc. These changes have no effect outside of _LIBC.
76403
76404 2003-04-10  Bruno Haible  <bruno@clisp.org>
76405
76406         * modules/findprog: New file.
76407         * MODULES.html.sh (func_all_modules): Add it.
76408
76409 2003-04-10  Bruno Haible  <bruno@clisp.org>
76410
76411         * m4/findprog.m4: New file.
76412         * m4/eaccess.m4: New file.
76413
76414 2003-04-10  Bruno Haible  <bruno@clisp.org>
76415
76416         * lib/findprog.h: New file, from GNU gettext.
76417         * lib/findprog.c: New file, from GNU gettext.
76418
76419 2003-04-05  Jim Meyering  <jim@meyering.net>
76420
76421         Merge changes from Coreutils.
76422
76423         * lib/exclude.h (PARAMS): Remove definition and uses.
76424         * lib/exclude.c: Remove uses of `PARAMS'.
76425
76426         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
76427         Add test-cases for DOS filenames. Declare program_name.
76428         (main): Set up program_name.  Patch by Rich Dawe.
76429
76430         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
76431         error from mntctl.
76432         Use mntctl's return value to drive the entry-processing loop, since
76433         we can't rely on the value of the vmt_length member in the last
76434         entry.  On some systems doing so could result in exhausting
76435         virtual memory.  Based in part on a patch from Mike Jetzer.
76436
76437 2003-04-04  Bruno Haible  <bruno@clisp.org>
76438
76439         * modules/linebreak: New file.
76440         * MODULES.html.sh (func_all_modules): Add it.
76441
76442 2003-04-04  Bruno Haible  <bruno@clisp.org>
76443
76444         * m4/linebreak.m4: New file.
76445
76446 2003-04-04  Bruno Haible  <bruno@clisp.org>
76447
76448         * lib/linebreak.h: New file, from GNU gettext.
76449         * lib/linebreak.c: New file, from GNU gettext with slight
76450         modifications.
76451         * lib/lbrkprop.h: New file, from GNU gettext.
76452
76453 2003-04-03  Bruno Haible  <bruno@clisp.org>
76454
76455         * modules/utf8-ucs4: New file.
76456         * modules/utf16-ucs4: New file.
76457         * modules/ucs4-utf8: New file.
76458         * modules/ucs4-utf16: New file.
76459         * MODULES.html.sh (func_all_modules): Add them.
76460
76461 2003-04-03  Bruno Haible  <bruno@clisp.org>
76462
76463         * m4/utf-ucs4.m4: New file.
76464         * m4/ucs4-utf.m4: New file.
76465
76466 2003-04-03  Bruno Haible  <bruno@clisp.org>
76467
76468         * lib/utf8-ucs4.h: New file, from GNU gettext.
76469         * lib/utf16-ucs4.h: New file, from GNU gettext.
76470         * lib/ucs4-utf8.h: New file, from GNU gettext.
76471         * lib/ucs4-utf16.h: New file, from GNU gettext.
76472
76473 2003-04-02  Bruno Haible  <bruno@clisp.org>
76474
76475         * modules/binary-io: New file.
76476         * MODULES.html.sh (func_all_modules): Add it.
76477
76478 2003-04-02  Bruno Haible  <bruno@clisp.org>
76479
76480         * lib/binary-io.h: New file, from GNU gettext.
76481
76482 2003-04-01  Bruno Haible  <bruno@clisp.org>
76483
76484         * modules/pathname: New file.
76485         * MODULES.html.sh (func_all_modules): Add it.
76486
76487 2003-04-01  Bruno Haible  <bruno@clisp.org>
76488
76489         * lib/pathname.h: New file, from GNU gettext.
76490         * lib/concatpath.c: New file, from GNU gettext.
76491
76492 2003-03-30  Bruno Haible  <bruno@clisp.org>
76493
76494         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
76495
76496 2003-03-30  Bruno Haible  <bruno@clisp.org>
76497
76498         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
76499         function chown() doesn't exist.
76500
76501 2003-03-28  Bruno Haible  <bruno@clisp.org>
76502
76503         * modules/copy-file: New file.
76504         * MODULES.html.sh (func_all_modules): Add it.
76505
76506 2003-03-28  Bruno Haible  <bruno@clisp.org>
76507
76508         * m4/copy-file.m4: New file.
76509
76510 2003-03-28  Bruno Haible  <bruno@clisp.org>
76511
76512         * lib/copy-file.h: New file, from GNU gettext.
76513         * lib/copy-file.c: New file, from GNU gettext.
76514
76515 2003-03-18  Jim Meyering  <jim@meyering.net>
76516
76517         * lib/quote.c (quote_n): Fix typo in comment.
76518
76519 2003-03-18  Bruno Haible  <bruno@clisp.org>
76520
76521         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
76522         checking.
76523         * m4/onceonly_2_57.m4: Likewise.
76524
76525 2003-03-17  Bruno Haible  <bruno@clisp.org>
76526
76527         * m4/onceonly.m4: Require autoconf 2.54 or newer.
76528         (m4_quote): Remove macro.
76529         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
76530
76531 2003-03-14  Jim Meyering  <jim@meyering.net>
76532
76533         Merge changes from Coreutils.
76534         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
76535         to be const, in order to avoid warnings.
76536         (obstack_room): Likewise.
76537         (obstack_empty_p): Likewise.
76538
76539 2003-03-14  Bruno Haible  <bruno@clisp.org>
76540
76541         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
76542         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
76543
76544 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76545
76546         Merge changes from Bison.
76547         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
76548         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
76549         when compiling Bison 1.875's `bitset bset = obstack_alloc
76550         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
76551         * lib/hash.c: Include <stdbool.h> unconditionally.
76552
76553 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76554
76555         * m4/onceonly.m4 (m4_quote): New macro.
76556         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
76557         Quote AC_FOREACH variable-expansions properly.
76558
76559 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76560
76561         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
76562
76563 2003-03-09  Paul Eggert  <eggert@twinsun.com>
76564
76565         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
76566         Reported by Bruce Becker; see:
76567         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
76568
76569 2003-03-03  Paul Eggert  <eggert@twinsun.com>
76570             Bruno Haible  <bruno@clisp.org>
76571
76572         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
76573         Reported by John Hughes, see
76574         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
76575
76576 2003-02-20  Bruno Haible  <bruno@clisp.org>
76577
76578         * MODULES.html.sh (func_all_modules): Add poll.
76579
76580 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76581
76582         * modules/poll: New file.
76583
76584 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76585
76586         * lib/poll_.h: New file.
76587         * lib/poll.c: New file.
76588
76589 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76590
76591         * m4/poll.m4: New file.
76592
76593 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76594
76595         * modules/mathl: New file.
76596
76597 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76598
76599         * lib/mathl.h: New file.
76600         * lib/acosl.c: New file.
76601         * lib/asinl.c: New file.
76602         * lib/atanl.c: New file.
76603         * lib/ceill.c: New file.
76604         * lib/cosl.c: New file.
76605         * lib/expl.c: New file.
76606         * lib/floorl.c: New file.
76607         * lib/frexpl.c: New file.
76608         * lib/ldexpl.c: New file.
76609         * lib/logl.c: New file.
76610         * lib/sincosl.c: New file.
76611         * lib/sinl.c: New file.
76612         * lib/sqrtl.c: New file.
76613         * lib/tanl.c: New file.
76614         * lib/trigl.c: New file.
76615         * lib/trigl.h: New file.
76616
76617 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76618
76619         * m4/mathl.m4: New file.
76620
76621 2003-02-18  Bruno Haible  <bruno@clisp.org>
76622
76623         * MODULES.html.sh (func_all_modules): Add mathl.
76624
76625 2003-02-17  Bruno Haible  <bruno@clisp.org>
76626
76627         * modules/mkdtemp: New module.
76628         * MODULES.html.sh (func_all_modules): Add it.
76629
76630 2003-02-17  Bruno Haible  <bruno@clisp.org>
76631
76632         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
76633
76634 2003-02-17  Bruno Haible  <bruno@clisp.org>
76635
76636         * lib/mkdtemp.h: New file, from GNU gettext.
76637         * lib/mkdtemp.c: New file, from GNU gettext.
76638
76639 2003-02-02  Jim Meyering  <jim@meyering.net>
76640
76641         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
76642         e.g. glibc-2.2.93.
76643
76644 2003-01-31  Bruno Haible  <bruno@clisp.org>
76645
76646         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
76647         'rpl_rename'.
76648         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
76649         'rpl_strnlen'.
76650         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
76651         'rpl_strtod'.
76652         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
76653         'rpl_utime'.
76654
76655 2003-01-31  Bruno Haible  <bruno@clisp.org>
76656
76657         * lib/rename.c: #undef rename before defining rpl_rename.
76658         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
76659
76660 2003-01-30  Bruno Haible  <bruno@clisp.org>
76661
76662         * modules/vasnprintf, modules/vasprintf: New modules.
76663         * MODULES.html.sh (func_all_modules): Add them.
76664
76665 2003-01-30  Bruno Haible  <bruno@clisp.org>
76666
76667         * m4/signed.m4: New file, from GNU gettext.
76668         * m4/longdouble.m4: New file, from GNU gettext.
76669         * m4/wchar_t.m4: New file, from GNU gettext.
76670         * m4/wint_t.m4: New file, from GNU gettext.
76671         * m4/vasnprintf.m4: New file.
76672         * m4/vasprintf.m4: New file.
76673
76674 2003-01-30  Bruno Haible  <bruno@clisp.org>
76675
76676         * lib/printf-args.h: New file, from GNU gettext.
76677         * lib/printf-args.c: New file, from GNU gettext.
76678         * lib/printf-parse.h: New file, from GNU gettext.
76679         * lib/printf-parse.c: New file, from GNU gettext.
76680         * lib/vasnprintf.h: New file, from GNU gettext.
76681         * lib/vasnprintf.c: New file, from GNU gettext.
76682         * lib/asnprintf.c: New file, from GNU gettext.
76683         * lib/vasprintf.h: New file, from GNU gettext with modifications.
76684         * lib/vasprintf.c: New file, from GNU gettext.
76685         * lib/asprintf.c: New file, from GNU gettext.
76686
76687 2003-01-29  Bruno Haible  <bruno@clisp.org>
76688
76689         * modules/stpncpy: New module.
76690         * MODULES.html.sh (func_all_modules): Add it.
76691
76692 2003-01-29  Bruno Haible  <bruno@clisp.org>
76693
76694         * m4/stpncpy.m4: New file.
76695
76696 2003-01-29  Bruno Haible  <bruno@clisp.org>
76697
76698         * lib/stpncpy.h: New file, from GNU gettext with modifications.
76699         * lib/stpncpy.c: New file, from GNU gettext with modifications.
76700
76701 2003-01-28  Bruno Haible  <bruno@clisp.org>
76702
76703         * modules/c-ctype: New module.
76704         * MODULES.html.sh (func_all_modules): Add it.
76705
76706 2003-01-28  Bruno Haible  <bruno@clisp.org>
76707
76708         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
76709         Paul Eggert.
76710         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
76711         Paul Eggert.
76712
76713 2003-01-27  Bruno Haible  <bruno@clisp.org>
76714
76715         * modules/xsetenv: New module.
76716         * MODULES.html.sh (func_all_modules): Add it.
76717
76718 2003-01-27  Bruno Haible  <bruno@clisp.org>
76719
76720         * lib/xsetenv.h: New file, from GNU gettext.
76721         * lib/xsetenv.c: New file, from GNU gettext.
76722
76723 2003-01-23  Jim Meyering  <jim@meyering.net>
76724
76725         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
76726         from working on systems without dirfd (at least Irix and OSF1/Tru64).
76727
76728 2003-01-23  Bruno Haible  <bruno@clisp.org>
76729
76730         * modules/minmax: New module.
76731         * MODULES.html.sh (func_all_modules): Add it.
76732
76733 2003-01-23  Bruno Haible  <bruno@clisp.org>
76734
76735         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
76736         Eggert.
76737
76738 2003-01-22  Bruno Haible  <bruno@clisp.org>
76739
76740         * modules/exit: New module.
76741         * MODULES.html.sh (func_all_modules): Add it.
76742
76743 2003-01-22  Bruno Haible  <bruno@clisp.org>
76744
76745         * lib/exit.h: New file, from GNU gettext.
76746
76747 2003-01-19  Bruno Haible  <bruno@clisp.org>
76748
76749         * gnulib-tool: Recognize option --extract-maintainer.
76750         (func_get_maintainer): New function.
76751         * modules/*: Add Maintainer entry.
76752
76753 2003-01-16  Jim Meyering  <jim@meyering.net>
76754
76755         * m4/regex.m4: The `regex' struct is both input and output.
76756         Initialize it before each use.  Patch by Tim Waugh.
76757
76758 2003-01-16  Bruno Haible  <bruno@clisp.org>
76759
76760         * MODULES.html.sh: Add a table of contents. Add the module name as
76761         leftmost column. Add hyperlinks.
76762
76763 2003-01-15  Bruno Haible  <bruno@clisp.org>
76764
76765         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
76766
76767 2003-01-15  Bruno Haible  <bruno@clisp.org>
76768
76769         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
76770         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
76771         suffix.
76772
76773 2003-01-15  Bruno Haible  <bruno@clisp.org>
76774
76775         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
76776
76777 2003-01-15  Bruno Haible  <bruno@clisp.org>
76778
76779         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
76780         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
76781
76782 2003-01-14  Jim Meyering  <jim@meyering.net>
76783
76784         * lib/same.c (same_name): Tweak a comment.
76785
76786 2003-01-14  Bruno Haible  <bruno@clisp.org>
76787
76788         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
76789         when a string comparison is sufficient.
76790
76791 2003-01-14  Bruno Haible  <bruno@clisp.org>
76792
76793         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
76794         'unsigned int'.
76795
76796 2003-01-14  Bruno Haible  <bruno@clisp.org>
76797
76798         * lib/hash-pjw.c: Add comment about low quality of this function.
76799
76800 2003-01-13  Bruno Haible  <bruno@clisp.org>
76801
76802         * modules/stpcpy: Distribute lib/stpcpy.h.
76803         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
76804
76805 2003-01-13  Bruno Haible  <bruno@clisp.org>
76806
76807         * modules/*: Add a description.
76808         * modules/strpbrk: Fix Makefile.am snippet.
76809         * modules/strtoimax: Fix dependencies.
76810         * modules/strtoumax: Likewise.
76811
76812 2003-01-13  Bruno Haible  <bruno@clisp.org>
76813
76814         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
76815         * modules/alloca (Makefile.am): All object files depend on alloca.h.
76816         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
76817
76818 2003-01-13  Bruno Haible  <bruno@clisp.org>
76819
76820         * gnulib-tool (func_create_testdir): Store config/* files in the main
76821         directory.
76822         * config.rpath: Move to ...
76823         * config/config.rpath: ... here.
76824         * modules/gettext: Contains config/config.rpath, not config.rpath.
76825         * modules/iconv: Likewise.
76826
76827 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76828
76829         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76830         to avoid collisions with libcurses and libreadline.
76831
76832         * m4/getstr.m4: Remove.
76833         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
76834
76835 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76836
76837         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76838         to avoid collisions with libcurses and libreadline.
76839
76840         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
76841         * lib/getstr.h, getstr.c: Remove.
76842         * lib/getline.c: Include "getline.h", to check interface.
76843         Move body of old getstr.c here: this defines MIN_CHUNK and
76844         declares getdelim2, which is renamed from getstr.
76845         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
76846
76847         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
76848         All uses changed.
76849         * lib/linebuffer.h: Likewise.
76850         (readline): Remove backward-compatibility macro.
76851
76852 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76853
76854         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76855         to avoid collisions with libcurses and libreadline.
76856         * getstr: Remove.
76857         * MODULES.html.sh: Remove getstr.
76858         * modules/getline: Depend on unlocked-io, not getstr.
76859
76860 2003-01-12  Jim Meyering  <jim@meyering.net>
76861
76862         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
76863
76864 2003-01-10  Bruno Haible  <bruno@clisp.org>
76865
76866         * modules/alloca: Change Makefile.am requirements. Simplify Include
76867         requirements. Add lib/alloca_.h to file list.
76868
76869 2003-01-10  Bruno Haible  <bruno@clisp.org>
76870
76871         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
76872
76873 2003-01-10  Bruno Haible  <bruno@clisp.org>
76874
76875         * lib/alloca_.h: New file.
76876         * lib/getdate.y: Unconditionally include alloca.h.
76877         * lib/makepath.c: Likewise.
76878         * lib/setenv.c: Likewise.
76879         * lib/userspec.c: Likewise.
76880
76881 2003-01-09  Karl Berry  <karl@gnu.org>
76882
76883         * MODULES.html.sh: include `dirname $0` in PATH, to find
76884         gnulib-tool.
76885
76886 2003-01-09  Bruno Haible  <bruno@clisp.org>
76887
76888         * modules/stdbool: Change configure.ac, Makefile.am requirements.
76889         Simplify Include requirements. Add lib/stdbool.h.in to file list.
76890
76891 2003-01-09  Bruno Haible  <bruno@clisp.org>
76892
76893         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
76894
76895 2003-01-09  Bruno Haible  <bruno@clisp.org>
76896
76897         * lib/stdbool.h.in: New file.
76898
76899 2003-01-09  Bruno Haible  <bruno@clisp.org>
76900
76901         * gnulib-tool (func_all_modules): Ignore files ending in ~.
76902         * MODULES.html.sh: Likewise.
76903
76904 2003-01-08  Jim Meyering  <jim@meyering.net>
76905
76906         * lib/full-write.c: Undefine and define-away `const' after inclusion
76907         of errno.h, not before.  Suggestion from Bruno Haible.
76908
76909 2003-01-08  Bruno Haible  <bruno@clisp.org>
76910
76911         * modules/full-read: Depend on full-write.
76912
76913 2003-01-08  Bruno Haible  <bruno@clisp.org>
76914
76915         * lib/safe-read.c: Include specification header first, to ensure its
76916         selfcontainedness.
76917         * lib/full-write.c: Likewise.
76918
76919 2003-01-07  Jim Meyering  <jim@meyering.net>
76920
76921         * lib/full-write.c: Rework so that it may serve to define full_read,
76922         too.
76923         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
76924
76925 2003-01-07  Bruno Haible  <bruno@clisp.org>
76926
76927         * lib/strtoimax.c: Include <stdint.h> as an alternative to
76928         <inttypes.h>.
76929         * lib/xstrtol.h: Likewise.
76930         * lib/xstrtoimax.c: Likewise.
76931         * lib/xstrtoumax.c: Likewise.
76932         * lib/human.h: Likewise.
76933
76934         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
76935         on systems that have <inttypes.h> but not <stdint.h>.
76936
76937 2003-01-07  Bruno Haible  <bruno@clisp.org>
76938
76939         * MODULES.html.sh: Add copyright notice.
76940         (missed_files): Omit CVS directory entries.
76941         (func_module): Make it work with sed-3.02.
76942         * MODULES.txt: Remove file.
76943
76944 2003-01-06  Jim Meyering  <jim@meyering.net>
76945
76946         * lib/version-etc.c: Update year in translatable copyright string.
76947
76948 2003-01-03  Karl Berry  <karl@gnu.org>
76949
76950         * config/config.{guess,sub}: update from prep.
76951
76952 2003-01-02  Karl Berry  <karl@gnu.org>
76953
76954         * doc/COPYING.DOC: belatedly updated to 1.2.
76955
76956 2003-01-01  Karl Berry  <karl@gnu.org>
76957
76958         * gnulib-tool (func_verify_module): report module name $module in
76959         error message, not $1.
76960         * gnulib-tool (create-testdir): don't complain if destdir couldn't
76961         be created, only if it doesn't exist.
76962         * gnulib-tool (last_checkin_date): don't expand the $Date here.
76963
76964 2002-12-31  Paul Eggert  <eggert@twinsun.com>
76965
76966         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
76967
76968 2002-12-31  Paul Eggert  <eggert@twinsun.com>
76969
76970         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
76971         memcmp if strcoll doesn't work.
76972
76973 2002-12-31  Bruno Haible  <bruno@clisp.org>
76974
76975         * lib/utime.c (utime_null): No need to call ftruncate if the file was
76976         nonempty.
76977
76978 2002-12-31  Bruno Haible  <bruno@clisp.org>
76979
76980         * lib/memcoll.c (STRCOLL): New macro.
76981         (memcoll): Use it.
76982
76983 2002-12-31  Bruno Haible  <bruno@clisp.org>
76984
76985         * lib/localcharset.h: New file.
76986         * lib/localcharset.c: Include it.
76987         * lib/unicodeio.c: Likewise.
76988
76989 2002-12-31  Bruno Haible  <bruno@clisp.org>
76990
76991         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
76992         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
76993
76994 2002-12-31  Bruno Haible  <bruno@clisp.org>
76995
76996         * lib/getline.h: Include <stddef.h>, for size_t.
76997
76998         * lib/unicodeio.h: Include <stddef.h>, for size_t.
76999         * lib/unicodeio.c: Don't include <stddef.h>.
77000
77001 2002-12-31  Bruno Haible  <bruno@clisp.org>
77002
77003         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
77004         HAVE_TM_ZONE.
77005
77006 2002-12-24  Karl Berry  <karl@gnu.org>
77007
77008         * config/config.guess: update from prep.
77009
77010 2002-12-24  Bruno Haible  <bruno@clisp.org>
77011
77012         General infrasructure.
77013         * m4/README: Rewritten.
77014         * m4/onceonly.m4: New file.
77015         * m4/onceonly_2_57.m4: New file.
77016
77017         Module atexit.
77018         * m4/atexit.m4: New file.
77019
77020         Module strtod.
77021         * m4/strtod.m4: New file.
77022
77023         Module strtol.
77024         * m4/strtol.m4: New file.
77025
77026         Module strtoul.
77027         * m4/strtoul.m4: New file.
77028
77029         Module memchr.
77030         * m4/memchr.m4: New file.
77031
77032         Module memcmp.
77033         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
77034         (jm_FUNC_MEMCMP): Invoke it.
77035
77036         Module memcpy.
77037         * m4/memcpy.m4: New file.
77038
77039         Module memmove.
77040         * m4/memmove.m4: New file.
77041
77042         Module memset.
77043         * m4/memset.m4: New file.
77044
77045         Module strcspn.
77046         * m4/strcspn.m4: New file.
77047
77048         Module strpbrk.
77049         * m4/strpbrk.m4: New file.
77050
77051         Module strstr.
77052         * m4/strstr.m4: New file.
77053
77054         Module strerror.
77055         * m4/strerror.m4: New file.
77056
77057         Module mktime.
77058         * m4/mktime.m4: Renamed from jm-mktime.m4.
77059         (gl_PREREQ_MKTIME): New macro.
77060         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
77061
77062         Module malloc.
77063         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
77064         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
77065         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
77066
77067         Module realloc.
77068         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
77069         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
77070         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
77071
77072         Module strftime.
77073         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
77074         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
77075         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
77076         gl_TM_GMTOFF.
77077         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
77078
77079         Module xalloc.
77080         * m4/xalloc.m4: New file.
77081
77082         Module alloca.
77083         * m4/alloca.m4: New file.
77084
77085         Module putenv.
77086         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
77087         (jm_FUNC_PUTENV): Invoke it.
77088
77089         Module setenv.
77090         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
77091         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
77092         when invoked twice.
77093         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
77094         gt_FUNC_SETENV.
77095
77096         Module memrchr.
77097         * m4/memrchr.m4: New file.
77098
77099         Module stpcpy.
77100         * m4/stpcpy.m4: New file.
77101
77102         Module strcase.
77103         * m4/strcase.m4: New file.
77104
77105         Module strdup.
77106         * m4/strdup.m4: New file.
77107
77108         Module strnlen.
77109         * m4/strnlen.m4: New file.
77110
77111         Module strndup.
77112         * m4/strndup.m4: New file.
77113
77114         Module xstrtod.
77115         * m4/xstrtod.m4: New file.
77116
77117         Module xstrtol.
77118         * m4/xstrtol.m4: New file.
77119
77120         Module getdate.
77121         * m4/getdate.m4: New file.
77122
77123         Module unlocked-io.
77124         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
77125         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
77126         * m4/jm-glibc-io.m4n: Remove file.
77127
77128         Module long-options.
77129         * m4/long-options.m4: New file.
77130
77131         Module md5.
77132         * m4/md5.m4: New file.
77133
77134         Module sha.
77135         * m4/sha.m4: New file.
77136
77137         Module getstr.
77138         * m4/getstr.m4: New file.
77139
77140         Module getline.
77141         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
77142         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
77143         <sys/types.h>, for size_t. Use the function name gnu_getline, not
77144         simply getline. Infoke gl_PREREQ_GETLINE.
77145
77146         Module obstack.
77147         * m4/obstack.m4: New file.
77148
77149         Module hash.
77150         * m4/hash.m4: New file.
77151
77152         Module readtokens.
77153         * m4/readtokens.m4: New file.
77154
77155         Module strverscmp.
77156         * m4/strverscmp.m4: New file.
77157
77158         Module stdbool.
77159         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
77160         OSF/1.
77161
77162         Module strtoll.
77163         * m4/strtoll.m4: New file.
77164
77165         Module strtoull.
77166         * m4/strtoull.m4: New file.
77167
77168         Module strtoimax.
77169         * m4/strtoimax.m4: New file.
77170
77171         Module strtoumax.
77172         * m4/strtoumax.m4: New file.
77173
77174         Module xstrtoimax.
77175         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
77176         jm_AC_PREREQ_XSTRTOIMAX.
77177         Moved the strtol prerequisites to strtol.m4.
77178         Moved the strtoll prerequisites to strtoll.m4.
77179         Moved the strtoimax prerequisites to strtoimax.m4.
77180
77181         Module xstrtoumax.
77182         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
77183         jm_AC_PREREQ_XSTRTOUMAX.
77184         Moved the strtoul prerequisites to strtoul.m4.
77185         Moved the strtoull prerequisites to strtoull.m4.
77186         Moved the strtoumax prerequisites to strtoumax.m4.
77187
77188         Module chown.
77189         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
77190         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
77191
77192         Module dup2.
77193         * m4/dup2.m4: New file.
77194
77195         Module ftruncate.
77196         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
77197         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
77198
77199         Module getgroups.
77200         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
77201         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
77202
77203         Module gettimeofday.
77204         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
77205         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
77206         gl_PREREQ_GETTIMEOFDAY.
77207
77208         Module mkdir.
77209         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
77210         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
77211
77212         Module mkstemp.
77213         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
77214         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
77215         jm_AC_TYPE_UINTMAX_T.
77216         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
77217
77218         Module stat.
77219         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
77220         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
77221
77222         Module lstat.
77223         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
77224         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
77225
77226         Module timespec.
77227         * m4/timespec.m4 (gl_TIMESPEC): New macro.
77228         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
77229         * m4/st_mtim.m4: Indentation.
77230
77231         Module nanosleep.
77232         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
77233         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
77234         gl_PREREQ_NANOSLEEP.
77235
77236         Module regex.
77237         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
77238         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
77239         (gl_REGEX): New macro.
77240
77241         Module rename.
77242         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
77243         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
77244
77245         Module rmdir.
77246         * m4/rmdir.m4: New file.
77247
77248         Module utime.
77249         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
77250         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
77251         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
77252
77253         Module dirname.
77254         * m4/dirname.m4: New file.
77255
77256         Module getopt.
77257         * m4/getopt.m4: New file.
77258
77259         Module unistd-safer.
77260         * m4/unistd-safer.m4: New file.
77261
77262         Module fnmatch.
77263         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
77264         declaration.
77265         (gl_PREREQ_FNMATCH_EXTRA): New macro.
77266         (gl_FUNC_FNMATCH_POSIX): New macro.
77267         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
77268         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
77269         simply fnmatch.
77270
77271         Module exclude.
77272         * m4/exclude.m4: New file.
77273
77274         Module human.
77275         * m4/human.m4: New file.
77276
77277         Module acl.
77278         * m4/acl.m4: Nop.
77279
77280         Module backupfile.
77281         * m4/backupfile.m4: New file.
77282         * m4/d-ino.m4: Indentation.
77283
77284         Module fsusage.
77285         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
77286         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
77287         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
77288
77289         Module dirfd.
77290         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
77291         requirements.
77292
77293         Module euidaccess.
77294         * m4/euidaccess.m4: New file.
77295
77296         Module file-type.
77297         * m4/file-type.m4: New file.
77298
77299         Module fileblocks.
77300         * m4/fileblocks.m4: New file.
77301
77302         Module filemode.
77303         * m4/filemode.m4: New file.
77304
77305         Module isdir.
77306         * m4/isdir.m4: New file.
77307
77308         Module lchown.
77309         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
77310         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
77311
77312         Module makepath.
77313         * m4/makepath.m4: New file.
77314
77315         Module modechange.
77316         * m4/modechange.m4: New file.
77317
77318         Module mountlist.
77319         * m4/mountlist.m4: New file.
77320         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
77321         Indentation.
77322
77323         Module path-concat.
77324         * m4/path-concat.m4: New file.
77325
77326         Module pathmax.
77327         * m4/pathmax.m4: New file.
77328
77329         Module same.
77330         * m4/same.m4: New file.
77331
77332         Module save-cwd.
77333         * m4/save-cwd.m4: New file.
77334
77335         Module savedir.
77336         * m4/savedir.m4: New file.
77337
77338         Module xgetcwd.
77339         * m4/xgetcwd.m4: New file.
77340         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
77341
77342         Module xreadlink.
77343         * m4/xreadlink.m4: New file.
77344
77345         Module safe-read.
77346         * m4/safe-read.m4: New file.
77347
77348         Module safe-write.
77349         * m4/safe-write.m4: New file.
77350
77351         Module closeout.
77352         * m4/closeout.m4: New file.
77353
77354         Module stdio-safer.
77355         * m4/stdio-safer.m4: New file.
77356
77357         Module getpass.
77358         * m4/getpass.m4: New file.
77359
77360         Module getugroups.
77361         * m4/getugroups.m4: New file.
77362
77363         Module group-member.
77364         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
77365         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
77366
77367         Module idcache.
77368         * m4/idcache.m4: New file.
77369
77370         Module userspec.
77371         * m4/userspec.m4: New file.
77372
77373         Module gettime.
77374         * m4/clock_time.m4: New file.
77375         * m4/gettime.m4: New file.
77376
77377         Module settime.
77378         * m4/settime.m4: New file.
77379
77380         Module posixtm.
77381         * m4/posixtm.m4: New file.
77382
77383         Module gethostname.
77384         * m4/gethostname.m4: New file.
77385
77386         Module canon-host.
77387         * m4/canon-host.m4: New file.
77388
77389         Module gettext.
77390         * m4/codeset.m4: New file, from gettext-0.11.5.
77391         * m4/gettext.m4: New file, from gettext-0.11.5.
77392         * m4/glibc21.m4: New file, from gettext-0.11.5.
77393         * m4/iconv.m4: New file, from gettext-0.11.5.
77394         * m4/intdiv0.m4: New file, from gettext-0.11.5.
77395         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
77396         * m4/inttypes.m4: New file, from gettext-0.11.5.
77397         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
77398         * m4/isc-posix.m4: New file, from gettext-0.11.5.
77399         * m4/lcmessage.m4: New file, from gettext-0.11.5.
77400         * m4/lib-ld.m4: New file, from gettext-0.11.5.
77401         * m4/lib-link.m4: New file, from gettext-0.11.5.
77402         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
77403         * m4/progtest.m4: New file, from gettext-0.11.5.
77404         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
77405         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
77406         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
77407
77408         Module localcharset.
77409         * m4/localcharset.m4: New file.
77410
77411         Module hard-locale.
77412         * m4/hard-locale.m4: New file.
77413
77414         Module mbswidth.
77415         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
77416         onceonly macros.
77417         * m4/mbrtowc.m4: Add comment.
77418
77419         Module memcasecmp.
77420         * m4/memcasecmp.m4: New file.
77421
77422         Module memcoll.
77423         * m4/memcoll.m4: New file.
77424
77425         Module unicodeio.
77426         * m4/unicodeio.m4: New file.
77427
77428         Module rpmatch.
77429         * m4/rpmatch.m4: New file.
77430
77431         Module yesno.
77432         * m4/yesno.m4: New file.
77433
77434         Module exitfail.
77435         * m4/exitfail.m4: New file.
77436
77437         Module c-stack.
77438         * m4/c-stack.m4 (gl_C_STACK): New macro.
77439         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
77440
77441         Module error.
77442         * m4/error.m4 (gl_ERROR): New macro.
77443         (jm_PREREQ_ERROR): Use onceonly macros.
77444
77445         Module fatal.
77446         * m4/fatal.m4: New file.
77447
77448         Module getloadavg.
77449         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
77450         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
77451
77452         Module getpagesize.
77453         * m4/getpagesize.m4: New file.
77454
77455         Module getusershell.
77456         * m4/getusershell.m4: New file.
77457
77458         Module physmem.
77459         * m4/physmem.m4: New file.
77460
77461         Module posixver.
77462         * m4/posixver.m4: New file.
77463
77464         Module quotearg.
77465         * m4/quotearg.m4: New file.
77466
77467         Module quote.
77468         * m4/quote.m4: New file.
77469
77470         Module readutmp.
77471         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
77472
77473         Module sig2str.
77474         * m4/sig2str.m4: New file.
77475
77476         Other.
77477         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
77478         ulonglong.m4.
77479         * m4/intmax_t.m4: New file.
77480         * m4/d-type.m4: Indentation.
77481         * m4/jm-macros.m4: Update.
77482         * m4/prereq.m4 (jm_PREREQ): Update.
77483         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
77484         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
77485         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
77486         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
77487         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
77488         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
77489         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
77490         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
77491         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
77492         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
77493         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
77494         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
77495         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
77496         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
77497         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
77498         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
77499         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
77500         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
77501         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
77502
77503 2002-12-24  Bruno Haible  <bruno@clisp.org>
77504
77505         * MODULES.txt: Update according to m4/ changes.
77506
77507         Module gettext.
77508         * config.rpath: New file, from gettext-0.11.5.
77509
77510         * modules/*: New module descriptions.
77511         * gnulib-tool: New file.
77512         * MODULES.html.sh: New file.
77513
77514 2002-12-21  Karl Berry  <karl@gnu.org>
77515
77516         * doc/fdl.texi: update to version 1.2.
77517
77518 2002-12-19  Karl Berry  <karl@gnu.org>
77519
77520         * config/config.guess: update from prep.
77521
77522 2002-12-18  Bruno Haible  <bruno@clisp.org>
77523
77524         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
77525         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
77526
77527 2002-12-17  Bruno Haible  <bruno@clisp.org>
77528
77529         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
77530         stdlib.h, string.h.
77531
77532 2002-12-17  Bruno Haible  <bruno@clisp.org>
77533
77534         * lib/canon-host.c (strdup): Remove unused declaration.
77535
77536         * lib/fsusage.c: Include full_read.h.
77537         (get_fs_usage): Use full_read instead of safe_read.
77538
77539         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
77540
77541 2002-12-12  Karl Berry  <karl@gnu.org>
77542
77543         * config/config.guess: update from prep.
77544
77545 2002-12-11  Bruno Haible  <bruno@clisp.org>
77546
77547         * m4/setenv.m4: New file, from gettext-0.11.5.
77548
77549 2002-12-11  Bruno Haible  <bruno@clisp.org>
77550
77551         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
77552         not unsetenv().
77553         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
77554         modifications:
77555
77556         2002-12-11  Bruno Haible  <bruno@clisp.org>
77557
77558                 * setenv.c (alloca): Fall back to malloc.
77559                 (freea): New macro.
77560                 (setenv): Use freea() to free memory allocated with alloca().
77561
77562         2002-11-13  Bruno Haible  <bruno@clisp.org>
77563
77564                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
77565                 function declarations.
77566                 * unsetenv.c (unsetenv): Likewise.
77567
77568         2002-03-04  Bruno Haible  <bruno@clisp.org>
77569
77570                 Portability to AIX 4.3.3.
77571                 * unsetenv.c: New file, extracted from setenv.c.
77572                 * setenv.c: Move the unsetenv() function to unsetenv.c.
77573
77574         2001-12-20  Bruno Haible  <bruno@clisp.org>
77575
77576                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
77577                 use malloc instead. For SunOS 4.
77578
77579         2001-12-11  Bruno Haible  <bruno@clisp.org>
77580
77581                 * setenv.c: Declare alloca.
77582                 (compar_fn_t): New typedef.
77583                 (KNOWN_VALUE, STORE_VALUE): Use it.
77584
77585         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
77586         setenv.h.
77587
77588 2002-12-10  Paul Eggert  <eggert@twinsun.com>
77589
77590         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
77591         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
77592         Choose values that are less likely to collide with system fnmatch
77593         options.
77594         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
77595         defined (e.g., a pure POSIX system).
77596         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
77597         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
77598
77599 2002-12-06  Paul Eggert  <eggert@twinsun.com>
77600
77601         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
77602         a pain in practice to deal with generated m4 files.  This change
77603         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
77604
77605         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
77606         and jm-glibc-io.m4, as they are no longer a special case.
77607         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
77608         kludge and the auto-generation stuff.  Check only whether the
77609         functions are declared, not whether they exist, since older hosts
77610         that don't declare the functions can't use the optimization anyway.
77611
77612 2002-12-06  Jim Meyering  <jim@meyering.net>
77613
77614         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
77615
77616         Merge in changes from libc's misc/error.c, in preparation
77617         for the merge of gnulib's changes back into libc.
77618
77619         * lib/error.c (_): Define only if not already defined.
77620         Move definition to follow all #include directives.
77621         Include unlocked-io.h only if !_LIBC.
77622         [_LIBC]: Include <libio/libioP.h>.
77623         [USE_IN_LIBIO]: Include <libio/iolibio.h>
77624         (fflush): Tweak definition to use INTUSE.
77625         (putc): Define.
77626
77627 2002-12-05  Paul Eggert  <eggert@twinsun.com>
77628
77629         * lib/alloca.c [defined emacs]: Include "lisp.h".
77630         (xalloc_die) [defined emacs]: New macro.
77631         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
77632         [! defined emacs]: Include <xalloc.h>.
77633         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
77634         (pointer): Typedef to POINTER_TYPE *.
77635         (malloc): Remove decl; we now always use xmalloc.
77636         (alloca): Use old-style definition, since Emacs needs this.
77637         Check for arithmetic overflow when computing combined size.
77638
77639 2002-12-04  Paul Eggert  <eggert@twinsun.com>
77640
77641         Do not generate unlocked-io.h automatically, since it's easier to
77642         maintain it by hand.
77643
77644         * lib/unlocked-io.h: New file, from GNU diffutils,
77645         but with proper copyright notice and attribution.
77646         * lib/gen-uio: Remove.
77647         * lib/Makefile.am: Add copyright notice.
77648         (libfetish_a_SOURCES): Add unlocked-io.h.
77649         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
77650         (DISTCLEANFILES, io_functions): Remove macros.
77651         (EXTRA_DIST): Remove gen_uio.
77652         (unlocked-io.h): Remove rule.
77653
77654 2002-12-04  Jim Meyering  <jim@meyering.net>
77655
77656         Reflect the fact that stat.c and lstat.c are no longer generated.
77657         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
77658         (DISTCLEANFILES): Likewise.
77659         (EXTRA_DIST): Likewise.
77660         (all_local): Don't depend on stat.c or lstat.c.
77661         (stat.c, lstat.c): Remove rules.
77662         (EXTRA_DIST): Remove xstat.in.
77663
77664         * lib/xstat.in: Remove file.  Contents moved into stat.c.
77665         * lib/stat.c: New file.  Contents mostly from xstat.in.
77666         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
77667         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
77668
77669         * lib/safe-read.c: Rework so that it may serve to define safe_write,
77670         too.
77671         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
77672
77673 2002-12-03  Jim Meyering  <jim@meyering.net>
77674
77675         * lib/safe-read.c, safe-write.c: Change variable names and comments,
77676         but not semantics, to minimize the differences between these two files.
77677         (safe_read): Change comment to mention SAFE_READ_ERROR.
77678
77679         * lib/safe-read.c (IS_EINTR): Define.
77680         (safe_read): Use IS_EINTR in place of in-function cpp directives.
77681
77682 2002-12-02  Jim Meyering  <jim@meyering.net>
77683
77684         * lib/safe-read.c (EINTR): Define.
77685         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
77686         (INT_MAX): Provide fallback.
77687         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
77688
77689         * lib/safe-read.h (SAFE_READ_ERROR): Define.
77690
77691 2002-12-02  Bruno Haible  <bruno@clisp.org>
77692
77693         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
77694         Define, taken from safe-read.c.
77695         (INT_MAX): Provide fallback.
77696         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
77697         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
77698
77699         * lib/safe-read.c (EINTR): Remove definition.
77700         (safe_read): Don't use EINTR if it is absent.
77701
77702 2002-12-01  Jim Meyering  <jim@meyering.net>
77703
77704         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
77705         zero.
77706         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
77707
77708 2002-11-27  Paul Eggert  <eggert@twinsun.com>
77709
77710         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
77711         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
77712         with `if (! (value < limit)) abort ();', for readability.
77713
77714 2002-11-26  Karl Berry  <karl@gnu.org>
77715
77716         * lib/strdup.c: copy from libc again, with jim's ok.
77717         * lib/.cppi-disable: re-add strdup.c
77718
77719 2002-11-25  Karl Berry  <karl@gnu.org>
77720
77721         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
77722         instead of "strtol.c".
77723
77724 2002-11-25  Karl Berry  <karl@gnu.org>
77725
77726         * config/install-sh: update from automake for variable quoting, $0 in
77727         error msgs, etc.
77728
77729         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
77730         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
77731         entry.
77732
77733 2002-11-25  Jim Meyering  <jim@meyering.net>
77734
77735         * lib/mktime.c: Sync from libc, now that it has the latest fix.
77736
77737 2002-11-24  Karl Berry  <karl@gnu.org>
77738
77739         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
77740         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
77741
77742 2002-11-24  Jim Meyering  <jim@meyering.net>
77743
77744         Update from coreutils:
77745
77746         * lib/mktime.c: Merge in changes from libc.
77747
77748         Avoid a link-time failure on some Linux systems.
77749         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
77750         (otherwise).
77751         (__mon_yday): Declare with the STATIC attribute.
77752         (__mktime_internal): Likewise.
77753         Based on a report from Greg Schafer.
77754
77755 2002-11-23  Jim Meyering  <jim@meyering.net>
77756
77757         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
77758         Use `unsigned', not `int', as type of index.
77759
77760         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
77761
77762         * lib/fsusage.c: Remove unneeded parentheses around operands of
77763         `defined'.
77764
77765 2002-11-22  Paul Eggert  <eggert@twinsun.com>
77766
77767         * lib/quotearg.h: Allow multiple inclusion by surrounding with
77768         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
77769         so that we can be included first.
77770         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
77771         * lib/quotearg.c: Include quotearg.h immediately after config.h.
77772         No need to include stddef.h or sys/types.h any more.
77773         Surround local include files with "", not "<>".
77774         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
77775         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
77776         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
77777         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
77778         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
77779         (ISPRINT): Remove; no longer needed now that we assume C89.
77780
77781         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
77782         Preserve errno.
77783
77784         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
77785         quotearg_char): Use SIZE_MAX rather than
77786         (size_t) -1 when we are talking about "infinity".
77787
77788         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
77789
77790 2002-11-22  Paul Eggert  <eggert@twinsun.com>
77791
77792         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
77793         hint that one should use `if (! x) abort ();' rather than `assert
77794         (x);', and anyway it's one less thing to worry about configuring.
77795         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
77796         hash_rehash, hash_insert): Use abort rather than assert.
77797
77798 2002-11-22  Bruno Haible  <bruno@clisp.org>
77799
77800         * lib/safe-read.h: Assume C89. Add comments.
77801         (safe_read): Change return type to size_t.
77802         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
77803         byte counts > SSIZE_MAX correctly.
77804         * lib/safe-write.h: New file.
77805         * lib/safe-write.c: New file.
77806         * lib/full-read.h: New file.
77807         * lib/full-read.c: New file.
77808         * lib/full-write.h: Assume C89. Add comments.
77809         * lib/full-write.c: Include safe-write.h.
77810         (full_write): Rewritten to use safe_write.
77811         Suggested by Jim Meyering and Paul Eggert.
77812
77813 2002-11-21  Jim Meyering  <jim@meyering.net>
77814
77815         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
77816
77817         Merge in changes from the coreutils.
77818
77819         2002-09-25  Paul Eggert  <eggert@twinsun.com>
77820         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
77821         <stdint.h>.
77822         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
77823         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
77824         int.  Work more efficiently if X is the same width as uintmax_t.
77825         Do not compare X to -1, to avoid bogus compiler warning.
77826         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
77827         Don't assume that f_frsize and f_bsize are the same type.
77828
77829         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
77830         warning on FreeBSD.
77831
77832         * lib/makepath.c (make_path): Restore umask *before* creating the final
77833         component.
77834         (make_path): Minor reformatting.
77835
77836         * lib/xmalloc.c: Adjust to work with new autoconf macros,
77837         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
77838         HAVE_MALLOC/HAVE_REALLOC.
77839
77840         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
77841         dummy ones.  At least on GNU/Linux systems, `auto' means something
77842         else.
77843         From Michael Stone.
77844
77845 2002-11-21  Bruno Haible  <bruno@clisp.org>
77846
77847         Remove case insensitive option matching.
77848         * lib/argmatch.h (argcasematch): Remove declaration.
77849         (ARGCASEMATCH): Remove macro.
77850         (__xargmatch_internal): Remove case_sensitive argument.
77851         (XARGMATCH): Update.
77852         (XARGCASEMATCH): Remove macro.
77853         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
77854         case_sensitive argument.
77855         (argcasematch): Remove function.
77856         (__xargmatch_internal): Remove case_sensitive argument.
77857         (main): Use XARGMATCH instead of XARGCASEMATCH.
77858
77859         * lib/xmalloc.c: Change compile-time error message. Add comment about
77860         required autoconf version.
77861
77862 2002-11-20  Paul Eggert  <eggert@twinsun.com>
77863
77864         Merge argmatch cleanups from Bison.  Assume C89.
77865
77866         * lib/argmatch.c: Include config.h here, not in argmatch.h.
77867         Include stdlib.h, for EXIT_FAILURE.
77868         Always include <string.h>, since we assume C89.
77869         (EXIT_FAILURE): Remove pre-C89 bug workaround.
77870         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
77871         Include <stddef.h> instead, since it's all we need for size_t.
77872         (PARAMS): Remove.  All uses removed.
77873         (ARRAY_CARDINALITY): Do not bother to #undef.
77874         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
77875         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
77876         Remove unnecessary parentheses.
77877         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
77878         Insert necessary parentheses.
77879         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
77880         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
77881
77882 2002-11-19  Bruno Haible  <bruno@clisp.org>
77883
77884         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
77885         * lib/mbswidth.h: Include <stddef.h>, for size_t.
77886
77887         * lib/mbswidth.h (PARAMS): Remove macro.
77888         (mbswidth, mbsnwidth): Use ANSI C function declarations.
77889         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
77890
77891         * lib/gcd.h (PARAMS): Remove macro.
77892         (gcd): Use ANSI C function declarations.
77893         * lib/gcd.c (gcd): Likewise.
77894
77895 2002-11-15  Bruno Haible  <bruno@clisp.org>
77896
77897         * lib/strcspn.c: Include <stddef.h>.
77898         (strcspn): Use ANSI C function declaration. Change return type to
77899         size_t. Use NULL.
77900         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
77901         (strpbrk): Use NULL.
77902         * lib/strpbrk.h (PARAMS): Remove macro.
77903         (strpbrk): Use ANSI C function declaration.
77904         * lib/strstr.c: Don't include <sys/types.h>.
77905         * lib/strstr.h (PARAMS): Remove macro.
77906         (strstr): Use ANSI C function declarations.
77907
77908 2002-11-14  Karl Berry  <karl@gnu.org>
77909
77910         * config/mkinstalldirs: `do' on separate line, instead of
77911         `for var; do'.
77912
77913 2002-11-06  Bruno Haible  <bruno@clisp.org>
77914
77915         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
77916         * lib/gcd.c (gcd): Likewise.
77917
77918 2002-11-05  Bruno Haible  <bruno@clisp.org>
77919
77920         * lib/gcd.h: New file, from gettext-0.11.5.
77921         * lib/gcd.c: New file, from gettext-0.11.5.
77922
77923 2002-11-05  Bruno Haible  <bruno@clisp.org>
77924
77925         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77926         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77927         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77928         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77929
77930         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
77931         <libintl.h>.
77932         * lib/makepath.c: Include gettext.h instead of <locale.h> and
77933         <libintl.h>.
77934
77935         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
77936         * lib/human.c: Include gettext.h instead of <libintl.h>.
77937         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
77938         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
77939         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
77940         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
77941         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
77942         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
77943         (textdomain): Remove definition.
77944         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
77945
77946         * lib/long-options.c: Remove include of <libintl.h> and definition of
77947         _.
77948         * lib/same.c: Remove include of <libintl.h> and definition of _.
77949
77950 2002-11-04  Owen Taylor  <otaylor@redhat.com>
77951
77952         * lib/config.charset: A few additions for Solaris.
77953
77954 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
77955
77956         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
77957         * lib/localcharset.c (locale_charset): Declare as extern "C".
77958
77959 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
77960
77961         * lib/config.charset: msdos in uk_UA uses CP1125.
77962
77963 2002-11-04  Bruno Haible  <bruno@clisp.org>
77964
77965         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
77966         * lib/strcase.h: New file, from GNU gettext-0.11.5.
77967         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
77968         * lib/strstr.h: New file, from GNU gettext-0.11.5.
77969         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
77970
77971 2002-11-04  Bruno Haible  <bruno@clisp.org>
77972
77973         * lib/localcharset.c (locale_charset): Don't return an empty string.
77974
77975 2002-11-04  Bruno Haible  <bruno@clisp.org>
77976
77977         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
77978         aliases.
77979
77980 2002-11-04  Bruno Haible  <bruno@clisp.org>
77981
77982         * lib/config.charset: Update for newest glibc. Add canonical names
77983         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
77984
77985 2002-11-04  Bruno Haible  <bruno@clisp.org>
77986
77987         * lib/config.charset: Add support for NetBSD.
77988
77989 2002-11-04  Bruno Haible  <bruno@clisp.org>
77990
77991         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
77992
77993 2002-11-01  Bruno Haible  <bruno@clisp.org>
77994
77995         * configure.in: Add AC_CONFIG_AUX_DIR call.
77996         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
77997         test/Makefile.
77998         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
77999
78000 2002-09-28  Karl Berry  <karl@gnu.org>
78001
78002         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
78003         installed automake until the next release, since changes have been
78004         made.
78005
78006 2002-09-25  Karl Berry  <karl@gnu.org>
78007
78008         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
78009         * lib/getopt*: copy from libc/posix.
78010         * lib/gettext.h: copy from gettext.
78011         * lib/.cppi-disable: add strdup.c, gettext.h.
78012
78013 2002-09-25  Karl Berry  <karl@gnu.org>
78014
78015         * config/srclist.txt: enable gettext.h check.
78016         * config/config.{guess,sub}: update from prep.
78017         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
78018                 from automake 1.6.3.
78019         See srclist*.
78020
78021 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
78022
78023         * regex.c (PATFETCH): Remove the translating fetch.
78024         (PATFETCH_RAW): Rename to PATFETCH.
78025         (set_image_of_range): New fun.
78026         (SET_RANGE_TABLE_WORK_AREA): Use it.
78027         (regex_compile): Don't translate the pattern chars so eagerly.
78028         Only do it when inserting an `exactn' bytecode or when handling
78029         a char-range.
78030         (mutually_exclusive_p): Avoid empty statement.
78031
78032 2002-07-06  Jim Meyering  <meyering@lucent.com>
78033
78034         * m4/README: Don't mention Makefile.am.in.
78035         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
78036
78037 2002-07-01  Jim Meyering  <meyering@lucent.com>
78038
78039         * lib/c-stack.c: Include sys/time.h.
78040         From Volker Borchert.
78041
78042 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78043
78044         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
78045
78046 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78047
78048         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
78049         New macro.  Use it uniformly instead of
78050         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
78051         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
78052         reported by Vin Shelton.
78053
78054 2002-06-22  Paul Eggert  <eggert@twinsun.com>
78055
78056         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
78057         Do not assume SA_SIGINFO behavior.
78058         Bug reported by Jim Meyering on NetBSD 1.5.2.
78059
78060 2002-06-22  Jim Meyering  <meyering@lucent.com>
78061
78062         * m4/c-stack.m4: New file, from diffutils-2.8.2.
78063         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
78064
78065         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
78066         now that configure.ac uses AC_GNU_SOURCE.
78067         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
78068         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
78069
78070         Update to latest tools.  Suggestions from Paul Eggert.
78071         * m4/stdbool.m4: New file, from diffutils-2.8.2.
78072         * m4/gnu-source.m4: Update from diffutils-2.8.2.
78073         * m4/fnmatch.m4: Likewise.
78074         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
78075         to AC_HEADER_STDBOOL
78076
78077 2002-06-22  Jim Meyering  <meyering@lucent.com>
78078
78079         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
78080         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
78081
78082 2002-06-22  Jim Meyering  <meyering@lucent.com>
78083
78084         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
78085
78086         * lib/exitfail.c, exitfail.h: Likewise.
78087         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
78088
78089         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
78090         of fnmatch.h.
78091         (EXTRA_DIST): Add fnmatch_loop.c.
78092         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
78093
78094         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
78095         * lib/fnmatch.c: Update from diffutils-2.8.2.
78096         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
78097         * lib/fnmatch.h: Remove file.
78098
78099 2002-06-21  Jim Meyering  <meyering@lucent.com>
78100
78101         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
78102         * m4/mbrtowc.m4: Likewise.
78103
78104         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
78105         * m4/mbswidth.m4: Reflect name change:
78106         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
78107         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78108
78109         * m4/lib-link.m4: Update from gettext-0.11.2.
78110         * m4/gettext.m4: Likewise.
78111
78112         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
78113         From Alfred M. Szmidt.
78114
78115 2002-06-18  Paul Eggert  <eggert@twinsun.com>
78116
78117         * lib/file-type.h: Report an error if neither S_ISREG nor
78118         S_IFREG is defined, instead of using a test specific to glibc
78119         2.2.  This should be safe, since POSIX requires S_ISREG and
78120         Unix Version 7 had S_IFREG.  We don't need to check for
78121         <sys/types.h> since we don't use any symbols that it defines.
78122
78123 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
78124
78125         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
78126         $@-t, so that each temporary file name is unique and valid in the first
78127         8 characters, for operation under DOS.
78128
78129 2002-06-15  Paul Eggert  <eggert@twinsun.com>
78130
78131         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
78132
78133 2002-06-15  Jim Meyering  <meyering@lucent.com>
78134
78135         Work even with DJGPP 2.03, which lacks support for symlinks.
78136         From Richard Dawe.
78137         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
78138         is defined.
78139         * lib/lchown.c (S_ISLNK): Likewise.
78140
78141 2002-06-15  Jim Meyering  <meyering@lucent.com>
78142
78143         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
78144         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
78145         have been included before this file.
78146
78147 2002-06-14  Jim Meyering  <meyering@lucent.com>
78148
78149         * lib/file-type.h: Use the version from diffutils-2.8.2.
78150         * lib/file-type.c: Likewise.
78151
78152 2002-06-07  Jim Meyering  <meyering@lucent.com>
78153
78154         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
78155         They're needed at least for NetBSD 1.5.2.
78156         ($statxfs_includes): Include those same headers.
78157         ($statxfs_includes): Include sys/vfs.h if available.
78158         ($statxfs_includes): Likewise for sys/statvfs.h.
78159         Check for the following members in both structs statfs and statvfs:
78160         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
78161
78162 2002-06-01  Jim Meyering  <meyering@lucent.com>
78163
78164         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
78165         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
78166
78167 2002-05-28  Jim Meyering  <meyering@lucent.com>
78168
78169         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
78170         Reported by Volker Borchert.
78171
78172 2002-05-27  Jim Meyering  <meyering@lucent.com>
78173
78174         Fix a problem seen only on nonconforming systems whereby ls.c's
78175         use of localtime, and then of gettimeofday would cause trouble:
78176         the localtime call used to initialize rpl_gettimeofday's save
78177         mechanism would clobber ls's current local time information so
78178         that in any long listing the first file would always be listed
78179         with date 1970-01-01.  Analysis by Volker Borchert.
78180
78181         * lib/gettimeofday.c (localtime): Undefine.
78182         (rpl_localtime): New function.
78183
78184 2002-05-27  Jim Meyering  <meyering@lucent.com>
78185
78186         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
78187         localtime.
78188
78189         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
78190         use the replacement function; it wouldn't resolve at link time.
78191         Reported by Volker Borchert.
78192
78193 2002-05-22  Jim Meyering  <meyering@lucent.com>
78194
78195         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
78196         file-type.h.
78197         * lib/file-type.h: New file.
78198         * lib/file-type.c (file_type): New file/function.  Extracted from
78199         diffutils.
78200
78201 2002-04-30  Jim Meyering  <meyering@lucent.com>
78202
78203         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
78204
78205 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78206
78207         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
78208
78209 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78210
78211         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
78212         Do not check for alloca.h (no longer used) or stdbool.h (was never
78213         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
78214
78215 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78216
78217         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
78218
78219 2002-04-29  Jim Meyering  <meyering@lucent.com>
78220
78221         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
78222         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
78223         Use AC_FUNC_STRNLEN here instead.
78224
78225         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
78226         With autoconf-2.53a, it's part of AC_PROG_CC.
78227
78228 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78229
78230         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
78231         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
78232
78233 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78234
78235         * lib/sig2str.h, lib/sig2str.c: New files.
78236         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
78237
78238 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78239
78240         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
78241         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
78242         of 127, since 64 is the largest conceivable number for ancient
78243         nonstandard hosts.
78244         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
78245
78246 2002-04-28  Jim Meyering  <meyering@lucent.com>
78247
78248         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
78249
78250 2002-04-24  Jim Meyering  <meyering@lucent.com>
78251
78252         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
78253         (jm_PREREQ): Use it.
78254
78255         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
78256         mach/mach.h fcntl.h.
78257         Check for this function: setlocale.
78258
78259 2002-04-24  Jim Meyering  <meyering@lucent.com>
78260
78261         * lib/gettext.h: New file, from Gettext.
78262         * lib/Makefile.am (INCLUDES): Remove -I../intl.
78263         (libfetish_a_SOURCES): Add gettext.h.
78264
78265 2002-04-16  Jim Meyering  <meyering@lucent.com>
78266
78267         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
78268         ut_pid, ut_id, ut_exit.
78269
78270 2002-04-16  Jim Meyering  <meyering@lucent.com>
78271
78272         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
78273         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
78274         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
78275
78276 2002-04-12  Jim Meyering  <meyering@lucent.com>
78277
78278         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
78279         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
78280         existence of the getmntinfo function.  Needed for Darwin 5.3.
78281
78282         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
78283         This is necessary at least on Darwin 5.3.
78284
78285         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
78286         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
78287         strnlen.o in the library, and that makes some versions of ranlib
78288         object.
78289
78290 2002-04-12  Jim Meyering  <meyering@lucent.com>
78291
78292         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
78293
78294 2002-04-09  Jim Meyering  <meyering@lucent.com>
78295
78296         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
78297         to be more precise.  Rather than saying we're checking whether the
78298         function `works', say what we're testing.
78299         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
78300         Reported by Bruno Haible.
78301
78302 2002-03-10  Jim Meyering  <meyering@lucent.com>
78303
78304         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
78305         Suggestion from Santiago Vila.
78306
78307 2002-03-08  Jim Meyering  <meyering@lucent.com>
78308
78309         * lib/rename.c: Mention that this wrapper is needed also on
78310         mips-dec-ultrix4.4 systems.
78311
78312 2002-03-02  Jim Meyering  <meyering@lucent.com>
78313
78314         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
78315         not HAVE_CLOCK_SETTIME.
78316
78317 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78318
78319         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
78320         Check for clock_settime.
78321
78322 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78323
78324         * lib/nanosleep.h: Rename to....
78325         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
78326
78327         * lib/gettime.c: New file.
78328         * lib/settime.c: New file.
78329         * lib/stime.c: Remove.
78330
78331         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
78332         timespec.h.  Remove nanosleep.h.
78333
78334 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78335
78336         * m4/acl.m4: New file.
78337         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
78338         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
78339
78340 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78341
78342         * lib/acl.c, lib/acl.h: New files.
78343         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
78344
78345 2002-02-24  Jim Meyering  <meyering@lucent.com>
78346
78347         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
78348         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
78349         cause trouble.  Reported by Nelson Beebe.
78350
78351 2002-02-23  Paul Eggert  <eggert@twinsun.com>
78352
78353         * lib/path-concat.c (xpath_concat): Reorder code to pacify
78354         compilers that don't know that xalloc_die never returns.
78355
78356 2002-02-20  Jim Meyering  <meyering@lucent.com>
78357
78358         * lib/getdate.c: Regenerate using bison-1.33.
78359
78360 2002-02-17  Jim Meyering  <meyering@lucent.com>
78361
78362         * config/config.guess (main): Don't use `head -1'; it's no longer
78363         portable. Use `sed 1q' instead.
78364
78365 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
78366
78367         * m4/codeset.m4: Upgrade to gettext-0.11.
78368         * m4/gettext.m4: Upgrade to gettext-0.11.
78369         * m4/glibc21.m4: Upgrade to gettext-0.11.
78370         * m4/iconv.m4: Upgrade to gettext-0.11.
78371         * m4/isc-posix.m4: Upgrade to gettext-0.11.
78372         * m4/lcmessage.m4: Upgrade to gettext-0.11.
78373         * m4/lib-ld.m4: New file, from gettext-0.11.
78374         * m4/lib-link.m4: New file, from gettext-0.11.
78375         * m4/lib-prefix.m4: New file, from gettext-0.11.
78376         * m4/progtest.m4: Upgrade to gettext-0.11.
78377
78378 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78379
78380         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
78381         (jm_PREREQ): Use it.
78382
78383 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78384
78385         * lib/posixver.c, lib/posixver.h: New files.
78386         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78387
78388 2002-02-02  Paul Eggert  <eggert@twinsun.com>
78389             Bruno Haible  <bruno@clisp.org>
78390
78391         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
78392         (fwrite_success_callback): New declaration.
78393         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
78394         print_unicode_char. Call failure callback instead of error.
78395         (fwrite_success_callback): New function.
78396         (exit_failure_callback): New function.
78397         (fallback_failure_callback): New function.
78398         (print_unicode_char): Call unicode_to_mb.
78399
78400 2002-01-26  Jim Meyering  <meyering@lucent.com>
78401
78402         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
78403         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
78404
78405 2002-01-26  Jim Meyering  <meyering@lucent.com>
78406
78407         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
78408
78409 2002-01-22  Paul Eggert  <eggert@twinsun.com>
78410
78411         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
78412
78413 2002-01-22  Jim Meyering  <meyering@lucent.com>
78414
78415         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
78416         Otherwise, some versions of automake would omit the rule that makes
78417         Makefile from Makefile.in.
78418
78419 2002-01-21  Paul Eggert  <eggert@twinsun.com>
78420
78421         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
78422         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78423         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
78424         (memcoll): Set errno to zero if there is no error.
78425
78426         * lib/quotearg.c (quotearg_buffer_restyled):
78427         Fix bug with quoting buffers containing NUL when backslashing escapes.
78428         This bug was exposed by the other changes in this patch.
78429         (quotearg_n_options): New arg ARGSIZE.
78430         All callers changed.
78431         (quoting_options_from_style): New function.
78432         (quotearg_n_style): Use it.
78433         (quotearg_n_style_mem): New function.
78434
78435         * lib/quotearg.h (quotearg_n_style_mem): New function.
78436
78437 2002-01-19  Jim Meyering  <meyering@lucent.com>
78438
78439         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
78440         Remove useless quotes: DF_PROG="df".
78441         * m4/strnlen.m4: New file.
78442
78443 2002-01-16  Paul Eggert  <eggert@twinsun.com>
78444
78445         * lib/backupfile.c (ISDIGIT): Comment fix.
78446         * lib/getdate.y (ISDIGIT): Likewise.
78447         * lib/posixtm.c (ISDIGIT, year): Likewise.
78448         * lib/strverscmp.c (ISDIGIT): Likewise.
78449         * lib/userspec.c (ISDIGIT): Likewise.
78450
78451 2002-01-16  Jim Meyering  <meyering@lucent.com>
78452
78453         * lib/getdate.y: Add three semicolons, each just before a closing
78454         brace. Bison (as of version 1.31) no longer papers over that mistake.
78455
78456 2002-01-05  Jim Meyering  <meyering@lucent.com>
78457
78458         * lib/version-etc.c (version_etc_copyright): Update copyright year.
78459
78460 2001-12-19  Paul Eggert  <eggert@twinsun.com>
78461
78462         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
78463         not silently exit merely because the output buffer happens to
78464         have nothing pending.
78465
78466 2001-12-18  Paul Eggert  <eggert@twinsun.com>
78467
78468         See the big note in ../ChangeLog.
78469         * lib/human.c (suffixes): Prefer K to k for 1024.
78470         (generate_suffix_backwards): New function.
78471         (human_readable_inexact): Use it.
78472         * lib/xstrtol.c (__xstrtol): If there is no number but there
78473         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
78474         Accept 'K' as well as 'k'.
78475
78476 2001-12-15  Jim Meyering  <meyering@lucent.com>
78477
78478         * lib/regex.h (__restrict_arr): Update from libc.
78479
78480         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
78481         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
78482         (STREQ): Define.
78483
78484 2001-12-14  Jim Meyering  <meyering@lucent.com>
78485
78486         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
78487         Suggestion from Bruno Haible.
78488
78489 2001-12-10  Jim Meyering  <meyering@lucent.com>
78490
78491         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
78492         xrealloc, Instead, include "xalloc.h".
78493         (initbuffer): Don't cast xmalloc return value to char*.
78494         (readline): Reword comment.
78495         Don't cast xrealloc return value to char*
78496         Return NULL, not 0.
78497
78498 2001-12-09  Jim Meyering  <meyering@lucent.com>
78499
78500         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
78501         about `signed and unsigned type in conditional expression'.
78502         * lib/posixtm.c (posix_time_parse): Likewise.
78503
78504         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
78505
78506         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
78507         to avoid a pedantic warning.
78508
78509         * lib/getstr.c: Don't include assert.h.
78510         (getstr): Remove warning-evoking assertions.
78511         Return -1 if offset parameter is out of bounds.
78512         Change the type of a local from int to size_t.
78513
78514         * lib/strftime.c (my_strftime_localtime_r): Include this function
78515         definition in the `#if ! HAVE_TM_GMTOFF' block.
78516
78517         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
78518         Include xalloc.h instead.
78519
78520 2001-12-02  Jim Meyering  <meyering@lucent.com>
78521
78522         * lib/tempname.c: Don't declare getenv, thus reverting the change of
78523         2001-11-18.  It's no longer necessary, now that stdlib.h is always
78524         included.
78525
78526         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
78527         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
78528
78529 2001-11-30  Akim Demaille  <akim@epita.fr>
78530
78531         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
78532         before being defined.
78533
78534 2001-11-27  Paul Eggert  <eggert@twinsun.com>
78535
78536         * lib/quotearg.h (quotearg_n, quotearg_n_style):
78537         First arg is int, not unsigned.
78538         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
78539         (SIZE_MAX, UINT_MAX): New macros.
78540         (quotearg_n_options): Abort if N is negative.
78541         Avoid overflow check on hosts where size_t is 64 bits and int
78542         is 32 bits, as overflow is impossible there.
78543         Fix off-by-one typo that caused unnecessary reallocation.
78544
78545 2001-11-27  Jim Meyering  <meyering@lucent.com>
78546
78547         * lib/tempname.c: Merge with version from libc.
78548         * lib/regex.c: Likewise.
78549
78550         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
78551         systems for which STDC_HEADERS is 0, it was not included, resulting in
78552         a warning about an integer-to-pointer conversion problem with getenv.
78553         Reported by Volker Borchert.
78554
78555 2001-11-26  Jim Meyering  <meyering@lucent.com>
78556
78557         * lib/gtod.h: Remove file.
78558         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
78559         * lib/gettimeofday.c: Don't include gtod.h.
78560         (GTOD_init): Remove function.
78561         (rpl_gettimeofday): Do its job here instead, rather than aborting.
78562         Suggestion from Volker Borchert.
78563
78564 2001-11-23  Jim Meyering  <meyering@lucent.com>
78565
78566         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
78567         it.
78568         * lib/hash.c (struct hash_table): Define it here instead.
78569
78570 2001-11-22  Jim Meyering  <meyering@lucent.com>
78571
78572         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
78573
78574 2001-11-20  Jim Meyering  <meyering@lucent.com>
78575
78576         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
78577         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
78578
78579 2001-11-19  Jim Meyering  <meyering@lucent.com>
78580
78581         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
78582         directory.  Use "conftestXXXXXX" as the template.
78583         Suggestion from Paul Eggert.
78584
78585         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
78586         immediately, so the test doesn't mistakenly hit the max-open-files
78587         limit.
78588
78589 2001-11-18  Paul Eggert  <eggert@twinsun.com>
78590
78591         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
78592         (TEMPORARIES): New macro.
78593         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
78594         removes an artificial limitation (e.g. HP-UX 10.20, where
78595         TMP_MAX is 17576).
78596
78597 2001-11-18  Jim Meyering  <meyering@lucent.com>
78598
78599         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
78600
78601 2001-11-18  Jim Meyering  <meyering@lucent.com>
78602
78603         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
78604         on SunOS 4.
78605
78606         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
78607         files will be created before anything else.
78608
78609 2001-11-17  Paul Eggert  <eggert@twinsun.com>
78610
78611         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
78612         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
78613
78614 2001-11-17  Jim Meyering  <meyering@lucent.com>
78615
78616         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
78617         Prompted by a report from Bob Proulx.
78618
78619         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
78620         Instead, require UTILS_FUNC_MKSTEMP.
78621
78622 2001-11-17  Jim Meyering  <meyering@lucent.com>
78623
78624         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
78625         Now, that's done as part of AC_FUNC_STRTOD.
78626
78627 2001-11-17  Jim Meyering  <meyering@lucent.com>
78628
78629         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
78630         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
78631         rather than group writable.  Patch by Juan F. Codagnone.
78632
78633         * lib/readtokens.c: Remove explicit declarations of xmalloc and
78634         xrealloc, Instead, include "xalloc.h".
78635
78636         * lib/mountlist.c: Include unlocked-io.h after all system headers.
78637         Remove explicit declarations of xmalloc, xrealloc,
78638         and xstrdup.  Instead, include "xalloc.h".
78639
78640         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
78641         unlocked-io.h.
78642         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
78643         Likewise.
78644         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
78645
78646         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
78647         Reported by Padraig Brady.
78648
78649         * lib/mkstemp.c: #undef mkstemp.
78650         Include config.h.
78651         (rpl_mkstemp): Rename from mkstemp.
78652         Protoize.
78653
78654 2001-11-16  Jim Meyering  <meyering@lucent.com>
78655
78656         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
78657         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
78658         determine the amount of total physical memory, use pstat_getstatic.
78659         HPUX-11 doesn't define _SC_PHYS_PAGES.
78660         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
78661         If sysconf couldn't be used to determine the amount of available
78662         physical memory, use both pstat_getstatic and pstat_getdynamic.
78663         Based on a patch from Bob Proulx.
78664
78665 2001-11-10  Jim Meyering  <meyering@lucent.com>
78666
78667         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
78668         (jm_PREREQ): Use it.
78669
78670 2001-11-09  Jim Meyering  <meyering@lucent.com>
78671
78672         * m4/jm-macros.m4: Require autoconf-2.52f.
78673         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
78674         Use these AC_-prefixed names, not the AM_-prefixed ones.
78675
78676         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
78677
78678 2001-11-05  Jim Meyering  <meyering@lucent.com>
78679
78680         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
78681
78682 2001-11-04  Jim Meyering  <meyering@lucent.com>
78683
78684         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
78685         $DEFS.
78686
78687 2001-11-03  Jim Meyering  <meyering@lucent.com>
78688
78689         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
78690         of AC_DEFUN.
78691
78692         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
78693         know the name of the variable in the macro definition.
78694
78695 2001-11-03  Jim Meyering  <meyering@lucent.com>
78696
78697         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
78698         in argmatch_to_argument call.
78699
78700         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
78701         argument.
78702
78703         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
78704         e.g., a fault due to an attempt to free a NULL pointer.
78705
78706 2001-11-01  Jim Meyering  <meyering@lucent.com>
78707
78708         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
78709         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
78710
78711 2001-11-01  Jim Meyering  <meyering@lucent.com>
78712
78713         * lib/dirfd.c, lib/dirfd.h: New files.
78714         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
78715
78716         * lib/hash.c (hash_print) [TESTING]: Clean up.
78717
78718 2001-10-22  Paul Eggert  <eggert@twinsun.com>
78719
78720         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
78721         to avoid a warning if -Wall.
78722
78723 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
78724
78725         * README: New file
78726         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
78727         (per RMS's instructions, this is now the canonical source)
78728         * lgpl/, gpl/: New directories.
78729
78730 2001-10-21  Paul Eggert  <eggert@twinsun.com>
78731
78732         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
78733
78734 2001-10-21  Jim Meyering  <meyering@lucent.com>
78735
78736         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
78737         this code would end up calling gettext even in packages built
78738         with --disable-nls.
78739         * lib/getopt.c (_): Likewise.
78740         * lib/regex.c (_): Likewise.
78741
78742 2001-10-20  Paul Eggert  <eggert@twinsun.com>
78743
78744         * m4/error.m4 (jm_PREREQ_ERROR):
78745         Do not invoke AC_CHECK_FUNCS with strerror_r, as
78746         AC_FUNC_STRERROR_R does that.
78747         Check for strerror declaration.
78748
78749         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
78750         are supposed to have them these days.
78751         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
78752         Merge changes from latest Autoconf CVS.
78753         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
78754         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
78755         POSIX decided to standardize on the int flavor of strerror_r.
78756
78757 2001-10-20  Paul Eggert  <eggert@twinsun.com>
78758
78759         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
78760         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
78761         Use strerror_r that is only a macro, even if it is not a function.
78762         (strerror): Check for HAVE_DECL_STRERROR before declaring.
78763         (private_strerror): Use prototypes, not old-style function definition.
78764         (print_errno_message): New function.
78765         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
78766         char*-flavored one.
78767         (error_tail, error, error_at_line): Use it.
78768
78769 2001-10-11  Jim Meyering  <meyering@lucent.com>
78770
78771         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
78772         and quote_n (1, ... to avoid clobbering a buffer.
78773
78774 2001-10-05  Jim Meyering  <meyering@lucent.com>
78775
78776         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
78777         hash-pjw.h.
78778         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
78779         * lib/hash-pjw.h: New file.
78780
78781 2001-09-30  Jim Meyering  <meyering@lucent.com>
78782
78783         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
78784         `struct fsstat' has the `f_fstypename' member.
78785         Use that to define FS_TYPE, which is now used to make
78786         the getfsstat link test tighter.
78787
78788 2001-09-30  Jim Meyering  <meyering@lucent.com>
78789
78790         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
78791         Include <sys/ucred.h>, for Apple Darwin.
78792         Include sys/mount.h and sys/fs_types.h only if available.
78793         (FS_TYPE): Define.
78794         (read_filesystem_list): Use FS_TYPE.
78795
78796 2001-09-29  Paul Eggert  <eggert@twinsun.com>
78797
78798         * lib/exclude.c (excluded_filename): 0 -> false, since it's
78799         a boolean context.
78800
78801 2001-09-29  Jim Meyering  <meyering@lucent.com>
78802
78803         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
78804         [one-argument getmntent function]): Include stdio.h before mntent.h.
78805         SunOS 4.1.x needs it for the declaration of `FILE'.
78806         Patch by Volker Borchert.
78807
78808         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
78809         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
78810         sys/fs_types.h, and make the link-test for getfsstat guard #include
78811         directives with appropriate #if HAVE_*_H tests so that we can
78812         detect getfsstat on Apple Darwin1.3.7 systems.
78813         Reported by Nelson Beebe.
78814         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
78815
78816 2001-09-28  Paul Eggert  <eggert@twinsun.com>
78817
78818         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
78819         #defines strtoimax.  Also treat the other strto* functions
78820         like strtoimax.
78821
78822         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
78823         Check for strtoul and strtoumax,
78824         as those declarations are made even in the signed case.
78825         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
78826         Likewise, for strtol and strtoimax.
78827
78828 2001-09-28  Paul Eggert  <eggert@twinsun.com>
78829
78830         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
78831         #defines strtoimax.  Also treat the other strto* functions
78832         like strtoimax.
78833
78834         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
78835         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
78836         (strtoimax, strtoumax): Do not declare if already defined as a macro.
78837
78838 2001-09-26  Jim Meyering  <meyering@lucent.com>
78839
78840         Most macros in unlocked-io.h had the wrong number of arguments.
78841         * lib/gen-uio: New script.
78842         (USE_UNLOCKED_IO): Define to 1 if not already defined.
78843         * lib/unlocked-io.hin: Remove file.
78844         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
78845         rather than trying to embed it here.
78846         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
78847         Reported by Padraig Brady.
78848
78849 2001-09-25  Volker Borchert  <bt@teknon.de>
78850
78851         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
78852         `result'.
78853
78854 2001-09-24  Jim Meyering  <meyering@lucent.com>
78855
78856         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
78857
78858 2001-09-23  Jim Meyering  <meyering@lucent.com>
78859
78860         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
78861         instead of the mere test for existence of mntent.h.  The latter
78862         would get a false-positive on AIX 3.4 systems.
78863         In the outer getmntent if-block, don't die if neither of the getmntent
78864         tests succeeds.  Instead, just fall through and continue with the
78865         remaining tests.
78866
78867 2001-09-23  Jim Meyering  <meyering@lucent.com>
78868
78869         * lib/mountlist.c: Remove useless parentheses in #if directives.
78870         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
78871         the deprecated MOUNTED symbol is no longer defined in mntent.h.
78872
78873 2001-09-22  Jim Meyering  <meyering@lucent.com>
78874
78875         * m4/gettext.m4: New file.  From gettext.
78876         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
78877         * m4/progtest.m4: Likewise
78878         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
78879         * m4/glibc21.m4: Likewise.
78880
78881         * m4/libintl.m4: Remove.  No longer used.
78882
78883 2001-09-22  Jim Meyering  <meyering@lucent.com>
78884
78885         * lib/localcharset.c: Update from latest gettext.
78886         * lib/config.charset: Likewise.
78887
78888 2001-09-20  Jim Meyering  <meyering@lucent.com>
78889
78890         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
78891         strtoimax.
78892         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
78893         strtoumax.
78894
78895 2001-09-20  Jim Meyering  <meyering@lucent.com>
78896
78897         * lib/xstrtol.c (strtoimax): Guard declaration with
78898         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
78899         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
78900         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
78901         (strtoumax): Likewise, for completeness (it wasn't necessary).
78902
78903 2001-09-17  Paul Eggert  <eggert@twinsun.com>
78904
78905         * lib/strtoimax.c (HAVE_LONG_LONG):
78906         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
78907         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
78908         to work around bug in IBM C compiler.
78909
78910 2001-09-17  Jim Meyering  <meyering@lucent.com>
78911
78912         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
78913         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
78914         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
78915         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
78916         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
78917         whenever the right hand side need not be expanded by the shell.
78918
78919 2001-09-16  Paul Eggert  <eggert@twinsun.com>
78920
78921         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
78922         library.  It's not correct, as some older glibcs are buggy.
78923         fnmatch wasn't fixed until glibc 2.2.
78924
78925         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
78926         special shell magic here.
78927
78928 2001-09-16  Jim Meyering  <meyering@lucent.com>
78929
78930         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
78931         * m4/jm-macros.m4: Require it.
78932
78933 2001-09-16  Jim Meyering  <meyering@lucent.com>
78934
78935         * lib/mkdir.c: New file.
78936
78937 2001-09-15  Jim Meyering  <meyering@lucent.com>
78938
78939         * m4/jm-macros.m4: Check for help2man.
78940
78941 2001-09-11  Jim Meyering  <meyering@lucent.com>
78942
78943         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
78944         The body, by Paul Eggert, was moved here from configure.in.
78945         * m4/jm-macros.m4: Require UTILS_HOST_OS.
78946
78947 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78948
78949         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
78950         (jm_PREREQ): Use it.
78951
78952 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78953
78954         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
78955         Use ssize_t, not int, to store result of readlink.
78956         Check for ssize_t overflow as well as size_t overflow,
78957         as POSIX says the result of readlink is implementation-defined
78958         when ssize_t overflows.
78959         Remove unnecessary cast to char*.
78960         Use free+malloc instead of realloc, as the storage doesn't need
78961         to be preserved and it's clearer and can be more efficient that way.
78962         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
78963         * lib/xreadlink.h (xreadlink): Update prototype.
78964
78965 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78966
78967         * lib/xgetcwd.c: Revert some of the previous change; intead,
78968         fix the HAVE_GETCWD_NULL code to behave more like the
78969         !HAVE_GETCWD_NULL code used to.
78970
78971         Include "xalloc.h".
78972         (xgetcwd): Do not return NULL when memory is exhausted; instead,
78973         invoke xalloc_die.
78974
78975 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78976
78977         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
78978         sys/param.h, as pathmax.h includes them.
78979
78980 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78981
78982         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
78983         (jm_PREREQ_XGETCWD): New macro.
78984
78985         * m4/getcwd.m4: New file.
78986
78987 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78988
78989         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
78990         like the HAVE_GETCWD_NULL code.
78991         Include pathmax.h if not HAVE_GETCWD.
78992         Do not include xalloc.h.
78993         (INITIAL_BUFFER_SIZE): New symbol.
78994         Do not use xmalloc / xrealloc, since the caller is responsible for
78995         handling errors.  Preserve errno around `free' during failure.
78996         Do not overrun buffer when using getwd.
78997
78998 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78999
79000         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
79001         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
79002         getcwd (NULL, 0).
79003
79004 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79005
79006         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
79007         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
79008         spotted by Jim Meyering.
79009
79010 2001-09-03  Jim Meyering  <meyering@lucent.com>
79011
79012         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
79013         failure.
79014
79015 2001-09-02  Jim Meyering  <meyering@lucent.com>
79016
79017         * lib/error.c: Update from GNU libc.
79018
79019 2001-09-01  Jim Meyering  <meyering@lucent.com>
79020
79021         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
79022         Used by df.
79023
79024 2001-09-01  Jim Meyering  <meyering@lucent.com>
79025
79026         * lib/xreadlink.c: New file.
79027         * lib/xreadlink.h: New file.
79028         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
79029         xreadlink.h.
79030
79031         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
79032         doesn't conflict with sparc Solaris 7's definition in
79033         /usr/include/sys/int_types.h.
79034
79035         * lib/exclude.c: Use `""', not `<>' to #include non-system header
79036         files.
79037         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
79038         and strncasecmp as r-values.  Unixware didn't have declarations.
79039
79040 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79041
79042         * lib/xstrtol.h: Add copyright notice.
79043         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
79044         LONGINT_INVALID_SUFFIX_CHAR.
79045
79046 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79047
79048         * lib/xstrtol.c (strtoimax): New decl.
79049
79050 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79051
79052         * lib/xgetcwd.c: Don't include pathmax.h.
79053         Include stdlib.h and unistd.h if available.
79054         Include xalloc.h.
79055         (xmalloc, xstrdup, free): Remove decls.
79056         (xgetcwd): Don't assume sizes fit in unsigned.
79057         Check for overflow when computing sizes.
79058         Simplify reallocation code.
79059
79060 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79061
79062         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
79063         a directory's st_size can have an arbitrary value, so the old
79064         usage could waste an arbitrary amount of memory.  All uses
79065         changed.
79066         * lib/savedir.h: Update prototype.
79067
79068 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79069
79070         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
79071
79072         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
79073         old strtoimax.c.
79074
79075         Also, make the following further changes to make this file's
79076         configuration more similar to that of strtol.c:
79077         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
79078         (strtoumax, uintmax_t, strtoull, strtol): Remove.
79079         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
79080         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
79081         changed to signed values.
79082
79083         And make the following changes as well:
79084         Fix copyright notice, as 1999 was missing.
79085         (verify): New macro.
79086         (strtoimax): Check sizes at compile-time, not run-time.
79087         Prefer strtol to strtoll if both work.
79088         (main): Remove; it was not that useful and was a pain to maintain.
79089
79090         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
79091
79092 2001-08-31  Jim Meyering  <meyering@lucent.com>
79093
79094         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
79095         Use an initial, malloc'd, buffer of length 128 rather than
79096         a statically allocated one of length 1024.
79097
79098 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79099
79100         Simplify code, partly by assuming autoconf 2.52 semantics.
79101
79102         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
79103
79104         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
79105         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
79106         All uses removed.
79107         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
79108         Move AC_REQUIRE to next-to-top level, to avoid confusion.
79109         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
79110         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
79111         jm_AC_HEADER_INTTYPES_H.
79112         * m4/jm-macros.m4 (jm_MACROS): Likewise.
79113
79114         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
79115
79116         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
79117         Quote first arg of AC_DEFUN.
79118         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
79119         since they are needed to parse the include file even if we need
79120         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
79121         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
79122         but with opposite signedness.
79123
79124 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79125
79126         Merge 'exclude' changes from tar 1.13.22.
79127         This fixes one or two unlikely storage allocation overflow bugs,
79128         but doesn't change user-visible behavior otherwise.
79129
79130 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79131
79132         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
79133         (jm_PREREQ_EXCLUDE): New macro.
79134
79135 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79136
79137         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
79138         tm to be declared.
79139
79140 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79141
79142         * lib/hash.c: Remove '2001' from copyright notice.
79143
79144 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79145
79146         * lib/full-write.h: New file.
79147         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
79148         * lib/full-write.c: Correct credits, as cccp.c no longer
79149         exists and anyway it was so heavily changed from the old cccp
79150         code as to be unrecognizable.  Include full-write.h.
79151         (full_write): Return size_t, with short writes meaning failure.
79152         All callers changed.  This fixes a bug with large buffers
79153         on 64-bit hosts.
79154         * lib/utime.c: Include full-write.h.
79155
79156 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79157
79158         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
79159         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
79160         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
79161         Include if available.
79162         (<xalloc.h>): Include
79163         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
79164         (verify): New macro.  Use it to verify that EXCLUDE macros do not
79165         collide with FNM macros.
79166         (struct patopts): New struct.
79167         (struct exclude): Use it, as exclude patterns now come with options.
79168         (new_exclude): Support above changes.
79169         (new_exclude, add_exclude_file):
79170         Initial size must now be a power of two to simplify overflow checking.
79171         (free_exclude, fnmatch_no_wildcards): New function.
79172         (excluded_filename): No longer requires options arg, as the options
79173         are determined by add_exclude.  Now returns bool, not int.
79174         (excluded_filename, add_exclude):
79175         Add support for the fancy new exclusion options.
79176         (add_exclude, add_exclude_file): Now takes int options arg.
79177         Check for arithmetic overflow when computing sizes.
79178         (add_exclude_file): xrealloc might modify errno, so don't
79179         realloc until after errno might be used.
79180
79181         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
79182         New macros.
79183         (free_exclude): New decl.
79184         (add_exclude, add_exclude_file): Now takes int options arg.
79185         (excluded_filename): No longer requires options arg, as the options
79186         are determined by add_exclude.  Now returns bool, not int.
79187
79188 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79189
79190         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
79191
79192 2001-08-27  Jim Meyering  <meyering@lucent.com>
79193
79194         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
79195
79196         * lib/version-etc.c (N_): Remove definition.
79197         Revert most of last change.
79198         Instead, simply don't mark the `Copyright...' string for translation.
79199         Based on advice from Paul Eggert.
79200
79201         * lib/strtoxmax.c: Tweak comment.
79202
79203 2001-08-26  Jim Meyering  <meyering@lucent.com>
79204
79205         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
79206
79207         * m4/xstrtoimax.m4: New file.
79208         * m4/xstrtoumax.m4: Add comments explaining why we
79209         AC_REPLACE_FUNCS(strtol).
79210
79211 2001-08-26  Jim Meyering  <meyering@lucent.com>
79212
79213         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
79214         of copyright with `%s' so translators don't get an untranslated
79215         message in 2002.
79216         (COPYRIGHT_YEAR): Define.
79217         (version_etc): Use fprintf rather than fputs.
79218         Suggestion from Ulrich Drepper.
79219
79220         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
79221
79222         * lib/strtoll.c: New file, from GNU libc.
79223         * lib/xstrtoimax.c: New file.
79224
79225         * lib/xstrtol.h: Add xstrtoimax.
79226         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
79227         * lib/strtoimax.c: New file.  Likewise, but first define
79228         STRTOUXMAX_SIGNED.
79229
79230         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
79231         ...
79232         * lib/strtoxmax.c: ... then renamed to this.
79233
79234 2001-08-18  Paul Eggert  <eggert@twinsun.com>
79235
79236         * m4/inttypes.m4: Add AC_PREREQ(2.13).
79237         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
79238         (jm_AC_TYPE_INTMAX_T): New macro.
79239         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
79240
79241         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
79242
79243         * m4/longlong.m4: Renamed from ulonglong.m4.
79244         * m4/inttypes.m4: Renamed from inttypes_h.m4.
79245         * m4/uintmax_t.m4: Removed.
79246
79247 2001-08-13  Paul Eggert  <eggert@twinsun.com>
79248
79249         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
79250         Port to Solaris 8, where 'sed' requires a space after the 'r'
79251         command, and where sh dislikes "$/".  Clean up the spacing a bit.
79252         Redirect output to $tmp just once.
79253
79254 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
79255
79256         * lib/addext.c (<errno.h>): Include.
79257         (errno): Declare if not defined.
79258         (addext): Work correctly when pathconf returns -1 and leaves
79259         errno alone because there is no limit.  Also, work even if
79260         pathconf returns a value greater than SIZE_MAX.
79261
79262 2001-08-12  Jim Meyering  <meyering@lucent.com>
79263
79264         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
79265         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
79266         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
79267         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
79268         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
79269         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
79270         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
79271         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
79272         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
79273         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
79274         utime.m4, utimes.m4, xstrtoumax.m4:
79275         Quote the first argument in each use of AC_DEFUN.
79276
79277 2001-08-12  Jim Meyering  <meyering@lucent.com>
79278
79279         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
79280         Simply `return getcwd (NULL, 0);'.
79281         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
79282         Use 1300 as initial value for length, not PATH_MAX.
79283
79284         * lib/pathmax.h: Clean up cpp syntax.
79285
79286 2001-08-12  Jim Meyering  <meyering@lucent.com>
79287
79288         * lib/gettimeofday.c: New file.
79289         * lib/gtod.h: New file.
79290         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
79291
79292 2001-08-05  Jim Meyering  <meyering@lucent.com>
79293
79294         * m4/jm-macros.m4: Require autoconf-2.52.
79295
79296 2001-08-04  Jim Meyering  <meyering@lucent.com>
79297
79298         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
79299         stmt, to get in sync with glibc.
79300
79301 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79302
79303         The following changes are from gettext 0.10.39 as maintained by
79304         Bruno Haible.
79305
79306         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
79307         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
79308         with inverted sense.  All uses changed.
79309
79310         * lib/mbswidth.c: Don't include <limits.h>.
79311         Include <stdlib.h> and <string.h> unconditionally.
79312         (iswcntrl, mbsinit, ISCNTRL): New macros.
79313         (mbsnwidth): Use K&R style function declarations.
79314         Don't bother checking for MB_LEN_MAX == 1, since the compiler
79315         can optimize it when MB_CUR_MAX == 1.
79316         The width of control characters is zero, not 1.
79317
79318 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79319
79320         The following changes are from gettext 0.10.39 as maintained by
79321         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
79322
79323         * m4/codeset.m4: Upgrade to serial AM1.
79324         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
79325         all uses changed.  Quote first arg of AC_DEFUN.
79326         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
79327
79328         * m4/iconv.m4: Upgrade to serial AM2.
79329         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
79330         Add --with-libconv-prefix.
79331         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
79332         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
79333         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
79334         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
79335         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
79336
79337         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
79338         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
79339         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
79340         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
79341         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
79342         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
79343         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
79344         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
79345         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79346
79347         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
79348         string.h any more.
79349
79350         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
79351         not the default value.
79352
79353         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
79354         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
79355         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
79356         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
79357         Also check for iswcntrl, used for wcwidth fallback.
79358         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
79359         to Autoconf 2.13.
79360
79361 2001-08-03  Jim Meyering  <meyering@lucent.com>
79362
79363         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
79364         as it was in the original.  Reported by Paul Eggert.
79365
79366 2001-07-16  Jim Meyering  <meyering@lucent.com>
79367
79368         * m4/gettimeofday.m4: New file.
79369         Prompted by a report from Bernhard Baehr.
79370
79371 2001-07-15  Jim Meyering  <meyering@lucent.com>
79372
79373         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
79374         stuff. Now it's in ../Makefile.cfg.
79375
79376 2001-07-15  Jim Meyering  <meyering@lucent.com>
79377
79378         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
79379         (BUILT_SOURCES): Add unlocked-io.h.
79380         (io_functions): Define.
79381         (unlocked-io.h): New rule.
79382         (DISTCLEANFILES): Add unlocked-io.h.
79383         (all-local): Depend on unlocked-io.h, to ensure it is created.
79384
79385         * lib/unlocked-io.hin: New file
79386
79387         * lib/regex.c: Update from glibc.
79388
79389 2001-07-05  Jim Meyering  <meyering@lucent.com>
79390
79391         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
79392         recommendation.
79393         (libfetish_a_SOURCES): Put all .h files here instead.
79394         Remove a thus-exposed (better checks in automake) duplicate and
79395         two unnecessary .h files.
79396
79397 2001-07-04  Jim Meyering  <meyering@lucent.com>
79398
79399         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
79400         that generates jm-glibc-io.m4 so that it doesn't trigger any make
79401         distcheck failure.
79402
79403 2001-07-02  Jim Meyering  <meyering@lucent.com>
79404
79405         The following changes were prompted by suggestions from Bruno Haible.
79406
79407         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
79408         is now generated.
79409         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
79410         definition of EXTRA_DIST.
79411         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
79412         ensure that the generated file is created/updated whenever the list
79413         of $(unlocked_functions) is changed.
79414         (jm-glibc-io.m4): New rule.
79415         (unlocked-io.h): New rule -- currently unused.
79416
79417 2001-06-24  Jim Meyering  <meyering@lucent.com>
79418
79419         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
79420         unmatched right bracket, rather than kludging it with an extra,
79421         falsely-matching quote in a comment.  Patch by Akim Demaille.
79422
79423 2001-06-11  Jim Meyering  <meyering@lucent.com>
79424
79425         * lib/regex.c: Update from GNU libc.
79426
79427 2001-05-27  Jim Meyering  <meyering@lucent.com>
79428
79429         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
79430         Check for ut_type in struct utmp.
79431
79432 2001-05-27  Jim Meyering  <meyering@lucent.com>
79433
79434         * lib/readutmp.h (UT_TYPE): Define.
79435
79436 2001-05-24  Jim Meyering  <meyering@lucent.com>
79437
79438         * lib/argmatch.c: Include "quote.h".
79439         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
79440         quote function.  Reported by Göran Uddeborg.
79441
79442 2001-05-22  Jim Meyering  <meyering@lucent.com>
79443
79444         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
79445         now that we use the package-supplied version unconditionally.
79446         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
79447
79448 2001-05-21  Jim Meyering  <meyering@lucent.com>
79449
79450         * m4/regex.m4: Change a couple backticks to single quotes to avoid
79451         shell syntax errors.
79452
79453 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79454
79455         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
79456
79457 2001-05-20  Paul Eggert  <eggert@twinsun.com>
79458
79459         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
79460         Don't bother to check library strftime, since
79461         we'll be using our own my_strftime function anyway.
79462         Define my_strftime instead of strftime.
79463
79464 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
79465
79466         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
79467         which is not yet declared.
79468
79469 2001-05-15  Jim Meyering  <meyering@lucent.com>
79470
79471         * m4/regex.m4: Use proper quoting so brackets appear in the test
79472         program.
79473         Reported by, and with help from, Bruno Haible.
79474
79475 2001-05-13  Jim Meyering  <meyering@lucent.com>
79476
79477         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
79478         undefined.
79479
79480 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79481
79482         dirname code cleanup.  base_name now behaves more compatibly
79483         with POSIX basename when given file names that have trailing
79484         slashes, and similarly for dir_name.  Add new primitives
79485         base_len and dir_len.  Put the directory-name-related decls
79486         into dirname.h.
79487
79488         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
79489         * lib/backupfile.c (base_name): Likewise.
79490         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
79491         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
79492         * lib/makepath.c (strip_trailing_slashes): Likewise.
79493         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
79494         ISSLASH): Likewise.
79495         * lib/rename.c (strip_trailing_slashes): Likewise.
79496         * lib/same.c (base_name): Likewise.
79497         * lib/stripslash.c (ISSLASH): Likewise.
79498
79499         * lib/addext.c: Include <dirname.h> after size_t is defined.
79500         * lib/backupfile.c: Likewise.
79501
79502         * lib/addext.c (addext): Use base_len to trim redundant
79503         trailing slashes instead of doing it ourselves.
79504         But do not trim the last slash if it is not redundant.
79505
79506         * lib/backupfile.c (find_backup_file_name,
79507         max_backup_version): Use base_len instead of rolling it ourselves.
79508         Handle the case of "" and (on DOS) "C:" correctly.
79509
79510         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
79511         needed. Include <string.h>, <dirname.h>.
79512         (base_name): Allow file names ending in slashes, other than names
79513         that are all slashes.  In this case, return the basename followed
79514         by the slashes.  This is more general, and can be used in places
79515         where the original base_name purposely had an assertion failure.
79516         (base_len): New function.
79517
79518         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
79519         Do not include <assert.h>; no longer needed.
79520         Include xalloc.h.
79521         (memrchr): Remove decl.
79522         (dir_name_r): Remove.
79523         (dir_len): Renamed from dirlen.  All callers changed.
79524         Rewrite in terms of base_name, for simplicity and consistency.
79525         (dir_name): Never return NULL.  All callers changed.
79526         Do not include <stdlib.h> in test program; no longer needed.
79527         return 0; is fine for test program.
79528
79529         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
79530         New macros.
79531         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
79532
79533         * lib/path-concat.c (path_concat): Use base_len to compute
79534         base length, not strlen; this means we cannot rely on memcpy
79535         to null-terminate.
79536
79537         * lib/same.c (STREQ): Remove.
79538         (same_name): Handle the case where the basename ends in trailing '/'.
79539
79540         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
79541         a slash was stripped.  Do not strip the last slash after a
79542         file system prefix.
79543
79544 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79545
79546         * lib/Makefile.am (libfetish_a_SOURCES):
79547         Add strftime.c, since we now compile it on all hosts.
79548
79549         * lib/strftime.c (my_strftime):
79550         Define to nstrftime if emacs, but only if my_strftime is not defined.
79551         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
79552         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
79553         Add one more extra argument: a nanoseconds value.
79554         All uses changed.
79555         (ns): New macro.
79556         (my_strftime function): Add %N format.
79557         (emacs_strftimeu): Renamed from emacs_strftime,
79558         with extra ut argument.
79559
79560 2001-05-09  Paul Eggert  <eggert@twinsun.com>
79561
79562         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
79563
79564 2001-04-21  Jim Meyering  <meyering@lucent.com>
79565
79566         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
79567         doesn't interfere.
79568
79569 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79570
79571         * m4/ftruncate.m4: Check for chsize.
79572         Link with ftruncate.o unconditionally if ftruncate is missing.
79573         This was required when cross-compiling to i586-mingw32msvc.
79574
79575 2001-04-08  Jim Meyering  <meyering@lucent.com>
79576
79577         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
79578         recomputed; that's necessary when the offset spans a DST transition.
79579         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
79580
79581 2001-04-02  Jim Meyering  <meyering@lucent.com>
79582
79583         * lib/regex.h, regex.c: Update from GNU libc.
79584
79585 2001-03-24  Jim Meyering  <meyering@lucent.com>
79586
79587         * m4/jm-macros.m4: Require autoconf-2.49d.
79588
79589 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
79590
79591         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
79592
79593 2001-03-19  Paul Eggert  <eggert@twinsun.com>
79594
79595         * lib/version-etc.c (version_etc_copyright): Update to 2001.
79596
79597 2001-03-17  Jim Meyering  <meyering@lucent.com>
79598
79599         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
79600         now that the version in autoconf is equivalent.
79601         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
79602
79603         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
79604         Suggestion from Akim Demaille.
79605
79606         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
79607         (jm_PREREQ_TEMPNAME): New function.
79608
79609 2001-03-16  Paul Eggert  <eggert@twinsun.com>
79610
79611         * lib/tempname.c (uint64_t): Define to uintmax_t if
79612         not defined, and if UINT64_MAX is not defined.
79613         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
79614         Reported by John David Anglin.
79615
79616 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
79617
79618         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
79619         resolve alias if codeset is empty.
79620         * lib/config.charset (BeOS): Use wildcard syntax.
79621
79622 2001-03-13  Jim Meyering  <meyering@lucent.com>
79623
79624         * lib/path-concat.c (path_concat)
79625         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
79626         concatenating e.g., `C:' and `foo'.
79627         From Bruno Haible.
79628
79629 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
79630
79631         * lib/localcharset.c (locale_charset): Don't use
79632         setlocale(LC_CTYPE,NULL). Don't return NULL.
79633         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
79634
79635 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
79636
79637         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
79638         support for DOS/DJGPP.
79639
79640 2001-03-01  Paul Eggert  <eggert@twinsun.com>
79641
79642         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
79643         lacks mkstemp.  Compile our own tempname.c if we compile our own
79644         mkstemp.c, as mkstemp relies on tempname.
79645
79646 2001-03-01  Jim Meyering  <meyering@lucent.com>
79647
79648         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
79649         AH_VERBATIM really does output its argument verbatim.
79650
79651 2001-02-28  Paul Eggert  <eggert@twinsun.com>
79652
79653         * lib/Makefile.am (libfetish_a_SOURCES):
79654         Add dup-safer.c, fopen-safer.c.
79655         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
79656
79657         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
79658         * lib/unistd-safer.h: New files.
79659
79660 2001-02-25  Paul Eggert  <eggert@twinsun.com>
79661
79662         The mkstemp replacement is taken from glibc 2.2.2, with some
79663         portability fixes for use outside glibc, as follows:
79664
79665         * lib/tempname.c (struct_stat64): New macro.
79666         (direxists, __gen_tempname): Use it.
79667         This avoids a portability problem with Solaris 8.
79668
79669         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
79670         (<stddef.h>, <stdint.h>, <string.h>):
79671         Include only if STDC_HEADERS || _LIBC.
79672         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
79673         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
79674         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
79675         (__set_errno): Define this macro if <errno.h> doesn't.
79676         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
79677         Define these macros if <stdio.h> doesn't.
79678         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
79679         Define these macros if <sys/stat.h>
79680         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
79681         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
79682         __xstat64): Define if not _LIBC.
79683         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
79684         (__gen_tempname): Invoke gettimeofday only if
79685         HAVE_GETTIMEOFDAY || _LIBC;
79686         otherwise, fall back on plain "time".
79687         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
79688
79689         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
79690
79691         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
79692
79693 2001-02-18  Paul Eggert  <eggert@twinsun.com>
79694
79695         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
79696
79697 2001-02-17  Paul Eggert  <eggert@twinsun.com>
79698
79699         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
79700         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
79701         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
79702         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
79703
79704 2001-02-17  Paul Eggert  <eggert@twinsun.com>
79705
79706         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
79707         Remove workaround macros for hosts that have mbrtowc but not
79708         mbstate_t, as we now insist on proper declarations for both
79709         before using mbrtowc.
79710
79711 2001-02-17  Jim Meyering  <meyering@lucent.com>
79712
79713         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
79714         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
79715         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
79716         UnixWare 7.1.1.
79717
79718         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
79719         rather than AC_CACHE_VAL.
79720
79721 2001-02-17  Jim Meyering  <meyering@lucent.com>
79722
79723         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
79724         around included file name.
79725
79726         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
79727
79728         * lib/strftime.c: Update from GNU libc (the only changes were to
79729         comments).
79730
79731 2001-02-17  Jim Meyering  <meyering@lucent.com>
79732
79733         * lib/regex.c: Update from libc.
79734
79735 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
79736
79737         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
79738         clash.
79739
79740 2001-02-16  Paul Eggert  <eggert@twinsun.com>
79741
79742         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
79743         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
79744         Reported by Mark Hounschell via Paul Eggert.
79745
79746 2001-02-07  Jim Meyering  <meyering@lucent.com>
79747
79748         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
79749
79750 2001-02-05  Jim Meyering  <meyering@lucent.com>
79751
79752         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
79753         it includes the patch required for `large file' support with at least
79754         HP-UX's 10.20 /bin/cc.
79755
79756 2001-02-03  Jim Meyering  <meyering@lucent.com>
79757
79758         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
79759         AS_IF, now that it works once again (mysteriously).
79760         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
79761
79762 2001-01-30  Jim Meyering  <meyering@lucent.com>
79763
79764         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
79765         * m4/chown.m4: Rename conftestchown to conftest.chown.
79766         * m4/rename.m4: s/conftestdir/conftest.d1/ and
79767         s/conftestdir2/conftest.d2/.
79768         * m4/utimes.m4: s/conftestdata/conftest.data/
79769         Inspired by Pavel Roskin's change in autoconf.
79770
79771 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
79772
79773         * lib/config.charset: Update for FreeBSD 4.2.
79774
79775 2001-01-27  Jim Meyering  <meyering@lucent.com>
79776
79777         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
79778         a use of AS_IF.
79779         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
79780
79781 2001-01-26  Jim Meyering  <meyering@lucent.com>
79782
79783         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
79784         quotearg.c includes it.
79785
79786 2001-01-26  Jim Meyering  <meyering@lucent.com>
79787
79788         * lib/quotearg.c: Include stddef.h.
79789         * lib/quote.c: Include stddef.h.
79790         Reported by Axel Kittenberger.
79791
79792         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
79793         line in double quotes so that it evokes a better diagnostic.
79794         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
79795         Reported by Axel Kittenberger.
79796
79797 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
79798
79799         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
79800         as if it was a `charset'.
79801
79802 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
79803
79804         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
79805         has const.
79806
79807 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
79808
79809         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
79810         to avoid a warning.  Add back 'const' to inptr.
79811
79812 2001-01-20  Jim Meyering  <meyering@lucent.com>
79813
79814         Be sure that headers are checked before used in code compiled
79815         for the type checks.
79816         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
79817         In place of that, invoke jm_CHECK_ALL_TYPES.
79818         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
79819         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
79820         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
79821         The check for ssize_t was mistakenly run before the test for unistd.h.
79822
79823         The configure-time check for stdbool.h was missing.
79824         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
79825         (jm_PREREQ_HASH): New function.
79826
79827 2001-01-17  Jim Meyering  <meyering@lucent.com>
79828
79829         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
79830         for autoconf-2.49c.
79831         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
79832
79833 2001-01-16  Jim Meyering  <meyering@lucent.com>
79834
79835         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
79836         From Bruno Haible.
79837
79838 2001-01-14  Jim Meyering  <meyering@lucent.com>
79839
79840         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
79841         foo and bar.  Create conftestdir/ in the script, not in the C code.
79842         Remove directories in the script, not in the C code.
79843         Remove conftestdir{,2} before trying to create the directory.
79844         Make the entire configure script fail if the mkdir fails.
79845
79846 2001-01-14  Jim Meyering  <meyering@lucent.com>
79847
79848         * lib/rename.c: New file.  From Volker Borchert.
79849         Include stdlib.h, string.h or strings.h, and xalloc.h.
79850         Use strip_trailing_slashes rather than open-coding it.
79851
79852 2001-01-03  Paul Eggert  <eggert@twinsun.com>
79853
79854         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
79855
79856 2001-01-03  Jim Meyering  <meyering@lucent.com>
79857
79858         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
79859         of local `inptr' to avoid warning with some system declarations of
79860         iconv.
79861
79862 2001-01-02  Volker Borchert  <bt@teknon.de>
79863
79864         * m4/rename.m4: New file.
79865         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
79866
79867 2001-01-01  Jim Meyering  <meyering@lucent.com>
79868
79869         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
79870         even on systems with utmpx.h.  It's necessary for the declaration of
79871         utmp's ut_user member.  Reported by Andreas Jaeger.
79872
79873         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
79874         available. They are required for the declarations of getgrgid and
79875         getpwuid resp.
79876         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
79877         Reported by Andreas Jaeger.
79878
79879 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
79880
79881         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
79882         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
79883         so `make install' also works in VPATH builds.
79884
79885 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
79886
79887         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
79888         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
79889         can be used in subdirectories.
79890
79891 2000-12-29  Paul Eggert  <eggert@twinsun.com>
79892
79893         * lib/modechange.c: Do not assume that mode_t uses the
79894         traditional octal encoding.  E.g. "chmod 1 FOO" should set
79895         the other-execute bit of FOO even if S_IXOTH != 1.
79896
79897         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
79898         WOTH, XOTH, ALLM): New macros.
79899         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
79900          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
79901         Use them.
79902         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
79903         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
79904         (mode_compile):
79905         No need to use uintmax_t; unsigned long is long enough.
79906         Don't bother to get suffix since we don't use it.
79907
79908 2000-12-26  Jim Meyering  <meyering@lucent.com>
79909
79910         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
79911         better with autoheader.
79912
79913 2000-12-24  Jim Meyering  <meyering@lucent.com>
79914
79915         * lib/hash.c (is_prime): Return explicit boolean values.
79916         (hash_get_first): Return NULL to appease Irix5.6's 89.
79917         Reported by Nelson Beebe.
79918
79919 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
79920
79921         * lib/localcharset.c (locale_charset): Add support for Win32.
79922
79923 2000-12-18  Paul Eggert  <eggert@twinsun.com>
79924
79925         * lib/physmem.h, lib/physmem.c: New files.
79926
79927         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
79928         (noinst_HEADERS): Add physmem.h.
79929
79930         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
79931         't' for compatibility with Solaris 8 sort.
79932
79933 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
79934
79935         * lib/config.charset: Add support for BeOS.
79936
79937 2000-12-17  Jim Meyering  <meyering@lucent.com>
79938
79939         * m4/dos.m4 (jm_AC_DOS): New file and macro.
79940         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
79941
79942 2000-12-16  Jim Meyering  <meyering@lucent.com>
79943
79944         This bug had a serious impact on chown: `chown N:M FILE' (for integer
79945         N and M) would have treated it like `chown N:N FILE'.
79946
79947         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
79948
79949 2000-12-16  Jim Meyering  <meyering@lucent.com>
79950
79951         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
79952         SHELLS_FILE to a file name that's useful on djgpp systems.
79953         Include stdlib.h.
79954         (ADDITIONAL_DEFAULT_SHELLS): Define.
79955         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
79956         Based mostly on a patch from Prashant TR.
79957
79958 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
79959
79960         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
79961         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
79962         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
79963
79964 2000-12-08  Andreas Schwab  <schwab@suse.de>
79965
79966         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
79967         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
79968
79969 2000-12-07  Jim Meyering  <meyering@lucent.com>
79970
79971         * lib/stripslash.c (ISSLASH): Define.
79972         (strip_trailing_slashes): Use ISSLASH rather than comparing against
79973         `/'.
79974         From Prashant TR.
79975
79976         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
79977         (dir_name_r): Declare this function as static.
79978         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
79979         manifest itself on a name containing a mix of slashes and
79980         backslashes.
79981         Make this function work with names starting with a DOS-style
79982         drive letter and colon prefix.
79983         (dir_name): Append `.' if necessary.
79984         Based mostly on patches from Prashant TR and Eli Zaretskii.
79985
79986         * lib/dirname.h (dir_name_r): Remove prototype.
79987
79988 2000-12-06  Paul Eggert  <eggert@twinsun.com>
79989
79990         * m4/off_t-format.m4: Remove this file.
79991         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
79992
79993 2000-12-06  Jim Meyering  <meyering@lucent.com>
79994
79995         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
79996         replacement strtoull, we may well need the replacement strtoul, too.
79997         Check for declarations of strtoul and strtoull.
79998         Check for strtol.  Mainly as a cue to cause automake to include
79999         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
80000         Check for limits.h -- strtol.c needs it.
80001
80002 2000-12-05  Jim Meyering  <meyering@lucent.com>
80003
80004         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
80005
80006 2000-12-04  Jim Meyering  <meyering@lucent.com>
80007
80008         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
80009         Also include memory.h, stdlib.h, unistd.h if appropriate.
80010         Reported by Andreas Jaeger (conflicting declaration of malloc).
80011
80012 2000-12-02  Jim Meyering  <meyering@lucent.com>
80013
80014         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
80015         * m4/jm-macros.m4 (jm_MACROS): require it.
80016
80017 2000-12-02  Jim Meyering  <meyering@lucent.com>
80018
80019         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
80020
80021 2000-12-01  Paul Eggert  <eggert@twinsun.com>
80022
80023         * lib/memrchr.c: Include <config.h> before any system include file.
80024
80025 2000-11-30  Jim Meyering  <meyering@lucent.com>
80026
80027         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
80028
80029 2000-11-30  Jim Meyering  <meyering@lucent.com>
80030
80031         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
80032
80033 2000-11-29  Paul Eggert  <eggert@twinsun.com>
80034
80035         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
80036
80037 2000-11-26  Jim Meyering  <meyering@lucent.com>
80038
80039         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
80040
80041 2000-11-22  Paul Eggert  <eggert@twinsun.com>
80042
80043         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
80044         size of (size_t) -1; it's not portable.
80045
80046 2000-11-17  Jim Meyering  <meyering@lucent.com>
80047
80048         * lib/strstr.c: Update from GNU libc.
80049
80050 2000-11-17  Akim Demaille  <akim@epita.fr>
80051
80052         * lib/obstack.h: Formatting changes.
80053         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
80054         prevent type checking.
80055         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
80056         cast the value to (void *): assigning a `foo *' to a `void *'
80057         variable is valid.
80058         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
80059
80060 2000-11-16  Jim Meyering  <meyering@lucent.com>
80061
80062         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
80063
80064 2000-11-11  Jim Meyering  <meyering@lucent.com>
80065
80066         * lib/error.c: Add a couple #includes, merging from GNU libc version.
80067
80068 2000-11-10  Jim Meyering  <meyering@lucent.com>
80069
80070         * lib/obstack.h: Update from GNU libc.
80071         * lib/obstack.c: Likewise.
80072
80073 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
80074
80075         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
80076
80077 2000-11-06  Paul Eggert  <eggert@twinsun.com>
80078
80079         * lib/getusershell.c (setusershell): Use rewind rather than
80080         fseek/fseeko, to avoid configuration hassles with fseeko.
80081         Don't bother opening SHELLS_FILE if shellstream is NULL;
80082         it's not necessary.
80083
80084 2000-11-05  Jim Meyering  <meyering@lucent.com>
80085
80086         * lib/makepath.h (make_dir): Declare.
80087         * lib/makepath.c (make_dir): Remove `static' attribute.
80088         Tweak a comment.
80089
80090 2000-11-04  Jim Meyering  <meyering@lucent.com>
80091
80092         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
80093
80094 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
80095
80096         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
80097         last one in a bucket, advance to the next bucket.
80098
80099 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
80100
80101         * lib/fnmatch.c: Do not comment out all the code if we are using
80102         the GNU C library, because in some cases we are replacing buggy
80103         code in the GNU C library itself.
80104
80105 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
80106
80107         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
80108         (regex_compile): Catch bogus \(\1\).
80109
80110 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80111
80112         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
80113         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
80114         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
80115
80116 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80117
80118         * lib/error.h, getline.h, modechange.h:
80119         Remove "2000" from Copyright line, as the file hasn't been
80120         changed this year other than in the copyright notice.
80121
80122         * lib/xalloc.h: Add "2000" to Copyright line, as this file
80123         was changed this year.
80124
80125 2000-10-29  Jim Meyering  <meyering@lucent.com>
80126
80127         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
80128         renaming.
80129         * m4/ls-mntd-fs.m4: Likewise
80130
80131 2000-10-29  Jim Meyering  <meyering@lucent.com>
80132
80133         * lib/xstat.in: Fix grammar in comment.
80134
80135 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
80136
80137         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
80138         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
80139         doesn't define __restrict_arr.
80140
80141 2000-10-28  Jim Meyering  <meyering@lucent.com>
80142
80143         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
80144         (jm_PREREQ_MEMCHR): New function.
80145
80146 2000-10-28  Jim Meyering  <meyering@lucent.com>
80147
80148         * lib/memchr.c: Update from libc.
80149         Adjust for portability:
80150         [HAVE_STDLIB_H]: Include stdlib.h.
80151         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
80152         Undef __memchr, too.
80153         [!weak_alias]: Define __memchr to memchr.
80154
80155         * lib/regex.c: Update from libc.
80156         * lib/regex.h: Likewise.
80157         * lib/getopt1.c: Likewise.
80158         * lib/memcmp.c: Likewise.
80159
80160         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
80161         Avoid using fseek, when possible -- it's broken by design.
80162         Patch by Ulrich Drepper.
80163
80164 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
80165
80166         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
80167         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
80168         Giving in to popular pressure to shut up the compiler with casts.
80169
80170 2000-10-26  Jim Meyering  <meyering@lucent.com>
80171
80172         * lib/strftime.c: Update from libc.
80173
80174 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
80175
80176         * regex.c: More `unsigned char' -> `re_char' changes.
80177         Also change several `int' into `re_wchar_t'.
80178         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
80179         (PUSH_FAILURE_POINTER): Don't cast any more.
80180         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
80181         We want GCC to complain, since this piece of code makes
80182         re_match non-reentrant, which *should* be fixed.
80183         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
80184         (EXTEND_BUFFER): Use RETALLOC.
80185         (SET_LIST_BIT): Don't cast.
80186         (re_wchar_t): New type.
80187         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
80188         that those two functions will always properly return.
80189         (IMMEDIATE_QUIT_CHECK): Cast to void.
80190         (analyse_first): Use recursion rather than an explicit stack.
80191         (re_compile_fastmap): Can't fail anymore.
80192         (re_search_2): Don't check re_compile_fastmap for failure.
80193         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
80194         Now also sets the new value (passed in a new argument).
80195         (re_match_2_internal): Use it.
80196         Also, use a new var `reg' of type size_t when looping through regs
80197         rather than reuse the inappropriate `mcnt'.
80198
80199 2000-10-25  Jim Meyering  <meyering@lucent.com>
80200
80201         * lib/obstack.c: Update from libc.
80202
80203 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
80204
80205         * regex.c (regex_compile): Change the way of handling a range from
80206         a char less than 256 to a char not less than 256.
80207
80208 2000-10-24  Andrew Innes  <andrewi@gnu.org>
80209
80210         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
80211         NT-Emacs only.
80212         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
80213         so that re_search functions only quit when callers expect them to.
80214
80215 2000-10-23  Jim Meyering  <meyering@lucent.com>
80216
80217         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
80218         wrong.  That set_locale call must not have any side effects.
80219         From Paul Eggert.
80220
80221 2000-10-22  Jim Meyering  <meyering@lucent.com>
80222
80223         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
80224         [CYCLIC]: Remove now-unused definition.
80225
80226         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
80227         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
80228         Suggestion from Ulrich Drepper.
80229
80230 2000-10-21  Jim Meyering  <meyering@lucent.com>
80231
80232         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
80233         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
80234         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
80235
80236 2000-10-21  Jim Meyering  <meyering@lucent.com>
80237
80238         * lib/dirname.c (memrchr): Declare if necessary.
80239         (dir_name): Remove the restriction that there be no
80240         trailing slashes.  Now, this code skips past them, effectively
80241         ignoring them.
80242         [TEST_DIRNAME] (main): New unit tests.
80243
80244         * lib/memrchr.c: New file from GNU libc.
80245         Undef __memrchr, too.
80246         [!weak_alias]: Define __memrchr to memrchr.
80247         Guard weak_alias use with `#ifdef weak_alias'.
80248
80249 2000-10-21  Jim Meyering  <meyering@lucent.com>
80250
80251         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
80252         (dir_name): Use dir_name_r.
80253         * lib/dirname.h (dir_name_r): Declare it.
80254
80255 2000-10-17  Jim Meyering  <meyering@lucent.com>
80256
80257         * lib/quote.h (PARAMS): Define and use.
80258         Reported by Akim Demaille.
80259
80260         * lib/getopt.c: Update from libc.
80261
80262 2000-10-16  Jim Meyering  <meyering@lucent.com>
80263
80264         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
80265         setlocale.
80266         From Jan Fedak.
80267
80268 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
80269
80270         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
80271
80272 2000-09-25  Jim Meyering  <meyering@lucent.com>
80273
80274         * lib/md5.h (rol): Define (from GnuPG).
80275
80276         * lib/sha.c: Give credit (GnuPG) where due.
80277         (M): Use rol rather than open-coding it.
80278         Add a FIXME comment.
80279
80280 2000-09-21  Jim Meyering  <meyering@lucent.com>
80281
80282         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
80283         Reported by Michael Stone.
80284
80285 2000-09-20  Jim Meyering  <meyering@lucent.com>
80286
80287         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
80288         (noinst_HEADERS): Add sha.h.
80289         Based on code from Scott G. Miller and from GnuPG.
80290
80291 2000-09-18  Jim Meyering  <meyering@lucent.com>
80292
80293         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
80294         LIBS. Otherwise, everyone ends up linking with -lelf for some
80295         configurations.
80296         Reported by Mike Stone.
80297
80298 2000-09-15  Jim Meyering  <meyering@lucent.com>
80299
80300         * lib/regex.c: Update from libc.
80301
80302 2000-09-10  Jim Meyering  <meyering@lucent.com>
80303
80304         * lib/getopt.c (_getopt_internal): Update from glibc.
80305
80306 2000-09-09  Jim Meyering  <meyering@lucent.com>
80307
80308         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
80309         think it should be used as a general replacement for isascii.
80310         * lib/fnmatch.c: Likewise.
80311         * lib/mbswidth.c: Likewise
80312         * lib/regex.c: Likewise.
80313
80314         Don't use atoi.
80315         * lib/userspec.c: Include sys/param.h and limits.h.
80316         Include xstrtol.h.
80317         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
80318         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
80319         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
80320         UID, GID.  Check range.
80321
80322 2000-09-06  Jim Meyering  <meyering@lucent.com>
80323
80324         * lib/getopt.c (_getopt_internal): Update from glibc.
80325
80326 2000-08-30  Jim Meyering  <meyering@lucent.com>
80327
80328         * lib/strftime.c: Merge in changes from GNU libc.
80329
80330 2000-08-26  Jim Meyering  <meyering@lucent.com>
80331
80332         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
80333         * m4/fpending.m4: New file.
80334
80335 2000-08-26  Jim Meyering  <meyering@lucent.com>
80336
80337         * lib/closeout.c: Include "__fpending.h".
80338         (close_stdout_status): Return right away if there's nothing to flush.
80339
80340         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
80341         * lib/__fpending.c: New file.
80342         * lib/__fpending.h: New file.
80343
80344 2000-08-20  Jim Meyering  <meyering@lucent.com>
80345
80346         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
80347         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
80348         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
80349
80350 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
80351
80352         Improve fileutils installation on systems where running
80353         programs (like install) can't be unlinked.
80354         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
80355         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
80356
80357 2000-08-07  Paul Eggert  <eggert@twinsun.com>
80358
80359         Standardize on "memory exhausted" instead of "Memory exhausted"
80360         or "virtual memory exhausted".
80361         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
80362         "virtual memory exhausted".
80363         * lib/same.c (same_name): Invoke xalloc_die instead of printing
80364         our own message.
80365         * lib/userspec.c (parse_user_spec): Likewise.
80366         * lib/bumpalloc.h: comment fix
80367         * lib/same.c, userspec.c: Include xalloc.h.
80368
80369         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
80370         not char *const and pointing to a constant array.
80371         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
80372         (xrealloc): Comment fix.
80373
80374         * lib/userspec.c (parse_user_spec):
80375         Don't translate a message until just before returning,
80376         to avoid unnecessary translation.
80377
80378 2000-08-07  Jim Meyering  <meyering@lucent.com>
80379
80380         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
80381         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
80382         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
80383         getgroups.c, gethostname.c, getopt.h, group-member.c,
80384         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
80385         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
80386         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
80387         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
80388         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
80389         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
80390         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
80391         yesno.c: Back out Copyright date changes for each file with no change
80392         this year.  This eases coordination with other programs using the same
80393         source code modules.  From Paul Eggert.
80394
80395 2000-08-06  Paul Eggert  <eggert@twinsun.com>
80396
80397         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
80398         not char, for compatibility with glibc 2.1.3 strftime.c.
80399
80400 2000-08-03  Greg McGary  <greg@mcgary.org>
80401
80402         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
80403         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
80404         (EXTEND_BUFFER): Use them.
80405
80406 2000-08-01  Jim Meyering  <meyering@lucent.com>
80407
80408         * lib/dirname.c (ISSLASH): Define.
80409         (BACKSLASH_IS_PATH_SEPARATOR): Define.
80410         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
80411         both `\' and `/' may be use as path separators.
80412         Based on a patch from Prashant TR.
80413
80414 2000-07-31  Paul Eggert  <eggert@twinsun.com>
80415
80416         * lib/quotearg.c (quotearg_n_options): Don't make the initial
80417         slot vector a constant, since it might get modified.
80418
80419 2000-07-31  Jim Meyering  <meyering@lucent.com>
80420
80421         * lib/xmalloc.c: Use `virtual memory exhausted', not
80422         `Memory exhausted'.
80423         * lib/obstack.c (print_and_abort): Likewise.
80424
80425 2000-07-30  Paul Eggert  <eggert@twinsun.com>
80426
80427         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
80428         buffer, so that the caller can always quote one small
80429         component of a "memory exhausted" message in slot 0.
80430         From a suggestion by Jim Meyering.
80431
80432 2000-07-30  Jim Meyering  <meyering@lucent.com>
80433
80434         * lib/makepath.c (make_path): Quote the other instance, too.
80435
80436         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
80437         (STATIC_BUF_SIZE): Define.
80438         (quotearg_n_options): Use only statically allocated storage when
80439         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
80440         than STATIC_BUF_SIZE.
80441
80442 2000-07-29  Jim Meyering  <meyering@lucent.com>
80443
80444         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
80445         * lib/dirname.c (dir_name): Likewise.
80446
80447         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
80448         `/'.
80449
80450         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
80451         (dir_name): Assert that there are no trailing slashes.
80452
80453 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
80454
80455         * lib/mbswidth.h (mbswidth): Add a flags argument.
80456         (mbswidth): New declaration.
80457         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
80458         * lib/mbswidth.c (mbswidth): Add a flags argument.
80459         (mbsnwidth): New function.
80460
80461 2000-07-24  Jim Meyering  <meyering@lucent.com>
80462
80463         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
80464
80465 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80466
80467         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
80468
80469 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80470
80471         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
80472         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
80473         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
80474         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
80475         invoke multibyte primitives.
80476
80477 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80478
80479         * lib/quotearg.c:
80480         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
80481         so that mbstate_t is always defined.
80482
80483         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
80484         be 1 in at least one GCC installation, and this configuration
80485         error is likely to be common.  Ignoring MB_LEN_MAX hurts
80486         performance on hosts that have mbrtowc but have only unibyte
80487         locales, but I assume these hosts are rare.
80488
80489 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80490
80491         * lib/mbswidth.c (_XOPEN_SOURCE):
80492         Don't define; this causes problems on Solaris 7.
80493         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
80494
80495 2000-07-23  Jim Meyering  <meyering@lucent.com>
80496
80497         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
80498         too: getgrgid, getpwuid, getuid.
80499
80500 2000-07-23  Jim Meyering  <meyering@lucent.com>
80501
80502         * lib/basename.c (base_name): Add an assertion.
80503
80504 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
80505
80506         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
80507         shadow its mbsinit function.
80508
80509 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80510
80511         * lib/mbswidth.h: New file.
80512         * lib/mbswidth.c: New file.
80513         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
80514         (noinst_HEADERS): Add mbswidth.h.
80515
80516 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80517
80518         * lib/config.charset: Add support for FreeBSD. Improve support for
80519         HP-UX and IRIX 6.
80520
80521 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
80522
80523         * m4/mbswidth.m4: New file.
80524         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
80525
80526 2000-07-15  Jim Meyering  <meyering@lucent.com>
80527
80528         * lib/makepath.c: Include quote.h.
80529         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
80530         corresponding argument in a `quote (...)' call.
80531         Give better diagnostics.
80532
80533         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
80534         (noinst_HEADERS): Add quote.h.
80535
80536         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
80537         from tar's src/misc.c.
80538         * lib/quote.h: New file.  Prototypes for same.
80539
80540 2000-07-14  Paul Eggert  <eggert@twinsun.com>
80541
80542         From a suggestion by Bruno Haible.
80543         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
80544         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
80545         to decide whether to define the BeOS workaround macro;
80546         this adjusts to the change to AC_MBSTATE_T.
80547
80548 2000-07-14  Jim Meyering  <meyering@lucent.com>
80549
80550         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
80551         jm_AC_TYPE_UINTMAX_T.
80552
80553 2000-07-13  Paul Eggert  <eggert@twinsun.com>
80554
80555         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
80556
80557         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
80558         quotearg_buffer_restyled): Add support for
80559         clocale_quoting_style.  Undo previous change to
80560         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
80561         and "{RIGHT QUOTATION MARK}" msgids.
80562
80563 2000-07-10  Paul Eggert  <eggert@twinsun.com>
80564
80565         From a suggestion by Bruno Haible.
80566         * m4/mbstate_t.m4 (AC_MBSTATE_T):
80567         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
80568         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
80569         and mbstate_t, to a single-part test that simply defines mbstate_t.
80570         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
80571         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
80572
80573 2000-07-10  Jim Meyering  <meyering@lucent.com>
80574
80575         * m4/strerror_r.m4: Mirror the correction made in autoconf.
80576
80577         * m4/gnu-source.m4: Output to confdefs.h directly.
80578         Suggestion from Akim Demaille.
80579
80580 2000-07-09  Paul Eggert  <eggert@twinsun.com>
80581
80582         The old behavior of quoting `like this' doesn't look good with
80583         newer, ISO-style fonts.  See:
80584         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
80585
80586         Instead, quote "like this" by default.  Let the translator
80587         tailor the locale-specific quoting behavior by providing
80588         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
80589
80590         * lib/quotearg.c (N_): New macro.
80591         (gettext_default): New function.
80592         (quotearg_buffer_restyled): Use
80593         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
80594         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
80595
80596 2000-07-09  Jim Meyering  <meyering@lucent.com>
80597
80598         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
80599         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
80600
80601         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
80602         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
80603
80604 2000-07-09  Jim Meyering  <meyering@lucent.com>
80605
80606         * lib/Most files: Update copyright dates to include 2000.
80607
80608 2000-07-08  Jim Meyering  <meyering@lucent.com>
80609
80610         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
80611         if not defined.
80612         (xgethostname): Remove now-unnecessary #ifdef.
80613         Move declaration of `err' into loop where it's used.
80614
80615 2000-07-05  Paul Eggert  <eggert@twinsun.com>
80616         and Bruno Haible  <haible@clisp.cons.org>
80617
80618         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
80619         only if the test for an object-type mbstate_t fails.  This
80620         prevents us from mistakenly reporting that mbstate_t is a
80621         system object type after we "#define mbstate_t int" to work
80622         around its lack.
80623
80624 2000-07-05  Paul Eggert  <eggert@twinsun.com>
80625         and Bruno Haible  <haible@clisp.cons.org>
80626
80627         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
80628
80629 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80630
80631         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
80632         to strerror_r.
80633         Include <ctype.h> for use of isalpha.
80634
80635 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80636
80637         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
80638         by allocating a larger buffer. Test the gethostname return value for
80639         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
80640         returns an error and ENAMETOOLONG isn't defined.
80641
80642 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80643
80644         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
80645         dimension.
80646
80647 2000-07-04  Jim Meyering  <meyering@lucent.com>
80648
80649         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
80650         of the deprecated AC_CHECKING.
80651
80652 2000-07-04  Jim Meyering  <meyering@lucent.com>
80653
80654         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
80655         Reported by Bruno Haible.
80656
80657 2000-07-04  Jim Meyering  <meyering@lucent.com>
80658
80659         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
80660         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
80661         lacks mbrtowc.
80662
80663 2000-07-03  Paul Eggert  <eggert@twinsun.com>
80664
80665         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
80666         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
80667
80668 2000-07-03  Paul Eggert  <eggert@twinsun.com>
80669         and Bruno Haible  <haible@clisp.cons.org>
80670
80671         * lib/quotearg.c (mbrtowc):
80672         Assign to *pwc, and return 1 only if result is nonzero.
80673         (iswprint): Use ISPRINT when substituting our own mbrtowc.
80674
80675 2000-07-03  Jim Meyering  <meyering@lucent.com>
80676
80677         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
80678
80679 2000-07-03  Jim Meyering  <meyering@lucent.com>
80680
80681         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
80682         This is necessary to get a definition of e.g., UTMP_FILE on
80683         HP-UX 10.20.
80684         From Bob Proulx.
80685
80686 2000-07-02  Jim Meyering  <meyering@lucent.com>
80687
80688         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
80689
80690         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
80691         AC_LIBOBJ(function_name).
80692         * m4/chown.m4: Likewise.
80693         * m4/fnmatch.m4: Likewise.
80694         * m4/ftruncate.m4: Likewise.
80695         * m4/getgroups.m4: Likewise.
80696         * m4/getline.m4: Likewise.
80697         * m4/group-member.m4: Likewise.
80698         * m4/jm-macros.m4: Likewise.
80699         * m4/lstat.m4: Likewise.
80700         * m4/malloc.m4: Likewise.
80701         * m4/memcmp.m4: Likewise.
80702         * m4/nanosleep.m4: Likewise.
80703         * m4/putenv.m4: Likewise.
80704         * m4/realloc.m4: Likewise.
80705         * m4/regex.m4: Likewise.
80706         * m4/stat.m4: Likewise.
80707         * m4/strftime.m4: Likewise.
80708
80709 2000-07-02  Jim Meyering  <meyering@lucent.com>
80710
80711         * lib/quotearg.c (mbstate_t): Don't define here.
80712
80713 2000-07-02  Jim Meyering  <meyering@lucent.com>
80714
80715         * lib/nanosleep.c (SIGCONT): Define if not already defined.
80716
80717 2000-07-01  Jim Meyering  <meyering@lucent.com>
80718
80719         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
80720
80721 2000-07-01  Jim Meyering  <meyering@lucent.com>
80722
80723         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
80724         problem.
80725
80726 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
80727
80728         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
80729         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
80730
80731 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
80732
80733         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
80734         per change in ../m4/ls-mntd-fs.m4.
80735         (read_filesystem_list): Ignore symbolic links.
80736
80737 2000-06-29  Jim Meyering  <meyering@lucent.com>
80738
80739         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
80740         for declaration of strcmp.
80741
80742         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
80743
80744         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
80745         Avoid warning by casting result to `char *' to remove `const'.
80746
80747 2000-06-28  Jim Meyering  <meyering@lucent.com>
80748
80749         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
80750         included by quotearg.c, for which we perform this test.  From
80751         Bruno Haible.
80752
80753 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
80754
80755         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
80756         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
80757         <utmpx.h> exists, put readutmp.o into LIBOBJS.
80758
80759 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
80760
80761         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
80762
80763 2000-06-26  Paul Eggert  <eggert@twinsun.com>
80764
80765         savedir now sets errno on failure and invokes xmalloc to get memory.
80766         Fix a couple of other minor bugs while we're at it.
80767
80768         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
80769         (NAMLEN): Remove macro.
80770         (malloc, realloc): Remove decls.
80771         (stpcpy): Likewise.
80772         ("xalloc.h"): Include.
80773         (NAME_SIZE_DEFAULT): New macro.
80774         (savedir): Use xmalloc / xrealloc to allocate memory.
80775         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
80776         Skip "" directory entries.
80777         Use strlen to calculate directory entry length, since the old method
80778         is rarely used these days and isn't worth supporting.
80779         Don't use a pointer after freeing it.
80780         Check for integer overflow when calculating allocation size.
80781         Use memcpy to copy entries, instead of stpcpy.
80782         Set errno properly when returning NULL.
80783         Check for readdir error.
80784
80785 2000-06-26  Jim Meyering  <meyering@lucent.com>
80786
80787         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
80788
80789 2000-06-25  Jim Meyering  <meyering@lucent.com>
80790
80791         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
80792         Linux header bug when _XOPEN_SOURCE is defined to 500.
80793
80794 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
80795
80796         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
80797         deficiency.
80798
80799 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
80800
80801         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
80802         Include xalloc.h.
80803         Don't include <stdlib.h>.  Don't declare malloc, realloc.
80804
80805 2000-06-24  Jim Meyering  <meyering@lucent.com>
80806
80807         * m4/strerror_r.m4: Revive this file -- to try out an experimental
80808         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
80809         for which strerror does return char*, but which lacks a conveniently
80810         accessible declaration of the function.  If the compile-test says
80811         strerror_r doesn't work, then resort to a `run'-test that works on
80812         BeOS and segfaults on DEC Unix.
80813
80814 2000-06-24  Jim Meyering  <meyering@lucent.com>
80815
80816         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
80817
80818 2000-06-23  Paul Eggert  <eggert@twinsun.com>
80819
80820         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
80821         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
80822
80823 2000-06-23  Paul Eggert  <eggert@twinsun.com>
80824
80825         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
80826         (mbrtowc, mbstate_t): Define substitutes if
80827         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
80828         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
80829         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
80830
80831 2000-06-23  Jim Meyering  <meyering@lucent.com>
80832
80833         * m4/afs.m4: Add missing AC_MSG_RESULT.
80834         Reported by Bruno Haible.
80835
80836         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
80837         Suggestion from Bruno Haible.
80838
80839 2000-06-23  Jim Meyering  <meyering@lucent.com>
80840
80841         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
80842
80843 2000-06-21  Jim Meyering  <meyering@lucent.com>
80844
80845         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
80846
80847 2000-06-21  Jim Meyering  <meyering@lucent.com>
80848
80849         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
80850         (noinst_HEADERS): Add getstr.h.
80851
80852         * lib/getline.c (getstr): Move into a separate file.
80853         * lib/getstr.c (getstr): New file, extracted from getline.c, with
80854         the following changes: new parameter, delim2; both delim[12]
80855         parameters have type `int', not `char'.  The latter would lose
80856         with 8-bit delimiters.
80857         * lib/getstr.h: New file.
80858
80859 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80860
80861         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
80862         than 1024, return a memory chunk of least possible size, instead
80863         of size PATH_MAX + 2. In the loop, increment the size proportionally.
80864         Use free/xmalloc instead of xrealloc to avoid copying for very long
80865         paths.
80866
80867 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80868
80869         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
80870         the empty string.
80871
80872 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80873
80874         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
80875         address, not strdup.  Include <stdlib.h> and don't declare free().
80876
80877 2000-06-19  Jim Meyering  <meyering@lucent.com>
80878
80879         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
80880
80881 2000-06-18  Jim Meyering  <meyering@lucent.com>
80882
80883         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
80884
80885         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
80886         `checking whether...' message to be consistent with that of the
80887         lstat test.
80888
80889 2000-06-18  Jim Meyering  <meyering@lucent.com>
80890
80891         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
80892         Besides, these days every porting target provides a mkdir function.
80893
80894         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
80895         needed. (this snippet comes from src/system.h).
80896
80897 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
80898
80899         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
80900
80901 2000-06-15  Paul Eggert  <eggert@twinsun.com>
80902
80903         * lib/human.c (adjust_value): New function.
80904         (human_readable_inexact): Apply rounding style even when
80905         printing approximate values.
80906
80907 2000-06-14  Paul Eggert  <eggert@twinsun.com>
80908
80909         * lib/human.c (human_readable_inexact): Allow an input block
80910         size that is not a multiple of the output block size, and vice versa.
80911         Reported by Piergiorgio Sartor.
80912
80913 2000-06-14  Paul Eggert  <eggert@twinsun.com>
80914
80915         * lib/getdate.y (get_date): Apply relative times after time
80916         zone indicator, not before.  Reported by Todd A. Jacobs.
80917
80918 2000-06-13  Jim Meyering  <meyering@lucent.com>
80919
80920         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
80921
80922         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
80923
80924 2000-06-12  Paul Eggert  <eggert@twinsun.com>
80925
80926         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
80927
80928 2000-06-12  Jim Meyering  <meyering@lucent.com>
80929
80930         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
80931         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
80932         optional argument.
80933         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
80934         the optional argument, `lib'.
80935
80936 2000-06-08  Jim Meyering  <meyering@lucent.com>
80937
80938         * m4/largefile.m4: Remove file (now that it's part of autoconf).
80939
80940 2000-06-04  Paul Eggert  <eggert@twinsun.com>
80941
80942         Rewrite largefile configuration so that we don't need to run
80943         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
80944         AC_CANONICAL_HOST in configure.in -- jmm]
80945
80946         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
80947         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
80948         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
80949         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
80950         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
80951         All uses changed.
80952         Instead of inspecting the output of getconf, try to compile the
80953         test program without and with the macro definition.
80954         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
80955         for getconf.  Instead, check for the needed flags by compiling
80956         test programs.
80957
80958 2000-06-04  Paul Eggert  <eggert@twinsun.com>
80959
80960         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
80961
80962 2000-06-04  Jim Meyering  <meyering@lucent.com>
80963
80964         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
80965         SunOS 4.1.4 for which gid_t is an unsigned type.
80966
80967 2000-06-03  Jim Meyering  <meyering@lucent.com>
80968
80969         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
80970         now that autoconf requires that.
80971
80972         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
80973         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
80974         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
80975
80976 2000-06-03  Jim Meyering  <meyering@lucent.com>
80977
80978         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
80979
80980 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
80981
80982         * m4/glibc21.m4: New file.
80983         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
80984
80985 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
80986
80987         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
80988         newer, don't install charset.alias.
80989         * lib/config.charset: Change the Linux/glibc rules so they become empty
80990         on glibc-2.1 or newer.
80991
80992 2000-06-02  Jim Meyering  <meyering@lucent.com>
80993
80994         * lib/mountlist.c: Back out last change.  Instead, do this...
80995         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
80996         me_dummy member using the same `ignore'-testing code.
80997         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
80998         fs_type strings.
80999         From Mark D. Roth.
81000
81001 2000-05-29  Jim Meyering  <meyering@lucent.com>
81002
81003         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
81004         mounts with the `ignore' attribute.  Based on a patch from
81005         Mark D. Roth.
81006
81007 2000-05-28  Jim Meyering  <meyering@lucent.com>
81008
81009         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
81010         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81011         * m4/stat.m4: Likewise.
81012         * m4/lstat.m4: Likewise.
81013         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
81014
81015         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
81016         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
81017
81018 2000-05-26  Jim Meyering  <meyering@lucent.com>
81019
81020         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
81021
81022 2000-05-24  Jim Meyering  <meyering@lucent.com>
81023
81024         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
81025         autoconf requires that.
81026         * m4/lib-check.m4: Likewise.
81027         * m4/jm-macros.m4: Likewise.
81028         * m4/strftime.m4: Likewise.
81029
81030         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
81031         AC_CHECK_DECLS, now that autoconf requires that.
81032
81033 2000-05-22  Jim Meyering  <meyering@lucent.com>
81034
81035         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81036         * m4/lstat.m4: Likewise.
81037
81038 2000-05-22  Jim Meyering  <meyering@lucent.com>
81039
81040         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
81041
81042 2000-05-20  Jim Meyering  <meyering@lucent.com>
81043
81044         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
81045         (jm_PREREQ): Use it.
81046
81047 2000-05-18  Jim Meyering  <meyering@lucent.com>
81048
81049         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
81050         back, too, since it may have been modified by allocate_entry.
81051         (hash_delete): Rewrite to use neither the assignment operator
81052         nor the comma operator in an if-expression.
81053
81054 2000-05-15  Paul Eggert  <eggert@twinsun.com>
81055
81056         * lib/closeout.c:
81057         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
81058         Remove; no longer needed.
81059         "quotearg.h": Add include.
81060         (file_name): Do not bother to explicitly initialize to NULL; it's less
81061         efficient on some hosts.
81062         (close_stdout_status): Remove test as to whether stdout was already
81063         closed; it breaks for the case "echo x | sort >&-".
81064         Quote file name colons.
81065         Do not assume that _("write error") lacks format strings.
81066
81067 2000-05-15  Jim Meyering  <meyering@lucent.com>
81068
81069         * lib/version-etc.c (version_etc_copyright): Update the copyright
81070         string used in all --version output.
81071
81072 2000-05-14  Jim Meyering  <meyering@lucent.com>
81073
81074         * lib/closeout.c (close_stdout_set_file_name): New function.
81075         (close_stdout_status): Use new file-scoped global.
81076         Return right away if fstat says the stdout file descriptor is invalid.
81077         * lib/closeout.h (close_stdout_set_file_name): Declare.
81078
81079 2000-05-10  Jim Meyering  <meyering@lucent.com>
81080
81081         * lib/closeout.c [default_exit_status]: New file-scoped variable.
81082         (close_stdout_set_status): New function.
81083         * lib/closeout.h (close_stdout_set_status): Declare.
81084
81085 2000-05-09  Jim Meyering  <meyering@lucent.com>
81086
81087         * m4/gettext.m4: Rename this...
81088         * m4/libintl.m4: ...to this.
81089
81090 2000-05-08  Jim Meyering  <meyering@lucent.com>
81091
81092         * lib/long-options.c: Don't include closeout.h.
81093         (parse_long_options): Don't call close_stdout for --version.
81094
81095 2000-05-06  Paul Eggert  <eggert@twinsun.com>
81096
81097         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
81098         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
81099         2.1.3 bug.  This avoids a clash when files like regex.c define
81100         _GNU_SOURCE.
81101
81102 2000-05-06  Jim Meyering  <meyering@lucent.com>
81103
81104         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
81105         (AC_REPLACE_FUNCS): Add strnlen.
81106
81107         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
81108         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
81109
81110         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
81111         AC_SEARCH_LIBS call for nanosleep.
81112         (LIB_NANOSLEEP): Set and AC_SUBST.
81113
81114 2000-05-06  Jim Meyering  <meyering@lucent.com>
81115
81116         * lib/strnlen.c: Undefine __strnlen and strnlen.
81117         [!weak_alias]: Define __strnlen to strnlen.
81118
81119         * lib/atexit.c: New file, from libiberty.
81120
81121 2000-05-06  Jim Meyering  <meyering@lucent.com>
81122
81123         * lib/closeout.c (close_stdout_status): Also check for errors on the
81124         stderr stream.
81125
81126 2000-05-05  Jim Meyering  <meyering@lucent.com>
81127
81128         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
81129         AC_SEARCH_LIBS call for clock_gettime.
81130         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
81131
81132         * m4/search-libs.m4: Update from autoconf.
81133
81134         su doesn't work on Solaris 2.6.
81135         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
81136         <shadow.h>.  Reported by Dragos Harabor.
81137
81138 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
81139
81140         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
81141         memcpy instead of xmalloc, xrealloc, path_concat.
81142         (locale_charset): Treat empty environment variables as absent.
81143         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
81144
81145 2000-05-04  Jim Meyering  <meyering@lucent.com>
81146
81147         * lib/getopt.c: Update from glibc.
81148         * lib/obstack.c: Likewise.
81149         * lib/obstack.h: Likewise.
81150         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
81151         file
81152
81153         * lib/regex.h: Likewise.
81154         * lib/strndup.c: Likewise.
81155         * lib/strnlen.c: New file, from glibc.
81156
81157 2000-05-03  Jim Meyering  <meyering@lucent.com>
81158
81159         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
81160
81161 2000-05-02  Paul Eggert  <eggert@twinsun.com>
81162
81163         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
81164         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
81165         compile-time test, rather than inspecting host and OS, to
81166         decide whether to define _LARGEFILE_SOURCE.
81167
81168 2000-05-01  Jim Meyering  <meyering@lucent.com>
81169
81170         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
81171
81172         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
81173         Based on a patch from Bruno Haible.
81174
81175 2000-05-01  Jim Meyering  <meyering@lucent.com>
81176
81177         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
81178
81179 2000-04-29  Jim Meyering  <meyering@lucent.com>
81180
81181         * lib/path-concat.c: Declare strdup only if it's not defined.
81182         * lib/canon-host.c: Likewise.
81183
81184 2000-04-28  Jim Meyering  <meyering@lucent.com>
81185
81186         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
81187         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
81188         is included first, then limits.h is included by locale.h by libintl.h.
81189         From John David Anglin.
81190
81191 2000-04-25  Jim Meyering  <meyering@lucent.com>
81192
81193         * lib/makepath.c (S_IRWXUGO): Define.
81194         (make_path): Always perform explicit chmod if MODE specifies any
81195         of the `special' permission bits.  Prompted by a bug report against
81196         install from Mate Wierdl and Joost van Baal.
81197
81198 2000-04-18  Jim Meyering  <meyering@lucent.com>
81199
81200         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
81201         (jm_PREREQ): Use it.
81202
81203 2000-04-18  Jim Meyering  <meyering@lucent.com>
81204
81205         * lib/README: New file.
81206
81207         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
81208         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
81209
81210 2000-04-17  Jim Meyering  <meyering@lucent.com>
81211
81212         Get it right :-)
81213         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
81214         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
81215         Suggestion from Akim Demaille.
81216
81217 2000-04-17  Jim Meyering  <meyering@lucent.com>
81218
81219         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
81220         the definition of it to rpl_strftime also defined-away the system's
81221         declaration.
81222
81223 2000-04-15  Jim Meyering  <meyering@lucent.com>
81224
81225         Use `C' to denote so-called `contiguous' files, the same way
81226         that tar does.
81227         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
81228         (ftypelet): Use S_ISCTG.
81229         From Michael Deutschmann.
81230
81231 2000-04-14  Jim Meyering  <meyering@lucent.com>
81232
81233         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
81234         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
81235         clobbered.
81236
81237 2000-04-14  Jim Meyering  <meyering@lucent.com>
81238
81239         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
81240
81241 2000-04-13  Jim Meyering  <meyering@lucent.com>
81242
81243         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
81244         AH_VERBATIM to insert required #ifndef into config.h.in.
81245         Suggestion from Akim Demaille.
81246
81247 2000-04-12  Jim Meyering  <meyering@lucent.com>
81248
81249         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
81250         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
81251         Christian Krackowizer.
81252
81253         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
81254         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
81255         (AC_SYS_LARGEFILE): Require.
81256         (AM_C_PROTOTYPES): Require.
81257
81258 2000-04-08  Jim Meyering  <meyering@lucent.com>
81259
81260         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
81261         names don't conflict.  Reported by Eli Zaretskii.
81262
81263 2000-04-07  Jim Meyering  <meyering@lucent.com>
81264
81265         * lib/putenv.c: Move inclusion of errno.h so it follows that of
81266         sys/types.h, to work around system header problems on AIX 3.2.5.
81267         From Bruno Haible.
81268
81269 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
81270
81271         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
81272         bug.  Deal with the different error behavior of Irix iconv.
81273
81274 2000-04-05  Paul Eggert  <eggert@twinsun.com>
81275
81276         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
81277         IRIX if the installer said otherwise.
81278
81279 2000-04-05  Jim Meyering  <meyering@lucent.com>
81280
81281         Portability tweaks required for ultrix4.3.
81282         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
81283         (jm_CHECK_DECLS): Add getutent to the list of functions.
81284         (_jm_DECL_HEADERS): Add utmpx.h.
81285         From John David Anglin.
81286
81287         * m4/strftime.m4: Back out the 2000-04-02 change.
81288         Instead of that change, simply undefine putenv in the test program.
81289
81290 2000-04-05  Jim Meyering  <meyering@lucent.com>
81291
81292         Portability tweaks required for ultrix4.3.
81293         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
81294         getutent.
81295         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
81296         * lib/canon-host.c: Declare strdup.
81297         * lib/path-concat.c: Likewise.
81298         From John David Anglin.
81299
81300 2000-04-04  Jim Meyering  <meyering@lucent.com>
81301
81302         Be more DOS 8.3-friendly.
81303         * lib/ref-add.sin: Renamed from ref-add.sed.in.
81304         * lib/ref-del.sin: Renamed from ref-del.sed.in.
81305         * lib/Makefile.am: Reflect renaming.
81306         Reported by Eli Zaretskii.
81307
81308         Use a temporary file name that won't clash with `charset.alias'
81309         in the DOS 8.3 name space.
81310         * lib/Makefile.am (charset_tmp): Define.
81311         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
81312         (uninstall-local): Likewise.
81313         Reported by Eli Zaretskii.
81314
81315 2000-04-03  Jim Meyering  <meyering@lucent.com>
81316
81317         * m4/gettext.m4: Fix typo in comment.
81318
81319         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
81320         textutils/configure.in).  Suggestion from Paul Eggert.
81321         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
81322
81323 2000-04-02  Paul Eggert  <eggert@twinsun.com>
81324
81325         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
81326         variable in the shell rather than using putenv, which isn't
81327         portable.  This avoids the configure-time inter-test dependency
81328         on the potentially-renamed putenv function.
81329
81330 2000-03-30  Paul Eggert  <eggert@twinsun.com>
81331
81332         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
81333         before checking struct stat.st_blksize, so that
81334         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
81335
81336 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81337
81338         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
81339         since strftime.c uses HAVE_STRFTIME to decide whether to use
81340         the underlying strftime.
81341
81342 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81343
81344         * lib/time/strftime.c (my_strftime): Make sure we call the system
81345         strftime, not ourselves, when invoking the underlying strftime.
81346
81347 2000-03-24  Jim Meyering  <meyering@lucent.com>
81348
81349         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
81350         (charset_alias): Define.
81351         (install-exec-local): Factor out common code.
81352         (uninstall-local): Split lines longer than 80.
81353         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
81354         (SUFFIXES): Define.
81355         (.sed.in.sed): New rule.  Don't redirect directly to $@.
81356         (CLEANFILES): Add ref-add.sed and ref-del.sed.
81357
81358 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
81359
81360         * lib/config.charset: Output a line containing "Packages using this
81361         file".
81362         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
81363         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
81364         ref-del.sed): New rules.
81365
81366 2000-03-17  Jim Meyering  <meyering@lucent.com>
81367
81368         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
81369         Otherwise, include <strings.h>
81370
81371 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
81372
81373         * lib/unicodeio.c (utf8_wctomb): New function.
81374         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
81375         format instead of in UCS-4 with platform dependent endianness.
81376
81377 2000-03-10  Jim Meyering  <meyering@lucent.com>
81378
81379         * m4/lib-check.m4: Look for getspnam in -lgen, too.
81380         From Marco Franzen.
81381
81382 2000-03-07  Paul Eggert  <eggert@twinsun.com>
81383
81384         * lib/savedir.c (savedir): Work even if directory size is
81385         negative; this can happen with some screwy NFS configurations.
81386
81387 2000-03-06  Jim Meyering  <meyering@lucent.com>
81388
81389         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
81390         if it's NULL (because we ran out of memory).  From Bruno Haible.
81391
81392 2000-03-05  Jim Meyering  <meyering@lucent.com>
81393
81394         * lib/localcharset.c ("path-concat.h"): Include.
81395         (get_charset_aliases): Use path_concat instead of ANSI string
81396         concatenation.
81397
81398         * lib/unicodeio.h (PARAMS): Define.
81399         Use it to guard prototype.
81400
81401 2000-03-04  Jim Meyering  <meyering@lucent.com>
81402
81403         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
81404         for lib/localcharset.c.
81405
81406 2000-03-04  Jim Meyering  <meyering@lucent.com>
81407
81408         * lib/Makefile.am (install-exec-local): Create $(libdir) before
81409         installing into it.
81410         (uninstall-local): Uncomment this rule so `make distcheck' works
81411         once again.
81412
81413         * lib/unicodeio.c (<errno.h>): Include it.
81414         (errno): Declare if not defined.
81415
81416         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
81417
81418         * lib/config.charset: New version, incorporating remarks from a linux
81419         i18n mailing list.  From Bruno Haible.
81420
81421 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
81422
81423         * m4/codeset.m4: New file.
81424         * m4/iconv.m4: New file.
81425         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
81426
81427 2000-03-03  Jim Meyering  <meyering@lucent.com>
81428
81429         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
81430
81431 2000-03-02  Jim Meyering  <meyering@lucent.com>
81432
81433         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
81434         the messages come out on separate lines.
81435
81436         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
81437         rather than jm_CHECK_DECLARATIONS.
81438         * m4/decl.m4: Remove now-unused file.
81439
81440         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
81441         geteuid.
81442
81443 2000-03-02  Jim Meyering  <meyering@lucent.com>
81444
81445         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
81446
81447 2000-03-01  Jim Meyering  <meyering@lucent.com>
81448
81449         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
81450         * lib/unicodeio.c: Likewise.
81451
81452 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
81453
81454         * lib/config.charset: New file.
81455         * lib/localcharset.c: New file.
81456         * lib/unicodeio.h, lib/unicodeio.c: New files.
81457         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
81458         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
81459         (noinst_HEADERS): Add unicodeio.h.
81460         (all-local, install-exec-local, charset.alias): New targets.
81461
81462 2000-02-28  Paul Eggert  <eggert@twinsun.com>
81463
81464         * lib/quotearg.c (ALERT_CHAR): New macro.
81465         (quotearg_buffer_restyled): Use it.
81466
81467 2000-02-27  Jim Meyering  <meyering@lucent.com>
81468
81469         * m4/check-decl.m4: Add getenv to the list.
81470
81471 2000-02-27  Jim Meyering  <meyering@lucent.com>
81472
81473         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
81474         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
81475
81476         * lib/backupfile.c: Guard inclusion of stdlib.h with
81477         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
81478         Declare malloc if needed.
81479
81480         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
81481         `#ifndef HAVE_DECL..'
81482         now that autoconf always defines the HAVE_DECL_ symbols.
81483         * lib/human.c: Likewise.
81484         * lib/same.c: Likewise.
81485         * lib/strtoumax.c: Likewise.
81486
81487         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
81488         declaration check was not run.
81489         * lib/hash.c: Likewise.
81490         * lib/human.c: Likewise.
81491         * lib/same.c: Likewise.
81492         * lib/strtoumax.c: Likewise.
81493
81494         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
81495         `.', then first look up the entire `.'-containing string as a login
81496         name.
81497
81498 2000-02-23  Jim Meyering  <meyering@lucent.com>
81499
81500         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
81501         in place of my hack.
81502
81503 2000-02-18  Paul Eggert  <eggert@twinsun.com>
81504
81505         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
81506         (textint): New typedef.
81507         (parser_control): Member year changed from int to textint.
81508         All uses changed.
81509         (YYSTYPE): Removed; replaced by %union with int and textint members.
81510         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
81511         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
81512         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
81513         (tSNUMBER, tUNUMBER): Now of type <textintval>.
81514         (date, number, to_year): Use width of number in digits, not its value,
81515         to determine whether it's a 2-digit year, or a 2-digit time.
81516         (yylex): Store number of digits of numeric tokens.
81517         Reported by John Kendall.
81518
81519         (parser_control): Changed from struct parser_control to typedef (for
81520         consistency).  All uses changed.
81521
81522         (tID): Removed; not used.
81523         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
81524
81525 2000-02-14  Paul Eggert  <eggert@twinsun.com>
81526
81527         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
81528         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
81529
81530 2000-02-12  Jim Meyering  <meyering@lucent.com>
81531
81532         * lib/userspec.c (ISDIGIT): Define it.
81533         (isdigit): Remove definition.
81534         (is_number): Use ISDIGIT, not isdigit.
81535         <libintl.h>: Include.
81536         (_ and N_): Define.
81537         (parse_user_spec): Mark translatable strings.
81538
81539 2000-02-10  Jim Meyering  <meyering@lucent.com>
81540
81541         With these changes, nanosleep.[ch] are finally enough like the other
81542         lib/* replacement files to compile on a few more losing systems.
81543
81544         * lib/nanosleep.h: Don't include config.h.
81545         Remove prototype from declaration of nanosleep.
81546         (PARAMS): Remove now-unneeded definition.
81547         * lib/nanosleep.c: #undef nanosleep.
81548         (rpl_nanosleep): Rename from nanosleep.
81549
81550 2000-02-10  Jim Meyering  <meyering@lucent.com>
81551
81552         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
81553         gnu_nanosleep to rpl_nanosleep.
81554
81555 2000-02-09  Jim Meyering  <meyering@lucent.com>
81556
81557         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
81558         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
81559
81560 2000-02-08  Akim Demaille  <akim@epita.fr>
81561
81562         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
81563         `[' and `]' and remove uses of `changequote'.
81564         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
81565         (AC_SYS_LARGEFILE): Likewise.
81566         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
81567         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
81568         of changequote.
81569         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
81570         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
81571         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
81572         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
81573
81574 2000-02-05  Jim Meyering  <meyering@lucent.com>
81575
81576         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
81577         Remove explicit use of AC_HEADER_TIME.  It is required by
81578         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
81579         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
81580         in autoconf whereby the expansion of the latter ended up preceding
81581         the expansion of its prerequisite, AC_HEADER_TIME.
81582         Reported by Volker Borchert.
81583
81584 2000-02-03  Jim Meyering  <meyering@lucent.com>
81585
81586         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
81587
81588 2000-02-03  Jim Meyering  <meyering@lucent.com>
81589
81590         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
81591         rather than with `#if HAVE_UTMPNAME'.
81592
81593 2000-02-02  Jim Meyering  <meyering@lucent.com>
81594
81595         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
81596         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
81597         Reported by Eli Zaretskii.
81598
81599 2000-02-01  Jim Meyering  <meyering@lucent.com>
81600
81601         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
81602
81603 2000-01-31  Jim Meyering  <meyering@lucent.com>
81604
81605         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
81606         functions.  Add the time.h and sys/time.h headers along with the
81607         AC_REQUIRE'ment of AC_HEADER_TIME.
81608
81609 2000-01-31  Jim Meyering  <meyering@lucent.com>
81610
81611         * lib/nanosleep.h (nanosleep): Guard declaration with
81612         `#if ! HAVE_DECL_NANOSLEEP'.
81613         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
81614         the declaration in that vendor's sys/timers.h.
81615         Reported by Christian Krackowizer.
81616
81617         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
81618         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
81619         (ISPRINT): Likewise.
81620         Reported by Tom Tromey.
81621
81622 2000-01-30  Jim Meyering  <meyering@lucent.com>
81623
81624         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
81625
81626         * m4/prereq.m4 (utmp_includes): Define.
81627         Check for ut_user and ut_name members in both struct utmpx
81628         and struct utmp.
81629
81630 2000-01-30  Jim Meyering  <meyering@lucent.com>
81631
81632         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
81633         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
81634         header files where only utmpx.ut_user is declared.
81635
81636         * lib/readutmp.h (UT_USER): Define.
81637
81638 2000-01-29  Jim Meyering  <meyering@lucent.com>
81639
81640         * m4/lib-check.m4: New file containing library-related checks from
81641         fileutils and sh-utils (textutils had none).
81642
81643 2000-01-28  Jim Meyering  <meyering@lucent.com>
81644
81645         * m4/perl.m4: Change format of warning message to look more like that
81646         from the missing script.  Suggestion from François Pinard.
81647
81648 2000-01-25  Jim Meyering  <meyering@lucent.com>
81649
81650         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
81651         well as time.h in the compile check.
81652         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
81653         Fix typo in cross-compiling case: s/yes/no/.
81654
81655 2000-01-23  Jim Meyering  <meyering@lucent.com>
81656
81657         * m4/jm-macros.m4: Move df-related tests here from
81658         fileutils/configure.in
81659
81660         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
81661         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
81662
81663         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
81664         s/space/ac_fsusage_space/.
81665         (jm_FILE_SYSTEM_USAGE): Take two parameters.
81666
81667         * m4/ftruncate.m4: New file (derived from part of
81668         fileutils/configure.in).
81669         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
81670         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
81671
81672         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
81673         AC_SUBST these here, rather than just in sh-util/configure.in, so
81674         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
81675         all the same.
81676         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
81677         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
81678         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
81679         (AC_SUBST(POW_LIBM)): Likewise.
81680         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
81681
81682 2000-01-23  Jim Meyering  <meyering@lucent.com>
81683
81684         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
81685         obstack.c.
81686
81687 2000-01-22  Jim Meyering  <meyering@lucent.com>
81688
81689         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
81690
81691         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
81692
81693         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
81694         configure.in
81695         (AC_CHECK_HEADERS): Likewise for sh-utils.
81696         (AC_CHECK_HEADERS): Likewise for textutils.
81697         Merge the three lists of headers.
81698
81699         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
81700         from fileutils' configure.in.
81701
81702         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
81703         code. Moved tests into their own function (_jm_DECL_HEADERS) in
81704         check-decl.m4.
81705
81706         * m4/check-decl.m4: Use #if rather than #ifdef.
81707         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
81708         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
81709         (_jm_DECL_HEADERS): Define new function.
81710         (jm_CHECK_DECLARATIONS): Require it.
81711
81712 2000-01-22  Jim Meyering  <meyering@lucent.com>
81713
81714         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
81715         [! HAVE_DECL_STRTOULL]: Declare strtoull.
81716         Required for some AIX systems.  Reported by Christian Krackowizer.
81717         [TESTING] (main): New function.
81718
81719         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
81720         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
81721         letters.
81722
81723         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
81724         iswprint.
81725
81726         * lib/strverscmp.c (ISDIGIT): Define.
81727         (strverscmp): Use ISDIGIT, not isdigit.
81728
81729 2000-01-19  Jim Meyering  <meyering@lucent.com>
81730
81731         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
81732         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
81733         defines `struct timespec' in <sys/time.h>
81734
81735         * m4/c-bs-a.m4: Remove uses of changequote altogether.
81736         Thanks to Akim for explaining.
81737
81738 2000-01-17  Paul Eggert  <eggert@twinsun.com>
81739
81740         * lib/nanosleep.c (nanosleep):
81741         Don't use SA_INTERRUPT to decide whether to call sigaction, as
81742         POSIX.1 doesn't require SA_INTERRUPT and some systems
81743         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
81744         it's been part of POSIX.1 since day 1 (in 1988).
81745
81746 2000-01-17  Jim Meyering  <meyering@lucent.com>
81747
81748         * lib/interlock: Remove unused file.  Reported by François Pinard.
81749
81750 2000-01-16  Paul Eggert  <eggert@twinsun.com>
81751
81752         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
81753         alert, backslash, formfeed, and vertical tab unnecessarily in
81754         shell quoting style.
81755
81756 2000-01-16  Jim Meyering  <meyering@lucent.com>
81757
81758         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
81759         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
81760         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
81761         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
81762
81763 2000-01-16  Jim Meyering  <meyering@lucent.com>
81764
81765         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
81766         because the latter didn't work.
81767
81768 2000-01-15  Jim Meyering  <meyering@lucent.com>
81769
81770         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
81771         (AC_REPLACE_FUNCS): Add memcpy and memset.
81772         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
81773         Add strpbrk.
81774         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
81775
81776 2000-01-12  Jim Meyering  <meyering@lucent.com>
81777
81778         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
81779         (jm_PREREQ): Use it.
81780         (jm_PREREQ_READUTMP): New macro.
81781         (jm_PREREQ): Use it.
81782
81783 2000-01-11  Paul Eggert  <eggert@twinsun.com>
81784
81785         Quote multibyte characters correctly.
81786         * m4/c-bs-a.m4: New file.
81787         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
81788         (jm_PREREQ): Use it.
81789
81790 2000-01-11  Paul Eggert  <eggert@twinsun.com>
81791
81792         * m4/uintmax_t.m4: Port to autoconf 2.13.
81793
81794 2000-01-08  Jim Meyering  <meyering@ascend.com>
81795
81796         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
81797         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
81798
81799 2000-01-04  Jim Meyering  <meyering@ascend.com>
81800
81801         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
81802         jm_STRUCT_DIRENT_D_TYPE.
81803         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
81804         jm_STRUCT_DIRENT_D_INO.
81805         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
81806         jm_STRUCT_UTIMBUF.
81807         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
81808         renamings.
81809         * m4/utime.m4: Likewise.
81810
81811         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
81812         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
81813
81814 2000-01-03  Paul Eggert  <eggert@twinsun.com>
81815
81816         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
81817         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
81818
81819 2000-01-02  Jim Meyering  <meyering@ascend.com>
81820
81821         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
81822         remember if this is necessary.
81823
81824 1999-12-26  Jim Meyering  <meyering@ascend.com>
81825
81826         * m4/jm-macros.m4: Use it here.
81827         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
81828
81829 1999-12-23  Jim Meyering  <meyering@ascend.com>
81830
81831         * m4/jm-macros.m4: Check for clock_gettime (moved from
81832         fileutils/configure.in)
81833         Check for gettimeofday.
81834
81835 1999-12-20  Jim Meyering  <meyering@ascend.com>
81836
81837         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
81838         autoconf-2.14a-1999-12-20.
81839
81840 1999-12-19  Jim Meyering  <meyering@ascend.com>
81841
81842         * m4/lstat-slash.m4: New file.
81843         * m4/jm-macros.m4: Use the new macro:
81844         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81845
81846 1999-12-07  Jim Meyering  <meyering@ascend.com>
81847
81848         * m4/perl.m4: Require that File::Compare be available, too.
81849         Too many systems seem to lack it.
81850
81851         * m4/strftime.m4: Add checks for most of the cpp macros tested in
81852         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
81853
81854 1999-11-18  Paul Eggert  <eggert@twinsun.com>
81855
81856         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
81857         problem with the QNX 4.25 shell, which doesn't propagate exit
81858         status of failed commands inside shell assignments.
81859
81860 1999-11-17  Jim Meyering  <meyering@ascend.com>
81861
81862         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
81863
81864 1999-11-07  Jim Meyering  <meyering@ascend.com>
81865
81866         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
81867
81868 1999-11-06  Jim Meyering  <meyering@ascend.com>
81869
81870         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
81871         * m4/jm-macros.m4 (jm_MACROS): Use it here.
81872
81873 1999-11-05  Jim Meyering  <meyering@ascend.com>
81874
81875         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
81876         configure.in of textutils, fileutils, and sh-utils into this one
81877         (shared between those packages) file.
81878         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
81879         AC_STRUCT_ST_BLKSIZE.
81880
81881 1999-11-03  Jim Meyering  <meyering@ascend.com>
81882
81883         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
81884         of AC_CHECK_TYPE checks includes unistd.h.
81885         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
81886         Suggestion from Akim Demaille.
81887
81888 1999-10-30  Jim Meyering  <meyering@ascend.com>
81889
81890         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
81891         m4-quoted string.
81892         * m4/ls-mntd-fs.m4: Likewise.
81893         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
81894         * m4/jm-winsz1.m4: Likewise.
81895
81896         * m4/const.m4: Remove file, since the fix made it into the experimental
81897         version of autoconf.
81898         * m4/mktime.m4: Likewise.
81899
81900         * m4/check-type.m4: Remove file, now that the latest version of
81901         AC_CHECK_TYPE takes a third arg to specify additional #includes.
81902
81903         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
81904         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
81905         AC_CHECK_TYPE.
81906
81907 1999-10-04  Jim Meyering  <meyering@ascend.com>
81908
81909         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
81910
81911 1999-09-22  Paul Eggert  <eggert@twinsun.com>
81912
81913         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
81914         2.95.1 bug with HP-UX 10.20.
81915
81916 1999-09-17  Jim Meyering  <meyering@ascend.com>
81917
81918         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
81919         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
81920         due to missing strdup (against sh-utils-2.0).
81921
81922 1999-08-29  Jim Meyering  <meyering@ascend.com>
81923
81924         * m4/jm-macros.m4: Require jm_BISON.
81925         * m4/bison.m4: New file.
81926
81927 1999-08-17  Paul Eggert  <eggert@twinsun.com>
81928
81929         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
81930         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
81931
81932 1999-08-05  Jim Meyering  <meyering@ascend.com>
81933
81934         * m4/getline.m4: Rename test file from conftestdata to conftest.data
81935         to avoid conflicts with `conftest' on 8+3 filesystems.
81936         Suggestion from Eli Zaretskii.
81937
81938 1999-08-04  Jim Meyering  <meyering@ascend.com>
81939
81940         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
81941         fileutils and sh-utils (textutils's getline test was inadequate).
81942         (AM_FUNC_GETLINE): Run this test.
81943         (AC_CHECK_FUNCS): Check for getdelim.
81944         Reported by Bob Proulx.
81945
81946 1999-08-02  Jim Meyering  <meyering@ascend.com>
81947
81948         * m4/jm-macros.m4: Add a comment.
81949
81950 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81951
81952         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
81953         <inttypes.h> defines strtoumax as a macro (and not as a
81954         function).
81955
81956 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81957
81958         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
81959         that we can shift, multiply and divide unsigned long long
81960         values; Ultrix cc can't do it.
81961
81962 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81963
81964         * m4/mktime.m4: New file, which is a preview of what should appear
81965         in the next public autoconf release.
81966
81967 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81968
81969         * m4/lfs.m4: Remove this file.
81970         * m4/largefile.m4: New file.  It contains the old contents of
81971         lfs.m4, except that all names with prefix AC_LFS have been
81972         changed to use the prefix AC_SYS_LARGEFILE instead, to be
81973         compatible with future autoconf versions.  Also, some minor m4
81974         quoting problems have been fixed.
81975
81976 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81977
81978         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
81979         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
81980         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
81981         and simplify the shell code.
81982
81983 1999-08-01  Jim Meyering  <meyering@ascend.com>
81984
81985         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
81986         m4.
81987
81988 1999-07-20  Jim Meyering  <meyering@ascend.com>
81989
81990         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
81991
81992 1999-07-15  Jim Meyering  <meyering@ascend.com>
81993
81994         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
81995
81996 1999-05-22  Jim Meyering  <meyering@ascend.com>
81997
81998         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
81999
82000 1999-05-20  Jim Meyering  <meyering@ascend.com>
82001
82002         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
82003         Add a colon after each `then' in case $4 is empty.
82004
82005 1999-05-16  Jim Meyering  <meyering@ascend.com>
82006
82007         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
82008
82009 1999-05-10  Jim Meyering  <meyering@ascend.com>
82010
82011         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
82012
82013         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
82014         AC_FUNC_MKTIME.
82015
82016 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
82017
82018         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
82019
82020 1999-05-04  Paul Eggert  <eggert@twinsun.com>
82021
82022         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
82023         not CPPFLAGS, so that linking works correctly in IRIX.
82024
82025 1999-04-30  Paul Eggert  <eggert@twinsun.com>
82026
82027         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
82028
82029 1999-04-20  Paul Eggert  <eggert@twinsun.com>
82030
82031         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
82032         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
82033         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
82034         jm_AC_TYPE_UNSIGNED_LONG_LONG.
82035         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
82036
82037         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
82038
82039 1999-04-20  Jim Meyering  <meyering@ascend.com>
82040
82041         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
82042         AC_REPLACE xstroull if necessary.  From Paul Eggert.
82043         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
82044
82045 1999-04-18  Jim Meyering  <meyering@ascend.com>
82046
82047         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
82048         * m4/jm-macros.m4: Use it.
82049
82050 1999-04-06  Jim Meyering  <meyering@ascend.com>
82051
82052         * m4/strftime.m4: Remove test for %f.
82053
82054 1999-03-29  Jim Meyering  <meyering@ascend.com>
82055
82056         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
82057         superset of the AC_TYPE_* checks in the textutils, fileutils,
82058         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
82059         AC_TYPE_PID_T.
82060
82061 1999-03-28  Jim Meyering  <meyering@ascend.com>
82062
82063         * m4/jm-macros.m4: Define GNU_PACKAGE here.
82064         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
82065         replaced e.g., in the *.sh files of the sh-utils.
82066
82067 1999-03-20  Jim Meyering  <meyering@ascend.com>
82068
82069         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
82070         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
82071         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
82072
82073 1999-03-19  Jim Meyering  <meyering@ascend.com>
82074
82075         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
82076
82077 1999-03-12  Jim Meyering  <meyering@ascend.com>
82078
82079         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
82080
82081 1999-03-07  Jim Meyering  <meyering@ascend.com>
82082
82083         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
82084         declared.
82085
82086 1999-02-17  Jim Meyering  <meyering@ascend.com>
82087
82088         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
82089         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
82090
82091 1999-02-07  Jim Meyering  <meyering@ascend.com>
82092
82093         * m4/group-member.m4: New file -- extracted from sh-utils'
82094         configure.in.
82095
82096         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
82097         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
82098
82099 1999-02-06  Jim Meyering  <meyering@ascend.com>
82100
82101         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
82102         * m4/fnmatch.m4: Likewise.
82103         * m4/getgroups.m4: Likewise.
82104         * m4/lstat.m4: Likewise.
82105         * m4/malloc.m4: Likewise.
82106         * m4/putenv.m4: Likewise.
82107         * m4/realloc.m4: Likewise.
82108         * m4/regex.m4: Likewise.
82109         * m4/stat.m4: Likewise.
82110         * m4/strftime.m4: Likewise.
82111         Suggestion from Alain Magloire.
82112
82113         * m4/chown.m4: Use `.$ac_objext', not `.o'.
82114         * m4/fnmatch.m4: Likewise.
82115         * m4/getgroups.m4: Likewise.
82116         * m4/getline.m4: Likewise.
82117         * m4/lstat.m4: Likewise.
82118         * m4/malloc.m4: Likewise.
82119         * m4/memcmp.m4: Likewise.
82120         * m4/putenv.m4: Likewise.
82121         * m4/realloc.m4: Likewise.
82122         * m4/regex.m4: Likewise.
82123         * m4/stat.m4: Likewise.
82124         * m4/strftime.m4: Likewise.
82125         Suggestion from Alain Magloire.
82126
82127         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
82128         an argument.
82129
82130         * m4/regex.m4: Add a run-time Test for proper operation of
82131         re_compile_pattern.
82132
82133 1999-01-31  Jim Meyering  <meyering@ascend.com>
82134
82135         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
82136
82137 1999-01-30  Jim Meyering  <meyering@ascend.com>
82138
82139         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
82140
82141         * m4/jm-mktime.m4: Make this a wrapper around the official
82142         AM_FUNC_MKTIME rather than my private copy, now that the official one
82143         is up to date.
82144         * m4/mktime.m4: Remove file.
82145
82146         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
82147         * m4/uptime.m4: Likewise.
82148         * m4/uintmax_t.m4: Likewise.
82149
82150 1999-01-28  Jim Meyering  <meyering@ascend.com>
82151
82152         * m4/jm-macros.m4: Use jm_AFS.
82153         * m4/afs.m4: New file (from fileutils' configure.in).
82154
82155         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
82156         * m4/chown.m4: Likewise.
82157         * m4/d-ino.m4: Likewise.
82158         * m4/d-type.m4: Likewise.
82159         * m4/fnmatch.m4: Likewise.
82160         * m4/getgroups.m4: Likewise.
82161         * m4/gettext.m4: Likewise.
82162         * m4/jm-mktime.m4: Likewise.
82163         * m4/jm-winsz2.m4: Likewise.
82164         * m4/lcmessage.m4: Likewise.
82165         * m4/ls-mntd-fs.m4: Likewise.
82166         * m4/malloc.m4: Likewise.
82167         * m4/memcmp.m4: Likewise.
82168         * m4/putenv.m4: Likewise.
82169         * m4/realloc.m4: Likewise.
82170         * m4/st_mtim.m4: Likewise.
82171         * m4/strftime.m4: Likewise.
82172
82173 1999-01-16  Jim Meyering  <meyering@ascend.com>
82174
82175         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
82176         (ARGMATCH_DIE_DECL): Define.
82177
82178 1999-01-12  Jim Meyering  <meyering@ascend.com>
82179
82180         * m4/Makefile.am.in: Rewrite to avoid using fmt.
82181         Reported by Lars Hecking.
82182
82183 1999-01-10  Jim Meyering  <meyering@ascend.com>
82184
82185         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
82186         gross kludge.
82187         * m4/inttypes_h.m4: Likewise.
82188         * m4/lstat.m4: Likewise.
82189         * m4/malloc.m4: Likewise.
82190         * m4/readdir.m4: Likewise.
82191         * m4/realloc.m4: Likewise.
82192         * m4/st_dm_mode.m4: Likewise.
82193         * m4/stat.m4: Likewise.
82194         * m4/utimbuf.m4: Likewise.
82195         * m4/utimes.m4: Likewise.
82196
82197         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
82198         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
82199         comments in config.h.in are meaningful.
82200
82201         * m4/jm-macros.m4: Require autoconf-2.13 here.
82202
82203         * m4/regex.m4: By default, don't use the included regex.c on systems
82204         with glibc 2.  Suggestion from Uli Drepper.
82205
82206 1999-01-02  Jim Meyering  <meyering@ascend.com>
82207
82208         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
82209
82210 1998-12-18  Jim Meyering  <meyering@ascend.com>
82211
82212         * m4/Makefile.am.in (Makefile.am): Simplify rule.
82213         Based on a suggestion from Lars Hecking.
82214
82215 1998-11-16  Paul Eggert  <eggert@twinsun.com>
82216
82217         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
82218
82219 1998-11-16  Jim Meyering  <meyering@ascend.com>
82220
82221         * m4/lfs.m4: Double-quote the `uname...` expression.
82222
82223 1998-11-14  Jim Meyering  <meyering@ascend.com>
82224
82225         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
82226         * m4/stat.m4: Likewise.
82227
82228 1998-11-03  Jim Meyering  <meyering@ascend.com>
82229
82230         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
82231         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
82232
82233 1998-10-18  Jim Meyering  <meyering@ascend.com>
82234
82235         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
82236
82237 1998-10-17  Jim Meyering  <meyering@ascend.com>
82238
82239         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
82240         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
82241         calls for those previously hard-coded headers.  Instead, take a new
82242         parameter.
82243         (jm_CHECK_DECLARATIONS): Reflect interface change.
82244         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
82245         (jm_CHECK_DECL_LOCALTIME_R): New macro.
82246
82247         * m4/mktime.m4: Test for spring-forward gap before long-running test.
82248
82249 1998-10-14  Jim Meyering  <meyering@ascend.com>
82250
82251         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
82252         instead of "TZ=America/Vancouver".  From Paul Eggert.
82253
82254 1998-10-11  Jim Meyering  <meyering@ascend.com>
82255
82256         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
82257         This adds a test for a recently added compatibility fix for mktime.c.
82258         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
82259
82260 1998-09-27  Jim Meyering  <meyering@ascend.com>
82261
82262         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
82263
82264         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
82265         ../configure.in, including a change from Gordon Matzigkeit to allow
82266         cross-compiling for the Hurd.
82267
82268         * m4/glibc.m4: New file/macro to test for the GNU C Library
82269         versions 1 and 2.  From Gordon Matzigkeit.
82270         Indent.
82271
82272 1998-09-21  Jim Meyering  <meyering@ascend.com>
82273
82274         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
82275
82276 1998-08-18  Paul Eggert  <eggert@twinsun.com>
82277
82278         Port nanosecond-resolution times to UnixWare 2.1.2 and
82279         pedantic Solaris 2.6.
82280
82281         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
82282         AC_STRUCT_ST_MTIM.
82283         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
82284         Generate name of ns member, instead of just 1 or undef.
82285         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
82286
82287 1998-08-15  Jim Meyering  <meyering@ascend.com>
82288
82289         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
82290         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
82291         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
82292         instead of jm_TYPE_SSIZE_T.
82293
82294 1998-08-12  Jim Meyering  <meyering@ascend.com>
82295
82296         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
82297
82298 1998-08-02  Jim Meyering  <meyering@ascend.com>
82299
82300         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
82301         in acconfig.h manually.
82302
82303 1998-07-31  Paul Eggert  <eggert@twinsun.com>
82304
82305         * m4/st_mtim.m4: New file.
82306
82307 1998-07-28  Jim Meyering  <meyering@ascend.com>
82308
82309         * m4/utimes.m4: Undef stat.
82310
82311 1998-07-25  Jim Meyering  <meyering@ascend.com>
82312
82313         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
82314         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
82315
82316 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
82317
82318         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
82319         uid and gid actually remain unchanged.
82320
82321 1998-07-07  Jim Meyering  <meyering@ascend.com>
82322
82323         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
82324
82325 1998-07-04  Jim Meyering  <meyering@ascend.com>
82326
82327         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
82328         to prove that this macro can be used in packages without regex.c.
82329
82330 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
82331
82332         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
82333         is to be used.
82334
82335 1998-07-03  Jim Meyering  <meyering@ascend.com>
82336
82337         * m4/gettext.m4: Add -lintl if it's found to be necessary.
82338
82339         * m4/gettext.m4: New file -- from gettext-0.10.35.
82340         * m4/lcmessage.m4: Likewise.
82341         * m4/progtest.m4: Likewise.
82342
82343         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
82344         * m4/jm-macros.m4: Require the new macro.
82345
82346 1998-06-29  Jim Meyering  <meyering@ascend.com>
82347
82348         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
82349         for the definition of NGROUPS (used in a system header included
82350         by sys/mount.h).
82351
82352 1998-06-28  Jim Meyering  <meyering@ascend.com>
82353
82354         * m4/ls-mntd-fs.m4: New file.
82355         * m4/fstypename.m4: New file.
82356
82357         * m4/jm-macros.m4: Require the new macro.
82358         * m4/jm-glibc-io.m4: New file.
82359
82360 1998-05-19  Jim Meyering  <meyering@ascend.com>
82361
82362         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
82363         * m4/lchown.m4: New file.
82364
82365         * m4/Makefile.am.in: New file.
82366         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
82367
82368 1998-05-14  Jim Meyering  <meyering@ascend.com>
82369
82370         * m4/Makefile.am (EXTRA_DIST): Add them.
82371         * m4/jm-macros.m4: New file.
82372         * m4/utimbuf.m4: New file.
82373
82374 1998-05-12  Jim Meyering  <meyering@ascend.com>
82375
82376         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
82377
82378 1998-05-11  Jim Meyering  <meyering@ascend.com>
82379
82380         * m4/isc-posix.m4: New file.
82381
82382 1998-05-10  Jim Meyering  <meyering@ascend.com>
82383
82384         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
82385
82386 1998-05-09  Jim Meyering  <meyering@ascend.com>
82387
82388         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
82389         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
82390         with automake.
82391
82392         * m4/ssize_t.m4: New file.
82393         * m4/mktime.m4: Remove file -- the new automake has this now.
82394
82395 1998-04-26  Jim Meyering  <meyering@ascend.com>
82396
82397         * m4/assert.m4: New file.
82398         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
82399
82400 1998-04-05  Jim Meyering  <meyering@ascend.com>
82401
82402         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
82403         (jm_PREREQ): Use it here.
82404
82405 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
82406
82407         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
82408         in acconfig.h.
82409
82410 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
82411
82412         * m4/prereq.m4: New file.
82413         * m4/error.m4: New file.
82414         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
82415
82416 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
82417
82418         * m4/getline.m4: Don't set am_cv_func_working_getline before the
82419         cache-check for the same variable -- that defeated the purpose of
82420         the test; the test program was never run.  This was a problem only
82421         on systems with losing getline functions -- HP-UX 10.20 is one.
82422         Reported by Bjorn Helgaas.
82423
82424 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
82425
82426         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
82427
82428 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
82429
82430         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
82431
82432         * m4/const.m4: New file.  Use an initializer in this declaration
82433         typedef int charset[2]; const charset x;
82434         Reported by Bob Glickstein.
82435
82436 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
82437
82438         * m4/chown.m4: Fix reversed types on -1 args to chown.
82439         From Kaveh Ghazi.
82440
82441 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
82442
82443         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
82444         Add lseek and memchr.
82445
82446         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
82447         T.E.Dickey <dickey@clark.net> said that some older preprocessors
82448         have a 20-character limit on names.
82449
82450 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
82451
82452         * m4/inttypes_h.m4: New file.
82453         * m4/uintmax_t.m4: New file.
82454         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
82455
82456
82457         -----
82458
82459         Local Variables:
82460         coding: utf-8
82461         End:
82462
82463         Copyright (C) 1997-2011 Free Software Foundation, Inc.
82464
82465         Copying and distribution of this file, with or without
82466         modification, are permitted provided the copyright notice
82467         and this notice are preserved.